.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;
  }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

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

.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: own section on mobile/tablet; desktop keeps bridged overlay */
.home-booking-wrap {
  position: relative;
  z-index: 10;
  padding-top: 1.25rem;
  padding-bottom: 0.5rem;
  background: #fff;
}

@media (min-width: 1024px) {
  .home-booking-wrap {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    transform: translateY(50%);
    z-index: 20;
    padding-top: 0;
    padding-bottom: 0;
    background: transparent;
  }
}

/* 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,
body.facilities-page {
  overflow-x: clip;
}

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

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

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

.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;
}

.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%;
}

/* Shared footer rides above last sticky panel */
body.facilities-page #site-footer-root,
body.facilities-page #site-footer-root > footer {
  position: relative;
  z-index: 25;
}

/* Facility modals */
.facility-modal {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

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

.facility-modal__panel {
  transform: translateY(20px);
  transition: transform 0.4s ease;
}

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

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

  .facilities-stack .stacked-section:hover .stacked-section__media img {
    transform: none;
  }

  .facility-modal,
  .facility-modal__panel {
    transition: 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 */
}
