/* =========================================================
   PWV Fly Fishing Group — stylesheet
   Editorial outdoor / field guide aesthetic
   ========================================================= */

:root {
  --green:           #1F3324;
  --green-700:       #18281C;
  --green-500:       #2A4A35;
  --green-300:       #5B7264;
  --gold:            #B28A3A;
  --gold-soft:       #D4B36A;
  --gold-pale:       #E8D9B0;
  --cream:           #F4EEDC;
  --cream-deep:      #EDE4CB;
  --cream-dim:       #E4D8B6;
  --blue:            #456B73;
  --blue-deep:       #34555C;
  --blue-pale:       #C8D6D8;

  --ink:             #1A2620;
  --ink-soft:        #41524A;
  --ink-mute:        #6E7A72;
  --hairline:        rgba(31, 51, 36, 0.18);
  --hairline-strong: rgba(31, 51, 36, 0.32);
  --gold-hairline:   rgba(178, 138, 58, 0.55);

  --serif: "Source Serif 4", "Source Serif Pro", Georgia, serif;
  --sans:  "Source Sans 3", "Source Sans Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono:  "JetBrains Mono", "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;

  --container: 1240px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background-color: var(--cream);
  background-image:
    radial-gradient(1200px 700px at 80% -10%, rgba(178,138,58,0.08), transparent 60%),
    radial-gradient(900px 600px at -10% 30%, rgba(69,107,115,0.06), transparent 65%),
    url("images/topo-bg.jpg");
  background-size: auto, auto, cover;
  background-position: top right, top left, center top;
  background-repeat: no-repeat, no-repeat, no-repeat;
  background-attachment: fixed, fixed, fixed;
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--blue-deep); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--gold); }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }

section { padding: 80px 0; position: relative; }
@media (max-width: 720px) { section { padding: 56px 0; } }

/* ---------- Eyebrow ---------- */
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 1px;
  background: var(--gold);
  display: inline-block;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--green);
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(40px, 6vw, 72px); line-height: 1.02; letter-spacing: -0.02em; }
h2 { font-size: clamp(28px, 3.4vw, 44px); line-height: 1.1; }
h3 { font-size: clamp(20px, 2vw, 26px); line-height: 1.2; }
h4 { font-size: 17px; line-height: 1.3; }

.lede { font-size: clamp(17px, 1.4vw, 19px); color: var(--ink-soft); line-height: 1.55; max-width: 60ch; text-wrap: pretty; }
.section-head { margin-bottom: 40px; }
.section-head .eyebrow { margin-bottom: 14px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 14px 22px;
  border-radius: 2px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all .18s ease;
  text-decoration: none;
  line-height: 1;
}
.btn .arrow { transition: transform .2s ease; display: inline-block; }
.btn:hover .arrow { transform: translateX(3px); }

.btn-primary { background: var(--green); color: var(--cream); border-color: var(--green); }
.btn-primary:hover { background: var(--gold); border-color: var(--gold); color: var(--green-700); }
.btn-primary:hover { color: var(--green-700); }

.btn-ghost { background: transparent; color: var(--green); border-color: var(--green); }
.btn-ghost:hover { background: var(--green); color: var(--cream); }

.btn-ghost.on-dark { color: var(--cream); border-color: rgba(244,238,220,0.65); }
.btn-ghost.on-dark:hover { background: var(--cream); color: var(--green); border-color: var(--cream); }

.link-arrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(244, 238, 220, 0.7);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid rgba(244, 238, 220, 0.3);
  padding-bottom: 3px;
  transition: all .15s ease;
}
.link-arrow:hover { color: var(--gold-soft); border-color: var(--gold-soft); }
.link-arrow .arrow { transition: transform .2s ease; }
.link-arrow:hover .arrow { transform: translateX(3px); }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  overflow: visible;
  background: rgba(244, 238, 220, 0.92);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--hairline);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  padding: 0 24px;
  max-width: var(--container);
  margin: 0 auto;
  height: 72px;
  overflow: visible;
}
.nav-left,
.nav-right {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-logo {
  flex-shrink: 0;
  display: flex;
  align-items: flex-start;  /* anchors logo to top so it overflows downward */
  align-self: flex-start;
  padding: 6px 0 0;
  position: relative;
  z-index: 10;
}
.nav-logo img {
  height: 130px;
  width: auto;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.25));
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0; padding: 0;
}
.nav-links a {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green);
  padding: 10px 14px;
  border-radius: 2px;
  position: relative;
  display: inline-block;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 4px;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s ease;
}
.nav-links a:hover { color: var(--green); }
.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }

/* Mobile-only drawer list — must come AFTER .nav-links so display:none wins */
.nav-drawer-links { display: none; }

.hamburger {
  display: none;
  background: transparent;
  border: 1px solid var(--green);
  width: 40px; height: 40px;
  padding: 0;
  cursor: pointer;
  border-radius: 2px;
  position: relative;
}
.hamburger span {
  display: block;
  position: absolute;
  left: 9px; right: 9px;
  height: 1.5px;
  background: var(--green);
  transition: transform .25s ease, opacity .25s ease, top .25s ease;
}
.hamburger span:nth-child(1) { top: 12px; }
.hamburger span:nth-child(2) { top: 19px; }
.hamburger span:nth-child(3) { top: 26px; }
.hamburger.open span:nth-child(1) { top: 19px; transform: rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { top: 19px; transform: rotate(-45deg); }

@media (max-width: 880px) {
  .nav-left, .nav-right { display: none; }
  .hamburger { display: block; }
  .nav-logo { flex: 1; justify-content: center; align-self: center; padding: 0 20px; }
  .nav-logo img { height: 52px; filter: none; }

  .nav-drawer.open .nav-drawer-links {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--hairline);
    padding-bottom: 8px;
    z-index: 49;
    list-style: none;
    margin: 0; padding: 0 0 8px;
  }
  .nav-drawer.open .nav-drawer-links a { padding: 16px 24px; border-top: 1px solid var(--hairline); }
}

/* ---------- Hero ---------- */
.hero {
  background: url('images/PWV-FFG-home-hero-01.jpg') center/cover no-repeat;
  padding: 140px 0 110px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(10,20,16,0.72) 0%, rgba(10,20,16,0.48) 55%, rgba(10,20,16,0.18) 100%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }

.hero-copy { max-width: 600px; }
.hero-copy h1 { font-weight: 500; color: var(--cream); }
.hero-copy h1 em { font-style: italic; color: var(--gold); font-weight: 500; }
.hero .eyebrow { color: var(--gold-soft); }
.hero .eyebrow::before { background: var(--gold-soft); }
.hero-subhead {
  margin-top: 24px;
  font-size: clamp(17px, 1.5vw, 19px);
  color: rgba(244, 238, 220, 0.85);
  max-width: 52ch;
  line-height: 1.55;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

/* ---------- Events ---------- */
.event {
  background: var(--green);
  color: var(--cream);
  margin: 0;
  padding: 96px 0;
  position: relative;
}
.event::before, .event::after {
  content: "";
  position: absolute; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold) 20%, var(--gold) 80%, transparent);
}
.event::before { top: 0; }
.event::after { bottom: 0; }
.event h2 { color: var(--cream); }
.event .eyebrow { color: var(--gold-soft); }
.event .eyebrow::before { background: var(--gold-soft); }

/* Featured event — two column layout */
.event-featured {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 64px;
  align-items: start;
}
@media (max-width: 820px) {
  .event-featured { grid-template-columns: 1fr; gap: 36px; }
  .event-featured-side {
    border-top: 1px solid rgba(244, 238, 220, 0.12);
    padding-top: 28px;
  }
}

.event-featured-main {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.event-featured-title {
  color: var(--cream);
  font-family: var(--serif);
  font-size: clamp(26px, 3.2vw, 44px);
  font-weight: 500;
  line-height: 1.15;
  margin: 0;
}
.event-featured-dateline {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-soft);
}
.event-featured-location {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 15px;
}
.event-loc-name {
  color: rgba(244, 238, 220, 0.88);
  font-weight: 500;
}
.event-loc-addr {
  color: rgba(244, 238, 220, 0.65);
}
.event-featured-location a {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-soft);
  text-decoration: none;
  border-bottom: 1px solid rgba(200, 168, 75, 0.35);
  transition: color .15s, border-color .15s;
  margin-left: 10px;
}
.event-featured-location a:hover { color: var(--gold); border-color: var(--gold); }
.event-featured-desc {
  color: rgba(244, 238, 220, 0.78);
  font-size: 16px;
  line-height: 1.65;
  max-width: 60ch;
  margin: 0;
}

/* Right column — Also Coming Up */
.event-featured-side {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.event-coming-up-list {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-direction: column;
}
.event-coming-up-item {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 13px 0;
  border-bottom: 1px solid rgba(244, 238, 220, 0.10);
  cursor: pointer;
  transition: opacity .15s;
}
.event-coming-up-item:first-child { border-top: 1px solid rgba(244, 238, 220, 0.10); }
.event-coming-up-item:hover { opacity: 0.75; }
.event-coming-up-item:hover .event-coming-up-name { color: var(--cream); }
.event-coming-up-date {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-soft);
  flex-shrink: 0;
  min-width: 46px;
}
.event-coming-up-name {
  color: rgba(244, 238, 220, 0.82);
  font-size: 15px;
  line-height: 1.4;
}

/* ── Event detail modal ──────────────────────────────────── */
#event-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(10, 20, 16, 0.6);
  backdrop-filter: blur(3px);
}
.event-modal-inner {
  position: relative;
  background: var(--cream);
  border: 1px solid var(--hairline);
  border-radius: 4px;
  box-shadow: 0 8px 48px rgba(10, 20, 16, 0.28);
  max-width: 520px;
  width: 100%;
  padding: 36px 40px 40px;
}
.event-modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 15px;
  color: var(--ink-mute);
  line-height: 1;
  padding: 4px 6px;
  transition: color .15s ease;
}
.event-modal-close:hover { color: var(--ink); }
.event-modal-datetime {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 10px;
}
.event-modal-title {
  font-family: var(--serif);
  font-size: clamp(20px, 2.4vw, 26px);
  color: var(--green);
  font-weight: 500;
  line-height: 1.25;
  margin: 0 0 18px;
}
.event-modal-location {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 16px;
  font-size: 14px;
}
.event-modal-loc-name {
  color: var(--ink);
  font-weight: 600;
}
.event-modal-loc-addr {
  color: var(--ink-soft);
}
.event-modal-map-link {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-deep);
  border-bottom: 1px solid var(--blue-pale);
  padding-bottom: 1px;
  white-space: nowrap;
  transition: color .15s ease, border-color .15s ease;
}
.event-modal-map-link:hover { color: var(--gold); border-color: var(--gold-soft); }
.event-modal-desc {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.6;
  margin: 0;
}

/* Events empty state */
.events-empty {
  padding: 48px 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.events-empty-msg {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(18px, 2vw, 22px);
  color: rgba(244, 238, 220, 0.6);
  margin: 0;
}

/* Badge */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--green); background: var(--gold-pale);
  padding: 5px 9px; border-radius: 2px; font-weight: 500;
}
.badge.blue { background: var(--blue-pale); color: var(--blue-deep); }

/* ---------- Rivers ---------- */
.rivers-list { display: flex; flex-direction: column; gap: 24px; }

/* Two-column grid: 280px sidebar | 1fr tabs */
.river {
  background: var(--cream);
  border: 1px solid var(--hairline);
  border-radius: 3px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 280px 1fr;
  align-items: stretch;
}

/* Left sidebar: photo + info */
.river-sidebar {
  border-right: 1px solid var(--hairline);
  display: flex;
  flex-direction: column;
}

.river-img {
  flex: 0 0 auto;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: #0a1410;
  position: relative;
}
.river-img img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.92); }
.river-img .marker {
  position: absolute; top: 12px; left: 12px;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--cream); color: var(--green);
  font-family: var(--mono); font-size: 11px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--gold);
}

.river-info { padding: 24px 28px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.river-info .name { font-family: var(--serif); font-size: 26px; color: var(--green); font-weight: 500; line-height: 1.1; }
.river-info .num { display: block; font-family: var(--mono); font-size: 11px; color: var(--gold); letter-spacing: 0.22em; text-transform: uppercase; margin-bottom: 6px; }
.river-info .meta { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-mute); }
.river-info .meta span { display: block; }
.river-info .meta strong { color: var(--green); font-weight: 500; }
.river-info .blurb { margin-top: 10px; font-size: 14px; color: var(--ink-soft); line-height: 1.55; }

/* Right column: tabs + content, no left border (sidebar provides separator) */
.river-tabs-wrap {
  background: rgba(255, 255, 255, 0.35);
  display: flex;
  flex-direction: column;
  min-width: 0; /* prevent grid blowout */
}
.river-tabs-wrap .tabs { padding: 0 28px; flex-shrink: 0; }
.tab-content { padding: 28px; flex: 1; }

/* Stack to single column on tablet and below */
@media (max-width: 900px) {
  .river {
    grid-template-columns: 1fr;
  }
  .river-sidebar {
    border-right: none;
    border-bottom: 1px solid var(--hairline);
    flex-direction: row; /* photo left, info right on tablet */
  }
  .river-img {
    width: 200px;
    flex: 0 0 200px;
    aspect-ratio: unset;
    align-self: stretch;
  }
  .river-info {
    padding: 20px 24px;
  }
}

@media (max-width: 600px) {
  .river-sidebar {
    flex-direction: column; /* stack photo above info on mobile */
  }
  .river-img {
    width: 100%;
    flex: 0 0 auto;
    aspect-ratio: 16/9;
    align-self: auto;
  }
  .river-info .meta {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px 18px;
  }
  .river-info .meta span { display: inline; }
}

/* Tabs (shared) */
.tabs { display: flex; gap: 0; border-bottom: 1px solid var(--hairline); }
.tab {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
  background: transparent;
  border: none;
  padding: 14px 18px;
  cursor: pointer;
  position: relative;
  font-weight: 500;
  transition: color .15s ease;
}
.tab:hover { color: var(--green); }
.tab.active { color: var(--green); }
.tab.active::after {
  content: "";
  position: absolute;
  bottom: -1px; left: 12px; right: 12px;
  height: 2px;
  background: var(--gold);
}

.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* Flow embed — natural iframe size, horizontal scroll on small screens */
.river-flow-embed {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  width: 100%;
  height: 575px;
}

.river-flow-embed iframe {
  width: 100%;
  height: 575px;
  border: none;
  display: block;
}

/* Flow tab panels: break out of tab-content's 28px side padding so the
   iframe sits flush and full-width. Hatch/Reports panels are unaffected
   because [data-panel$="-flow"] only matches poudre-flow / bt-flow / yp-flow. */
.tab-panel[data-panel$="-flow"] {
  margin-left: -28px;
  margin-right: -28px;
  background: transparent;
}

/* Hatch chart */
.hatch-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.hatch-table th, .hatch-table td { text-align: center; padding: 0; }
.hatch-table thead th {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-mute); font-weight: 500;
  padding-bottom: 10px; border-bottom: 1px solid var(--hairline);
}
.hatch-table thead th:first-child { text-align: left; min-width: 200px; }
.hatch-table tbody td:first-child {
  text-align: left;
  padding: 14px 12px 14px 0;
  border-bottom: 1px solid var(--hairline);
  font-family: var(--serif); color: var(--green); font-size: 16px;
}
.hatch-table tbody td:first-child .size {
  display: block; font-family: var(--mono); font-size: 10.5px;
  color: var(--ink-mute); margin-top: 2px; letter-spacing: 0.1em;
}
.hatch-cell {
  display: inline-block;
  vertical-align: middle;
  width: 100%; max-width: 38px; height: 26px;
  background: rgba(31, 51, 36, 0.04);
  border-right: 1px solid var(--cream);
  transition: background .15s ease;
}
.hatch-table tbody td:not(:first-child) { padding: 4px 1px; line-height: 0; }
.hatch-cell.on { background: var(--blue); }
.hatch-cell.start { border-radius: 2px 0 0 2px; }
.hatch-cell.end   { border-radius: 0 2px 2px 0; }
.hatch-row td { padding: 4px 0; border-bottom: 1px solid var(--hairline); }
.hatch-row td:first-child { padding-right: 16px; }

.hatch-legend {
  display: flex; gap: 24px; flex-wrap: wrap; align-items: center;
  margin-top: 20px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft);
}
.hatch-legend .swatch { display: inline-block; width: 18px; height: 12px; vertical-align: -2px; margin-right: 8px; border-radius: 2px; }
.hatch-legend .sw-on { background: var(--blue); }

@media (max-width: 720px) {
  .hatch-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .hatch-table { min-width: 640px; }
}

/* Shop / report cards */
.shop-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (max-width: 720px) { .shop-list { grid-template-columns: 1fr; } }

.shop-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  background: var(--cream);
  border: 1px solid var(--hairline);
  border-radius: 3px;
  text-decoration: none;
  color: inherit;
  transition: all .18s ease;
}
.shop-card:hover { border-color: var(--gold-hairline); background: var(--cream-deep); transform: translateY(-1px); color: inherit; }
.shop-card .name { font-family: var(--serif); font-size: 18px; color: var(--green); }
.shop-card .meta { font-family: var(--mono); font-size: 10.5px; color: var(--ink-mute); letter-spacing: 0.14em; text-transform: uppercase; margin-top: 4px; }
.shop-card .meta .dot { color: var(--gold); margin: 0 6px; }
.shop-card .arrow-icon { font-size: 16px; color: var(--gold); flex-shrink: 0; transition: transform .2s ease; }
.shop-card:hover .arrow-icon { transform: translateX(3px); }

/* ---------- Footer ---------- */
.footer {
  background: var(--green);
  color: var(--cream);
  position: relative;
}
.footer::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold) 20%, var(--gold) 80%, transparent);
}
.footer-simple { padding: 56px 0 40px; }
.footer-simple-inner {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: 28px;
  align-items: center;
}
@media (max-width: 720px) {
  .footer-simple-inner { grid-template-columns: 1fr; text-align: center; justify-items: center; gap: 18px; }
  .footer-links { justify-content: center !important; }
}
.footer-mark { width: 52px; height: 52px; filter: brightness(0) invert(1); opacity: 0.92; }
.footer-text .footer-line { margin: 0; font-size: 14px; color: rgba(244, 238, 220, 0.82); line-height: 1.5; }
.footer-text .footer-small { margin: 6px 0 0; font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; color: rgba(244, 238, 220, 0.5); }
.footer-links { list-style: none; padding: 0; margin: 0; display: flex; gap: 20px; flex-wrap: wrap; justify-content: flex-end; }
.footer-links a { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(244, 238, 220, 0.78); }
.footer-links a:hover { color: var(--gold); }

/* ---------- Map page header ---------- */
.map-header {
  background: url('images/PWV-FFG-short-hero-01.jpg') center/cover no-repeat;
  position: relative;
  min-height: 210px;
  display: flex;
  align-items: center;
}
.map-header::before {
  content: "";
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.35);
  pointer-events: none;
}
.map-header .container {
  position: relative;
  z-index: 1;
  padding-top: 48px;
  padding-bottom: 40px;
  width: 100%;
}
.map-header-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.map-header-copy { flex: 1 1 auto; }
.map-header-action { flex-shrink: 0; }
.map-header .eyebrow::before,
.resources-header .eyebrow::before { background: rgba(255,255,255,0.6); }

/* ---------- Map container ---------- */
.map-wrap {
  width: 100%;
  height: 560px;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  position: relative;
  z-index: 1;
}
#fishing-map { width: 100%; height: 560px; }

@media (max-width: 720px) {
  .map-wrap { height: 420px; }
  #fishing-map { height: 420px; }
}

/* Leaflet map layer toggle button */
.map-layer-toggle {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: var(--cream);
  color: var(--green);
  border: 1px solid var(--hairline-strong);
  padding: 8px 14px;
  border-radius: 2px;
  cursor: pointer;
  font-weight: 500;
  transition: all .15s ease;
  white-space: nowrap;
}
.map-layer-toggle:hover { background: var(--green); color: var(--cream); border-color: var(--green); }

/* Leaflet popup */
.leaflet-popup-content-wrapper {
  border-radius: 3px !important;
  border: 1px solid var(--hairline) !important;
  box-shadow: 0 4px 20px rgba(31,51,36,0.15) !important;
  padding: 0 !important;
}
.leaflet-popup-content { margin: 0 !important; padding: 18px 20px !important; min-width: 220px; }
.leaflet-popup-tip-container { display: none !important; }
.popup-title { font-family: var(--serif); font-size: 18px; color: var(--green); font-weight: 500; margin-bottom: 4px; }
.popup-meta { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: 10px; }
.popup-body { font-size: 14px; color: var(--ink-soft); margin-bottom: 6px; line-height: 1.5; }
.popup-actions { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--hairline); }
.popup-map-link {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-deep);
  border-bottom: 1px solid var(--blue-pale);
  padding-bottom: 1px;
  transition: color .15s ease, border-color .15s ease;
}
.popup-map-link:hover { color: var(--gold); border-color: var(--gold-soft); }

/* ---------- Spot list ---------- */
.spot-list-section { padding: 80px 0; }

.spot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px;
  margin-top: 40px;
}
@media (max-width: 560px) { .spot-grid { grid-template-columns: 1fr; } }

.spot-loading {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink-mute);
  letter-spacing: 0.08em;
  grid-column: 1 / -1;
}

.spot-card {
  background: rgba(255,255,255,0.5);
  border: 1px solid var(--hairline);
  border-radius: 3px;
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.spot-card-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 8px 14px;
  margin-bottom: 4px;
}
.spot-card-name {
  font-family: var(--serif);
  font-size: 20px;
  color: var(--green);
  font-weight: 500;
  margin: 0;
}
.spot-card-river {
  display: block;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 5px;
}
.spot-card-map-link {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-deep);
  border-bottom: 1px solid var(--blue-pale);
  padding-bottom: 1px;
  transition: all .15s ease;
}
.spot-card-map-link:hover { color: var(--gold); border-color: var(--gold-soft); }

.spot-card p {
  margin: 0;
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.5;
}
.spot-card p strong { color: var(--ink); font-weight: 600; }

/* ---------- Modal ---------- */
#spot-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 32px 16px;
  overflow-y: auto;
}
#spot-modal[hidden] { display: none; }

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(26, 38, 32, 0.6);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.modal-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 760px;
  background: var(--cream);
  border: 1px solid var(--hairline-strong);
  border-radius: 3px;
  box-shadow: 0 24px 64px rgba(26, 38, 32, 0.28);
  overflow: hidden;
}

.modal-header {
  padding: 32px 36px 24px;
  border-bottom: 1px solid var(--hairline);
  position: relative;
}
.modal-header h2 { font-size: 28px; color: var(--green); }
.modal-subtitle { margin: 8px 0 0; font-size: 15px; color: var(--ink-soft); max-width: 56ch; line-height: 1.5; }
.modal-close {
  position: absolute;
  top: 28px; right: 28px;
  background: transparent;
  border: 1px solid var(--hairline);
  width: 36px; height: 36px;
  border-radius: 2px;
  cursor: pointer;
  font-size: 16px;
  color: var(--ink-mute);
  display: flex; align-items: center; justify-content: center;
  transition: all .15s ease;
}
.modal-close:hover { background: var(--green); color: var(--cream); border-color: var(--green); }

.modal-body { padding: 0 36px 36px; overflow-y: auto; max-height: calc(85vh - 160px); }
@media (max-width: 600px) {
  .modal-header { padding: 24px 20px; }
  .modal-body { padding: 0 20px 24px; }
  .modal-close { top: 20px; right: 16px; }
}

/* ---------- Form ---------- */
.form-section { padding: 28px 0; border-bottom: 1px solid var(--hairline); }
.form-section:last-of-type { border-bottom: none; }
.form-section-title {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 20px;
  font-weight: 500;
}
.form-hint { font-size: 14px; color: var(--ink-mute); margin: 0 0 14px; line-height: 1.5; }
.form-hint--tight { margin-top: -6px; margin-bottom: 16px; }
.form-input:invalid:not(:placeholder-shown) { outline: 2px solid #c0392b; outline-offset: 1px; }

.form-row { display: grid; gap: 16px; }
.form-row-2 { grid-template-columns: 1fr 1fr; }
.form-row-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 640px) {
  .form-row-2, .form-row-3 { grid-template-columns: 1fr; }
}

.form-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-field:last-child { margin-bottom: 0; }

.form-label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 500;
}
.form-label .req { color: var(--gold); }

.form-input {
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink);
  background: rgba(255,255,255,0.7);
  border: 1px solid var(--hairline-strong);
  border-radius: 2px;
  padding: 10px 14px;
  width: 100%;
  transition: border-color .15s ease, box-shadow .15s ease;
  appearance: none;
  -webkit-appearance: none;
}
.form-input:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(31,51,36,0.1);
}
textarea.form-input { resize: vertical; line-height: 1.5; }
select.form-input { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%231F3324' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }

.check-group { display: flex; flex-direction: column; gap: 6px; }
.check-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--ink-soft);
  cursor: pointer;
}
.check-label input[type="checkbox"] {
  width: 16px; height: 16px;
  border: 1px solid var(--hairline-strong);
  border-radius: 2px;
  accent-color: var(--green);
  cursor: pointer;
  flex-shrink: 0;
}

/* Pin picker map */
#pin-picker-map {
  width: 100%;
  height: 280px;
  border: 1px solid var(--hairline-strong);
  border-radius: 2px;
  margin-top: 4px;
}
.pin-coords {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-mute);
  margin-top: 8px;
  letter-spacing: 0.08em;
}

/* Form status */
.form-status {
  padding: 14px 18px;
  border-radius: 2px;
  font-size: 15px;
  margin: 20px 0;
}
.form-status--success { background: rgba(31,51,36,0.08); color: var(--green); border: 1px solid rgba(31,51,36,0.2); }
.form-status--error   { background: rgba(180,50,30,0.07); color: #8b2500; border: 1px solid rgba(180,50,30,0.2); }

/* Modal footer */
.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--hairline);
  margin-top: 8px;
}

/* Prevent body scroll when modal open */
body.modal-open { overflow: hidden; }

/* ---------- Utility ---------- */
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }

/* ============================================================
   Resources page
   ============================================================ */

.resources-header {
  background: url('images/PWV-FFG-short-hero-01.jpg') center/cover no-repeat;
  position: relative;
  min-height: 210px;
  display: flex;
  align-items: center;
}
.resources-header::before {
  content: "";
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.35);
  pointer-events: none;
}
.resources-header .container {
  position: relative;
  z-index: 1;
  padding-top: 48px;
  padding-bottom: 48px;
}

.resources-section {
  padding: 72px 0;
}
.resources-section + .resources-section {
  border-top: 1px solid var(--hairline);
}
.resources-section--videos {
  background: rgba(255, 255, 255, 0.25);
}

/* ── Book categories ──────────────────────────────────────── */

.book-category {
  margin-top: 52px;
}
.book-category-heading {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 500;
  margin: 0 0 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--hairline);
}

/* ── Book grid ────────────────────────────────────────────── */

.book-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

@media (max-width: 900px) {
  .book-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .book-grid { grid-template-columns: 1fr; }
}

/* ── Book card ────────────────────────────────────────────── */

.book-card {
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--hairline);
  border-radius: 3px;
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.book-card-title {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.35;
}
.book-card-author {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-top: 6px;
}
.book-card-desc {
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.5;
  margin-top: 10px;
  flex: 1;
}
.book-card-avail {
  font-size: 13px;
  color: var(--ink-soft);
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--hairline);
}
.book-card-avail .avail-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-right: 3px;
}
.book-card-avail a {
  color: var(--blue-deep);
  border-bottom: 1px solid var(--blue-pale);
  padding-bottom: 1px;
  transition: color .15s ease, border-color .15s ease;
}
.book-card-avail a:hover { color: var(--gold); border-color: var(--gold-soft); }

/* ── Video groups ─────────────────────────────────────────── */

.video-group { margin-top: 52px; }

hr.video-group-divider {
  border: none;
  border-top: 1px solid var(--hairline);
  margin: 56px 0 0;
}

.video-group-heading {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 500;
  margin: 0 0 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--hairline);
}
.video-channel {
  font-size: 13px;
  color: var(--ink-mute);
  margin: 8px 0 0;
  font-family: var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 10.5px;
}
.video-channel a {
  color: var(--blue-deep);
  border-bottom: 1px solid var(--blue-pale);
  padding-bottom: 1px;
  text-transform: none;
  letter-spacing: 0;
  font-family: var(--sans);
  font-size: 13px;
  transition: color .15s ease, border-color .15s ease;
}
.video-channel a:hover { color: var(--gold); border-color: var(--gold-soft); }
.video-group-desc {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.55;
  margin: 10px 0 0;
  max-width: 68ch;
}

/* ── Responsive embed wrapper ─────────────────────────────── */

.video-embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 3px;
  background: #0a1410;
}
.video-embed iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: none;
}
.video-embed--full { margin-top: 24px; }

/* ── Playlist track list ──────────────────────────────────── */

.video-playlist-tracks {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  counter-reset: track;
}
.video-playlist-tracks li {
  counter-increment: track;
  display: flex;
  gap: 10px;
  align-items: baseline;
  padding: 9px 12px;
  border-bottom: 1px solid var(--hairline);
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.4;
}
.video-playlist-tracks li:nth-child(odd) {
  border-right: 1px solid var(--hairline);
}
.video-playlist-tracks li::before {
  content: counter(track);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--ink-mute);
  flex-shrink: 0;
  min-width: 16px;
  padding-top: 2px;
}
.video-playlist-tracks strong {
  color: var(--ink);
  font-weight: 600;
}

/* ── Video grids ──────────────────────────────────────────── */

.video-grid {
  display: grid;
  gap: 20px;
  margin-top: 24px;
}
.video-grid--3col { grid-template-columns: repeat(3, 1fr); }
.video-grid--2col { grid-template-columns: repeat(2, 1fr); }

.video-card-title {
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin: 10px 0 4px;
  line-height: 1.35;
}
.video-card-desc {
  font-size: 13px;
  color: var(--ink-mute);
  line-height: 1.45;
  margin: 0;
}

@media (max-width: 900px) {
  .video-grid--3col { grid-template-columns: repeat(2, 1fr); }
  .video-playlist-tracks { grid-template-columns: 1fr; }
  .video-playlist-tracks li:nth-child(odd) { border-right: none; }
}
@media (max-width: 560px) {
  .video-grid--3col,
  .video-grid--2col { grid-template-columns: 1fr; }
}
