:root{--ink:#1f2d2a;--muted:#5f6f6a;--bg:#f4f6f3;--card:#fff;--line:#dfe6e1;--accent:#3b2f6b;--accent2:#e7e2fa;--pub:#0f766e;--priv:#9a3412;--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:var(--accent)}
h1{font-size:1.15rem;margin:0}
h2{font-size:1rem;margin:0 0 .5rem}
.top{display:flex;flex-wrap:wrap;gap:.6rem 1rem;align-items:center;justify-content:space-between;padding:.6rem 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);position:relative;flex:none}
.logo::after{content:"";position:absolute;left:8px;right:8px;top:13px;height:10px;border:3px solid var(--accent2);border-bottom:none;border-radius:12px 12px 0 0}
.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:#fbfcfb}
.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.small{padding:.3rem .7rem;font-size:.85rem}
.btn:focus-visible,.search input:focus-visible,.days button:focus-visible{outline:3px solid #a99be0;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)}
.layout{display:grid;grid-template-columns:minmax(0,1fr) 400px;gap:0;min-height:calc(100vh - 62px)}
.mapwrap{position:relative;min-height:420px}
#map{position:absolute;inset:0;background:#e8ece9}
.panel{padding:.8rem;overflow-y:auto;max-height:calc(100vh - 62px);border-left:1px solid var(--line)}
.card{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);padding:.8rem .9rem;margin-bottom:.7rem}
.row{display:flex;align-items:center;gap:.6rem}.between{justify-content:space-between}
.muted{color:var(--muted)}.small{font-size:.85rem}
.status{font-size:.9rem;color:var(--muted);margin:.1rem .2rem .6rem}
.error{background:#fdeeee;border:1px solid #efc4c4;color:var(--err);border-radius:var(--radius);padding:.7rem .8rem;margin-bottom:.7rem;font-size:.92rem}
.hereLine{font-size:1.1rem;font-weight:600}
.pill{display:inline-block;padding:.1rem .55rem;border-radius:999px;font-size:.8rem;font-weight:700;color:#1d2b27;vertical-align:1px}
.spots{list-style:none;padding:0;margin:0}
.spots li{display:grid;grid-template-columns:28px 1fr;gap:.5rem;padding:.55rem 0;border-top:1px solid var(--line)}
.spots li:first-child{border-top:none}
.spots .tag{width:26px;height:26px;border-radius:50%;background:var(--accent);color:#fff;font-weight:700;display:grid;place-items:center;font-size:.85rem;cursor:pointer}
.spots .nm{font-weight:600}
.spots .meta{font-size:.85rem;color:var(--muted)}
.spots .links a{font-size:.85rem;margin-right:.7rem}
.toggle{display:flex;gap:.5rem;align-items:flex-start;font-size:.92rem;cursor:pointer}
.toggle input{margin-top:.2rem;accent-color:var(--accent)}
.how summary{cursor:pointer;list-style:none}.how summary::-webkit-details-marker{display:none}
.how summary h2{display:inline}.how summary::after{content:" ▾";color:var(--muted)}
.how[open] summary::after{content:" ▴"}
.how p{font-size:.9rem;margin:.55rem 0}
.spotIcon{background:var(--accent);color:#fff;border:2px solid #fff;border-radius:50%;font:700 12px/20px system-ui,sans-serif;text-align:center;box-shadow:0 1px 4px rgba(0,0,0,.35)}
.youIcon{background:#1d4ed8;border:3px solid #fff;border-radius:50%;box-shadow:0 0 0 2px rgba(29,78,216,.35)}
.leaflet-popup-content{font-size:.88rem;line-height:1.4}
.foot{padding:.8rem 1rem 1.4rem;font-size:.8rem;color:var(--ink);border-top:1px solid var(--line);background:var(--card)}
.foot p{margin:.3rem 0}
@media (max-width:860px){
  .layout{grid-template-columns:1fr;min-height:0}
  .mapwrap{height:56vh;min-height:320px}
  .panel{max-height:none;border-left:none;padding:.7rem}
  .top{padding:.5rem .7rem}.sub{display:none}
  .search{max-width:none}
}


.mapctl{position:absolute;top:10px;right:10px;z-index:900;background:rgba(255,255,255,.95);border-radius:10px;padding:.45rem .55rem;box-shadow:0 1px 6px rgba(0,0,0,.2);width:min(230px,calc(100% - 70px));display:flex;flex-direction:column;gap:.35rem}
.mapctl .btn{width:100%;min-height:36px}
.mapctl .btn[aria-pressed=true]{background:#f2a33a;border-color:#c77c12;color:#2b1a00}
.mapctl .rad{display:flex;align-items:center;gap:.4rem;font-size:.85rem;font-weight:600}
.mapctl .rad input{flex:1;min-width:0;accent-color:var(--accent);height:30px;touch-action:pan-x}
.mapctl .rad output{min-width:3.2rem;text-align:right;font-variant-numeric:tabular-nums}
.mapctl .hint{font-size:.75rem;color:var(--muted);line-height:1.25}
#map.picking,#map.picking .leaflet-interactive,#map.picking .leaflet-grab{cursor:crosshair}
.youWrap{width:34px;height:34px;display:grid;place-items:center;cursor:grab}
.youWrap .youIcon{width:18px;height:18px}
.leaflet-popup-content .moveHere{margin-top:.45rem}
@media (max-width:860px){.mapctl .hint{display:none}.mapctl{padding:.35rem .45rem}}

/* loading indicator */
.busy{position:absolute;z-index:950;pointer-events:auto}
.busy.big{left:50%;top:50%;transform:translate(-50%,-50%);width:min(340px,calc(100% - 24px));background:rgba(255,255,255,.97);border-radius:14px;padding:.8rem .9rem;box-shadow:0 4px 22px rgba(0,0,0,.25);font-size:.9rem}
.busy.mini{left:10px;bottom:84px;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,.2);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:var(--accent);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:26px;height:26px;border-radius:50%;border:3px solid #ddd6f5;border-top-color:var(--accent);animation:qfspin .9s linear infinite;flex:none;display:inline-block}
.spin.sm{width:16px;height:16px;border-width:2px}
.busy.mini .spin{width:16px;height:16px;border-width:2px}
.busyBar{position:absolute;left:0;right:0;top:0;height:4px;z-index:960;overflow:hidden;background:rgba(59,47,107,.15);pointer-events:none}
.busyBar span{position:absolute;top:0;bottom:0;width:35%;background:var(--accent);animation:qfbar 1.3s ease-in-out infinite}
@keyframes qfspin{to{transform:rotate(360deg)}}
@keyframes qfbar{0%{left:-35%}100%{left:100%}}
@media (prefers-reduced-motion:reduce){.spin{animation-duration:2.5s}.busyBar span{animation-duration:3s}}
.error .retryBtn{margin-left:.4rem}
@media (max-width:860px){.busy.big{top:auto;bottom:74px;transform:translateX(-50%);padding:.65rem .75rem}.busy .bsteps li.ok,.busy .bfoot>span{display:none}.busy.mini{bottom:80px}}
.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}
.logo::after{display:none}
.logo{background:var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 34 34'%3E%3Cpath d='M7 25h20M11 25V14h5v11M18 25V8h5v17' stroke='%23ffd479' stroke-width='2.4' fill='none'/%3E%3C/svg%3E") center/100% no-repeat}
.legend{position:absolute;left:10px;bottom:22px;z-index:500;background:rgba(255,255,255,.93);border-radius:10px;padding:.35rem .6rem;box-shadow:0 1px 6px rgba(0,0,0,.15);display:flex;flex-wrap:wrap;gap:.2rem .8rem;font-size:.75rem;max-width:calc(100% - 20px)}
.legend span{display:flex;align-items:center;gap:.3rem}
.dot{display:inline-block;width:12px;height:12px;border-radius:50%}
.dot.pub{background:var(--pub);border:2px solid #fff;box-shadow:0 0 0 1px var(--pub)}
.dot.priv{background:#fff;border:2px dashed var(--priv)}
.dot.maybe{background:#9aa3ad;width:8px;height:8px}
.spots .tag.pub{background:var(--pub)}
.spots .tag.priv{background:#fff;color:var(--priv);border:2px dashed var(--priv)}
.spots .h{font-weight:600;color:var(--accent);margin:.1rem 0}
.est{display:inline-block;font-size:.72rem;font-weight:700;letter-spacing:.02em;border-radius:4px;padding:0 .35rem;background:var(--accent2);color:var(--accent);margin-right:.3rem;vertical-align:1px}
.acc{display:inline-block;font-size:.72rem;font-weight:700;border-radius:4px;padding:0 .35rem;margin-right:.3rem;vertical-align:1px}
.acc.pub{background:#ccfbf1;color:#115e59}.acc.priv{background:#ffedd5;color:#9a3412}
.spots.plain li{display:block;font-size:.88rem;padding:.4rem 0}
.mk{border-radius:50%;font:700 12px/22px system-ui,sans-serif;text-align:center;box-shadow:0 1px 4px rgba(0,0,0,.4)}
.mk.pub{background:var(--pub);color:#fff;border:2px solid #fff}
.mk.priv{background:#fff;color:var(--priv);border:2px dashed var(--priv);line-height:20px}
.mk.maybe{background:#9aa3ad;border:1.5px solid #fff;width:10px;height:10px}
.nothing{border-left:5px solid #f2a33a;background:#fffaf0}
.nothing h2{font-size:1.1rem}
.more{margin-top:.4rem;font-size:.85rem!important}
details.card>summary{cursor:pointer;list-style:none}details.card>summary::-webkit-details-marker{display:none}
details.card>summary h2{display:inline}details.card>summary::after{content:" ▾";color:var(--muted)}details.card[open]>summary::after{content:" ▴"}
.how ul{font-size:.9rem;padding-left:1.1rem;margin:.3rem 0}
.foot a{color:var(--accent)}
