/* ============================================================
   Franklin Expedition — Option 1: Hero Landing + Map Below
   Arctic dark palette · Crimson Pro display · Inter UI
   ============================================================ */

:root,
[data-theme='dark'] {
  --color-bg: #0d1117;
  --color-surface: #131920;
  --color-surface-2: #182028;
  --color-surface-offset: #1a2535;
  --color-border: #253045;
  --color-divider: #1e2d42;
  --color-text: #d4dce8;
  --color-text-muted: #7a8fa8;
  --color-text-faint: #445566;
  --color-text-inverse: #0d1117;

  --color-ice: #9ecbf0;
  --color-ice-bright: #c8e6ff;
  --color-ice-dim: #4a7ca3;
  --color-gold: #d4a843;
  --color-danger: #f87171;
  --color-violet: #a78bfa;
  --color-green: #34d399;
  --color-amber: #fbbf24;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.4);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.5);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.6);

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;

  --font-display: 'Crimson Pro', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;

  --text-xs:   clamp(0.70rem, 0.65rem + 0.20vw, 0.80rem);
  --text-sm:   clamp(0.80rem, 0.75rem + 0.25vw, 0.90rem);
  --text-base: clamp(0.90rem, 0.85rem + 0.25vw, 1.00rem);
  --text-lg:   clamp(1.00rem, 0.90rem + 0.50vw, 1.25rem);
  --text-xl:   clamp(1.25rem, 1.00rem + 0.75vw, 1.60rem);
  --text-2xl:  clamp(1.60rem, 1.20rem + 1.20vw, 2.40rem);
  --text-3xl:  clamp(2.40rem, 1.50rem + 2.50vw, 4.50rem);
  --text-hero: clamp(3.20rem, 1.50rem + 5.00vw, 7.00rem);

  --transition: 160ms cubic-bezier(0.16, 1, 0.3, 1);
  --sidebar-width: 320px;
  --map-header-height: 180px;
}

[data-theme='light'] {
  --color-bg: #f0f4f8;
  --color-surface: #ffffff;
  --color-surface-2: #f8fafc;
  --color-surface-offset: #e8eef5;
  --color-border: #c8d8e8;
  --color-divider: #dde8f2;
  --color-text: #1a2535;
  --color-text-muted: #4a6080;
  --color-text-faint: #9ab0c8;
  --color-text-inverse: #ffffff;
  --color-ice: #2563a8;
  --color-ice-bright: #1a4a8a;
  --color-ice-dim: #6090c0;
  --color-gold: #a07020;
  --color-danger: #c0392b;
  --color-violet: #6b46c1;
  --color-green: #0a7a50;
  --color-amber: #c07000;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.12);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.15);
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
}
body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  background: var(--color-bg);
  overflow-x: hidden;
  overflow-y: auto;
}
img, picture, video, canvas, svg { display: block; max-width: 100%; }
input, button, select { font: inherit; color: inherit; cursor: pointer; }
button { background: none; border: none; cursor: pointer; }

/* ══════════════════════════════════════════════
   HERO SECTION
══════════════════════════════════════════════ */
.hero {
  position: relative;
  width: 100%;
  height: 100svh;
  min-height: 560px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  scroll-snap-align: start;
}

/* Full-bleed painting */
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('franklin_banner.png');
  background-size: cover;
  background-position: center 45%;
  background-repeat: no-repeat;
  animation: hero-parallax 50s ease-in-out infinite alternate;
  transform-origin: center;
}

@keyframes hero-parallax {
  from { background-position: center 40%; transform: scale(1.04); }
  to   { background-position: center 55%; transform: scale(1.00); }
}

/* Multi-layer overlay: top nav bar darken + strong bottom vignette + centre atmospheric */
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    /* Top gradient — darkens for nav readability */
    linear-gradient(to bottom,
      rgba(8, 14, 22, 0.82) 0%,
      rgba(8, 14, 22, 0.30) 18%,
      transparent 38%
    ),
    /* Bottom vignette — fades into page bg, titles readable */
    linear-gradient(to top,
      rgba(5, 10, 18, 0.96) 0%,
      rgba(5, 10, 18, 0.70) 22%,
      rgba(5, 10, 18, 0.15) 48%,
      transparent 65%
    ),
    /* Sides vignette */
    linear-gradient(to right,
      rgba(5, 10, 18, 0.45) 0%,
      transparent 20%,
      transparent 80%,
      rgba(5, 10, 18, 0.45) 100%
    );
  pointer-events: none;
}

/* ── HERO NAV ── */
.hero-nav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-8);
  z-index: 20;
}

.hero-nav-brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: rgba(200, 230, 255, 0.9);
}

.nav-logo { color: var(--color-ice); }

.nav-site-name {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(200, 230, 255, 0.85);
}

.hero-nav-actions { display: flex; align-items: center; gap: var(--space-2); }

/* ── HERO CONTENT ── */
.hero-content {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-5);
  padding: 0 var(--space-8);
  max-width: 900px;
  /* Shift slightly upward so bottom vignette shows below */
  margin-top: -40px;
}

.hero-eyebrow {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--color-ice);
  opacity: 0.9;
}

.hero-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 0.92;
  gap: 0;
}

.hero-title-the {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 300;
  font-style: italic;
  color: rgba(200, 220, 255, 0.75);
  letter-spacing: 0.12em;
  margin-bottom: 0.1em;
}

.hero-title-main {
  font-family: var(--font-display);
  font-size: var(--text-hero);
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.01em;
  text-shadow:
    0 2px 30px rgba(0,0,0,0.9),
    0 0 80px rgba(158, 203, 240, 0.15);
  line-height: 0.93;
}

.hero-dates {
  font-size: var(--text-sm);
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(200, 220, 255, 0.65);
  margin-top: var(--space-2);
}

/* ── HERO STATS ── */
.hero-stats {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  background: rgba(8, 18, 32, 0.55);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(158, 203, 240, 0.15);
  border-radius: 999px;
  padding: var(--space-3) var(--space-8);
  margin-top: var(--space-3);
}

.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.hero-stat-num {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--color-ice);
  line-height: 1;
}

.hero-stat-label {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(200, 220, 255, 0.50);
  white-space: nowrap;
}

.hero-stat-divider {
  width: 1px;
  height: 32px;
  background: rgba(158, 203, 240, 0.20);
  flex-shrink: 0;
}

/* ── HERO CTA ── */
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-8);
  background: var(--color-ice);
  color: #0a1520;
  font-weight: 600;
  font-size: var(--text-sm);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 999px;
  box-shadow: 0 4px 24px rgba(158, 203, 240, 0.30), 0 0 0 0 rgba(158, 203, 240, 0.4);
  transition: transform 200ms ease, box-shadow 200ms ease, background 200ms ease;
  margin-top: var(--space-3);
  animation: cta-pulse 3s ease-in-out infinite;
}

@keyframes cta-pulse {
  0%, 100% { box-shadow: 0 4px 24px rgba(158,203,240,0.30), 0 0 0 0 rgba(158,203,240,0.3); }
  50%       { box-shadow: 0 4px 32px rgba(158,203,240,0.45), 0 0 0 8px rgba(158,203,240,0.0); }
}

.hero-cta:hover {
  background: var(--color-ice-bright);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(158, 203, 240, 0.45);
  animation: none;
}

/* ── SCROLL ARROW ── */
.hero-scroll-arrow {
  position: absolute;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(8, 18, 32, 0.50);
  border: 1px solid rgba(158, 203, 240, 0.25);
  color: rgba(200, 230, 255, 0.70);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 200ms ease;
  animation: bounce-arrow 2.5s ease-in-out infinite;
}

.hero-scroll-arrow:hover {
  background: rgba(158, 203, 240, 0.20);
  color: var(--color-ice);
}

@keyframes bounce-arrow {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}

/* ── HERO CAPTION ── */
.hero-caption {
  position: absolute;
  bottom: var(--space-6);
  right: var(--space-6);
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-style: italic;
  color: rgba(200, 220, 255, 0.35);
  letter-spacing: 0.02em;
  text-align: right;
  max-width: 380px;
  z-index: 10;
  pointer-events: none;
}

/* ══════════════════════════════════════════════
   MAP SECTION
══════════════════════════════════════════════ */
.map-section {
  width: 100%;
  height: 100svh;
  min-height: 600px;
  display: flex;
  flex-direction: column;
  background: var(--color-bg);
  scroll-snap-align: start;
}

/* ── MAP BANNER STRIP (180px painting strip at top of map section) ── */
.map-banner {
  position: relative;
  height: var(--map-header-height); /* 180px */
  flex-shrink: 0;
  overflow: hidden;
  z-index: 100;
}

/* Painting background — same image as hero, cropped to show ships */
.map-banner-bg {
  position: absolute;
  inset: 0;
  background-image: url('franklin_banner.png');
  background-size: cover;
  background-position: center 35%;
  background-repeat: no-repeat;
}

/* Dark gradient overlay — fades to page bg at bottom for seamless map join */
.map-banner-overlay {
  position: absolute;
  inset: 0;
  background:
    /* Top-left darkening for text readability */
    linear-gradient(to right,
      rgba(5, 10, 18, 0.80) 0%,
      rgba(5, 10, 18, 0.45) 40%,
      rgba(5, 10, 18, 0.20) 70%,
      transparent 100%
    ),
    /* Bottom fade into page background */
    linear-gradient(to top,
      rgba(13, 17, 23, 0.95) 0%,
      rgba(13, 17, 23, 0.40) 45%,
      transparent 100%
    );
  pointer-events: none;
}

/* Title bar row — pinned to bottom of banner */
.map-banner-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-5);
}

.map-header-left {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

/* Banner heading + subtitle stacked */
.map-banner-titles {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.map-banner-heading {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--color-ice-bright);
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.map-banner-sub {
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(200, 220, 255, 0.55);
}

.map-header-back {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  text-decoration: none;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(158, 203, 240, 0.20);
  background: rgba(8, 18, 32, 0.50);
  backdrop-filter: blur(6px);
  transition: all var(--transition);
}
.map-header-back:hover {
  color: var(--color-ice);
  border-color: var(--color-ice-dim);
  background: rgba(158, 203, 240, 0.12);
}

/* Italic caption — bottom-right of banner */
.map-banner-caption {
  position: absolute;
  bottom: 48px;
  right: var(--space-5);
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-style: italic;
  color: rgba(200, 220, 255, 0.30);
  letter-spacing: 0.02em;
  text-align: right;
  max-width: 320px;
  pointer-events: none;
}

/* Light theme adjustments for banner */
[data-theme='light'] .map-banner-overlay {
  background:
    linear-gradient(to right,
      rgba(240, 244, 248, 0.80) 0%,
      rgba(240, 244, 248, 0.40) 40%,
      transparent 70%
    ),
    linear-gradient(to top,
      rgba(240, 244, 248, 0.95) 0%,
      rgba(240, 244, 248, 0.35) 45%,
      transparent 100%
    );
}
[data-theme='light'] .map-banner-heading { color: var(--color-ice); }
[data-theme='light'] .map-banner-sub { color: var(--color-text-muted); }
[data-theme='light'] .map-header-back {
  color: var(--color-text-muted);
  border-color: var(--color-border);
  background: rgba(240, 244, 248, 0.70);
}

/* ── MAP + SIDEBAR LAYOUT ── */
.main-layout {
  display: flex;
  flex: 1;
  overflow: hidden;
  height: calc(100svh - var(--map-header-height));
}

/* ── SIDEBAR ── */
.sidebar {
  width: var(--sidebar-width);
  flex-shrink: 0;
  background: var(--color-surface);
  border-right: 1px solid var(--color-border);
  overflow-y: auto;
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  scrollbar-width: thin;
  scrollbar-color: var(--color-border) transparent;
}
.sidebar::-webkit-scrollbar { width: 4px; }
.sidebar::-webkit-scrollbar-thumb { background: var(--color-border); border-radius: 4px; }

/* ── PANELS ── */
.panel {
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.panel-title {
  font-size: var(--text-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

/* ── TIMELINE SLIDER ── */
.timeline-slider-wrap {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.timeline-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 99px;
  background: var(--color-border);
  outline: none;
  cursor: pointer;
}
.timeline-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--color-ice);
  border: 3px solid var(--color-surface-2);
  box-shadow: 0 0 0 2px var(--color-ice-dim), var(--shadow-sm);
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
}
.timeline-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  box-shadow: 0 0 0 3px var(--color-ice-dim), var(--shadow-md);
}
.timeline-slider::-moz-range-thumb {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--color-ice);
  border: 3px solid var(--color-surface-2);
}

.timeline-ticks {
  display: flex;
  justify-content: space-between;
  padding: 0 2px;
}
.tick {
  font-size: 0.6rem;
  color: var(--color-text-faint);
  text-align: center;
  line-height: 1;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  height: 28px;
  cursor: pointer;
}
.tick.active { color: var(--color-ice); font-weight: 600; }

/* ── EVENT CARD ── */
.event-card {
  background: var(--color-surface-offset);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  min-height: 110px;
  transition: border-color var(--transition);
}
.event-date {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-ice);
}
.event-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.2;
}
.event-desc {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  line-height: 1.6;
}
.event-coords {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  font-family: 'Courier New', monospace;
  letter-spacing: 0.02em;
  margin-top: auto;
}

/* ── TIMELINE NAV ── */
.timeline-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
}
.btn-nav {
  padding: var(--space-1) var(--space-3);
  background: var(--color-surface-offset);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-text-muted);
  font-size: var(--text-xs);
  transition: all var(--transition);
}
.btn-nav:hover { color: var(--color-text); border-color: var(--color-ice-dim); }
.event-counter { font-size: var(--text-xs); color: var(--color-text-faint); font-variant-numeric: tabular-nums; }

/* ── PLAY BUTTON ── */
.btn-play {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  width: 100%;
  padding: var(--space-2) var(--space-4);
  background: color-mix(in srgb, var(--color-ice) 15%, transparent);
  border: 1px solid var(--color-ice-dim);
  border-radius: var(--radius-md);
  color: var(--color-ice);
  font-size: var(--text-sm);
  font-weight: 500;
  transition: all var(--transition);
}
.btn-play:hover { background: color-mix(in srgb, var(--color-ice) 25%, transparent); }
.btn-play.playing { border-color: var(--color-danger); color: var(--color-danger); background: color-mix(in srgb, var(--color-danger) 12%, transparent); }

/* ── LAYER TOGGLES ── */
.layer-list { display: flex; flex-direction: column; gap: var(--space-2); }
.layer-toggle {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  cursor: pointer;
  font-size: var(--text-sm);
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-sm);
  transition: background var(--transition);
  user-select: none;
}
.layer-toggle:hover { background: var(--color-surface-offset); }
.layer-toggle input[type="checkbox"] { accent-color: var(--color-ice); width: 14px; height: 14px; }
.layer-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }

/* ── KEY FACTS ── */
.fact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2); }
.fact-item {
  background: var(--color-surface-offset);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-3);
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  text-align: center;
}
.fact-num { font-family: var(--font-display); font-size: var(--text-xl); font-weight: 600; color: var(--color-ice); line-height: 1; }
.fact-label { font-size: var(--text-xs); color: var(--color-text-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.fact-note { font-size: var(--text-xs); color: var(--color-text-muted); line-height: 1.6; font-style: italic; }

/* ── MAP ── */
.map-wrap { flex: 1; position: relative; overflow: hidden; }
#map { width: 100%; height: 100%; }

.map-overlay-title {
  position: absolute;
  bottom: var(--space-4);
  right: var(--space-4);
  background: color-mix(in srgb, var(--color-surface) 90%, transparent);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  z-index: 500;
  pointer-events: none;
  backdrop-filter: blur(4px);
}

/* ── LEAFLET CUSTOMIZATION ── */
.leaflet-container { background: #1a2a3a; font-family: var(--font-body); }
.osm-dark-filter { filter: invert(1) hue-rotate(180deg) saturate(0.7) brightness(0.85) contrast(0.9); }
[data-theme='light'] .osm-dark-filter { filter: none; }
[data-theme='light'] .leaflet-container { background: #d4e4f0; }

.leaflet-popup-content-wrapper {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  color: var(--color-text);
  padding: 0;
  overflow: hidden;
}
.leaflet-popup-tip-container { display: none; }
.leaflet-popup-content { margin: 0; width: 260px !important; }

.popup-inner { padding: var(--space-4); }
.popup-category { font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: var(--space-1); }
.popup-title { font-family: var(--font-display); font-size: var(--text-lg); font-weight: 600; color: var(--color-text); line-height: 1.2; margin-bottom: var(--space-2); }
.popup-date { font-size: var(--text-xs); color: var(--color-text-muted); margin-bottom: var(--space-2); font-weight: 500; }
.popup-desc { font-size: var(--text-xs); color: var(--color-text-muted); line-height: 1.6; margin-bottom: var(--space-3); }
.popup-coords { font-size: 0.65rem; color: var(--color-text-faint); font-family: 'Courier New', monospace; background: var(--color-surface-offset); border-radius: var(--radius-sm); padding: var(--space-1) var(--space-2); }
.leaflet-popup-close-button { color: var(--color-text-muted) !important; font-size: 18px !important; padding: var(--space-2) !important; right: var(--space-1) !important; top: var(--space-1) !important; }
.leaflet-popup-close-button:hover { color: var(--color-text) !important; }

/* ── CUSTOM MARKERS ── */
.custom-marker {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 2.5px solid #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.5);
  cursor: pointer;
}
.marker-pulse { position: relative; }
.marker-pulse::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid currentColor;
  opacity: 0.4;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.4; }
  50%       { transform: scale(1.3); opacity: 0; }
}

.route-animated { stroke-dasharray: 10, 6; animation: dash 30s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -1000; } }

/* ── BTN ICON (theme toggle in hero) ── */
.btn-icon {
  width: 36px; height: 36px;
  border-radius: var(--radius-md);
  background: rgba(8, 18, 32, 0.50);
  border: 1px solid rgba(158, 203, 240, 0.20);
  color: rgba(200, 230, 255, 0.70);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
  backdrop-filter: blur(6px);
}
.btn-icon:hover { color: var(--color-ice-bright); background: rgba(158, 203, 240, 0.15); }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  :root { --sidebar-width: 100%; }
  .main-layout { flex-direction: column; }
  .sidebar { width: 100%; height: auto; max-height: 40vh; border-right: none; border-bottom: 1px solid var(--color-border); }
  .map-wrap { flex: 1; min-height: 60vh; }
  .hero-stats { gap: var(--space-3); padding: var(--space-3) var(--space-5); }
  .hero-stat-divider { display: none; }
  .hero-caption { display: none; }
}
