/* ============================================
   JJ at Sea - Travel Agency Stylesheet
   Brand Colors from jjatsea.com
   ============================================ */

/* --- Avenir Font (local) --- */
@font-face {
  font-family: 'Avenir';
  src: url('../fonts/Avenir-Roman.woff') format('woff'),
       url('../fonts/AvenirLTStd-Roman.otf') format('opentype');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'Avenir';
  src: url('../fonts/Avenir-Black.woff') format('woff'),
       url('../fonts/AvenirLTStd-Black.otf') format('opentype');
  font-style: normal;
  font-weight: 900;
  font-display: swap;
}

/* --- CSS Variables (Brand Colors) --- */
:root {
  /* Brand Colors */
  --Brand-Primary: #001b79;
  --Brand-Secondary: #1640d6;
  --Brand-Tertiary: #ed5ab3;
  --Brand-Accent: #ff90c2;
  --Yellow: rgb(255, 208, 80);
  --Purple: rgba(89, 46, 169, 1);

  /* Text */
  --Text: rgba(35, 37, 54, 1);
  --Text-Light: rgba(109, 110, 118, 1);
  --White: #ffffff;

  /* Surfaces */
  --off-white: #f4f7fa;
  --light-purple-bg: rgba(244, 240, 248, 1);
  --warm-bg: rgba(251, 246, 234, 1);
  --gray-light: rgba(225, 225, 225, 1);
  --gray-border: rgba(109, 110, 118, 0.30);

  /* Spacing */
  --section-padding: 100px 0;
  --container-width: 1280px;

  /* Transitions */
  --transition: all 0.2s linear;

  /* Fonts */
  --font-main: 'Avenir', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* --- Accessibility utilities --- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-main);
  color: var(--Text-Light);
  background-color: var(--White);
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  padding-top: 0;
}

a {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-main);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-main);
  line-height: 1.2;
  color: var(--Text);
  font-weight: 700;
}

h1 { font-size: clamp(2.5rem, 5vw, 3.5rem); }
h2 { font-size: 36px; }
h3 { font-size: 28px; }
h4 { font-size: 24px; }
h5 { font-size: 20px; }
h6 { font-size: 16px; }

p {
  margin-bottom: 0;
  line-height: 1.7;
  font-family: var(--font-main);
}

.section-title {
  text-align: center;
  margin-bottom: 16px;
}

.section-subtitle {
  text-align: center;
  color: var(--Text-Light);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 48px;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 16px 48px;
  font-family: var(--font-main);
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--transition);
}

.btn-primary {
  background-color: var(--Brand-Accent);
  color: var(--Brand-Primary);
}

.btn-primary:hover {
  background-color: var(--Brand-Secondary);
  color: var(--Brand-Accent);
}

.btn-secondary {
  background-color: var(--White);
  color: var(--Brand-Primary);
  border: 1px solid var(--Brand-Primary);
}

.btn-secondary:hover {
  background-color: var(--Brand-Primary);
  color: var(--White);
}

.btn-accent {
  background-color: var(--Brand-Accent);
  color: var(--Brand-Primary);
}

.btn-accent:hover {
  background-color: var(--Brand-Secondary);
  color: var(--Brand-Accent);
}

/* --- Header / Navigation --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 99999;
  background: linear-gradient(to bottom, rgba(0, 10, 60, 0.82) 0%, rgba(0, 10, 60, 0.2) 70%, transparent 100%);
  padding: 0;
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease, padding 0.3s ease, background 0.3s ease;
  transform: translateY(0);
}

.header.scrolled {
  background-color: rgba(0, 27, 121, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.header.header-hidden {
  transform: translateY(-100%);
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  padding-bottom: 12px;
  transition: padding 0.3s ease;
}

.header.scrolled .container {
  padding-top: 4px;
  padding-bottom: 4px;
}

.logo {
  display: flex;
  align-items: center;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.header.scrolled .logo {
  opacity: 0.9;
  transform: scale(0.95);
}

.logo img {
  width: 150px;
  height: auto;
  object-fit: contain;
  aspect-ratio: 4/3;
  transition: width 0.3s ease;
}

.header.scrolled .logo img {
  width: 110px;
}

/* ── Header compact search (appears when scrolled past hero) ── */
.header-search {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 40px;
  padding: 5px 14px 5px 12px;
  gap: 8px;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px) scale(0.96);
  transition: opacity 0.25s ease, transform 0.25s ease, background 0.2s ease;
  text-decoration: none;
}

.header-search:hover {
  background: rgba(255, 255, 255, 0.22);
}

.header.scrolled .header-search {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.header-search-icon {
  color: rgba(255, 255, 255, 0.7);
  flex-shrink: 0;
}

.header-search-label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .header-search-label { display: none; }
  .header-search { padding: 7px 10px; }
}

.logo-text {
  font-family: var(--font-main);
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--White);
  letter-spacing: 1px;
}

.logo-text span {
  color: var(--Brand-Accent);
}

/* Desktop nav (inside header) */
.nav-links-desktop {
  display: flex;
  gap: 40px;
  align-items: center;
}

.nav-links-desktop a {
  color: var(--Brand-Accent);
  font-size: 1rem;
  font-weight: 400;
  padding: 5px 0;
  border-bottom: 1px solid transparent;
  font-family: var(--font-main);
}

.nav-links-desktop a:hover {
  border-bottom: 1px solid var(--Brand-Accent);
}

.nav-links-desktop a.nav-active {
  border-bottom: 1px solid var(--Brand-Accent);
  opacity: 1;
}

.nav-links-desktop .btn {
  border-bottom: none;
}

.nav-links-desktop .btn:hover {
  border-bottom: none;
}

/* Mobile overlay nav — sits outside header to escape transform stacking context */
.nav-overlay {
  display: none;
  opacity: 0;
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 100001;
  background-color: var(--Brand-Primary);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.25s ease;
}

.nav-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.nav-overlay-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
}

.nav-overlay-logo img {
  height: 36px;
  width: auto;
}

.nav-overlay-close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  position: relative;
  width: 40px;
  height: 40px;
}

.nav-overlay-close span {
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  width: 24px;
  height: 2px;
  background-color: var(--White);
  border-radius: 2px;
}

.nav-overlay-close span:nth-child(1) {
  transform: translate(-50%, -50%) rotate(45deg);
}

.nav-overlay-close span:nth-child(2) {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.nav-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 36px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px;
  z-index: 100002;
  position: relative;
}

.nav-toggle span {
  display: block;
  width: 28px;
  height: 2px;
  background-color: var(--White);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}

.nav-toggle.dh-active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.nav-toggle.dh-active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav-toggle.dh-active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* --- Hero Section --- */
.hero {
  position: relative;
  height: 100svh;
  min-height: 600px;
  display: flex;
  flex-direction: column;
  background-color: var(--Brand-Primary);
  overflow: hidden;
}

.hero-video-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  transition: opacity 0.8s ease;
}

/* Hero slide backgrounds (v4) — alias of hero-dest-bg */
.hero-slide-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0;
  transition: opacity 0.9s ease;
}

.hero-slide-bg.active {
  opacity: 1;
}

.hero-slide-bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-slide-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transition: opacity 0.9s ease;
}

.hero-slide-video.playing {
  opacity: 1;
}

.hero:has(.hero-slide-bg.active) .hero-video-bg {
  opacity: 0;
}

.hero-slide-item {
  /* Inherits all .hero-dest-item layout via the shared strip */
  flex: 1;
  min-width: 100px;
  padding: 16px 20px;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: color 0.3s ease;
  background: none;
  font: inherit;
  text-align: left;
}

.hero-slide-item.active,
.hero-slide-item:hover {
  color: var(--White);
}

.hero-slide-item-progress {
  display: block;
  height: 100%;
  width: 0%;
  background: #fff;
  border-radius: 2px;
}

/* Destination backgrounds — container fades in/out */
.hero-dest-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0;
  transition: opacity 0.9s ease;
}

.hero-dest-bg.active {
  opacity: 1;
}

.hero-dest-bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Video sits above image; fades in once playing */
.hero-dest-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transition: opacity 0.9s ease;
}

.hero-dest-video.playing {
  opacity: 1;
}

/* When any dest-bg is active, fade out the default hero video */
.hero:has(.hero-dest-bg.active) .hero-video-bg {
  opacity: 0;
}

/* ── Destination selector strip ── */
.hero-dest-strip {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 3;
  display: flex;
  padding: 0 40px 32px;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.hero-dest-strip::-webkit-scrollbar { display: none; }

/* Hero slide strip fades in once hero-slides.js has picked which slides to show */
.hero--v2 .hero-dest-strip {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.hero--v2 .hero-dest-strip.is-ready {
  opacity: 1;
}

.hero-dest-item {
  flex: 1;
  min-width: 100px;
  padding: 14px 16px 12px;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.55);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  transition: color 0.2s;
  cursor: pointer;
}

.hero-dest-item.active,
.hero-dest-item:hover {
  color: var(--White);
  border-top-color: rgba(255, 255, 255, 0.6);
}

.hero-dest-item-name {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 6px;
  white-space: nowrap;
}

/* ── Destination overlay in hero content area ── */
.hero-headline-area {
  position: relative;
  width: 100%;
  min-height: 160px; /* prevents search bar from jumping during swap */
  margin-bottom: 32px;
}

.hero-default-headline,
.hero-dest-overlay {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.hero-default-headline {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.hero-default-headline.hidden {
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
}

.hero-dest-overlay {
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
}

.hero-dest-overlay.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.hero-dest-overlay-name {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--Brand-Accent);
  margin: 0 0 12px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7), 0 2px 12px rgba(0, 0, 0, 0.5);
}

.hero-dest-overlay-tagline {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 900;
  color: var(--White);
  margin: 0 0 28px;
  line-height: 1.1;
  text-align: center;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.75), 0 4px 20px rgba(0, 0, 0, 0.5);
}

.hero-dest-overlay-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-dest-overlay-btn {
  display: inline-block;
  padding: 16px 48px;
  font-family: var(--font-main);
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
  background-color: var(--Brand-Accent);
  color: var(--Brand-Primary);
  transition: var(--transition);
}

/* Matches .btn-primary (e.g. the "Plan My Cruise" CTA) */
.hero-dest-overlay-btn:hover {
  background-color: var(--Brand-Secondary);
  color: var(--Brand-Accent);
}

.hero-dest-item-bar {
  display: block;
  height: 2px;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 2px;
  overflow: hidden;
}

.hero-dest-item-progress {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--White);
  border-radius: 2px;
  transition: width linear;
}

.hero-dest-item.active .hero-dest-item-progress {
  width: 100%;
}

/* Push hero-content up to leave room for the strip */
.hero .container {
  padding-bottom: 130px;
}

/* v2: hero has no search widget, less bottom padding needed */
.hero--v2 .container {
  padding-bottom: 90px;
}

/* Hero fills full viewport — fixed transparent header overlaps from top */
.hero--v2 {
  margin-top: 0;
  height: 100svh;
  min-height: 500px;
  overflow: hidden;
}

/* ── Destination grid (v2) ── */
.dest-grid-section {
  background: #fff;
  padding: 64px 0 60px;
  border-top: 1px solid var(--Border);
}

/* Centered search block — heading + search as a unit */
.dest-grid-search-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
  margin-bottom: 44px;
}

.dest-grid-heading {
  font-size: 2rem;
  font-weight: 700;
  color: var(--Text);
  margin: 0;
  line-height: 1.2;
}

/* Segmented search bar */
.dest-search-bar {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 700px;
  background: #fff;
  border: 1.5px solid var(--Border);
  border-radius: 56px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.08);
  overflow: hidden;
  gap: 0;
}

.dest-search-seg-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 10px 20px;
  min-width: 0;
  cursor: pointer;
  background: none;
  border: none;
  text-align: left;
  transition: background 0.12s;
}

.dest-search-seg-btn:hover,
.dest-search-seg-btn.is-open {
  background: var(--Surface);
}

.dest-search-seg-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--Text);
  white-space: nowrap;
}

.dest-search-seg-value {
  font-size: 14px;
  color: var(--Text-Light);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.dest-search-seg-value.has-value {
  color: var(--Text-Primary);
  font-weight: 500;
}

.dest-search-divider {
  width: 1px;
  height: 36px;
  background: var(--Border);
  flex-shrink: 0;
}

.dest-search-submit {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--Brand-Primary);
  color: #fff;
  border: none;
  border-radius: 48px;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  margin: 5px;
  transition: background 0.15s;
}

.dest-search-submit:hover {
  background: var(--Brand-Secondary);
}

/* Drop-down panel */
.dest-search-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.14);
  z-index: 200;
  overflow: hidden;
}

@media (max-width: 600px) {
  .dest-grid-heading { font-size: 1.5rem; }
  .dest-search-bar {
    flex-direction: column;
    border-radius: 20px;
    max-width: 100%;
    overflow: visible;
  }
  .dest-search-seg-btn {
    width: 100%;
    border-bottom: 1px solid var(--Border);
    padding: 10px 16px;
    border-radius: 0;
  }
  .dest-search-divider { display: none; }
  .dest-search-submit {
    width: calc(100% - 10px);
    justify-content: center;
    border-radius: 12px;
  }
  .dest-search-panel {
    border-radius: 12px;
  }
  .dest-search-panel > div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }
}

/* Scroll wrap: positions the hint overlays — no overflow:hidden so padding is preserved */
.dest-grid-scroll-wrap {
  position: relative;
}

/* Fade + chevron hints on left and right edges */
.dest-grid-scroll-hint {
  position: absolute;
  top: 0;
  bottom: 8px;
  width: 64px;
  display: flex;
  align-items: center;
  color: var(--Text-Light);
  cursor: pointer;
  transition: opacity 0.25s ease;
  z-index: 1;
}

.dest-grid-scroll-hint:hover {
  color: var(--Text);
}

.dest-grid-scroll-hint--right {
  right: 0;
  justify-content: flex-end;
  padding-right: 10px;
  background: linear-gradient(to right, transparent, #fff 65%);
}

.dest-grid-scroll-hint--left {
  left: 0;
  justify-content: flex-start;
  padding-left: 10px;
  background: linear-gradient(to left, transparent, #fff 65%);
}

.dest-grid-scroll-hint.is-hidden {
  opacity: 0;
  pointer-events: none;
}

/* Horizontal scroll row — full viewport width, pseudo-element padding so cards
   never hide under overflow:hidden and the first card is always reachable */
.dest-grid {
  display: flex;
  flex-direction: row;
  gap: 14px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 8px;
  scrollbar-width: none;
  /* padding-inline won't clip — use pseudo-elements instead for start/end inset */
}
.dest-grid::-webkit-scrollbar { display: none; }

/* Spacers: small fixed inset at mobile, grow to center cards on wide screens */
.dest-grid::before,
.dest-grid::after {
  content: '';
  flex: 0 0 20px;
}

@media (min-width: 1250px) {
  .dest-grid::before,
  .dest-grid::after {
    flex: 1 0 20px;
    max-width: 160px;
  }
}

/* No centering wrapper needed */
.dest-grid-center { display: contents; }

.dest-grid-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  flex: 0 0 210px;
  height: 300px;
  text-decoration: none;
  display: block;
  background: var(--Brand-Primary);
  cursor: pointer;
}

/* On wider screens cards stay fixed-width and center naturally */
@media (min-width: 1200px) {
  .dest-grid-card { flex: 0 0 230px; height: 320px; }
}

@media (max-width: 600px) {
  .dest-grid-card { flex: 0 0 160px; height: 240px; }
}

.dest-grid-card-img,
.dest-grid-card-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.dest-grid-card-video {
  opacity: 0;
  transition: opacity 0.4s ease, transform 0.45s ease;
}

.dest-grid-card:hover .dest-grid-card-img,
.dest-grid-card.is-playing .dest-grid-card-img {
  transform: scale(1.05);
}

.dest-grid-card:hover .dest-grid-card-video,
.dest-grid-card.is-playing .dest-grid-card-video {
  opacity: 1;
  transform: scale(1.05);
}

/* Suppress videos on touch devices — hover never fires */
@media (hover: none) {
  .dest-grid-card-video { display: none; }
}

.dest-grid-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.78) 0%, rgba(0,0,0,0.18) 50%, transparent 72%);
  transition: background 0.35s ease;
}

.dest-grid-card:hover .dest-grid-card-overlay {
  background: linear-gradient(to top, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.3) 58%, transparent 80%);
}

.dest-grid-card-body {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 14px 14px 16px;
}

.dest-grid-card-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--White);
  margin: 0 0 3px;
  line-height: 1.2;
}

.dest-grid-card-tagline {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.72);
  margin: 0;
  line-height: 1.35;
  transition: opacity 0.25s ease, max-height 0.25s ease;
  /* Room for exactly 3 full lines (3 × 1.35); longer text ends in an ellipsis
     instead of showing a sliver of a clipped line */
  max-height: 4.05em;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
}

/* On hover: tagline fades to make room for CTAs */
.dest-grid-card:hover .dest-grid-card-tagline {
  opacity: 0;
  max-height: 0;
}

.dest-grid-card-ctas {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 10px;
  /* Hidden by default on pointer devices */
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.25s ease, max-height 0.3s ease, margin-top 0.25s ease;
  margin-top: 0;
}

.dest-grid-card:hover .dest-grid-card-ctas {
  opacity: 1;
  max-height: 120px;
  margin-top: 10px;
}

/* Touch/mobile: always show CTAs, never show video cycling */
@media (hover: none) {
  .dest-grid-card-tagline { opacity: 0.85; }
  .dest-grid-card-ctas {
    opacity: 1;
    max-height: 120px;
    margin-top: 8px;
  }
}

.dest-grid-card-btn {
  display: block;
  text-align: center;
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

.dest-grid-card-btn--explore {
  background: rgba(255,255,255,0.15);
  color: var(--White);
  border: 1.5px solid rgba(255,255,255,0.5);
  backdrop-filter: blur(4px);
}

.dest-grid-card-btn--explore:hover {
  background: rgba(255,255,255,0.28);
  border-color: rgba(255,255,255,0.8);
}

.dest-grid-card-btn--book {
  background: var(--Brand-Primary);
  color: var(--White);
  border: 1.5px solid var(--Brand-Primary);
}

.dest-grid-card-btn--book:hover {
  background: var(--Brand-Secondary);
  border-color: var(--Brand-Secondary);
}


.dest-grid-suggest {
  margin-top: 24px;
  font-size: 0.9rem;
  color: var(--Text-Light);
  text-align: center;
}

.dest-grid-suggest a {
  color: var(--Brand-Secondary);
  text-decoration: none;
  font-weight: 500;
}

.dest-grid-suggest a:hover {
  text-decoration: underline;
}


@media (max-width: 767px) {
  .hero-dest-strip {
    padding: 0 0 24px;
    flex: none;
  }

  .hero-dest-item {
    flex: 0 0 auto;
    padding: 12px 20px 10px;
  }

  .hero .container {
    padding-bottom: 150px;
  }
}

@media (max-width: 640px) {
  .hero-slide-item .hero-dest-item-name {
    display: none;
  }

  .hero-dest-strip {
    justify-content: center;
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero-slide-item {
    flex: 0 0 auto;
    min-width: 0;
    padding: 8px 6px;
  }

  .hero-slide-item .hero-dest-item-bar {
    width: 28px;
    height: 4px;
    border-radius: 4px;
  }
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.58) 0%,
    rgba(0, 0, 0, 0.18) 38%,
    rgba(0, 0, 0, 0.18) 62%,
    rgba(0, 0, 0, 0.52) 100%
  );
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  width: 100%;
  padding-top: 80px;
  padding-bottom: 32px;
}

.hero-content {
  flex: 1;
  max-width: 900px;
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  will-change: opacity, transform;
  animation: heroFadeUp 0.9s ease both;
}

.hero-eyebrow {
  color: var(--White);
  font-weight: 500;
  font-size: 1rem;
  margin-bottom: 24px;
  display: block;
}

.hero h1 {
  color: var(--White);
  margin-bottom: 10px;
  font-weight: 700;
  font-size: clamp(2.2rem, 4.5vw, 3rem);
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.45);
}

.hero > .container > .hero-content > p {
  color: rgba(255, 255, 255, 0.88);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
  font-size: 1.05rem;
  margin-bottom: 0;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.65;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  margin-top: 50px;
  flex-wrap: wrap;
}

.hero .btn-primary {
  background-color: var(--Brand-Accent);
  color: var(--Brand-Primary);
}

.hero .btn-primary:hover {
  background-color: var(--Brand-Secondary);
  color: var(--Brand-Accent);
}

/* --- Hero Lead Capture Form --- */
.hero-lead-form {
  margin-top: 20px;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 16px;
  padding: 24px 28px 20px;
  max-width: 620px;
  width: 100%;
  box-sizing: border-box;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  text-align: left;
}

.hero-lead-label {
  color: var(--Text-Light);
  font-size: 0.85rem;
  margin-bottom: 12px;
  text-align: center;
}

.hero-lead-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

/* Destination chips span full width */
.hero-lead-interest {
  grid-column: 1 / -1;
}

.hero-lead-fields input {
  background: var(--White);
  border: 2px solid var(--gray-light);
  border-radius: 10px;
  padding: 10px 14px;
  color: var(--Text);
  font-size: 0.9rem;
  font-family: var(--font-main);
  outline: none;
  transition: border-color 0.2s ease;
  width: 100%;
  box-sizing: border-box;
}

.hero-lead-fields input::placeholder {
  color: var(--Text-Light);
}

.hero-lead-fields input:focus {
  border-color: var(--Brand-Secondary);
  box-shadow: 0 0 0 3px rgba(22, 64, 214, 0.1);
}

.hero-lead-interest-label {
  display: block;
  color: var(--Text-Light);
  font-size: 0.72rem;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  text-align: center;
}

.hero-lead-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.hero-chip {
  background: var(--White);
  border: 2px solid var(--gray-light);
  border-radius: 20px;
  color: var(--Text);
  font-size: 0.8rem;
  font-family: var(--font-main);
  padding: 5px 13px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.hero-chip:hover {
  border-color: var(--Brand-Secondary);
  color: var(--Brand-Secondary);
}

.hero-chip.active {
  background: var(--Brand-Tertiary);
  border-color: var(--Brand-Tertiary);
  color: var(--White);
}

.hero-lead-actions {
  margin-top: 14px;
  display: flex;
  justify-content: center;
}

.hero-lead-actions .btn {
  padding: 12px 40px;
  font-size: 0.95rem;
  border-radius: 8px;
}

.hero-lead-success {
  text-align: center;
  padding: 24px 28px 20px;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 16px;
  max-width: 620px;
  width: 100%;
  box-sizing: border-box;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero-success-msg {
  color: var(--Brand-Primary);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 14px;
}

.hero-success-pref-label {
  color: var(--Text-Light);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 10px;
}

.hero-pref-chips {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 14px;
}

.hero-phone-row {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  align-items: center;
}

.hero-phone-row input {
  flex: 1;
  background: var(--White);
  border: 2px solid var(--gray-light);
  border-radius: 10px;
  padding: 10px 14px;
  color: var(--Text);
  font-size: 0.9rem;
  font-family: var(--font-main);
  outline: none;
  transition: border-color 0.2s ease;
}

.hero-phone-row input::placeholder {
  color: var(--Text-Light);
}

.hero-phone-row input:focus {
  border-color: var(--Brand-Secondary);
  box-shadow: 0 0 0 3px rgba(22, 64, 214, 0.1);
}

.hero-phone-done {
  color: var(--Brand-Primary);
  font-size: 0.9rem;
  font-weight: 500;
  margin-top: 12px;
}

/* --- Hero Scroll Cue --- */
.hero-scroll-cue {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.1s ease;
  animation: scrollCueBob 2s ease-in-out infinite;
  will-change: opacity;
}

.hero-scroll-cue:hover {
  color: rgba(255, 255, 255, 0.85);
}

.hero-scroll-cue svg {
  opacity: 0.7;
}

@keyframes scrollCueBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Browse / search section — sits naturally below the hero */
.browse-search-section {
  background-color: var(--White);
  padding: 56px 0 72px;
}

.browse-search-header {
  text-align: center;
  margin-bottom: 36px;
}

.browse-search-header h2 {
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--Brand-Primary);
  margin-bottom: 12px;
}

.browse-search-header p {
  font-size: 1.05rem;
  color: rgba(0, 27, 121, 0.6);
  max-width: 520px;
  margin: 0 auto;
}

.browse-search-widget {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 16px;
}

.browse-search-widget .cruise-search-modern {
  box-shadow: 0 4px 40px rgba(0, 0, 0, 0.10);
  border-radius: 16px;
}

/* ─── Hero search widget ─────────────────────────────────────── */
.hero-search-widget {
  margin-top: 28px;
  width: 100%;
  max-width: 640px;
}

/* Search bar */
.hero-search-bar {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 56px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.32);
  padding: 6px 6px 6px 20px;
  gap: 8px;
}

.hero-search-icon {
  flex-shrink: 0;
  color: rgba(0, 27, 121, 0.45);
}

.hero-search-input {
  flex: 1;
  border: none;
  background: none;
  outline: none;
  font-size: 16px;
  color: var(--Text-Dark);
  min-width: 0;
  padding: 8px 0;
}

.hero-search-input::placeholder {
  color: rgba(0, 27, 121, 0.4);
}

/* hide browser's native ✕ on search inputs */
.hero-search-input::-webkit-search-cancel-button { display: none; }

.hero-search-submit {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--Brand-Primary);
  color: var(--White);
  border: none;
  border-radius: 48px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s;
  flex-shrink: 0;
}

.hero-search-submit:hover {
  background: var(--Brand-Secondary);
}

/* Autocomplete dropdown */
.hero-search-ac {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--White);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
  overflow: hidden;
  z-index: 200;
}

.hero-search-ac.open {
  display: block;
}

.hero-ac-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 18px;
  cursor: pointer;
  font-size: 14px;
  color: var(--Text-Dark);
  border-bottom: 1px solid rgba(0, 27, 121, 0.06);
  transition: background 0.1s;
}

.hero-ac-item:last-child { border-bottom: none; }

.hero-ac-item:hover,
.hero-ac-item.focused { background: rgba(22, 64, 214, 0.06); }

.hero-ac-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(0, 27, 121, 0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--Brand-Secondary);
}

.hero-ac-text { flex: 1; min-width: 0; }

.hero-ac-name {
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero-ac-type {
  font-size: 11px;
  color: rgba(0, 27, 121, 0.45);
  margin-top: 1px;
}

/* Destination tiles */
.hero-dest-tiles {
  margin-top: 18px;
  text-align: center;
}

.hero-dest-label {
  display: block;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 500;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.hero-dest-row {
  display: flex;
  justify-content: center;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 4px;
}

.hero-dest-row::-webkit-scrollbar { display: none; }

.hero-dest-tile {
  flex: 0 0 110px;
  height: 78px;
  border-radius: 10px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  text-decoration: none;
  scroll-snap-align: start;
  overflow: hidden;
  position: relative;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

.hero-dest-tile::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.1) 55%, transparent 100%);
  border-radius: inherit;
}

.hero-dest-tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.35);
}

.hero-dest-tile-name {
  position: relative;
  z-index: 1;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 8px;
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-align: center;
}

.hero-dest-suggest {
  display: inline-block;
  margin-top: 12px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  transition: color 0.15s;
}

.hero-dest-suggest:hover {
  color: rgba(255, 255, 255, 0.95);
}

@media (max-width: 480px) {
  .hero-search-submit span { display: none; }
  .hero-search-submit { padding: 10px 14px; }
  .hero-dest-tile { flex: 0 0 95px; height: 68px; }
}

/* Lead capture section */
/* --- Hero Lead Band (below hero, above destination grid) --- */
.hero-lead-band {
  background: linear-gradient(135deg, var(--Brand-Primary) 0%, #0a3399 100%);
  padding: 56px 0;
}

.hero-lead-band-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.hero-lead-band-text h2 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
  color: var(--White);
  margin-bottom: 12px;
  line-height: 1.2;
}

.hero-lead-band-text p {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.6;
}

.hero-lead-band-form .hero-lead-form,
.hero-lead-band-form .hero-lead-success {
  margin-top: 0;
}

/* Newsletter opt-in buttons in hero success state */
.hero-nl-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 4px;
}

.hero-nl-btn {
  background: var(--White);
  border: 2px solid var(--gray-light);
  border-radius: 20px;
  color: var(--Text);
  font-size: 0.82rem;
  font-family: var(--font-main);
  padding: 6px 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.hero-nl-btn:hover {
  border-color: var(--Brand-Secondary);
  color: var(--Brand-Secondary);
}

.hero-nl-btn.active {
  background: var(--Brand-Tertiary);
  border-color: var(--Brand-Tertiary);
  color: var(--White);
}

.hero-nl-btn[data-topic=""].active {
  background: var(--gray-light);
  border-color: var(--gray-light);
  color: var(--Text);
}

.hero-nl-save {
  width: 100%;
}

@media (max-width: 768px) {
  .hero-lead-band-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .hero-lead-band-text {
    text-align: center;
  }
}

.lead-capture-section {
  background: linear-gradient(135deg, var(--Brand-Primary) 0%, #0a3399 100%);
  padding: 72px 0;
}

.lead-capture-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.lead-capture-text h2 {
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  font-weight: 700;
  color: var(--White);
  margin-bottom: 16px;
  line-height: 1.2;
}

.lead-capture-text p {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.6;
}

.lead-capture-form-wrap .hero-lead-form,
.lead-capture-form-wrap .hero-lead-success {
  margin-top: 0;
}

@media (max-width: 768px) {
  .lead-capture-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .lead-capture-text {
    text-align: center;
  }
}

/* --- Browse Section --- */
.browse-section {
  background-color: var(--off-white);
  padding: 80px 0;
}

.browse-section-title {
  text-align: center;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--Brand-Primary);
  margin-bottom: 8px;
}

.browse-section-subtitle {
  text-align: center;
  color: var(--Text-Muted, #666);
  font-size: 0.95rem;
  margin-bottom: 32px;
}

/* --- Cruise Search Widget --- */
.cruise-search-modern {
  position: relative;
  z-index: 10;
  margin: 50px auto 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 32px 36px;
  max-width: 860px;
  box-sizing: border-box;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  border-radius: 16px;
  text-align: left;
}

.cruise-search-modern h3 {
  color: var(--Brand-Primary);
  font-size: 28px;
  margin-bottom: 6px;
  font-weight: 700;
  text-align: center;
  width: 100%;
}

.cruise-search-modern .search-subtitle {
  color: var(--Text-Light);
  font-size: 14px;
  margin-bottom: 20px;
  text-align: center;
  width: 100%;
}

/* Filter Row */
.filter-row {
  display: flex;
  gap: 10px;
  align-items: stretch;
  flex-wrap: wrap;
}

.filter-btn {
  flex: 1 1 160px;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border: 2px solid var(--gray-light);
  border-radius: 12px;
  background: var(--White);
  cursor: pointer;
  font-family: var(--font-main);
  font-size: 14px;
  font-weight: 600;
  color: var(--Text);
  transition: all 0.2s ease;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.filter-btn:hover {
  border-color: var(--Brand-Secondary);
  background: var(--off-white);
}

.filter-btn.active {
  border-color: var(--Brand-Secondary);
  box-shadow: 0 0 0 3px rgba(22, 64, 214, 0.1);
}

.filter-btn.has-selection {
  border-color: var(--Brand-Secondary);
  background: rgba(22, 64, 214, 0.04);
}

.filter-btn-icon {
  color: var(--Brand-Secondary);
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.filter-btn-label {
  flex: 1;
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
}

.filter-chevron {
  color: var(--Text-Light);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.filter-btn.active .filter-chevron {
  transform: rotate(180deg);
}

.search-btn {
  height: auto;
  padding: 12px 28px;
  border: none;
  border-radius: 12px;
  background: var(--Brand-Accent);
  color: var(--Brand-Primary);
  font-family: var(--font-main);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

.search-btn:hover {
  background: var(--Brand-Secondary);
  color: var(--White);
}

.search-btn svg {
  transition: transform 0.3s ease;
}

.search-btn:hover svg {
  transform: translateX(4px);
}

/* Selected Tags */
.selected-tags-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 12px;
}

.selected-tags-row:not(:has(.selected-tag)) {
  margin-top: 0;
}

.selected-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  flex: 1;
  min-height: 0;
}

.clear-all-btn {
  background: none;
  border: none;
  color: var(--Brand-Accent);
  font-family: var(--font-main);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  padding: 6px 0;
  white-space: nowrap;
  transition: opacity 0.2s;
}

.clear-all-btn:hover {
  opacity: 0.7;
}

.selected-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  background: var(--Brand-Secondary);
  color: var(--White);
  border-radius: 16px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  animation: slideIn 0.2s ease;
}

.selected-tag-remove {
  background: none;
  border: none;
  color: var(--White);
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  margin-left: 2px;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.selected-tag-remove:hover {
  opacity: 1;
}

@keyframes slideIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Filter Panels (shared) */
.filter-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--White);
  border: 1px solid var(--gray-light);
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
  z-index: 100;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px 12px;
  border-bottom: 1px solid var(--gray-light);
}

.panel-header h4 {
  font-size: 17px;
  font-weight: 700;
  color: var(--Brand-Primary);
  margin: 0;
}

.panel-close {
  background: none;
  border: none;
  font-size: 24px;
  color: var(--Text-Light);
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
  transition: color 0.2s;
}

.panel-close:hover {
  color: var(--Text);
}

.panel-search {
  padding: 12px 20px;
}

.panel-search input {
  width: 100%;
  padding: 10px 14px;
  border: 2px solid var(--gray-light);
  border-radius: 8px;
  font-family: var(--font-main);
  font-size: 14px;
  color: var(--Text);
  outline: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
}

.panel-search input:focus {
  border-color: var(--Brand-Secondary);
}

.panel-search input::placeholder {
  color: var(--Text-Light);
  opacity: 0.6;
}

.panel-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.panel-search-wrap input {
  padding-right: 32px; /* room for clear button */
}

.panel-search-clear {
  position: absolute;
  right: 10px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  color: var(--Text-Light);
  padding: 0 2px;
}

.panel-search-clear:hover {
  color: var(--Text);
}

/* Search match highlight */
mark {
  background: #fff3b0;
  color: inherit;
  border-radius: 2px;
  padding: 0 1px;
}

.panel-list {
  max-height: 280px;
  overflow-y: auto;
  padding: 4px 12px;
}

.panel-list::-webkit-scrollbar {
  width: 6px;
}

.panel-list::-webkit-scrollbar-thumb {
  background: var(--gray-light);
  border-radius: 3px;
}

/* Home search widget panel list items */
.panel-list-item {
  padding: 9px 4px;
  border-bottom: 1px solid rgba(0, 27, 121, 0.06);
  font-size: 14px;
  color: var(--Text-Dark);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 6px;
  transition: background 0.1s;
}

.panel-list-item:last-child {
  border-bottom: none;
}

.panel-list-item:hover {
  background: rgba(22, 64, 214, 0.05);
}

.panel-list-item.selected {
  color: var(--Brand-Secondary);
  font-weight: 600;
}

.panel-list-item.selected::before {
  content: "✓";
  font-size: 12px;
  color: var(--Brand-Secondary);
  flex-shrink: 0;
}

/* Month grid cells for home widget */
.month-cell {
  padding: 6px 4px;
  font-size: 12px;
  font-weight: 500;
  border: 1.5px solid var(--gray-light);
  border-radius: 6px;
  background: var(--White);
  color: var(--Text-Dark);
  cursor: pointer;
  transition: all 0.15s;
}

.month-cell:hover {
  border-color: var(--Brand-Secondary);
  color: var(--Brand-Secondary);
}

.month-cell.selected {
  background: var(--Brand-Secondary);
  border-color: var(--Brand-Secondary);
  color: var(--White);
}

/* Destination / Port toggle tabs */
.dest-port-tabs {
  display: flex;
  padding: 0 16px;
  gap: 0;
  border-bottom: 1px solid var(--gray-light);
}

.dest-port-tab {
  flex: 1;
  padding: 10px 12px;
  border: none;
  background: none;
  font-family: var(--font-main);
  font-size: 13px;
  font-weight: 600;
  color: var(--Text-Light);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
}

.dest-port-tab:hover {
  color: var(--Text);
}

.dest-port-tab.active {
  color: var(--Brand-Secondary);
  border-bottom-color: var(--Brand-Secondary);
}

/* Loading spinner */
.panel-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 16px;
  min-height: 200px;
}

.panel-loading p {
  margin: 12px 0 0;
  font-size: 14px;
  color: var(--Text-Light);
}

.panel-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--gray-light);
  border-top-color: var(--Brand-Secondary);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Inline list loading overlay */
.panel-list-loading {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
}

.panel-spinner-small {
  width: 24px;
  height: 24px;
  border: 3px solid var(--gray-light);
  border-top-color: var(--Brand-Secondary);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

/* Ship loading spinner (inline in sub-items) */
.ship-loading {
  display: flex;
  justify-content: center;
  padding: 8px 0;
}

/* Port selection message */
.port-selected-message {
  padding: 40px 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 200px;
}

.port-selected-message p {
  margin: 0 0 6px;
  font-size: 15px;
  color: var(--Text);
}

.port-selected-hint {
  font-size: 13px !important;
  color: var(--Text-Light) !important;
  margin-bottom: 16px !important;
}

.port-clear-btn {
  padding: 8px 20px;
  border: 1px solid var(--Brand-Secondary);
  background: none;
  color: var(--Brand-Secondary);
  border-radius: 20px;
  font-family: var(--font-main);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.port-clear-btn:hover {
  background: var(--Brand-Secondary);
  color: white;
}

/* Checklist items */
.panel-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 8px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s;
  user-select: none;
}

.panel-item:hover {
  background: var(--off-white);
}

.panel-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--Brand-Secondary);
  cursor: pointer;
  flex-shrink: 0;
}

.panel-item-label {
  font-size: 14px;
  color: var(--Text);
  flex: 1;
}

/* Unavailable (filtered out by cross-filter) */
.dest-group.unavailable,
.cruise-line-group.unavailable,
.panel-sub-item.unavailable {
  opacity: 0.4;
  pointer-events: none;
}

/* Cruise line expand arrow */
.panel-item-expand {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: var(--Text-Light);
  transition: transform 0.2s;
  display: flex;
  align-items: center;
}

.panel-item-expand.expanded {
  transform: rotate(90deg);
}

/* Ship sub-items */
.panel-sub-items {
  display: none;
  padding-left: 28px;
}

.panel-sub-items.open {
  display: block;
}

.panel-sub-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s;
  user-select: none;
}

.panel-sub-item:hover {
  background: var(--off-white);
}

.panel-sub-item input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--Brand-Secondary);
  cursor: pointer;
  flex-shrink: 0;
}

.panel-sub-item-label {
  font-size: 13px;
  color: var(--Text-Light);
}

/* Cruise type filter tabs */
.cruise-type-tabs {
  display: flex;
  gap: 6px;
  padding: 10px 20px 0;
  flex-wrap: wrap;
}

.cruise-type-tab {
  padding: 6px 14px;
  border: 2px solid var(--gray-light);
  border-radius: 20px;
  background: var(--White);
  font-family: var(--font-main);
  font-size: 12px;
  font-weight: 600;
  color: var(--Text-Light);
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.cruise-type-tab:hover {
  border-color: var(--Brand-Secondary);
  color: var(--Text);
}

.cruise-type-tab.active {
  border-color: var(--Brand-Secondary);
  background: var(--Brand-Secondary);
  color: var(--White);
}

/* Panel footer */
.panel-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding: 12px 20px;
  border-top: 1px solid var(--gray-light);
}

.panel-reset {
  color: var(--Brand-Accent);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  margin-right: auto;
  cursor: pointer;
}

.panel-reset:hover {
  color: var(--Brand-Tertiary);
}

.panel-done,
.panel-cancel {
  padding: 8px 24px;
  border: 2px solid var(--gray-light);
  border-radius: 8px;
  background: var(--White);
  font-family: var(--font-main);
  font-size: 14px;
  font-weight: 600;
  color: var(--Text);
  cursor: pointer;
  transition: all 0.2s;
}

.panel-done:hover,
.panel-cancel:hover {
  border-color: var(--Text-Light);
}

.panel-save {
  padding: 8px 28px;
  border: none;
  border-radius: 8px;
  background: var(--Brand-Accent);
  font-family: var(--font-main);
  font-size: 14px;
  font-weight: 700;
  color: var(--Brand-Primary);
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.5px;
}

.panel-save:hover {
  background: var(--Brand-Secondary);
  color: var(--White);
}

/* Dates Panel */
.date-tabs {
  display: flex;
  padding: 0 20px;
  gap: 0;
  margin-top: 4px;
}

.date-tab {
  flex: 1;
  padding: 12px 16px;
  border: none;
  background: none;
  font-family: var(--font-main);
  font-size: 15px;
  font-weight: 600;
  color: var(--Text-Light);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: all 0.2s;
  border-radius: 12px 12px 0 0;
}

.date-tab:hover {
  color: var(--Text);
  background: var(--off-white);
}

.date-tab.active {
  color: var(--Text);
  background: var(--off-white);
  border-bottom-color: var(--Brand-Secondary);
  font-weight: 600;
}

.date-tab-content {
  padding: 20px;
}

/* Month Grid */
.month-grid-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
}

.year-nav {
  width: 36px;
  height: 36px;
  border: none;
  background: none;
  font-size: 28px;
  color: var(--Text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s;
  flex-shrink: 0;
}

.year-nav:hover {
  background: var(--off-white);
}

.year-nav:disabled {
  opacity: 0.3;
  cursor: default;
}

.month-grid-container {
  flex: 1;
  display: flex;
  gap: 24px;
}

.month-grid-year {
  flex: 1;
}

.year-label {
  font-size: 16px;
  font-weight: 700;
  color: var(--Brand-Primary);
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--gray-light);
}

.month-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.month-pill {
  padding: 8px 4px;
  border: 2px solid var(--gray-light);
  border-radius: 20px;
  background: var(--White);
  font-family: var(--font-main);
  font-size: 13px;
  font-weight: 500;
  color: var(--Text);
  cursor: pointer;
  text-align: center;
  transition: all 0.2s;
}

.month-pill:hover {
  border-color: var(--Brand-Secondary);
  background: var(--off-white);
}

.month-pill.selected {
  border-color: var(--Brand-Accent);
  background: var(--Brand-Accent);
  color: var(--Brand-Primary);
  font-weight: 700;
}

.month-pill.past {
  opacity: 0.35;
  cursor: default;
  pointer-events: none;
}

/* Specific date form */
.specific-date-form {
  display: flex;
  gap: 20px;
  margin-bottom: 8px;
}

.specific-date-field {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.specific-date-field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--Text-Light);
}

.specific-date-field input[type="date"] {
  padding: 10px 12px;
  border: 1px solid var(--gray-light);
  border-radius: 8px;
  font-family: var(--font-main);
  font-size: 14px;
  color: var(--Text);
  background: var(--White);
  transition: border-color 0.2s;
}

.specific-date-field input[type="date"]:focus {
  outline: none;
  border-color: var(--Brand-Secondary);
}

/* Duration */
.duration-section {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--gray-light);
}

.duration-section h5 {
  font-size: 15px;
  font-weight: 700;
  color: var(--Text);
  margin: 0 0 10px;
}

.duration-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.duration-pill {
  padding: 8px 16px;
  border: 2px solid var(--gray-light);
  border-radius: 20px;
  background: var(--White);
  font-family: var(--font-main);
  font-size: 13px;
  font-weight: 500;
  color: var(--Text);
  cursor: pointer;
  transition: all 0.2s;
}

.duration-pill:hover {
  border-color: var(--Brand-Secondary);
}

.duration-pill.selected {
  border-color: var(--Brand-Accent);
  color: var(--Brand-Accent);
  font-weight: 700;
}

/* Specific date placeholder */
.specific-placeholder {
  text-align: center;
  color: var(--Text-Light);
  padding: 40px 20px;
  font-size: 14px;
}

/* Responsive */
@media (max-width: 767px) {
  /* Prevent horizontal overflow */
  .cruise-search-modern {
    padding: 24px 16px;
    margin-top: 35px;
    border-radius: 12px;
    overflow: hidden;
    max-width: 100%;
    box-sizing: border-box;
  }

  .cruise-search-modern h3 {
    font-size: 22px;
  }

  .filter-row {
    flex-direction: column;
    gap: 8px;
  }

  .filter-btn {
    flex: 0 0 auto;
    padding: 10px 14px;
    font-size: 13px;
  }

  .search-btn {
    width: 100%;
    justify-content: center;
    padding: 12px 24px;
  }

  /* Full-screen panels on mobile */
  .filter-panel {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 0;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  /* Compact header on mobile */
  .filter-panel .panel-header {
    flex-shrink: 0;
    padding: 12px 16px 8px;
  }

  /* Compact search input on mobile */
  .filter-panel .panel-search {
    flex-shrink: 0;
    padding: 8px 16px;
  }

  .filter-panel .panel-search input {
    padding: 8px 12px;
    font-size: 13px;
  }

  .filter-panel .dest-port-tabs {
    flex-shrink: 0;
  }

  .filter-panel .date-tabs {
    flex-shrink: 0;
  }

  /* Compact list items to show more at once */
  .filter-panel .panel-item {
    padding: 7px 8px;
    gap: 8px;
  }

  .filter-panel .panel-item input[type="checkbox"] {
    width: 16px;
    height: 16px;
  }

  .filter-panel .panel-item-label {
    font-size: 13px;
  }

  .filter-panel .panel-list {
    max-height: none;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 2px 12px;
  }

  /* Tab content containers fill remaining space and scroll */
  #destTabContent,
  #portTabContent {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    min-height: 0;
  }

  #destTabContent .panel-list,
  #portTabContent .panel-list {
    flex: 1;
  }

  /* Cruise lines list fills remaining space */
  #cruiseLinesPanel .panel-list {
    flex: 1;
  }

  /* Date tab content scrollable */
  .date-tab-content {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    min-height: 0;
  }

  /* Compact footer on mobile */
  .filter-panel .panel-footer {
    flex-shrink: 0;
    padding: 10px 16px;
  }

  /* Month grid stacks vertically on mobile */
  .month-grid-container {
    flex-direction: column;
    gap: 16px;
  }

  .month-grid-wrapper {
    flex-wrap: wrap;
    justify-content: center;
  }

  .year-nav {
    position: static;
  }

  /* Duration pills wrap nicely */
  .duration-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }

  /* Selected tags smaller on mobile */
  .selected-tag {
    font-size: 12px;
    padding: 4px 8px;
  }

  /* Cruise type tabs scroll horizontally */
  .cruise-type-tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap;
  }

  /* Port selected message in mobile panel */
  .port-selected-message {
    min-height: 150px;
  }

  /* Destination/port tabs more compact */
  .dest-port-tab {
    padding: 8px 10px;
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .cruise-search-modern {
    padding: 18px 12px;
  }

  .cruise-search-modern h3 {
    font-size: 20px;
  }

  .cruise-search-modern .search-subtitle {
    font-size: 13px;
  }

  /* Even more compact items on small phones */
  .filter-panel .panel-item {
    padding: 6px 6px;
  }

  .filter-panel .panel-item-label {
    font-size: 12px;
  }

  .month-pill {
    font-size: 12px;
    padding: 6px 2px;
  }

  .duration-pill {
    font-size: 12px;
    padding: 6px 12px;
  }

  .panel-header h4 {
    font-size: 15px;
  }

  .filter-btn-label {
    font-size: 12px;
  }
}


/* --- Features / Services Section --- */
.features {
  position: relative;
  z-index: 1;
  padding: var(--section-padding);
  background-color: var(--White);
  border-radius: 24px 24px 0 0;
  /* Faint nautical wave tile — barely visible texture */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='40' viewBox='0 0 120 40'%3E%3Cpath d='M0 20 C15 10, 30 10, 45 20 S75 30, 90 20 S105 10, 120 20' stroke='%23001b79' stroke-width='1.2' fill='none' stroke-opacity='0.06'/%3E%3C/svg%3E");
  background-size: 120px 40px;
  background-repeat: repeat;
}

.features .section-title {
  color: var(--Brand-Primary);
}

.features .section-subtitle {
  color: rgba(0, 27, 121, 0.55);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 50px;
}

@media (min-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Three-card variant (About page) — single column until there's room for all three */
.features-grid--3 {
  grid-template-columns: 1fr;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 900px) {
  .features-grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-card {
  background: var(--Brand-Primary);
  padding: 36px 30px;
  text-align: left;
  border-radius: 4px;
  border-top: 3px solid var(--Brand-Tertiary);
  /* scroll-reveal: starts hidden, JS adds .revealed */
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.feature-card.revealed {
  opacity: 1;
  transform: translateY(0);
}

.feature-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 1.8px solid rgba(255, 255, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--White);
  background: transparent;
}

.feature-card h3 {
  font-size: 20px;
  margin-bottom: 10px;
  color: var(--White);
}

.feature-card p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.6);
}

/* =============================================
   Section: Popular Destinations (Photo Scroll)
   ============================================= */
.destinations-photo-section {
  position: relative;
  height: 500vh;
}

.destinations-photo-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  background: var(--Brand-Primary);
}

.dest-photo {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease;
}

.dest-photo.active {
  opacity: 1;
}

.dest-photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 12, 50, 0.6) 0%,
    rgba(0, 12, 50, 0.15) 40%,
    rgba(0, 12, 50, 0.15) 60%,
    rgba(0, 12, 50, 0.7) 100%
  );
  z-index: 1;
}

.dest-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
  padding: 56px 48px 0;
  pointer-events: none;
  transition: padding-top 0.3s ease;
}

.dest-header h2 {
  color: var(--White);
  font-size: clamp(28px, 4vw, 42px);
  margin-bottom: 8px;
}

.dest-header p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 1rem;
  max-width: 500px;
}

/* Active destination info — centered */
.dest-info {
  position: absolute;
  bottom: 140px;
  left: 0;
  right: 0;
  z-index: 2;
  text-align: center;
  pointer-events: none;
}

.dest-info-title {
  color: var(--White);
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 900;
  margin-bottom: 8px;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
}

.dest-info-desc {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.15rem;
}

.dest-info-link {
  display: inline-block;
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.85rem;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  transition: color 0.2s ease, border-color 0.2s ease;
  pointer-events: auto;
}

.dest-info-link:hover {
  color: var(--White);
  border-color: var(--White);
}

/* Ship navigation strip */
.dest-nav {
  position: absolute;
  bottom: 48px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.dest-nav-track {
  display: flex;
  align-items: center;
  gap: 0;
  position: relative;
}

.dest-dot {
  background: none;
  border: 2px solid rgba(255, 255, 255, 0.5);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  cursor: pointer;
  position: relative;
  padding: 0;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.dest-dot.active {
  border-color: var(--White);
}

.dest-nav-line {
  width: 70px;
  height: 2px;
  background: rgba(255, 255, 255, 0.25);
  flex-shrink: 0;
}

.dest-ship {
  position: absolute;
  top: -24px;
  left: 0;
  transform: scaleX(-1);
  transition: translate 0.8s cubic-bezier(0.25, 0.1, 0.25, 1);
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
  pointer-events: none;
}

/* =============================================
   Section: Popular Destinations (Video Cards)
   ============================================= */
.dest-cards-section {
  background: #000;
  padding: 64px 0 72px;
}

.dest-cards-header {
  text-align: center;
  margin-bottom: 40px;
  padding: 0 24px;
}

.dest-cards-header h2 {
  color: var(--White);
  font-size: clamp(26px, 3.5vw, 40px);
  font-weight: 800;
  margin: 0;
}

.dest-cards-track {
  display: flex;
  gap: 12px;
  padding: 0 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.dest-cards-track::-webkit-scrollbar { display: none; }

.dest-card {
  position: relative;
  flex: 0 0 260px;
  height: 440px;
  border-radius: 16px;
  overflow: hidden;
  scroll-snap-align: center;
  cursor: pointer;
  background: #111;
}

.dest-card-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.4s ease;
}

.dest-card-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.4s ease;
}

@media (hover: hover) {
  .dest-card:hover .dest-card-video {
    opacity: 1;
  }
  .dest-card:hover .dest-card-poster {
    opacity: 0;
  }
}

.dest-card.is-playing .dest-card-video {
  opacity: 1;
}
.dest-card.is-playing .dest-card-poster {
  opacity: 0;
}

.dest-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.10) 0%,
    rgba(0, 0, 0, 0.15) 45%,
    rgba(0, 0, 0, 0.75) 100%
  );
  z-index: 1;
}

.dest-card-body {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  padding: 20px 18px 22px;
}

.dest-card-name {
  color: var(--White);
  font-size: 1.25rem;
  font-weight: 800;
  margin: 0 0 4px;
  line-height: 1.2;
}

.dest-card-hook {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.82rem;
  margin: 0 0 14px;
  line-height: 1.4;
}

.dest-card-actions {
  display: flex;
  gap: 8px;
}

.dest-card-btn {
  flex: 1;
  text-align: center;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
  letter-spacing: 0.02em;
}

.dest-card-btn--explore {
  background: rgba(255, 255, 255, 0.15);
  color: var(--White);
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(6px);
}

.dest-card-btn--explore:hover {
  background: rgba(255, 255, 255, 0.28);
}

.dest-card-btn--book {
  background: var(--White);
  color: var(--Brand-Primary);
}

.dest-card-btn--book:hover {
  background: rgba(255, 255, 255, 0.88);
}

@media (min-width: 900px) {
  .dest-cards-track {
    overflow-x: visible;
    padding: 0 48px;
    justify-content: center;
  }

  .dest-card {
    flex: 1 1 0;
    max-width: 280px;
    height: 520px;
  }
}

/* =============================================
   Section: Featured Itineraries (Map + Routes)
   ============================================= */
.itineraries-section {
  position: relative;
  height: 100vh;
  overflow: hidden;
  background: var(--Brand-Primary);
}

.itineraries-sticky {
  position: absolute;
  inset: 0;
  overflow: hidden;
}


#itinerariesMap {
  position: absolute;
  inset: 0;
}

.itineraries-tint {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0, 12, 50, 0.85) 0%,
    rgba(0, 12, 50, 0.5) 35%,
    rgba(0, 12, 50, 0.15) 100%
  );
  z-index: 700;
  pointer-events: none;
}

.itineraries-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 800;
  padding: 56px 48px 0;
  pointer-events: none;
  transition: padding-top 0.3s ease;
}

/* Shift sticky section headers down when header bar is visible */
.header-showing .dest-header,
.header-showing .itineraries-header {
  padding-top: 110px;
}

.itineraries-header h2 {
  color: var(--White);
  font-size: clamp(28px, 4vw, 42px);
  margin-bottom: 6px;
}

.itineraries-header p {
  color: rgba(255, 255, 255, 0.65);
  font-size: 1rem;
  font-style: italic;
}

/* Leaflet overrides */
.itineraries-section .leaflet-control-attribution,
.itineraries-section .leaflet-control-zoom {
  display: none;
}

.itineraries-section .leaflet-container {
  background: #0a0e2a;
}

.itineraries-section .leaflet-tile {
  margin: -1px;
  padding: 1px;
}

/* Itinerary card panel */
.itinerary-card {
  position: absolute;
  top: 50%;
  left: 48px;
  transform: translateY(-50%);
  z-index: 800;
  width: 380px;
  margin-top: 40px;
  transition: margin-top 0.3s ease;
}

.header-showing .itinerary-card {
  margin-top: 75px;
}

.itinerary-card-inner {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  max-height: 80vh;
  overflow-y: auto;
  transition: opacity 0.35s ease;
}

.itinerary-card-inner.transitioning {
  opacity: 0;
}

.itin-image {
  width: calc(100% + 64px);
  max-width: none;
  height: 120px;
  object-fit: cover;
  margin: -32px -32px 16px;
  display: block;
}

.itin-title {
  font-size: 1.5rem;
  color: var(--Brand-Primary);
  margin-bottom: 12px;
}

.itin-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 20px;
  font-size: 0.85rem;
  color: var(--Text-Light);
}

.itin-meta span {
  display: inline;
}

.itin-divider {
  font-size: 1.1rem;
  line-height: 1;
  color: var(--Text-Light);
}

.itin-love {
  margin-bottom: 20px;
}

.itin-love strong {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--Brand-Secondary);
  margin-bottom: 6px;
}

.itin-love-text {
  font-size: 0.95rem;
  color: var(--Text-Light);
  line-height: 1.6;
}

.itin-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.itin-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.itin-nav-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1.5px solid rgba(0, 0, 0, 0.15);
  background: transparent;
  color: var(--Text-Light);
  cursor: pointer;
  padding: 0;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.itin-nav-btn:hover {
  border-color: var(--Brand-Primary);
  color: var(--Brand-Primary);
  background: rgba(0, 12, 50, 0.05);
}

.itin-nav-btn:disabled {
  opacity: 0.25;
  cursor: default;
  pointer-events: none;
}

.itin-link {
  display: inline-block;
  padding: 12px 32px;
  font-size: 0.9rem;
}

/* Itinerary share */
.itin-share {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
}

.itin-share-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  color: var(--Text-Light);
  font-size: 0.8rem;
  font-family: var(--font-main);
  cursor: pointer;
  padding: 4px 0;
  transition: color 0.2s ease;
}

.itin-share-toggle:hover {
  color: var(--Brand-Primary);
}

.itin-share-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  position: absolute;
  left: 50%;
  bottom: 100%;
  transform: translateX(-50%);
  margin-bottom: 8px;
  background: white;
  padding: 6px 8px;
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12), 0 1px 3px rgba(0, 0, 0, 0.08);
  animation: shareMenuFadeIn 0.2s ease;
}

.itin-share-menu::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: white;
}

@keyframes shareMenuFadeIn {
  from { opacity: 0; transform: translateX(-50%) translateY(4px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.itin-share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: var(--gray-bg, #f0f0f0);
  color: var(--Text-Light);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.itin-share-btn:hover {
  transform: scale(1.1);
}

.itin-share-btn[data-platform="facebook"]:hover {
  background: #1877f2;
  color: white;
}

.itin-share-btn[data-platform="x"]:hover {
  background: #000;
  color: white;
}

.itin-share-btn[data-platform="email"]:hover {
  background: var(--Brand-Primary);
  color: white;
}

.itin-share-btn[data-platform="copy"]:hover {
  background: var(--Brand-Secondary);
  color: white;
}

.itin-share-btn.copied {
  background: #22c55e;
  color: white;
}

/* Itinerary dots (inside nav row) */
.itinerary-dots {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
}

.itin-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.3s ease;
}

.itin-dot.active {
  background: var(--Brand-Primary);
  transform: scale(1.4);
}

/* Custom port markers */
.port-marker {
  background: var(--Brand-Accent);
  border: 2px solid var(--White);
  border-radius: 50%;
  width: 12px;
  height: 12px;
  box-shadow: 0 0 8px rgba(237, 90, 179, 0.6);
}

.port-label {
  color: var(--White);
  font-size: 11px;
  font-weight: 600;
  font-family: var(--font-main);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
  white-space: nowrap;
}

/* --- Stats Section --- */
.stats {
  padding: 100px 100px 64px;
  background: var(--light-purple-bg);
}

.stats-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.stats-text .eyebrow {
  color: var(--Text);
  font-weight: 600;
  text-transform: uppercase;
}

.stats-text h2 {
  margin: 24px 0 16px;
  max-width: 475px;
}

.stats-bar {
  display: flex;
  padding: 30px 50px;
  background: var(--Yellow);
  justify-content: space-between;
  max-width: 630px;
}

.stat-item span {
  color: rgba(0, 0, 0, 1);
  display: block;
  font-size: 56px;
  font-weight: 700;
}

.stat-item p {
  color: rgba(0, 0, 0, 1);
}

/* --- CTA Section --- */
.cta {
  padding: 80px 0;
  background: var(--off-white);
  text-align: center;
}

.cta h2 {
  color: var(--Brand-Primary);
  font-size: clamp(30px, 4vw, 42px);
  margin-bottom: 16px;
}

.cta p {
  color: var(--Text-Light);
  font-size: 1.1rem;
  max-width: 500px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

/* Card variant — a navy panel on the off-white background, so the closing CTA stands
   apart from an off-white section above it without merging into the navy footer below */
.cta--card {
  padding: 0 0 80px;
}

.cta-card {
  background: var(--Brand-Primary);
  background-image: radial-gradient(ellipse at top, rgba(255, 144, 194, 0.14), transparent 65%);
  border-radius: 20px;
  padding: 64px 32px;
  max-width: 960px;
  margin: 0 auto;
  box-shadow: 0 12px 40px rgba(0, 27, 121, 0.18);
}

.cta-card h2 {
  color: var(--White);
}

.cta-card p {
  color: rgba(255, 255, 255, 0.78);
  max-width: 640px;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.cta-btn-outline {
  color: var(--White);
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: transparent;
}

.cta-btn-outline:hover {
  background: var(--White);
  color: var(--Brand-Primary);
}

/* --- About Section --- */
.about {
  padding: var(--section-padding);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  align-items: center;
}

.about-text h2 {
  margin-bottom: 24px;
}

.about-text p {
  margin-bottom: 16px;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--Text-Light);
}

.about-image {
  overflow: hidden;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-image-placeholder {
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--Brand-Primary), var(--Brand-Secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--White);
  font-size: 4rem;
  border-radius: 4px;
}

.about-image-icon svg {
  width: 120px;
  height: 120px;
  opacity: 0.92;
}

/* --- Contact Section --- */
.contact {
  padding: var(--section-padding);
  background-color: var(--off-white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.form-group {
  margin-bottom: 15px;
}

.form-group--name-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 480px) {
  .form-group--name-row {
    grid-template-columns: 1fr;
  }
}

.form-group label {
  display: block;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--Text);
  font-size: 0.9rem;
  font-family: var(--font-main);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 17px 24px;
  border: 1px solid var(--gray-light);
  border-radius: 0;
  font-family: var(--font-main);
  font-size: 1rem;
  background-color: var(--White);
  transition: var(--transition);
  color: var(--Text);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--Brand-Secondary);
  box-shadow: 0 0 0 3px rgba(22, 64, 214, 0.15);
}

.form-group textarea {
  resize: vertical;
  min-height: 145px;
}

.contact-info {
  padding: 50px 48px;
  background: var(--Brand-Primary);
  color: var(--White);
  align-self: start;
}

.contact-info h3 {
  color: var(--White);
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.contact-info-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 28px;
}

.contact-info-item:last-child {
  margin-bottom: 0;
}

.contact-info-item .icon {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
  color: var(--White);
}

.contact-info-item p {
  color: rgba(255, 255, 255, 0.75);
  margin: 0;
}

.contact-info-item a {
  color: var(--Brand-Accent);
}

.contact-info-item a:hover {
  color: var(--White);
}

.contact-info-item strong {
  color: var(--White);
  display: block;
  margin-bottom: 4px;
}

/* --- Cruise Deals Section --- */
.deals {
  padding: 100px 100px 75px;
  background: var(--warm-bg);
  position: relative;
}

.deals-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
}

.deal-info h2 {
  margin: 12px 0 16px;
}

/* --- Footer --- */
.footer {
  background-color: var(--Brand-Primary);
  color: rgba(255, 255, 255, 0.7);
  padding: 48px 0 0;
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
  padding-bottom: 36px;
}

.footer-brand {
  display: flex;
  align-items: flex-start;
  gap: 24px;
}

.footer-heading {
  color: var(--White);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 14px;
}

.footer-brand .logo {
  display: inline-flex;
  align-items: center;
}

.footer-brand .logo img {
  width: 90px;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.8rem;
  line-height: 1.5;
  margin: 0;
}

.footer-brand .footer-tagline {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  margin-bottom: 6px;
}

.footer-email {
  display: inline-block;
  color: var(--Brand-Accent);
  font-size: 0.8rem;
}

.footer-email:hover { color: var(--White); }

.footer-phone {
  display: inline-block;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.8rem;
  margin-left: 10px;
}

.footer-phone:hover { color: var(--White); }

.footer h4 { display: none; }

.footer-nav ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-nav ul li { margin: 0; }

.footer-nav ul a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
  transition: var(--transition);
}

.footer-nav ul a:hover { color: var(--White); }

.footer-social {
  display: flex;
  flex-direction: row;
  gap: 16px;
}

.footer-social a {
  color: rgba(255, 255, 255, 0.6);
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0;
}

.footer-social a span { display: none; }

.footer-social a:hover { color: var(--Brand-Accent); }

.footer-bottom-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 12px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-bottom-bar p {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.35);
}

/* --- Page Header (for inner pages) --- */
.page-header {
  padding: 160px 0 80px;
  background-size: cover;
  background-position: 0% 30%;
  background-color: var(--Brand-Primary);
  text-align: left;
  position: relative;
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(35, 37, 54, 0.44);
  z-index: 1;
}

.page-header .container {
  position: relative;
  z-index: 2;
}

.page-header h1 {
  color: var(--White);
  margin-bottom: 16px;
}

.page-header p {
  color: var(--White);
  font-size: 1.15rem;
  max-width: 600px;
}

/* =============================================
   Section: Itinerary Detail Page
   ============================================= */
.itin-detail-hero {
  min-height: 50vh;
  padding: 180px 0 80px;
}

.itin-detail {
  padding: var(--section-padding);
}

.itin-detail-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 48px;
  align-items: start;
}

.itin-detail-section {
  margin-bottom: 40px;
}

.itin-detail-section h2 {
  font-size: 1.5rem;
  color: var(--Brand-Primary);
  margin-bottom: 16px;
}

.itin-detail-section p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--Text-Light);
  margin-bottom: 1.1em;
}

.itin-detail-section p:last-child {
  margin-bottom: 0;
}

.itin-highlights {
  list-style: none;
  padding: 0;
}

.itin-highlights li {
  position: relative;
  padding: 10px 0 10px 28px;
  font-size: 1rem;
  color: var(--Text-Light);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.itin-highlights li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--Brand-Secondary);
  font-weight: 700;
}

.itin-detail-card .itin-highlights li {
  font-size: 0.95rem;
  line-height: 1.5;
}

.itin-detail-card .itin-highlights li:last-child {
  border-bottom: none;
}

.itin-ports-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.port-stop {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--gray-bg, #f5f5f5);
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 0.95rem;
  color: var(--Text);
}

.port-number {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--Brand-Primary);
  color: var(--White);
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.itin-detail-card {
  background: var(--White);
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  margin-bottom: 20px;
}

.itin-detail-card h3 {
  font-size: 1.1rem;
  color: var(--Brand-Primary);
  margin-bottom: 16px;
}

.itin-detail-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  font-size: 0.9rem;
}

.meta-label {
  color: var(--Text-Light);
  flex-shrink: 0;
}

.meta-value {
  color: var(--Text);
  font-weight: 600;
  text-align: right;
}

.itin-detail-book {
  display: block;
  text-align: center;
  margin-top: 20px;
  padding: 14px 24px;
}

.itin-detail-share {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 10px;
  padding: 10px;
  background: none;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  color: var(--Text-Light);
  font-size: 0.85rem;
  font-family: var(--font-main);
  cursor: pointer;
  transition: all 0.2s ease;
}

.itin-detail-share:hover {
  border-color: var(--Brand-Primary);
  color: var(--Brand-Primary);
}

.itin-detail-love p {
  font-size: 0.95rem;
  color: var(--Text-Light);
  line-height: 1.7;
  font-style: italic;
}

.itin-detail-sidebar {
  position: sticky;
  top: 24px;
}

@media (max-width: 900px) {
  .itin-detail-grid {
    grid-template-columns: 1fr;
  }

  .itin-detail-sidebar {
    position: static;
  }
}

/* =============================================
   Section: Itinerary Port-by-Port Map
   ============================================= */
.itin-port-section {
  position: relative;
}

.itin-port-sticky {
  position: relative;
  height: 100vh;
  min-height: 620px;
  max-height: 880px;
  overflow: hidden;
  touch-action: pan-y; /* horizontal swipes step between ports (itinerary-detail-map.js) */
}

.itin-port-sticky #itinPortMap {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #1a1a2e;
}

.itin-port-tint {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0, 12, 50, 0.85) 0%,
    rgba(0, 12, 50, 0.5) 35%,
    rgba(0, 12, 50, 0.15) 100%
  );
  z-index: 500;
  pointer-events: none;
}

.itin-port-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 501;
  padding: 56px 48px 0;
  color: var(--White);
  pointer-events: none;
  transition: padding-top 0.3s ease;
}

.itin-port-header h2 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--White);
}

.itin-port-header p {
  font-size: 1rem;
  opacity: 0.7;
  color: var(--White);
}

/* --- Port list (scroll indicator) --- */
.itin-port-list {
  position: absolute;
  left: 48px;
  top: 50%;
  transform: translateY(-50%);
  margin-top: 40px;
  z-index: 501;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.itin-port-item {
  font: inherit;
  border: 0;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 8px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  transition: background 0.3s ease, transform 0.3s ease;
  cursor: pointer;
}

.itin-port-item:hover:not(.active) {
  background: rgba(255, 255, 255, 0.28);
}

.itin-port-item:focus-visible,
.itin-port-nav-btn:focus-visible {
  outline: 2px solid #ff90c2;
  outline-offset: 2px;
}

.itin-port-item--all {
  margin-bottom: 6px;
}

.itin-port-item.active {
  background: rgba(255, 255, 255, 0.95);
  transform: scale(1.05);
}

.itin-port-item-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  color: var(--White);
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.3s ease;
}

.itin-port-item.active .itin-port-item-num {
  background: var(--Brand-Secondary);
  color: var(--White);
}

.itin-port-item-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  white-space: nowrap;
  transition: color 0.3s ease;
}

.itin-port-item.active .itin-port-item-name {
  color: var(--Brand-Primary);
  font-weight: 700;
}

/* --- Detail card (shows on map when port is active) --- */
.itin-port-detail {
  position: absolute;
  right: 48px;
  top: 50%;
  transform: translateY(-50%);
  width: 340px;
  z-index: 501;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  margin-top: 40px;
}

.itin-port-detail.visible {
  opacity: 1;
  pointer-events: auto;
}

.itin-port-detail-inner {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.25);
}

.itin-port-detail-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.itin-port-detail-body {
  padding: 16px 20px;
}

.itin-port-detail-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.itin-port-detail-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--Brand-Primary);
  min-width: 0;
}

.itin-port-detail-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.itin-port-detail-count {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--Text-Light);
  min-width: 44px;
  text-align: center;
  white-space: nowrap;
}

.itin-port-nav-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(0, 27, 121, 0.15);
  background: #fff;
  color: var(--Brand-Primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.itin-port-nav-btn:hover {
  background: #eef2fb;
  border-color: rgba(0, 27, 121, 0.3);
}

.itin-port-detail-desc {
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--Text-Light);
}

/* --- Numbered map markers --- */
.port-marker-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #ff90c2;
  border: 2px solid #fff;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

.port-marker-num.port-marker-active {
  background: #fff;
  color: var(--Brand-Primary);
  border-color: #ff90c2;
  box-shadow: 0 0 14px rgba(255, 144, 194, 0.7);
  transform: scale(1.4);
}

@media (max-width: 767px) {
  .itin-port-tint {
    background: linear-gradient(180deg, transparent 30%, rgba(0, 12, 50, 0.8) 100%);
  }

  .itin-port-header {
    padding: 48px 24px 0;
  }

  .itin-port-sticky {
    height: 100vh;
    height: 100svh;
    min-height: 560px;
    max-height: 820px;
  }

  /* One row of pills that scrolls sideways */
  .itin-port-list {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 12px;
    top: auto;
    transform: none;
    margin-top: 0;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 6px;
    justify-content: flex-start;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    padding: 4px 16px;
    scroll-padding: 0 16px;
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 16px, #000 calc(100% - 16px), transparent 100%);
    mask-image: linear-gradient(to right, transparent 0, #000 16px, #000 calc(100% - 16px), transparent 100%);
  }

  .itin-port-list::-webkit-scrollbar {
    display: none;
  }

  .itin-port-item {
    padding: 6px 12px 6px 6px;
    gap: 6px;
    flex-shrink: 0;
    scroll-snap-align: start;
  }

  .itin-port-item.active {
    transform: none;
  }

  .itin-port-item--all {
    margin-bottom: 0;
  }

  .itin-port-item-num {
    width: 22px;
    height: 22px;
    font-size: 0.7rem;
  }

  .itin-port-item-name {
    font-size: 0.8rem;
  }

  .itin-port-detail {
    right: auto;
    left: 12px;
    right: 12px;
    top: auto;
    /* sit 12px above the port pills (12px from bottom); height set by itinerary-detail-map.js */
    bottom: calc(var(--port-list-h, 44px) + 24px);
    transform: none;
    width: auto;
    margin-top: 0;
  }

  .itin-port-detail-img {
    height: 140px;
  }

  .itin-port-detail-body {
    padding: 12px 14px;
  }

  .itin-port-detail-desc {
    font-size: 0.82rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}

@media (max-width: 400px) {

  .itin-port-detail-img {
    height: 100px;
  }

  .itin-port-detail-desc {
    -webkit-line-clamp: 2;
  }
}

/* =============================================
   Section: Ship Highlights
   ============================================= */
.itin-ship-section {
  padding: var(--section-padding);
  background: var(--off-white);
}

.itin-ship-section h2 {
  font-size: 1.8rem;
  color: var(--Brand-Primary);
  margin-bottom: 8px;
}

.itin-ship-section .section-subtitle {
  text-align: left;
  max-width: none;
  margin: 0 0 28px;
}

.itin-ship-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

.itin-ship-image {
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.itin-ship-content h3 {
  font-size: 1.3rem;
  color: var(--Brand-Primary);
  margin-bottom: 16px;
}

.itin-ship-content > p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--Text-Light);
  margin-bottom: 24px;
}

.itin-ship-features {
  list-style: none;
  padding: 0;
}

.itin-ship-features li {
  position: relative;
  padding: 10px 0 10px 28px;
  font-size: 0.95rem;
  color: var(--Text-Light);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.itin-ship-features li::before {
  content: '\2693';
  position: absolute;
  left: 0;
  color: var(--Brand-Secondary);
  font-size: 1rem;
}

@media (max-width: 900px) {
  .itin-ship-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* =============================================
   Section: Our Process
   ============================================= */
.process {
  padding: var(--section-padding);
  background-color: var(--off-white);
}

.process-steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
  margin-top: 60px;
}

.process-step {
  flex: 1;
  padding: 0 24px;
  text-align: center;
}

.process-number {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  color: var(--Brand-Primary);
  opacity: 0.12;
  margin-bottom: 16px;
  font-family: var(--font-heading);
  letter-spacing: -2px;
}

.process-step h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--Brand-Primary);
  margin-bottom: 12px;
}

.process-step p {
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--Text-Light);
}

.process-connector {
  width: 48px;
  flex-shrink: 0;
  height: 2px;
  background: var(--Brand-Tertiary);
  opacity: 0.4;
  margin-top: 24px;
  align-self: flex-start;
}

/* =============================================
   Section: Our Promise
   ============================================= */
.promise {
  padding: var(--section-padding);
  background-color: var(--White);
}

.promise-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px 60px;
  margin-top: 50px;
}

.promise-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.promise-mark {
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--Brand-Tertiary);
  line-height: 1.2;
  flex-shrink: 0;
  margin-top: 2px;
}

.promise-item h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--Brand-Primary);
  margin-bottom: 8px;
}

.promise-item p {
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--Text-Light);
}

/* =============================================
   Section: Featured Deals (CruiseBase Hot Deals widget iframe)
   Note: prefixed featured-deals-* (not deals-*) to avoid colliding
   with the legacy, unused .deals / .deal-info rules above.
   ============================================= */
.featured-deals-section {
  padding: 70px 0 48px;
  background: var(--off-white);
}

.featured-deals-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 40px;
}

.featured-deals-header h2 {
  font-size: 1.9rem;
  color: var(--Text);
  margin-bottom: 8px;
}

.featured-deals-header p {
  color: var(--Text-Light);
  font-size: 1rem;
}

.featured-deals-frame {
  display: block;
  width: 100%;
  max-width: 880px;
  /* Sized to the deal list (see DEAL_COUNT in FeaturedDeals.tsx). The frame is
     cross-origin, so heights are measured from CB's Hot Deals page (frame width =
     viewport - 40px). Wide frames: ~90px per deal on one row. Under ~530px CB
     stacks each deal and rows grow ~4px per deal as names wrap, hence the steps.
     Last measured 2026-11-24 with 5 deals; re-measure if deals change a lot. */
  height: calc(var(--deal-count, 5) * 90px + 25px);
  margin: 0 auto;
  border: 0;
  background: transparent;
}

@media (max-width: 569px) { .featured-deals-frame { height: calc(var(--deal-count, 5) * 120px + 30px); } }
@media (max-width: 529px) { .featured-deals-frame { height: calc(var(--deal-count, 5) * 124px + 30px); } }
@media (max-width: 489px) { .featured-deals-frame { height: calc(var(--deal-count, 5) * 132px + 30px); } }
@media (max-width: 459px) { .featured-deals-frame { height: calc(var(--deal-count, 5) * 136px + 30px); } }
@media (max-width: 409px) { .featured-deals-frame { height: calc(var(--deal-count, 5) * 140px + 30px); } }

.featured-deals-disclaimer {
  text-align: center;
  font-size: 0.75rem;
  color: var(--Text-Light);
  margin-top: 16px;
}

/* =============================================
   Section: Newsletter Signup
   ============================================= */
.deal-alerts {
  padding: 80px 0;
  background: var(--Brand-Primary);
}

.newsletter-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.newsletter-text {
  margin-bottom: 32px;
}

.newsletter-text h2 {
  color: var(--White);
  font-size: clamp(1.75rem, 3vw, 2.2rem);
  margin-bottom: 12px;
}

.newsletter-text p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1rem;
  line-height: 1.7;
}

.newsletter-form {
  width: 100%;
}

/* Step 1: inline email + button row */
.newsletter-step1-row {
  display: flex;
  gap: 0;
  margin-bottom: 12px;
}

.newsletter-step1-row input {
  flex: 1;
  min-width: 0;
  border-radius: 4px 0 0 4px;
  border-right: none;
}

.newsletter-step1-row input:focus {
  border-right: none;
}

.newsletter-step1-row .btn {
  border-radius: 0 4px 4px 0;
  padding-top: 11px;
  padding-bottom: 11px;
  white-space: nowrap;
  font-size: 0.95rem;
}

/* Legacy — kept for safety */
.newsletter-step1-fields {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}

.nl-step2-heading {
  color: var(--White);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.nl-skip {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.88rem;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  transition: color 0.2s ease;
}

.nl-skip:hover {
  color: rgba(255, 255, 255, 0.75);
}

.newsletter-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 24px;
}

.newsletter-step1-row input,
.newsletter-step1-fields input,
.newsletter-fields input,
.nl-name-input {
  padding: 11px 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--White);
  font-family: var(--font-main);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s ease;
}

.newsletter-step1-row input::placeholder,
.newsletter-step1-fields input::placeholder,
.newsletter-fields input::placeholder,
.nl-name-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.newsletter-step1-row input:focus,
.newsletter-step1-fields input:focus,
.newsletter-fields input:focus,
.nl-name-input:focus {
  border-color: var(--Brand-Accent);
}

/* Step 2 left-aligns for readability */
#nlStep2 {
  text-align: left;
}

.nl-name-input {
  width: 100%;
  box-sizing: border-box;
}

.nl-name-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

@media (max-width: 480px) {
  .nl-name-row {
    grid-template-columns: 1fr;
  }
}

.newsletter-prefs {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 24px;
}

.newsletter-pref-label {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 10px;
}

.nl-optional {
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.35);
}

.newsletter-freq-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.nl-freq-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
}

.nl-freq-btn:hover {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.1);
}

.nl-freq-btn.active {
  border-color: var(--Brand-Tertiary);
  background: rgba(237, 90, 179, 0.15);
}

.nl-freq-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--White);
}

.nl-freq-sub {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 2px;
}

.nl-freq-btn.active .nl-freq-sub {
  color: rgba(255, 255, 255, 0.75);
}

.newsletter-interest-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.nl-chip {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.82rem;
  padding: 5px 13px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.nl-chip:hover {
  border-color: rgba(255, 255, 255, 0.45);
  color: var(--White);
}

.nl-chip.active {
  background: var(--Brand-Tertiary);
  border-color: var(--Brand-Tertiary);
  color: var(--White);
}

.newsletter-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.newsletter-disclaimer {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.45);
}

.newsletter-success {
  color: var(--Brand-Accent);
  font-size: 1.05rem;
  font-weight: 600;
  padding: 12px 0;
}

/* =============================================
   Section: FAQ
   ============================================= */
.faq {
  padding: var(--section-padding);
  background-color: var(--off-white);
}

.faq-list {
  max-width: 760px;
  margin: 50px auto 0;
}

.faq-item {
  border-bottom: 1px solid var(--gray-light);
}

.faq-item:first-child {
  border-top: 1px solid var(--gray-light);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  font-family: var(--font-main);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--Text);
  cursor: pointer;
  list-style: none;
  transition: color 0.2s ease;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: '+';
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--Brand-Secondary);
  flex-shrink: 0;
  margin-left: 16px;
  transition: transform 0.2s ease;
}

.faq-item[open] .faq-question::after {
  content: '\2212';
}

.faq-question:hover {
  color: var(--Brand-Secondary);
}

.faq-answer {
  padding: 0 0 24px;
}

.faq-answer p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--Text-Light);
}

/* Footer: Badges & Legal */
.footer-badges {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 22px;
}

.footer-badges a { display: inline-flex; }

.footer-badges img {
  height: 30px;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.4;
  transition: opacity 0.3s ease;
}

.footer-badges a:hover img,
.footer-badges a:focus-visible img {
  opacity: 0.75;
}

.footer-legal {
  padding: 0 0 14px;
}

.footer-legal p {
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.25);
  line-height: 1.5;
  max-width: 800px;
}

/* --- Responsive --- */
@media (max-width: 991px) {
  :root {
    --section-padding: 50px 0;
  }

  .nav-desktop {
    display: none;
  }

  .nav-overlay {
    display: flex;
  }

  .nav-links li {
    text-align: center;
  }

  .nav-links a {
    color: var(--White);
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    border-bottom: none;
  }

  .nav-links a:hover,
  .nav-links a.nav-active {
    color: var(--Brand-Accent);
    border-bottom: none;
  }

  .nav-toggle {
    display: flex;
  }

  .about-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .stats {
    padding: 60px 30px;
  }

  .stats-content {
    grid-template-columns: 1fr;
    gap: 45px;
  }

  .deals {
    padding: 50px 50px;
  }

  .deals-grid {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .process-steps {
    flex-direction: column;
    align-items: center;
    gap: 32px;
  }

  .process-step {
    padding: 0;
    max-width: 400px;
    width: 100%;
  }

  .process-connector {
    width: 2px;
    height: 32px;
    margin-top: 0;
    align-self: center;
  }

  .promise-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .newsletter-inner {
    gap: 24px;
  }

  .newsletter-step1-row {
    flex-direction: column;
    gap: 10px;
  }

  .newsletter-step1-row input {
    border-radius: 4px;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
  }

  .newsletter-step1-row .btn {
    border-radius: 4px;
    width: 100%;
  }

  .newsletter-step1-fields,
  .newsletter-fields {
    grid-template-columns: 1fr;
  }

  .newsletter-freq-options {
    grid-template-columns: 1fr;
  }

  .newsletter-actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  h1 { font-size: 43px; }
}

@media (max-width: 767px) {
  .dest-header,
  .itineraries-header {
    padding: 48px 24px 0;
  }

  .header-showing .dest-header,
  .header-showing .itineraries-header {
    padding-top: 90px;
  }

  .dest-info {
    bottom: 120px;
  }

  .dest-nav-line {
    width: 30px;
  }

  .itinerary-card {
    position: absolute;
    left: 16px;
    right: 16px;
    top: auto;
    bottom: 60px;
    transform: none;
    width: auto;
    margin: 0;
  }

  .itinerary-card-inner {
    padding: 20px;
    max-height: 40vh;
  }

  .itin-image {
    width: calc(100% + 40px);
    max-width: none;
    height: 80px;
    margin: -20px -20px 12px;
  }

  .itin-title {
    font-size: 1.2rem;
    margin-bottom: 8px;
  }

  .itin-meta {
    margin-bottom: 12px;
    font-size: 0.8rem;
  }

  .itin-love {
    margin-bottom: 12px;
  }

  .itin-love-text {
    font-size: 0.85rem;
  }

  .itin-link {
    padding: 10px 24px;
    font-size: 0.85rem;
  }

  .itin-actions {
    gap: 12px;
  }


  :root {
    --section-padding: 45px 0;
  }

  .footer-bottom-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .footer-brand {
    flex-direction: column;
    gap: 16px;
  }

  .stats {
    padding: 35px;
  }

  .stats-content {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  h2 { font-size: 30px; }
}

@media (max-width: 480px) {
  .hero .container {
    padding-top: 72px;
    padding-bottom: 24px;
  }

  .hero-lead-fields {
    grid-template-columns: 1fr;
  }

  .hero-lead-form,
  .hero-lead-success {
    padding: 20px 18px;
  }

  .hero-phone-row {
    flex-direction: column;
  }

  .hero-phone-row input,
  .hero-phone-row .btn {
    width: 100%;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    padding: 13px 35px;
    text-align: center;
  }


  .stats {
    padding: 25px;
  }

  .deals {
    padding: 30px;
  }

  h2 { font-size: 30px; }
}

/* Hide itinerary card image on short viewports */
@media (max-height: 700px) {
  .itin-image {
    display: none !important;
  }
}

/* ============================================
   New Sections — Homepage & Interior Pages
   ============================================ */

/* --- Agent Bridge (section 5) --- */
/* Intentionally dark/bold — signals the human handoff point */
.agent-bridge {
  background: var(--Brand-Primary);
  padding: 72px 0;
  text-align: center;
}

.agent-bridge-inner {
  max-width: 680px;
  margin: 0 auto;
}

.agent-bridge h2 {
  color: var(--White);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-bottom: 20px;
  line-height: 1.25;
}

.agent-bridge p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 36px;
}

/* --- Mid-Page CTA (section 7) --- */
/* Lighter than Agent Bridge — different visual weight intentional */
.mid-cta {
  background: var(--off-white);
  padding: 80px 0;
  text-align: center;
}

.mid-cta h2 {
  color: var(--Brand-Primary);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-bottom: 16px;
}

.mid-cta p {
  color: var(--Text-Light);
  font-size: 1.1rem;
  max-width: 500px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

/* --- Insider Teaser (section 9) --- */
.insider-teaser {
  padding: 72px 0 80px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.insider-teaser::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.9);
}

.insider-teaser .container {
  position: relative;
  z-index: 1;
}

.insider-teaser-header {
  text-align: center;
  margin-bottom: 48px;
}

.insider-teaser-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 30%;
  display: block;
  margin: 0 auto 16px;
  box-shadow: 0 2px 12px rgba(0, 27, 121, 0.2);
}

.insider-teaser-header h2 {
  color: var(--Brand-Primary);
  margin-bottom: 12px;
}

.insider-teaser-header p {
  color: var(--Text-Light);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

.insider-teaser-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* Insider article cards — shared between teaser + /insider index */
.insider-card {
  background: var(--White);
  border: 1px solid var(--gray-border);
  border-radius: 8px;
  overflow: hidden;
  transition: var(--transition);
}

.insider-card:hover {
  box-shadow: 0 6px 24px rgba(0, 27, 121, 0.10);
  transform: translateY(-2px);
}

.insider-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.insider-card-img {
  height: 180px;
  background: var(--gray-light);
  background-size: cover;
  background-position: center;
}

/* Placeholder state — muted appearance before real content */
.insider-card--placeholder .insider-card-img {
  background: linear-gradient(135deg, var(--off-white) 0%, var(--gray-light) 100%);
}

.insider-card--placeholder .insider-card-body h3 {
  color: var(--Text-Light);
}

.insider-card-body {
  padding: 20px;
}

.insider-card-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--Brand-Secondary);
  margin-bottom: 10px;
}

.insider-card-body h3 {
  font-size: 1.15rem;
  color: var(--Text);
  margin-bottom: 8px;
  line-height: 1.3;
}

.insider-card-body p {
  font-size: 0.92rem;
  color: var(--Text-Light);
  line-height: 1.6;
}

.insider-read-more {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--Brand-Secondary);
}

.insider-teaser-footer {
  text-align: center;
  margin-top: 40px;
}

.insider-browse-link {
  font-size: 1rem;
  font-weight: 700;
  color: var(--Brand-Secondary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.insider-browse-link:hover {
  color: var(--Brand-Primary);
}

/* --- Insider Index Page (/insider) --- */
.page-header--insider {
  background-position: center 40%;
}

.insider-page-header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
}

.insider-page-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.8);
  flex-shrink: 0;
  object-fit: cover;
  object-position: 50% 30%;
}

.insider-filters {
  padding: 32px 0 0;
  background: var(--White);
  border-bottom: 1px solid var(--gray-border);
}

.insider-filter-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding-bottom: 0;
}

.insider-filter-chip {
  padding: 8px 20px;
  border-radius: 100px;
  border: 1px solid var(--gray-border);
  background: var(--White);
  font-family: var(--font-main);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--Text-Light);
  cursor: pointer;
  transition: var(--transition);
  margin-bottom: 16px;
}

.insider-filter-chip.active,
.insider-filter-chip:hover {
  background: var(--Brand-Primary);
  color: var(--White);
  border-color: var(--Brand-Primary);
}

.insider-grid-section {
  padding: var(--section-padding);
  background: var(--off-white);
}

.insider-article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* Empty state */
.insider-empty-state {
  text-align: center;
  padding: 80px 0;
  max-width: 480px;
  margin: 0 auto;
}

.insider-empty-icon {
  font-size: 3rem;
  margin-bottom: 20px;
}

.insider-empty-state h2 {
  color: var(--Brand-Primary);
  margin-bottom: 16px;
}

.insider-empty-state p {
  color: var(--Text-Light);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 32px;
}

/* --- Insider Post Detail --- */
.insider-post-date {
  font-size: 0.9rem;
  opacity: 0.75;
  margin-top: 8px;
}

.insider-post-body p {
  margin-bottom: 1.2em;
  line-height: 1.75;
}

.insider-post-body h3 {
  margin-top: 1.6em;
  margin-bottom: 0.5em;
  font-size: 1.1rem;
  color: var(--Brand-Primary);
}

.insider-post-body h2 {
  margin-top: 1.8em;
  margin-bottom: 0.6em;
  font-size: 1.5rem;
  color: var(--Brand-Primary);
}

.insider-post-body > h2:first-child {
  margin-top: 0;
}

.insider-post-body ul {
  margin: 0 0 1.2em 1.2em;
  line-height: 1.75;
}

.insider-post-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1.4em;
  font-size: 0.95rem;
}

.insider-post-body th,
.insider-post-body td {
  text-align: left;
  vertical-align: top;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.insider-post-body th {
  background: var(--Brand-Primary);
  color: var(--White);
  font-weight: 600;
}

.insider-post-body tbody tr:nth-child(even) {
  background: rgba(0, 27, 121, 0.03);
}

.insider-post-cta {
  display: inline-block;
  margin-top: 8px;
}

.insider-sidebar-link {
  display: block;
  color: var(--Brand-Secondary);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  margin-top: 8px;
}

.insider-sidebar-link:hover {
  text-decoration: underline;
}

.insider-sidebar-itin {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 12px;
  text-decoration: none;
  padding: 10px 0;
  border-top: 1px solid var(--Border-Light, #eee);
}

.insider-sidebar-itin:first-of-type {
  border-top: none;
  padding-top: 0;
}

.insider-sidebar-itin-title {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--Text-Dark, #1a1a2e);
}

.insider-sidebar-itin-meta {
  font-size: 0.8rem;
  color: var(--Text-Light);
}

.insider-sidebar-itin-cta {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--Brand-Secondary);
  margin-top: 4px;
}

/* --- Plan Page (/plan) --- */
/* Reuse .lead-capture-section for form; add textarea support */
.plan-lead-form {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.plan-lead-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 24px;
}

/* Full-width fields */
.plan-lead-fields input[type="email"],
.plan-lead-fields .hero-lead-interest,
.plan-lead-fields textarea {
  grid-column: 1 / -1;
}

/* Phone stays full-width except where paired with a field beside it (e.g. Interline's Employer/Industry) */
.plan-lead-fields input[type="tel"] {
  grid-column: 1 / -1;
}

.plan-lead-fields input[type="tel"].field-half {
  grid-column: auto;
}

@media (max-width: 560px) {
  .plan-lead-fields {
    grid-template-columns: 1fr;
  }
}

.plan-lead-fields input,
.plan-lead-fields textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--White);
  font-family: var(--font-main);
  font-size: 1rem;
  line-height: 1.5;
  transition: var(--transition);
}

.plan-lead-fields input::placeholder,
.plan-lead-fields textarea::placeholder {
  color: rgba(255, 255, 255, 0.55);
}

.plan-lead-fields input:focus,
.plan-lead-fields textarea:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.18);
}

.plan-lead-fields textarea {
  resize: vertical;
  min-height: 100px;
}

/* Advisor Why section (reuses promise-grid pattern) */
.advisor-why {
  padding: var(--section-padding);
  background: var(--off-white);
}

/* --- Interline Page (/interline) --- */
.interline-eligibility-list {
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
}

.interline-eligibility-list li {
  padding: 10px 0 10px 24px;
  border-bottom: 1px solid var(--gray-border);
  color: var(--Text-Light);
  font-size: 1rem;
  line-height: 1.6;
  position: relative;
}

.interline-eligibility-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--Brand-Secondary);
  font-weight: 700;
}

.interline-eligibility-list li:last-child {
  border-bottom: none;
}

.interline-disclaimer {
  font-size: 0.88rem;
  color: var(--Text-Light);
  margin-top: 16px;
  font-style: italic;
}

/* --- Footer Legal Links --- */
.footer-legal-links {
  margin-top: 8px;
}

.footer-legal-links a {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.82rem;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: var(--transition);
}

.footer-legal-links a:hover {
  color: var(--White);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .insider-teaser-grid,
  .insider-article-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .insider-page-header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .agent-bridge,
  .mid-cta {
    padding: 56px 0;
  }

  .insider-teaser {
    padding: 60px 0;
  }

  .plan-lead-fields input,
  .plan-lead-fields textarea {
    font-size: 16px; /* prevent iOS zoom */
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .insider-teaser-grid,
  .insider-article-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* --- Thank You Page (/thank-you) --- */
.thank-you-section {
  padding: 120px 0;
  background: var(--off-white);
  min-height: 60vh;
  display: flex;
  align-items: center;
}

.thank-you-inner {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.thank-you-icon {
  font-size: 3rem;
  margin-bottom: 24px;
}

.thank-you-inner h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--Brand-Primary);
  margin-bottom: 20px;
}

.thank-you-inner p {
  font-size: 1.1rem;
  color: var(--Text-Light);
  line-height: 1.7;
  margin-bottom: 36px;
}

.thank-you-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

/* ── Destination Detail — Featured Itineraries ───────────────────────────── */

.dest-itineraries {
  padding: 80px 0;
  background: var(--Off-White, #f8f7f4);
}

.dest-itin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.dest-itin-card {
  background: var(--White);
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.dest-itin-card:hover {
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

.dest-itin-card-img {
  height: 180px;
  background-size: cover;
  background-position: center;
  background-color: var(--Brand-Primary);
}

.dest-itin-card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.dest-itin-card-body h3 {
  font-size: 1.1rem;
  margin-bottom: 6px;
  color: var(--Brand-Primary);
}

.dest-itin-meta {
  font-size: 0.85rem;
  color: var(--Text-Light);
  margin-bottom: 10px;
}

.dest-itin-love {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--Text-Body, #444);
  flex: 1;
  margin-bottom: 16px;
}

.dest-itin-cta {
  font-size: 0.875rem;
  color: var(--Brand-Primary);
  font-weight: 600;
}

/* =============================================
   Section: Testimonials
   ============================================= */
.testimonials {
  padding: var(--section-padding);
  background: var(--Brand-Primary);
}

.testimonials .section-title {
  color: var(--White);
}

.testimonials .section-subtitle {
  color: rgba(255, 255, 255, 0.65);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 50px;
}

.testimonial-card {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 36px 32px 32px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
}

.testimonial-card::before {
  content: '\201C';
  font-size: 5rem;
  line-height: 1;
  color: var(--Brand-Accent);
  font-family: Georgia, serif;
  position: absolute;
  top: 16px;
  left: 28px;
  opacity: 0.6;
}

.testimonial-quote {
  font-size: 0.97rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.88);
  flex: 1;
  padding-top: 28px;
}

.testimonial-footer {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.testimonial-name {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--Brand-Accent);
}

.testimonial-context {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.02em;
}

@media (max-width: 960px) {
  .testimonials-grid {
    grid-template-columns: 1fr;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* =============================================
   Home — Find Your Kind of Getaway
   ============================================= */
.getaway-section {
  padding: var(--section-padding);
  background: var(--Off-White, #f4f7fa);
}

.getaway-section .section-title {
  color: var(--Brand-Primary);
}

.getaway-section .section-subtitle {
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.getaway-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px;
  margin-top: 50px;
}

.getaway-grid > .getaway-card {
  flex: 0 1 calc((100% - 56px) / 3);
}

.getaway-card {
  display: flex;
  flex-direction: column;
  background: var(--White);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  color: inherit;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.getaway-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.12);
}

.getaway-card-img {
  height: 200px;
  background-size: cover;
  background-position: center;
}

.getaway-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 24px 24px 28px;
}

.getaway-card-body h3 {
  font-size: 1.25rem;
  color: var(--Brand-Primary);
  margin-bottom: 10px;
}

.getaway-card-body > p {
  color: var(--Text-Light);
  line-height: 1.65;
  margin-bottom: 18px;
}

.getaway-love {
  border-left: 3px solid var(--Brand-Secondary);
  padding-left: 14px;
  margin-bottom: 20px;
}

.getaway-love strong {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--Brand-Secondary);
  margin-bottom: 4px;
}

.getaway-love p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--Text);
  margin: 0;
}

.getaway-cta {
  margin-top: auto;
  font-weight: 600;
  color: var(--Brand-Primary);
}

@media (max-width: 900px) {
  .getaway-grid > .getaway-card {
    flex-basis: 100%;
    max-width: 520px;
  }
}

/* =============================================
   Interline page — prose blocks, eligibility list
   ============================================= */
.interline-prose {
  max-width: 760px;
  margin: 0 auto;
}

.interline-prose p {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--Text-Light);
  margin-bottom: 16px;
}

.interline-eligibility-list {
  list-style: none;
  padding: 0;
  margin: 20px 0 24px;
}

.interline-eligibility-list li {
  padding: 10px 0 10px 28px;
  position: relative;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--Text-Light);
  border-bottom: 1px solid var(--gray-border);
}

.interline-eligibility-list li:last-child {
  border-bottom: none;
}

.interline-eligibility-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--Brand-Tertiary);
  font-weight: 300;
}

.interline-disclaimer {
  font-size: 0.85rem;
  color: var(--Text-Light);
  opacity: 0.75;
  font-style: italic;
  margin-top: 8px;
}

.plan-lead-error {
  color: #c0392b;
  font-size: 0.9rem;
  margin-bottom: 12px;
}

/* Destination "Best Time to Visit" month-by-month breakdown */
.dest-season-list {
  list-style: none;
  margin: 0 0 1.1em;
  padding: 0;
  border-top: 1px solid rgba(0, 27, 121, 0.1);
}
.dest-season-list li {
  display: grid;
  grid-template-columns: 9.5rem 1fr;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(0, 27, 121, 0.1);
  line-height: 1.6;
}
.dest-season-list strong {
  color: var(--Brand-Primary);
  font-weight: 700;
}
@media (max-width: 600px) {
  .dest-season-list li {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

/* --- Legal pages (/privacy, /terms) --- */
.legal-header {
  padding: 150px 0 56px;
}

.legal-header p {
  font-size: 0.95rem;
  opacity: 0.85;
}

.legal-body {
  padding: 56px 0 80px;
  background: var(--White);
}

.legal-prose {
  max-width: 760px;
  color: var(--Text-Dark, #232536);
  font-size: 1rem;
  line-height: 1.75;
}

.legal-prose h2 {
  color: var(--Brand-Primary);
  font-size: 1.35rem;
  margin: 44px 0 12px;
  padding-top: 20px;
  border-top: 1px solid var(--gray-border);
}

.legal-prose h3 {
  color: var(--Brand-Primary);
  font-size: 1.05rem;
  margin: 24px 0 8px;
}

.legal-prose p {
  margin: 0 0 14px;
}

.legal-prose ul {
  margin: 0 0 16px;
  padding-left: 22px;
}

.legal-prose ul li {
  list-style: disc;
  margin-bottom: 8px;
}

.legal-prose ul li::marker {
  color: var(--Brand-Secondary);
}

.legal-prose a {
  color: var(--Brand-Secondary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-prose code {
  font-size: 0.9em;
  background: var(--off-white);
  padding: 1px 5px;
  border-radius: 4px;
}

@media (max-width: 767px) {
  .legal-header { padding: 120px 0 40px; }
  .legal-body { padding: 36px 0 56px; }
  .legal-prose h2 { font-size: 1.2rem; margin-top: 36px; }
}

.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
}

/* --- Plan page: choose a path (Tern planner vs. quick form) --- */
.plan-paths {
  padding: 72px 0 24px;
  background: var(--White);
}

.plan-paths-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  max-width: 960px;
  margin: 0 auto;
}

.plan-path {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 36px 32px;
  border-radius: 12px;
  border: 1px solid var(--gray-border);
  background: var(--off-white);
}

.plan-path--ready {
  background: var(--Brand-Primary);
  border-color: var(--Brand-Primary);
  color: var(--White);
}

.plan-path-eyebrow {
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--Brand-Secondary);
  margin-bottom: 10px;
}

.plan-path--ready .plan-path-eyebrow { color: var(--Brand-Accent); }

.plan-path h3 {
  font-size: 1.4rem;
  color: var(--Brand-Primary);
  margin: 0 0 12px;
}

.plan-path--ready h3 { color: var(--White); }

.plan-path p {
  color: var(--Text-Light);
  line-height: 1.65;
  margin: 0 0 24px;
  flex: 1;
}

.plan-path--ready p { color: rgba(255, 255, 255, 0.85); }

.plan-path .btn { text-align: center; }

.plan-path .btn-outline {
  background: transparent;
  color: var(--Brand-Primary);
  border: 2px solid var(--Brand-Primary);
}

.plan-path .btn-outline:hover {
  background: var(--Brand-Primary);
  color: var(--White);
}

.plan-path-note {
  font-size: 0.82rem;
  color: var(--Text-Light);
  margin-top: 12px;
}

.plan-path--ready .plan-path-note { color: rgba(255, 255, 255, 0.65); }

@media (max-width: 767px) {
  .plan-paths { padding: 48px 0 8px; }
  .plan-paths-grid { grid-template-columns: 1fr; gap: 20px; }
  .plan-path { padding: 28px 22px; }
  .plan-path .btn { width: 100%; }
}

/* Post-submit prompt to the detailed planner */
.plan-success-tern {
  margin: 0 auto 28px;
  padding: 22px 20px;
  max-width: 460px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.plan-success-tern-title {
  color: var(--White);
  font-weight: 900;
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.plan-success-tern-text {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.95rem;
  line-height: 1.55;
  margin-bottom: 16px;
}

/* External-link indicator (e.g. Tern trip planner opens in a new tab) */
.ext-icon {
  display: inline-block;
  vertical-align: -1px;
  margin-left: 8px;
}

.plan-paths { padding: 80px 0; background: var(--off-white); }
.plan-paths .plan-path--exploring { background: var(--White); }
.plan-paths .section-subtitle { margin-bottom: 36px; }
.lead-capture-section[hidden] { display: none; }
@media (max-width: 767px) {
  .plan-paths { padding: 52px 0; }
}

/* =============================================
   Plan page section rhythm (scoped to /plan)
   ============================================= */
.plan-sec { padding: 80px 0; }
.plan-sec--white { background: var(--White); }
.plan-sec--gray  { background: var(--off-white); }
.plan-sec--navy  { background: var(--Brand-Primary); color: var(--White); }
.plan-sec--navy .section-title { color: var(--White); }
.plan-sec--tint  { background: #eef2fb; }

/* How It Works — numbered badges on one connecting line */
.process.plan-sec .process-steps {
  position: relative;
  margin-top: 48px;
}

.process.plan-sec .process-steps::before {
  content: '';
  position: absolute;
  top: 24px;
  left: 12.5%;
  right: 12.5%;
  height: 2px;
  background: var(--Brand-Accent);
  opacity: 0.45;
}

.process.plan-sec .process-connector { display: none; }

.process.plan-sec .process-number {
  position: relative;
  z-index: 1;
  width: 48px;
  height: 48px;
  margin: 0 auto 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--Brand-Accent);
  color: var(--Brand-Primary);
  opacity: 1;
  font-size: 1.05rem;
  letter-spacing: 0;
  box-shadow: 0 0 0 8px var(--White);
}

/* Why Work with JJ at Sea — three cards on navy */
.plan-why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 44px;
}

.plan-why-card {
  padding: 32px 28px;
  border-radius: 12px;
  background: var(--White);
  border: 1px solid rgba(0, 27, 121, 0.08);
  box-shadow: 0 4px 18px rgba(0, 27, 121, 0.06);
}

.plan-why-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 144, 194, 0.18);
  color: var(--Brand-Tertiary);
  margin-bottom: 20px;
}

.plan-why-icon svg { width: 32px; height: 32px; }

.plan-why-card h3 {
  color: var(--Brand-Primary);
  font-size: 1.15rem;
  margin: 0 0 10px;
}

.plan-why-card p {
  color: var(--Text-Light);
  font-size: 0.95rem;
  line-height: 1.7;
  margin: 0;
}

/* FAQ + closing CTA */
.faq.plan-sec .faq-list { max-width: 720px; margin-top: 40px; }
.plan-paths.plan-sec .section-subtitle { margin-bottom: 36px; }

@media (max-width: 991px) {
  .plan-why-grid { grid-template-columns: 1fr; max-width: 560px; margin-left: auto; margin-right: auto; }
}

/* Steps stack at <=991px (see base .process-steps rule), so switch to a vertical line there */
@media (max-width: 991px) {
  .process.plan-sec .process-steps::before {
    top: 0;
    bottom: 0;
    left: 50%;
    right: auto;
    width: 2px;
    height: auto;
    transform: translateX(-1px);
    opacity: 0.25;
  }
  .process.plan-sec .process-step { position: relative; z-index: 1; background: var(--White); padding: 8px 0; }
}

@media (max-width: 767px) {
  .plan-sec { padding: 56px 0; }
  .plan-why-card { padding: 26px 22px; }
}

/* --- Plan page: short form opens inside the "Still exploring" card --- */
.plan-paths-grid:has(.plan-path-form:not([hidden])) { align-items: start; }

.plan-path-cta { display: flex; flex-direction: column; align-items: flex-start; width: 100%; }
.plan-path-cta[hidden] { display: none; }

.plan-path-form { width: 100%; animation: planFormIn 0.28s ease-out; }
.plan-path-form[hidden] { display: none; }

@keyframes planFormIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: none; }
}

/* Light theme for the form fields (base styles are for a navy background) */
.plan-path .plan-lead-fields { gap: 12px; margin-bottom: 18px; }

.plan-path .plan-lead-fields input,
.plan-path .plan-lead-fields textarea {
  background: var(--White);
  border: 1px solid var(--gray-border);
  color: var(--Text-Dark);
  padding: 12px 14px;
  font-size: 0.95rem;
}

.plan-path .plan-lead-fields input::placeholder,
.plan-path .plan-lead-fields textarea::placeholder { color: #8a8c98; }

.plan-path .plan-lead-fields input:focus,
.plan-path .plan-lead-fields textarea:focus {
  background: var(--White);
  border-color: var(--Brand-Secondary);
  box-shadow: 0 0 0 3px rgba(22, 64, 214, 0.1);
}

.plan-path .hero-lead-interest-label { text-align: left; color: var(--Text-Light); }
.plan-path .hero-lead-chips { justify-content: flex-start; }
.plan-path .plan-lead-fields textarea { min-height: 96px; }

.plan-path .hero-lead-actions {
  justify-content: flex-start;
  align-items: center;
  gap: 18px;
  margin-top: 0;
}

.plan-form-cancel {
  background: none;
  border: 0;
  padding: 6px 2px;
  font-family: var(--font-main);
  font-size: 0.92rem;
  color: var(--Text-Light);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.plan-form-cancel:hover { color: var(--Brand-Primary); }

.plan-form-error {
  color: #c0392b;
  margin: 12px 0 0;
  font-size: 0.9rem;
}

/* Success state inside the card */
.plan-path .plan-success { text-align: left; padding: 4px 0 0; }
.plan-path .plan-success p { flex: none; margin: 0; }
.plan-path .plan-success-title { font-size: 1.15rem; font-weight: 900; color: var(--Brand-Primary); margin-bottom: 6px !important; }
.plan-path .hero-nl-save { width: auto; display: inline-block; padding: 12px 32px; }
.plan-path .plan-success-text { color: var(--Text-Light); font-size: 0.95rem; line-height: 1.6; margin-bottom: 20px !important; }
.plan-path .plan-success-tern {
  margin: 0 0 22px;
  max-width: none;
  background: var(--off-white);
  border: 1px solid var(--gray-border);
}
.plan-path .plan-success-tern-title { color: var(--Brand-Primary); margin-bottom: 6px !important; }
.plan-path .plan-success-tern-text { color: var(--Text-Light); margin-bottom: 14px !important; }
.plan-path .plan-success-nl-label {
  color: var(--Text-Light);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin-bottom: 10px !important;
}
.plan-path .hero-nl-options { justify-content: flex-start !important; }

@media (max-width: 560px) {
  .plan-path .hero-lead-actions { flex-direction: column; align-items: stretch; }
  .plan-path .hero-lead-actions .btn { width: 100%; }
}
