/* ==========================================================================
   DOLOMITES FIELD ALMANAC — Alpine Editorial Design System
   Warm Dolomia limestone parchment · Alpine spruce · Enrosadira alpenglow · Glacial Sorapis teal
   ========================================================================== */

:root {
  --bg: #f7f4ee;
  --bg-alt: #efeae0;
  --surface: #ffffff;
  --surface-tint: #fbf9f5;
  --ink: #17231f;
  --ink-muted: #4b5d56;
  --ink-subtle: #6e7f78;
  --border: #e2dcd0;
  --border-strong: #cfc6b6;

  --spruce: #153a2e;
  --spruce-2: #1f5140;
  --spruce-soft: #e6f0ec;
  --alpenglow: #c8542e;
  --alpenglow-dark: #a64120;
  --alpenglow-soft: #faeae4;
  --glacial: #12798a;
  --glacial-soft: #e3f3f6;
  --gold: #b8821d;
  --gold-soft: #fbf3df;
  --danger: #b8332a;
  --danger-soft: #fceae8;
  --ok: #217346;
  --ok-soft: #e6f5ec;

  --shadow-sm: 0 1px 3px rgba(20, 35, 30, 0.06), 0 1px 2px rgba(20, 35, 30, 0.04);
  --shadow-md: 0 8px 24px rgba(20, 35, 30, 0.08), 0 2px 6px rgba(20, 35, 30, 0.04);
  --shadow-lg: 0 20px 48px rgba(15, 30, 24, 0.16);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  --font-serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --nav-h: 64px;
  --subnav-h: 50px;
}

[data-theme="dark"] {
  --bg: #0f1614;
  --bg-alt: #16201d;
  --surface: #1a2622;
  --surface-tint: #202e2a;
  --ink: #eef2ef;
  --ink-muted: #b4c2bc;
  --ink-subtle: #83948d;
  --border: #2a3a34;
  --border-strong: #3c5048;

  --spruce: #2f7d63;
  --spruce-2: #3c9879;
  --spruce-soft: rgba(47, 125, 99, 0.2);
  --alpenglow: #ea7852;
  --alpenglow-dark: #f28f6e;
  --alpenglow-soft: rgba(234, 120, 82, 0.16);
  --glacial: #3cb4c8;
  --glacial-soft: rgba(60, 180, 200, 0.15);
  --gold: #eab349;
  --gold-soft: rgba(234, 179, 73, 0.16);
  --danger: #ef6c63;
  --danger-soft: rgba(239, 108, 99, 0.16);
  --ok: #4ec484;
  --ok-soft: rgba(78, 196, 132, 0.16);

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 10px 28px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 24px 56px rgba(0, 0, 0, 0.65);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + var(--subnav-h) + 20px); }
body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: var(--font-serif); line-height: 1.18; margin: 0; font-weight: 700; letter-spacing: -0.015em; }
p { margin: 0 0 0.8rem; }
a { color: var(--glacial); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font-family: inherit; color: inherit; }

/* ==========================================================================
   TOP BAR & SECTION RAIL
   ========================================================================== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 900;
  height: var(--nav-h);
  background: rgba(247, 244, 238, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.25rem;
  gap: 0.75rem;
}
[data-theme="dark"] .topbar { background: rgba(15, 22, 20, 0.92); }

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none !important;
  flex-shrink: 0;
}
.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--spruce) 0%, #245c49 60%, var(--alpenglow) 130%);
  display: grid;
  place-items: center;
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.brand-title { font-family: var(--font-serif); font-size: 1.08rem; line-height: 1.1; }
.brand-sub { font-size: 0.7rem; color: var(--ink-subtle); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }

.topbar-search {
  flex: 1;
  max-width: 440px;
  position: relative;
}
.search-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 0.48rem 0.9rem;
  font-size: 0.85rem;
  color: var(--ink-muted);
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.search-trigger:hover { border-color: var(--spruce); box-shadow: var(--shadow-sm); }
.kbd {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 0.12rem 0.4rem;
  border-radius: 5px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  color: var(--ink-subtle);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
}
.icon-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}
.icon-btn:hover { border-color: var(--spruce); background: var(--spruce-soft); color: var(--spruce); }
.icon-btn.accent { background: var(--spruce); color: #fff; border-color: var(--spruce); }
.icon-btn.accent:hover { background: var(--spruce-2); color: #fff; }
.badge-count {
  background: var(--alpenglow);
  color: #fff;
  border-radius: var(--radius-pill);
  padding: 0.06rem 0.42rem;
  font-size: 0.72rem;
  font-family: var(--font-mono);
}

.section-rail {
  position: sticky;
  top: var(--nav-h);
  z-index: 850;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 1.25rem;
  overflow-x: auto;
  scrollbar-width: none;
}
.section-rail::-webkit-scrollbar { display: none; }
.rail-link {
  white-space: nowrap;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-pill);
  color: var(--ink-muted);
  border: 1px solid transparent;
  transition: all 0.15s;
  text-decoration: none !important;
}
.rail-link:hover { background: var(--bg-alt); color: var(--ink); }
.rail-link.active { background: var(--spruce); color: #fff; }

/* ==========================================================================
   HERO BANNER
   ========================================================================== */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 85% 70% at 85% 20%, rgba(200, 84, 46, 0.38), transparent 60%),
    radial-gradient(ellipse 65% 60% at 15% 85%, rgba(18, 121, 138, 0.32), transparent 60%),
    linear-gradient(155deg, #0d241c 0%, #153a2e 52%, #1d493c 100%);
  color: #f9f6f0;
  padding: 3.75rem 1.5rem 4.25rem;
}
.hero-peaks {
  position: absolute;
  inset: auto 0 0 0;
  width: 100%;
  height: 150px;
  pointer-events: none;
  opacity: 0.24;
}
.hero-inner {
  position: relative;
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.25fr 0.95fr;
  gap: 2.25rem;
  align-items: center;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  margin-bottom: 1rem;
  color: #ffd8c7;
}
.hero h1 {
  font-size: clamp(2.1rem, 4.3vw, 3.35rem);
  color: #fff;
  margin-bottom: 0.9rem;
}
.hero-lead {
  font-size: 1.03rem;
  color: rgba(249, 246, 240, 0.88);
  max-width: 58ch;
  margin-bottom: 1.5rem;
}
.hero-cta-row { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-bottom: 1.75rem; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.65rem 1.15rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.88rem;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none !important;
  transition: transform 0.12s, background 0.15s, border-color 0.15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--alpenglow); color: #fff; }
.btn-primary:hover { background: var(--alpenglow-dark); }
.btn-ghost-light { background: rgba(255, 255, 255, 0.12); color: #fff; border-color: rgba(255, 255, 255, 0.28); }
.btn-ghost-light:hover { background: rgba(255, 255, 255, 0.22); }
.btn-spruce { background: var(--spruce); color: #fff; }
.btn-spruce:hover { background: var(--spruce-2); }
.btn-outline { background: var(--surface); border-color: var(--border-strong); color: var(--ink); }
.btn-outline:hover { border-color: var(--spruce); color: var(--spruce); background: var(--spruce-soft); }
.btn-sm { padding: 0.36rem 0.72rem; font-size: 0.78rem; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}
.hero-stat {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  padding: 0.7rem 0.85rem;
}
.hero-stat strong { display: block; font-family: var(--font-mono); font-size: 1.32rem; color: #fff; }
.hero-stat span { font-size: 0.74rem; color: rgba(249, 246, 240, 0.78); }

/* Smart Wizard Panel inside Hero */
.wizard-card {
  background: rgba(255, 255, 255, 0.97);
  color: #17231f;
  border-radius: var(--radius-lg);
  padding: 1.4rem;
  box-shadow: var(--shadow-lg);
}
[data-theme="dark"] .wizard-card {
  background: #1a2622;
  color: var(--ink);
  border: 1px solid var(--border);
}
.wizard-card h2 { font-size: 1.28rem; margin-bottom: 0.25rem; }
.wizard-card .muted { font-size: 0.82rem; color: var(--ink-muted); margin-bottom: 1rem; }
.wizard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
}
.field label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-subtle);
  margin-bottom: 0.28rem;
}
.field select, .field input {
  width: 100%;
  padding: 0.5rem 0.65rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--bg);
  font-size: 0.86rem;
  font-weight: 600;
}
.wizard-output {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.9rem;
  font-size: 0.84rem;
}
.wizard-output h4 { font-family: var(--font-sans); font-size: 0.88rem; margin-bottom: 0.4rem; color: var(--spruce); }
.wizard-output ul { margin: 0.3rem 0 0.6rem 1.1rem; padding: 0; }
.wizard-output li { margin-bottom: 0.28rem; }

/* ==========================================================================
   CONTAINERS & SECTION HEADERS
   ========================================================================== */
.container { max-width: 1240px; margin: 0 auto; padding: 0 1.25rem; }
.section { padding: 3.5rem 0; border-bottom: 1px solid var(--border); }
.section.alt { background: var(--bg-alt); }
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.6rem;
}
.section-kicker {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--alpenglow);
  font-weight: 700;
  margin-bottom: 0.3rem;
}
.section-head h2 { font-size: clamp(1.6rem, 2.8vw, 2.25rem); }
.section-desc { color: var(--ink-muted); max-width: 68ch; font-size: 0.95rem; margin-top: 0.35rem; }

/* ==========================================================================
   ALERT STRIPS & CALLOUTS
   ========================================================================== */
.alert-strip {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 1rem 1.15rem;
  border-radius: var(--radius-md);
  border: 1px solid;
  margin-bottom: 1.4rem;
  font-size: 0.9rem;
}
.alert-strip.warn { background: var(--alpenglow-soft); border-color: rgba(200, 84, 46, 0.35); }
.alert-strip.danger { background: var(--danger-soft); border-color: rgba(184, 51, 42, 0.35); }
.alert-strip.info { background: var(--glacial-soft); border-color: rgba(18, 121, 138, 0.32); }
.alert-strip.ok { background: var(--ok-soft); border-color: rgba(33, 115, 70, 0.32); }
.alert-icon { font-size: 1.25rem; line-height: 1.2; flex-shrink: 0; }

/* ==========================================================================
   CARDS, GRIDS, BADGES & VIDEO CHIPS
   ========================================================================== */
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.15rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.15rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.2rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}
.card:hover { box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 0.65rem; }
.card-title { font-size: 1.12rem; line-height: 1.25; }
.card-sub { font-size: 0.8rem; color: var(--ink-subtle); font-weight: 500; margin-top: 0.15rem; }

.pill-row { display: flex; flex-wrap: wrap; gap: 0.35rem; align-items: center; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.18rem 0.56rem;
  border-radius: var(--radius-pill);
  background: var(--bg-alt);
  color: var(--ink-muted);
  border: 1px solid var(--border);
}
.pill.west { background: var(--spruce-soft); color: var(--spruce); border-color: transparent; }
.pill.east { background: var(--glacial-soft); color: var(--glacial); border-color: transparent; }
.pill.central { background: var(--gold-soft); color: var(--gold); border-color: transparent; }
.pill.buster { background: var(--ok-soft); color: var(--ok); border-color: transparent; }
.pill.warn { background: var(--alpenglow-soft); color: var(--alpenglow); border-color: transparent; }
.pill.danger { background: var(--danger-soft); color: var(--danger); border-color: transparent; }

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem;
  background: var(--surface-tint);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.55rem;
}
.stat-cell span { display: block; font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-subtle); font-weight: 700; }
.stat-cell strong { font-family: var(--font-mono); font-size: 0.82rem; color: var(--ink); }

.tip-list { margin: 0; padding-left: 1.1rem; font-size: 0.85rem; color: var(--ink-muted); }
.tip-list li { margin-bottom: 0.3rem; }

/* Signature Timestamped YouTube Hyperlink Chips */
.video-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.38rem;
  margin-top: auto;
  padding-top: 0.55rem;
  border-top: 1px dashed var(--border);
}
.yt-chip {
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(200, 84, 46, 0.32);
  background: var(--alpenglow-soft);
  overflow: hidden;
  font-size: 0.74rem;
  line-height: 1.25;
  max-width: 100%;
}
.yt-chip a {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  padding: 0.25rem 0.55rem;
  color: var(--alpenglow-dark);
  font-weight: 600;
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
[data-theme="dark"] .yt-chip a { color: #ffad90; }
.yt-chip a:hover { text-decoration: underline; }
.yt-time {
  font-family: var(--font-mono);
  font-size: 0.69rem;
  background: var(--alpenglow);
  color: #fff;
  padding: 0.05rem 0.34rem;
  border-radius: 4px;
  flex-shrink: 0;
}
.yt-preview-btn {
  border: none;
  border-left: 1px solid rgba(200, 84, 46, 0.25);
  background: transparent;
  color: var(--alpenglow-dark);
  padding: 0.25rem 0.45rem;
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}
[data-theme="dark"] .yt-preview-btn { color: #ffad90; }
.yt-preview-btn:hover { background: var(--alpenglow); color: #fff; }

.card-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}
.save-btn {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 0.22rem 0.55rem;
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
  color: var(--ink-muted);
}
.save-btn.saved { background: var(--spruce); color: #fff; border-color: var(--spruce); }

/* ==========================================================================
   FILTER BAR & TABS
   ========================================================================== */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.75rem 0.9rem;
  margin-bottom: 1.25rem;
}
.filter-bar input[type="search"], .filter-bar select {
  padding: 0.44rem 0.7rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--bg);
  font-size: 0.85rem;
}
.filter-bar input[type="search"] { flex: 1; min-width: 190px; }
.toggle-chip {
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong);
  background: var(--bg);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}
.toggle-chip.active { background: var(--spruce); color: #fff; border-color: var(--spruce); }

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}
.tab-btn {
  padding: 0.52rem 1rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  color: var(--ink-muted);
}
.tab-btn.active { background: var(--spruce); color: #fff; border-color: var(--spruce); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ==========================================================================
   INTERACTIVE MAP
   ========================================================================== */
.map-shell {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.map-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  background: var(--surface-tint);
}
.map-canvas-wrap { position: relative; height: 540px; width: 100%; background: #d9e7e4; }
#dolomitesMap { height: 100%; width: 100%; z-index: 1; }
.offline-map-svg {
  width: 100%;
  height: 100%;
  display: block;
  background: radial-gradient(circle at 35% 40%, #e9f2ee, #d6e4de);
}
[data-theme="dark"] .offline-map-svg { background: radial-gradient(circle at 35% 40%, #172723, #0f1b18); }
.map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  padding: 0.65rem 1rem;
  font-size: 0.78rem;
  color: var(--ink-muted);
  border-top: 1px solid var(--border);
  background: var(--surface-tint);
}
.legend-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 0.32rem;
  vertical-align: middle;
}
.map-inspector {
  padding: 0.9rem 1.1rem;
  border-top: 1px solid var(--border);
  background: var(--surface);
  font-size: 0.88rem;
}

/* ==========================================================================
   TABLES (ACCESS RULES, DRIVE MATRIX, PHRASEBOOK)
   ========================================================================== */
.table-wrap {
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}
table { width: 100%; border-collapse: collapse; font-size: 0.86rem; }
th, td { padding: 0.78rem 0.9rem; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
th {
  font-size: 0.73rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-subtle);
  background: var(--surface-tint);
  font-weight: 700;
}
tr:last-child td { border-bottom: none; }

/* ==========================================================================
   ITINERARY TIMELINE & CUSTOM BUILDER
   ========================================================================== */
.day-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--spruce);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.2rem;
  margin-bottom: 0.9rem;
  box-shadow: var(--shadow-sm);
}
.day-card.east { border-left-color: var(--glacial); }
.day-card.transfer { border-left-color: var(--alpenglow); }
.day-slot-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  margin: 0.75rem 0;
}
.day-slot {
  background: var(--surface-tint);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.75rem;
  font-size: 0.84rem;
}
.day-slot strong {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--alpenglow);
  margin-bottom: 0.25rem;
}

/* ==========================================================================
   SEASONAL GRID & BUDGET CALCULATOR
   ========================================================================== */
.month-pills { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-bottom: 1.1rem; }
.month-btn {
  padding: 0.55rem 1.05rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  font-weight: 700;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 120px;
}
.month-btn span { font-size: 0.7rem; font-weight: 500; color: var(--ink-subtle); }
.month-btn.active { background: var(--spruce); color: #fff; border-color: var(--spruce); }
.month-btn.active span { color: rgba(255, 255, 255, 0.8); }

.calc-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 1.25rem; align-items: start; }
.calc-summary {
  background: linear-gradient(155deg, var(--spruce) 0%, #1d4e3e 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 1.4rem;
  box-shadow: var(--shadow-md);
}
.calc-total { font-family: var(--font-mono); font-size: 2.35rem; font-weight: 700; line-height: 1.1; }
.calc-breakdown { margin-top: 1rem; border-top: 1px solid rgba(255, 255, 255, 0.2); padding-top: 0.85rem; }
.calc-row { display: flex; justify-content: space-between; font-size: 0.88rem; margin-bottom: 0.45rem; color: rgba(255, 255, 255, 0.9); }
.calc-verdict {
  margin-top: 1rem;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-md);
  padding: 0.8rem;
  font-size: 0.85rem;
}

/* ==========================================================================
   PACKING CHECKLIST
   ========================================================================== */
.pack-progress-bar {
  height: 10px;
  background: var(--bg-alt);
  border-radius: var(--radius-pill);
  overflow: hidden;
  border: 1px solid var(--border);
  margin: 0.5rem 0 1rem;
}
.pack-progress-fill { height: 100%; background: linear-gradient(90deg, var(--spruce), var(--glacial)); transition: width 0.25s; }
.pack-item {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.88rem;
}
.pack-item:last-child { border-bottom: none; }
.pack-item input[type="checkbox"] { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--spruce); cursor: pointer; flex-shrink: 0; }
.pack-item.checked .pack-text { text-decoration: line-through; color: var(--ink-subtle); }

/* ==========================================================================
   CONTEXTUAL FLOATING "WATCH THIS SECTION" BAR
   ========================================================================== */
.context-video-bar {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 940;
  width: min(410px, calc(100vw - 2rem));
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.context-video-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.6rem 0.9rem;
  background: var(--spruce);
  color: #fff;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 700;
}
.context-video-body { padding: 0.7rem 0.85rem; max-height: 220px; overflow-y: auto; }
.context-video-bar.collapsed .context-video-body { display: none; }

/* ==========================================================================
   DRAWERS & MODALS (INLINE VIDEO PLAYER, SHORTLIST, SEARCH, COMPARE)
   ========================================================================== */
.backdrop {
  position: fixed;
  inset: 0;
  background: rgba(12, 22, 18, 0.58);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: none;
}
.backdrop.open { display: block; }

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(560px, 100vw);
  background: var(--surface);
  z-index: 1010;
  box-shadow: var(--shadow-lg);
  transform: translateX(105%);
  transition: transform 0.24s ease;
  display: flex;
  flex-direction: column;
}
.drawer.open { transform: translateX(0); }
.drawer-head {
  padding: 1rem 1.2rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.drawer-body { padding: 1.1rem 1.2rem; overflow-y: auto; flex: 1; }
.video-embed-box {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 0.9rem;
}
.video-embed-box iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.chapter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.5rem 0.65rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  margin-bottom: 0.4rem;
  font-size: 0.83rem;
  background: var(--surface-tint);
}
.chapter-row.active { border-color: var(--alpenglow); background: var(--alpenglow-soft); }

.search-modal {
  position: fixed;
  top: 10vh;
  left: 50%;
  transform: translateX(-50%);
  width: min(720px, calc(100vw - 1.5rem));
  max-height: 78vh;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  z-index: 1020;
  display: none;
  flex-direction: column;
  overflow: hidden;
}
.search-modal.open { display: flex; }
.search-modal-input {
  width: 100%;
  padding: 1rem 1.2rem;
  font-size: 1rem;
  border: none;
  border-bottom: 1px solid var(--border);
  background: transparent;
  outline: none;
}
.search-results { overflow-y: auto; padding: 0.75rem 1rem 1rem; }
.search-hit {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.75rem;
  border-radius: var(--radius-sm);
  border-bottom: 1px solid var(--border);
  cursor: pointer;
}
.search-hit:hover { background: var(--bg-alt); }

/* ==========================================================================
   VIDEO VAULT CARDS
   ========================================================================== */
.vault-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.vault-chapters {
  max-height: 170px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  padding-top: 0.4rem;
  border-top: 1px dashed var(--border);
}
.vault-ch-link {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.78rem;
  color: var(--ink-muted);
  padding: 0.22rem 0.4rem;
  border-radius: 6px;
}
.vault-ch-link:hover { background: var(--alpenglow-soft); color: var(--alpenglow-dark); text-decoration: none; }

/* ==========================================================================
   FOOTER & RESPONSIVE & PRINT
   ========================================================================== */
footer {
  background: var(--surface);
  padding: 2.5rem 1.25rem 6rem;
  color: var(--ink-muted);
  font-size: 0.86rem;
}

@media (max-width: 960px) {
  .hero-inner, .calc-grid { grid-template-columns: 1fr; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .day-slot-grid { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4, .wizard-grid { grid-template-columns: 1fr; }
  .topbar-search { display: none; }
  .map-canvas-wrap { height: 420px; }
  .brand-sub { display: none; }
}

@media print {
  .topbar, .section-rail, .context-video-bar, .drawer, .backdrop, .search-modal, .filter-bar, .btn { display: none !important; }
  body { background: #fff; color: #000; }
  .section { padding: 1rem 0; break-inside: avoid; }
  .card, .day-card { box-shadow: none; break-inside: avoid; }
}
