html {
  scroll-behavior: smooth;
}

:root {
  --room-ink: #5d574d;
  --room-line: #d8d0c4;
  --room-orange: #eb9b51;
  --room-tan: #bc8a52;
}
.roomPage {
  background: #f8f6f2;
  color: var(--room-ink);
}
.roomIntro {
  position: relative;
  min-height: 920px;
  padding: 88px 0 0;
  background: #f5f2ee;
}
.roomIntro::before {
  position: absolute;
  z-index: 0;
  top: 0;
  bottom: 0;
  left: 0;
  width: 50%;
  background: var(--room-bg, url("../images/room/01/bg.png")) center top / cover
    no-repeat;
  content: "";
  pointer-events: none;
}

.roomPage.property01 .roomIntro::before {
  background-image: url("../images/room/01/bg.png");
}
.roomPage.property02 .roomIntro::before {
  background-image: url("../images/room/02/bg.png");
}
.roomPage.property03 .roomIntro::before {
  background-image: url("../images/room/03/bg.png");
}
.roomPage.property04 .roomIntro::before {
  background-image: url("../images/room/04/bg.png");
}
.roomPage.property05 .roomIntro::before {
  background-image: url("../images/room/05/bg.png");
}
.roomPage.property06 .roomIntro::before {
  background-image: url("../images/room/06/bg.png");
}

.roomTopbar,
.roomIntroGrid {
  position: relative;
  z-index: 1;
}

.roomTopbar {
  z-index: 20;
  width: min(1390px, 90vw);
  margin: 0 auto;
  padding: 60px 0 48px;
  pointer-events: none;
}

.roomTopbar a,
.roomTopbar button,
.roomTopbar .houseSelect {
  pointer-events: auto;
}
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: 13px;
  letter-spacing: 0.13em;
}
.breadcrumbs i {
  font-style: normal;
  color: #aaa093;
}
.houseSelect {
  position: relative;
  z-index: 30;
  width: 280px;
  margin-top: 46px;
}

.houseSelectTrigger {
  display: flex;
  width: 100%;
  height: 58px;
  padding: 0 24px;
  align-items: center;
  justify-content: space-between;
  border: 1px solid #cfc6bb;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--room-ink);
  font-family: inherit;
  font-size: 15px;
  letter-spacing: 0.1em;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(78, 67, 52, 0.04);
}

.houseSelectTrigger svg {
  width: 20px;
  fill: none;
  stroke: #c9c3ba;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.25s ease;
}

.houseSelect.open .houseSelectTrigger svg {
  transform: rotate(180deg);
}

.houseSelectMenu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  left: 0;
  padding: 7px 0;
  overflow: hidden;
  border: 1px solid rgba(224, 218, 209, 0.62);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 30px rgba(71, 61, 48, 0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  backdrop-filter: blur(12px);
  transition:
    opacity 0.22s ease,
    transform 0.22s ease,
    visibility 0.22s;
}

.houseSelect.open .houseSelectMenu {
  opacity: 0.9;
  visibility: visible;
  transform: translateY(0);
}

.houseSelectMenu a {
  display: flex;
  min-height: 56px;
  padding: 0 24px;
  align-items: center;
  color: #5f594f;
  font-size: 15px;
  letter-spacing: 0.1em;
  transition:
    color 0.18s ease,
    background 0.18s ease;
}

.houseSelectMenu a:hover,
.houseSelectMenu a:focus-visible {
  background: rgba(245, 240, 232, 0.75);
  color: #9a7951;
}

.houseSelectMenu a.current {
  color: #514b43;
  font-weight: 500;
}
.roomIntroGrid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(520px, 1fr);
  align-items: start;
}
.gallery {
  min-width: 0;
}
.galleryMain {
  position: relative;
  display: block;
  width: 100%;
  height: 455px;
  padding: 0;
  border: 0;
  border-radius: 0 64px 0 0;
  overflow: hidden;
  background: #ddd;
  cursor: zoom-in;
}
.galleryMain > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
  transition: opacity 0.42s ease;
}
.galleryMain .galleryIncoming {
  z-index: 1;
  opacity: 0;
}
.galleryMain.isCrossfading .galleryCurrent {
  opacity: 0;
}
.galleryMain.isCrossfading .galleryIncoming {
  opacity: 1;
}
.galleryZoom {
  position: absolute;
  z-index: 2;
  right: 22px;
  bottom: 20px;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 50%;
  background: rgba(45, 38, 31, 0.25);
  color: #fff;
  font-size: 24px;
  opacity: 0;
  transition: 0.25s;
}
.galleryMain:hover .galleryZoom {
  opacity: 1;
}
.galleryThumbShell {
  position: relative;
  width: 88%;
  margin: 28px auto 0;
}

.galleryThumbs {
  display: flex;
  gap: 8px;
  width: 100%;
  margin: 0;
  overflow: hidden;
  scroll-behavior: smooth;
  scrollbar-width: none;
}
.galleryThumbs::-webkit-scrollbar {
  display: none;
}
.galleryThumbs > button {
  flex: 0 0 calc((100% - 48px) / 7);
}

.galleryThumbs [data-clone] {
  display: none;
}

.thumbArrow {
  position: absolute;
  z-index: 4;
  top: 0;
  bottom: 0;
  display: flex;
  width: 24px;
  padding: 0;
  border: 0;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: rgba(54, 50, 45, 0.22);
  color: transparent;
  font-size: 0;
  cursor: pointer;
  transition: background 0.2s ease;
}

.thumbArrow:hover {
  background: rgba(54, 50, 45, 0.38);
}

.thumbArrow::before {
  width: 0;
  height: 0;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  content: "";
}

.thumbPrev {
  left: 0;
  border-radius: 3px 0 0 3px;
}

.thumbPrev::before {
  border-right: 8px solid #fff;
}

.thumbNext {
  right: 0;
  border-radius: 0 3px 3px 0;
}

.thumbNext::before {
  border-left: 8px solid #fff;
}
.galleryThumbs button {
  height: 68px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 3px;
  overflow: hidden;
  background: #ddd;
  cursor: pointer;
  opacity: 0.62;
  transition: 0.25s;
}
.galleryThumbs button:hover,
.galleryThumbs button.active {
  opacity: 1;
  border-color: #a58b70;
}
.galleryThumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.roomDetails {
  position: relative;
  padding: 0 clamp(55px, 6vw, 120px) 75px 55px;
}
.roomEyebrow {
  position: absolute;
  z-index: 3;
  top: -178px;
  right: clamp(55px, 6vw, 120px);
  left: 55px;
  font-size: 16px;
  letter-spacing: 0.16em;
}
.roomEyebrow a {
  position: relative;
  z-index: 1;
  margin-left: 12px;
  color: #c9874e;
  border-bottom: 1px solid;
  cursor: pointer;
  pointer-events: auto;
}
.roomDetails h1 {
  position: absolute;
  top: -140px;
  right: clamp(55px, 6vw, 120px);
  left: 55px;
  margin: 0;
  font-size: 34px;
  font-weight: 500;
  letter-spacing: 0.14em;
  line-height: 1.45;
}
.mobileRoomName,
.mobileRoomTitle,
.mobileSingleLink {
  display: none;
}
.roomFacts {
  display: grid;
  grid-template-columns: 0.8fr 0.8fr 1.1fr 1.7fr;
  margin: 0 0 30px;
  padding: 20px 0;
  border-top: 1px solid var(--room-line);
  border-bottom: 1px solid var(--room-line);
}
.roomFacts div {
  text-align: center;
  border-right: 1px solid #b9af9f;
}
.roomFacts div:last-child {
  border-right: 0;
}
.roomFacts dt {
  font-size: 15px;
  letter-spacing: 0.08em;
  white-space: nowrap;
}
.roomLead {
  font-size: 15px;
  line-height: 1.9;
  letter-spacing: 0.035em;
}
.roomLead p {
  margin: 0;
}
/*
  FT-006：容器常駐於 HTML（不再用 {if} 整個省略），改用 `hidden` 屬性
  切換，讓 room-common.js 在館別本身沒有這些欄位、但選到的房型有時也能
  插入內容（CR-003：兩層各自持有、不共用不繼承）。`.facilityIcons`／
  `.facilityList` 已經自己宣告 `display: grid`——瀏覽器內建的
  `[hidden] { display: none }` 規則跟它同源同層級時是「後者覆蓋前者」
  （UA 規則永遠先於作者規則被覆蓋，跟先後順序無關），所以這裡要明寫一條
  比 `.facilityIcons` 單一 class 更高特異度的規則才擋得住。
*/
.floorList[hidden],
.facilities[hidden],
.facilityIcons[hidden],
.facilityList[hidden] {
  display: none;
}
.floorList {
  margin: 35px 0 0 6px;
  padding-left: 28px;
  border-left: 1px dashed #e9a563;
}
.floorList section {
  position: relative;
  margin: 0 0 34px;
}
.floorList section:last-child {
  margin-bottom: 0;
}
.floorList i {
  position: absolute;
  left: -35px;
  top: 6px;
  width: 12px;
  height: 12px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #efa254;
  box-shadow: 0 0 0 1px #e9a563;
}
.floorList h2 {
  margin: 0 0 10px;
  font-size: 22px;
  font-weight: 400;
  letter-spacing: 0.04em;
}
.floorList h2 span {
  font-size: 15px;
}
.floorList p {
  margin: 3px 0;
  font-size: 13px;
  letter-spacing: 0.03em;
}
.primaryBooking {
  display: flex;
  width: min(310px, 100%);
  height: 66px;
  margin: 22px 0 0 auto;
  align-items: center;
  justify-content: center;
  background: var(--room-orange);
  color: #fff;
  font-size: 17px;
  letter-spacing: 0.18em;
}
.singleRoomDetails .roomLead {
  font-size: 16px;
  line-height: 1.8;
}
.singleRoomDetails .roomLead p {
  margin: 0 0 22px;
}
.singleRoomDetails .roomLead p:last-child {
  margin-bottom: 0;
}
.singleRoomDetails .roomFacts {
  grid-template-columns: 0.7fr 0.65fr 1.45fr 1.55fr;
}
.singleRoomDetails .primaryBooking {
  margin-top: 170px;
}
.facilities {
  padding: 48px 20px 68px;
  background: linear-gradient(90deg, #c19460 0%, #c89e6f 48%, #bd8e56 100%);
  color: #fff;
}
.facilitiesInner {
  max-width: 760px;
  margin: auto;
}
.facilities header {
  text-align: center;
}
.facilities h2 {
  margin: 0;
  font-size: 27px;
  font-weight: 500;
  letter-spacing: 0.12em;
}
.facilities header span {
  font-size: 14px;
  letter-spacing: 0.12em;
  opacity: 0.86;
}
.facilityIcons {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 42px 22px;
  margin: 52px 0 35px;
}
.facilityIcons > div {
  text-align: center;
}
.facilityIcons span {
  display: grid;
  width: 48px;
  height: 45px;
  margin: 0 auto 10px;
  place-items: center;
}
.facilityIcons img {
  max-width: 100%;
  max-height: 100%;
  filter: brightness(0) invert(1);
}
.facilityIcons b {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: 0.04em;
}
.facilityList {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.62);
}
.facilityList ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.facilityList li {
  position: relative;
  margin: 0 0 9px;
  padding-left: 11px;
  font-size: 12pt;
  line-height: 1.55;
}
.facilityList li:before {
  content: "・";
  position: absolute;
  left: 0;
}
.otherRooms {
  scroll-margin-top: 90px;
  padding: 85px max(5.5vw, 30px) 105px;
  background: #faf9f6;
}
.otherRoomsHeading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 35px;
}
.otherRooms h2 {
  margin: 0;
  font-size: 32px;
  font-weight: 500;
  letter-spacing: 0.14em;
}
.otherRooms h2 span {
  font-size: 18px;
  letter-spacing: 0.04em;
}
.otherRoomNav {
  display: flex;
  gap: 10px;
}
.otherRoomNav button {
  display: flex;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #c8beb1;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: #7b7165;
  font-family: Arial, sans-serif;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}
.otherRoomNav button::first-line {
  line-height: 1;
}
.otherRoomViewport {
  overflow: hidden;
}
.otherRoomTrack {
  display: flex;
  gap: 24px;
  transition: transform 0.6s cubic-bezier(0.22, 0.7, 0.25, 1);
}
.otherRoomTrack.noTransition {
  transition: none;
}
.otherRoomCard {
  flex: 0 0 calc((100% - 48px) / 3);
  min-width: 0;
}
.otherRoomCard img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}
.otherRoomCard span {
  display: flex;
  padding-top: 12px;
  align-items: center;
  justify-content: space-between;
  font-size: 17px;
  letter-spacing: 0.06em;
}
.otherRoomCard i {
  display: flex;
  height: 1em;
  align-items: center;
  align-self: center;
  font-style: normal;
  line-height: 1;
}
.lightbox {
  position: fixed;
  z-index: 300;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
}
.lightbox.open {
  opacity: 1;
  visibility: visible;
}
.lightboxBackdrop {
  position: absolute;
  inset: 0;
  background: rgba(24, 21, 18, 0.92);
}
.lightbox figure {
  position: relative;
  z-index: 1;
  width: min(1100px, 82vw);
  height: min(78vh, 760px);
  margin: 0;
}
.lightbox figure img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.lightbox figcaption {
  position: absolute;
  right: 0;
  bottom: -28px;
  color: #fff;
  font: 13px Arial;
  letter-spacing: 0.12em;
}
.lightboxClose,
.lightboxArrow {
  position: absolute;
  z-index: 2;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
}
.lightboxClose {
  right: 28px;
  top: 18px;
  font-size: 48px;
  font-weight: 200;
}
.lightboxArrow {
  top: 50%;
  font-size: 70px;
  transform: translateY(-50%);
}
.lightboxPrev {
  left: 3vw;
}
.lightboxNext {
  right: 3vw;
}
@media (max-width: 900px) {
  .roomIntro::before {
    width: 100%;
    background-position: center top;
    background-size: cover;
  }
  html {
    scroll-padding-top: 62px;
  }
  .roomIntro {
    min-height: 0;
    padding-top: 62px;
    background: #f5f2ee;
  }
  .roomTopbar {
    z-index: 20;
    width: auto;
    margin: 0;
    padding: 28px 14px 15px;
  }
  .breadcrumbs {
    gap: 7px;
    font-size: 11px;
    letter-spacing: 0.08em;
    white-space: nowrap;
  }
  .houseSelect {
    width: 100%;
    margin-top: 21px;
  }

  .houseSelectTrigger {
    height: 46px;
    padding: 0 17px;
    font-size: 14px;
  }

  .houseSelectTrigger svg {
    width: 17px;
  }

  .houseSelectMenu {
    top: calc(100% + 7px);
    border-radius: 13px;
  }

  .houseSelectMenu a {
    min-height: 48px;
    padding: 0 18px;
    font-size: 14px;
  }
  .roomIntroGrid {
    display: flex;
    flex-direction: column;
  }
  .gallery {
    width: 100%;
  }
  .galleryMain {
    height: 270px;
    border-radius: 0 38px 0 0;
  }
  .galleryZoom {
    display: none;
  }
  .galleryThumbShell {
    width: auto;
    margin: 18px 14px 0;
    padding: 0;
  }
  .galleryThumbs {
    display: flex;
    width: auto;
    margin: 0;
    gap: 5px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
  }
  .galleryThumbs [data-clone] {
    display: block;
  }
  .galleryThumbs::-webkit-scrollbar {
    display: none;
  }
  .galleryThumbs button {
    flex: 0 0 calc((100% - 15px) / 4);
    height: 62px;
  }
  .thumbArrow {
    width: 21px;
  }

  .thumbArrow::before {
    border-top-width: 6px;
    border-bottom-width: 6px;
  }

  .thumbPrev::before {
    border-right-width: 7px;
  }

  .thumbNext::before {
    border-left-width: 7px;
  }
  .thumbPrev {
    left: 0;
  }
  .thumbNext {
    right: 0;
  }
  .roomDetails {
    padding: 20px 14px 42px;
  }
  .roomEyebrow {
    position: static;
    display: none;
  }
  .roomDetails h1 {
    position: static;
    margin: 0 0 27px;
  }
  .desktopRoomTitle {
    display: none;
  }
  .mobileRoomName,
  .mobileRoomTitle {
    display: block;
  }
  .mobileRoomName {
    margin-bottom: 9px;
    font-size: 15px;
    font-weight: 400;
    letter-spacing: 0.16em;
  }
  .mobileRoomTitle {
    font-size: 25px;
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: 0.1em;
  }
  .roomFacts {
    grid-template-columns: 0.75fr 0.75fr 1.1fr 1.9fr;
    margin-bottom: 24px;
    padding: 14px 0;
  }
  .roomFacts dt {
    font-size: 14px;
    letter-spacing: 0.03em;
  }
  .roomLead {
    font-size: 15px;
    line-height: 1.9;
  }
  .floorList {
    margin: 38px 0 0 32px;
    padding-left: 25px;
  }
  .floorList h2 {
    font-size: 24px;
  }
  .floorList h2 span {
    font-size: 16px;
  }
  .floorList p {
    font-size: 13px;
    line-height: 1.65;
  }
  .floorList section {
    margin-bottom: 44px;
  }
  .floorList i {
    left: -32px;
  }
  .mobileSingleLink {
    display: block;
    margin: 38px 0 21px;
    text-align: center;
    color: #c9874e;
    font-size: 14px;
    text-decoration: underline;
    letter-spacing: 0.1em;
  }
  .primaryBooking {
    width: 100%;
    height: 58px;
    margin: 0;
    font-size: 17px;
  }
  .singleRoomDetails .roomFacts {
    grid-template-columns: 0.7fr 0.6fr 1.55fr 1.65fr;
  }
  .singleRoomDetails .roomFacts dt {
    font-size: 13px;
  }
  .singleRoomDetails .roomLead {
    font-size: 15px;
    line-height: 1.75;
  }
  .singleRoomDetails .roomLead p {
    margin-bottom: 16px;
  }
  .singleRoomDetails .roomLead p:last-child {
    margin-bottom: 0;
  }
  .singleRoomDetails .primaryBooking {
    margin-top: 36px;
  }
  .facilities {
    padding: 38px 14px 48px;
    background: linear-gradient(90deg, #c19460 0%, #c89e6f 48%, #bd8e56 100%);
  }
  .facilities h2 {
    font-size: 26px;
  }
  .facilities header span {
    font-size: 14px;
  }
  .facilityIcons {
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    margin: 34px 0;
  }
  .facilityIcons > div {
    min-height: 108px;
    padding: 12px 7px;
    border-right: 1px solid rgba(255, 255, 255, 0.45);
    border-bottom: 1px solid rgba(255, 255, 255, 0.45);
  }
  .facilityIcons > div:nth-child(3n) {
    border-right: 0;
  }
  .facilityIcons > div:nth-last-child(-n + 1) {
    border-bottom: 0;
  }
  .facilityIcons span {
    width: 40px;
    height: 38px;
  }
  .facilityIcons b {
    font-size: 13px;
  }
  .facilityList {
    grid-template-columns: repeat(3, 1fr);
    gap: 11px 15px;
    padding-top: 25px;
  }
  .facilityList li {
    margin-bottom: 8px;
    padding-left: 9px;
    font-size: 12px;
    line-height: 1.55;
  }
  .otherRooms {
    scroll-margin-top: 90px;
    padding: 47px 14px 56px;
  }
  .otherRoomsHeading {
    justify-content: center;
    margin-bottom: 30px;
    text-align: center;
  }
  .otherRooms h2 {
    font-size: 27px;
  }
  .otherRooms h2 span {
    display: block;
    margin-top: 6px;
    font-size: 14px;
  }
  .otherRoomNav {
    display: none;
  }
  .otherRoomViewport {
    overflow: visible;
  }
  .otherRoomTrack {
    display: block;
    transform: none !important;
  }
  .otherRoomCard {
    display: block;
    margin-bottom: 24px;
  }
  .otherRoomCard[data-clone] {
    display: none;
  }
  .otherRoomCard img {
    height: auto;
    aspect-ratio: 1.48;
    object-fit: cover;
  }
  .otherRoomCard span {
    font-size: 16px;
  }
  .lightbox figure {
    width: 92vw;
    height: 72vh;
  }
  .lightboxArrow {
    font-size: 52px;
  }
  .lightboxPrev {
    left: 0;
  }
  .lightboxNext {
    right: 0;
  }
  .lightboxClose {
    right: 14px;
    top: 8px;
  }
}
@media (max-width: 420px) {
  .galleryMain {
    height: 255px;
  }
  .roomFacts dt {
    font-size: 13px;
  }
  .roomDetails {
    padding-right: 13px;
    padding-left: 13px;
  }
}
