/* Room detail layout adapted from docs/reference/room-detail/RoomDetailPage.tsx. */
.single-room-layout-reference {
  --font-serif: "Noto Serif", "Roboto Slab", Georgia, "Times New Roman", serif;
  --font-sans: "Raleway", ui-sans-serif, system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --vx-room-page: #fcfdff;
  --vx-room-surface: #ffffff;
  --vx-room-surface-soft: #f8fafc;
  --vx-room-surface-muted: #f3f6f9;
  --vx-room-border-soft: #e5ebf1;
  --vx-room-divider: #dfe7ee;
  --vx-room-text-muted: #68798f;
  --vx-room-primary: #326595;
  --vx-room-primary-hover: #29567f;
  background:
    linear-gradient(180deg, var(--vx-room-page) 0, #fff 34rem),
    var(--vx-room-page);
  color: hsl(var(--foreground, 222 47% 11%));
  font-family: var(--font-sans);
}

.single-room-layout-reference .text-muted-foreground {
  color: var(--vx-room-text-muted);
}

.vx-room-topbar {
  position: sticky;
  top: 4rem;
  margin-bottom: 4rem;
  background: rgb(255 255 255 / 0.94);
  border-bottom: 1px solid var(--vx-room-border-soft);
  box-shadow: 0 1px 10px rgb(30 64 94 / 0.025);
  backdrop-filter: blur(14px);
}

.vx-room-breadcrumb {
  min-width: 0;
  max-width: 58%;
}

.vx-room-breadcrumb > :first-child,
.vx-room-breadcrumb [aria-current="page"] {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vx-room-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
  height: clamp(420px, 43vw, 540px);
  overflow: hidden;
  border-radius: 1rem;
  background: hsl(var(--muted, 210 40% 96%));
}

.vx-room-gallery-main {
  grid-column: span 3;
  grid-row: span 2;
  width: 100%;
  height: 100%;
  aspect-ratio: auto !important;
  border: 0 !important;
  border-radius: 0.75rem 0 0 0.75rem;
  box-shadow: none !important;
}

.vx-room-gallery-main::after,
.vx-room-gallery-thumb-shade {
  content: "";
  position: absolute;
  inset: 0;
  background: rgb(15 23 42 / 0);
  transition: background-color 220ms ease;
  pointer-events: none;
}

.vx-room-gallery-main:hover::after,
.vx-room-gallery-thumb:hover .vx-room-gallery-thumb-shade {
  background: rgb(15 23 42 / 0.12);
}

.vx-room-gallery-main [data-single-room-image],
.vx-room-gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 650ms ease, opacity 500ms ease;
}

.vx-room-gallery-main:hover [data-single-room-image],
.vx-room-gallery-thumb:hover img {
  transform: scale(1.025);
}

.vx-room-gallery-side {
  display: grid;
  grid-column: span 1;
  grid-row: span 2;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
  min-width: 0;
}

.vx-room-gallery-thumb {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border: 0;
  padding: 0;
  background: hsl(var(--muted, 210 40% 96%));
  cursor: pointer;
}

.vx-room-gallery-thumb:only-child {
  grid-row: span 2;
}

.vx-room-gallery-count {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  color: #fff;
  background: rgb(2 6 23 / 0.52);
  font-size: 0.875rem;
  font-weight: 650;
  pointer-events: none;
}

.vx-room-gallery-main [data-single-gallery-prev],
.vx-room-gallery-main [data-single-gallery-next],
.vx-room-gallery-main [data-single-gallery-dots] {
  display: none;
}

.vx-room-view-photos {
  display: none;
}

.vx-room-main-card {
  overflow: visible;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.vx-room-main-shell {
  margin-top: 0 !important;
}

.vx-room-detail-intro {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.vx-room-intro-heading {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.vx-room-detail-intro h1 {
  margin: 0;
  font-family: var(--font-serif, Georgia, "Times New Roman", serif);
  font-weight: 600;
  letter-spacing: -0.025em;
}

.vx-room-location {
  line-height: 1.5;
}

.vx-room-location > :is(i, svg) {
  margin-top: 0.1rem;
}

.vx-room-location-link {
  border-radius: 0.2rem;
  color: inherit;
  text-decoration: none;
  text-underline-offset: 0.2em;
  transition: color 160ms ease;
}

.vx-room-location-link:hover {
  color: var(--vx-room-primary);
  text-decoration: underline;
}

.vx-room-location-link:focus-visible {
  outline: 2px solid rgb(50 101 149 / 0.4);
  outline-offset: 3px;
}

.vx-room-detail-layout > hr,
.vx-room-detail-layout > [data-promo-section],
.vx-room-detail-layout > [data-offers-block] {
  border-color: var(--vx-room-divider);
}

.vx-room-quick-stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
  padding-top: 0.2rem;
  border: 0;
  color: var(--vx-room-text-muted);
  font-size: 0.9rem;
}

.vx-room-quick-stats > .vx-room-stat {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
}

.vx-room-stat-icon {
  color: var(--vx-room-primary);
}

.vx-room-stat-separator {
  color: var(--vx-room-divider);
  font-size: 1rem;
}

.vx-room-rating-icon {
  fill: #f5aa00;
  color: #f5aa00;
}

.vx-room-package-kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
}

.vx-room-package-kicker__theme,
.vx-room-package-kicker__badge {
  display: inline-flex;
  align-items: center;
  min-height: 1.8rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.2;
}

.vx-room-package-kicker__theme {
  gap: 0.4rem;
  padding: 0.3rem 0.7rem;
  border: 1px solid rgb(50 101 149 / 0.22);
  color: var(--vx-room-primary);
  background: #f1f6fa;
}

.vx-room-package-kicker__theme svg {
  width: 0.95rem;
  height: 0.95rem;
  color: #e67e47;
}

.vx-room-package-kicker__badge {
  padding: 0.3rem 0.68rem;
  color: #fff;
  background: #e67e47;
}

.vx-room-stat--package-stay .vx-room-stat-icon {
  color: #e67e47;
}

.vx-room-about-copy {
  color: var(--vx-room-text-muted);
}

.vx-room-about-copy > :first-child {
  margin-top: 0;
}

.vx-room-about-copy > :last-child {
  margin-bottom: 0;
}

.vx-room-about-heading {
  margin-bottom: 0.75rem !important;
}

.vx-room-about-heading h2 {
  margin: 0 !important;
}

.vx-room-about-summary,
.vx-room-amenities {
  margin-bottom: 2.5rem !important;
}

.vx-room-content-section,
.vx-room-features,
.vx-room-detail-layout > [data-promo-section],
.vx-room-detail-layout > [data-offers-block] {
  padding-top: 2.5rem;
  border-top: 1px solid var(--vx-room-divider);
}

.vx-room-content-section > div:first-child > div.h-px,
.vx-room-features > div:first-child > div.h-px {
  display: none;
}

.vx-room-content-section > div:first-child,
.vx-room-features > div:first-child {
  justify-content: flex-start;
}

.vx-room-content-section h2,
.vx-room-features h2 {
  font-family: var(--font-serif, Georgia, "Times New Roman", serif);
  font-size: 1.35rem !important;
  font-weight: 600 !important;
}

.vx-room-amenities [data-room-amenities-tags] {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.vx-room-amenities [data-room-amenities-tags] > span {
  min-height: 3.75rem;
  padding: 0.75rem;
  border: 1px solid var(--vx-room-border-soft) !important;
  border-radius: 1.1rem;
  background: rgb(248 250 252 / 0.78) !important;
  box-shadow: 0 1px 2px rgb(30 64 94 / 0.015);
  transform: none !important;
}

.vx-room-amenities [data-room-amenities-tags] > span:hover {
  border-color: #dce6ef !important;
  background: var(--vx-room-surface-soft) !important;
}

.vx-room-amenities [data-room-amenities-tags] > span > :is(i, svg):first-child {
  width: 2.85rem;
  height: 2.85rem;
  padding: 0.8rem;
  border-radius: 0.8rem;
  color: var(--vx-room-primary);
  background: #eaf1f7;
}

.vx-room-features > .grid > div {
  padding: 1.25rem !important;
  border: 1px solid var(--vx-room-border-soft) !important;
  border-radius: 1.15rem !important;
  background: rgb(251 252 254 / 0.86) !important;
  box-shadow: none !important;
}

.vx-room-features > .grid > div:hover {
  border-color: #d7e3ed !important;
  background: var(--vx-room-surface) !important;
}

.vx-room-features > .grid > div h3 > div {
  color: var(--vx-room-primary);
  background: #edf3f8 !important;
}

.vx-room-booking-card,
.vx-room-contact-card {
  border: 1px solid var(--vx-room-border-soft) !important;
  border-radius: 1.35rem !important;
  background: var(--vx-room-surface);
}

.vx-room-booking-card {
  box-shadow: 0 16px 34px rgb(30 64 94 / 0.09) !important;
}

.vx-room-booking-card > :first-child {
  border-color: var(--vx-room-border-soft) !important;
  background: var(--vx-room-surface-muted) !important;
}

.vx-room-package-booking-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 0.75rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--vx-room-border-soft);
}

.vx-room-package-booking-meta > span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
  color: var(--vx-room-primary);
  font-size: 0.8125rem;
  font-weight: 700;
}

.vx-room-package-booking-meta > span svg {
  width: 1rem;
  height: 1rem;
  flex: 0 0 auto;
  color: #e67e47;
}

.vx-room-package-booking-meta > strong {
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
  color: #b6511d;
  background: #fff0e7;
  font-size: 0.7rem;
  font-weight: 700;
}

.vx-room-package-benefits__panel {
  overflow: hidden;
  padding: 1.5rem;
  border: 1px solid rgb(230 126 71 / 0.22);
  border-radius: 1.15rem;
  background: linear-gradient(135deg, rgb(230 126 71 / 0.055), rgb(50 101 149 / 0.04));
}

.vx-room-package-benefits__heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 1.5rem;
}

.vx-room-package-benefits__eyebrow {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 0.35rem;
  color: #d96d32;
  font-size: 0.75rem;
  font-weight: 750;
  line-height: 1.3;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.vx-room-package-benefits__eyebrow svg {
  width: 1rem;
  height: 1rem;
}

.vx-room-package-benefits__heading h2 {
  margin: 0 !important;
  color: var(--foreground);
}

.vx-room-package-benefits__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.55rem;
}

.vx-room-package-benefits__badge,
.vx-room-package-benefits__stay {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.2;
}

.vx-room-package-benefits__badge {
  padding: 0.4rem 0.7rem;
  color: #fff;
  background: #e67e47;
}

.vx-room-package-benefits__stay {
  gap: 0.4rem;
  padding: 0.38rem 0.7rem;
  border: 1px solid var(--vx-room-border-soft);
  color: var(--vx-room-text-muted);
  background: rgb(255 255 255 / 0.82);
}

.vx-room-package-benefits__stay svg {
  width: 0.95rem;
  height: 0.95rem;
  color: var(--vx-room-primary);
}

.vx-room-package-benefits__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem 1.5rem;
  margin: 1.35rem 0 0;
  padding: 1.25rem 0 0;
  border-top: 1px solid rgb(50 101 149 / 0.12);
  list-style: none;
}

.vx-room-package-benefits__list li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  min-width: 0;
  color: var(--vx-room-text-muted);
  line-height: 1.5;
}

.vx-room-package-benefits__check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  flex: 0 0 auto;
  margin-top: 0.05rem;
  border-radius: 999px;
  color: var(--vx-room-primary);
  background: #eaf1f7;
}

.vx-room-package-benefits__check svg {
  width: 0.8rem;
  height: 0.8rem;
  stroke-width: 2.5;
}

.vx-room-booking-card [data-modal-open="booking-modal"],
.vx-room-bottom-cta [data-modal-open="booking-modal"],
.vx-room-mobile-cta [data-modal-open="booking-modal"] {
  background: var(--vx-room-primary) !important;
  box-shadow: none !important;
}

.vx-room-booking-card [data-modal-open="booking-modal"]:hover,
.vx-room-bottom-cta [data-modal-open="booking-modal"]:hover,
.vx-room-mobile-cta [data-modal-open="booking-modal"]:hover {
  background: var(--vx-room-primary-hover) !important;
}

.vx-room-contact-card {
  box-shadow: 0 6px 18px rgb(30 64 94 / 0.035);
}

.vx-room-contact-card a:hover {
  background: var(--vx-room-surface-muted) !important;
}

.vx-room-detail-layout > [data-promo-section] > div,
.vx-room-detail-layout > [data-offers-block] > div {
  border-width: 1px !important;
  border-color: rgb(238 126 71 / 0.2) !important;
  background: linear-gradient(135deg, rgb(238 126 71 / 0.055), rgb(50 101 149 / 0.035)) !important;
  box-shadow: none !important;
}

.vx-room-bottom-cta {
  border: 1px solid #dce7f0 !important;
  background: linear-gradient(135deg, #f5f8fb, #fafcfe) !important;
  box-shadow: none !important;
}

.vx-room-mobile-cta {
  display: none;
}

.vx-room-lightbox[hidden] {
  display: none;
}

.vx-room-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgb(2 6 23 / 0.96);
}

.vx-room-lightbox-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(1120px, calc(100vw - 7rem));
  height: min(82vh, 760px);
  margin: 0;
}

.vx-room-lightbox-stage img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  border-radius: 0.75rem;
  object-fit: contain;
  box-shadow: 0 24px 80px rgb(0 0 0 / 0.45);
}

.vx-room-lightbox-stage figcaption {
  position: absolute;
  top: 1.4rem;
  left: 50%;
  color: rgb(255 255 255 / 0.8);
  font-size: 0.875rem;
  transform: translateX(-50%);
}

.vx-room-lightbox-close,
.vx-room-lightbox-arrow {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: rgb(255 255 255 / 0.1);
  cursor: pointer;
  transition: background-color 160ms ease, transform 160ms ease;
}

.vx-room-lightbox-close:hover,
.vx-room-lightbox-arrow:hover {
  background: rgb(255 255 255 / 0.2);
}

.vx-room-lightbox-close {
  top: 1.25rem;
  right: 1.25rem;
  width: 2.75rem;
  height: 2.75rem;
}

.vx-room-lightbox-arrow {
  top: 50%;
  width: 3rem;
  height: 3rem;
  transform: translateY(-50%);
}

.vx-room-lightbox-arrow.is-prev {
  left: 1rem;
}

.vx-room-lightbox-arrow.is-next {
  right: 1rem;
}

.vx-room-lightbox-thumbs {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  display: flex;
  gap: 0.45rem;
  max-width: calc(100vw - 2rem);
  overflow-x: auto;
  padding: 0.25rem;
  transform: translateX(-50%);
}

.vx-room-lightbox-thumbs button {
  width: 3.75rem;
  height: 2.75rem;
  flex: 0 0 auto;
  overflow: hidden;
  padding: 0;
  border: 2px solid rgb(255 255 255 / 0.3);
  border-radius: 0.4rem;
  opacity: 0.58;
  background: transparent;
  cursor: pointer;
}

.vx-room-lightbox-thumbs button.is-active {
  border-color: #fff;
  opacity: 1;
}

.vx-room-lightbox-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body.vx-room-lightbox-open {
  overflow: hidden;
}

@media (min-width: 1024px) {
  .vx-room-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr);
    column-gap: 3.5rem;
    align-items: start;
  }

  .vx-room-detail-header {
    display: contents;
  }

  .vx-room-detail-intro {
    grid-column: 1;
    grid-row: 1;
    padding-bottom: 2.5rem;
  }

  .vx-room-detail-sidebar {
    position: sticky;
    top: 5.5rem;
    grid-column: 2;
    grid-row: 1 / span 40;
    align-self: start;
  }

  .vx-room-detail-sidebar > .sticky {
    position: static;
  }

  .vx-room-detail-layout > :not(.vx-room-detail-header) {
    grid-column: 1;
  }
}

@media (max-width: 1023px) {
  .vx-room-main-shell {
    margin-top: 1rem !important;
  }

  .vx-room-detail-sidebar {
    margin-top: 1.5rem;
  }

  .vx-room-mobile-cta {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 9990;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem 1rem;
    border-top: 1px solid var(--vx-room-border-soft);
    background: rgb(255 255 255 / 0.96);
    box-shadow: 0 -8px 26px rgb(30 64 94 / 0.06);
    backdrop-filter: blur(14px);
  }
}

@media (max-width: 767px) {
  .vx-room-topbar > div {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
  }

  .vx-room-gallery-grid {
    display: block;
    height: clamp(280px, 78vw, 420px);
    border-radius: 0.9rem;
  }

  .vx-room-gallery-main {
    border-radius: 0.9rem;
  }

  .vx-room-gallery-side {
    display: none;
  }

  .vx-room-gallery-main [data-single-gallery-prev],
  .vx-room-gallery-main [data-single-gallery-next] {
    display: inline-flex;
  }

  .vx-room-view-photos {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    float: right;
    margin-top: 0.55rem;
    padding: 0.45rem 0.7rem;
    border: 1px solid var(--vx-room-border-soft);
    border-radius: 0.55rem;
    color: var(--vx-room-text-muted);
    background: var(--vx-room-surface);
    font-size: 0.8rem;
    cursor: pointer;
  }

  .vx-room-main-shell {
    clear: both;
    margin-top: 0.75rem !important;
  }

  .vx-room-detail-layout {
    padding-top: 1.5rem !important;
  }

  .vx-room-detail-intro h1 {
    font-size: clamp(2rem, 9vw, 2.75rem) !important;
  }

  .vx-room-quick-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem 1.25rem;
  }

  .vx-room-stat-separator {
    display: none;
  }

  .vx-room-package-benefits__heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .vx-room-package-benefits__meta {
    justify-content: flex-start;
  }

  .vx-room-package-benefits__list {
    grid-template-columns: 1fr;
  }

  .vx-room-amenities [data-room-amenities-tags] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .vx-room-lightbox-stage {
    width: calc(100vw - 2rem);
    height: 72vh;
  }

  .vx-room-lightbox-arrow {
    top: auto;
    bottom: 5.6rem;
    transform: none;
  }

  .vx-room-lightbox-thumbs {
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .single-room-layout-reference *,
  .single-room-layout-reference *::before,
  .single-room-layout-reference *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
