:root {
  --av-green-950: #071811;
  --av-green-900: #0d2a1d;
  --av-green-800: #123923;
  --av-green-600: #2e6d45;
  --av-green-500: #3f8f5c;
  --av-gold: #d9a441;
  --av-water: #6fb7c8;
  --av-paper: #f6f4ea;
  --av-card: #fffdf6;
  --av-ink: #17211b;
  --av-muted: #607067;
  --av-line: #dbe4dc;
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--av-ink);
  background:
    radial-gradient(circle at top left, rgba(111,183,200,.28), transparent 34rem),
    linear-gradient(145deg, #f8f6ee 0%, #eef5ec 52%, #e3efe8 100%);
  min-height: 100vh;
}
a { color: inherit; }
.app-shell { min-height: 100vh; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 1000;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: .85rem clamp(1rem, 3vw, 2rem);
  background: rgba(7,24,17,.92); color: white; backdrop-filter: blur(14px);
  box-shadow: 0 12px 30px rgba(0,0,0,.18);
}
.brand { display: inline-flex; align-items: center; gap: .75rem; text-decoration: none; }
.brand-mark { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 999px; background: var(--av-gold); color: #102016; font-weight: 900; }
.brand small { display: block; color: rgba(255,255,255,.7); font-size: .76rem; margin-top: .1rem; }
.topbar nav { display: flex; gap: .9rem; flex-wrap: wrap; }
.topbar nav a { color: rgba(255,255,255,.82); text-decoration: none; font-weight: 650; font-size: .92rem; }
.topbar nav a:hover { color: white; }
main { flex: 1; }
.hero {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(18rem, 25rem); gap: clamp(1rem, 4vw, 3rem);
  align-items: end; padding: clamp(2rem, 6vw, 5rem) clamp(1rem, 4vw, 3rem) clamp(1.2rem, 3vw, 2rem);
}
.eyebrow { color: var(--av-green-600); text-transform: uppercase; letter-spacing: .13em; font-weight: 800; font-size: .82rem; }
h1 { font-size: clamp(2.2rem, 5vw, 4.8rem); line-height: .94; margin: .25rem 0 1rem; color: var(--av-green-950); letter-spacing: -.05em; }
.hero p { max-width: 62rem; font-size: clamp(1.05rem, 1.5vw, 1.22rem); line-height: 1.6; color: #314239; }
.hero-actions { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1.5rem; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: .78rem 1rem; border-radius: 999px; text-decoration: none; font-weight: 800; border: 1px solid var(--av-green-600); color: var(--av-green-900); background: rgba(255,255,255,.65); }
.button.primary { background: var(--av-green-800); color: white; border-color: var(--av-green-800); }
.hero-card { background: rgba(255,253,246,.78); border: 1px solid rgba(255,255,255,.7); border-radius: 28px; padding: 1.35rem; box-shadow: 0 24px 70px rgba(13,42,29,.18); display: grid; gap: .5rem; }
.hero-card strong { font-size: 1.6rem; color: var(--av-green-900); }
.hero-card span { color: var(--av-muted); }
.map-layout {
  display: grid; grid-template-columns: 21rem minmax(22rem, 1fr) minmax(18rem, 26rem); gap: 1rem;
  padding: 1rem clamp(1rem, 3vw, 2rem) 2rem;
  min-height: min(78vh, 58rem);
}
.sidebar, .map-card, .detail-panel, .info-grid article, .legal-page {
  background: rgba(255,253,246,.88); border: 1px solid rgba(255,255,255,.72); border-radius: 24px; box-shadow: 0 20px 60px rgba(13,42,29,.13);
}
.sidebar { padding: 1rem; overflow: hidden; display: flex; flex-direction: column; min-height: 35rem; max-height: min(78vh, 48rem); align-self: start; }
.search-label { font-weight: 850; margin-bottom: .45rem; color: var(--av-green-900); }
#search { width: 100%; min-height: 46px; border: 1px solid var(--av-line); border-radius: 14px; padding: .75rem .9rem; font: inherit; background: white; }
.filter-row { display: flex; flex-wrap: wrap; gap: .4rem; margin: .8rem 0; }
.chip { border: 1px solid var(--av-line); background: white; color: var(--av-green-900); border-radius: 999px; padding: .48rem .72rem; font-weight: 800; cursor: pointer; }
.chip.active, .chip:hover { background: var(--av-green-800); color: white; border-color: var(--av-green-800); }
.water-list { list-style: none; padding: 0; margin: 0; overflow: auto; display: grid; gap: .45rem; }
.water-list button { width: 100%; border: 1px solid transparent; text-align: left; background: rgba(255,255,255,.72); border-radius: 16px; padding: .75rem; cursor: pointer; color: var(--av-ink); }
.water-list button:hover, .water-list button.active { border-color: var(--av-green-500); background: white; }
.water-list strong { display: block; color: var(--av-green-900); }
.water-list small { color: var(--av-muted); }
.map-card { position: relative; min-height: 35rem; height: min(78vh, 48rem); align-self: start; overflow: hidden; }
#map { width: 100%; height: 100%; min-height: 35rem; z-index: 1; }
.map-note { position: absolute; left: .75rem; bottom: .75rem; z-index: 500; background: rgba(255,255,255,.86); border-radius: 999px; padding: .35rem .65rem; font-size: .75rem; color: #2d3932; box-shadow: 0 8px 26px rgba(0,0,0,.12); }
.detail-panel { position: relative; padding: 1.2rem; overflow: auto; min-height: 35rem; max-height: min(78vh, 48rem); align-self: start; }
.close { position: absolute; top: .8rem; right: .8rem; width: 38px; height: 38px; border: 0; border-radius: 999px; background: var(--av-green-900); color: white; font-size: 1.5rem; cursor: pointer; }
.detail-panel h2 { color: var(--av-green-950); margin: 0 2rem .4rem 0; font-size: 1.65rem; }
.meta-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; margin: 1rem 0; }
.meta-grid div, .notice { background: rgba(46,109,69,.09); border: 1px solid rgba(46,109,69,.16); border-radius: 14px; padding: .65rem; }
.meta-grid span { display: block; color: var(--av-muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; font-weight: 800; }
.meta-grid strong { display: block; margin-top: .1rem; color: var(--av-green-900); }
.detail-rich { line-height: 1.55; color: #28372f; }
.season-table { width: 100%; border-collapse: collapse; margin-top: .75rem; font-size: .88rem; }
.season-table th, .season-table td { border-bottom: 1px solid var(--av-line); padding: .45rem .3rem; text-align: left; vertical-align: top; }
.season-table th { color: var(--av-green-900); font-size: .76rem; text-transform: uppercase; letter-spacing: .04em; }
.info-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; padding: 0 clamp(1rem, 3vw, 2rem) 2rem; }
.info-grid article { padding: 1.2rem; }
.info-grid h2 { color: var(--av-green-900); margin: 0 0 .5rem; }
footer { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: 1.2rem clamp(1rem, 3vw, 2rem); color: rgba(255,255,255,.78); background: var(--av-green-950); }
.legal-page { max-width: 900px; margin: 2rem auto; padding: clamp(1rem, 4vw, 2rem); }
.marker-icon { background: var(--av-green-800); color: white; width: 34px; height: 34px; border-radius: 999px; display: grid; place-items: center; border: 3px solid white; box-shadow: 0 8px 22px rgba(0,0,0,.24); }
.marker-icon.active { background: var(--av-gold); color: var(--av-green-950); transform: scale(1.12); }
.leaflet-control-layers { border-radius: 14px !important; overflow: hidden; }
@media (max-width: 1180px) { .map-layout { grid-template-columns: 19rem 1fr; } .detail-panel { grid-column: 1 / -1; min-height: auto; max-height: none; } }
@media (max-width: 820px) { .topbar { align-items: flex-start; flex-direction: column; } .hero { grid-template-columns: 1fr; } .map-layout, .info-grid { grid-template-columns: 1fr; } .sidebar { min-height: 20rem; max-height: 30rem; } .map-card, #map { min-height: 70vh; height: 70vh; } .meta-grid { grid-template-columns: 1fr; } }
