:root{--ink:#2a2118;--muted:#6b5f52;--bg:#f6f2ea;--card:#fff;--line:#e6ddcf;--accent:#5a3e1b;--accent2:#f6e7c8;--gold:#e0a43a;--err:#9b2c2c;--radius:12px;font-size:16px}
*{box-sizing:border-box}
html,body{margin:0;background:var(--bg);color:var(--ink);font-family:system-ui,-apple-system,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;line-height:1.45}
a{color:#7a4f12}
h1{font-size:1.15rem;margin:0}
h2{font-size:1rem;margin:0 0 .4rem}
.top{display:flex;flex-wrap:wrap;gap:.6rem 1rem;align-items:center;justify-content:space-between;padding:.55rem 1rem;background:var(--card);border-bottom:1px solid var(--line);position:relative;z-index:1001}
.brand{display:flex;gap:.6rem;align-items:center}
.logo{width:34px;height:34px;border-radius:50%;background:var(--accent);flex:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cpath d='M22 16h20M22 48h20M24 16c0 10 16 10 16 16s-16 6-16 16M40 16c0 10-16 10-16 16s16 6 16 16' stroke='%23f6e7c8' stroke-width='4' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");background-size:cover}
.dyw-home{display:block;width:max-content;font-size:12px;line-height:1.3;color:inherit;opacity:.85;text-decoration:none;letter-spacing:.02em}.dyw-home:hover,.dyw-home:focus{opacity:1;text-decoration:underline}
.sub{margin:0;color:var(--muted);font-size:.85rem}
.search{display:flex;gap:.4rem;position:relative;flex:1 1 280px;max-width:460px}
.search input{flex:1;min-width:0;padding:.55rem .7rem;border:1px solid var(--line);border-radius:10px;font-size:1rem;background:#fffdf9}
.btn{border:1px solid var(--accent);background:var(--accent);color:#fff;border-radius:10px;padding:.5rem .8rem;font-size:.95rem;cursor:pointer;font-weight:600}
.btn.ghost{background:#fff;color:var(--accent);font-size:1.1rem;padding:.4rem .7rem}
.btn.ghost2{background:#fff;color:var(--accent)}
.btn.small{padding:.28rem .65rem;font-size:.85rem}
.btn:focus-visible,.search input:focus-visible,.seg button:focus-visible,.chip:focus-visible,.tl:focus-within{outline:3px solid var(--gold);outline-offset:1px}
.results{position:absolute;top:100%;left:0;right:0;margin:.3rem 0 0;padding:.3rem;list-style:none;background:#fff;border:1px solid var(--line);border-radius:10px;box-shadow:0 6px 20px rgba(0,0,0,.12);z-index:2000}
.results li{padding:.5rem .6rem;border-radius:8px;cursor:pointer}
.results li:hover,.results li.active{background:var(--accent2)}
body{display:flex;flex-direction:column;height:100vh;height:100dvh}
.layout{flex:1;min-height:0;display:grid;grid-template-columns:minmax(0,1fr) 410px;grid-template-rows:minmax(300px,1fr) auto;grid-template-areas:"map panel" "tl panel"}
.mapwrap{grid-area:map;position:relative;min-height:360px}
#map{position:absolute;inset:0;background:#2b2b2b}
.tlwrap{grid-area:tl;background:var(--card);border-top:1px solid var(--line);padding:.45rem .8rem .5rem}
.panel{grid-area:panel;padding:.8rem;overflow-y:auto;border-left:1px solid var(--line)}
.card{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);padding:.75rem .85rem;margin-bottom:.7rem}
.muted{color:var(--muted)}.small{font-size:.85rem}
.status{font-size:.9rem;color:var(--muted);margin:0 0 .6rem}
.error{background:#fdecec;color:var(--err);border:1px solid #f3c4c4;border-radius:10px;padding:.55rem .7rem;margin-bottom:.7rem;font-size:.9rem}
.error .btn{margin-left:.4rem}
details>summary{cursor:pointer;list-style:none}details>summary::-webkit-details-marker{display:none}
details>summary h2{display:inline}details>summary::after{content:" ▾";color:var(--muted)}details[open]>summary::after{content:" ▴"}
.how p{font-size:.88rem;margin:.5rem 0}
.mapctl{position:absolute;z-index:900;top:10px;right:10px;background:rgba(255,255,255,.95);border-radius:12px;padding:.45rem .6rem;box-shadow:0 1px 8px rgba(0,0,0,.25);font-size:.85rem;max-width:min(320px,calc(100% - 70px))}
.rad{display:flex;align-items:center;gap:.5rem}
.seg{display:inline-flex;border:1px solid var(--accent);border-radius:9px;overflow:hidden}
.seg button{border:0;background:#fff;color:var(--accent);padding:.25rem .5rem;font-size:.82rem;cursor:pointer;border-left:1px solid var(--line)}
.seg button:first-child{border-left:0}
.seg button[aria-pressed=true]{background:var(--accent);color:#fff;font-weight:700}
.hint{color:var(--muted);font-size:.78rem;margin-top:.3rem}
/* time slider */
.tlhead{display:flex;flex-wrap:wrap;gap:.3rem .8rem;align-items:center;justify-content:space-between}
.tlyear{font-size:.95rem}.tlyear .lbl{color:var(--muted)}
.tlyear strong{font-size:1.1rem}
.tlbtns{display:flex;gap:.3rem}
.tl{position:relative;height:118px;user-select:none;-webkit-user-select:none;touch-action:pan-y;margin-top:.15rem}
.tl svg{display:block;width:100%;height:100%;overflow:visible}
.tl .track{fill:#eadfcb}
.tl .past{fill:#c9a56a}
.tl .tick text{font-size:11px;fill:var(--muted)}
.tl .tick line{stroke:#cbbfae}
.tl .gap rect{fill:url(#hatch)}
.tl .gap text{font-size:10.5px;fill:#8a7b68;font-style:italic}
.tl .mk{cursor:pointer}
.tl .mk line{stroke:#7a5a2e;stroke-width:1.5}
.tl .mk circle{fill:#fff;stroke:#7a5a2e;stroke-width:2}
.tl .mk.on circle{fill:var(--gold);stroke:#5a3e1b}
.tl .mk.later circle{fill:#fff;stroke:#bcae98}.tl .mk.later line{stroke:#bcae98}
.tl .mk text{font-size:9.5px;font-weight:700;fill:#5a3e1b;text-anchor:middle}
.tl .mk:hover circle{stroke-width:3}
.tl .thumb{cursor:grab}
.tl .thumb rect{fill:var(--accent)}
.tl .thumb path{fill:var(--accent)}
.tl .thumb:focus{outline:none}.tl .thumb:focus rect{stroke:var(--gold);stroke-width:3}
.tl .win{fill:rgba(224,164,58,.18)}
.tlnote{font-size:.85rem;color:var(--muted);min-height:1.2em}
.tlnote strong{color:var(--ink)}
/* events */
.cats{display:flex;flex-wrap:wrap;gap:.3rem;margin-top:.5rem}
.chip{border:1px solid var(--line);background:#fffaf0;border-radius:999px;padding:.2rem .6rem;font-size:.8rem;cursor:pointer;color:var(--ink)}
.chip[aria-pressed=false]{opacity:.5;text-decoration:line-through}
.evlist{list-style:none;margin:0;padding:0;display:grid;gap:.5rem}
.ev{border-left:3px solid var(--gold);padding:.15rem 0 .15rem .55rem;cursor:pointer}
.ev.reg{border-left-style:dashed;border-left-color:#d6b98a}
.ev:hover .t,.ev:focus .t{text-decoration:underline}
.ev .d{font-size:.8rem;font-weight:700;color:#7a4f12}
.ev .t{font-weight:600;font-size:.92rem}
.ev .s{font-size:.84rem;color:var(--ink)}
.ev .m{font-size:.76rem;color:var(--muted)}
.ev .src{font-size:.76rem}
.ev img{float:right;width:64px;height:64px;object-fit:cover;border-radius:6px;margin:0 0 .2rem .4rem}
.tag{display:inline-block;font-size:.72rem;border-radius:6px;padding:0 .35rem;margin-right:.25rem;background:#f2ead9;color:#5a3e1b}
.tag.warn{background:#fdeccc;color:#7a4300}
.tag.est{background:#efe6f7;color:#5b3b7a}
.tag.ok{background:#e3f1e6;color:#25603a}
/* map */
.pinwrap{background:none;border:0}
.pin{width:22px;height:22px;border-radius:50%;background:#fff;border:3px solid #7a5a2e;box-shadow:0 1px 4px rgba(0,0,0,.5);display:grid;place-items:center;font-size:10px;font-weight:800;color:#5a3e1b}
.pin.on{background:var(--gold);border-color:#fff}
.pin.dim{opacity:.6}
.pin.reg{border-style:dashed}
.infl{fill:url(#fade)!important;fill-opacity:1!important;pointer-events:none}
.leaflet-popup-content{margin:.6rem .75rem;max-height:min(60vh,440px);overflow-y:auto;font-size:.88rem;width:min(300px,72vw)!important}
.pop h3{font-size:.95rem;margin:0 0 .3rem}
.pop .pe{border-top:1px solid var(--line);padding:.45rem 0}
.pop .pe:first-of-type{border-top:0}
.pop .pe.later{opacity:.6}
.pop img{width:100%;max-height:200px;object-fit:cover;border-radius:8px;margin:.3rem 0 .1rem;background:#eee}
.pop .cr{font-size:.72rem;color:var(--muted)}
.ctrPin{background:none;border:0}
.leaflet-container{font:inherit}
/* busy (same pattern as Peace & Quiet Finder) */
.busy{position:absolute;z-index:950;pointer-events:auto}
.busy.big{left:50%;top:50%;transform:translate(-50%,-50%);width:min(360px,calc(100% - 24px));background:rgba(255,255,255,.97);border-radius:14px;padding:.8rem .9rem;box-shadow:0 4px 22px rgba(0,0,0,.3);font-size:.9rem}
.busy.mini{left:10px;bottom:30px;max-width:calc(100% - 20px);background:rgba(255,255,255,.95);border-radius:999px;padding:.35rem .7rem .35rem .45rem;box-shadow:0 1px 6px rgba(0,0,0,.25);display:flex;align-items:center;gap:.45rem;font-size:.8rem;color:var(--muted)}
.busy .bhead{display:flex;align-items:center;gap:.65rem}
.busy .btitle{font-weight:700;color:var(--ink)}
.busy .bnow{color:var(--muted);font-size:.85rem}
.busy .bsec{margin-left:auto;font-variant-numeric:tabular-nums;font-weight:700;color:var(--accent);min-width:2.6rem;text-align:right}
.busy .bsteps{list-style:none;margin:.6rem 0 0;padding:0;display:grid;gap:.3rem;font-size:.84rem}
.busy .bsteps li{display:flex;align-items:center;gap:.45rem}
.busy .bsteps li.ok{color:var(--muted)}
.busy .ck{width:16px;height:16px;border-radius:50%;background:#2f7a4a;color:#fff;font-size:.7rem;display:grid;place-items:center;flex:none}
.busy .ck.warn{background:#c77c12}
.busy .bslow{margin:.6rem 0 0;padding:.45rem .55rem;background:#fff6e5;border-radius:8px;font-size:.82rem;color:#6b4a00}
.busy .bfoot{display:flex;align-items:center;gap:.6rem;margin-top:.6rem;font-size:.75rem;color:var(--muted)}
.busy .bfoot .btn{margin-left:auto;flex:none}
.spin{width:22px;height:22px;border-radius:50%;border:3px solid var(--accent2);border-top-color:var(--accent);animation:spin .9s linear infinite;flex:none}
.busy .bsteps .spin{width:16px;height:16px;border-width:2px}
.busy.mini .spin{width:16px;height:16px;border-width:2px}
@keyframes spin{to{transform:rotate(360deg)}}
.busyBar{position:absolute;left:0;right:0;top:0;height:4px;z-index:960;overflow:hidden;background:rgba(90,62,27,.15);pointer-events:none}
.busyBar span{position:absolute;top:0;bottom:0;width:35%;background:var(--gold);animation:tsbar 1.3s ease-in-out infinite}
@keyframes tsbar{0%{left:-35%}100%{left:100%}}
@media (prefers-reduced-motion:reduce){.spin{animation-duration:2.5s}.busyBar span{animation-duration:3s}}
@media (max-width:860px){
  body{display:block;height:auto}
  .layout{display:block;height:auto}
  .mapwrap{height:52vh;min-height:300px}
  .tlwrap{position:sticky;bottom:0;z-index:1000;box-shadow:0 -2px 10px rgba(0,0,0,.12)}
  .tl{height:104px}
  .panel{border-left:0;padding:.7rem}
  .top{padding:.5rem .7rem}
  .busy.big{top:auto;bottom:12px;transform:translateX(-50%);padding:.65rem .75rem}
  .busy .bsteps li.ok,.busy .bfoot>span{display:none}
  .mapctl{top:10px;right:10px;padding:.35rem .45rem}
  .rad>span:first-child{display:none}
  .hint{display:none}
}
