:root {
  --bg: #08090f;
  --bg-2: #10121d;
  --card: rgba(24, 27, 42, 0.88);
  --card-strong: #191d2d;
  --line: rgba(255, 255, 255, 0.11);
  --text: #f7f4ff;
  --muted: #a8adc0;
  --gold: #ffd166;
  --pink: #ff4ecd;
  --blue: #55d6ff;
  --green: #6ee7b7;
  --red: #ff5c7a;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 0%, rgba(255, 78, 205, 0.22), transparent 30rem),
    radial-gradient(circle at 86% 8%, rgba(85, 214, 255, 0.18), transparent 28rem),
    linear-gradient(180deg, #070813 0%, #0b0e18 45%, #08090f 100%);
  line-height: 1.55;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--line);
  background: rgba(8, 9, 15, 0.9);
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.22);
}

.brand {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 12px;
  padding: 13px 16px 6px;
  letter-spacing: 0.02em;
}
.brand .eyebrow {
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}
.brand strong {
  font-size: clamp(1rem, 3vw, 1.45rem);
}

.weather-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 8px 14px 12px;
  border-top: 1px solid rgba(255,255,255,0.05);
  justify-content: center;
}
.weather-pill {
  min-width: 112px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,0.045);
  font-size: 0.76rem;
  color: var(--muted);
  text-align: center;
}
.weather-pill strong { color: var(--blue); display: block; font-size: 0.9rem; }

.tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 0 10px 10px;
  max-width: 920px;
  margin: 0 auto;
}
.tab-link {
  flex: 1 0 92px;
  border: 1px solid transparent;
  border-radius: 14px;
  padding: 10px 8px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-weight: 750;
}
.tab-link.active {
  color: #12131a;
  background: linear-gradient(135deg, var(--gold), var(--pink));
  box-shadow: 0 10px 24px rgba(255, 78, 205, 0.22);
}

main {
  width: min(980px, calc(100% - 28px));
  margin: 0 auto;
  padding: 24px 0 64px;
}
.hero {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: clamp(22px, 5vw, 42px);
  background:
    linear-gradient(135deg, rgba(255, 209, 102, 0.18), rgba(255, 78, 205, 0.12) 48%, rgba(85, 214, 255, 0.14)),
    var(--card);
  box-shadow: var(--shadow);
}
.hero::after {
  content: '✦';
  position: absolute;
  right: 26px;
  top: 18px;
  color: rgba(255,255,255,0.16);
  font-size: 8rem;
  line-height: 1;
}
.kicker { color: var(--gold); text-transform: uppercase; letter-spacing: .22em; font-weight: 900; font-size: .74rem; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 8px; font-size: clamp(2rem, 7vw, 4.4rem); line-height: .95; letter-spacing: -0.05em; }
h2 { margin: 0 0 16px; font-size: clamp(1.35rem, 4vw, 2rem); letter-spacing: -0.03em; }
h2::before { content: ''; display: inline-block; width: 5px; height: 1em; margin-right: 10px; border-radius: 8px; background: linear-gradient(var(--gold), var(--pink)); vertical-align: -0.12em; }
h3 { margin-bottom: 7px; color: var(--blue); }
.muted { color: var(--muted); }

.grid { display: grid; gap: 16px; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card {
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 20px;
  background: var(--card);
  box-shadow: 0 18px 54px rgba(0,0,0,0.24);
}
.stat-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 22px; }
.stat { padding: 14px; border-radius: 18px; background: rgba(0,0,0,0.22); border: 1px solid var(--line); }
.stat span { display:block; color: var(--muted); font-size:.78rem; }
.stat strong { display:block; margin-top:3px; font-size:1.03rem; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 14px;
  border-radius: 13px;
  border: 1px solid rgba(255,255,255,0.14);
  color: var(--text);
  background: rgba(255,255,255,0.07);
  text-decoration: none;
  font-weight: 800;
}
.btn.primary { color: #11131c; background: linear-gradient(135deg, var(--gold), var(--pink)); border: 0; }
.btn:hover { transform: translateY(-1px); }

.timeline { position: relative; display: grid; gap: 14px; }
.day-card { border-left: 1px solid var(--line); padding-left: 16px; }
.item { display: grid; grid-template-columns: 92px 1fr; gap: 14px; padding: 13px 0; border-top: 1px solid rgba(255,255,255,0.075); }
.item:first-of-type { border-top: 0; }
.time { color: var(--gold); font-weight: 900; font-size: .9rem; }
.event { font-weight: 850; }
.note { color: var(--muted); font-size: .92rem; }
.badge { display: inline-flex; align-items: center; padding: 4px 9px; border-radius: 999px; font-size: .72rem; font-weight: 900; background: rgba(85,214,255,.15); color: var(--blue); border: 1px solid rgba(85,214,255,.24); }
.badge.warn { color: var(--gold); background: rgba(255,209,102,.13); border-color: rgba(255,209,102,.28); }
.badge.good { color: var(--green); background: rgba(110,231,183,.12); border-color: rgba(110,231,183,.24); }

#map { min-height: 430px; border-radius: 22px; border: 1px solid var(--line); overflow: hidden; background: #111; }
.map-shell { display: grid; grid-template-columns: 1.3fr .9fr; gap: 16px; }
.location-list { display: grid; gap: 10px; max-height: 430px; overflow: auto; padding-right: 4px; }
.location-row { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; padding: 13px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,0.045); }
.location-row .pin { font-size: 1.25rem; }
.route-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; margin-top: 14px; }
.leaflet-popup-content-wrapper, .leaflet-popup-tip { background: #171a28; color: var(--text); }

.food-card { display:flex; flex-direction:column; gap:10px; }
.pack-list, .questions { padding-left: 1.1rem; margin: 0; color: var(--muted); }
.pack-list li, .questions li { margin: 9px 0; }
.callout { border-color: rgba(255,209,102,.34); background: linear-gradient(135deg, rgba(255,209,102,.12), rgba(255,78,205,.08)); }
.source { font-size: .78rem; overflow-wrap: anywhere; color: var(--muted); }

@media (max-width: 780px) {
  .brand { flex-direction: column; align-items: center; gap: 2px; }
  .weather-strip { justify-content: flex-start; }
  .tab-link { flex-basis: 86px; flex-direction: column; font-size: .78rem; }
  .grid.two, .grid.three, .stat-row, .map-shell, .route-grid { grid-template-columns: 1fr; }
  .hero::after { font-size: 5rem; right: 6px; top: 6px; }
  .item { grid-template-columns: 78px 1fr; }
  #map, .location-list { max-height: none; min-height: 360px; }
}
