/* ============ Kauai Trip — Design System ============ */
:root {
  --ocean-deep: #003a5c;
  --ocean: #0077a3;
  --ocean-light: #4dbbd5;
  --sand: #f5e6c8;
  --sand-dark: #d9bb86;
  --jungle: #2d5e3e;
  --jungle-light: #6ba368;
  --sunset: #ff7a59;
  --sunset-deep: #e85a3c;
  --lava: #8b1e1e;
  --ink: #1a2330;
  --ink-soft: #4a5566;
  --paper: #fbfaf6;
  --paper-2: #f3efe6;
  --line: #e3ddcf;
  --shadow-sm: 0 2px 8px rgba(0, 58, 92, 0.08);
  --shadow-md: 0 8px 24px rgba(0, 58, 92, 0.12);
  --shadow-lg: 0 20px 60px rgba(0, 58, 92, 0.18);
  --radius: 14px;
  --radius-lg: 22px;
  --maxw: 1200px;
  --font-display: 'Noto Serif SC', 'Playfair Display', 'Georgia', serif;
  --font-body: 'Noto Sans SC', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--ocean); text-decoration: none; }
a:hover { color: var(--sunset-deep); }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.2; color: var(--ink); }
h1 { font-size: clamp(2.4rem, 5vw, 4.4rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); margin-bottom: 0.5em; }
h3 { font-size: 1.4rem; margin-bottom: 0.4em; }
p { margin-bottom: 1em; color: var(--ink-soft); }

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

/* ============ NAV ============ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(251, 250, 246, 0.85);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 14px 24px;
  display: flex; justify-content: space-between; align-items: center;
}
.nav-logo { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; color: var(--ocean-deep); }
.nav-logo span { color: var(--sunset); }
.nav-links { display: flex; gap: 6px; flex-wrap: wrap; }
.nav-links a {
  padding: 6px 12px; border-radius: 999px; font-size: 0.85rem; font-weight: 500;
  color: var(--ink-soft); transition: all 0.2s;
}
.nav-links a:hover, .nav-links a.active { background: var(--ocean-deep); color: white; }

/* ============ HERO ============ */
.hero {
  min-height: 100vh; position: relative; display: flex; align-items: center; justify-content: center;
  overflow: hidden; color: white; text-align: center;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(135deg, #003a5c 0%, #0077a3 50%, #ff7a59 100%);
}
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background-image: url('https://images.unsplash.com/photo-1542259009477-d625272157b7?w=1920');
  background-size: cover; background-position: center;
  opacity: 0.55; mix-blend-mode: overlay;
}
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.5) 100%); z-index: 1; }
.hero-content { position: relative; z-index: 2; padding: 0 24px; max-width: 900px; }
.hero h1 { color: white; text-shadow: 0 4px 30px rgba(0,0,0,0.4); margin-bottom: 0.3em; }
.hero .subtitle {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(1.1rem, 2vw, 1.6rem);
  color: white;
  opacity: 1;
  margin-bottom: 1.5em;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.6);
  letter-spacing: 0.04em;
}
.hero .dates { display: inline-block; padding: 8px 20px; border: 1px solid rgba(255,255,255,0.4); border-radius: 999px; font-size: 0.95rem; letter-spacing: 0.1em; backdrop-filter: blur(8px); }
.hero-scroll {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); z-index: 2;
  color: white; font-size: 0.8rem; letter-spacing: 0.2em; opacity: 0.8;
  animation: bounce 2s infinite;
}
@keyframes bounce { 0%, 100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(8px); } }

/* ============ SECTIONS ============ */
section { padding: 80px 0; }
.section-eyebrow { color: var(--sunset); font-size: 0.85rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 8px; display: block; }
.section-title { margin-bottom: 12px; }
.section-lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 680px; margin-bottom: 40px; }

/* ============ STATS ============ */
.stats { background: var(--paper-2); padding: 60px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 32px; }
.stat { text-align: center; }
.stat-num { font-family: var(--font-display); font-size: 3rem; font-weight: 700; color: var(--ocean-deep); line-height: 1; }
.stat-label { font-size: 0.9rem; color: var(--ink-soft); margin-top: 6px; letter-spacing: 0.05em; }

/* ============ DAY CARDS ============ */
.days-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; }
.day-card {
  background: white; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: all 0.3s ease;
  display: flex; flex-direction: column;
  border: 1px solid var(--line);
}
.day-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.day-card-img {
  height: 220px; background-size: cover; background-position: center; position: relative;
}
.day-card-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.5) 100%); }
.day-card-num {
  position: absolute; top: 16px; left: 16px; z-index: 2;
  background: rgba(255,255,255,0.95); color: var(--ocean-deep);
  font-family: var(--font-display); font-size: 1.6rem; font-weight: 700;
  width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-sm);
}
.day-card-intensity {
  position: absolute; top: 20px; right: 16px; z-index: 2;
  font-size: 0.75rem; padding: 4px 10px; border-radius: 999px;
  background: rgba(255,255,255,0.95); font-weight: 600;
}
.intensity-chill { color: var(--jungle); }
.intensity-mod { color: #b87a00; }
.intensity-hard { color: var(--sunset-deep); }
.intensity-extreme { color: var(--lava); }
.day-card-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.day-card-date { font-size: 0.8rem; color: var(--ink-soft); letter-spacing: 0.1em; text-transform: uppercase; }
.day-card-title { margin: 6px 0 12px; font-size: 1.35rem; }
.day-card-desc { color: var(--ink-soft); font-size: 0.95rem; flex: 1; }
.day-card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.tag { font-size: 0.75rem; padding: 3px 10px; background: var(--paper-2); border-radius: 999px; color: var(--ink-soft); }
.day-card-cta { margin-top: 18px; font-weight: 600; color: var(--ocean); display: inline-flex; align-items: center; gap: 4px; }
.day-card-cta::after { content: '→'; transition: transform 0.2s; }
.day-card:hover .day-card-cta::after { transform: translateX(4px); }

/* ============ MAP ============ */
.map-wrap {
  position: relative; height: 520px; border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-md); border: 1px solid var(--line);
}
.map-wrap.tall { height: 620px; }
#map, .map-el { width: 100%; height: 100%; }
.leaflet-popup-content-wrapper { border-radius: 10px; }
.leaflet-popup-content { font-family: var(--font-body); font-size: 0.9rem; }
.popup-title { font-weight: 700; color: var(--ocean-deep); margin-bottom: 4px; }
.popup-time { font-size: 0.8rem; color: var(--sunset-deep); }

/* ============ DAY PAGE HERO ============ */
.day-hero {
  height: 70vh; min-height: 480px; position: relative; color: white;
  display: flex; align-items: flex-end; padding-bottom: 60px;
  margin-top: 0;
}
.day-hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; z-index: 0; }
.day-hero-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.75) 100%); }
.day-hero-content { position: relative; z-index: 1; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; width: 100%; }
.day-hero .day-num { font-family: var(--font-display); font-size: 1rem; opacity: 0.9; letter-spacing: 0.3em; text-transform: uppercase; }
.day-hero h1 { color: white; margin: 8px 0 12px; }
.day-hero .day-date { opacity: 0.9; font-size: 1.1rem; margin-bottom: 16px; }
.day-hero-meta { display: flex; gap: 20px; flex-wrap: wrap; font-size: 0.9rem; opacity: 0.95; }
.day-hero-meta span::before { content: ''; display: inline-block; width: 6px; height: 6px; background: white; border-radius: 50%; margin-right: 8px; vertical-align: middle; }

/* ============ TIMELINE ============ */
.timeline { position: relative; padding-left: 36px; }
.timeline::before {
  content: ''; position: absolute; left: 12px; top: 8px; bottom: 8px;
  width: 2px; background: linear-gradient(180deg, var(--ocean) 0%, var(--sunset) 100%);
}
.tl-item { position: relative; padding-bottom: 32px; }
.tl-item::before {
  content: ''; position: absolute; left: -30px; top: 6px; width: 14px; height: 14px;
  background: white; border: 3px solid var(--ocean); border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(0, 119, 163, 0.15);
}
.tl-item.warning::before { border-color: var(--sunset-deep); box-shadow: 0 0 0 4px rgba(232, 90, 60, 0.18); }
.tl-time { font-weight: 700; color: var(--ocean-deep); font-size: 0.95rem; letter-spacing: 0.02em; }
.tl-title { font-size: 1.15rem; font-weight: 600; margin: 4px 0 6px; color: var(--ink); }
.tl-desc { color: var(--ink-soft); font-size: 0.95rem; }
.tl-warn {
  margin-top: 10px; padding: 10px 14px; background: #fff5f0;
  border-left: 3px solid var(--sunset-deep); border-radius: 6px;
  font-size: 0.88rem; color: var(--ink);
}
.tl-warn strong { color: var(--sunset-deep); }
.tl-img {
  width: 100%; max-width: 460px; aspect-ratio: 16/10; object-fit: cover;
  border-radius: var(--radius); margin-top: 12px;
  box-shadow: var(--shadow-sm); border: 1px solid var(--line);
  transition: transform 0.3s ease;
}
.tl-img:hover { transform: scale(1.01); box-shadow: var(--shadow-md); }

/* SPOTLIGHTS */
.spotlights {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px 32px;
  margin-top: 24px;
  max-width: 1080px;
  margin-left: auto;
  margin-right: auto;
}
.spotlight {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.spotlight:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.spotlight-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
  display: block;
}
.spotlight-body {
  padding: 24px 28px 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.spotlight-subtitle {
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sunset);
  font-weight: 700;
  margin-bottom: 8px;
}
.spotlight-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 12px 0;
  line-height: 1.25;
}
.spotlight-blurb {
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.7;
  margin: 0;
}
@media (max-width: 900px) {
  .spotlights {
    grid-template-columns: 1fr;
    max-width: 580px;
  }
}

.tl-info {
  margin-top: 10px; padding: 10px 14px; background: #eef7fb;
  border-left: 3px solid var(--ocean); border-radius: 6px;
  font-size: 0.88rem;
}

/* ============ TWO COLUMN ============ */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; } }

/* ============ INFO CARDS ============ */
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.info-card {
  background: white; padding: 24px; border-radius: var(--radius);
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.info-card .icon { font-size: 1.6rem; margin-bottom: 10px; }
.info-card h4 { font-family: var(--font-body); font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 8px; }
.info-card p { font-size: 1rem; color: var(--ink); margin: 0; }

/* ============ GALLERY ============ */
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.gallery img { aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius); transition: transform 0.4s; }
.gallery img:hover { transform: scale(1.02); }

/* ============ CALLOUT ============ */
.callout {
  padding: 28px 32px; border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #fff5f0 0%, #ffe8de 100%);
  border-left: 5px solid var(--sunset-deep);
  margin: 32px 0;
}
.callout.ocean { background: linear-gradient(135deg, #eef7fb 0%, #d6ecf5 100%); border-left-color: var(--ocean); }
.callout.jungle { background: linear-gradient(135deg, #eef7ed 0%, #d8ecd5 100%); border-left-color: var(--jungle); }
.callout h3 { color: var(--ink); margin-bottom: 8px; }

/* ============ FOOTER ============ */
.footer {
  background: var(--ocean-deep); color: white; padding: 48px 0 32px;
  text-align: center; margin-top: 80px;
}
.footer-nav { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin: 20px 0; }
.footer-nav a { color: rgba(255,255,255,0.85); font-size: 0.9rem; }
.footer-nav a:hover { color: var(--sand); }
.footer p { color: rgba(255,255,255,0.6); font-size: 0.85rem; margin: 0; }

/* ============ DAY-NAV (prev/next at bottom of day pages) ============ */
.day-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 48px; }
.day-nav a {
  padding: 20px 24px; background: white; border: 1px solid var(--line);
  border-radius: var(--radius); display: block; transition: all 0.2s;
}
.day-nav a:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.day-nav .label { font-size: 0.75rem; letter-spacing: 0.15em; color: var(--ink-soft); text-transform: uppercase; }
.day-nav .title { font-family: var(--font-display); font-size: 1.2rem; color: var(--ink); margin-top: 4px; }
.day-nav .next { text-align: right; }

/* ============ ANIMATED ROUTE LEGEND ============ */
.route-controls {
  position: absolute; bottom: 16px; left: 16px; z-index: 400;
  background: rgba(255,255,255,0.95); padding: 10px 14px; border-radius: 10px;
  font-size: 0.85rem; box-shadow: var(--shadow-sm); display: flex; gap: 10px; align-items: center;
}
.route-controls button {
  background: var(--ocean); color: white; border: none; padding: 6px 14px;
  border-radius: 6px; font-weight: 600; cursor: pointer; font-size: 0.85rem;
}
.route-controls button:hover { background: var(--ocean-deep); }
.route-legend {
  position: absolute; top: 16px; right: 16px; z-index: 400;
  background: rgba(255,255,255,0.95); padding: 10px 14px; border-radius: 10px;
  font-size: 0.8rem; box-shadow: var(--shadow-sm); max-width: 200px;
}
.route-legend .leg { display: flex; align-items: center; gap: 8px; margin: 3px 0; }
.route-legend .swatch { width: 18px; height: 4px; border-radius: 2px; }

/* ============ RESPONSIVE ============ */
@media (max-width: 700px) {
  .nav-links a { font-size: 0.75rem; padding: 4px 8px; }
  section { padding: 56px 0; }
  .day-hero { height: 60vh; min-height: 380px; }
  .day-nav { grid-template-columns: 1fr; }
  .map-wrap { height: 420px; }
}

/* AOS-like minimal */
[data-fade] { opacity: 0; transform: translateY(20px); transition: opacity 0.7s ease, transform 0.7s ease; }
[data-fade].in { opacity: 1; transform: translateY(0); }
