.material-symbols-outlined {
  font-variation-settings: "FILL" 0, "wght" 100, "GRAD" 0, "opsz" 24;
}

.ellipse-logo {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

.ellipse-logo img {
  display: block;
  width: auto;
  height: 44px;
  object-fit: contain;
}

@media (min-width: 768px) {
  .ellipse-logo--header img {
    height: 52px;
  }
}

.ellipse-logo--footer img {
  height: 56px;
}

@media (min-width: 768px) {
  .ellipse-logo--footer img {
    height: 64px;
  }
}

.ellipse-social {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.75rem;
}

.ellipse-social__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  color: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.22);
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.ellipse-social__link:hover {
  color: #c9a227;
  border-color: rgba(201, 162, 39, 0.65);
  background: rgba(255, 255, 255, 0.04);
}

.ellipse-social__svg {
  width: 1.15rem;
  height: 1.15rem;
  display: block;
}

.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.3s ease-out, transform 0.3s ease-out;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Site-wide page loader — white overlay + dotted circle (fade chase) */
html.ellipse-loading {
  overflow: hidden;
}

html.ellipse-loading::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 99998;
  background: #ffffff;
}

.ellipse-page-loader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.ellipse-page-loader.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.ellipse-page-loader__ring {
  --loader-r: 1.05rem;
  position: relative;
  width: 2.5rem;
  height: 2.5rem;
}

@media (min-width: 1024px) {
  .ellipse-page-loader__ring {
    --loader-r: 1.4rem;
    width: 3.5rem;
    height: 3.5rem;
  }
}

.ellipse-page-loader__ring span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0.35rem;
  height: 0.35rem;
  margin: -0.175rem 0 0 -0.175rem;
  border-radius: 50%;
  background: #d4af37;
  opacity: 0.2;
  transform: rotate(calc(var(--i) * 45deg)) translateY(calc(var(--loader-r) * -1));
  animation: ellipse-loader-dot 0.9s ease-in-out infinite;
  animation-delay: calc(var(--i) * -0.1125s);
}

@media (min-width: 1024px) {
  .ellipse-page-loader__ring span {
    width: 0.48rem;
    height: 0.48rem;
    margin: -0.24rem 0 0 -0.24rem;
  }
}

@keyframes ellipse-loader-dot {
  0%,
  100% {
    opacity: 0.15;
    transform: rotate(calc(var(--i) * 45deg)) translateY(calc(var(--loader-r) * -1)) scale(0.85);
  }
  50% {
    opacity: 1;
    transform: rotate(calc(var(--i) * 45deg)) translateY(calc(var(--loader-r) * -1)) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ellipse-page-loader__ring span {
    animation: none;
    opacity: 0.75;
  }
}

html:not(.ellipse-loading) .ellipse-page-loader {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Home hero title: fade + rise on page load */
.home-hero-title {
  opacity: 0;
  animation: home-hero-fade-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.05s forwards;
}

.home-hero-sub {
  opacity: 0;
  animation: home-hero-fade-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.16s forwards;
}

@keyframes home-hero-fade-in {
  from {
    opacity: 0;
    transform: translateY(1.25rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Home hero image slider */
.home-hero-slider {
  position: absolute;
  inset: 0;
}

.home-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  /* Dark enough for white type; images still clearly visible */
  background:
    linear-gradient(
      to bottom,
      rgba(12, 20, 32, 0.58) 0%,
      rgba(12, 20, 32, 0.48) 45%,
      rgba(12, 20, 32, 0.64) 100%
    ),
    rgba(0, 0, 0, 0.14);
}

/* Hero background video — image slider remains visible until video is playing */
.home-hero-video {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1.2s ease;
}

.home-hero-video.is-active {
  opacity: 1;
}

.home-hero-video #home-hero-video-host {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
}

.home-hero-video iframe,
.home-hero-video #home-hero-video-host iframe {
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  width: max(100%, 177.78vh) !important;
  height: max(100%, 56.25vw) !important;
  max-width: none !important;
  transform: translate(-50%, -50%) !important;
  border: 0;
  pointer-events: none;
}

.home-hero.is-video-active .home-hero-slide {
  opacity: 0;
  transition: opacity 1.2s ease;
}

.home-hero.is-video-active .home-hero-slide.is-active {
  opacity: 0;
}

.home-hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 1.1s ease, transform 6.5s ease-out;
  will-change: opacity, transform;
  z-index: 0;
}

.home-hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
  z-index: 1;
}

/* Facilities mosaic: featured tile stretches to match stacked small tiles */
.home-facilities-grid {
  grid-auto-rows: minmax(0, auto);
}

.home-facility-tile {
  min-height: 0;
  aspect-ratio: 1 / 1;
}

.home-facility-tile img {
  object-position: center;
}

@media (min-width: 768px) {
  .home-facilities-grid {
    grid-template-rows: repeat(2, minmax(0, 1fr));
    height: clamp(28rem, 42vw, 34rem);
  }

  .home-facility-tile {
    aspect-ratio: auto;
    height: 100%;
  }

  .home-facility-tile--featured {
    height: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-hero-title,
  .home-hero-sub {
    opacity: 1;
    animation: none;
    transform: none;
  }

  .home-hero-slide {
    transition: opacity 0.35s ease;
    transform: none;
  }

  .home-hero-slide.is-active {
    transform: none;
  }
}

/* Dining page — hero slider + mosaic atmosphere */
.dining-hero-slider {
  position: absolute;
  inset: 0;
}

.dining-hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 1.1s ease, transform 6.5s ease-out;
  will-change: opacity, transform;
  z-index: 0;
}

.dining-hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
  z-index: 1;
}

.dining-signature-frame {
  position: relative;
}

.dining-signature-frame::after {
  content: "";
  position: absolute;
  inset: auto 1.25rem -0.85rem -0.85rem;
  height: 42%;
  border: 1px solid rgba(201, 162, 39, 0.45);
  pointer-events: none;
  z-index: 0;
}

.dining-signature-frame img {
  position: relative;
  z-index: 1;
}

.dining-mosaic {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.dining-mosaic__cell {
  margin: 0;
  overflow: hidden;
  background: var(--color-surface-container, #e8e6e1);
  position: relative;
}

.dining-mosaic__cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.9s ease, filter 0.5s ease;
  filter: saturate(0.92);
}

.dining-mosaic__cell:hover img {
  transform: scale(1.06);
  filter: saturate(1.05);
}

.dining-mosaic__cell--wide {
  grid-column: 1 / -1;
  aspect-ratio: 16 / 10;
}

.dining-mosaic__cell--tall {
  aspect-ratio: 3 / 4;
}

.dining-mosaic__cell:not(.dining-mosaic__cell--wide):not(.dining-mosaic__cell--tall) {
  aspect-ratio: 1 / 1;
}

.dining-mosaic__cell--offset {
  aspect-ratio: 4 / 5;
}

.dining-mosaic__cell--low {
  aspect-ratio: 21 / 9;
}

@media (min-width: 768px) {
  .dining-mosaic {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-auto-rows: minmax(7.5rem, auto);
    gap: 1rem;
  }

  .dining-mosaic__cell--wide {
    grid-column: span 8;
    aspect-ratio: 16 / 10;
  }

  .dining-mosaic__cell--tall {
    grid-column: span 4;
    grid-row: span 2;
    aspect-ratio: auto;
    min-height: 100%;
  }

  .dining-mosaic__cell:nth-child(3) {
    grid-column: span 4;
  }

  .dining-mosaic__cell:nth-child(4) {
    grid-column: span 4;
  }

  .dining-mosaic__cell--offset {
    grid-column: span 4;
    margin-top: 1.5rem;
  }

  .dining-mosaic__cell--low {
    grid-column: 1 / -1;
    aspect-ratio: 24 / 9;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dining-hero-slide {
    transition: opacity 0.35s ease;
    transform: none;
  }

  .dining-hero-slide.is-active {
    transform: none;
  }

  .dining-mosaic__cell img {
    transition: none;
  }

  .dining-mosaic__cell:hover img {
    transform: none;
  }
}

/* Ellipse Experience list icons — compact round darker-gold base */
.experience-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 9999px;
  background: #a88828;
  color: #fff8e7;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.experience-icon .material-symbols-outlined {
  font-size: 1.15rem;
  line-height: 1;
  color: inherit;
}

.hover-zoom {
  transition: transform 0.7s ease-in-out;
}

.group:hover .hover-zoom {
  transform: scale(1.05);
}

/* Shared scroll-to-top — bottom right, all pages */
.ellipse-scroll-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.5rem;
  z-index: 70;
  width: 3rem;
  height: 3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #1b2b3a;
  color: #fff;
  border: none;
  cursor: pointer;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.28s ease, transform 0.28s ease, background-color 0.2s ease;
  box-shadow: 0 10px 28px rgba(27, 43, 58, 0.28);
}

.ellipse-scroll-top .material-symbols-outlined {
  font-size: 1.35rem;
  font-variation-settings: "FILL" 0, "wght" 300, "GRAD" 0, "opsz" 24;
}

.ellipse-scroll-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.ellipse-scroll-top:hover {
  background: #d4af37;
  color: #1b2b3a;
}

.ellipse-scroll-top:focus-visible {
  outline: 2px solid #d4af37;
  outline-offset: 3px;
}

@media (min-width: 768px) {
  .ellipse-scroll-top {
    right: 2rem;
    bottom: 2rem;
    width: 3.25rem;
    height: 3.25rem;
  }
}

/*
 * Home booking bridge: overlaps the bottom of the hero between hero and next section.
 */
.home-hero-block {
  position: relative;
  --home-booking-bridge: 4.5rem;
}

@media (min-width: 768px) {
  .home-hero-block {
    --home-booking-bridge: 6.5rem;
  }
}

.home-booking-wrap {
  position: relative;
  z-index: 20;
  margin-top: calc(-1 * var(--home-booking-bridge));
  padding-bottom: 1.5rem;
  background: transparent;
}

@media (min-width: 768px) {
  .home-booking-wrap {
    padding-bottom: 2.25rem;
  }
}

.home-booking-wrap .stayeazi-booking-widget {
  width: 100%;
}

/* Mobile / tablet nav overlay */
.ellipse-mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  padding: 1.5rem 1.25rem 2rem;
  transform: translateX(100%);
  transition: transform 0.4s ease;
}

.ellipse-mobile-nav.is-open {
  transform: translateX(0);
}

.ellipse-mobile-nav[hidden] {
  display: none;
}

.ellipse-mobile-nav.is-open[hidden] {
  display: flex;
}

.ellipse-mobile-nav__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}

.ellipse-mobile-nav__body {
  display: flex;
  align-items: stretch;
  flex: 1 1 auto;
  min-height: 0;
  margin: 1.75rem 0 0;
  gap: 0;
}

.ellipse-mobile-nav nav {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.35rem;
  flex: 0 0 auto;
  width: max-content;
  max-width: 58%;
  margin: 0;
  padding-right: 1rem;
}

.ellipse-mobile-nav nav a {
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #1b2b3a;
  white-space: nowrap;
}

.ellipse-mobile-nav nav a[aria-current="page"] {
  color: #1b2b3a;
  border-bottom: 1px solid #d4af37;
  padding-bottom: 0.25rem;
  width: fit-content;
}

.ellipse-mobile-nav__divider {
  width: 1px;
  flex: 0 0 1px;
  align-self: stretch;
  background: #e2e2e2;
}

.ellipse-mobile-nav__aside {
  flex: 1 1 0;
  min-width: 4.5rem;
  margin-left: 1rem;
  display: flex;
  flex-direction: column;
  min-height: 0;
  gap: 0.85rem;
}

.ellipse-mobile-nav__media {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  background: #eeeeee;
  border-radius: 0.5rem;
  border: 1px solid #1b2b3a;
  box-shadow: 0 8px 24px rgba(27, 43, 58, 0.18);
}

.ellipse-mobile-nav.is-open .ellipse-mobile-nav__media {
  animation: ellipse-nav-media-fade 0.55s ease-out 0.08s both;
}

.ellipse-mobile-nav__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.ellipse-mobile-nav__cta {
  flex-shrink: 0;
  width: 100%;
  text-align: center;
  font-size: 11px;
}

@keyframes ellipse-nav-media-fade {
  0% {
    opacity: 0;
    transform: translateX(28px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ellipse-mobile-nav.is-open .ellipse-mobile-nav__media {
    animation: none;
  }
}

@media (min-width: 768px) {
  .ellipse-mobile-nav {
    padding: 1.75rem 2rem 2.25rem;
  }

  .ellipse-mobile-nav nav {
    gap: 1.5rem;
    padding-right: 1.25rem;
  }

  .ellipse-mobile-nav__aside {
    margin-left: 1.25rem;
    min-width: 8rem;
    gap: 1rem;
  }
}

/* ——— Facilities stacked storytelling ——— */
html.facilities-page {
  scroll-padding-top: 0;
}

body.facilities-page {
  display: block;
  min-height: 0;
  overflow-x: clip;
}

.facilities-stack {
  position: relative;
  display: block;
  overflow-x: clip;
}

.facilities-stack .stacked-section {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  pointer-events: none;
  scroll-margin-top: 0;
}

.facility-hash-alias {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  pointer-events: none;
}

.facilities-stack .stacked-section:nth-child(1) {
  z-index: 1;
}

.facilities-stack .stacked-section:nth-child(2) {
  z-index: 2;
}

.facilities-stack .stacked-section:nth-child(3) {
  z-index: 3;
}

.facilities-stack .stacked-section:nth-child(4) {
  z-index: 4;
}

.facilities-stack .stacked-section__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.facilities-stack .stacked-section__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1);
  transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: transform;
}

@media (hover: hover) and (pointer: fine) {
  .facilities-stack .stacked-section:hover .stacked-section__media img {
    transform: scale(1.04);
  }
}

.facilities-stack .stacked-section__shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to top,
    rgba(27, 43, 58, 0.92) 0%,
    rgba(27, 43, 58, 0.45) 42%,
    rgba(27, 43, 58, 0.12) 72%,
    transparent 100%
  );
  pointer-events: none;
}

.facilities-stack .stacked-section__content {
  position: relative;
  z-index: 2;
  width: 100%;
  pointer-events: auto;
  padding-bottom: max(5rem, calc(2.5rem + env(safe-area-inset-bottom, 0px)));
}

@media (min-width: 768px) {
  .facilities-stack .stacked-section__content {
    padding-bottom: max(6rem, calc(3rem + env(safe-area-inset-bottom, 0px)));
  }
}

.facilities-stack .stacked-section__label {
  display: inline-block;
  max-width: 100%;
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.28) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 0.65rem 1rem;
  margin-bottom: 1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

@media (max-width: 767px) {
  .facilities-stack .stacked-section__label {
    background: rgba(27, 43, 58, 0.72) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 0.7rem 0.95rem;
    font-size: 0.7rem;
    line-height: 1.3;
  }

  .facilities-stack .stacked-section__title {
    font-size: 1.85rem !important;
    line-height: 1.15 !important;
    margin-bottom: 1rem !important;
  }

  .facilities-stack .stacked-section__copy {
    width: 100% !important;
    max-width: 36rem;
    margin-bottom: 1.5rem !important;
  }

  .facilities-stack .stacked-section__cta {
    width: auto;
    min-height: 3rem;
    padding: 0.8rem 1.4rem;
  }

  .facilities-stack .stacked-section__content {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
}

.facilities-stack .stacked-section__title {
  color: #fff !important;
}

.facilities-stack .stacked-section__copy {
  color: #fff !important;
}

.facilities-stack .stacked-section__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3.25rem;
  padding: 0.85rem 1.75rem;
  background: #ffffff !important;
  color: #1b2b3a !important;
  border: none;
  cursor: pointer;
  position: relative;
  z-index: 5;
  pointer-events: auto;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.facilities-stack .stacked-section__cta .material-symbols-outlined {
  font-size: 1.125rem;
  line-height: 1;
  transition: transform 0.2s ease;
}

.facilities-stack .stacked-section__cta:hover {
  background: #d4af37 !important;
  color: #1b2b3a !important;
}

.facilities-stack .stacked-section__cta:hover .material-symbols-outlined {
  transform: translateX(3px);
}

/* Shared footer rides above last sticky panel + snaps after sections */
body.facilities-page #site-footer-root {
  position: relative;
  z-index: 25;
  pointer-events: auto;
  background: #1b2b3a;
}

body.facilities-page #site-footer-root > footer {
  position: relative;
  z-index: 25;
}

/* Facility modals — above sticky stack */
.facility-modal {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  padding: 0.5rem;
  padding-top: max(0.5rem, env(safe-area-inset-top, 0px));
  padding-bottom: max(0.5rem, env(safe-area-inset-bottom, 0px));
  z-index: 200;
}

.facility-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.facility-modal[hidden] {
  display: none !important;
}

.facility-modal.is-open:not([hidden]),
.facility-modal.is-open[hidden] {
  display: flex !important;
}

.facility-modal__panel {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 72rem;
  height: min(92dvh, 920px);
  max-height: 92dvh;
  background: #fff;
  box-shadow: 0 24px 80px rgba(27, 43, 58, 0.35);
  overflow: hidden;
  transform: translateY(20px);
  transition: transform 0.4s ease;
}

.facility-modal.is-open .facility-modal__panel {
  transform: translateY(0);
}

.facility-modal__close {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  z-index: 30;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border: none;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.95);
  color: #1b2b3a;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
}

.facility-modal__media {
  position: relative;
  flex: 0 0 58%;
  min-height: 12rem;
  background: #eeeeee;
  overflow: hidden;
}

.facility-modal__slider {
  position: relative;
  width: 100%;
  height: 100%;
  isolation: isolate;
}

.facility-modal__slides {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.facility-modal__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
  z-index: 1;
}

.facility-modal__slide.is-active {
  opacity: 1;
}

.facility-modal__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.facility-modal__nav {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0.5rem;
  pointer-events: none;
}

.facility-modal__nav-btn {
  pointer-events: auto;
  width: 2.75rem;
  height: 2.75rem;
  border: none;
  border-radius: 9999px;
  background: rgba(27, 43, 58, 0.85);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  flex-shrink: 0;
}

.facility-modal__nav-btn .material-symbols-outlined {
  font-size: 1.35rem;
  line-height: 1;
  color: #fff;
}

.facility-modal__dots {
  position: absolute;
  left: 50%;
  bottom: 0.75rem;
  transform: translateX(-50%);
  display: flex;
  gap: 0.45rem;
  z-index: 20;
  pointer-events: auto;
}

.facility-modal__dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 9999px;
  border: none;
  padding: 0;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
}

.facility-modal__dot.is-active {
  background: #fff;
}

.facility-modal__body {
  flex: 1 1 42%;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 1.15rem 1.15rem 1.35rem;
}

@media (min-width: 768px) {
  .facility-modal {
    padding: 1.5rem;
  }

  .facility-modal__panel {
    flex-direction: row;
    height: min(88vh, 760px);
  }

  .facility-modal__media {
    flex: 0 0 70%;
    width: 70%;
    height: 100%;
  }

  .facility-modal__body {
    flex: 1 1 30%;
    width: 30%;
    padding: 2rem 1.75rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .facility-modal__nav {
    padding: 0 0.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .facilities-stack .stacked-section__media img {
    transition: none;
  }

  .facility-modal,
  .facility-modal__panel,
  .facility-modal__slide {
    transition: none;
  }
}

/* ——— Room details (shared template) ——— */
body.room-details-page.has-mobile-book-bar {
  padding-bottom: 5.5rem;
}

@media (max-width: 1023px) {
  body.room-details-page.has-mobile-book-bar .ellipse-scroll-top {
    bottom: 5.75rem;
  }
}

@media (min-width: 1024px) {
  body.room-details-page.has-mobile-book-bar {
    padding-bottom: 0;
  }
}

.room-detail-hero__media img {
  transform: scale(1);
  transition: transform 20s ease-out;
  will-change: transform;
}

.room-detail-hero:hover .room-detail-hero__media img {
  transform: scale(1.06);
}

.room-detail-zoom {
  transition: transform 0.7s ease-out;
}

.group:hover .room-detail-zoom {
  transform: scale(1.04);
}

.room-detail-mobile-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
}

@media (prefers-reduced-motion: reduce) {
  .room-detail-hero__media img,
  .room-detail-zoom {
    transition: none;
  }

  .room-detail-hero:hover .room-detail-hero__media img,
  .group:hover .room-detail-zoom {
    transform: none;
  }
}

/* Inner pages still using legacy content CSS */
body.has-legacy-content {
  background: #fff;
}

/* Fixed Tailwind header is ~88px; keep legacy layout vars in sync */
body.has-legacy-content {
  --header-h: 88px;
}

/* Hide obsolete chrome styles — new header/footer come from site-chrome.js */
body.has-legacy-content .site-header,
body.has-legacy-content .mobile-nav,
body.has-legacy-content .site-footer {
  /* no-op: old class names are not used by the new chrome */
}

/* ——— Gallery page (uncategorized mosaic) ——— */
.gallery-mosaic-wrap {
  padding-bottom: 5rem;
}

@media (min-width: 768px) {
  .gallery-mosaic-wrap {
    padding-bottom: 7rem;
  }
}

.gallery-mosaic {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 140px;
  gap: 0.65rem;
}

@media (min-width: 768px) {
  .gallery-mosaic {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: 170px;
    gap: 0.85rem;
  }
}

@media (min-width: 1024px) {
  .gallery-mosaic {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: 190px;
    gap: 1rem;
  }
}

.gallery-tile {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  background: #e8e6e1;
  padding: 0;
  border: none;
  cursor: pointer;
  grid-column: span 1;
  grid-row: span 1;
}

.gallery-tile--wide {
  grid-column: span 2;
}

.gallery-tile--tall {
  grid-row: span 2;
}

.gallery-tile--feature {
  grid-column: span 2;
  grid-row: span 2;
}

@media (max-width: 767px) {
  .gallery-tile--feature {
    grid-column: span 2;
    grid-row: span 1;
  }

  .gallery-tile--tall {
    grid-row: span 1;
  }
}

.gallery-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.gallery-tile__shade {
  position: absolute;
  inset: 0;
  background: rgba(27, 43, 58, 0);
  transition: background 0.3s ease;
}

.gallery-tile__zoom {
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  color: #fff;
  font-size: 1.35rem;
  opacity: 0;
  transform: translateY(0.35rem);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.gallery-tile:hover img,
.gallery-tile:focus-visible img {
  transform: scale(1.05);
}

.gallery-tile:hover .gallery-tile__shade,
.gallery-tile:focus-visible .gallery-tile__shade {
  background: rgba(27, 43, 58, 0.28);
}

.gallery-tile:hover .gallery-tile__zoom,
.gallery-tile:focus-visible .gallery-tile__zoom {
  opacity: 1;
  transform: translateY(0);
}

body.gallery-modal-open {
  overflow: hidden;
}

.gallery-modal {
  position: fixed;
  inset: 0;
  z-index: 220;
  display: flex;
  align-items: stretch;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.gallery-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.gallery-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 16, 24, 0.92);
}

.gallery-modal__panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(1120px, 100%);
  height: 100%;
  max-height: 100dvh;
  padding: 1rem 1rem 0;
  color: #fff;
}

@media (min-width: 768px) {
  .gallery-modal__panel {
    padding: 1.25rem 1.5rem 0;
  }
}

.gallery-modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
  flex-shrink: 0;
}

.gallery-modal__close {
  width: 2.75rem;
  height: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  flex-shrink: 0;
}

.gallery-modal__close:hover {
  background: rgba(255, 255, 255, 0.16);
}

.gallery-modal__stage {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.gallery-modal__figure {
  flex: 1 1 auto;
  min-width: 0;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-modal__figure img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
}

.gallery-modal__nav {
  width: 2.75rem;
  height: 2.75rem;
  display: none;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  flex-shrink: 0;
}

.gallery-modal__nav:hover {
  background: rgba(255, 255, 255, 0.16);
}

@media (min-width: 768px) {
  .gallery-modal__nav {
    display: inline-flex;
  }
}

.gallery-modal__meta {
  flex-shrink: 0;
  padding: 0.75rem 0 0.5rem;
  text-align: center;
}

.gallery-modal__library {
  flex-shrink: 0;
  display: flex;
  gap: 0.55rem;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0.65rem 0 1.1rem;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color: rgba(201, 162, 39, 0.7) rgba(255, 255, 255, 0.08);
}

.gallery-modal__thumb {
  flex: 0 0 auto;
  width: 4.75rem;
  height: 3.5rem;
  padding: 0;
  border: 2px solid transparent;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
  scroll-snap-align: center;
  cursor: pointer;
}

@media (min-width: 768px) {
  .gallery-modal__thumb {
    width: 6rem;
    height: 4.25rem;
  }
}

.gallery-modal__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.72;
  transition: opacity 0.2s ease;
}

.gallery-modal__thumb.is-active {
  border-color: #c9a227;
}

.gallery-modal__thumb.is-active img,
.gallery-modal__thumb:hover img {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .gallery-tile img,
  .gallery-tile__shade,
  .gallery-tile__zoom,
  .gallery-modal {
    transition: none;
  }

  .gallery-tile:hover img,
  .gallery-tile:focus-visible img {
    transform: none;
  }
}
