/* ホテル一覧の全体 */
.hotel-section {
  padding: 48px 0 24px 0;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.hotel_list__title {
  padding: 12px 0 12px 0;
  border-bottom: 1px solid var(--color-accent);
}

.hotel-list-wrapper {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.hotel-category__title {
  margin: 0;
  padding-top: 24px;
}

/* ホテルリスト（PCは3列固定/370px四方） */
.hotel-list {
  display: grid;
  grid-template-columns: repeat(3, 370px);
  gap: 11px;
  margin: 0;
  padding: 0;
  justify-content: center;
}

.hotel-item {
  width: 370px;
  aspect-ratio: 1 / 1;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  padding: 10px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.hotel-thumb {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.hotel-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

/* ホバー時：ズーム＋透過 */
.hotel-item:hover .hotel-thumb img {
  transform: scale(1.05);
  opacity: 0.7;
}

.hotel-thumb::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 40%;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.80) 50%, rgba(0, 0, 0, 0.00) 100%);
  z-index: 1;
  mix-blend-mode: normal;
}

.hotel-caption {
  position: absolute;
  bottom: 10px;
  left: 10px;
  right: 10px;
  padding: 12px;
  color: var(--color-text_light);
  z-index: 2;
}

.hotel-name {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 2px;
  font-style: normal;
}

.hotel-name small {
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 2px;
  font-style: normal;
}

/* タグ体裁 */
.hotel-tags {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
  border: 1px solid var(--color-border_dark);
  background: var(--color-ui-bg);
}

.hotel-tags-list{
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 12px;
  align-self: stretch;

}

.hotel-tag {
  min-width: 100px;
  height: 40px;
  padding: 6px 12px;
  border-radius: 5px;
  border: none;
  background: var(--color-ui-sub);
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s ease;
}

.hotel-tags-explain{
  font-size: 12px;
  color: var(--color-key);
  text-align: center; 
}


@media (hover: hover) and (pointer: fine) {
  .hotel-tag:hover {
    background: var(--color-accent);
    color: var(--color-text_light);
  }
}

.hotel-tag.is-active {
  background: var(--color-accent);
  color: var(--color-text_light);
}

.hotel-item.dimmed {
  opacity: 0.3;
}

/* スティッキーバー */
.sticky-wrapper {
  position: sticky;
  top: 0;
  z-index: 9999;
  background: var(--color-bg_light);
}


/* ==============================
   タブレット・スマホ
   ============================== */

@media (max-width: 1179px) and (min-width: 810px) {

  /* ホテルリスト（タブレットは2列固定・370px四方） */
  .hotel-list {
    display: grid;
    grid-template-columns: repeat(2, 370px);
    gap: 12px;
    margin: 0 auto 48px;
    padding: 0;
    justify-content: center;
  }

  .hotel-tags {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;   
  }

  .hotel-tags-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
  }

  .hotel-tag {
    display: flex;
    flex: 0 0 auto;
    height: 40px;
    padding: 0 12px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
  }
}

@media (max-width: 809px) {

  /* スティッキーバー */
  .sticky-wrapper {
    position: static;
  }

  /* モバイル専用sticky */
  .sticky-wrapper-mobile {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    background: var(--color-bg_light);
    opacity: 0;
    transition: opacity 0.7s ease;
    pointer-events: none;
  }

  .sticky-wrapper-mobile.is-active {
    opacity: 1;
    pointer-events: auto;
  }

  .hotel-tags {
    display: flex;
    flex-direction: column;
    gap: 6px;
  }

  .hotel-tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;    
  }

  .hotel-tags-explain {
    font-size: 10px;
    padding-bottom: 6px;
  }

  .sticky-wrapper-mobile .hotel-tags {
    padding: 0 12px;
    gap: 0;
  }


  .sticky-wrapper-mobile .hotel-tags-list {
    display: flex;
    flex-wrap: nowrap;
    gap: 12px;
    padding: 12px 0 12px 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    justify-content: flex-start;
  }

  .hotel-tags::-webkit-scrollbar {
    display: none;
  }

  .hotel-tag {
    flex: 0 0 auto;
    min-width: 50px;
    height: 29px;
    padding: 6px 12px;
    border-radius: 5px;
    background: var(--color-ui-sub);
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease;
    color: var(--color-text_dark);
    white-space: nowrap;
  }

  /* 2列表示（デフォルト） */
  .hotel-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .hotel-item {
    width: 100%;
    aspect-ratio: 1 / 1;
    padding: 0;
  }

  /* 1列にするパターン */
  .hotel-list.list--full {
    grid-template-columns: 1fr;
  }

  /* 最初の1件だけ1列にするパターン */
  .hotel-list.list--first-full .hotel-item:first-child {
    grid-column: span 2;
  }

  /* 2列にするパターン（デフォルトを明示） */
  .hotel-list.list--grid {
    grid-template-columns: 1fr 1fr;
  }

  .hotel-caption {
    position: absolute;
    bottom: 0px;
    left: 0px;
    right: 0px;
    padding: 12px;
    color: var(--color-text_light);
    z-index: 99;
  }

  .hotel-thumb::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.80) 50%, rgba(0, 0, 0, 0.00) 100%);
    z-index: 1;
  }
}