/* =============================================
   TRIPTIDE — STYLESHEET
   ============================================= */

/* Skip-to-content link — hidden until focused via keyboard Tab */
.skip-to-content {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 9999;
  padding: 12px 24px;
  background: var(--primary, #0F4C81);
  color: #fff;
  border-radius: 0 0 8px 8px;
  font-weight: 600;
  text-decoration: none;
  transition: top 0.2s;
}
.skip-to-content:focus {
  top: 0;
}

:root {
  --dest-accent:       #0F4C81;   /* overridden per-destination by JS */
  --dest-accent-light: #1a6bb5;
  --primary:        #0F4C81;
  --primary-light:  #1a6bb5;
  --secondary:      #FF6B35;
  --secondary-light:#ff8555;
  --success:        #10B981;
  --text-dark:      #1E293B;
  --text-mid:       #475569;
  --text-light:     #94A3B8;
  --bg-light:       #F8FAFC;
  --bg-white:       #FFFFFF;
  --border:         #E2E8F0;
  --shadow-sm:      0 1px 3px rgba(0,0,0,0.08);
  --shadow-md:      0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg:      0 8px 32px rgba(0,0,0,0.14);
  --radius-sm:      8px;
  --radius-md:      12px;
  --radius-lg:      20px;
  --font-heading:   'Playfair Display', Georgia, serif;
  --font-body:      'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  /* Slideshow timing — 6 slides × 5s each = 30s total cycle */
  --slide-duration: 30s;
  --slide-count:    6;

  /* Dark theme */
  --dark-base:    #0D1117;
  --dark-surface: #161B22;
  --dark-card:    #1C2128;
  --dark-border:  #30363D;
  --gold:         #C8A96E;
  --gold-light:   #D4BA82;
  --article-bg:   #FAFAF8;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); background: var(--bg-light); color: var(--text-dark); line-height: 1.6; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }

/* ── Homepage dark theme (everything except guide/hub pages) ── */
body:not(.dest-page) { background: var(--dark-base); color: #E6EDF3; }


/* =============================================
   HAMBURGER MENU (Batch 5)
   Hidden on desktop, shown on mobile.
   3-span icon animates into an X when open.
   ============================================= */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px; height: 40px;
  background: none; border: none; cursor: pointer;
  padding: 4px;
  border-radius: var(--radius-sm);
  transition: background 0.2s;
}
.nav-hamburger:hover { background: rgba(255,255,255,0.08); }
.nav-hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: rgba(255,255,255,0.85);
  border-radius: 2px;
  transition: transform 0.3s var(--ease-out-expo), opacity 0.2s;
}
/* Animate to X when open */
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile dropdown menu — slides down from navbar */
.nav-mobile-menu {
  display: none;
  flex-direction: column;
  position: fixed;
  top: 64px; left: 0; right: 0;
  background: rgba(13,17,23,0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--dark-border);
  z-index: 99;
  padding: 8px 0 16px;
  transform: translateY(-8px);
  opacity: 0;
  transition: transform 0.3s var(--ease-out-expo), opacity 0.25s;
  pointer-events: none;
}
.nav-mobile-menu.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: all;
}
.nav-mobile-link {
  display: block;
  padding: 14px 24px;
  color: rgba(255,255,255,0.8);
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.15s, background 0.15s;
}
.nav-mobile-link:hover {
  color: var(--gold);
  background: rgba(255,255,255,0.04);
  text-decoration: none;
}

@media (max-width: 768px) {
  /* Show hamburger and hide inline nav links on tablets + phones */
  .nav-hamburger { display: flex; }
  .nav-links { display: none !important; }
  .nav-mobile-menu { display: flex; }
}


/* =============================================
   BACK-TO-TOP BUTTON (Batch 5)
   Floats bottom-right on guide pages.
   Appears after scrolling 400px down.
   ============================================= */
.back-to-top {
  position: fixed;
  bottom: 28px; right: 24px;
  width: 44px; height: 44px;
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: rgba(255,255,255,0.7);
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
  z-index: 80;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.3s, transform 0.3s var(--ease-out-expo), background 0.2s, border-color 0.2s;
  pointer-events: none;
}
.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}
.back-to-top:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--dark-base);
}
.back-to-top svg {
  width: 18px; height: 18px;
  flex-shrink: 0;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* Reusable section eyebrow label */
.section-label {
  display: inline-block;
  background: rgba(15,76,129,0.08);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 14px;
}


/* =============================================
   NAVIGATION
   ============================================= */
.navbar {
  position: fixed; top: 0; left: 0; right: 0;
  background: rgba(13, 17, 23, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  z-index: 100; padding: 0 24px;
}
.nav-container {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; height: 64px;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-heading); font-size: 1.4rem;
  color: #fff; text-decoration: none;
}
.nav-logo:hover { text-decoration: none; }
.logo-svg { width: 22px; height: 22px; color: var(--primary); flex-shrink: 0; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: rgba(255,255,255,0.7); font-size: 0.95rem; font-weight: 500; }
.nav-links a:hover { color: #fff; text-decoration: none; }


/* =============================================
   BUTTONS
   ============================================= */
.btn-primary {
  display: inline-block; background: var(--secondary); color: white;
  border: none; border-radius: var(--radius-sm); padding: 12px 24px;
  font-size: 1rem; font-weight: 600; cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  font-family: var(--font-body); text-decoration: none; text-align: center;
}
.btn-primary:hover { background: var(--secondary-light); transform: translateY(-2px); text-decoration: none; color: white; }
.btn-large { padding: 16px 36px; font-size: 1.1rem; border-radius: var(--radius-md); }

.btn-subscribe {
  background: var(--primary); color: white; border: none;
  border-radius: var(--radius-sm); padding: 10px 20px;
  font-size: 0.9rem; font-weight: 600; cursor: pointer;
  transition: background 0.2s; font-family: var(--font-body);
}
.btn-subscribe:hover { background: var(--primary-light); }

/* Ghost button — white outline, used on the dark hero */
.btn-hero-ghost {
  display: inline-block; color: white;
  border: 2px solid rgba(255,255,255,0.55);
  border-radius: var(--radius-sm); padding: 14px 28px;
  font-size: 1rem; font-weight: 600; text-decoration: none;
  transition: all 0.2s;
  backdrop-filter: blur(4px); background: rgba(255,255,255,0.08);
}
.btn-hero-ghost:hover {
  background: rgba(255,255,255,0.18); border-color: white;
  text-decoration: none; color: white;
}

.btn-secondary {
  display: inline-block; background: transparent; color: var(--primary);
  border: 2px solid var(--primary); border-radius: var(--radius-sm);
  padding: 12px 24px; font-size: 1rem; font-weight: 600; cursor: pointer;
  transition: all 0.2s; font-family: var(--font-body); text-decoration: none;
}
.btn-secondary:hover { background: var(--primary); color: white; text-decoration: none; }

.btn-free {
  display: block; text-align: center; background: transparent;
  color: var(--primary); border: 2px solid var(--primary);
  border-radius: var(--radius-sm); padding: 14px 24px;
  font-size: 1rem; font-weight: 600; text-decoration: none; transition: all 0.2s;
}
.btn-free:hover { background: var(--primary); color: white; text-decoration: none; }

.btn-action {
  background: rgba(255,255,255,0.2); color: white;
  border: 1.5px solid rgba(255,255,255,0.4); border-radius: var(--radius-sm);
  padding: 8px 16px; font-size: 0.9rem; font-weight: 500; cursor: pointer;
  transition: background 0.2s; font-family: var(--font-body);
}
.btn-action:hover { background: rgba(255,255,255,0.3); }


/* =============================================
   HERO — FLOATING PHOTO CARDS
   ============================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: flex-end; justify-content: flex-start;
  padding: 0 0 100px;
  overflow: hidden; text-align: left;
  background: #0a1628;
}

/* ─── FLOATING CARDS CONTAINER ─────────────────
   Holds all 9 destination photo cards.
   Cards sit above the dark background (z:1)
   but below the overlay and text (z:2/4).
   ──────────────────────────────────────────── */
.hero-float-cards {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.hero-float-card {
  position: absolute;
  border-radius: 12px;
  overflow: hidden;
  box-shadow:
    0 24px 64px rgba(0,0,0,0.6),
    0 6px 20px rgba(0,0,0,0.4),
    0 0 0 1px rgba(255,255,255,0.08);
  will-change: transform;
  /* Smooth return to centre on mouse-leave */
  transition: transform 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transform: translate(var(--px, 0px), var(--py, 0px)) rotate(var(--rot, 0deg));
}

.hero-float-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Inner wrapper carries the float-drift animation independently from parallax */
.fc-inner {
  width: 100%;
  height: 100%;
  animation: float-drift var(--float-dur, 6s) ease-in-out infinite;
  animation-delay: var(--float-delay, 0s);
}

@keyframes float-drift {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-16px); }
}

/* ─── CARD POSITIONS, SIZES & DEPTHS ───────────
   Layout: right half / top portion for cards
   (text lives bottom-left). Left-edge cards
   peek in from the far left as accent pieces.
   ──────────────────────────────────────────── */
/* Paris — Eiffel cobblestone, large, top-right */
.fc-1 { width: 172px; height: 258px; left: 63%; top:  6%; --rot: -2deg;   --float-dur: 6s;   --float-delay:    0s; }
/* Tokyo — Mt. Fuji cherry blossoms, mid, upper-right */
.fc-2 { width: 138px; height: 207px; left: 81%; top: 12%; --rot:  3deg;   --float-dur: 7s;   --float-delay: -1.5s; }
/* Bali — rice terraces, mid, mid-right */
.fc-3 { width: 156px; height: 234px; left: 69%; top: 44%; --rot: -1.5deg; --float-dur: 5.5s; --float-delay:   -3s; }
/* Dubai — aerial, large, lower-right */
.fc-4 { width: 190px; height: 285px; left: 57%; top: 56%; --rot:  2.5deg; --float-dur: 6.5s; --float-delay:   -2s; }
/* Maldives — overwater villas, mid, top-centre (peeks from top) */
.fc-5 { width: 147px; height: 220px; left: 47%; top: -3%; --rot: -3deg;   --float-dur: 8s;   --float-delay:   -4s; }
/* New York — Central Park aerial, mid, far-right */
.fc-6 { width: 160px; height: 240px; left: 88%; top: 34%; --rot:  2deg;   --float-dur: 5s;   --float-delay: -0.5s; }
/* Rome — Trevi Fountain, small, top-left accent */
.fc-7 { width: 126px; height: 189px; left: 16%; top:  8%; --rot: -2.5deg; --float-dur: 7.5s; --float-delay: -2.5s; }
/* Sydney — Opera House, large, lower-right */
.fc-8 { width: 180px; height: 270px; left: 77%; top: 62%; --rot: -1deg;   --float-dur: 6s;   --float-delay:   -1s; }
/* Bangkok — temple, small, left-edge accent */
.fc-9 { width: 140px; height: 210px; left: 14%; top: 55%; --rot:  3.5deg; --float-dur: 5.5s; --float-delay: -3.5s; }

/* ─── DARK OVERLAY ─────────────────────────────
   Strong dark band on the left keeps white text
   readable. Fades to transparent on the right so
   the destination cards appear bright and vivid.
   ──────────────────────────────────────────── */
.hero-overlay {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background:
    linear-gradient(
      to right,
      rgba(10,22,40,1.0)  0%,
      rgba(10,22,40,0.88) 28%,
      rgba(10,22,40,0.45) 50%,
      rgba(10,22,40,0.08) 68%,
      transparent         82%
    ),
    linear-gradient(
      to top,
      rgba(0,0,0,0.55) 0%,
      rgba(0,0,0,0.10) 35%,
      transparent      60%
    );
}

/* On screens narrower than 1200px the card layout breaks — hide cards and
   fall back to a single atmospheric background photo. */
@media (max-width: 1199px) {
  .hero-float-cards { display: none; }
  .hero {
    background-image: url('https://images.unsplash.com/photo-1502602898657-3e91760cbb34?auto=format&fit=crop&w=1200&q=85');
    background-size: cover;
    background-position: center;
  }
  .hero-overlay {
    background:
      linear-gradient(to right, rgba(10,22,40,0.92) 0%, rgba(10,22,40,0.6) 50%, rgba(10,22,40,0.25) 100%),
      linear-gradient(to top,   rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.10) 50%, transparent 100%);
  }
}

/* ─── HERO CONTENT ─────────────────────────── */
.hero-content {
  position: relative; z-index: 3;
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
}

/* Frosted glass panel sits behind eyebrow + title + subtitle only */
.hero-text {
  background: rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 40px 44px 32px;
  margin-bottom: 28px;
  max-width: 680px;
}

.hero-eyebrow {
  display: inline-block;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.28);
  color: rgba(255,255,255,0.92);
  font-size: 0.78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.12em;
  padding: 6px 20px; border-radius: 100px; margin-bottom: 22px;
  backdrop-filter: blur(6px);
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.6rem, 5.5vw, 4.2rem);
  color: white;
  line-height: 1.18;
  margin-bottom: 24px;
  text-shadow: 0 2px 6px rgba(0,0,0,0.55), 0 4px 24px rgba(0,0,0,0.35);
}

.hero-subtitle {
  font-size: 1.12rem; color: rgba(255,255,255,0.85);
  max-width: 560px; margin: 0;
  line-height: 1.75; text-shadow: 0 1px 4px rgba(0,0,0,0.4);
  font-weight: 300;
}

.hero-cta {
  display: flex; gap: 16px; justify-content: center;
  flex-wrap: wrap; margin-bottom: 22px;
}

.hero-note {
  color: rgba(255,255,255,0.6); font-size: 0.88rem;
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

/* ─── WAVE DIVIDER ──────────────────────────── */
.hero-wave {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 5;
  line-height: 0; pointer-events: none;
}
.hero-wave svg { display: block; width: 100%; height: 90px; }


/* =============================================
   HOW IT WORKS
   ============================================= */
.how-it-works { padding: 100px 0; background: var(--dark-surface); text-align: center; }
.how-it-works h2 { font-family: var(--font-heading); font-size: 2.5rem; margin-bottom: 12px; color: #fff; }
.section-subtitle { color: rgba(255,255,255,0.55); font-size: 1.05rem; margin-bottom: 56px; }

.steps-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 28px;
}
/* 2-card variant — constrain max width so cards don't stretch too wide */
.steps-grid-2 { max-width: 860px; margin-left: auto; margin-right: auto; }

.step-card {
  padding: 44px 32px; border-radius: var(--radius-lg);
  background: var(--dark-card); border: 1px solid var(--dark-border);
  transition: transform 0.3s var(--ease-out-expo), box-shadow 0.3s; text-align: center;
}
.step-card:hover { transform: translateY(-6px); box-shadow: 0 12px 40px rgba(0,0,0,0.4); }

/* Coloured circle containing the SVG icon */
.step-icon-wrap {
  width: 72px; height: 72px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 24px;
  box-shadow: 0 8px 24px rgba(15,76,129,0.3);
}
.step-icon-wrap svg { width: 32px; height: 32px; }

.step-card h3 { font-size: 1.2rem; font-weight: 600; margin-bottom: 12px; color: #fff; }
.step-card p { color: rgba(255,255,255,0.55); font-size: 0.95rem; line-height: 1.7; }


/* =============================================
   ITINERARY PREVIEW SECTION
   ============================================= */
.preview-section { padding: 100px 0; background: var(--bg-light); }

.preview-layout {
  display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center;
}

.preview-text h2 {
  font-family: var(--font-heading); font-size: 2.2rem; margin-bottom: 16px; line-height: 1.3;
}
.preview-text > p { color: var(--text-mid); font-size: 1.05rem; margin-bottom: 28px; line-height: 1.75; }

.preview-features {
  list-style: none; margin-bottom: 36px;
  border: 1px solid var(--border); border-radius: var(--radius-md);
  background: white; overflow: hidden;
}
.preview-features li {
  padding: 12px 20px; font-size: 0.93rem; font-weight: 500;
  border-bottom: 1px solid var(--border); color: var(--text-dark);
  display: flex; align-items: center; gap: 12px;
}
.preview-features li:last-child { border-bottom: none; }
.preview-features li::before {
  content: '';
  display: inline-block; flex-shrink: 0;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--primary);
}

/* The sample itinerary card */
.preview-card-wrapper { position: relative; }
.preview-card {
  border: 1.5px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-lg);
  position: relative; max-height: 540px; background: white;
}

.preview-card-header {
  background: linear-gradient(135deg, var(--primary) 0%, #1a6bb5 100%);
  color: white; padding: 22px 26px;
}
.preview-card-destination {
  font-size: 1.2rem; font-weight: 700; font-family: var(--font-heading);
  margin-bottom: 12px; display: flex; align-items: flex-start; gap: 2px;
}
.preview-card-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.preview-card-tags span {
  background: rgba(255,255,255,0.18); border: 1px solid rgba(255,255,255,0.3);
  padding: 4px 14px; border-radius: 100px; font-size: 0.8rem; font-weight: 500;
}

.preview-card-body { padding: 22px 26px; overflow: hidden; }

.preview-day { margin-bottom: 22px; padding-bottom: 22px; border-bottom: 1px solid var(--border); }
.preview-day:last-child { border-bottom: none; }
.preview-day-title {
  font-weight: 700; font-size: 0.82rem; color: var(--primary);
  text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 14px;
}

.preview-slot { display: flex; gap: 14px; margin-bottom: 12px; align-items: flex-start; }
.slot-time {
  display: inline-block; font-size: 0.68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em;
  padding: 3px 9px; border-radius: 4px; flex-shrink: 0; margin-top: 3px; white-space: nowrap;
}
.slot-time.morning   { background: #FEF3C7; color: #B45309; }
.slot-time.afternoon { background: #DBEAFE; color: #1D4ED8; }
.slot-time.evening   { background: #EDE9FE; color: #6D28D9; }

.preview-slot strong { display: block; font-size: 0.88rem; color: var(--text-dark); margin-bottom: 3px; }
.preview-slot p { font-size: 0.82rem; color: var(--text-mid); line-height: 1.55; margin: 0; }

/* Fade overlay at the bottom of the preview card */
.preview-card-fade {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(255,255,255,0.97) 42%, white 100%);
  padding: 80px 26px 28px; text-align: center;
}
.preview-card-fade p { font-size: 0.83rem; color: var(--text-mid); margin-bottom: 14px; font-style: italic; }

.btn-preview-cta {
  display: inline-block; background: var(--primary); color: white;
  padding: 12px 22px; border-radius: var(--radius-sm);
  font-size: 0.88rem; font-weight: 600; text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}
.btn-preview-cta:hover { background: var(--primary-light); transform: translateY(-2px); text-decoration: none; color: white; }


/* =============================================
   DESTINATION HIGHLIGHTS — AUTO-SCROLLING STRIP
   Infinite horizontal marquee of destination
   photos between hero and destination grid.
   ============================================= */
.photo-strip-section {
  background: var(--dark-surface);
  padding: 32px 0;
  overflow: hidden;
  border-top: 1px solid var(--dark-border);
  border-bottom: 1px solid var(--dark-border);
  position: relative;
}

/* Arrow buttons for manual scroll (always visible) */
.strip-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  background: rgba(13,17,23,0.75);
  color: var(--gold);
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(6px);
  transition: background 0.2s, border-color 0.2s;
}
.strip-arrow:hover {
  background: rgba(200,169,110,0.18);
  border-color: var(--gold);
}
.strip-arrow-left { left: 12px; }
.strip-arrow-right { right: 12px; }
@media (max-width: 640px) {
  .strip-arrow { width: 32px; height: 32px; font-size: 1rem; }
  .strip-arrow-left { left: 6px; }
  .strip-arrow-right { right: 6px; }
}

.photo-strip-track {
  display: flex;
  width: max-content;
  will-change: transform;
  /* Auto-scroll driven by JS (initPhotoStrip) — no CSS animation */
}

.photo-strip-scroll {
  display: flex;
  gap: 16px;
  padding-right: 16px; /* gap between copies */
}

.photo-strip-card {
  position: relative;
  display: block;
  width: 260px;
  height: 160px;
  border-radius: var(--radius-md);
  overflow: hidden;
  flex-shrink: 0;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(0,0,0,0.35);
  transition: transform 0.3s var(--ease-out-expo), box-shadow 0.3s;
}
.photo-strip-card:hover {
  transform: scale(1.04);
  box-shadow: 0 8px 28px rgba(0,0,0,0.5);
  text-decoration: none;
}

.photo-strip-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.photo-strip-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px 14px 10px;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 100%);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  font-family: var(--font-body);
  letter-spacing: 0.02em;
}
.photo-strip-label em {
  font-style: normal;
  font-weight: 400;
  color: var(--gold);
  margin-left: 4px;
}

@media (prefers-reduced-motion: reduce) {
  /* Reduced-motion: JS still drives transform, but no auto-scroll — arrows + drag only.
     Keep overflow hidden so arrows stay pinned and no native scrollbar appears. */
  .photo-strip-scroll:last-child { display: none; }
}

@media (max-width: 640px) {
  .photo-strip-card { width: 200px; height: 130px; }
  .photo-strip-section { padding: 20px 0; }
}


/* =============================================
   POPULAR DESTINATIONS
   ============================================= */
.destinations-section { padding: 100px 0; background: var(--dark-base); text-align: center; }
.destinations-section h2 { font-family: var(--font-heading); font-size: 2.5rem; margin-bottom: 12px; color: #fff; }

.destinations-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
}

/* Each card is a 240px tall photo card with overlay text */
.dest-card {
  position: relative; border-radius: var(--radius-md); overflow: hidden;
  height: 260px; cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.dest-card:hover { transform: translateY(-8px); box-shadow: 0 20px 48px rgba(0,0,0,0.22); }

/* The photo itself — zooms slightly on hover for extra polish */
.dest-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transition: transform 0.5s ease;
}
.dest-card:hover .dest-bg { transform: scale(1.06); }

/* Gradient overlay — dark at the bottom so text is always readable */
.dest-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.88) 0%,
    rgba(0,0,0,0.35) 55%,
    rgba(0,0,0,0.10) 100%
  );
}

/* Text content sits above the overlay */
.dest-content {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 22px 18px; color: white; z-index: 1; text-align: left;
}
.dest-name { font-size: 1.25rem; font-weight: 700; font-family: var(--font-heading); line-height: 1.2; }
.dest-country { font-size: 0.78rem; opacity: 0.75; margin-bottom: 10px; font-weight: 400; }
.dest-tag {
  display: inline-block; background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.3);
  padding: 3px 12px; border-radius: 100px; font-size: 0.72rem;
  font-weight: 500; margin-bottom: 12px;
}
/* "Plan this trip" CTA — hidden until hover */
.dest-cta {
  font-size: 0.82rem; font-weight: 600; color: rgba(255,255,255,0.9);
  opacity: 0; transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  display: flex; align-items: center; gap: 6px;
}
.dest-cta::after { content: '→'; }
.dest-card:hover .dest-cta { opacity: 1; transform: translateY(0); }


/* =============================================
   PLANNING FORM SECTION
   ============================================= */
.planner-section { padding: 100px 0; background: var(--bg-light); }

.form-header { text-align: center; margin-bottom: 48px; }
.form-header h2 { font-family: var(--font-heading); font-size: 2.5rem; margin-bottom: 16px; }

.free-tier-banner, .subscriber-banner, .used-tier-banner {
  display: inline-block; padding: 10px 28px; border-radius: 100px;
  font-size: 0.93rem; font-weight: 500;
}
.free-tier-banner  { background: #FEF3C7; color: #92400E; border: 1px solid #FDE68A; }
.subscriber-banner { background: #D1FAE5; color: #065F46; border: 1px solid #A7F3D0; }
.used-tier-banner  { background: #FEE2E2; color: #991B1B; border: 1px solid #FECACA; }
.used-tier-banner a { color: #991B1B; font-weight: 600; }

.travel-form {
  background: white; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); border: 1px solid var(--border);
}
.form-section { padding: 36px 44px; border-bottom: 1px solid var(--border); }
.form-section:last-of-type { border-bottom: none; }
.form-section h3 { font-size: 1rem; font-weight: 700; color: var(--text-dark); margin-bottom: 22px; text-transform: uppercase; letter-spacing: 0.05em; }
.form-helper { color: var(--text-mid); font-size: 0.88rem; margin-top: -14px; margin-bottom: 18px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group.full-width { grid-column: 1 / -1; }
.form-group label { font-size: 0.82rem; font-weight: 600; color: var(--text-mid); text-transform: uppercase; letter-spacing: 0.06em; }
.form-group input, .form-group select, .form-group textarea {
  padding: 13px 16px; border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  font-size: 1rem; font-family: var(--font-body); color: var(--text-dark);
  background: var(--bg-light); transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  outline: none; width: 100%;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--primary); box-shadow: 0 0 0 3px rgba(15,76,129,0.1); background: white;
}

/* Budget selector cards */
.budget-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.budget-card input[type="radio"] { display: none; }
.budget-card-inner {
  border: 2px solid var(--border); border-radius: var(--radius-md);
  padding: 24px 18px; text-align: center; cursor: pointer;
  transition: all 0.2s; display: flex; flex-direction: column;
  align-items: center; gap: 8px; background: var(--bg-light);
}
.budget-card-inner:hover { border-color: var(--primary-light); background: white; }
.budget-card input[type="radio"]:checked + .budget-card-inner {
  border-color: var(--primary); background: rgba(15,76,129,0.04);
  box-shadow: 0 0 0 3px rgba(15,76,129,0.1);
}
/* Budget SVG icon circle */
.budget-icon {
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 4px;
}
.budget-icon svg { width: 22px; height: 22px; }
.budget-icon-low  { background: #EFF6FF; color: #3B82F6; }
.budget-icon-mid  { background: #F0FDF4; color: #16A34A; }
.budget-icon-high { background: #FFFBEB; color: #D97706; }
.budget-icon-low  svg { stroke: #3B82F6; }
.budget-icon-mid  svg { stroke: #16A34A; }
.budget-icon-high svg { stroke: #D97706; }
.budget-label { font-weight: 700; font-size: 1rem; color: var(--text-dark); }
.budget-desc  { font-size: 0.77rem; color: var(--text-mid); line-height: 1.4; }

/* Interest tags */
.interests-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.interest-tag {
  display: inline-flex; align-items: center; padding: 9px 18px;
  border: 1.5px solid var(--border); border-radius: 100px;
  font-size: 0.88rem; color: var(--text-mid); background: var(--bg-light);
  cursor: pointer; transition: all 0.2s; font-family: var(--font-body); user-select: none;
}
.interest-tag input[type="checkbox"] { display: none; }
.interest-tag:has(input:checked) { background: var(--primary); border-color: var(--primary); color: white; }
.interest-tag:hover { border-color: var(--primary-light); background: white; }

/* Generate button */
.form-submit {
  padding: 36px 44px; text-align: center;
  background: linear-gradient(180deg, white 0%, var(--bg-light) 100%);
  border-top: 1px solid var(--border);
}
.btn-generate {
  background: linear-gradient(135deg, var(--secondary), #d44e1a);
  color: white; border: none; border-radius: var(--radius-md);
  padding: 20px 56px; font-size: 1.15rem; font-weight: 600; cursor: pointer;
  transition: all 0.2s; font-family: var(--font-body); width: 100%; max-width: 400px;
  box-shadow: 0 4px 24px rgba(255,107,53,0.35); letter-spacing: 0.01em;
}
.btn-generate:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(255,107,53,0.45); }
.btn-generate:disabled { opacity: 0.7; cursor: not-allowed; transform: none; }
.form-submit-note { margin-top: 14px; font-size: 0.83rem; color: var(--text-light); }

.spinner {
  display: inline-block; width: 18px; height: 18px;
  border: 2.5px solid rgba(255,255,255,0.35); border-top-color: white;
  border-radius: 50%; animation: spin 0.72s linear infinite;
  vertical-align: middle; margin-right: 8px;
}
@keyframes spin { to { transform: rotate(360deg); } }


/* =============================================
   PRICING SECTION
   ============================================= */
.pricing-section { padding: 100px 0; background: white; text-align: center; }
.pricing-section h2 { font-family: var(--font-heading); font-size: 2.5rem; margin-bottom: 12px; }
.pricing-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 28px; max-width: 720px; margin: 0 auto;
}
.pricing-card { border-radius: var(--radius-lg); padding: 44px 36px; border: 2px solid var(--border); }
.pro-card { border-color: var(--primary); background: linear-gradient(180deg, rgba(15,76,129,0.03) 0%, white 100%); }
.pricing-badge {
  display: inline-block; padding: 4px 14px; border-radius: 100px;
  font-size: 0.78rem; font-weight: 700; background: var(--border);
  color: var(--text-mid); margin-bottom: 18px;
}
.pricing-badge.popular { background: var(--secondary); color: white; }
.pricing-card h3 { font-family: var(--font-heading); font-size: 2rem; margin-bottom: 8px; }
.price { font-size: 2.8rem; font-weight: 700; color: var(--primary); margin-bottom: 32px; line-height: 1; }
.price span { font-size: 1rem; font-weight: 400; color: var(--text-mid); }
.pricing-features { list-style: none; margin-bottom: 32px; }
.pricing-features li { padding: 10px 0; font-size: 0.93rem; border-bottom: 1px solid var(--border); text-align: left; display: flex; align-items: center; gap: 10px; }
.pricing-features li:last-child { border-bottom: none; }
.pricing-features li.feature-on::before {
  content: ''; display: inline-block; flex-shrink: 0;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--success); background-image: url("data:image/svg+xml,%3Csvg width='10' height='8' viewBox='0 0 10 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 4l3 3 5-6' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center;
}
.pricing-features li.feature-off { color: var(--text-light); }
.pricing-features li.feature-off::before {
  content: ''; display: inline-block; flex-shrink: 0;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--border);
}


/* =============================================
   ITINERARY PAGE
   ============================================= */
.itinerary-header {
  background: linear-gradient(135deg, var(--primary), #1a6bb5);
  color: white; padding: 100px 0 52px;
}
.itinerary-meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; }
.back-link { color: rgba(255,255,255,0.8); font-size: 0.9rem; transition: color 0.2s; }
.back-link:hover { color: white; text-decoration: none; }
.itinerary-actions { display: flex; gap: 12px; }
.itinerary-header h1 { font-family: var(--font-heading); font-size: clamp(1.8rem, 4vw, 3rem); margin-bottom: 18px; color: white; }
.itinerary-summary { display: flex; flex-wrap: wrap; gap: 10px; }
.summary-tag { background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.25); padding: 6px 16px; border-radius: 100px; font-size: 0.9rem; }

.itinerary-layout { display: flex; max-width: 1100px; margin: 0 auto; padding: 44px 24px; gap: 36px; align-items: flex-start; }
.itinerary-main { flex: 1; min-width: 0; }
.itinerary-content { background: white; border-radius: var(--radius-lg); padding: 48px; box-shadow: var(--shadow-md); border: 1px solid var(--border); line-height: 1.85; }
.loading-state { text-align: center; padding: 60px 0; color: var(--text-mid); }
.loading-spinner { width: 40px; height: 40px; border: 3px solid var(--border); border-top-color: var(--primary); border-radius: 50%; animation: spin 0.8s linear infinite; margin: 0 auto 16px; }
.itinerary-content h1, .itinerary-content h2 { font-family: var(--font-heading); color: var(--primary); margin: 36px 0 16px; padding-bottom: 10px; border-bottom: 2px solid var(--border); }
.itinerary-content h1:first-child, .itinerary-content h2:first-child { margin-top: 0; }
.itinerary-content h3 { color: var(--text-dark); font-size: 1.1rem; font-weight: 600; margin: 24px 0 10px; }
.itinerary-content p { margin-bottom: 16px; color: var(--text-mid); }
.itinerary-content ul, .itinerary-content ol { margin: 0 0 18px 26px; }
.itinerary-content li { margin-bottom: 8px; color: var(--text-mid); }
.itinerary-content strong { color: var(--text-dark); font-weight: 600; }
.itinerary-content hr { border: none; border-top: 1px solid var(--border); margin: 28px 0; }

.ad-sidebar { width: 300px; flex-shrink: 0; }
.sidebar-ad-label { font-size: 0.75rem; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 8px; }
.ad-banner { background: var(--bg-light); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 16px 24px; text-align: center; }
.ad-placeholder { min-height: 90px; background: var(--border); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; color: var(--text-light); font-size: 0.8rem; }
.sidebar-ad-placeholder { min-height: 280px; position: sticky; top: 84px; }

.upgrade-cta { background: linear-gradient(135deg, var(--primary), #1a6bb5); color: white; padding: 60px 0; text-align: center; }
.upgrade-cta h3 { font-family: var(--font-heading); font-size: 2rem; margin-bottom: 14px; }
.upgrade-cta p { font-size: 1.1rem; opacity: 0.85; margin-bottom: 28px; }


/* =============================================
   MODAL
   ============================================= */
.modal { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 24px; }
.modal-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.65); backdrop-filter: blur(6px); }
.modal-content { position: relative; background: white; border-radius: var(--radius-lg); padding: 52px 44px; max-width: 480px; width: 100%; text-align: center; z-index: 1; box-shadow: var(--shadow-lg); }
.modal-close { position: absolute; top: 16px; right: 16px; background: none; border: none; cursor: pointer; color: var(--text-light); width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: background 0.2s; }
.modal-close:hover { background: var(--bg-light); color: var(--text-dark); }

/* SVG globe graphic in the modal — replaces emoji */
.modal-globe { width: 80px; height: 80px; margin: 0 auto 22px; }
.modal-globe svg { width: 80px; height: 80px; }

.modal-content h2 { font-family: var(--font-heading); font-size: 1.9rem; margin-bottom: 12px; }
.modal-content p { color: var(--text-mid); margin-bottom: 24px; }
.modal-price { font-size: 2.5rem; font-weight: 700; color: var(--primary); margin-bottom: 22px; line-height: 1; }
.modal-price span { font-size: 1rem; font-weight: 400; color: var(--text-mid); }
.modal-features { list-style: none; text-align: left; margin-bottom: 28px; background: var(--bg-light); border-radius: var(--radius-md); padding: 16px 24px; border: 1px solid var(--border); }
.modal-features li { padding: 8px 0; font-size: 0.95rem; border-bottom: 1px solid var(--border); color: var(--text-dark); display: flex; align-items: center; gap: 10px; }
.modal-features li:last-child { border-bottom: none; }
.modal-features li::before { content: ''; display: inline-block; flex-shrink: 0; width: 16px; height: 16px; border-radius: 50%; background: var(--success); }
.modal-subscribe-btn { width: 100%; padding: 16px; font-size: 1.1rem; border-radius: var(--radius-md); }
.modal-footer { margin-top: 16px; font-size: 0.8rem; color: var(--text-light); }


/* =============================================
   FOOTER
   ============================================= */
.footer { background: var(--dark-base); color: rgba(255,255,255,0.5); padding: 56px 0; text-align: center; border-top: 1px solid var(--gold); }
.footer-logo { font-family: var(--font-heading); font-size: 1.5rem; color: white; margin-bottom: 12px; display: flex; align-items: center; justify-content: center; gap: 10px; }
.footer p { font-size: 0.9rem; margin-bottom: 8px; }
.footer-links { margin-top: 20px; }
.footer-links a { color: rgba(255,255,255,0.4); font-size: 0.85rem; }
.footer-links a:hover { color: rgba(255,255,255,0.85); text-decoration: none; }


/* =============================================
   SUCCESS & CANCEL PAGES
   ============================================= */
.success-page { min-height: 100vh; background: linear-gradient(135deg, var(--primary), #1a6bb5); display: flex; align-items: center; justify-content: center; padding: 24px; }
.success-card { background: white; border-radius: var(--radius-lg); padding: 64px 52px; text-align: center; max-width: 500px; width: 100%; box-shadow: var(--shadow-lg); }
.success-icon { font-size: 4.5rem; margin-bottom: 24px; }
.success-card h1 { font-family: var(--font-heading); font-size: 2.2rem; margin-bottom: 16px; }
.success-card p { color: var(--text-mid); font-size: 1.05rem; margin-bottom: 28px; }
.success-features { display: flex; flex-direction: column; gap: 8px; margin-bottom: 32px; background: var(--bg-light); border-radius: var(--radius-md); padding: 16px 24px; border: 1px solid var(--border); }
.success-feature { font-size: 0.95rem; color: var(--success); font-weight: 500; }
.success-note { margin-top: 20px; font-size: 0.82rem; color: var(--text-light); }

.cancel-page { min-height: 100vh; background: var(--bg-light); display: flex; align-items: center; justify-content: center; padding: 24px; }
.cancel-card { background: white; border-radius: var(--radius-lg); padding: 64px 52px; text-align: center; max-width: 500px; width: 100%; box-shadow: var(--shadow-md); border: 1px solid var(--border); }
.cancel-icon { font-size: 4.5rem; margin-bottom: 24px; }
.cancel-card h1 { font-family: var(--font-heading); font-size: 2.2rem; margin-bottom: 16px; }
.cancel-card p { color: var(--text-mid); margin-bottom: 32px; font-size: 1.05rem; }
.cancel-actions { display: flex; gap: 16px; justify-content: center; }


/* =============================================
   RESPONSIVE — TABLET & MOBILE
   ============================================= */
@media (max-width: 960px) {
  .preview-layout { grid-template-columns: 1fr; gap: 44px; }
  .destinations-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .hero-title { font-size: 2.2rem; }
  .hero-captions { display: none; }
  .hero-cta { flex-direction: column; align-items: center; }
  .btn-hero-ghost { width: 100%; max-width: 320px; text-align: center; }
  .form-row { grid-template-columns: 1fr; }
  .budget-options { grid-template-columns: 1fr; }
  .form-section { padding: 24px 20px; }
  .form-submit { padding: 28px 20px; }
  .itinerary-layout { flex-direction: column; padding: 24px 16px; }
  .ad-sidebar { width: 100%; }
  .itinerary-content { padding: 28px 20px; }
  .cancel-actions { flex-direction: column; }
  .modal-content { padding: 40px 24px; }
  .destinations-grid { gap: 12px; }
  .dest-card { height: 200px; }
}


/* =============================================
   PRINT STYLES
   ============================================= */
@media print {
  /* Legacy / itinerary pages */
  .results-search-bar, .results-actions, .results-sidebar { display: none !important; }
  .results-layout { display: block; }
  .results-content { box-shadow: none; border: none; padding: 0; }

  /* All pages */
  .navbar, .nav-mobile-menu, .ad-slot, .footer,
  .skip-to-content, #back-to-top { display: none !important; }

  /* Guide pages */
  .dest-hero, .month-nav-bar, .dest-sidebar,
  #cross-links-section, .dest-loading { display: none !important; }
  .dest-layout { display: block !important; }
  .dest-main, .dest-article, .guide-content,
  .at-a-glance {
    background: #fff !important;
    color: #1E293B !important;
    box-shadow: none !important;
    border: none !important;
  }
  .at-a-glance .glance-label { color: #475569 !important; }
  .at-a-glance .glance-value,
  .at-a-glance .temp-value-text,
  .at-a-glance .crowd-bar-label,
  .at-a-glance .budget-tier-label { color: #1E293B !important; }
  .guide-content { padding: 0 !important; animation: none !important; }
  .guide-content h2 { border-top-color: #0F4C81 !important; color: #0F4C81 !important; }
  .section-image { margin: 4px 0 28px !important; }

  /* Hub pages */
  .dest-hero, .hub-section-sub { display: block !important; }
}


/* =============================================
   NAVBAR — UPDATED FOR NEW STRUCTURE
   Supports nav-logo and nav-links directly
   without needing a nav-container wrapper.
   ============================================= */
.navbar {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.nav-link { color: rgba(255,255,255,0.7); font-size: 0.95rem; font-weight: 500; transition: color 0.2s; }
.nav-link:hover { color: #fff; text-decoration: none; }


/* =============================================
   SECTION HEADER (shared between sections)
   ============================================= */
.section-header { text-align: center; margin-bottom: 52px; }
.section-title {
  font-family: var(--font-heading); font-size: clamp(2rem, 4vw, 2.6rem);
  color: #fff; margin-bottom: 12px;
}

/* Coloured icon variants for the How It Works steps */
.step-icon-blue   { background: linear-gradient(135deg, #0F4C81, #1a6bb5); box-shadow: 0 8px 24px rgba(15,76,129,0.3); }
.step-icon-teal   { background: linear-gradient(135deg, #0d9488, #14b8a6); box-shadow: 0 8px 24px rgba(13,148,136,0.3); }
.step-icon-orange { background: linear-gradient(135deg, #ea580c, #f97316); box-shadow: 0 8px 24px rgba(234,88,12,0.3); }
.step-title { font-size: 1.15rem; font-weight: 700; color: #fff; margin-bottom: 10px; }
.step-desc  { color: rgba(255,255,255,0.55); font-size: 0.95rem; line-height: 1.7; }

/* Highlight word in hero title */
.hero-highlight { color: var(--gold); -webkit-text-fill-color: var(--gold); }

/* ── Hero entrance animation ─────────────────── */
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-eyebrow     { animation: heroFadeUp 0.8s var(--ease-out-expo) 0.2s both; }
.hero-title       { animation: heroFadeUp 0.9s var(--ease-out-expo) 0.4s both; }
.hero-subtitle    { animation: heroFadeUp 0.8s var(--ease-out-expo) 0.6s both; }
.hero-quick-links { animation: heroFadeUp 0.8s var(--ease-out-expo) 0.8s both; }

/* =============================================
   WAVE DIVIDER (between hero and content)
   ============================================= */
/* Wave divider removed — dark theme uses direct gradient transitions */
.wave-divider { display: none; }


/* =============================================
   HERO QUICK-LINKS
   Popular guide pills displayed below the hero
   headline. Direct links — no search needed.
   ============================================= */
.hero-quick-links {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 8px; margin-top: 28px; justify-content: flex-start;
  max-width: 680px;
}
.example-label {
  color: rgba(255,255,255,0.5); font-size: 0.82rem; font-weight: 500;
  width: 100%; text-align: left; margin-bottom: 2px;
}
.example-pill {
  background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.28);
  color: rgba(255,255,255,0.9); padding: 7px 18px; border-radius: 100px;
  font-size: 0.82rem; font-weight: 500; text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
  backdrop-filter: blur(4px); white-space: nowrap;
}
.example-pill:hover { background: rgba(200,169,110,0.18); border-color: var(--gold); color: var(--gold); text-decoration: none; }


/* =============================================
   DESTINATION GRID — PHASE 5 MONTH PICKER
   Photo on top, white info panel below with
   a 4-column grid of 12 clickable month pills.
   ============================================= */
.dest-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

/* Card: dark background, lift + gold glow on hover */
.dest-card {
  height: auto;
  min-height: unset;
  cursor: default;
  background: var(--dark-card);
  box-shadow: 0 2px 12px rgba(0,0,0,0.25);
  border: 1px solid var(--dark-border);
  transition: transform 0.3s var(--ease-out-expo), box-shadow 0.3s, border-color 0.3s;
}
.dest-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4), 0 0 0 1px rgba(200,169,110,0.2);
  border-color: rgba(200,169,110,0.25);
}

/* Photo section — fixed height, clips the zoom */
.dest-photo {
  position: relative;
  height: 200px;
  overflow: hidden;
}

/* .dest-bg positions itself inside .dest-photo (nearest positioned ancestor) */

/* Info section below the photo */
.dest-info {
  padding: 16px 18px 20px;
  background: var(--dark-card);
  text-align: center;
}

/* Destination name as a hub-page link — keeps heading appearance */
a.dest-name-link {
  display: block;
  color: #fff;
  text-decoration: none;
  transition: color 0.2s;
}
a.dest-name-link:hover {
  color: var(--gold);
  text-decoration: none;
}

/* Card text — white on dark */
.dest-info .dest-name {
  color: #fff;
  font-size: 1.15rem;
  margin-bottom: 2px;
}
.dest-info .dest-country {
  color: rgba(255,255,255,0.45);
  opacity: 1;
  font-size: 0.8rem;
  margin-bottom: 0;
}

/* 4-column grid of month shorthand pills (homepage cards only) */
.month-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-top: 14px;
}
/* Scoped to .dest-info to avoid collision with At a Glance .month-pill */
.dest-info .month-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 7px 4px;
  border-radius: var(--radius-sm);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--gold);
  background: rgba(200, 169, 110, 0.08);
  border: 1px solid rgba(200, 169, 110, 0.18);
  transition: background 0.2s var(--ease-out-expo), color 0.2s, border-color 0.2s, transform 0.2s var(--ease-out-expo);
  text-decoration: none;
  letter-spacing: 0.02em;
}
.dest-info .month-pill:hover {
  background: var(--gold);
  color: var(--dark-base);
  border-color: var(--gold);
  text-decoration: none;
  transform: translateY(-2px);
}


/* =============================================
   CROSS-LINKS: "ALSO GREAT IN..."
   Three related guide cards below each guide.
   ============================================= */
.crosslink-section {
  background: var(--dark-base);
  padding: 48px 0 56px;
  border-top: 1px solid var(--dark-border);
}
.crosslink-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: 24px;
}
.crosslink-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.crosslink-card {
  display: block;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--dark-card);
  box-shadow: 0 2px 12px rgba(0,0,0,0.3);
  border: 1px solid var(--dark-border);
  text-decoration: none;
  transition: transform 0.3s var(--ease-out-expo), box-shadow 0.3s, border-color 0.3s;
}
.crosslink-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  text-decoration: none;
}
.crosslink-photo {
  height: 160px;
  background-size: cover;
  background-position: center;
  transition: transform 0.4s;
}
.crosslink-card:hover .crosslink-photo { transform: scale(1.05); }
.crosslink-info { padding: 14px 16px 18px; }
.crosslink-dest {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 3px;
}
.crosslink-season { font-size: 0.82rem; color: rgba(255,255,255,0.45); }

@media (max-width: 700px) {
  .crosslink-grid { grid-template-columns: 1fr; }
}


/* =============================================
   DESTINATION HUB PAGE
   Overview page per destination showing all
   seasonal and monthly guide cards.
   ============================================= */
.hub-main {
  padding: 48px 0 72px;
  background: var(--dark-surface);
}

.hub-section {
  margin-bottom: 52px;
}

.hub-section-title {
  font-family: var(--font-heading);
  font-size: 1.55rem;
  color: #fff;
  margin-bottom: 6px;
}

.hub-section-sub {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.45);
  margin-bottom: 22px;
}

/* ---- Seasonal guide cards ---- */
.hub-seasonal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 18px;
}

.hub-guide-card {
  display: block;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--dark-card);
  box-shadow: 0 2px 12px rgba(0,0,0,0.3);
  border: 1px solid var(--dark-border);
  text-decoration: none;
  transition: transform 0.3s var(--ease-out-expo), box-shadow 0.3s, border-color 0.3s;
  position: relative;
}
.hub-guide-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease-out-expo);
  z-index: 1;
}
.hub-guide-card:hover::before { transform: scaleX(1); }
.hub-guide-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 36px rgba(0,0,0,0.4), 0 0 0 1px rgba(200,169,110,0.2);
  border-color: rgba(200,169,110,0.25);
  text-decoration: none;
}
.hub-guide-photo {
  height: 180px;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s var(--ease-out-expo);
}
.hub-guide-card:hover .hub-guide-photo { transform: scale(1.06); }

.hub-guide-info { padding: 16px 18px 20px; }
.hub-guide-badge {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin-bottom: 6px;
}
.hub-guide-season {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 3px;
}
.hub-guide-months {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.45);
  margin-bottom: 12px;
}
.hub-guide-cta {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gold);
}

/* ---- Monthly grid ---- */
.hub-month-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.hub-month-card {
  display: block;
  padding: 20px 12px;
  border-radius: var(--radius-md);
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  text-align: center;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  transition: background 0.25s var(--ease-out-expo), border-color 0.25s, transform 0.25s var(--ease-out-expo), box-shadow 0.25s;
}
.hub-month-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.75);
  transition: color 0.2s;
}

@media (max-width: 900px) {
  .hub-month-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .hub-seasonal-grid { grid-template-columns: repeat(2, 1fr); }
  .hub-month-grid    { grid-template-columns: repeat(3, 1fr); }
  .hub-section-title { font-size: 1.25rem; }
  .hub-main { padding: 32px 0 56px; }
}
@media (max-width: 400px) {
  .hub-seasonal-grid { grid-template-columns: 1fr; }
  .hub-month-grid    { grid-template-columns: repeat(2, 1fr); }
}


/* =============================================
   MONTH NAVIGATION BAR (guide pages)
   Sticky bar below the fixed navbar showing
   all 12 months; active month is highlighted.
   ============================================= */
.month-nav {
  position: sticky;
  top: 64px; /* matches navbar height */
  z-index: 90;
  background: rgba(22, 27, 34, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--dark-border);
  box-shadow: 0 2px 12px rgba(0,0,0,0.2);
}
.month-nav-inner {
  display: flex;
  gap: 2px;
  padding: 8px 0;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.month-nav-inner::-webkit-scrollbar { display: none; }
.month-nav-pill {
  flex-shrink: 0;
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}
.month-nav-pill:hover {
  color: var(--gold);
  background: rgba(200,169,110,0.1);
  text-decoration: none;
}
.month-nav-pill.active {
  background: var(--gold);
  color: var(--dark-base);
}


/* =============================================
   TRIP HIGHLIGHTS STRIP
   Compact key-stats summary inside the article,
   directly after the guide h1 title.
   ============================================= */
.dest-highlights {
  border-top: 1px solid rgba(0,0,0,0.08);
  border-bottom: 1px solid rgba(0,0,0,0.08);
  padding: 10px 0;
  margin: 4px 0 4px;
}
#dest-highlights + h2 {
  margin-top: 20px;
}
.dest-highlights-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 0;
}
.dest-highlights-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.82rem;
  color: #6b7280;
  white-space: nowrap;
}
.dest-highlights-item strong {
  color: #1e293b;
  font-weight: 600;
}
.dest-highlights-sep {
  color: rgba(0,0,0,0.18);
  font-size: 0.65rem;
  margin: 0 6px;
}

@media (max-width: 640px) {
  .dest-highlights-inner { gap: 4px; }
  .dest-highlights-item { font-size: 0.75rem; }
  .dest-highlights-sep { margin: 0 3px; }
}


/* =============================================
   AD SLOTS
   ============================================= */
.ad-slot { padding: 16px 0; text-align: center; }
.ad-placeholder {
  min-height: 90px; background: var(--bg-light);
  border: 1px dashed var(--border); border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-light); font-size: 0.8rem; padding: 12px;
}
.ad-mid { background: var(--dark-surface); padding: 24px 0; }
/* Dark ad placeholders on homepage */
body:not(.dest-page) .ad-placeholder {
  background: var(--dark-card);
  border-color: var(--dark-border);
  color: rgba(255,255,255,0.3);
}
/* Light ad styles for guide/hub pages */
.dest-page .ad-mid { background: var(--bg-light); }


/* =============================================
   FOOTER — UPDATED
   ============================================= */
.footer-inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
}
.footer-brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-heading); font-size: 1.2rem; color: white;
}
.footer-copy { font-size: 0.88rem; }
.footer-links { margin-top: 12px; display: flex; gap: 24px; justify-content: center; }
.footer-links a { color: rgba(255,255,255,0.55); font-size: 0.82rem; text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: #C8A96E; }


/* =============================================
   RESULTS PAGE — SEARCH BAR AT TOP
   ============================================= */
.results-page { background: var(--bg-light); }

.results-search-bar {
  background: var(--primary); padding: 16px 0;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}
.results-search-form {
  display: flex; gap: 10px; align-items: center;
}
.results-search-input {
  flex: 1; padding: 11px 18px; border: none; border-radius: 100px;
  font-size: 0.97rem; font-family: var(--font-body); color: var(--text-dark);
  outline: none; box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}
.results-search-btn {
  padding: 11px 24px; border: 2px solid rgba(255,255,255,0.7);
  background: transparent; color: white; border-radius: 100px;
  font-size: 0.95rem; font-weight: 600; cursor: pointer;
  font-family: var(--font-body); transition: background 0.2s;
  white-space: nowrap;
}
.results-search-btn:hover { background: rgba(255,255,255,0.15); }


/* =============================================
   RESULTS PAGE — HEADER
   ============================================= */
.results-header {
  background: white; border-bottom: 1px solid var(--border);
  padding: 36px 0 28px;
}
.results-label {
  font-size: 0.82rem; font-weight: 600; color: var(--text-light);
  text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 6px;
}
.results-query {
  font-family: var(--font-heading); font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--text-dark); margin-bottom: 18px; line-height: 1.3;
}
.results-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Action buttons (Share, Back) */
.action-btn {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--bg-light); color: var(--text-mid);
  border: 1.5px solid var(--border); border-radius: 100px;
  padding: 8px 18px; font-size: 0.88rem; font-weight: 500;
  cursor: pointer; transition: all 0.2s; font-family: var(--font-body);
  text-decoration: none;
}
.action-btn:hover { border-color: var(--primary); color: var(--primary); text-decoration: none; }
.action-btn-outline { background: transparent; }


/* =============================================
   RESULTS PAGE — MAIN LAYOUT
   ============================================= */
.results-body { padding: 36px 0 60px; }

.results-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 32px; align-items: flex-start;
}

/* The main article with AI content */
.results-content {
  background: white; border-radius: var(--radius-lg);
  padding: 44px 48px; box-shadow: var(--shadow-md);
  border: 1px solid var(--border); line-height: 1.85;
  min-height: 400px;
}

/* Loading placeholder shown before content arrives */
.results-loading { text-align: center; padding: 80px 0; color: var(--text-light); }
.loading-spinner {
  width: 38px; height: 38px; margin: 0 auto 16px;
  border: 3px solid var(--border); border-top-color: var(--primary);
  border-radius: 50%; animation: spin 0.8s linear infinite;
}

/* Markdown formatting inside the results article */
.results-content h1 {
  font-family: var(--font-heading); color: var(--primary);
  font-size: 1.9rem; margin-bottom: 20px; padding-bottom: 12px;
  border-bottom: 2px solid var(--border);
}
.results-content h2 {
  font-family: var(--font-heading); color: var(--primary);
  font-size: 1.4rem; margin: 36px 0 14px; padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.results-content h3 {
  color: var(--text-dark); font-size: 1.05rem; font-weight: 700;
  margin: 22px 0 10px;
}
.results-content p  { color: var(--text-mid); margin-bottom: 14px; }
.results-content ul,
.results-content ol { margin: 0 0 16px 24px; }
.results-content li { color: var(--text-mid); margin-bottom: 7px; line-height: 1.65; }
.results-content strong { color: var(--text-dark); font-weight: 600; }
.results-content hr { border: none; border-top: 1px solid var(--border); margin: 28px 0; }
.results-content a  { color: var(--primary); }


/* =============================================
   RESULTS PAGE — SIDEBAR
   ============================================= */
.results-sidebar { display: flex; flex-direction: column; gap: 20px; }

.sidebar-card {
  background: white; border-radius: var(--radius-md);
  padding: 22px 24px; border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.sidebar-title {
  font-size: 0.82rem; font-weight: 700; color: var(--text-mid);
  text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 14px;
}
.sidebar-links { display: flex; flex-direction: column; gap: 2px; }
.sidebar-links a {
  color: var(--text-mid); font-size: 0.88rem; padding: 6px 0;
  border-bottom: 1px solid var(--border); display: block;
  transition: color 0.15s; text-decoration: none;
}
.sidebar-links a:last-child { border-bottom: none; }
.sidebar-links a:hover { color: var(--primary); }

.sidebar-quick-links { display: flex; flex-wrap: wrap; gap: 7px; }
.sidebar-quick-btn {
  background: var(--bg-light); border: 1px solid var(--border);
  color: var(--text-mid); padding: 6px 12px; border-radius: 100px;
  font-size: 0.78rem; font-weight: 500; cursor: pointer;
  transition: all 0.15s; font-family: var(--font-body);
}
.sidebar-quick-btn:hover { border-color: var(--primary); color: var(--primary); background: white; }


/* =============================================
   RESPONSIVE — NEW COMPONENTS
   ============================================= */
@media (max-width: 900px) {
  .results-layout { grid-template-columns: 1fr; }
  .results-sidebar { display: none; } /* Hide sidebar on mobile for cleaner reading */
  .dest-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .hero-quick-links { gap: 6px; }
  .example-pill { font-size: 0.78rem; padding: 6px 14px; }
  .results-content { padding: 24px 20px; }
  .dest-grid { grid-template-columns: 1fr; }
  .results-actions { flex-direction: column; }
  .footer-inner { flex-direction: column; text-align: center; }
}


/* =============================================
   DESTINATION PAGE
   Styles for destination.html — the shared
   template used by all 33 pre-built pages.
   ============================================= */

/* ---- Hero ---- */
.dest-hero {
  position: relative;
  height: 62vh;
  min-height: 420px;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-color: var(--dark-base); /* fallback if hero image fails to load */
  display: flex;
  align-items: flex-end;
}

.dest-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.35) 50%, rgba(0,0,0,0.72) 100%);
}

.dest-hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px 40px;
}

/* Breadcrumb nav inside the hero */
.dest-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 16px;
  font-size: 0.82rem;
  font-family: var(--font-body);
}

.dest-breadcrumb a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  transition: color 0.2s;
}

.dest-breadcrumb a:hover { color: white; }

.dest-breadcrumb span,
.breadcrumb-sep {
  color: rgba(255,255,255,0.5);
}

/* Season badge — accent-coloured pill in the hero, injected by JS */
.hero-season-badge {
  display: inline-block;
  padding: 5px 16px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  background: var(--dest-accent);
  border-radius: 100px;
  margin-bottom: 14px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.dest-hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 5.5vw, 3.6rem);
  font-weight: 700;
  color: white;
  line-height: 1.12;
  margin-bottom: 14px;
  text-shadow: 0 2px 16px rgba(0,0,0,0.55), 0 4px 32px rgba(0,0,0,0.3);
}

/* Gold accent line under guide title */
.dest-hero-title::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  background: var(--gold);
  border-radius: 2px;
  margin-top: 14px;
}

.dest-hero-months {
  font-family: var(--font-body);
  font-size: 1rem;
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.03em;
}

/* ---- Main layout ---- */
.dest-main {
  background: var(--dark-surface);
  padding: 24px 0 80px;
}

.dest-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 32px;
  align-items: start;
}

/* ---- Article (left column) ---- */
.dest-article {
  background: var(--article-bg, white);
  border-radius: var(--radius-md);
  box-shadow: 0 2px 16px rgba(0,0,0,0.12), 0 8px 32px rgba(0,0,0,0.08);
  min-height: 400px;
  overflow: hidden;
  border-top: none; /* removed — At a Glance dark card acts as the header */
}

/* Loading state — three-dot pulse on dark surface */
.dest-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 40px;
  gap: 20px;
  text-align: center;
  background: var(--dark-card);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

/* Three pulsing dots */
.dest-loading-dots {
  display: flex;
  gap: 10px;
  align-items: center;
}

.dest-loading-dots span {
  display: block;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--gold);
  animation: dotPulse 1.4s ease-in-out infinite;
}
.dest-loading-dots span:nth-child(1) { animation-delay: 0s;   }
.dest-loading-dots span:nth-child(2) { animation-delay: 0.2s; }
.dest-loading-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes dotPulse {
  0%, 80%, 100% { transform: scale(0.55); opacity: 0.35; }
  40%            { transform: scale(1);   opacity: 1; }
}

.dest-loading-text {
  font-family: var(--font-body);
  font-size: 1rem;
  color: rgba(255,255,255,0.8);
  font-weight: 500;
  letter-spacing: 0.01em;
}

.dest-loading-sub {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.35);
}

/* Guide content — fades in once rendered */
@keyframes contentFadeIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
.guide-content.content-loaded {
  animation: contentFadeIn 0.6s var(--ease-out-expo) both;
}

/* Guide content — rendered from AI markdown */
.guide-content {
  padding: 40px 48px;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-dark);
}

.guide-content h1 {
  font-family: var(--font-heading);
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--dest-accent);
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--dest-accent);
}

.guide-content h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-top: 48px;
  margin-bottom: 16px;
  padding-top: 16px;
  border-top: 2px solid var(--dest-accent);
  padding-left: 0;
  border-left: none;
}

.guide-content h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--dest-accent);
  margin-top: 20px;
  margin-bottom: 10px;
}

.guide-content p {
  margin-bottom: 16px;
  line-height: 1.82;
  color: var(--text-mid);
}

.guide-content ul,
.guide-content ol {
  padding-left: 22px;
  margin-bottom: 16px;
}

.guide-content li {
  margin-bottom: 8px;
  color: var(--text-mid);
}

.guide-content strong {
  color: var(--text-dark);
  font-weight: 600;
}

.guide-content em {
  color: var(--text-light);
}

.guide-content hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 28px 0;
}

/* Phrases table — used in the Essential Local Phrases section */
.guide-content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
  font-size: 0.95rem;
  table-layout: fixed; /* distributes columns evenly */
}

.guide-content th {
  text-align: left;
  padding: 10px 32px 10px 0;
  font-weight: 700;
  color: var(--text-dark);
  border-bottom: 2px solid var(--dest-accent);
  white-space: nowrap;
  width: 33.3%;
}

.guide-content td {
  padding: 10px 32px 10px 0;
  color: var(--text-mid);
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  word-break: break-word;
}

.guide-content tr:last-child td {
  border-bottom: none;
}

/* Zebra striping on the phrases table */
.guide-content tbody tr:nth-child(even) td {
  background: rgba(0, 0, 0, 0.025);
}

/* ======================================================== */
/* AT A GLANCE CARD                                         */
/* Sits at the top of each guide with instant key facts.    */
/* Uses visual components (month pills, crowd bar, etc.)    */
/* rather than plain text wherever the data supports it.    */
/* ======================================================== */

.at-a-glance {
  padding: 28px 48px 32px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  background: var(--dark-card);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.at-a-glance-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}

/* Dark At a Glance labels + values */
.at-a-glance .glance-label {
  color: rgba(255,255,255,0.45);
}
.at-a-glance .glance-value {
  color: #E6EDF3;
}
/* Override crowd + temp text inside At a Glance */
.at-a-glance .temp-value-text,
.at-a-glance .crowd-bar-label,
.at-a-glance .budget-tier-label {
  color: rgba(255,255,255,0.85);
}
.at-a-glance .temp-bar-labels {
  color: rgba(255,255,255,0.35);
}
.at-a-glance .crowd-context {
  color: rgba(255,255,255,0.3);
}
/* crowd-info tooltip inherits dark styles automatically */
.at-a-glance .month-pill.inactive {
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.25);
}

/* Two-row grid: top row full-width (months), bottom row 3 cols */
.glance-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px 32px;
}

/* Best Months row spans all 3 columns */
.glance-item-full { grid-column: 1 / -1; }

.glance-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.glance-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-light);
}

.glance-value {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-dark);
  font-family: var(--font-body);
  line-height: 1.3;
}

/* ---- Best Months pill strip ---- */
/* 12 abbreviated month labels; recommended ones highlighted */
.month-strip {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.month-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 28px;
  border-radius: 4px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  font-family: var(--font-body);
  transition: transform 0.15s;
}

.month-pill.active {
  background: var(--dest-accent);
  color: white;
}

.month-pill.inactive {
  background: #e2e8f0;
  color: #94a3b8;
}

/* ---- Temperature bar ---- */
/* Horizontal gradient from blue (cold) to red (hot).       */
/* A coloured range indicator shows this destination's span.*/
.temp-bar-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.temp-bar {
  position: relative;
  height: 8px;
  border-radius: 4px;
  background: linear-gradient(to right, #3b82f6 0%, #22c55e 40%, #f59e0b 65%, #ef4444 100%);
  overflow: visible;
}

.temp-range-marker {
  position: absolute;
  top: -2px;
  height: 12px;
  border-radius: 3px;
  background: var(--dest-accent);
  opacity: 0.85;
}

.temp-bar-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.65rem;
  color: var(--text-light);
  font-family: var(--font-body);
}

.temp-value-text {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-dark);
  font-family: var(--font-body);
}

/* ---- Budget tier scale ---- */
/* Filled/unfilled squares on a 1–4 scale.                  */
.budget-scale {
  display: flex;
  align-items: center;
  gap: 3px;
}

.budget-pip {
  width: 14px;
  height: 14px;
  border-radius: 2px;
  background: var(--dest-accent);
  opacity: 0.2;
  transition: opacity 0.15s;
}

.budget-pip.filled { opacity: 1; }

.budget-tier-label {
  margin-left: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-mid);
  font-family: var(--font-body);
}

/* ---- Crowd level bar ---- */
/* 4-segment horizontal bar; active segment is full-colour. */
.crowd-bar {
  display: flex;
  gap: 3px;
  height: 10px;
  border-radius: 5px;
  overflow: hidden;
}

.crowd-seg {
  flex: 1;
  border-radius: 2px;
  opacity: 0.18;
  transition: opacity 0.15s;
}

.crowd-seg.active { opacity: 1; }
.crowd-seg.crowd-low    { background: #22c55e; }
.crowd-seg.crowd-medium { background: #f59e0b; }
.crowd-seg.crowd-high   { background: #f97316; }
.crowd-seg.crowd-very-high { background: #ef4444; }

.crowd-bar-label {
  font-size: 0.82rem;
  font-weight: 600;
  font-family: var(--font-body);
  margin-top: 2px;
}

.crowd-bar-label.crowd-low       { color: #16a34a; }
.crowd-bar-label.crowd-medium    { color: #b45309; }
.crowd-bar-label.crowd-high      { color: #ea580c; }
.crowd-bar-label.crowd-very-high { color: #dc2626; }

/* Universal "compared to peak season" clarifier under every crowd bar */
.crowd-context {
  font-size: 0.72rem;
  color: #94a3b8;
  font-style: italic;
  margin: 3px 0 0 0;
  line-height: 1.3;
}

/* Info icon + tooltip for crowd notes (replaces old .crowd-note block) */
.crowd-info-trigger {
  position: relative;
  display: inline-flex;
  align-items: center;
  cursor: help;
  margin-left: 4px;
  vertical-align: middle;
  color: rgba(255,255,255,0.4);
  transition: color 0.2s;
}
.crowd-info-trigger:hover,
.crowd-info-trigger:focus {
  color: var(--gold);
  outline: none;
}
.crowd-info-trigger svg { width: 14px; height: 14px; flex-shrink: 0; }

/* Tooltip — positioned above the icon */
.crowd-info-tip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  width: 240px;
  padding: 10px 14px;
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 400;
  line-height: 1.5;
  color: rgba(255,255,255,0.85);
  background: var(--dark-base);
  border: 1px solid var(--dark-border);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.45);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
  pointer-events: none;
  z-index: 10;
}
/* Arrow */
.crowd-info-tip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: var(--dark-base);
}

/* Show on hover / focus (tap on mobile) */
.crowd-info-trigger:hover .crowd-info-tip,
.crowd-info-trigger:focus .crowd-info-tip,
.crowd-info-trigger:focus-within .crowd-info-tip {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

@media (max-width: 700px) {
  .glance-grid { grid-template-columns: repeat(2, 1fr); gap: 20px 16px; }
  .at-a-glance { padding: 20px 24px 24px; }
  .month-pill { width: 30px; height: 24px; font-size: 0.62rem; }
}


/* ---- Section images ---- */
/* Full-bleed photos injected after Activities and Food headings. */
/* Negative margins counteract guide-content padding so images    */
/* stretch edge-to-edge inside the card. 16:9 aspect ratio via   */
/* padding-top trick ensures the photo shows as composed —        */
/* no arbitrary cropping at odd fixed heights.                    */
.section-image {
  margin: 4px -48px 36px;
  padding: 0;
}

/* 16:9 aspect ratio container — height scales with width */
.section-image-ratio {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 9 / 16 = 0.5625 */
  overflow: hidden;
}

.section-image-ratio img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 4px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}

.section-image figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 28px 16px 10px;
  font-size: 0.78rem;
  font-variant: small-caps;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.92);
  background: linear-gradient(to top, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.2) 60%, transparent 100%);
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

@media (max-width: 700px) {
  .section-image { margin: 4px -24px 28px; }
  .section-image figcaption { padding: 24px 12px 8px; font-size: 0.72rem; }
}


/* ---- Blockquote callout boxes ---- */
/* When the guide uses > markdown syntax, render as a      */
/* clean editorial callout — no emoji, text label only.   */
.guide-content blockquote {
  margin: 24px 0;
  padding: 14px 20px;
  border-left: 4px solid var(--dest-accent);
  background: #f8f9fa;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.guide-content blockquote p {
  margin: 0;
  color: var(--text-dark);
  font-size: 0.92rem;
  line-height: 1.6;
}



/* ---- Sidebar (right column) ---- */
.dest-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: 84px; /* 64px navbar + 20px breathing room */
}

/* Dark sidebar cards */
.dest-sidebar .sidebar-card {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-top: 3px solid var(--dest-accent);
}

/* White title text on dark cards */
.dest-sidebar .sidebar-title {
  color: rgba(255,255,255,0.45);
}

/* Sidebar season links — full-width with spacing */
.dest-sidebar .sidebar-links a {
  padding: 11px 6px;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  border-bottom-color: var(--dark-border);
  border-left: 2px solid transparent;
  padding-left: 10px;
  transition: color 0.15s, border-color 0.15s, padding-left 0.15s;
}
.dest-sidebar .sidebar-links a:last-child {
  border-bottom: none;
}
.dest-sidebar .sidebar-links a:hover {
  color: var(--gold);
}

/* Active section highlight — set by JS scroll listener */
.dest-sidebar .sidebar-links a.active {
  color: var(--gold);
  font-weight: 600;
  border-left-color: var(--gold);
}

/* Browse all / share buttons — dark outline style */
.dest-sidebar .action-btn {
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.75);
  border-color: var(--dark-border);
}
.dest-sidebar .action-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(200,169,110,0.08);
  text-decoration: none;
}

/* Sidebar search */
.sidebar-search-input {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text-dark);
  background: var(--bg-light);
  margin-bottom: 10px;
  transition: border-color 0.2s;
}

.sidebar-search-input:focus {
  outline: none;
  border-color: var(--dest-accent);
  background: white;
}

.sidebar-search-btn {
  width: 100%;
  padding: 10px 16px;
  background: var(--dest-accent);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.sidebar-search-btn:hover { background: var(--dest-accent-light); }

/* Share guide button on destination pages */
.dest-sidebar .action-btn:hover {
  border-color: var(--dest-accent);
  color: var(--dest-accent);
}

/* ---- Responsive ---- */
@media (max-width: 960px) {
  .dest-layout {
    grid-template-columns: 1fr;
  }
  .dest-sidebar {
    position: static;
    /* Sidebar goes below the article on narrow screens */
  }
  .dest-hero-content {
    padding: 0 20px 32px;
  }
}

@media (max-width: 640px) {
  .guide-content {
    padding: 28px 20px;
  }
  .dest-hero {
    height: 44vh;
    min-height: 260px;
    /* background-attachment: fixed breaks on iOS Safari */
    background-attachment: scroll;
  }
  .dest-breadcrumb { display: none; }
  /* Sidebar cards — full width, tighter padding */
  .sidebar-card { padding: 18px 16px; }
  /* Loading dots — tighter on phones */
  .dest-loading { padding: 56px 24px; }
}

/* Disable parallax on all touch/pointer-coarse devices (tablets, phones) */
@media (pointer: coarse) {
  .dest-hero { background-attachment: scroll; }
}


/* =============================================
   SCROLL REVEAL SYSTEM (Batch 2)
   Elements start invisible + shifted down.
   IntersectionObserver in app.js adds .revealed
   when they enter the viewport, triggering the
   transition. Stagger classes delay grid items.
   ============================================= */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity  0.7s var(--ease-out-expo),
    transform 0.7s var(--ease-out-expo);
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays for grid items */
.reveal-delay-1 { transition-delay: 0.05s; }
.reveal-delay-2 { transition-delay: 0.12s; }
.reveal-delay-3 { transition-delay: 0.19s; }
.reveal-delay-4 { transition-delay: 0.26s; }


/* =============================================
   NAV LINK ANIMATED UNDERLINE
   A gold line grows from the left on hover.
   ============================================= */
.nav-link {
  position: relative;
  padding-bottom: 2px;
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%; height: 1.5px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease-out-expo);
}
.nav-link:hover::after { transform: scaleX(1); }


/* =============================================
   BUTTON PRESS FEEDBACK
   Cards, pills and buttons give a satisfying
   0.97 scale press on :active.
   ============================================= */
.example-pill:active,
.dest-info .month-pill:active,
.hub-month-card:active,
.hub-guide-card:active,
.crosslink-card:active,
.dest-card:active,
.action-btn:active {
  transform: scale(0.97) !important;
  transition-duration: 0.08s !important;
}


/* =============================================
   SHARE BUTTON — "COPIED!" FEEDBACK
   ============================================= */
.action-btn.share-copied {
  background: rgba(200,169,110,0.15) !important;
  border-color: var(--gold) !important;
  color: var(--gold) !important;
  animation: sharePop 0.35s var(--ease-out-expo);
}

@keyframes sharePop {
  0%   { transform: scale(1); }
  45%  { transform: scale(1.06); }
  100% { transform: scale(1); }
}


/* =============================================
   ENHANCED CARD HOVERS
   Gold glow on dest-card already done in Batch 1.
   Cross-link cards get the same treatment here.
   ============================================= */
.crosslink-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(0,0,0,0.35), 0 0 0 1px rgba(200,169,110,0.18);
  border-color: rgba(200,169,110,0.22) !important;
  text-decoration: none;
}
.hub-guide-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(0,0,0,0.35);
}
.hub-month-card:hover {
  background: var(--gold) !important;
  border-color: var(--gold) !important;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(200,169,110,0.25);
}
.hub-month-card:hover .hub-month-name { color: var(--dark-base) !important; }


/* =============================================
   REDUCED MOTION — ACCESSIBILITY
   Disables all animations and transitions for
   users who prefer reduced motion (OS setting).
   ============================================= */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .hero-eyebrow,
  .hero-title,
  .hero-subtitle,
  .hero-quick-links {
    animation: none;
    opacity: 1;
    transform: none;
  }
  /* Floating cards: slow the drift down rather than killing it entirely */
  .fc-inner { animation-duration: 12s !important; }
  .hero-float-card { transition-duration: 1.5s !important; }
  /* New Batch 6 animations */
  .dest-loading-dots span { animation: none; opacity: 1; transform: none; }
  .guide-content.content-loaded { animation: none; opacity: 1; transform: none; }
  .action-btn.share-copied { animation: none; }
  .crowd-info-tip { transition: none; }
  /* Scroll-reveal entrance animations — kill these to prevent motion sickness */
  .reveal, .reveal * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
