/* ═══════════════════════════════════════════
   TOKENS & BASE SETTINGS (THEME FRAMEWORK)
═══════════════════════════════════════════ */
:root {
  /* Default Theme: Dark Navy & Gold */
  --bg-base:     #060b18;
  --bg-surface:  #0c1428;
  --bg-surface-2:#111d38;
  --bg-card:     rgba(255, 255, 255, 0.02);
  --bg-card-hov: rgba(232, 164, 53, 0.05);
  
  --accent-1:    #e8a435;
  --accent-1-lt: #f5c96e;
  --accent-1-dk: #b8821a;
  --accent-2:    #c0533a;
  
  --text-main:   #f2ead8;
  --text-dim:    rgba(242, 234, 216, 0.7);
  --text-mute:   rgba(242, 234, 216, 0.45);
  --text-inv:    #060b18;

  --border-light: rgba(232, 164, 53, 0.15);
  --border-med:   rgba(232, 164, 53, 0.35);

  --nav-bg:      rgba(6, 11, 24, 0.85);
  --modal-bg:    rgba(4, 4, 14, 0.95);
  
  --ff-display:  'Playfair Display', 'Noto Serif SC', 'Noto Serif JP', Georgia, serif;
  --ff-serif:    'Cormorant Garamond', 'Noto Serif SC', 'Noto Serif JP', Georgia, serif;
  --ff-body:     'Outfit', 'Noto Sans SC', 'Noto Sans JP', system-ui, sans-serif;

  /* Regional Gradients Base */
  --rc-ne: #1a3a5c; --rc-so: #2a1a0a; --rc-mw: #1a3020; --rc-we: #1a1038; --rc-sw: #2a1008;
}

/* Theme: Modern Minimalist */
[data-theme="minimal"] {
  --bg-base:     #ffffff;
  --bg-surface:  #f8f9fa;
  --bg-surface-2:#e9ecef;
  --bg-card:     #ffffff;
  --bg-card-hov: #f1f3f5;
  
  --accent-1:    #2563eb;
  --accent-1-lt: #3b82f6;
  --accent-1-dk: #1d4ed8;
  --accent-2:    #0ea5e9;
  
  --text-main:   #111827;
  --text-dim:    #4b5563;
  --text-mute:   #9ca3af;
  --text-inv:    #ffffff;

  --border-light: rgba(0, 0, 0, 0.08);
  --border-med:   rgba(37, 99, 235, 0.3);

  --nav-bg:      rgba(255, 255, 255, 0.9);
  --modal-bg:    rgba(255, 255, 255, 0.95);

  --rc-ne: #dbeafe; --rc-so: #ffedd5; --rc-mw: #dcfce7; --rc-we: #f3e8ff; --rc-sw: #fee2e2;
}

/* Theme: Classic Elegant */
[data-theme="elegant"] {
  --bg-base:     #faf7f2;
  --bg-surface:  #f0ebe1;
  --bg-surface-2:#e3dccf;
  --bg-card:     #ffffff;
  --bg-card-hov: #faf7f2;
  
  --accent-1:    #8c2a2a;
  --accent-1-lt: #b54545;
  --accent-1-dk: #5c1818;
  --accent-2:    #d4a373;
  
  --text-main:   #2c2825;
  --text-dim:    #5c554d;
  --text-mute:   #9e9589;
  --text-inv:    #ffffff;

  --border-light: rgba(140, 42, 42, 0.15);
  --border-med:   rgba(140, 42, 42, 0.4);

  --nav-bg:      rgba(250, 247, 242, 0.9);
  --modal-bg:    rgba(240, 235, 225, 0.95);

  --ff-body:     'Cormorant Garamond', Georgia, serif;
  
  --rc-ne: #e8eaf6; --rc-so: #fbe9e7; --rc-mw: #e8f5e9; --rc-we: #f3e5f5; --rc-sw: #efebe9;
}

/* Theme: Luxury Travel */
[data-theme="luxury"] {
  --bg-base:     #0a0a0a;
  --bg-surface:  #141414;
  --bg-surface-2:#1f1f1f;
  --bg-card:     rgba(255, 255, 255, 0.03);
  --bg-card-hov: rgba(212, 175, 55, 0.08);
  
  --accent-1:    #d4af37; /* Pure Gold */
  --accent-1-lt: #f3e5ab;
  --accent-1-dk: #997a00;
  --accent-2:    #c0c0c0; /* Silver */
  
  --text-main:   #f5f5f5;
  --text-dim:    #a3a3a3;
  --text-mute:   #666666;
  --text-inv:    #000000;

  --border-light: rgba(212, 175, 55, 0.2);
  --border-med:   rgba(212, 175, 55, 0.5);

  --nav-bg:      rgba(10, 10, 10, 0.85);
  --modal-bg:    rgba(0, 0, 0, 0.95);

  --rc-ne: #111; --rc-so: #151515; --rc-mw: #121212; --rc-we: #0f0f0f; --rc-sw: #181818;
}

/* Theme: Glassmorphism */
[data-theme="glass"] {
  --bg-base:     #0f172a;
  --bg-surface:  rgba(30, 41, 59, 0.6);
  --bg-surface-2:rgba(51, 65, 85, 0.6);
  --bg-card:     rgba(255, 255, 255, 0.05);
  --bg-card-hov: rgba(255, 255, 255, 0.1);
  
  --accent-1:    #06b6d4;
  --accent-1-lt: #22d3ee;
  --accent-1-dk: #0891b2;
  --accent-2:    #f43f5e;
  
  --text-main:   #f8fafc;
  --text-dim:    #cbd5e1;
  --text-mute:   #64748b;
  --text-inv:    #ffffff;

  --border-light: rgba(255, 255, 255, 0.1);
  --border-med:   rgba(6, 182, 212, 0.4);

  --nav-bg:      rgba(15, 23, 42, 0.6);
  --modal-bg:    rgba(15, 23, 42, 0.85);

  --rc-ne: #0e2e3d; --rc-so: #3d1a26; --rc-mw: #163024; --rc-we: #241a3d; --rc-sw: #3d2410;
}

/* Theme: Nature / Eco */
[data-theme="nature"] {
  --bg-base:     #1c2621;
  --bg-surface:  #24332b;
  --bg-surface-2:#2d4036;
  --bg-card:     rgba(255, 255, 255, 0.03);
  --bg-card-hov: rgba(74, 222, 128, 0.08);
  
  --accent-1:    #4ade80;
  --accent-1-lt: #86efac;
  --accent-1-dk: #22c55e;
  --accent-2:    #fbbf24;
  
  --text-main:   #e8f0eb;
  --text-dim:    #a3b8ad;
  --text-mute:   #6b8276;
  --text-inv:    #111827;

  --border-light: rgba(74, 222, 128, 0.15);
  --border-med:   rgba(74, 222, 128, 0.4);

  --nav-bg:      rgba(28, 38, 33, 0.9);
  --modal-bg:    rgba(20, 28, 24, 0.95);

  --rc-ne: #1f2e25; --rc-so: #242921; --rc-mw: #1a3020; --rc-we: #1a2926; --rc-sw: #2a241c;
}

*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  background: var(--bg-base);
  color: var(--text-main);
  font-family: var(--ff-body);
  font-weight: 300;
  overflow-x: hidden;
  cursor: default;
  -webkit-font-smoothing: antialiased;
  transition: background 0.5s ease, color 0.5s ease;
}

/* ═══════════════════════════════════════════════════════════════
   GALLERY SECTION
   Filter pills + a responsive photo grid + a fullscreen lightbox.
   Matches the site's existing visual language:
     - "reveal on scroll" fade/rise (same feel as .reveal elsewhere)
     - hover image zoom (same trick as .dest-card / .region-card)
     - lightbox open/close styled like #modal-overlay (blur + scale)
   ═══════════════════════════════════════════════════════════════ */

.gallery-filters { display: flex; flex-wrap: wrap; gap: 12px; margin: 32px auto 40px; max-width: 1200px; }
.gallery-filter {
  padding: 10px 22px; border-radius: 999px; border: 1px solid var(--bg-surface-2);
  background: var(--bg-card); color: var(--text-dim); font-family: var(--ff-body);
  font-size: 13px; font-weight: 600; cursor: pointer;
  transition: all .25s cubic-bezier(0.2,0.8,0.2,1);
  -webkit-tap-highlight-color: transparent; user-select: none;
}
.gallery-filter:hover { background: var(--bg-card-hov); color: var(--text-main); transform: translateY(-2px); }
.gallery-filter.active {
  background: var(--accent-1); color: var(--text-inv); border-color: var(--accent-1);
  animation: filterPop .35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes filterPop { 0% { transform: scale(1); } 45% { transform: scale(1.08); } 100% { transform: scale(1); } }

.gallery-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px;
  max-width: 1200px; margin: 0 auto;
}
.gallery-item.gallery-overflow-hidden { display: none; }
.gallery-actions { max-width: 1200px; margin: 36px auto 0; display: flex; justify-content: center; }
.gallery-expand-btn { background: var(--bg-card); }

.gallery-empty-state { display: none; text-align: center; max-width: 1200px; margin: 32px auto 0; color: var(--text-mute); font-size: 14px; }
.gallery-empty-state.show { display: block; }

/* Each photo tile: starts invisible/lowered, rises into place the first time
   it scrolls into view (see the "galleryObs" IntersectionObserver in the JS),
   then behaves like a normal hoverable card afterwards. */
.gallery-item {
  position: relative; border-radius: 8px; overflow: hidden; cursor: pointer;
  aspect-ratio: 4/3; background: var(--bg-surface-2); /* shows while image is still loading */
  opacity: 0; transform: translateY(28px) scale(.96);
  transition: opacity .6s cubic-bezier(.22,1,.36,1), transform .6s cubic-bezier(.22,1,.36,1), box-shadow .35s;
}
.gallery-item.in-view { opacity: 1; transform: translateY(0) scale(1); }
.gallery-item:hover { transform: translateY(-6px) scale(1.015); box-shadow: 0 20px 40px rgba(0,0,0,.28); }

/* Filtering a category out: quick shrink/fade, then removed from layout.
   Filtering one in: fades/rises back, same as the initial reveal. */
.gallery-item.fade-out { opacity: 0; transform: scale(.85); transition-duration: .3s; }
.gallery-item.hidden { display: none; }

.gallery-item img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  opacity: 0; transition: opacity .5s ease, transform .7s cubic-bezier(.22,1,.36,1);
}
.gallery-item img.loaded { opacity: 1; }
.gallery-item:hover img { transform: scale(1.08); } /* same zoom trick as .dest-card/.region-card */

/* If a photo's file is missing/broken (e.g. you referenced a filename you
   haven't uploaded to images/gallery/ yet), show a deliberate "no photo yet"
   placeholder instead of an empty box - so an unfinished gallery still reads
   as intentional, styled work rather than looking broken. */
.gallery-item.load-error { border: 1px dashed var(--border-med); cursor: default; }
.gallery-item.load-error img { display: none; }
.gallery-item-placeholder {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 10px; text-align: center; padding: 20px;
  color: var(--text-mute); font-family: var(--ff-body);
}
.gallery-item-placeholder .ph-icon { font-size: 1.8rem; opacity: .5; }
.gallery-item-placeholder .ph-text { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; }

.gallery-caption {
  position: absolute; bottom: 0; left: 0; right: 0; padding: 16px;
  background: linear-gradient(to top, rgba(0,0,0,.75), transparent);
  color: #fff; font-family: var(--ff-body); font-size: 13px; font-weight: 600;
  transform: translateY(4px); opacity: 0; transition: all .4s cubic-bezier(.22,1,.36,1);
}
.gallery-item.in-view .gallery-caption { transform: translateY(0); opacity: 1; }

/* ── LIGHTBOX ──
   Same open/close mechanics as #modal-overlay: opacity + visibility +
   pointer-events (not display:none) so the fade/scale can actually animate. */
.lightbox {
  position: fixed; inset: 0; z-index: 1001;
  background: rgba(0,0,0,.92); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  display: flex; align-items: center; justify-content: center; flex-direction: column;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .4s, visibility .4s; padding: 24px;
}
.lightbox.open { opacity: 1; visibility: visible; pointer-events: auto; }

.lightbox-counter {
  position: absolute; top: 20px; left: 20px; font-size: 10px; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase; color: #fff;
  background: rgba(0,0,0,0.6); backdrop-filter: blur(4px); padding: 6px 10px; border-radius: 4px;
}

.lightbox-stage {
  transform: scale(.92) translateY(24px); transition: transform .5s cubic-bezier(.22,1,.36,1);
  display: flex; flex-direction: column; align-items: center; max-width: 100%;
}
.lightbox.open .lightbox-stage { transform: scale(1) translateY(0); }

.lightbox-img {
  max-width: 85vw; max-height: 75vh; border-radius: 6px; touch-action: pan-y;
  box-shadow: 0 40px 80px rgba(0,0,0,.5);
  transition: opacity .18s ease; /* crossfade when switching photos, see JS */
}
.lightbox-img.switching { opacity: 0; }

.lightbox-info { text-align: center; margin-top: 18px; }
.lightbox-caption { color: #fff; font-family: var(--ff-body); font-size: 15px; font-weight: 600; }
.lightbox-meta { color: rgba(255,255,255,.6); font-family: var(--ff-body); font-size: 12.5px; margin-top: 4px; }

.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute; background: none; border: none; color: #fff; font-size: 28px;
  cursor: pointer; padding: 12px; opacity: .7; transition: all .25s cubic-bezier(0.2,0.8,0.2,1);
  min-width: 44px; min-height: 44px; display: flex; align-items: center; justify-content: center;
  -webkit-tap-highlight-color: transparent; user-select: none;
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { opacity: 1; }
.lightbox-close:hover { transform: rotate(90deg); } /* same touch as .modal-close:hover */
.lightbox-prev:hover { transform: translateY(-50%) translateX(-3px); }
.lightbox-next:hover { transform: translateY(-50%) translateX(3px); }
.lightbox-close { top: 16px; right: 16px; }
.lightbox-prev { left: 8px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 8px; top: 50%; transform: translateY(-50%); }

/* ── Responsiveness across breakpoints ── */
@media (max-width: 1024px) {
  .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
}
@media (max-width: 640px) {
  .gallery-filters { gap: 8px; }
  .gallery-filter { padding: 8px 16px; font-size: 12px; }
  .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
  .lightbox-prev, .lightbox-next { font-size: 22px; }
  .lightbox-close { font-size: 22px; }
  .lightbox-counter { top: 12px; left: 12px; }
}
/* Phones in landscape have very little vertical space - shrink the image
   so the caption/controls never get squeezed off-screen. */
@media (max-height: 500px) and (orientation: landscape) {
  .lightbox-img { max-height: 58vh; }
  .lightbox-info { margin-top: 8px; }
}

/* Accessibility: Focus outlines */
:focus-visible {
  outline: 2px solid var(--accent-1);
  outline-offset: 4px;
  border-radius: 2px;
}

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg-base); }
::-webkit-scrollbar-thumb { background: var(--border-med); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-1); }
::selection { background: var(--accent-1); color: var(--text-inv); }

/* ═══ GALLERY SECTION ═══ */
#gallery { padding: 120px 60px; position: relative; }

/* ═══ PROGRESS BAR ═══ */
#progress-bar {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: linear-gradient(to right, var(--accent-1-dk), var(--accent-1), var(--accent-1-lt));
  z-index: 9998; transition: width .1s linear;
  box-shadow: 0 0 12px var(--border-med);
}

/* ═══ SETTINGS DIALOG ═══ */
.settings-overlay {
  position: fixed; inset: 0; z-index: 1002; padding: 24px;
  background: rgba(0,0,0,.58); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .3s ease, visibility .3s ease;
}
.settings-overlay.open { opacity: 1; visibility: visible; pointer-events: auto; }
.settings-panel {
  width: min(1120px, 100%); max-height: min(86vh, 900px); overflow: auto;
  padding: 42px; background: var(--bg-surface); border: 1px solid var(--border-light);
  border-radius: 8px; box-shadow: 0 40px 90px rgba(0,0,0,.45); position: relative;
  transform: translateY(18px) scale(.98); transition: transform .3s cubic-bezier(.22,1,.36,1);
}
.settings-overlay.open .settings-panel { transform: translateY(0) scale(1); }
.settings-header { max-width: 1200px; margin: 0 auto 34px; }
.settings-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.settings-header h2 { font-family: var(--ff-display); font-size: clamp(2.2rem, 3vw, 2.8rem); font-weight: 700; line-height: 1.1; margin-bottom: 16px; }
.settings-header h2 em { font-style: italic; color: var(--accent-1); font-weight: 400; }
.settings-header p { font-size: 14px; color: var(--text-dim); max-width: 580px; line-height: 1.8; }
.settings-close {
  flex: 0 0 44px; width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--border-light); border-radius: 8px; background: var(--bg-card);
  color: var(--text-main); cursor: pointer; font-size: 18px; transition: all .25s;
}
.settings-close:hover { border-color: var(--accent-1); color: var(--accent-1); transform: rotate(90deg); }
.settings-grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 16px; align-items: stretch; }
.settings-group { padding: 32px; border: 1px solid var(--border-light); border-radius: 8px; background: var(--bg-card); display: flex; flex-direction: column; }
.settings-group-label { font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--accent-1); margin-bottom: 6px; display: flex; align-items: center; gap: 10px; }
.settings-group-sub { font-size: 12.5px; color: var(--text-mute); margin-bottom: 22px; line-height: 1.6; }


/* Travel tools */
.tools-panel { width: min(1180px, 100%); }
.tools-grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1.15fr 1fr; gap: 16px; align-items: stretch; }
.tool-card { padding: 28px; border: 1px solid var(--border-light); border-radius: 8px; background: var(--bg-card); min-width: 0; }
.tool-card-wide { grid-row: span 2; }
.tool-form { display: grid; gap: 12px; }
.currency-tool { grid-template-columns: minmax(120px, 1fr) minmax(110px, .75fr) 44px minmax(110px, .75fr); align-items: end; }
.tool-field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.tool-field span { color: var(--text-mute); font-size: 10.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.tool-field input, .tool-field select { width: 100%; min-height: 44px; padding: 11px 12px; border: 1px solid var(--border-light); border-radius: 8px; background: var(--bg-surface-2); color: var(--text-main); font: 500 14px var(--ff-body); outline: none; }
.tool-field input:focus, .tool-field select:focus { border-color: var(--accent-1); box-shadow: 0 0 0 1px var(--accent-1); }
.tool-swap { width: 44px; height: 44px; border: 1px solid var(--border-light); border-radius: 8px; background: var(--bg-card); color: var(--text-main); cursor: pointer; font-size: 18px; transition: all .25s; }
.tool-swap:hover { border-color: var(--accent-1); color: var(--accent-1); transform: translateY(-2px); }
.tool-result { margin-top: 20px; color: var(--text-main); font-family: var(--ff-display); font-size: clamp(1.7rem, 3vw, 2.6rem); font-weight: 700; line-height: 1.1; overflow-wrap: anywhere; }
.tool-meta { margin-top: 8px; color: var(--text-mute); font-size: 12px; line-height: 1.6; }
.clock-list { display: flex; flex-direction: column; gap: 10px; }
.clock-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--border-light); }
.clock-row:last-child { border-bottom: 0; }
.clock-city { color: var(--text-main); font-weight: 600; font-size: 13px; }
.clock-zone { color: var(--text-mute); font-size: 11px; margin-top: 3px; }
.clock-time { color: var(--accent-1); font-weight: 700; font-size: 18px; white-space: nowrap; }
.stacked { gap: 14px; }
.tool-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* Theme swatches */
.theme-swatch-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.theme-swatch {
  border: 1px solid var(--border-light); border-radius: 8px; padding: 12px 10px; cursor: pointer;
  background: var(--bg-surface-2); transition: all .3s cubic-bezier(0.2,0.8,0.2,1); text-align: left;
  display: flex; flex-direction: column; gap: 10px; font-family: var(--ff-body); color: var(--text-dim);
}
.theme-swatch:hover { transform: translateY(-3px); border-color: var(--border-med); }
.theme-swatch.active { border-color: var(--accent-1); background: var(--bg-card-hov); box-shadow: 0 0 0 1px var(--accent-1); }
.theme-swatch-preview { height: 34px; border-radius: 5px; display: flex; overflow: hidden; border: 1px solid rgba(128,128,128,0.15); }
.theme-swatch-preview span { flex: 1; }
.theme-swatch-name { font-size: 11.5px; font-weight: 600; display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.theme-swatch.active .theme-swatch-name { color: var(--text-main); }
.theme-swatch-check { opacity: 0; color: var(--accent-1); font-size: 13px; transition: opacity .2s; flex-shrink: 0; }
.theme-swatch.active .theme-swatch-check { opacity: 1; }

/* Pill button groups (language / units) */
.pill-group { display: flex; flex-direction: column; gap: 8px; }
.pill-btn {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 13px 18px; border-radius: 8px; cursor: pointer; border: 1px solid var(--border-light);
  background: var(--bg-surface-2); color: var(--text-dim); font-family: var(--ff-body); font-size: 13.5px;
  font-weight: 500; transition: all .25s cubic-bezier(0.2,0.8,0.2,1); text-align: left; width: 100%;
}
.pill-btn:hover { border-color: var(--border-med); color: var(--text-main); }
.pill-btn.active { border-color: var(--accent-1); background: var(--bg-card-hov); color: var(--text-main); }
.pill-btn.active .pill-check { opacity: 1; transform: scale(1); }
.pill-btn-native { font-size: 11.5px; color: var(--text-mute); font-weight: 400; }
.pill-check { opacity: 0; transform: scale(.5); color: var(--accent-1); font-size: 14px; transition: all .25s cubic-bezier(0.2,0.8,0.2,1); flex-shrink: 0; }
.settings-subgroup + .settings-subgroup { margin-top: 20px; }
.settings-subgroup-label { font-size: 10.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--text-mute); margin-bottom: 10px; }
.units-row { display: flex; gap: 8px; }
.units-row .pill-btn { text-align: center; justify-content: center; }

/* Accessibility group spans the full grid width and lays its two toggles
   side by side on wide screens, stacking on narrow ones. */
.settings-group-wide { grid-column: 1 / -1; }
.settings-subgroup-row { display: flex; gap: 24px 32px; flex-wrap: wrap; }
.settings-subgroup-row .settings-subgroup { flex: 1 1 220px; margin-top: 0; }

/* ═══ LOADER ═══ */
#loader {
  position: fixed; inset: 0; background: var(--bg-base); z-index: 9997;
  display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 24px;
  transition: opacity .8s ease, visibility .8s ease;
}
#loader.gone { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-flag { font-size: 3.5rem; }
.loader-text {
  font-family: var(--ff-display); font-size: clamp(2rem, 5vw, 3.5rem); font-style: italic; 
  color: var(--accent-1); letter-spacing: .05em; animation: loaderPulse 1.8s ease-in-out infinite;
}
.loader-sub { font-size: 11px; letter-spacing: .25em; text-transform: uppercase; color: var(--text-dim); }
.loader-bar { width: 240px; height: 2px; background: var(--border-light); border-radius:1px; overflow:hidden; }
.loader-fill { height:100%; background: linear-gradient(to right,var(--accent-1-dk),var(--accent-1-lt)); animation: loaderFill 2s ease-in-out forwards; }
@keyframes loaderPulse { 0%,100%{opacity:.6} 50%{opacity:1; text-shadow: 0 0 20px var(--border-light);} }
@keyframes loaderFill  { from{width:0} to{width:100%} }

/* ═══ NAV ═══ */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200; padding: 24px 60px;
  display: flex; align-items: center; justify-content: space-between;
  transition: background .5s, padding .5s, box-shadow .5s;
}
nav.scrolled {
  background: var(--nav-bg); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  padding: 16px 60px; border-bottom: 1px solid var(--border-light);
}
.nav-logo {
  font-family: var(--ff-display); font-size: 22px; font-style: italic;
  color: var(--accent-1); letter-spacing: .03em; text-decoration: none; cursor: pointer;
  transition: transform 0.3s;
}
.nav-logo:hover { transform: scale(1.05); }
.nav-logo span { font-style: normal; font-weight: 900; }
.nav-links { display: flex; gap: clamp(10px, 1.25vw, 24px); list-style: none; align-items: center; }
.nav-links a {
  font-size: 11px; letter-spacing: .12em; text-transform: uppercase; font-weight: 500;
  color: var(--text-dim); text-decoration: none; transition: color .25s; position: relative; padding-bottom: 4px;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 1px; background: var(--accent-1);
  transform: scaleX(0); transform-origin: right; transition: transform .3s cubic-bezier(0.65, 0, 0.35, 1);
}
.nav-links a:hover, .nav-links a.active-link { color: var(--text-main); }
.nav-links a:hover::after, .nav-links a.active-link::after { transform: scaleX(1); transform-origin: left; }
.nav-actions { display: flex; align-items: center; gap: 10px; margin-left: 20px; }
.nav-settings-btn, .nav-tool-btn {
  width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--border-light); border-radius: 999px; background: var(--bg-card);
  color: var(--text-main); cursor: pointer; font-size: 17px; line-height: 1; transition: all .25s;
}
.nav-settings-btn:hover, .nav-tool-btn:hover { border-color: var(--accent-1); color: var(--accent-1); background: var(--bg-card-hov); transform: translateY(-2px); }

/* Hamburger */
.nav-hamburger { display: none; flex-direction: column; gap: 6px; cursor: pointer; padding: 4px; background: none; border: none; z-index: 201; }
.nav-hamburger span { display: block; width: 24px; height: 2px; background: var(--text-main); border-radius: 2px; transition: transform .3s, opacity .3s, width .3s; }
.nav-hamburger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); background: var(--accent-1); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; width: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); background: var(--accent-1); }
.nav-mobile {
  position: fixed; inset: 0; top: 0; background: var(--modal-bg); backdrop-filter: blur(24px); z-index: 190;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: clamp(18px, 4vh, 34px);
  opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .4s, visibility .4s;
  overflow-y: auto; padding: 100px 24px 60px;
}
.nav-mobile.open { opacity: 1; visibility: visible; pointer-events: auto; }
.nav-mobile a { font-family: var(--ff-display); font-size: clamp(1.6rem, 7vw, 2.5rem); font-style: italic; color: var(--text-dim); text-decoration: none; transition: color .25s, transform .25s; }
.nav-mobile a:hover { color: var(--accent-1); transform: translateY(-4px); }
.nav-mobile-settings {
  font-family: var(--ff-display); font-size: clamp(1.6rem, 7vw, 2.5rem); font-style: italic; color: var(--text-dim);
  background: none; border: 0; cursor: pointer; transition: color .25s, transform .25s;
}
.nav-mobile-settings:hover { color: var(--accent-1); transform: translateY(-4px); }

/* ═══ HERO ═══ */
#hero { height: 100vh; min-height: 700px; position: relative; overflow: hidden; display: flex; align-items: flex-end; }
.hero-bg {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 30% 50%, var(--border-light) 0%, transparent 70%),
              linear-gradient(160deg, var(--bg-surface) 0%, var(--bg-base) 40%, var(--bg-surface-2) 100%);
  will-change: transform; animation: bgBreathe 15s ease-in-out infinite alternate;
}
@keyframes bgBreathe { 0% { opacity: 0.8; } 100% { opacity: 1; transform: scale(1.02); } }
#dotMap { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; animation: mapFadeIn 2s 1.8s ease forwards; pointer-events: none; }
@keyframes mapFadeIn { to { opacity: 1; } }
#cursorCanvas { position: fixed; inset: 0; pointer-events: none; z-index: 9000; }

.hero-content { position: relative; z-index: 5; padding: 0 60px 100px; max-width: 900px; min-width: 0; width: 100%; }
.hero-eyebrow { font-size: 12px; letter-spacing: .28em; text-transform: uppercase; font-weight: 500; color: var(--accent-1); margin-bottom: 24px; opacity: 0; animation: slideUp .8s 2.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; display: flex; align-items: center; gap: 12px; }
.hero-eyebrow::before { content:''; display:inline-block; width: 40px; height: 1px; background: var(--accent-1); }
.hero-h1 { font-family: var(--ff-display); font-size: clamp(3.5rem, 8vw, 8rem); line-height: .9; font-weight: 900; letter-spacing: -.025em; margin-bottom: 32px; opacity: 0; animation: slideUp .9s 2.35s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; }
.hero-h1 em {
  display: block; font-style: italic; font-weight: 400;
  background: linear-gradient(to right, var(--accent-1-lt), var(--accent-1), var(--accent-2));
  background-size: 200% auto; -webkit-background-clip: text; -webkit-text-fill-color: transparent; animation: shine 5s linear infinite;
}
@keyframes shine { to { background-position: 200% center; } }
.hero-desc { font-size: clamp(16px, 1.8vw, 19px); line-height: 1.8; color: var(--text-dim); max-width: 560px; margin-bottom: 48px; font-weight: 300; opacity: 0; animation: slideUp .9s 2.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 16px 20px; align-items: center; opacity: 0; animation: slideUp .8s 2.65s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; }
.btn-primary {
  padding: 16px 40px; background: var(--accent-1); color: var(--text-inv); font-family: var(--ff-body); font-size: 12px; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; text-decoration: none; border: none; cursor: pointer; transition: all .3s;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px)); position: relative; overflow: hidden;
}
.btn-primary::after { content:''; position:absolute; inset:0; background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.4) 50%, transparent 70%); transform: translateX(-100%); transition: transform .6s; }
.btn-primary:hover::after { transform: translateX(100%); }
.btn-primary:hover { background: var(--accent-1-lt); transform: translateY(-3px); box-shadow: 0 10px 30px var(--border-med); }
.btn-ghost { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; font-weight: 500; color: var(--text-dim); text-decoration: none; display: flex; align-items: center; gap: 10px; border: 1px solid var(--border-light); padding: 15px 28px; transition: all .3s; }
.btn-ghost:hover { color: var(--text-main); border-color: var(--accent-1); background: var(--bg-card-hov); transform: translateY(-3px); }

.hero-stats { position: absolute; right: 60px; bottom: 100px; z-index: 5; display: flex; flex-direction: column; gap: 32px; align-items: flex-end; opacity: 0; animation: slideUp .8s 2.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; }
.stat-item { text-align: right; cursor: default; }
.stat-num { font-family: var(--ff-display); font-size: 2.8rem; font-weight: 700; color: var(--accent-1); line-height: 1; letter-spacing: -.02em; transition: color .25s, transform .25s; }
.stat-item:hover .stat-num { color: var(--accent-1-lt); transform: scale(1.05); transform-origin: right; }
.stat-label { font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--text-mute); margin-top: 4px; font-weight: 500; }
.stat-bar { height: 2px; background: var(--border-light); margin-top: 8px; border-radius: 1px; overflow: hidden; width: 70px; }
.stat-bar-fill { height: 100%; background: var(--accent-1); transform: scaleX(0); transform-origin: right; transition: transform 1.2s cubic-bezier(0.2, 0.8, 0.2, 1); }
.stat-item:hover .stat-bar-fill { transform: scaleX(1); transform-origin: left; }

.hero-scroll { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); z-index: 5; display: flex; flex-direction: column; align-items: center; gap: 10px; opacity: 0; animation: fadeIn 1s 3.2s ease forwards; cursor: pointer; }
.scroll-line { width: 2px; height: 60px; background: linear-gradient(to bottom, transparent, var(--accent-1)); animation: scrollPulse 2.2s ease-in-out infinite; transform-origin: bottom; }
.scroll-text { font-size: 10px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--text-mute); transition: color 0.3s; }
.hero-scroll:hover .scroll-text { color: var(--accent-1); }
@keyframes scrollPulse { 0%,100%{transform:scaleY(1);opacity:.6} 50%{transform:scaleY(1.3);opacity:1} }
@keyframes slideUp { from{opacity:0;transform:translateY(40px)} to{opacity:1;transform:translateY(0)} }
@keyframes fadeIn  { from{opacity:0} to{opacity:1} }

/* ═══ INTRO ═══ */
#intro { padding: 140px 60px; position: relative; }
.intro-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 80px; max-width: 1200px; margin: 0 auto; align-items: center; }
.section-eyebrow { font-size: 11px; font-weight: 600; letter-spacing: .28em; text-transform: uppercase; color: var(--accent-1); margin-bottom: 24px; display: flex; align-items: center; gap: 16px; }
.section-eyebrow::after { content:''; flex:1; max-width:50px; height:1px; background:var(--accent-1); opacity:.4; }
.intro-left h2 { font-family: var(--ff-display); font-size: clamp(2.5rem, 4vw, 3.8rem); font-weight: 700; line-height: 1.1; letter-spacing: -.02em; margin-bottom: 36px; }
.intro-left h2 em { font-style: italic; color: var(--accent-1); font-weight: 400; }
.intro-pull { font-family: var(--ff-serif); font-size: clamp(1.3rem, 2vw, 1.6rem); line-height: 1.6; font-style: italic; color: var(--text-main); border-left: 2px solid var(--accent-1); padding-left: 28px; margin-bottom: 40px; }
.intro-body { font-size: 16px; line-height: 1.9; color: var(--text-dim); margin-bottom: 24px; font-weight: 300; }
.intro-body strong { color: var(--text-main); font-weight: 500; }
.intro-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 50px; }
.fact-card { background: var(--bg-card); border: 1px solid var(--border-light); padding: 24px 20px; border-radius: 4px; transition: all .35s; cursor: pointer; position: relative; overflow: hidden; }
.fact-card::before { content:''; position:absolute; inset:0; background: linear-gradient(135deg, var(--border-light) 0%, transparent 60%); opacity: 0; transition: opacity .35s; }
.fact-card:hover { border-color: var(--border-med); background: var(--bg-card-hov); transform: translateY(-4px); box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
.fact-card:hover::before { opacity: 1; }
.fact-card-num { font-family: var(--ff-display); font-size: 1.8rem; font-weight: 700; color: var(--accent-1); line-height: 1; }
.fact-card-label { font-size: 11px; color: var(--text-dim); margin-top: 8px; letter-spacing:.06em; font-weight: 500; text-transform: uppercase; }

.intro-right { display: flex; flex-direction: column; gap: 16px; position: relative; }
.img-card { border-radius: 6px; overflow: hidden; position: relative; box-shadow: 0 20px 40px rgba(0,0,0,0.2); }
.img-card-tall { height: 400px; }
.img-card-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.img-card-sm { height: 220px; border-radius: 6px; overflow: hidden; position: relative; box-shadow: 0 10px 20px rgba(0,0,0,0.15); }
.img-scene { width: 100%; height: 100%; position: relative; overflow: hidden; transition: transform .8s cubic-bezier(.22,1,.36,1); }
.img-card:hover .img-scene, .img-card-sm:hover .img-scene { transform: scale(1.08); }
.scene-label { position:absolute; bottom:16px; left:16px; font-size:10px; font-weight: 600; letter-spacing:.18em; text-transform:uppercase; color: #fff; z-index:2; background: rgba(0,0,0,0.6); backdrop-filter: blur(4px); padding: 6px 10px; border-radius: 4px; }
.scene-canyon {
  background-image: url('../../images/SFgolden_gate_bridge_with_pelican-by_timg.jpeg');
  background-size: cover;
  background-position: center;
}
.scene-nyc { background: linear-gradient(180deg, #06090f 0%, #0d1025 50%, #1a1a2e 100%); }
.scene-nyc::before { content:''; position:absolute; bottom:0; left:0; right:0; height:75%; background: repeating-linear-gradient(90deg, transparent 0px, transparent 10px, rgba(255,215,90,0.15) 10px, rgba(255,215,90,0.15) 12px, transparent 12px, transparent 34px, rgba(255,195,70,0.1) 34px, rgba(255,195,70,0.1) 36px, transparent 36px, transparent 50px, rgba(90,170,255,0.1) 50px, rgba(90,170,255,0.1) 52px ); }
.scene-yellow { background: linear-gradient(160deg, #1a4a2a 0%, #0d2a14 40%, #0a1a0a 100%); }
.scene-yellow::before { content:''; position:absolute; top:20%; left:35%; width:100px; height:180px; background: radial-gradient(ellipse 25% 100% at 50% 100%, rgba(210,235,255,0.85) 0%, rgba(190,215,255,0.35) 40%, transparent 100%); border-radius: 50%; }

/* ═══ DIVIDER ═══ */
.section-divider { max-width: 1200px; margin: 0 auto; height: 1px; background: linear-gradient(to right, transparent, var(--border-med), transparent); }

/* ═══ REGIONS ═══ */
#regions { padding: 140px 60px; }
.section-header { max-width: 1200px; margin: 0 auto 70px; display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 40px; }
.section-header h2 { font-family: var(--ff-display); font-size: clamp(2.2rem, 3.5vw, 3.2rem); font-weight: 700; line-height: 1.1; letter-spacing: -.02em; }
.section-header h2 em { font-style: italic; color: var(--accent-1); font-weight: 400; }
.section-header p { font-size: 14px; color: var(--text-dim); max-width: 340px; text-align: right; line-height: 1.8; }
.regions-scroll-wrapper { max-width: 1200px; margin: 0 auto; }
.regions-header-wrapper { max-width: 1200px; margin: 0 auto 40px; display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; }
.regions-header-wrapper p { font-size: 14px; color: var(--text-dim); max-width: 340px; text-align: right; line-height: 1.8; }
.regions-nav-btns { display: none; }
.regions-track { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.region-card { position: relative; overflow: hidden; border-radius: 8px; cursor: pointer; height: 500px; transition: transform .45s cubic-bezier(.22,1,.36,1), box-shadow .45s; }
.region-card:hover { transform: translateY(-12px); box-shadow: 0 30px 60px rgba(0,0,0,0.4), 0 0 0 1px var(--border-med); z-index: 10; }
.region-card-bg { position: absolute; inset: 0; transition: transform .8s cubic-bezier(.22,1,.36,1); }
.region-card:hover .region-card-bg { transform: scale(1.1); }
.rc-northeast { background: linear-gradient(170deg, var(--rc-ne), var(--bg-surface-2), var(--bg-base)); }
.rc-south     { background: linear-gradient(170deg, var(--rc-so), var(--bg-surface-2), var(--bg-base)); }
.rc-midwest   { background: linear-gradient(170deg, var(--rc-mw), var(--bg-surface-2), var(--bg-base)); }
.rc-west      { background: linear-gradient(170deg, var(--rc-we), var(--bg-surface-2), var(--bg-base)); }
.rc-southwest { background: linear-gradient(170deg, var(--rc-sw), var(--bg-surface-2), var(--bg-base)); }

.region-deco { position: absolute; inset: 0; opacity: 0.55; transition: opacity .5s; }
.region-card:hover .region-deco { opacity: 1; }
.deco-northeast { background: radial-gradient(circle at 50% 15%, rgba(255,255,255,0.1) 0%, transparent 50%), linear-gradient(180deg, transparent 25%, rgba(0,0,0,0.4) 60%, rgba(0,0,0,0.8) 100%); }
.deco-south { background: radial-gradient(ellipse 70% 45% at 50% 35%, rgba(255,255,255,0.1) 0%, transparent 70%), linear-gradient(180deg, transparent 30%, rgba(0,0,0,0.8) 100%); }
.deco-midwest { background: linear-gradient(180deg, rgba(255,255,255,0.1) 0%, transparent 40%, rgba(0,0,0,0.8) 100%); }
.deco-west { background: radial-gradient(ellipse 100% 30% at 50% 65%, rgba(255,255,255,0.1) 0%, transparent 70%), linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.8) 100%); }
.deco-southwest { background: radial-gradient(ellipse 80% 50% at 50% 55%, rgba(255,255,255,0.1) 0%, transparent 70%), linear-gradient(180deg, transparent 30%, rgba(0,0,0,0.8) 100%); }

.region-svg { position: absolute; bottom: 0; left: 0; right: 0; width: 100%; height: 55%; opacity: 0.4; transition: opacity .5s, transform .5s; filter: grayscale(50%) brightness(1.2); }
.region-card:hover .region-svg { opacity: 0.8; transform: translateY(-5px); filter: grayscale(0%); }

.region-content { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 30px 24px; }
.region-tag { font-size: 10px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--accent-1); margin-bottom: 10px; }
.region-name { font-family: var(--ff-display); font-size: 1.6rem; font-weight: 700; line-height: 1.1; margin-bottom: 12px; color: #fff;}
.region-desc { font-size: 13px; color: rgba(255,255,255,0.8); line-height: 1.7; margin-bottom: 16px; max-height: 0; overflow: hidden; transition: max-height .6s cubic-bezier(.22,1,.36,1), opacity .5s; opacity: 0; }
.region-card:hover .region-desc { max-height: 140px; opacity: 1; }
.region-spots { display: flex; gap: 8px; flex-wrap: wrap; }
.region-spot { font-size: 11px; font-weight: 500; letter-spacing: .06em; padding: 6px 12px; border: 1px solid rgba(255,255,255,0.3); color: rgba(255,255,255,0.8); border-radius: 20px; transition: all .3s; cursor: pointer; backdrop-filter: blur(4px); }
.region-card:hover .region-spot:hover { border-color: var(--accent-1); color: var(--text-inv); background: var(--accent-1); }
.region-num { position: absolute; top: 20px; right: 20px; font-family: var(--ff-display); font-size: 5rem; font-weight: 900; color: rgba(255,255,255,0.1); line-height: 1; pointer-events: none; transition: color .5s, transform .5s; }
.region-card:hover .region-num { color: rgba(255,255,255,0.2); transform: scale(1.1); }

/* ═══ DESTINATIONS (Redesigned Horizontal Carousel) ═══ */
#destinations { padding: 140px 60px; background: var(--bg-surface); position: relative; overflow: hidden; }
#destinations::before { content:''; position:absolute; top:0; left:0; right:0; height:1px; background: linear-gradient(to right, transparent, var(--border-light), transparent); }
#destinations::after { content:''; position:absolute; bottom:0; left:0; right:0; height:1px; background: linear-gradient(to right, transparent, var(--border-light), transparent); }

.dest-header-wrapper { max-width: 1200px; margin: 0 auto 40px; display: flex; justify-content: space-between; align-items: flex-end;}
.dest-filter-bar { max-width: 1200px; margin: 0 auto 32px; display: flex; flex-wrap: wrap; gap: 10px; }
.dest-filter-btn {
  padding: 9px 20px; border-radius: 100px; border: 1px solid var(--border-light); background: transparent;
  color: var(--text-dim); font-family: var(--ff-body); font-size: 12.5px; font-weight: 500; letter-spacing: .02em;
  cursor: pointer; transition: all .25s cubic-bezier(0.2,0.8,0.2,1); white-space: nowrap;
}
.dest-filter-btn:hover { border-color: var(--border-med); color: var(--text-main); }
.dest-filter-btn.active { background: var(--accent-1); border-color: var(--accent-1); color: var(--bg-primary); font-weight: 600; }
.dest-filter-saved { margin-left: 4px; border-left: 1px solid var(--border-med); padding-left: 20px; }
.dest-filter-saved.active { background: #e0455f; border-color: #e0455f; color: #fff; }
.dest-empty-state { display: none; text-align: center; max-width: 1200px; margin: -10px auto 20px; color: var(--text-mute); font-size: 14px; }
.dest-empty-state.show { display: block; }
.dest-card.filtered-out { display: none; }
.dest-carousel-wrapper { position: relative; max-width: 1300px; margin: 0 auto; }
.dest-track { 
  display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; 
  padding: 20px 60px 40px; scroll-behavior: smooth; margin: 0 -60px;
  -ms-overflow-style: none; scrollbar-width: none;
}
.dest-track::-webkit-scrollbar { display: none; }
.dest-card { 
  flex: 0 0 320px; height: 420px; position: relative; overflow: hidden; border-radius: 12px; 
  scroll-snap-align: center; cursor: pointer; transition: transform .4s, box-shadow .4s;
  box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}
.dest-card:hover { transform: translateY(-8px) scale(1.02); box-shadow: 0 24px 50px rgba(0,0,0,0.3), 0 0 0 2px var(--accent-1); z-index: 2;}

.dest-nav-btns { display: flex; gap: 12px; }
.dest-nav-btn { 
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--border-med);
  background: var(--bg-card); color: var(--text-main); font-size: 18px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: all .3s;
}
.dest-nav-btn:hover { background: var(--accent-1); color: var(--text-inv); border-color: var(--accent-1); transform: scale(1.1); }
.dest-nav-btn:disabled { opacity: 0.3; cursor: not-allowed; transform: none; background: transparent; color: var(--text-dim); }

.dest-bg { position: absolute; inset: 0; transition: transform .8s cubic-bezier(.22,1,.36,1); }
.dest-card:hover .dest-bg { transform: scale(1.08); }

/* Dest City Gradients */
.db-nyc { background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%); }
.db-la  { background: linear-gradient(160deg, #3f1d38 0%, #1a0f18 100%); }
.db-chi { background: linear-gradient(160deg, #0c2b3d 0%, #051017 100%); }
.db-mia { background: linear-gradient(160deg, #0d383b 0%, #061718 100%); }
.db-nola{ background: linear-gradient(160deg, #2b1238 0%, #0d0412 100%); }
.db-veg { background: linear-gradient(135deg, #4a1c15 0%, #1f0b08 100%); }
.db-sf {
  background-image: url('../../images/SFgolden_gate_bridge-photo-by_timg.jpeg');
  background-size: cover;
  background-position: center;
}
.db-sea { background: linear-gradient(160deg, #17382d 0%, #081712 100%); }
.db-aus { background: linear-gradient(160deg, #402c1a 0%, #1c1109 100%); }
.db-dc  { background: linear-gradient(160deg, #1f2738 0%, #0a0d14 100%); }
.db-hon { background: linear-gradient(160deg, #0f4032 0%, #061c15 100%); }
.db-bos { background: linear-gradient(160deg, #381a17 0%, #170908 100%); }

/* Add overlay circles for flavor */
.dest-bg::after { content:''; position:absolute; inset:0; background: radial-gradient(circle at 80% 20%, rgba(255,255,255,0.1) 0%, transparent 60%); }

.dest-content { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 24px; background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.3) 50%, transparent 100%); }
.dest-tag { font-size: 10px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--accent-1); margin-bottom: 8px; }
.dest-name { font-family: var(--ff-display); font-size: 1.8rem; font-weight: 700; line-height: 1.1; margin-bottom: 12px; color: #fff;}
.dest-desc { font-size: 13px; color: rgba(255,255,255,0.7); line-height: 1.6; margin-bottom: 16px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.dest-meta { display: flex; gap: 16px; flex-wrap: wrap; }
.dest-meta-item { display: flex; flex-direction: column; gap: 4px; }
.dest-meta-label { font-size: 9px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,0.5); }
.dest-meta-val { font-size: 11px; font-weight: 600; color: #fff; }
.dest-arrow { position: absolute; top: 16px; right: 16px; width: 36px; height: 36px; border: 1px solid rgba(255,255,255,0.2); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 14px; color: #fff; transition: all .3s; background: rgba(0,0,0,0.3); backdrop-filter: blur(4px); }
.dest-card:hover .dest-arrow { background: var(--accent-1); color: var(--text-inv); border-color: var(--accent-1); transform: rotate(45deg) scale(1.1); }
.dest-fav-btn { position: absolute; top: 16px; left: 16px; width: 36px; height: 36px; z-index: 5; border: 1px solid rgba(255,255,255,0.25); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; background: rgba(0,0,0,0.3); backdrop-filter: blur(4px); cursor: pointer; transition: all .25s cubic-bezier(0.2,0.8,0.2,1); }
.dest-fav-btn:hover { transform: scale(1.15); background: rgba(0,0,0,0.55); }
.dest-fav-btn.active { background: #e0455f; border-color: #e0455f; color: #fff; }
.dest-fav-btn.active svg { fill: currentColor; }
.dest-fav-btn svg { transition: transform .3s cubic-bezier(0.34, 1.56, 0.64, 1); }
.dest-fav-btn.pulse svg { animation: favPulse .4s cubic-bezier(0.34, 1.56, 0.64, 1); }
@keyframes favPulse { 0% { transform: scale(1); } 40% { transform: scale(1.4); } 100% { transform: scale(1); } }
.dest-rating { display: flex; gap: 4px; margin-bottom: 10px; }
.dest-star { color: var(--accent-1); font-size: 12px; }
.dest-star.half { position: relative; color: rgba(255,255,255,0.25); }
.dest-star.half::before { content: '★'; position: absolute; inset: 0; width: 50%; overflow: hidden; color: var(--accent-1); }

/* ═══ PRACTICAL CARDS ═══ */
#practical { padding: 120px 60px; }
.practical-grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border-light); border: 1px solid var(--border-light); border-radius: 8px; overflow: hidden; }
.prac-card { padding: 48px 32px 56px; background: var(--bg-surface); transition: background .4s; position: relative; cursor: pointer; outline: none; overflow: hidden; }
.prac-card:hover, .prac-card:focus-visible { background: var(--bg-surface-2); }
.prac-card::before { content:''; position:absolute; top:0; left:0; right:0; height:3px; background: var(--accent-1); transform: scaleX(0); transform-origin: left; transition: transform .5s cubic-bezier(0.2, 0.8, 0.2, 1); }
.prac-card:hover::before, .prac-card:focus-visible::before { transform: scaleX(1); }
.prac-icon { font-size: 2.5rem; margin-bottom: 24px; display: inline-flex; transition: transform .4s cubic-bezier(0.2, 0.8, 0.2, 1); }
.prac-card:hover .prac-icon { transform: scale(1.2) rotate(-5deg); }
.prac-title { font-family: var(--ff-display); font-size: 1.4rem; font-weight: 700; margin-bottom: 16px; line-height: 1.2; }
.prac-body { font-size: 14px; color: var(--text-dim); line-height: 1.8; }
.prac-body strong { color: var(--text-main); font-weight: 500; }
.prac-more { margin-top: 20px; font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-1); display: inline-flex; align-items: center; gap: 8px; opacity: 0; transform: translateY(10px); transition: all .4s cubic-bezier(0.2, 0.8, 0.2, 1); padding: 6px 12px; border-radius: 20px; border: 1px solid transparent; }
.prac-card:hover .prac-more { opacity: 1; transform: translateY(0); border-color: var(--border-med); background: var(--bg-card-hov); }
.prac-num { position: absolute; bottom: 16px; right: 24px; font-family: var(--ff-display); font-size: 4rem; font-weight: 900; color: var(--border-light); line-height: 1; transition: color .4s, transform .4s; }
.prac-card:hover .prac-num { color: var(--border-med); transform: scale(1.05) translate(-4px, -4px); }

/* ═══ SEASONS ═══ */
#seasons { padding: 120px 60px; background: var(--bg-surface); position: relative; }
.seasons-grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1fr 2.4fr; gap: 80px; align-items: start; }
.seasons-left h2 { font-family: var(--ff-display); font-size: clamp(2.2rem, 3vw, 3rem); font-weight: 700; line-height: 1.1; margin-bottom: 24px; }
.seasons-left h2 em { font-style: italic; color: var(--accent-1); font-weight: 400; }
.seasons-left p { font-size: 14px; color: var(--text-dim); line-height: 1.8; margin-bottom: 32px; }
.season-temp-scale { margin-top: 36px; }
.temp-label { font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--text-mute); margin-bottom: 12px; }
.temp-bar-wrap { display: flex; flex-direction: column; gap: 10px; }
.temp-row { display: flex; align-items: center; gap: 12px; }
.temp-season-name { font-size: 11px; font-weight: 500; color: var(--text-dim); width: 50px; flex-shrink: 0; }
.temp-track { flex: 1; height: 6px; background: var(--border-light); border-radius: 3px; overflow: hidden; }
.temp-fill { height: 100%; border-radius: 3px; transform: scaleX(0); transform-origin: left; transition: transform 1.2s cubic-bezier(.22,1,.36,1); }
.temp-fill.animated { transform: scaleX(1); }
.temp-spring { background: linear-gradient(to right, #60d060, #a0e870); width: 55%; }
.temp-summer { background: linear-gradient(to right, #ffb020, #ffe060); width: 85%; }
.temp-fall   { background: linear-gradient(to right, #e06020, #ffb040); width: 60%; }
.temp-winter { background: linear-gradient(to right, #4080d0, #80c0f0); width: 30%; }
.temp-val { font-size: 11px; color: var(--text-mute); width: 40px; text-align: right; font-weight: 600; }

.seasons-right { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.season-card { padding: 32px 28px; border: 1px solid var(--border-light); border-radius: 8px; position: relative; overflow: hidden; transition: all .4s cubic-bezier(.22,1,.36,1); cursor: pointer; background: var(--bg-card); backdrop-filter: blur(8px); }
.season-card:hover { transform: translateY(-6px); border-color: var(--accent-1); box-shadow: 0 20px 40px rgba(0,0,0,0.15); background: var(--bg-card-hov); }
.season-card::before { content:''; position:absolute; inset:0; opacity:.06; transition:opacity .4s; pointer-events:none; }
.season-card:hover::before { opacity:.18; }
.sc-spring::before { background: radial-gradient(circle at 80% 15%, #80e060 0%, transparent 65%); }
.sc-summer::before { background: radial-gradient(circle at 80% 15%, #ffb020 0%, transparent 65%); }
.sc-fall::before   { background: radial-gradient(circle at 80% 15%, #e06020 0%, transparent 65%); }
.sc-winter::before { background: radial-gradient(circle at 80% 15%, #60b0e0 0%, transparent 65%); }
.season-emoji { font-size: 2.2rem; margin-bottom: 16px; display: inline-flex; transition: transform .4s cubic-bezier(0.2, 0.8, 0.2, 1); }
.season-card:hover .season-emoji { transform: scale(1.25) rotate(-5deg); }
.season-name { font-family: var(--ff-display); font-size: 1.3rem; font-weight: 700; margin-bottom: 6px; }
.season-months { font-size: 11px; font-weight: 600; letter-spacing: .14em; color: var(--accent-1); text-transform: uppercase; margin-bottom: 16px; }
.season-desc { font-size: 13px; color: var(--text-dim); line-height: 1.8; margin-bottom: 18px; }
.season-go { font-size: 12px; color: var(--text-main); }
.season-go strong { color: var(--accent-1); }
.season-badge { position: absolute; top: 20px; right: 20px; font-size: 10px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; padding: 4px 10px; border-radius: 12px; background: var(--bg-card-hov); color: var(--accent-1); border: 1px solid var(--border-med); opacity: 0; transition: all .4s cubic-bezier(0.2, 0.8, 0.2, 1); transform: translateY(-10px); }
.season-card:hover .season-badge { opacity: 1; transform: translateY(0); }

/* ═══ CULTURE ═══ */
#culture { padding: 120px 60px; }
.culture-intro { max-width: 1200px; margin: 0 auto 60px; display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: end; }
.culture-intro h2 { font-family: var(--ff-display); font-size: clamp(2.2rem, 3.5vw, 3.2rem); font-weight: 700; line-height: 1.1; }
.culture-intro h2 em { font-style: italic; color: var(--accent-1); font-weight: 400; }
.culture-intro p { font-size: 14px; color: var(--text-dim); line-height: 1.8; }
.culture-tiles { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.culture-tile { padding: 32px 20px 28px; border: 1px solid var(--border-light); border-radius: 8px; transition: all .4s cubic-bezier(.22,1,.36,1); text-align: center; cursor: pointer; position: relative; overflow: hidden; background: var(--bg-card); }
.culture-tile::before { content:''; position:absolute; inset:0; background: radial-gradient(circle at 50% 0%, var(--border-light) 0%, transparent 70%); opacity: 0; transition: opacity .4s; }
.culture-tile:hover { border-color: var(--accent-1); transform: translateY(-8px); box-shadow: 0 16px 32px rgba(0,0,0,0.15); background: var(--bg-card-hov); z-index:2; }
.culture-tile:hover::before { opacity: 1; }
.culture-tile-icon { font-size: 2.4rem; margin-bottom: 16px; display: inline-flex; transition: transform .4s cubic-bezier(0.2, 0.8, 0.2, 1); }
.culture-tile:hover .culture-tile-icon { transform: scale(1.3) translateY(-4px); }
.culture-tile-name { font-size: 13px; font-weight: 600; color: var(--text-main); margin-bottom: 8px; }
.culture-tile-desc { font-size: 11px; color: var(--text-dim); line-height: 1.6; }

/* ═══ MARQUEE ═══ */
.marquee-section { border-top: 1px solid var(--border-light); border-bottom: 1px solid var(--border-light); overflow: hidden; background: var(--bg-card); position: relative; z-index: 10;}
.marquee-section::before, .marquee-section::after { content:''; position:absolute; top:0; bottom:0; width:100px; z-index:2; pointer-events:none; }
.marquee-section::before { left:0; background: linear-gradient(to right, var(--bg-base), transparent); }
.marquee-section::after  { right:0; background: linear-gradient(to left, var(--bg-base), transparent); }
.marquee-track { display: flex; animation: marqueeScroll 40s linear infinite; white-space: nowrap; will-change: transform; }
.marquee-track:hover { animation-play-state: paused; }
.marquee-item { padding: 18px 40px; font-family: var(--ff-display); font-style: italic; font-size: 1.2rem; color: var(--text-dim); letter-spacing: .04em; display: flex; align-items: center; gap: 20px; flex-shrink: 0; transition: color .3s, transform 0.3s; cursor: default; }
.marquee-item:hover { color: var(--text-main); transform: scale(1.05); }
.marquee-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--accent-1); opacity: .6; flex-shrink:0; }
@keyframes marqueeScroll { from{transform:translateX(0)} to{transform:translateX(-50%)} }

/* ═══ ROUTES ═══ */
#routes { padding: 140px 60px; }
.routes-grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.route-card { border: 1px solid var(--border-light); border-radius: 12px; overflow: hidden; transition: all .4s cubic-bezier(.22,1,.36,1); cursor: pointer; background: var(--bg-card); backdrop-filter: blur(10px); }
.route-card:hover { border-color: var(--accent-1); transform: translateY(-8px); box-shadow: 0 24px 50px rgba(0,0,0,0.2); background: var(--bg-card-hov); }
.route-header { padding: 32px 28px 24px; border-bottom: 1px solid var(--border-light); display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; position: relative; }
.route-header::after { content:''; position:absolute; bottom:-1px; left:0; height: 2px; background: var(--accent-1); width: 0; transition: width .6s cubic-bezier(0.2, 0.8, 0.2, 1); }
.route-card:hover .route-header::after { width: 100%; }
.route-icon { font-size: 1.8rem; margin-bottom: 12px; display: inline-flex; transition: transform .4s cubic-bezier(0.2, 0.8, 0.2, 1); }
.route-card:hover .route-icon { transform: scale(1.15) rotate(5deg); }
.route-name { font-family: var(--ff-display); font-size: 1.4rem; font-weight: 700; margin-bottom: 6px; }
.route-dist { font-size: 12px; color: var(--accent-1); letter-spacing: .08em; font-weight: 500; }
.route-miles { font-size: 11px; color: var(--text-mute); margin-top: 3px; letter-spacing: .03em; }
.route-duration { font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-1); background: var(--bg-card); padding: 6px 12px; border-radius: 20px; white-space: nowrap; flex-shrink: 0; border: 1px solid var(--border-light); transition: all .3s; }
.route-card:hover .route-duration { background: var(--accent-1); border-color: var(--accent-1); color: var(--text-inv); }
.route-body { padding: 24px 28px; }
.route-desc { font-size: 14px; color: var(--text-dim); line-height: 1.8; margin-bottom: 24px; }
.route-stops { display: flex; flex-direction: column; gap: 0; }
.route-stop { display: flex; align-items: center; gap: 16px; font-size: 13px; color: var(--text-dim); padding: 10px 0; border-bottom: 1px solid var(--border-light); transition: all .3s; position: relative; }
.route-stop:last-child { border-bottom: none; }
.route-card:hover .route-stop:hover { color: var(--text-main); padding-left: 8px; font-weight: 500; }
.route-stop-dot { width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--border-med); flex-shrink: 0; transition: all .3s; background: var(--bg-surface); z-index: 2; }
.route-card:hover .route-stop:first-child .route-stop-dot, .route-card:hover .route-stop:last-child .route-stop-dot, .route-card:hover .route-stop:hover .route-stop-dot { background: var(--accent-1); border-color: var(--accent-1); transform: scale(1.2); }
.route-connector { position: absolute; left: 4px; top: 20px; width: 2px; height: calc(100% + 2px); background: var(--border-light); z-index: 1; }
.route-stop:last-child .route-connector { display: none; }
.route-footer { padding: 20px 28px; border-top: 1px solid var(--border-light); display: flex; justify-content: space-between; align-items: center; background: rgba(0,0,0,0.05); }
.route-footer-label { font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--text-mute); }
.route-footer-val { font-size: 13px; font-weight: 600; color: var(--accent-1); }

/* ═══ TIPS ═══ */
#tips { padding: 120px 60px; background: var(--bg-surface); }
.tips-header { max-width: 1200px; margin: 0 auto 60px; }
.tips-header h2 { font-family: var(--ff-display); font-size: clamp(2.2rem, 3vw, 2.8rem); font-weight: 700; line-height: 1.1; margin-bottom: 16px; }
.tips-header h2 em { font-style: italic; color: var(--accent-1); font-weight: 400; }
.tips-header p { font-size: 14px; color: var(--text-dim); max-width: 580px; line-height: 1.8; }
.tips-grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.tip-row { padding: 28px 32px; border: 1px solid var(--border-light); border-radius: 8px; display: flex; gap: 24px; align-items: flex-start; transition: all .4s cubic-bezier(.22,1,.36,1); cursor: pointer; position: relative; overflow: hidden; background: var(--bg-card); }
.tip-row::before { content:''; position:absolute; left:0; top:0; bottom:0; width:4px; background: var(--accent-1); transform: scaleY(0); transform-origin: bottom; transition: transform .5s cubic-bezier(.22,1,.36,1); }
.tip-row:hover { border-color: var(--border-med); background: var(--bg-card-hov); transform: translateX(6px); box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
.tip-row:hover::before { transform: scaleY(1); }
.tip-icon { font-size: 1.8rem; flex-shrink: 0; transition: transform .4s cubic-bezier(0.2, 0.8, 0.2, 1); }
.tip-row:hover .tip-icon { transform: scale(1.2) rotate(-10deg); }
.tip-title { font-size: 15px; font-weight: 600; color: var(--text-main); margin-bottom: 8px; }
.tip-body { font-size: 13.5px; color: var(--text-dim); line-height: 1.7; }
.tip-body strong { color: var(--text-main); font-weight: 500; }

/* ═══ MODAL OVERLAY ═══ */
#modal-overlay {
  position: fixed; inset: 0; z-index: 1000; background: var(--modal-bg); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .4s, visibility .4s; padding: 24px;
}
#modal-overlay.open { opacity: 1; visibility: visible; pointer-events: auto; }
.modal-box {
  background: var(--bg-surface); border: 1px solid var(--border-med); border-radius: 12px;
  max-width: 750px; width: 100%; max-height: 85vh; overflow-y: auto;
  transform: scale(.9) translateY(30px); transition: transform .5s cubic-bezier(.22,1,.36,1); position: relative;
  box-shadow: 0 40px 80px rgba(0,0,0,0.5);
}
#modal-overlay.open .modal-box { transform: scale(1) translateY(0); }
.modal-header { padding: 40px 40px 0; border-bottom: 1px solid var(--border-light); padding-bottom: 24px; display: flex; justify-content: space-between; align-items: flex-start; }
.modal-tag { font-size: 11px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--accent-1); margin-bottom: 12px; }
.modal-title { font-family: var(--ff-display); font-size: 2.4rem; font-weight: 700; line-height: 1.1; }
.modal-close { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--border-light); background: var(--bg-card); color: var(--text-dim); cursor: pointer; font-size: 20px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: all .3s cubic-bezier(0.2, 0.8, 0.2, 1); }
.modal-close:hover { border-color: var(--accent-1); color: var(--text-inv); transform: rotate(90deg) scale(1.1); background: var(--accent-1); }
.modal-body { padding: 32px 40px 40px; }
.modal-body p { font-size: 15px; color: var(--text-dim); line-height: 1.8; margin-bottom: 20px; }
.modal-body strong { color: var(--text-main); font-weight: 500; }
.modal-facts { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin-top: 32px; }
.modal-fact { padding: 20px; border: 1px solid var(--border-light); border-radius: 8px; text-align: center; background: var(--bg-card); }
.modal-fact-num { font-family: var(--ff-display); font-size: 1.6rem; font-weight: 700; color: var(--accent-1); }
.modal-fact-label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-dim); margin-top: 6px; }
.modal-highlights { margin-top: 32px; display: flex; flex-direction: column; gap: 12px; background: var(--bg-card-hov); padding: 24px; border-radius: 8px; border-left: 3px solid var(--accent-1); }
.modal-highlight { display: flex; gap: 16px; align-items: flex-start; font-size: 14px; color: var(--text-dim); }
.modal-highlight::before { content: '→'; color: var(--accent-1); flex-shrink: 0; margin-top: 1px; font-weight: 700; }

/* ═══ FOOTER ═══ */
footer { padding: 100px 60px 40px; border-top: 1px solid var(--border-light); position: relative; background: var(--bg-base); }
footer::before { content:''; position:absolute; top:0; left:60px; right:60px; height:1px; background: linear-gradient(to right, transparent, var(--border-med), transparent); }
.footer-top { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 60px; margin-bottom: 80px; }
.footer-brand p { font-size: 14px; color: var(--text-dim); line-height: 1.8; margin-top: 20px; max-width: 280px; }
.footer-brand .nav-logo { font-size: 26px; }
.footer-social { display: flex; gap: 12px; margin-top: 32px; }
.footer-github-link {
  display: inline-flex; align-items: center; min-height: 40px; padding: 11px 16px;
  border-radius: 8px; border: 1px solid var(--border-light); background: var(--bg-card);
  color: var(--text-dim); font-size: 12px; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; text-decoration: none; transition: all .3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.footer-github-link:hover { border-color: var(--accent-1); color: var(--text-inv); background: var(--accent-1); transform: translateY(-3px); }
.footer-col h4 { font-size: 11px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--accent-1); margin-bottom: 24px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.footer-col ul a { font-size: 13.5px; color: var(--text-dim); text-decoration: none; transition: all .3s; display: flex; align-items: center; gap: 10px; }
.footer-col ul a::before { content:''; width:0; height:1px; background:var(--accent-1); transition:width .3s cubic-bezier(0.2, 0.8, 0.2, 1); flex-shrink:0; }
.footer-col ul a:hover { color: var(--text-main); padding-left: 6px; }
.footer-col ul a:hover::before { width: 16px; }
.footer-bottom { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; padding-top: 32px; border-top: 1px solid var(--border-light); }
.footer-bottom p { font-size: 12px; color: var(--text-mute); font-weight: 400; }

/* ═══ SCROLL REVEAL ═══ */
.reveal { opacity: 0; transform: translateY(40px) scale(0.98); transition: opacity .9s cubic-bezier(.22,1,.36,1), transform .9s cubic-bezier(.22,1,.36,1); }
.reveal.visible { opacity: 1; transform: translateY(0) scale(1); }
.reveal-left  { opacity: 0; transform: translateX(-40px); transition: opacity .9s cubic-bezier(.22,1,.36,1), transform .9s cubic-bezier(.22,1,.36,1); }
.reveal-right { opacity: 0; transform: translateX(40px);  transition: opacity .9s cubic-bezier(.22,1,.36,1), transform .9s cubic-bezier(.22,1,.36,1); }
.reveal-left.visible, .reveal-right.visible { opacity: 1; transform: translateX(0); }
.reveal-delay-1  { transition-delay: .1s; }
.reveal-delay-2  { transition-delay: .2s; }
.reveal-delay-3  { transition-delay: .3s; }
.reveal-delay-4  { transition-delay: .4s; }
.reveal-delay-5  { transition-delay: .5s; }

/* ═══ LAYOUT SAFETY NET ═══
   Grid/flex items default to min-width:auto, which can force overflow when
   content contains long unbreakable words (this is what broke the hero on
   mobile). Applied broadly here so it stays safe across all languages. */
.hero-content, .intro-left, .intro-right, .seasons-left, .seasons-right,
.season-card, .culture-intro > *, .section-header > *, .dest-header-wrapper > *,
.footer-top > *, .footer-col, .routes-grid > *, .tips-grid > *,
.culture-tiles > *, .practical-grid > *, .regions-track > *,
.settings-grid > *, .tools-grid > *, .theme-swatch-grid > *, .theme-swatch, .pill-group > * {
  min-width: 0;
}
h1, h2, h3, .hero-desc, .intro-body, .intro-pull, p { overflow-wrap: break-word; }

/* Fixed nav is ~90px tall at rest; offset anchor targets so headings
   never land underneath it, whether scrolled via JS or a plain # link. */
section[id], footer[id] { scroll-margin-top: 90px; }

/* ═══ RESPONSIVE ═══ */
@media (max-width: 1100px) {
  .regions-nav-btns { display: flex; }
  .regions-track {
    display: flex; grid-template-columns: none; gap: 16px;
    overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
    padding: 4px 60px 28px; margin: 0 -60px;
    -ms-overflow-style: none; scrollbar-width: none;
  }
  .regions-track::-webkit-scrollbar { display: none; }
  .region-card { flex: 0 0 300px; scroll-snap-align: center; }
  .practical-grid { grid-template-columns: repeat(2,1fr); }
  .culture-tiles { grid-template-columns: repeat(3,1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  nav { padding: 20px 24px; }
  nav.scrolled { padding: 14px 24px; }
  .nav-links { display: none; }
  .nav-actions { margin-left: auto; gap: 8px; }
  .nav-hamburger { display: flex; }
  #hero, #intro, #regions, #destinations, #practical, #seasons, #culture, #routes, #tips, #gallery, footer { padding-left: 24px; padding-right: 24px; }
  .hero-content { padding: 0 24px 80px; }
  .intro-grid { grid-template-columns: 1fr; }
  .intro-right { display: none; }
  .intro-facts { grid-template-columns: repeat(2,1fr); }
  .regions-track { padding: 4px 24px 28px; margin: 0 -24px; }
  .region-card { flex: 0 0 268px; height: 440px; }
  .practical-grid { grid-template-columns: 1fr; background: none; border: none; gap: 16px; }
  .prac-card { border: 1px solid var(--border-light); border-radius: 8px; }
  .seasons-grid { grid-template-columns: 1fr; gap: 48px; }
  .culture-tiles { grid-template-columns: repeat(2, 1fr); }
  .routes-grid { grid-template-columns: 1fr; }
  .tips-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 40px; }
  .settings-overlay { padding: 12px; align-items: stretch; }
  .settings-panel { max-height: calc(100vh - 24px); padding: 26px 18px; }
  .settings-title-row { align-items: center; }
  .settings-close { flex-basis: 40px; width: 40px; height: 40px; }
  .settings-grid, .tools-grid { grid-template-columns: 1fr; }
  .tool-card-wide { grid-row: auto; }
  .currency-tool { grid-template-columns: 1fr; }
  .tool-swap { width: 100%; }
  .theme-swatch-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
  .hero-stats { display: none; }
  .section-header { grid-template-columns: 1fr; }
  .section-header p { text-align: left; max-width: 100%; }
  .dest-header-wrapper, .regions-header-wrapper { flex-wrap: wrap; gap: 16px; }
  .regions-header-wrapper p { text-align: left; max-width: 100%; }
  .culture-intro { grid-template-columns: 1fr; gap: 32px; }
  .dest-track { padding: 10px 24px 30px; margin: 0 -24px;}
  .dest-card { flex: 0 0 280px; height: 380px;}
  .modal-facts { grid-template-columns: 1fr 1fr; }
  .modal-header, .modal-body { padding-left: 24px; padding-right: 24px; }
  #back-top { bottom: 20px; right: 20px; }
}
@media (max-width: 540px) {
  .tool-two-col { grid-template-columns: 1fr; }
  .tool-card { padding: 22px 18px; }
  .culture-tiles { grid-template-columns: repeat(2,1fr); }
  .seasons-right { grid-template-columns: 1fr; }
  .modal-facts { grid-template-columns: 1fr; }
  .region-card { flex-basis: 240px; height: 420px; }
}
@media (max-width: 400px) {
  .hero-cta { width: 100%; }
  .hero-cta .btn-primary, .hero-cta .btn-ghost { flex: 1 1 auto; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  .dest-track, .regions-track { scroll-behavior: auto; }
}

/* Manual "Reduce Motion" toggle in Settings — mirrors the OS-level query
   above so people get the same calmer experience whether their system
   preference is set or they just flip the in-page switch. */
html[data-reduce-motion="true"] *,
html[data-reduce-motion="true"] *::before,
html[data-reduce-motion="true"] *::after {
  animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important;
}
html[data-reduce-motion="true"] { scroll-behavior: auto; }
html[data-reduce-motion="true"] .dest-track,
html[data-reduce-motion="true"] .regions-track { scroll-behavior: auto; }
