@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

/* ===== ROOT & BASE (Rugged / backcountry: earth tones, warm & weathered) ===== */
:root {
  /* V2 Premium Design Tokens */
  --background: 220 20% 4%;
  --foreground: 40 20% 92%;
  --card: 220 18% 7%;
  --card-foreground: 40 20% 92%;
  --popover: 220 18% 7%;
  --popover-foreground: 40 20% 92%;
  --primary: 40 60% 55%;
  --primary-foreground: 220 20% 4%;
  --secondary: 220 15% 12%;
  --secondary-foreground: 40 20% 85%;
  --muted: 220 15% 15%;
  --muted-foreground: 220 10% 55%;
  --accent: 40 45% 45%;
  --accent-foreground: 40 20% 95%;
  --destructive: 0 84.2% 60.2%;
  --destructive-foreground: 210 40% 98%;
  --border: 220 15% 14%;
  --input: 220 15% 14%;
  --ring: 40 60% 55%;
  --radius: 0.5rem;

  /* Premium Brand Colors */
  --gold: 40 60% 55%;
  --gold-light: 40 50% 70%;
  --gold-dark: 40 70% 35%;
  --midnight: 220 20% 4%;
  --charcoal: 220 18% 7%;
  --slate-dark: 220 15% 12%;
  --ice: 200 30% 85%;

  /* Typography */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;

  /* Easing */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-smooth: cubic-bezier(0.22, 1, 0.36, 1);
  --brand-orange: 20 90% 52%; /* hsl(20, 92%, 52%) -> #F46615 is approx HSL(20, 91%, 52%) */
  --brand-spot: #F46615;
}

/* Light Theme Adjustments (Maintain V2 feel but lighter) */
[data-theme="light"] {
  --background: 40 20% 98%;
  --foreground: 220 20% 10%;
  --card: 0 0% 100%;
  --card-foreground: 220 20% 10%;
  --muted: 40 10% 94%;
  --muted-foreground: 220 10% 45%;
  --border: 40 10% 90%;
  --input: 40 10% 90%;
}
[data-theme="light"] .aurora-bg {
  background: linear-gradient(135deg, hsl(35 25% 96%) 0%, hsl(32 30% 94%) 50%, hsl(35 25% 96%) 100%);
}
[data-theme="light"] .glass {
  background: hsl(var(--glass-bg));
  border: 1px solid hsl(var(--glass-border));
  box-shadow: 0 4px 24px hsl(0 0% 0% / 0.06);
}
[data-theme="light"] .hero-overlay {
  background: linear-gradient(to bottom, hsl(25 30% 12% / 0.5), hsl(25 30% 12% / 0.2), hsl(35 25% 97%));
}
[data-theme="light"] .bg-white\/5 { background-color: hsl(0 0% 0% / 0.04); }
[data-theme="light"] .hover\:bg-white\/10:hover { background-color: hsl(0 0% 0% / 0.06); }
[data-theme="light"] .glass-strong {
  background: hsl(0 0% 100% / 0.85);
  border: 1px solid hsl(var(--border) / 0.8);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
}

/* Theme toggle button (nav) */
.theme-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--card) / 0.6);
  color: hsl(var(--muted-foreground));
  cursor: pointer;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}
.theme-toggle-btn:hover {
  color: hsl(var(--foreground));
  background: hsl(var(--muted) / 0.8);
}
.theme-toggle-btn:focus-visible {
  outline: 2px solid hsl(var(--ring));
  outline-offset: 2px;
}
.theme-toggle-btn svg {
  width: 1.25rem;
  height: 1.25rem;
}
.theme-toggle-btn .icon-sun,
.theme-toggle-btn .icon-moon { display: none; }
[data-theme="light"] .theme-toggle-btn .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle-btn .icon-moon,
:root:not([data-theme]) .theme-toggle-btn .icon-moon { display: block; }

/* Premium easing (smooth, high-end feel) */
:root {
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-smooth: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out-smooth: cubic-bezier(0.65, 0, 0.35, 1);
}

* { box-sizing: border-box; border-color: hsl(var(--border)); }
html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}
body {
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4 { font-family: 'Playfair Display', Georgia, serif; }

/* Skip link: visible on focus only (a11y) */
.skip-link {
  position: fixed;
  top: -100px;
  left: 0.5rem;
  z-index: 9999;
  padding: 0.5rem 1rem;
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 0.375rem;
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 0.5rem;
  outline: 2px solid hsl(var(--foreground));
  outline-offset: 2px;
}

/* Focus ring for keyboard / a11y (premium look) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid hsl(var(--primary));
  outline-offset: 2px;
}

/* Nav & interactive link transitions (smooth feel) */
#navbar {
  transition-timing-function: var(--ease-out-smooth);
}
nav a,
footer a {
  transition-timing-function: var(--ease-out-smooth);
}

/* Logo SVG (navbar) */
#nav-logo {
  height: 64px;
  width: auto;
  transition: transform 0.3s var(--ease-out-smooth);
}
.nav-logo-link:hover #nav-logo {
  transform: scale(1.05);
}
#nav-logo .st0 { fill: currentColor; }
#nav-logo .st1 { fill: var(--brand-spot); }

/* Footer List Reset */
footer ul {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}
footer ul li {
  list-style: none !important;
}
footer ul li::before {
  content: none !important;
}

/* Map Fix - OpenStreetMap (Leaflet) Container */
#map {
  height: 100%;
  width: 100%;
  background: hsl(var(--card));
  border-radius: 1rem;
}
.leaflet-container {
  background: hsl(var(--card)) !important;
  font-family: var(--font-body) !important;
}
.leaflet-tile {
  filter: grayscale(1) invert(1) brightness(0.8) contrast(1.2) sepia(0.2) hue-rotate(180deg);
}
[data-theme="dark"] .leaflet-tile {
  filter: grayscale(1) invert(1) brightness(0.7) contrast(1.3) sepia(0.3) hue-rotate(180deg);
}
[data-theme="light"] .leaflet-tile {
  filter: grayscale(1) contrast(1.1) brightness(0.9) sepia(0.1);
}
.leaflet-control-zoom {
  border: none !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1) !important;
}
.leaflet-control-zoom a {
  background: hsl(var(--background)) !important;
  color: hsl(var(--foreground)) !important;
  border-bottom: 1px solid hsl(var(--border)) !important;
}
.leaflet-popup-content-wrapper {
  background: hsl(var(--card)) !important;
  color: hsl(var(--foreground)) !important;
  border: 1px solid hsl(var(--border)) !important;
  border-radius: 0.75rem !important;
  box-shadow: 0 10px 25px -5px rgba(0,0,0,0.1) !important;
}
.leaflet-popup-tip {
  background: hsl(var(--card)) !important;
}

/* Logo SVG (footer) */
.footer-logo-mask {
  display: inline-block;
  width: 180px;
  height: 32px;
  background-color: currentColor;
  -webkit-mask: url("/assets/brand/t2ak-logo.svg") no-repeat center / contain;
  mask: url("/assets/brand/t2ak-logo.svg") no-repeat center / contain;
}
/* Mega menu (desktop) */
.nav-mega-wrap {
  position: relative;
}
.nav-mega-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem 0;
  color: hsl(var(--muted-foreground));
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.2s;
}
.nav-mega-trigger:hover,
.nav-mega-wrap:focus-within .nav-mega-trigger {
  color: hsl(var(--primary));
}
.nav-mega-panel {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 0.25rem;
  min-width: 420px;
  padding: 1.25rem 1.5rem;
  background: hsl(var(--popover));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  box-shadow: 0 20px 40px hsl(0 0% 0% / 0.35);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
  z-index: 100;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.nav-mega-wrap:hover .nav-mega-panel,
.nav-mega-wrap:focus-within .nav-mega-panel {
  opacity: 1;
  visibility: visible;
}
.nav-mega-panel a {
  display: block;
  padding: 0.35rem 0;
  font-size: 0.875rem;
  color: hsl(var(--foreground));
  text-decoration: none;
  transition: color 0.2s;
}
.nav-mega-panel a:hover {
  color: hsl(var(--primary));
}
.nav-mega-panel .mega-heading {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: hsl(var(--muted-foreground));
  margin-bottom: 0.5rem;
  grid-column: 1 / -1;
}
.nav-mega-single .nav-mega-panel {
  min-width: 220px;
  grid-template-columns: 1fr;
}

/* ===== LAYOUT ===== */
.container { width: 100%; margin-left: auto; margin-right: auto; padding-left: 1rem; padding-right: 1rem; }
@media (min-width: 768px) { .container { padding-left: 2rem; padding-right: 2rem; } }
@media (min-width: 1024px) { .container { padding-left: 3rem; padding-right: 3rem; max-width: 1280px; } }
.max-w-4xl { max-width: 56rem; }
.max-w-5xl { max-width: 64rem; }
.max-w-6xl { max-width: 72rem; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* ===== FLEX & GRID ===== */
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 0.25rem; }
.gap-1_5 { gap: 0.375rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.grid { display: grid; }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.flex-1 { flex: 1 1 0%; }
.shrink-0 { flex-shrink: 0; }
@media (min-width: 768px) {
  .md\:flex-row { flex-direction: row; }
  .md\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
  .md\:col-span-2 { grid-column: span 2 / span 2; }
}
@media (min-width: 1024px) {
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
  .lg\:grid-cols-5 { grid-template-columns: repeat(5, 1fr); }
  .lg\:col-span-2 { grid-column: span 2 / span 2; }
  .lg\:row-span-2 { grid-row: span 2 / span 2; }
}

/* ===== SPACING ===== */
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.pb-6 { padding-bottom: 1.5rem; }
.pt-4 { padding-top: 1rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-16 { margin-bottom: 4rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-10 { margin-top: 2.5rem; }
.ml-2 { margin-left: 0.5rem; }

/* ===== TYPOGRAPHY ===== */
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.text-5xl { font-size: 3rem; line-height: 1; }
.font-mono { font-family: 'JetBrains Mono', monospace; }
.font-serif { font-family: 'Playfair Display', serif; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.uppercase { text-transform: uppercase; }
.leading-relaxed { line-height: 1.625; }
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
@media (min-width: 768px) {
  .md\:text-4xl { font-size: 2.25rem; }
  .md\:text-5xl { font-size: 3rem; }
  .md\:text-6xl { font-size: 3.75rem; }
  .md\:text-7xl { font-size: 4.5rem; }
}
@media (min-width: 1024px) { .lg\:text-8xl { font-size: 6rem; } }

/* ===== COLORS ===== */
.text-foreground { color: hsl(var(--foreground)); }
.text-foreground\/90 { color: hsl(210 40% 96% / 0.9); }
.text-muted-foreground { color: hsl(var(--muted-foreground)); }
.text-primary { color: hsl(var(--primary)); }
.text-accent { color: hsl(var(--accent)); }
.text-destructive { color: hsl(var(--destructive)); }
.bg-background { background-color: hsl(var(--background)); }
.bg-primary { background-color: hsl(var(--primary)); }
.bg-primary\/10 { background-color: hsl(var(--primary) / 0.1); }
.bg-primary\/15 { background-color: hsl(var(--primary) / 0.15); }
.bg-primary\/20 { background-color: hsl(var(--primary) / 0.2); }
.bg-primary\/3 { background-color: hsl(var(--primary) / 0.03); }
.bg-muted { background-color: hsl(var(--muted)); }
.bg-muted\/80 { background-color: hsl(var(--muted) / 0.8); }
.bg-white\/5 { background-color: hsl(0 0% 100% / 0.05); }
.bg-accent\/20 { background-color: hsl(var(--accent) / 0.2); }
.bg-destructive\/10 { background-color: hsl(var(--destructive) / 0.1); }
.border-border { border-color: hsl(var(--border)); }
.border-border\/30 { border-color: hsl(var(--border) / 0.3); }
.border-border\/40 { border-color: hsl(var(--border) / 0.4); }
.border-border\/60 { border-color: hsl(var(--border) / 0.6); }
.border-primary\/30 { border-color: hsl(var(--primary) / 0.3); }
.border-accent\/40 { border-color: hsl(var(--accent) / 0.4); }
.border-destructive\/30 { border-color: hsl(var(--destructive) / 0.3); }
.ring-1 { box-shadow: 0 0 0 1px hsl(var(--ring)); }
.ring-primary\/20 { box-shadow: 0 0 0 1px hsl(var(--primary) / 0.2); }
.ring-primary\/30 { box-shadow: 0 0 0 1px hsl(var(--primary) / 0.3); }

/* ===== BORDERS & RADIUS ===== */
.rounded-full { border-radius: 9999px; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.border { border-width: 1px; }
.border-t { border-top-width: 1px; }

/* ===== EFFECTS ===== */
.backdrop-blur-xl { -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); }
.backdrop-blur-2xl { -webkit-backdrop-filter: blur(40px); backdrop-filter: blur(40px); }
.blur-3xl { filter: blur(48px); }
.blur-\[120px\] { filter: blur(120px); }
.transition-all { transition-property: all; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.duration-300 { transition-duration: 300ms; }
.duration-500 { transition-duration: 500ms; }
.duration-700 { transition-duration: 700ms; }
.cursor-pointer { cursor: pointer; }
.pointer-events-none { pointer-events: none; }
.overflow-hidden { overflow: hidden; }
.relative { position: relative; }
.absolute { position: absolute; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.inset-x-0 { left: 0; right: 0; }
.bottom-6 { bottom: 1.5rem; }
.bottom-8 { bottom: 2rem; }
.left-6 { left: 1.5rem; }
.top-1\/2 { top: 50%; }
.left-1\/2 { left: 50%; }
.-translate-x-1\/2 { transform: translateX(-50%); }
.-translate-y-1\/2 { transform: translateY(-50%); }
.object-cover { object-fit: cover; }
.aspect-\[3\/4\] { aspect-ratio: 3/4; }
@media (min-width: 768px) { .md\:aspect-\[4\/5\] { aspect-ratio: 4/5; } }
.min-h-screen { min-height: 100vh; }
.w-full { width: 100%; }
.max-w-xl { max-width: 36rem; }
.max-w-2xl { max-width: 42rem; }
.resize-none { resize: none; }
.outline-none { outline: 2px solid transparent; outline-offset: 2px; }

/* ===== KEYFRAMES ===== */
@keyframes auroraFlow {
  0% { background-position: 0% 50%; opacity: 0.4; }
  50% { background-position: 100% 50%; opacity: 0.8; }
  100% { background-position: 0% 50%; opacity: 0.4; }
}
@keyframes snowfall {
  0% { transform: translateY(-10vh) translateX(0); opacity: 1; }
  100% { transform: translateY(110vh) translateX(20px); opacity: 0.3; }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 20px hsl(var(--primary) / 0.2); }
  50% { box-shadow: 0 0 40px hsl(var(--primary) / 0.4); }
}

/* Section reveal on scroll (premium feel) */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease-out-smooth), transform 0.8s var(--ease-out-smooth);
}
.reveal.reveal-in {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .reveal.reveal-in { transform: none; }
}

/* ===== CUSTOM UTILITIES ===== */
.glass {
  background: hsl(var(--glass-bg));
  border: 1px solid hsl(var(--glass-border));
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
}
.glass-strong {
  background: hsl(210 40% 12% / 0.8);
  border: 1px solid hsl(210 40% 30% / 0.4);
  -webkit-backdrop-filter: blur(40px);
  backdrop-filter: blur(40px);
}
.aurora-bg {
  background: linear-gradient(135deg, hsl(207 63% 11%) 0%, hsl(210 60% 5%) 30%, hsl(207 63% 11%) 60%, hsl(200 40% 15%) 100%);
}
/* Hero overlay: same as React (from-background/60 via-background/30 to-background) */
.hero-overlay {
  background: linear-gradient(to bottom, hsl(210 45% 8% / 0.6), hsl(210 45% 8% / 0.3), hsl(210 45% 8%));
}
/* Primary CTA: subtle top highlight like original */
/* Hero primary CTA: gradient green → teal + raised shadow (match React app) */
.btn-hero-primary {
  background: linear-gradient(90deg, hsl(var(--primary)), hsl(142 45% 35%)) !important;
  box-shadow:
    0 1px 0 0 hsl(0 0% 100% / 0.2),
    0 4px 14px hsl(var(--primary) / 0.35),
    0 0 20px hsl(var(--primary) / 0.2);
  border: none;
  color: hsl(var(--primary-foreground)) !important;
  transition: opacity 0.2s, box-shadow 0.2s, transform 0.2s;
}
.btn-hero-primary:hover {
  opacity: 0.95;
  box-shadow:
    0 1px 0 0 hsl(0 0% 100% / 0.25),
    0 6px 20px hsl(var(--primary) / 0.4),
    0 0 24px hsl(var(--primary) / 0.25);
}
/* Hero secondary: underlined text link (no pill) */
.btn-hero-secondary {
  color: hsl(var(--foreground));
  text-decoration: underline;
  text-underline-offset: 4px;
  font-weight: 600;
  font-size: 1.125rem;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: color 0.2s;
}
.btn-hero-secondary:hover {
  color: hsl(var(--primary));
}
.text-foreground-90 { color: hsl(210 40% 96% / 0.9); }
.grain { position: relative; }
.grain::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.underline { text-decoration: underline; }
.underline-offset-4 { text-underline-offset: 4px; }
.aurora-glow {
  background: linear-gradient(120deg, transparent 20%, hsl(var(--primary) / 0.08) 40%, hsl(var(--primary) / 0.12) 50%, hsl(var(--primary) / 0.08) 60%, transparent 80%);
  background-size: 200% 200%;
  animation: auroraFlow 12s ease-in-out infinite;
  mix-blend-mode: screen;
  filter: blur(60px);
}
.text-gradient-aurora {
  background-image: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--glacier)));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.text-gradient-copper {
  background-image: linear-gradient(135deg, hsl(var(--copper)), hsl(30 70% 65%));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
/* Blob backgrounds (React parity) */
.bg-copper-5 { background: hsl(var(--copper) / 0.05); }
.bg-glacier-5 { background: hsl(var(--glacier) / 0.05); }
.animate-fade-in-up {
  animation: fadeInUp 0.9s var(--ease-out-smooth) forwards;
  opacity: 0;
}
.animate-float { animation: float 6s var(--ease-in-out-smooth) infinite; }
.animate-pulse-glow { animation: pulseGlow 3s ease-in-out infinite; }
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }
.delay-700 { animation-delay: 0.7s; }
.hover-lift {
  transition: transform 0.35s var(--ease-out-smooth), box-shadow 0.35s var(--ease-out-smooth);
}
.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px hsl(210 60% 5% / 0.5);
}
/* Trip Builder selected chip (React: shadow-lg shadow-primary/20) */
.planner-chip.bg-primary,
.planner-chip-array.bg-primary,
.planner-chip-diet.bg-primary {
  box-shadow: 0 10px 15px -3px hsl(var(--primary) / 0.2), 0 4px 6px -4px hsl(var(--primary) / 0.2);
}
/* Trip Builder: mobile layout — no overflow, centered, touch-friendly chips */
#planner {
  overflow-x: hidden;
}
#planner-content {
  min-width: 0;
  width: 100%;
}
/* Day card: Morning / Afternoon / Evening slots */
.itinerary-day-card .itinerary-day-slots { padding-left: 1.5rem; padding-right: 1.5rem; padding-bottom: 1.5rem; }
.itinerary-slot { margin-bottom: 0; }
.itinerary-slot-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: hsl(var(--primary));
  margin-bottom: 0.35rem;
}
.itinerary-slot-text {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: hsl(var(--muted-foreground));
}
/* Travel-between-days card */
.itinerary-travel-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  margin: 0.5rem 0;
  background: hsl(var(--muted) / 0.5);
  border: 1px dashed hsl(var(--border));
  border-radius: 1rem;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}
.itinerary-travel-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  background: hsl(var(--primary) / 0.15);
  color: hsl(var(--primary));
  flex-shrink: 0;
}
.itinerary-travel-icon svg { width: 1.25rem; height: 1.25rem; }
.itinerary-travel-text { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; }
.itinerary-travel-label { font-size: 0.875rem; font-weight: 600; color: hsl(var(--foreground)); }
.itinerary-travel-duration { font-size: 0.75rem; color: hsl(var(--muted-foreground)); }
@media (max-width: 767px) {
  #planner-content {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  #planner .planner-chip,
  #planner .planner-chip-array,
  #planner .planner-chip-diet {
    min-height: 44px;
    padding: 0.5rem 0.875rem;
    font-size: 0.9375rem;
  }
  #planner #progress-bar .rounded-full {
    flex-shrink: 0;
    min-width: 2.5rem;
    min-height: 2.5rem;
  }
}
/* Regions & Tools: icon hover when card has .group */
.group:hover .icon-on-hover,
.group:focus-within .icon-on-hover {
  color: hsl(var(--primary));
}
.group .icon-on-hover {
  transition: color 0.3s ease;
}
/* Seasons: image hover scale (React parity) */
.season-image-wrap .season-image {
  transition: transform 0.7s ease;
}
.season-image-wrap:hover .season-image {
  transform: scale(1.05);
}
.season-overlay {
  background: linear-gradient(to top, hsl(var(--background) / 0.8), transparent 30%, transparent);
  pointer-events: none;
}
/* Regions: 5-col grid, expanded card spans 2 (React parity) */
.regions-grid {
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}
@media (min-width: 1024px) {
  .regions-grid {
    grid-template-columns: repeat(5, 1fr);
  }
  .region-card--active {
    grid-column: span 2;
    grid-row: span 2;
  }
}
.region-card--active .icon-on-hover {
  color: hsl(var(--primary));
}
/* Tools: 2-col md, 3-col lg (React parity) */
.tools-grid {
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .tools-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .tools-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
/* Footer: 4-col grid, logo block spans 2 (React parity) */
.footer-grid {
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .footer-brand {
    grid-column: span 2;
  }
}

/* Region map (from Go-Static-Site): path hover/active */
.region-map-path:hover,
.region-map-path.active {
  fill: hsla(190, 92%, 52%, 0.2);
  stroke: url(#region-map-stroke);
  stroke-width: 2.2;
  filter: url(#region-map-glow);
}
.region-map-btn.active,
.region-map-btn:focus {
  border-color: hsl(var(--primary) / 0.4);
  background: hsl(var(--glass-bg));
  backdrop-filter: blur(24px);
}

/* Empty state (from Go-Static-Site) */
.empty-state {
  padding: 2rem;
  text-align: center;
  border-radius: 1rem;
  background: hsl(var(--glass-bg));
  border: 1px solid hsl(var(--glass-border));
  backdrop-filter: blur(24px);
}
.empty-state-icon {
  width: 3.5rem;
  height: 3.5rem;
  margin: 0 auto 1.25rem;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, hsl(var(--primary) / 0.2), hsl(var(--accent) / 0.1));
  border: 1px solid hsl(var(--border) / 0.6);
  color: hsl(var(--foreground) / 0.85);
}
.empty-state-title { font-family: 'Playfair Display', serif; font-size: 1.25rem; margin-bottom: 0.5rem; }
.empty-state-desc { font-size: 0.875rem; color: hsl(var(--muted-foreground)); max-width: 28rem; margin-left: auto; margin-right: auto; }
.empty-state-action { margin-top: 1.5rem; }

/* Loading placeholder (from Go-Static-Site) */
.loading-placeholder {
  padding: 1.5rem;
  border-radius: 1rem;
  background: hsl(var(--glass-bg));
  border: 1px solid hsl(var(--glass-border));
}
.loading-placeholder .line {
  height: 0.875rem;
  border-radius: 9999px;
  background: hsl(0 0% 100% / 0.1);
  animation: loading-pulse 1.5s ease-in-out infinite;
}
@keyframes loading-pulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .animate-fade-in-up { animation-duration: 0.3s; }
  .animate-float { animation: none; }
  .hover-lift:hover { transform: none; }
  .season-image-wrap:hover .season-image { transform: none; }
}

/* Directory card pills */
.dir-pills { display: flex; flex-wrap: wrap; gap: 0.375rem; }
.pill-season,
.pill-best-time { font-size: 0.75rem; padding: 0.25rem 0.625rem; border-radius: 9999px; border: 1px solid hsl(var(--border) / 0.6); background: hsl(0 0% 100% / 0.05); color: hsl(var(--muted-foreground)); }
.pill-dietary,
.pill-free-entry { font-size: 0.75rem; padding: 0.25rem 0.625rem; border-radius: 9999px; border: 1px solid hsl(var(--primary) / 0.3); background: hsl(var(--primary) / 0.15); color: hsl(var(--primary)); }
.pill-amenity { font-size: 0.75rem; padding: 0.25rem 0.625rem; border-radius: 9999px; border: 1px solid hsl(var(--primary) / 0.3); background: hsl(var(--primary) / 0.1); color: hsl(var(--primary)); }
.pill-booking { font-size: 0.75rem; padding: 0.25rem 0.625rem; border-radius: 9999px; border: 1px solid hsl(var(--border) / 0.6); background: hsl(var(--muted) / 0.8); color: hsl(var(--muted-foreground)); }
.pill-must-see { font-size: 0.75rem; padding: 0.25rem 0.625rem; border-radius: 9999px; background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); }
.pill-difficulty-easy { font-size: 0.75rem; padding: 0.25rem 0.625rem; border-radius: 9999px; border: 1px solid hsl(var(--primary) / 0.3); background: hsl(var(--primary) / 0.15); color: hsl(var(--primary)); }
.pill-difficulty-moderate { font-size: 0.75rem; padding: 0.25rem 0.625rem; border-radius: 9999px; border: 1px solid hsl(var(--accent) / 0.4); background: hsl(var(--accent) / 0.2); color: hsl(var(--accent)); }
.pill-difficulty-hard { font-size: 0.75rem; padding: 0.25rem 0.625rem; border-radius: 9999px; border: 1px solid hsl(var(--destructive) / 0.3); background: hsl(var(--destructive) / 0.1); color: hsl(var(--destructive)); }

/* Directory card link bar (website, social, maps) */
.card-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid hsl(var(--border) / 0.5);
}
.card-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  min-height: 2rem;
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  color: hsl(var(--muted-foreground));
  transition: color 0.2s, background-color 0.2s;
}
.card-link:hover {
  color: hsl(var(--primary));
  background-color: hsl(var(--primary) / 0.15);
}
.card-link:focus-visible {
  outline: 2px solid hsl(var(--primary));
  outline-offset: 2px;
}
.card-link svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.section-padding {
  padding-top: 6rem; padding-bottom: 6rem;
  padding-left: 1.5rem; padding-right: 1.5rem;
}
@media (min-width: 768px) { .section-padding { padding-left: 3rem; padding-right: 3rem; } }
@media (min-width: 1024px) { .section-padding { padding-left: 5rem; padding-right: 5rem; } }

.snowflake {
  position: absolute;
  width: 3px; height: 3px;
  background: hsl(var(--snow));
  border-radius: 50%;
  animation: snowfall linear infinite;
  pointer-events: none;
}

/* ===== FORM ===== */
input, textarea, button {
  font-family: inherit;
  font-size: inherit;
}
input:focus, textarea:focus {
  outline: none;
  box-shadow: 0 0 0 1px hsl(var(--primary) / 0.3);
}
.placeholder\:text-muted-foreground::placeholder { color: hsl(var(--muted-foreground)); }
.disabled\:opacity-30:disabled { opacity: 0.3; }
.cursor-not-allowed { cursor: not-allowed; }
.opacity-30 { opacity: 0.3; }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: hsl(var(--deep)); }
::-webkit-scrollbar-thumb { background: hsl(var(--muted)); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: hsl(var(--muted-foreground)); }

/* ===== Z-INDEX ===== */
.z-10 { z-index: 10; }

/* ===== TRACKING ===== */
.tracking-\[0\.3em\] { letter-spacing: 0.3em; }
.tracking-wider { letter-spacing: 0.05em; }

/* ===== SPACE ===== */
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }
.space-y-8 > * + * { margin-top: 2rem; }

.bg-cover { background-size: cover; }
.bg-center { background-position: center; }
.bg-no-repeat { background-repeat: no-repeat; }
.bg-transparent { background-color: transparent; }
.hidden { display: none; }
.block { display: block; }
.inline { display: inline; }
@media (min-width: 768px) {
  .md\:flex { display: flex; }
  .md\:hidden { display: none; }
}
@media (max-width: 767px) {
  .md\:hidden.mobile-hidden { display: none; }
}

/* ===== FULL-SCREEN MOBILE MENU ===== */
.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s var(--ease-out-smooth), visibility 0.3s var(--ease-out-smooth);
}
.mobile-menu-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.mobile-menu-backdrop {
  position: absolute;
  inset: 0;
  background: hsl(210 45% 8% / 0.96);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.mobile-menu-panel {
  position: relative;
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  background: transparent;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 1.5rem 1.25rem;
  flex-shrink: 0;
}
.mobile-menu-close {
  color: hsl(var(--foreground));
  flex-shrink: 0;
}
.mobile-menu-nav {
  display: flex;
  flex-direction: column;
  padding: 0 1.5rem 2rem;
  gap: 0;
  flex: 1;
}
.mobile-menu-link {
  display: block;
  padding: 1rem 1rem;
  font-size: 1.35rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  text-decoration: none;
  border-radius: 0.5rem;
  transition: color 0.2s, background-color 0.2s;
  letter-spacing: 0.02em;
}
.mobile-menu-link:hover {
  color: hsl(var(--primary));
  background: hsl(var(--primary) / 0.1);
}
.mobile-menu-group {
  border-bottom: 1px solid hsl(var(--border) / 0.4);
}
.mobile-menu-group-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1rem 1rem;
  font-size: 1.35rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  letter-spacing: 0.02em;
  transition: color 0.2s, background-color 0.2s;
  border-radius: 0.5rem;
}
.mobile-menu-group-btn:hover {
  color: hsl(var(--primary));
  background: hsl(var(--primary) / 0.1);
}
.mobile-menu-group-btn[aria-expanded="true"] .mobile-menu-chevron {
  transform: rotate(180deg);
}
.mobile-menu-chevron {
  display: inline-block;
  width: 1.25rem;
  height: 1.25rem;
  transition: transform 0.25s ease;
  vertical-align: middle;
}
.mobile-menu-sub {
  display: none;
  flex-direction: column;
  padding: 0 0 0.5rem 1rem;
  gap: 0;
}
.mobile-menu-sub.is-open {
  display: flex;
}
.mobile-menu-sublink {
  display: block;
  padding: 0.75rem 0.75rem 0.75rem 0.5rem;
  font-size: 1.15rem;
  font-weight: 500;
  color: hsl(var(--muted-foreground));
  text-decoration: none;
  border-radius: 0.375rem;
  transition: color 0.2s, background-color 0.2s;
}
.mobile-menu-sublink:hover {
  color: hsl(var(--primary));
  background: hsl(var(--primary) / 0.08);
}
.mobile-menu-cta {
  display: block;
  margin-top: 1.25rem;
  padding: 1.25rem 1.5rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: hsl(var(--primary-foreground));
  background: hsl(var(--primary));
  text-align: center;
  text-decoration: none;
  border-radius: 9999px;
  transition: opacity 0.2s, transform 0.2s;
  box-shadow: 0 0 20px hsl(var(--primary) / 0.3);
}
.mobile-menu-cta:hover {
  opacity: 0.95;
  transform: scale(1.02);
}
@media (min-width: 768px) {
  .mobile-menu-overlay { display: none !important; }
}
.w-6 { width: 1.5rem; }
.h-6 { height: 1.5rem; }
.w-8 { width: 2rem; }
.h-8 { height: 2rem; }
.w-12 { width: 3rem; }
.h-0\.5 { height: 0.125rem; }
.w-96 { width: 24rem; }
.h-96 { height: 24rem; }
.w-80 { width: 20rem; }
.h-80 { height: 20rem; }
.min-h-\[120px\] { min-height: 120px; }
.rotate-90 { transform: rotate(90deg); }
.col-span-2 { grid-column: span 2 / span 2; }
.col-span-full { grid-column: 1 / -1; }

/* ===== BACK TO TOP ===== */
.back-to-top {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  opacity: 0;
  visibility: hidden;
  transform: translateY(0.5rem);
  transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
}
.back-to-top.back-to-top-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top-progress {
  height: 3px;
  width: 0;
  background: hsl(var(--primary));
  border-radius: 2px;
  margin-bottom: 0.25rem;
  transition: width 0.15s ease-out;
}
.back-to-top-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
  background: hsl(var(--glass-bg));
  border: 1px solid hsl(var(--glass-border));
  color: hsl(var(--foreground));
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 4px 12px hsl(0 0% 0% / 0.15);
  transition: background 0.2s, transform 0.2s;
}
.back-to-top-btn:hover {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}
.back-to-top-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.back-to-top-label {
  white-space: nowrap;
}

/* On this page (long guides) */
.on-this-page a {
  display: inline-block;
}
main h2[id] {
  scroll-margin-top: 5rem;
}

/* FAQ: details/summary accordion */
.faq-item {
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.faq-item[open] {
  border-color: hsl(var(--border));
  box-shadow: 0 2px 8px hsl(0 0% 0% / 0.08);
}
.faq-question {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.faq-question::-webkit-details-marker { display: none; }
.faq-question::after {
  content: '';
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  margin-left: 0.5rem;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.6;
  transition: transform 0.2s ease;
}
.faq-item[open] .faq-question::after {
  transform: rotate(180deg);
}
.faq-question::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
}
.faq-answer p { margin: 0; }
.faq-answer p + p { margin-top: 0.75rem; }
.faq-answer a { transition: opacity 0.2s; }
.faq-answer a:hover { opacity: 0.9; }

/* Breadcrumb: tappable trail with chevrons */
.breadcrumb-chevron {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}
.breadcrumb-link,
.breadcrumb-current {
  font-size: 0.875rem;
}

/* Nav: you are here (current section) */
nav a.nav-current {
  font-weight: 600;
}

/* Directory card chips (price/duration/location) */
.directory-chip {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 9999px;
  background: hsl(var(--muted));
  color: hsl(var(--muted-foreground));
}

/* Card quick actions (show on hover) */
.card-quick-actions {
  opacity: 0;
  transition: opacity 0.2s ease;
}
.group:hover .card-quick-actions {
  opacity: 1;
}
@media (hover: none) {
  .card-quick-actions { opacity: 1; }
}

/* ===== PRINT ===== */
@media print {
  .skip-link,
  header,
  nav,
  .mobile-menu-overlay,
  .btn-hero-primary,
  .btn-hero-secondary,
  #snow-container,
  #back-to-top,
  .aurora-glow,
  button:not(.print-show),
  .planner-loading,
  .no-print { display: none !important; }
  body { background: #fff; color: #1a1a1a; }
  a { color: #0d47a1; }
  .section-padding { padding-top: 1rem; padding-bottom: 1rem; }
  .glass, .glass-strong { background: #f5f5f5; border: 1px solid #ddd; }
  main { padding-top: 0; }
  @page { margin: 1.5cm; size: A4; }
}