/* GoneKiwi · explore Aotearoa */
:root{ --bg:#f5f1e8; --surface:#fffdf8; --ink:#1d1b18; --muted:#5d564d; --line:#ddd2bf; --forest:#0f2218; --gold:#c5a059; --accent:#a63a28; --teal:#0b6f6a;
  --radius:14px; --sans:'DM Sans',system-ui,sans-serif; --serif:'Playfair Display',Georgia,serif; }
@media (prefers-color-scheme:dark){ :root{ --bg:#121411; --surface:#1b1d19; --ink:#efeae0; --muted:#bdb4a5; --line:#373a33; --accent:#ff8a6b; --teal:#4fd1c5; } }
*{ box-sizing:border-box; }
[hidden]{ display:none !important; }
body{ margin:0; background:var(--bg); color:var(--ink); font:1rem/1.6 var(--sans); }
a{ color:var(--accent); }
:focus-visible{ outline:3px solid var(--gold); outline-offset:2px; }
.sr-only{ position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
.skip{ position:absolute; left:12px; top:-60px; z-index:3000; background:var(--ink); color:var(--bg); padding:10px 16px; border-radius:8px; }
.skip:focus{ top:12px; }
.small{ font-size:.88rem; } .muted{ color:var(--muted); }
h1,h2,h3{ font-family:var(--serif); line-height:1.15; }
.wrap{ max-width:1100px; margin:0 auto; padding:0 20px; }
.btn{ display:inline-flex; align-items:center; gap:8px; padding:9px 16px; border-radius:99px; background:var(--forest); color:#fff; border:2px solid var(--forest); font:700 .92rem var(--sans); text-decoration:none; cursor:pointer; }
.btn-ghost{ background:transparent; color:var(--ink); border-color:var(--line); }
.btn.is-on{ background:#1d64d8; border-color:#1d64d8; color:#fff; }
.btn-sm{ padding:6px 12px; font-size:.82rem; }
.linkbtn{ background:none; border:0; color:var(--accent); cursor:pointer; padding:6px; font:inherit; }
.eco-header{ background:rgba(15,34,24,.97); }
.eco-spacer{ height:var(--eco-h, 66px); }

/* App layout: list panel + full-height map */
body.app{ overflow:hidden; }
.app-main{ display:grid; grid-template-columns:380px 1fr; height:calc(100vh - var(--eco-h, 66px)); height:calc(100dvh - var(--eco-h, 66px)); }
.panel{ overflow-y:auto; background:var(--surface); border-right:1px solid var(--line); padding:14px 16px 24px; }
.panel h1{ font-size:1.5rem; margin:0 0 10px; }
.kick{ display:block; font:700 .85rem var(--sans); color:var(--teal); letter-spacing:.03em; }
.search input{ width:100%; font:inherit; padding:11px 14px; border-radius:12px; border:1.5px solid var(--line); background:var(--bg); color:var(--ink); }
.gps-row{ display:flex; flex-wrap:wrap; gap:8px; margin:10px 0 2px; }
.layers{ margin:8px 0; border:1px solid var(--line); border-radius:var(--radius); padding:6px 12px 10px; }
.layers summary{ font-weight:700; cursor:pointer; padding:6px 0; }
.layers fieldset{ border:0; padding:0; margin:8px 0 0; display:flex; flex-wrap:wrap; gap:6px; }
.layers legend{ font-size:.75rem; font-weight:700; text-transform:uppercase; letter-spacing:.05em; color:var(--muted); margin-bottom:4px; }
.chip{ display:inline-flex; align-items:center; gap:6px; padding:5px 10px 5px 5px; border:1.5px solid var(--line); border-radius:99px; font-size:.86rem; cursor:pointer; background:var(--bg); }
.chip input{ position:absolute; opacity:0; width:1px; height:1px; }
.chip:has(input:checked){ border-color:var(--c); background:color-mix(in srgb, var(--c) 12%, var(--surface)); }
.chip:has(input:focus-visible){ outline:3px solid var(--gold); }
.chip:not(:has(input:checked)) .pin-ico{ filter:grayscale(1); opacity:.5; }
.chip .n{ color:var(--muted); font-size:.75rem; }
.pin-ico{ display:inline-flex; align-items:center; justify-content:center; width:24px; height:24px; border-radius:50%; background:var(--c); color:#fff; font-size:.72rem; flex:0 0 auto; }
.list-h{ font-size:1.05rem; margin:14px 0 6px; font-family:var(--sans); }
.plist{ list-style:none; margin:0; padding:0; }
.plist li{ display:flex; align-items:center; border-bottom:1px solid var(--line); }
.plist li a{ flex:1; display:flex; gap:10px; align-items:center; padding:8px 4px; text-decoration:none; color:var(--ink); min-width:0; }
.pl-t{ display:flex; flex-direction:column; min-width:0; }
.pl-t strong{ font-size:.95rem; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.panel-foot{ margin-top:14px; }
.sheet-handle{ display:none; }
.mapwrap{ position:relative; }
#map{ position:absolute; inset:0; background:#c9d6cf; }
.map-empty{ position:absolute; z-index:500; left:50%; top:20px; transform:translateX(-50%); background:var(--surface); border:1px solid var(--line); border-radius:var(--radius); padding:8px 16px; max-width:90%; }

/* Pins and cards */
.hpin span{ display:flex; align-items:center; justify-content:center; width:28px; height:28px; border-radius:50%; color:#fff; font-size:13px; border:2px solid #fff; box-shadow:0 1px 4px rgba(0,0,0,.55); }
.hpin{ background:none; border:0; }
.leaflet-tooltip.htip{ padding:0; border:0; border-radius:12px; overflow:hidden; box-shadow:0 8px 24px rgba(0,0,0,.3); }
.leaflet-tooltip.htip::before{ display:none; }
.hcard{ width:240px; font:14px/1.4 var(--sans); color:#1d1b18; background:#fffdf8; }
.hcard img{ display:block; width:100%; height:130px; object-fit:cover; background:#ddd; }
.hcard-t{ padding:9px 11px 10px; display:flex; flex-direction:column; gap:3px; white-space:normal; }
.hcard-t strong{ font-size:15px; }
.htag{ align-self:flex-start; color:#fff; font-size:10.5px; font-weight:700; text-transform:uppercase; letter-spacing:.04em; padding:2px 8px; border-radius:99px; }
.note-s{ margin:4px 0 0; color:#5d564d; }
.hcard-a{ display:flex; gap:6px; margin-top:6px; }
.leaflet-popup-content{ margin:0; } .leaflet-popup-content-wrapper{ padding:0; overflow:hidden; border-radius:12px; }
.leaflet-popup-content .hcard{ width:280px; }
.leaflet-popup-content .btn{ color:#fff; } .leaflet-popup-content .btn-ghost{ color:#1d1b18; }

/* Phones: full map, list slides up from the bottom */
@media (max-width:820px){
  .app-main{ grid-template-columns:1fr; position:relative; }
  .mapwrap{ height:100%; }
  .panel{ position:absolute; z-index:800; left:0; right:0; bottom:0; max-height:78%; border-right:0; border-top:1px solid var(--line);
    border-radius:18px 18px 0 0; box-shadow:0 -10px 30px rgba(0,0,0,.25); transform:translateY(calc(100% - 132px)); transition:transform .25s ease; padding-top:4px; }
  .panel.open{ transform:none; }
  .sheet-handle{ display:flex; justify-content:center; width:100%; padding:8px 0 6px; background:none; border:0; cursor:pointer; }
  .sheet-handle span:first-child{ width:44px; height:5px; border-radius:3px; background:var(--line); }
  .panel h1{ font-size:1.1rem; } .panel h1 .kick{ display:inline; margin-right:6px; }
}
@media (prefers-reduced-motion:reduce){ .panel{ transition:none; } }

/* Content pages */
.page{ padding:28px 0 50px; }
.page h1{ font-size:clamp(1.9rem,4vw,2.8rem); margin:.2em 0 .3em; }
.lede{ font-size:1.12rem; color:var(--muted); max-width:46rem; }
.crumbs{ font-size:.9rem; }
.note{ background:var(--surface); border:1px solid var(--line); border-left:5px solid var(--gold); border-radius:var(--radius); padding:12px 16px; margin:16px 0; }
.note.warn{ border-left-color:#e8590c; } .note.ok{ border-left-color:#16a34a; }
.facts{ display:grid; grid-template-columns:max-content 1fr; gap:6px 18px; margin:16px 0; }
.facts dt{ font-weight:700; color:var(--muted); } .facts dd{ margin:0; }
.pphoto{ margin:0 0 16px; } .pphoto img{ width:100%; max-height:420px; object-fit:cover; border-radius:var(--radius); }
.pphoto figcaption{ font-size:.8rem; color:var(--muted); }
.detail{ display:grid; grid-template-columns:1.2fr 1fr; gap:26px; }
#pmap{ height:340px; border-radius:var(--radius); border:1px solid var(--line); }
.actions{ display:flex; flex-wrap:wrap; gap:8px; margin:16px 0; }
.guide h2{ margin-top:1.6em; } .guide li{ margin:.3em 0; }
.toc{ background:var(--surface); border:1px solid var(--line); border-radius:var(--radius); padding:10px 18px; }
@media (max-width:820px){ .detail{ grid-template-columns:1fr; } }
.foot{ background:var(--forest); color:#d9e3dc; padding:30px 0 14px; }
.foot a{ color:#e8c97e; } .foot-grid{ display:grid; grid-template-columns:1.4fr 1fr; gap:24px; }
.foot-brand{ font:700 1.2rem var(--serif); color:#fff; } .foot-brand span{ font:400 .9rem var(--sans); color:#9fb3a7; }
.foot-h{ font-weight:700; color:#fff; } .foot ul{ list-style:none; padding:0; margin:0; }
.foot-copy{ text-align:center; font-size:.8rem; color:#9fb3a7; margin:20px 0 0; padding:0 16px; }
@media (max-width:700px){ .foot-grid{ grid-template-columns:1fr; } }

/* DOC camping rules */
.rule-no{color:#b91c1c;font-weight:600}
.rule-sc,.rule-rule{color:#b45309;font-weight:600}
