/* RBR_STAY_GALLERY_V1 - isolated to Stay and its native dialogs */
.room-typology[data-rbr-stay-gallery="v1"] > .section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
  column-gap: clamp(28px, 5vw, 88px);
  margin-bottom: clamp(28px, 4vw, 58px);
}
.room-typology[data-rbr-stay-gallery="v1"] > .section-heading > div:first-child {
  min-width: 0;
}
.room-typology .rbr-stay-intro-photo {
  width: 100%;
  margin: 0;
  position: relative;
}
.room-typology .rbr-stay-intro-photo[hidden],
.rbr-room-dialog [hidden], .rbr-room-lightbox [hidden],
.room-typology [data-rbr-room-cover][hidden] { display: none !important; }
.room-typology .rbr-stay-intro-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: center;
}
.room-typology .rbr-stay-intro-photo figcaption {
  color: #64726c;
  font-size: 11px;
  padding-top: 8px;
  text-align: right;
}
.room-typology .room-cards > div {
  min-width: 0;
}
.room-typology .rbr-room-entry {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  min-height: 170px;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: inherit;
  background: transparent;
  text-align: left;
  font: inherit;
  cursor: pointer;
}
.room-typology .rbr-room-entry > span:first-child {
  font-size: 11px;
  letter-spacing: 0.08em;
  opacity: 0.75;
}
.room-typology .rbr-room-entry h3 {
  margin: 14px 0 9px;
}
.room-typology .rbr-room-entry p {
  margin: 0;
  line-height: 1.75;
}
.room-typology .rbr-room-cover {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  margin: 0 0 20px;
  transition: filter .18s ease;
}
.room-typology .rbr-room-view {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  margin-top: auto;
  padding: 20px 0 4px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #224e49;
  border-bottom: 1px solid currentColor;
}
.room-typology .rbr-room-entry:hover .rbr-room-view {
  color: #977349;
}
.room-typology .rbr-room-entry:hover .rbr-room-cover { filter: brightness(.94); }
.room-typology .rbr-room-entry:focus-visible,
.rbr-room-dialog button:focus-visible,
.rbr-room-dialog a:focus-visible,
.rbr-room-lightbox button:focus-visible {
  outline: 3px solid #b08b57;
  outline-offset: 5px;
}
.rbr-room-dialog, .rbr-room-lightbox {
  border: 0;
  padding: 0;
  max-width: none;
  color: #193e39;
  background: #f9f8f4;
  box-shadow: 0 24px 80px rgba(0,0,0,.2);
}
.rbr-room-dialog::backdrop, .rbr-room-lightbox::backdrop {
  background: rgba(5,22,23,.78);
}
.rbr-room-dialog {
  width: min(1160px, calc(100vw - 48px));
  max-height: min(90dvh, 900px);
  overflow: auto;
}
.rbr-room-modal { padding: clamp(20px, 3.4vw, 48px); }
.rbr-room-modal-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: clamp(18px, 3vw, 32px);
}
.rbr-room-kicker {
  letter-spacing: .22em;
  color: #65756e;
  font: 600 10px/1.7 Arial, sans-serif;
  margin: 0 0 9px;
}
.rbr-room-modal h2 {
  margin: 0;
  font: 400 clamp(30px,3.1vw,48px)/1.18 Georgia,'Noto Serif TC',serif;
}
.rbr-room-icon-button {
  width: 42px;
  height: 42px;
  border: 1px solid #b5c0ba;
  background: transparent;
  color: #244740;
  font: 27px/1 Arial, sans-serif;
  cursor: pointer;
  flex: none;
}
.rbr-room-modal-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(240px, .7fr);
  gap: clamp(24px, 3vw, 48px);
}
.rbr-room-photo-column { min-width: 0; }
.rbr-room-photo-stage { position: relative; background: #eaebe7; }
.rbr-room-zoom-trigger {
  display: block;
  width: 100%;
  border: 0;
  padding: 0;
  cursor: zoom-in;
  background: transparent;
}
.rbr-room-zoom-trigger img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  max-height: 57dvh;
  background: #e5e8e4;
}
.rbr-room-no-photo {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 250px;
  color: #6c746e;
  font-size: 14px;
}
.rbr-room-photo-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: rgba(11,35,34,.83);
  color: #fff;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 7px 12px;
  font: 12px Arial, sans-serif;
}
.rbr-room-photo-nav button {
  border: 0;
  color: #fff;
  font: 21px/1.2 Arial, sans-serif;
  background: transparent;
  padding: 3px 10px;
  cursor: pointer;
}
.rbr-room-thumbs { display: flex; gap: 9px; margin-top: 13px; overflow-x: auto; padding: 0 0 7px; }
.rbr-room-thumb {
  flex: 0 0 92px;
  border: 2px solid transparent;
  padding: 2px;
  background: transparent;
  cursor: pointer;
}
.rbr-room-thumb[aria-pressed="true"] { border-color: #986f44; }
.rbr-room-thumb img { display: block; width: 100%; height: 67px; object-fit: cover; }
.rbr-room-credit { min-height: 16px; margin: 6px 0 0; text-align: right; font: 11px/1.4 Arial,sans-serif; color: #65746d; }
.rbr-room-specs { font: 13px/1.9 Arial,sans-serif; color: #556a61; margin: 0 0 24px; }
.rbr-room-information h3 { margin: 20px 0 10px; font: 400 22px/1.35 Georgia,'Noto Serif TC',serif; }
.rbr-room-summary { font: 14px/1.95 Arial,'Noto Sans TC',sans-serif; white-space: pre-line; }
.rbr-room-amenities ul { padding: 0 0 0 18px; margin: 7px 0 20px; line-height: 1.9; font-size: 13px; }
.rbr-room-plan-link {
  display: inline-block;
  margin-top: 24px;
  padding: 13px 18px;
  background: #193f39;
  color: white !important;
  font: 600 12px/1.5 Arial,'Noto Sans TC',sans-serif;
  text-decoration: none;
  letter-spacing: .04em;
}
.rbr-room-plan-link:hover { background: #325e56; }
.rbr-room-lightbox {
  width: 100vw;
  height: 100dvh;
  max-height: 100dvh;
  background: #071415;
  color: white;
}
.rbr-room-lightbox-inner {
  display: grid;
  grid-template-columns: 50px minmax(0,1fr) 50px;
  align-items: center;
  width: 100%;
  height: 100%;
  gap: 4px;
  padding: 50px 10px 12px;
  box-sizing: border-box;
}
.rbr-room-lightbox-close {
  position: absolute;
  right: 15px;
  top: 10px;
  color: white;
  background: transparent;
  border: 0;
  font: 34px/1 Arial,sans-serif;
  cursor: pointer;
  padding: 2px 10px;
}
.rbr-room-lightbox-arrow { border: 0; color: white; background: transparent; font: 29px/1 Arial,sans-serif; cursor: pointer; padding: 16px 5px; }
.rbr-room-lightbox figure { margin: 0; min-width: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; height: 100%; }
.rbr-room-lightbox img { max-width: 100%; max-height: calc(100dvh - 110px); width: auto; height: auto; object-fit: contain; }
.rbr-room-lightbox figcaption { color: #d1dbd8; font: 12px/1.5 Arial,sans-serif; text-align: center; padding: 9px; }
@media (max-width: 760px) {
  .room-typology[data-rbr-stay-gallery="v1"] > .section-heading { grid-template-columns: minmax(0,1fr); gap: 25px; }
  .room-typology .rbr-stay-intro-photo img { aspect-ratio: 4/3; }
  .room-typology .rbr-room-entry { min-height: 145px; }
  .rbr-room-dialog { width: 100vw; max-height: 100dvh; height: 100dvh; }
  .rbr-room-modal { padding: 18px; }
  .rbr-room-modal-grid { grid-template-columns: 1fr; gap: 18px; }
  .rbr-room-modal h2 { font-size: 30px; }
  .rbr-room-zoom-trigger img { max-height: 40dvh; }
  .rbr-room-thumb { flex-basis: 75px; }
  .rbr-room-thumb img { height: 55px; }
  .rbr-room-lightbox-inner { grid-template-columns: 34px minmax(0,1fr) 34px; padding: 46px 4px 12px; }
  .rbr-room-lightbox-arrow { font-size: 23px; padding: 8px 3px; }
}
@media (prefers-reduced-motion: reduce) {
  .room-typology .rbr-room-cover { transition: none; }
}

/* RBR_STAY_ROOM_VIDEO_V1_1 - video displayed inside existing gallery stage */
.rbr-room-tour-video {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  max-height: 57dvh;
  object-fit: contain;
  background: #111d1c;
}
.rbr-room-video-thumb {
  position: relative;
  height: 75px;
  color: #fff;
  background: #183b36;
}
.rbr-room-video-thumb img { opacity: .6; }
.rbr-room-video-play {
  position: absolute;
  top: 11px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 35px;
  border: 1px solid #fff;
  border-radius: 50%;
  background: rgba(0,0,0,.3);
  font-size: 14px;
}
.rbr-room-video-label {
  position: absolute;
  bottom: 4px;
  right: 5px;
  font: 600 9px/1.2 Arial,sans-serif;
  letter-spacing: .06em;
  text-shadow: 0 1px 3px #000;
}
.rbr-room-video-thumb:not(:has(img)) { min-width: 92px; }
@media(max-width: 600px){
 .rbr-room-tour-video { aspect-ratio: 1 / 1; max-height: 60dvh; }
}

/* Keep the browser's native video controls uncovered by photo navigation. */
.rbr-room-photo-stage.is-video .rbr-room-photo-nav {
  position: relative;
  left: auto;
  right: auto;
  bottom: auto;
}
