:root{
  --bg:#efece6; --paper:#fffdf9; --ink:#1c1b19; --muted:#4a4540; --line:#d6cfc3;
  --brick:#8a2d1c; --green:#1d5a37; --green2:#1c1c1c; --gold:#d9a520; --gold-soft:#f6e7b8; --coal:#1c1c1c;
  --link:#8a2d1c; --radius:12px; --shadow:0 1px 2px rgba(20,20,20,.08), 0 6px 18px rgba(20,20,20,.07);
  --bar-h:72px;
  --serif:"Source Serif 4", Georgia, "Times New Roman", serif;
  --display:"Oswald", "Arial Narrow", Arial, sans-serif;
  --sans:"Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%;text-size-adjust:100%}
body{margin:0;font-family:var(--sans);font-size:18px;line-height:1.6;color:var(--ink);background:var(--bg);overflow-wrap:break-word}
h1,h2,h3,h4{font-family:var(--serif);line-height:1.2;margin:0;font-weight:700}
a{color:var(--link);text-underline-offset:2px}
img{max-width:100%;height:auto;display:block}
b,strong{font-weight:700}
[hidden]{display:none!important}
.skip{position:absolute;left:-999px;top:0;background:#000;color:#fff;padding:12px;z-index:9999}
.skip:focus{left:8px}
:focus-visible{outline:3px solid #b3862a;outline-offset:2px}

/* HERO */
.hero{background-color:#1c1c1c;background-image:linear-gradient(160deg,#2e2c2a 0%,#1c1c1c 55%,#141414 100%);color:#f4efe6;border-bottom:6px solid var(--gold);box-shadow:inset 0 -6px 0 #8a2d1c}
.hero-inner{max-width:760px;margin:0 auto;padding:26px 18px 18px}
.kicker{margin:0 0 4px;font-size:15px;letter-spacing:.14em;text-transform:uppercase;color:#f0cf73;font-weight:700}
.kicker::before{content:"⚒ ";color:var(--gold)}
.hero h1{font-family:var(--display);font-size:clamp(42px,13vw,76px);letter-spacing:.04em;text-transform:uppercase;color:#ffffff;line-height:1.08;text-shadow:0 2px 0 rgba(0,0,0,.18)}
.hero h1::after{content:"";display:block;width:88px;height:3px;margin:12px 0 0;background:linear-gradient(90deg,var(--gold) 0 60%,#8a2d1c 60% 100%);border-radius:2px}
.subtitle{font-family:var(--serif);font-size:clamp(19px,5.2vw,24px);line-height:1.35;margin:10px 0 16px;color:#efe6d2;font-weight:600}
.stats{list-style:none;padding:0;margin:0 0 18px;display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.stats li{border:1px solid rgba(224,180,58,.6);border-radius:10px;padding:8px 6px;text-align:center;line-height:1.2;background:#262626}
.stats b{display:block;font-family:var(--display);font-size:20px;color:#f0cf73;white-space:nowrap;letter-spacing:.02em}
.stats span{font-size:14.5px;color:#e8e1d4}
.hero-btns{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.hero-fig{margin:0;max-width:760px;margin:0 auto;padding:0 18px 18px}
.hero-fig img{width:100%;aspect-ratio:2/1;object-fit:cover;border-radius:10px;border:2px solid rgba(224,180,58,.75)}
.hero-fig figcaption{font-size:14px;color:#e2dccf;margin-top:6px;line-height:1.4}
.hero-fig figcaption a{color:#f0cf73}

/* BUTTONS */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:48px;padding:8px 14px;border-radius:10px;border:1.5px solid #3a3632;background:var(--paper);color:var(--ink);font:600 17px/1.2 var(--sans);text-align:center;text-decoration:none;cursor:pointer;-webkit-tap-highlight-color:transparent;min-width:0;transition:background .15s}
.btn:hover{background:#f3eee4}
.btn:active{transform:translateY(1px)}
.btn svg{width:19px;height:19px;flex:0 0 auto}
.btn-big{min-height:52px;font-size:18px}
.btn-dark{background:var(--green2);border-color:var(--green2);color:#fff}
.btn-dark:hover{background:#333}
.btn-gold{background-color:#e0b43a;background-image:linear-gradient(#f0c95a,#dcae34);border-color:#e0b43a;color:#1c1c1c;font-weight:700}
.btn-gold:hover{background:#f3cf66}
.btn-ghost{background:transparent;border-color:#e0b43a;color:#ffffff}
.btn-ghost:hover{background:rgba(255,255,255,.08)}
.link-btn{background:none;border:0;color:var(--link);font:600 17px var(--sans);text-decoration:underline;cursor:pointer;min-height:44px;min-width:44px;padding:0 4px}

/* STICKY BAR */
.bar{position:sticky;top:0;z-index:1000;background:rgba(239,236,230,.97);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);border-bottom:3px solid var(--gold);padding:8px 10px;box-shadow:0 3px 10px rgba(20,20,20,.1)}
.bar-row{display:flex;gap:6px;align-items:stretch;max-width:760px;margin:0 auto}
.search{flex:1 1 auto;min-width:0;display:flex;align-items:center;gap:6px;background:var(--paper);border:1.5px solid #3a3632;border-radius:10px;padding:0 4px 0 10px;min-height:52px;color:var(--muted)}
.s-ico{width:20px;height:20px;flex:0 0 auto}
.search input{flex:1;min-width:0;width:100%;border:0;outline:0;font:400 18px var(--sans);background:transparent;color:var(--ink);padding:8px 0}
.search input::placeholder{color:#5f5953}
.search input::-webkit-search-cancel-button{display:none}
.search:focus-within{box-shadow:0 0 0 3px rgba(217,165,32,.55)}
.clear-q{flex:0 0 auto;width:44px;height:44px;border:0;border-radius:8px;background:#e9e4da;font:700 18px var(--sans);color:var(--ink);cursor:pointer}
.tb{position:relative;flex:0 0 auto;width:56px;min-height:52px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;border:1.5px solid #3a3632;border-radius:10px;background:var(--paper);color:var(--ink);text-decoration:none;cursor:pointer;padding:3px 0;-webkit-tap-highlight-color:transparent;font-family:var(--sans)}
.tb-i{width:21px;height:21px}
.tb-l{font-size:13px;font-weight:700;line-height:1.15}
.tb[aria-pressed="true"],.tb[aria-expanded="true"]{background:var(--green2);border-color:var(--green2);color:#fff}
.tb-dot{position:absolute;top:4px;right:4px;width:11px;height:11px;border-radius:50%;background:#d9a520;border:2px solid #fff;font-size:0}
.filters{max-width:760px;margin:8px auto 0;padding-top:8px;border-top:1px solid var(--line)}
.filters-title{margin:0 0 6px;font-weight:600;font-size:15px;color:var(--muted)}
.chips{display:flex;flex-wrap:wrap;gap:8px}
.chip{min-height:44px;padding:6px 14px;border-radius:999px;border:1.5px solid #3a3632;background:var(--paper);font:600 16px/1.2 var(--sans);color:var(--ink);cursor:pointer;-webkit-tap-highlight-color:transparent}
.chip .ci{color:var(--c)}
.chip[aria-pressed="true"]{background:var(--c,var(--ink));color:#fff;border-color:var(--c,var(--ink))}
.chip[aria-pressed="true"] .ci{color:#fff}

main{max-width:760px;margin:0 auto;padding:18px 12px 44px}
section[id],article[id]{scroll-margin-top:var(--bar-h)}
.section-title{font-family:var(--display);font-size:30px;letter-spacing:.03em;text-transform:uppercase;margin:0 0 12px;color:#1c1c1c}
.section-title::after{content:"";display:block;width:64px;height:4px;background:linear-gradient(90deg,var(--gold) 0 60%,#8a2d1c 60% 100%);margin-top:6px;border-radius:2px}
.panel{background:var(--paper);border:1px solid var(--line);border-radius:var(--radius);padding:18px 16px;box-shadow:var(--shadow);margin-bottom:20px}
.panel h2{font-size:26px;margin-bottom:10px;color:#1c1c1c}
.intro p{margin:0 0 12px}
.h2-route{margin-top:18px}
.tips{list-style:none;padding:0;margin:8px 0 0;display:grid;gap:8px}
.tips li{background:#f4efe3;border-left:4px solid var(--gold);border-radius:0 10px 10px 0;padding:10px 12px;line-height:1.5}

/* sources inside cards/intro */
details.src{margin:8px 0 0;border-top:1px solid var(--line)}
details.src summary{cursor:pointer;min-height:44px;display:flex;align-items:center;font-weight:600;font-size:16px;color:var(--link);list-style:none;gap:6px}
details.src summary::-webkit-details-marker{display:none}
details.src summary::before{content:"▸";display:inline-block;transition:transform .15s}
details.src[open] summary::before{transform:rotate(90deg)}
details.src ul{margin:0 0 6px;padding-left:20px;font-size:16px;line-height:1.45}
details.src li{margin:0 0 8px}

/* PROGRESS */
.progress-panel{background:#f6efdc;border-color:#dcc58a;padding:12px 14px}
.progress-top{display:flex;justify-content:space-between;align-items:center;gap:8px;font-size:18px;line-height:1.3}
.progress{height:14px;border-radius:999px;background:#fff;border:1px solid #b3862a;overflow:hidden;margin:8px 0}
.progress-fill{height:100%;width:0;background-color:#8a2d1c;background-image:linear-gradient(90deg,#8a2d1c,#b0452a);transition:width .4s}
.progress-hint{margin:0;font-size:16px;color:var(--muted);line-height:1.45}

/* MAP */
.map-wrap{margin:6px 0 24px}
#map{height:calc(100svh - var(--bar-h) - 120px);min-height:320px;max-height:640px;border-radius:var(--radius);border:2px solid #b3862a;box-shadow:var(--shadow);z-index:1;background:#e7e2d6}
@supports not (height:100svh){#map{height:calc(100vh - var(--bar-h) - 120px)}}
.legend{list-style:none;display:flex;flex-wrap:wrap;gap:4px 16px;padding:0;margin:8px 2px 0;font-size:15.5px;color:var(--muted)}
.legend li{display:flex;align-items:center;gap:6px;white-space:nowrap}
.lg{display:inline-block;width:28px;height:0}
.lg-dot{display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;border-radius:50%;background:#8a2d1c;color:#fff;font:700 12px var(--sans);border:2px solid #fff;box-shadow:0 0 0 1px #8a7d68}
.lg-dot.lg-done{background:#1d5a37}
.pin-o{width:32px;height:32px;transition:transform .2s}
.pin{width:32px;height:32px;border-radius:50%;background:var(--c);border:2.5px solid #fff;box-shadow:0 1px 5px rgba(0,0,0,.45);display:flex;align-items:center;justify-content:center;color:#fff;font:700 15px/1 var(--sans);position:relative}
.pin.done::after{content:"✓";position:absolute;right:-6px;top:-6px;width:17px;height:17px;border-radius:50%;background:#1d5a37;color:#fff;font-size:11px;line-height:17px;text-align:center;border:1.5px solid #fff}
.map-btn{background:#fff;border:2px solid rgba(0,0,0,.3)!important;border-radius:8px!important;min-height:44px;padding:0 12px;font:600 15px var(--sans);color:var(--ink);cursor:pointer;background-clip:padding-box}
.leaflet-touch .leaflet-bar a{width:44px;height:44px;line-height:44px;font-size:22px}
.leaflet-popup-content-wrapper{border-radius:12px;border:1.5px solid #b3862a;padding:0;box-shadow:0 4px 16px rgba(0,0,0,.25)}
.leaflet-popup-content{margin:10px 12px 12px;font:15.5px/1.4 var(--sans);width:auto!important;min-width:200px;max-width:232px}
.leaflet-container a.leaflet-popup-close-button{width:44px;height:44px;font:24px/42px sans-serif;top:0;right:0;color:var(--ink)}
.pop h3{font-size:17px;margin:0 34px 3px 0;line-height:1.25}
.pop .addr{color:var(--muted);font-size:14px;margin:0 0 4px}
.pop p{margin:0 0 8px}
.pop-btns{display:grid;grid-template-columns:1fr 1fr;gap:6px}
.pop .btn{min-height:44px;font-size:15px;padding:4px 6px;border-radius:8px}
.leaflet-container a.btn{color:var(--ink)}
.leaflet-container a.btn.btn-dark{color:#fff}
.leaflet-container{font-family:var(--sans)}

/* LIST */
.list-status{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;margin:-4px 0 10px;font-weight:600;color:var(--muted);font-size:16px;min-height:44px}
#cards{display:grid;gap:18px}
.place{background:var(--paper);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);overflow:hidden;border-top:5px solid var(--c)}
.place::before{content:"";display:block;height:2px;background:var(--gold);opacity:.7}
.place.flash{animation:flash 1.6s}
@keyframes flash{0%,100%{box-shadow:var(--shadow)}25%{box-shadow:0 0 0 5px var(--gold),var(--shadow)}}
.place-head{display:grid;grid-template-columns:auto 1fr;gap:14px;align-items:start;padding:14px 14px 10px}
.num{width:42px;height:42px;border-radius:50%;background:var(--c);color:#fff;display:flex;align-items:center;justify-content:center;font:700 19px var(--serif);margin-top:2px;box-shadow:0 0 0 2px #fff,0 0 0 4px var(--gold)}
.place-head h3{font-size:23px;color:var(--ink);overflow-wrap:anywhere;hyphens:auto}
.place-head .meta{font-size:15.5px;font-weight:600;margin:4px 0 0;line-height:1.3;color:var(--c)}
.done-badge{display:none}
.place.done .done-badge{display:inline-block;background:#e1eee5;color:#1d5a37;border-radius:999px;padding:1px 10px;font-size:14px;font-weight:700;margin-top:6px}
.place-fig{margin:0}
.place-fig img{width:100%;aspect-ratio:3/2;object-fit:cover;background:#e3ded4}
.place-fig figcaption{font-size:13.5px;color:var(--muted);padding:5px 14px 0;line-height:1.4}
.place-fig figcaption a{color:var(--muted)}
.place-body{padding:10px 14px 14px}
.addr-line{display:flex;gap:6px 10px;align-items:center;font-weight:600;margin:0 0 10px;line-height:1.4;flex-wrap:wrap}
.addr-line .pin-ico{width:18px;height:18px;color:var(--brick);flex:0 0 auto}
.place-body h4{font-size:19px;margin:14px 0 6px;color:#1c1c1c}
.place-body h4:first-of-type{margin-top:4px}
.place-body > p{margin:0 0 10px}
.facts{margin:0 0 10px;padding:0;list-style:none;display:grid;gap:8px}
.facts li{position:relative;padding-left:22px;line-height:1.55}
.facts li::before{content:"";position:absolute;left:4px;top:.62em;width:8px;height:8px;background:var(--gold);transform:rotate(45deg)}
.tip{margin:6px 0 10px;padding:10px 12px;border-radius:10px;background:#f4efe3;border-left:4px solid var(--brick);line-height:1.5;font-size:17px}
.lgd{margin:8px 0 12px;padding:12px 14px 12px;border-radius:10px;background:#fbf3dc;border:1.5px dashed #b3862a;line-height:1.55;font-size:17px;position:relative}
.lgd strong{display:block;font-family:var(--serif);font-style:italic;font-size:18px;color:#8a2d1c;margin-bottom:3px}
.lgd p{margin:0;font-style:italic;color:#34302b}
.lgd-talk{background:#edf4ef;border-color:#1d5a37}
.lgd-talk strong{color:#1d5a37}
.tip strong{display:block;font-family:var(--serif);font-size:17px;margin-bottom:2px}
.actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:12px}
.actions .btn{width:100%}
.btn-found{grid-column:1 / -1;min-height:50px}
.btn-found .box{width:20px;height:20px;border:2px solid currentColor;border-radius:4px;display:inline-flex;align-items:center;justify-content:center;font-size:14px;line-height:1}
.place.done .btn-found{background:#1d5a37;border-color:#1d5a37;color:#fff}
.empty{text-align:center;font-size:20px;font-weight:600;padding:24px 10px}
.empty p{margin:0 0 12px}

/* FOOTER */
.footer{background:#1c1c1c;border-top:6px solid var(--gold);box-shadow:inset 0 6px 0 #8a2d1c;color:#ece6da;padding:28px 16px 40px;padding-bottom:calc(40px + env(safe-area-inset-bottom));font-size:16.5px}
.f-inner{max-width:760px;margin:0 auto}
.footer h2{font-family:var(--display);text-transform:uppercase;letter-spacing:.03em;font-size:28px;color:#ffffff;margin-bottom:8px}
.footer h3{font-size:20px;color:#fffaf0;margin:20px 0 6px}
.footer h4{font-family:var(--sans);font-size:16.5px;margin:12px 0 4px;color:#fffaf0}
.footer a{color:#f0cf73}
.footer p{margin:0 0 10px}
.footer ul{margin:0;padding-left:20px}
.footer li{margin:0 0 6px;line-height:1.45}
.flinks{list-style:none;padding:0!important;margin:16px 0 0!important;display:flex;flex-wrap:wrap;gap:8px}
.flinks a{display:inline-flex;align-items:center;min-height:44px;padding:0 14px;border:1.5px solid #f0cf73;border-radius:10px;text-decoration:none;font-weight:600}

@media (max-width:359px){
  body{font-size:17px}
  .tb{width:50px}
  .tb-l{font-size:12px}
  .place-head{gap:10px;padding:12px 12px 8px}
  .place-head h3{font-size:21px}
  .actions .btn{font-size:16px;padding:8px 6px}
  .hero-btns .btn{font-size:16.5px}
  .stats b{font-size:16px}
  .stats span{font-size:14px}
  .stats li{padding:8px 3px}
}
@media (min-width:700px){
  .hero-inner{padding:40px 24px 20px}
  .hero-fig{padding:0 24px 24px}
  #map{max-height:560px}
}
@media (orientation:landscape) and (max-height:500px){
  #map{height:calc(100vh - var(--bar-h) - 60px);min-height:230px}
  .map-wrap .section-title{font-size:22px}
  .hero-fig img{aspect-ratio:16/6}
  .pop .short{display:none}
  .pop h3{font-size:16px}
}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{transition:none!important;animation:none!important}}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.section-title{font-weight:700}
.addr-line > span{flex:1 1 0;min-width:0}
/* ---------- live location */
.loc-btn{display:flex;align-items:center;gap:6px;background:#fff;border:2px solid rgba(0,0,0,.3)!important;border-radius:8px!important;min-height:44px;min-width:44px;padding:0 12px 0 10px;font:700 15px var(--sans);color:#0b4fb3;cursor:pointer;background-clip:padding-box;box-shadow:0 1px 5px rgba(0,0,0,.25)}
.loc-btn svg{width:22px;height:22px;flex:0 0 auto}
.loc-btn[data-state=searching] svg{animation:locspin 1.1s linear infinite}
.loc-btn[data-state=follow]{background:#1a5fd1;background-color:#1a5fd1;color:#fff;border-color:#0b3f94!important}
.loc-btn[data-state=on]{color:#0b4fb3;background:#e8f0fe;background-color:#e8f0fe}
.loc-btn[data-state=error]{color:#a3261a}
@keyframes locspin{to{transform:rotate(360deg)}}
.me-icon{background:none;border:0}
.me{position:relative;width:22px;height:22px}
.me-core{position:absolute;inset:2px;border-radius:50%;background:#1a73e8;border:3px solid #fff;box-shadow:0 0 0 1px rgba(0,0,0,.25),0 2px 6px rgba(0,0,0,.45);animation:meblink 1.6s ease-in-out infinite}
.me-pulse{position:absolute;inset:0;border-radius:50%;background:rgba(26,115,232,.45);animation:mepulse 2s ease-out infinite}
.me-cone{position:absolute;left:50%;top:50%;width:0;height:0;margin:-34px 0 0 -14px;border-left:14px solid transparent;border-right:14px solid transparent;border-bottom:34px solid rgba(26,115,232,.35);transform-origin:14px 34px}
.me-cone[hidden]{display:none}
@keyframes mepulse{0%{transform:scale(1);opacity:.85}100%{transform:scale(3.4);opacity:0}}
@keyframes meblink{0%,100%{background:#1a73e8}50%{background:#4d9bff}}
@media (prefers-reduced-motion:reduce){.me-pulse{animation:none;transform:scale(2);opacity:.3}.me-core{animation:none}.loc-btn[data-state=searching] svg{animation:none}}
.geo-box{margin:8px 2px 0;display:flex;flex-direction:column;gap:4px}
.geo-line{margin:0;font-size:16px;line-height:1.45;color:var(--ink);background:#e8f0fe;background-color:#e8f0fe;border-left:4px solid #1a5fd1;border-radius:8px;padding:8px 12px}
.geo-msg{margin:0;font-size:15.5px;line-height:1.45;border-radius:8px;padding:8px 12px;background:#fff6db;background-color:#fff6db;color:#4a3a05;border-left:4px solid #b88a00}
.geo-msg.geo-err{background:#fde8e6;background-color:#fde8e6;color:#7a1d12;border-left-color:#a3261a}
.geo-off{align-self:flex-start;min-height:44px}
.lg-me{display:inline-block;width:16px;height:16px;border-radius:50%;background:#1a73e8;border:3px solid #fff;box-shadow:0 0 0 1px rgba(0,0,0,.3),0 0 0 5px rgba(26,115,232,.25)}
/* ---------- category icons, labels, groups */
.pin svg{width:18px;height:18px;display:block}
.pin{position:relative}
.pin-lbl{display:none;position:absolute;left:36px;top:6px;white-space:nowrap;background:#fffdf9;background-color:#fffdf9;color:#1c1b19;font:700 12.5px/1 var(--sans);padding:3px 6px;border-radius:6px;border:1px solid rgba(0,0,0,.25);box-shadow:0 1px 3px rgba(0,0,0,.25);pointer-events:none}
.show-labels .pin-lbl{display:block}
.num svg{width:24px;height:24px;display:block}
.place-head .area{font-size:14.5px;margin:2px 0 0;color:var(--muted);line-height:1.3}
.group{margin:0 0 8px}
.group-title{display:flex;align-items:center;gap:10px;font:700 21px/1.2 var(--display);text-transform:uppercase;letter-spacing:.03em;color:var(--ink);margin:26px 2px 12px;padding-bottom:6px;border-bottom:3px solid var(--c)}
.group-title .g-ico{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:50%;background:var(--c);color:#fff;flex:0 0 auto}
.group-title .g-ico svg{width:18px;height:18px}
.group-title .g-count{font:600 16px var(--sans);color:var(--muted);text-transform:none;letter-spacing:0}
.chip .ci-svg{width:17px;height:17px;vertical-align:-3px;flex:0 0 auto}
.lg-cat{position:relative;display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;border-radius:50%;background:var(--c);color:#fff;border:2px solid #fff;box-shadow:0 0 0 1px #8a7d68}
.lg-cat svg{width:14px;height:14px}
.lg-done-demo::after{content:"✓";position:absolute;right:-7px;top:-7px;width:14px;height:14px;border-radius:50%;background:#1d5a37;color:#fff;font-size:9px;line-height:14px;text-align:center;border:1.5px solid #fff}
.legend{gap:6px 16px}
.chip .ci-svg{color:var(--c)}
.chip[aria-pressed="true"] .ci-svg{color:#fff}

/* very short map (small phones, landscape): keep the popup compact */
.short-map .pop .short{display:none}
