/* ================================================================
   DESTINATIONS STACK — full-width transparent flash cards
   ================================================================ */

body.dest-section-stack-active {
  --dest-stack-card-radius: clamp(20px, 2.5vw, 28px);
}

html.dest-section-stack-active body.dest-section-stack-active #__next,
html.dest-section-stack-active body.dest-section-stack-active main,
html.dest-section-stack-active body.dest-section-stack-active .destinations-stack,
html.dest-section-stack-active body.dest-section-stack-active .dest-stack-panels {
  overflow: visible !important;
  overflow-x: visible !important;
  overflow-y: visible !important;
  height: auto !important;
  transform: none !important;
  contain: none !important;
}

html body.dest-section-stack-active {
  overflow-x: hidden !important;
}

body.dest-section-stack-active main > section.dest-stack-hero {
  position: relative !important;
  z-index: 1 !important;
}

body.dest-section-stack-active .destinations-stack,
body.dest-section-stack-active .dest-stack-panels {
  position: relative !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  isolation: auto !important;
}

/* Sticky stack panels — no section fill, full bleed */
body.dest-section-stack-active .dest-stack-panels > .dest-service-panel {
  height: 100vh !important;
  height: 100dvh !important;
  min-height: 100vh !important;
  min-height: 100dvh !important;
  width: 100% !important;
  max-width: none !important;
  display: flex !important;
  align-items: stretch !important;
  justify-content: stretch !important;
  padding: clamp(4.5rem, 10vh, 6rem) 0 0 !important;
  position: sticky !important;
  top: 0 !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
  background: transparent !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

body.dest-section-stack-active .dest-stack-panels > .dest-service-panel:nth-child(n + 2) {
  border-radius: var(--dest-stack-card-radius) var(--dest-stack-card-radius) 0 0 !important;
  box-shadow: 0 -8px 32px rgba(15, 23, 42, 0.06) !important;
}

body.dest-section-stack-active .dest-stack-panels > .dest-service-panel:nth-child(1) {
  z-index: 1 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

body.dest-section-stack-active .dest-stack-panels > .dest-service-panel:nth-child(2) {
  z-index: 2 !important;
}

body.dest-section-stack-active .dest-stack-panels > .dest-service-panel:nth-child(3) {
  z-index: 3 !important;
}

body.dest-section-stack-active .dest-stack-panels > .dest-service-panel:nth-child(4) {
  z-index: 4 !important;
}

body.dest-section-stack-active .dest-stack-panels > .dest-service-panel:nth-child(5) {
  z-index: 5 !important;
}

body.dest-section-stack-active .dest-stack-panels > .dest-service-panel:nth-child(6) {
  z-index: 6 !important;
}

body.dest-section-stack-active .dest-stack-panels > .dest-service-panel:nth-child(7) {
  z-index: 7 !important;
}

/* Keep site header above sticky destination panels */
body.dest-section-stack-active .rt-site-nav,
body.dest-section-stack-active body > nav.rt-site-nav,
body.dest-section-stack-active #__next > nav[style*="position:fixed"] {
  z-index: 9999 !important;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
}

/* Hide/show scroll class must still win over panel stacking */
html.rt-nav-is-hidden body.dest-section-stack-active .rt-site-nav,
html.rt-nav-is-hidden body.dest-section-stack-active #__next > nav[style*="position:fixed"] {
  transform: translateY(-110%) !important;
}

/* Hide old stack numbers */
body.dest-section-stack-active .dest-panel-number,
body.dest-section-stack-active .dest-service-panel::before {
  display: none !important;
  content: none !important;
}

/* Full-bleed glass flash card — only the card has frosted glass */
body.dest-section-stack-active .dest-flash-card--full {
  width: 100% !important;
  max-width: none !important;
  flex: 1 1 auto !important;
  height: calc(100vh - clamp(4.5rem, 10vh, 6rem)) !important;
  height: calc(100dvh - clamp(4.5rem, 10vh, 6rem)) !important;
  min-height: calc(100vh - clamp(4.5rem, 10vh, 6rem)) !important;
  min-height: calc(100dvh - clamp(4.5rem, 10vh, 6rem)) !important;
  margin: 0 !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: stretch !important;
  border-radius: 0 !important;
  overflow: hidden !important;
  position: relative !important;
  isolation: isolate !important;
  background: rgba(255, 255, 255, 0.42) !important;
  border: none !important;
  border-top: 1px solid rgba(255, 255, 255, 0.65) !important;
  box-shadow:
    0 24px 64px rgba(15, 23, 42, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.75) !important;
  backdrop-filter: blur(32px) saturate(1.5) !important;
  -webkit-backdrop-filter: blur(32px) saturate(1.5) !important;
}

body.dest-section-stack-active .dest-stack-panels > .dest-service-panel:nth-child(n + 2) .dest-flash-card--full {
  border-radius: var(--dest-stack-card-radius) var(--dest-stack-card-radius) 0 0 !important;
}

/* Mild light tints — cards only (sections stay transparent) */
body.dest-section-stack-active .dest-stack-panels > .dest-service-panel:nth-child(1) .dest-flash-card--full {
  background: linear-gradient(135deg, rgba(224, 245, 252, 0.78) 0%, rgba(255, 255, 255, 0.52) 100%) !important;
}

body.dest-section-stack-active .dest-stack-panels > .dest-service-panel:nth-child(2) .dest-flash-card--full {
  background: linear-gradient(135deg, rgba(255, 241, 228, 0.78) 0%, rgba(255, 255, 255, 0.52) 100%) !important;
}

body.dest-section-stack-active .dest-stack-panels > .dest-service-panel:nth-child(3) .dest-flash-card--full {
  background: linear-gradient(135deg, rgba(232, 242, 255, 0.78) 0%, rgba(255, 255, 255, 0.52) 100%) !important;
}

body.dest-section-stack-active .dest-stack-panels > .dest-service-panel:nth-child(4) .dest-flash-card--full {
  background: linear-gradient(135deg, rgba(232, 248, 240, 0.78) 0%, rgba(255, 255, 255, 0.52) 100%) !important;
}

body.dest-section-stack-active .dest-stack-panels > .dest-service-panel:nth-child(5) .dest-flash-card--full {
  background: linear-gradient(135deg, rgba(248, 240, 230, 0.78) 0%, rgba(255, 255, 255, 0.52) 100%) !important;
}

body.dest-section-stack-active .dest-stack-panels > .dest-service-panel:nth-child(6) .dest-flash-card--full {
  background: linear-gradient(135deg, rgba(224, 247, 250, 0.78) 0%, rgba(255, 255, 255, 0.52) 100%) !important;
}

body.dest-section-stack-active .dest-stack-panels > .dest-service-panel:nth-child(7) .dest-flash-card--full {
  background: linear-gradient(135deg, rgba(255, 248, 235, 0.78) 0%, rgba(255, 255, 255, 0.52) 100%) !important;
}

body.dest-section-stack-active .dest-stack-panels > .dest-service-panel:nth-child(1) .dest-flash-card-body {
  background: rgba(240, 250, 255, 0.35) !important;
}

body.dest-section-stack-active .dest-stack-panels > .dest-service-panel:nth-child(2) .dest-flash-card-body {
  background: rgba(255, 247, 238, 0.35) !important;
}

body.dest-section-stack-active .dest-stack-panels > .dest-service-panel:nth-child(3) .dest-flash-card-body {
  background: rgba(242, 248, 255, 0.35) !important;
}

body.dest-section-stack-active .dest-stack-panels > .dest-service-panel:nth-child(4) .dest-flash-card-body {
  background: rgba(240, 252, 246, 0.35) !important;
}

body.dest-section-stack-active .dest-stack-panels > .dest-service-panel:nth-child(5) .dest-flash-card-body {
  background: rgba(252, 246, 238, 0.35) !important;
}

body.dest-section-stack-active .dest-stack-panels > .dest-service-panel:nth-child(6) .dest-flash-card-body {
  background: rgba(238, 250, 252, 0.35) !important;
}

body.dest-section-stack-active .dest-stack-panels > .dest-service-panel:nth-child(7) .dest-flash-card-body {
  background: rgba(255, 250, 242, 0.35) !important;
}

/* Glass shine edge */
body.dest-section-stack-active .dest-flash-card--full::before {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  border-radius: inherit !important;
  pointer-events: none !important;
  z-index: 1 !important;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.45) 0%,
    rgba(255, 255, 255, 0.08) 35%,
    rgba(255, 255, 255, 0) 55%,
    rgba(255, 255, 255, 0.12) 100%
  ) !important;
}

body.dest-section-stack-active .dest-flash-card-media {
  width: 48% !important;
  height: 100% !important;
  min-height: 100% !important;
  align-self: stretch !important;
  flex-shrink: 0 !important;
  overflow: hidden !important;
  position: relative !important;
  z-index: 1 !important;
  background: #dfe8f2 !important;
  border-right: 1px solid rgba(255, 255, 255, 0.35) !important;
}

body.dest-section-stack-active .dest-flash-card-media::after {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.12), transparent 40%) !important;
  pointer-events: none !important;
}

body.dest-section-stack-active .dest-flash-card-media img {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  display: block !important;
  opacity: 1 !important;
  transform: translateZ(0) !important;
  backface-visibility: hidden !important;
  -webkit-backface-visibility: hidden !important;
}

body.dest-section-stack-active .dest-flash-card-body {
  flex: 1 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  padding: clamp(2rem, 4vw, 3rem) clamp(2rem, 4vw, 3.5rem) !important;
  box-sizing: border-box !important;
  position: relative !important;
  z-index: 2 !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
}

body.dest-section-stack-active .dest-panel-region {
  font-size: 0.85rem !important;
  color: #9ca3af !important;
  margin: 0 0 0.35rem !important;
  font-family: var(--rt-font-body, "Sora", sans-serif) !important;
}

body.dest-section-stack-active .dest-panel-title {
  font-size: clamp(1.75rem, 3.5vw, 2.25rem) !important;
  font-weight: 900 !important;
  line-height: 1.15 !important;
  margin: 0 0 0.75rem !important;
  color: #101828 !important;
  font-family: var(--rt-font-display, "Fraunces", "Playfair Display", serif) !important;
}

body.dest-section-stack-active .dest-panel-title em {
  font-style: italic !important;
  font-weight: 500 !important;
  color: #245ca8 !important;
  display: block !important;
  font-size: 0.95em !important;
  margin-top: 0.15em !important;
}

body.dest-section-stack-active .dest-panel-desc {
  font-size: clamp(0.9rem, 1.05vw, 0.98rem) !important;
  line-height: 1.75 !important;
  color: #4b5563 !important;
  margin: 0 0 1.25rem !important;
  max-width: 52ch !important;
  font-family: var(--rt-font-body, "Sora", sans-serif) !important;
}

body.dest-section-stack-active .dest-panel-meta {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: clamp(1.25rem, 3vw, 2.5rem) !important;
  margin-bottom: 1.5rem !important;
}

body.dest-section-stack-active .dest-panel-meta > div {
  display: flex !important;
  flex-direction: column !important;
  gap: 0.2rem !important;
}

body.dest-section-stack-active .dest-meta-label {
  font-size: 0.68rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
  color: #9ca3af !important;
  font-weight: 600 !important;
}

body.dest-section-stack-active .dest-meta-value {
  font-size: 0.9rem !important;
  font-weight: 700 !important;
  color: #101828 !important;
}

/* CTA — blue, clickable */
body.dest-section-stack-active .dest-plan-cta {
  display: inline-block !important;
  align-self: flex-start !important;
  background: #245ca8 !important;
  color: #ffffff !important;
  padding: 0.85rem 2rem !important;
  font-size: 0.78rem !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  border-radius: 8px !important;
  border: none !important;
  cursor: pointer !important;
  pointer-events: auto !important;
  position: relative !important;
  z-index: 10 !important;
  transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease !important;
  font-family: var(--rt-font-body, "Sora", sans-serif) !important;
  box-shadow: 0 8px 24px rgba(36, 92, 168, 0.28) !important;
}

body.dest-section-stack-active .dest-plan-cta:hover {
  background: #1e4d8f !important;
  color: #ffffff !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 12px 32px rgba(36, 92, 168, 0.35) !important;
}

body.dest-section-stack-active .dest-plan-cta:focus-visible {
  outline: 2px solid #245ca8 !important;
  outline-offset: 3px !important;
}

/* GSAP target — sticky stack only (no card transform) */
body.dest-section-stack-active .dest-flash-card--full {
  transform: none !important;
  will-change: auto !important;
}

body.dest-section-stack-active main > section.destinations-stack {
  isolation: auto !important;
}

body.dest-section-stack-active main > section.dest-stack-cta-final {
  position: relative !important;
  z-index: 20 !important;
}

/* Mobile stack rules live in destinations-stack-mobile.css */

/* ============================================
   DEST STACK HERO — background image + animation
   (section 1 only — does not affect stack panels)
   ============================================ */

body.dest-section-stack-active .dest-stack-hero {
  isolation: isolate;
  width: 100% !important;
  max-width: 100% !important;
  overflow: hidden !important;
}

@media (max-width: 768px) {
  body.dest-section-stack-active .dest-stack-hero {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    min-height: clamp(300px, 48vh, 520px) !important;
  }

  body.dest-section-stack-active .dest-stack-hero .dest-hero-bg,
  body.dest-section-stack-active .dest-stack-hero.dest-hero-ready .dest-hero-bg {
    animation: none !important;
    transform: none !important;
    width: 100% !important;
    height: 100% !important;
    min-width: 100% !important;
    max-width: none !important;
    object-fit: cover !important;
    object-position: center center !important;
    opacity: 1 !important;
  }
}

body.dest-section-stack-active .dest-stack-hero .dest-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  z-index: 0;
  transform: scale(1.14);
  opacity: 0;
  will-change: transform, opacity;
}

body.dest-section-stack-active .dest-stack-hero .dest-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(11, 17, 32, 0.28) 0%,
    rgba(11, 17, 32, 0.52) 42%,
    rgba(11, 17, 32, 0.9) 100%
  );
  pointer-events: none;
}

body.dest-section-stack-active .dest-stack-hero .page-hero-content {
  z-index: 10;
}

body.dest-section-stack-active .dest-stack-hero .page-hero-content > div:first-child {
  color: rgba(255, 255, 255, 0.92) !important;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.55);
}

body.dest-section-stack-active .dest-stack-hero .page-hero-content > div:first-child span {
  background: rgba(255, 255, 255, 0.5) !important;
}

body.dest-section-stack-active .dest-stack-hero .page-hero-content h1 {
  text-shadow:
    0 2px 18px rgba(0, 0, 0, 0.55),
    0 1px 4px rgba(0, 0, 0, 0.4);
}

body.dest-section-stack-active .dest-stack-hero .page-hero-content h1 em {
  color: rgba(255, 255, 255, 0.68) !important;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.45);
}

body.dest-section-stack-active .dest-stack-hero .page-hero-content p {
  color: rgba(255, 255, 255, 0.88) !important;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
}

@media (prefers-reduced-motion: no-preference) {
  body.dest-section-stack-active .dest-stack-hero:not(.dest-hero-ready) .page-hero-content > div:first-child,
  body.dest-section-stack-active .dest-stack-hero:not(.dest-hero-ready) .page-hero-content h1,
  body.dest-section-stack-active .dest-stack-hero:not(.dest-hero-ready) .page-hero-content p {
    opacity: 0;
    transform: translateY(22px);
  }

  body.dest-section-stack-active .dest-stack-hero.dest-hero-ready .dest-hero-bg {
    animation:
      destStackHeroBgReveal 1.35s cubic-bezier(0.22, 1, 0.36, 1) forwards,
      destStackHeroKenBurns 20s ease-in-out 1.35s infinite alternate;
  }

  body.dest-section-stack-active .dest-stack-hero.dest-hero-ready .page-hero-content > div:first-child {
    animation: destStackHeroLabel 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) 0.32s both;
  }

  body.dest-section-stack-active .dest-stack-hero.dest-hero-ready .page-hero-content h1 {
    animation: destStackHeroHeading 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.48s both;
  }

  body.dest-section-stack-active .dest-stack-hero.dest-hero-ready .page-hero-content p {
    animation: destStackHeroPara 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.68s both;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.dest-section-stack-active .dest-stack-hero .dest-hero-bg,
  body.dest-section-stack-active .dest-stack-hero .page-hero-content > div:first-child,
  body.dest-section-stack-active .dest-stack-hero .page-hero-content h1,
  body.dest-section-stack-active .dest-stack-hero .page-hero-content p {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

@keyframes destStackHeroBgReveal {
  0% {
    opacity: 0;
    transform: scale(1.2);
  }
  100% {
    opacity: 1;
    transform: scale(1.06);
  }
}

@keyframes destStackHeroKenBurns {
  0% {
    transform: scale(1.06);
  }
  100% {
    transform: scale(1.12);
  }
}

@keyframes destStackHeroLabel {
  0% {
    opacity: 0;
    transform: translateX(-20px) scale(0.94);
  }
  65% {
    opacity: 1;
    transform: translateX(3px) scale(1.02);
  }
  100% {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@keyframes destStackHeroHeading {
  0% {
    opacity: 0;
    transform: translateY(28px);
  }
  60% {
    opacity: 1;
    transform: translateY(-4px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes destStackHeroPara {
  0% {
    opacity: 0;
    transform: translateY(18px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
