/* Destinations page — full-bleed shell, section fit, smooth stack scroll (all breakpoints) */

html.dest-section-stack-active,
html.dest-section-stack-active body.dest-section-stack-active,
body.dest-section-stack-active.destinations-page {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}

body.dest-section-stack-active #__next,
body.dest-section-stack-active main {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  box-sizing: border-box !important;
}

body.dest-section-stack-active main > section.dest-stack-hero,
body.dest-section-stack-active main > section.destinations-stack,
body.dest-section-stack-active main > section.dest-stack-cta-final {
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  box-sizing: border-box !important;
}

body.dest-section-stack-active .dest-stack-hero {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

body.dest-section-stack-active .dest-stack-hero .dest-hero-bg {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  min-width: 100% !important;
  min-height: 100% !important;
  max-width: none !important;
  object-fit: cover !important;
}

body.dest-section-stack-active .dest-stack-hero .dest-hero-overlay {
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
}

body.dest-section-stack-active .destinations-stack,
body.dest-section-stack-active .dest-stack-panels {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

body.dest-section-stack-active .dest-stack-panels > .dest-service-panel {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

body.dest-section-stack-active .dest-flash-card--full {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

/* Sticky stack — GPU-friendly, no layout jank */
body.dest-section-stack-active .dest-stack-panels > .dest-service-panel {
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

body.dest-section-stack-active .dest-stack-cta-final,
body.dest-section-stack-active .dest-cta-section {
  position: relative !important;
  z-index: 20 !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

/* Tablet — tighter card typography, keep row layout */
@media (min-width: 769px) and (max-width: 1100px) {
  body.dest-section-stack-active .dest-flash-card-body {
    padding: clamp(1.5rem, 3vw, 2rem) clamp(1.25rem, 3vw, 2rem) !important;
  }

  body.dest-section-stack-active .dest-panel-title {
    font-size: clamp(1.5rem, 2.8vw, 1.85rem) !important;
  }

  body.dest-section-stack-active .dest-panel-desc {
    font-size: clamp(0.85rem, 1vw, 0.92rem) !important;
    max-width: 100% !important;
  }
}

/* Small phones — scrollable card copy if needed */
@media (max-width: 480px) {
  body.dest-section-stack-active .dest-flash-card-body {
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    padding: 0.9rem 1rem 1.1rem !important;
  }

  body.dest-section-stack-active .dest-panel-title {
    font-size: clamp(1.45rem, 6.5vw, 1.75rem) !important;
  }

  body.dest-section-stack-active .dest-panel-meta {
    gap: 0.85rem !important;
    margin-bottom: 1rem !important;
  }

  body.dest-section-stack-active .dest-stack-hero .page-hero-content {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.dest-section-stack-active .dest-stack-hero .dest-hero-bg {
    animation: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}
