/* Pantekart: grønn/turkis gjenvinningsstil */
:root{--teal:#0f766e;--teal2:#14b8a6;--mint:#ccfbf1;--leaf:#16a34a;--ink:#0b2b26;--muted:#5b7a74;--bg:#ecfdf5;--red:#dc2626;--orange:#ea580c;--sun:#facc15;
  --safe-t:env(safe-area-inset-top,0px);--safe-b:env(safe-area-inset-bottom,0px)}
*{box-sizing:border-box}
html,body{margin:0;height:100%;background:var(--bg);color:var(--ink);font-family:system-ui,-apple-system,"SF Pro Text","Segoe UI",Roboto,sans-serif;-webkit-tap-highlight-color:transparent}
#map{position:fixed;inset:0;background:#d7efe8}
button{font:inherit;color:inherit;cursor:pointer}
.top{position:fixed;left:0;right:0;top:0;z-index:1000;padding:calc(10px + var(--safe-t)) 12px 0;pointer-events:none}
.top>*{pointer-events:auto}
.pill{display:flex;align-items:center;gap:8px;background:#fff;border-radius:16px;padding:6px 6px 6px 8px;box-shadow:0 6px 20px rgba(6,60,52,.18);max-width:560px;margin:0 auto}
.pill .mark{width:34px;height:34px;border-radius:9px;flex:none}
.pill input{flex:1;min-width:0;border:0;outline:0;font-size:16px;background:transparent;color:var(--ink);padding:8px 2px}
.round{width:38px;height:38px;border-radius:12px;border:0;background:var(--mint);color:var(--teal);font-size:18px;font-weight:700;flex:none}
.chips{display:flex;gap:8px;overflow-x:auto;padding:10px 2px 4px;max-width:560px;margin:0 auto;scrollbar-width:none}
.chips::-webkit-scrollbar{display:none}
.chip{flex:none;border:2px solid #fff;background:rgba(255,255,255,.94);color:var(--teal);border-radius:12px;padding:7px 12px;font-size:14px;font-weight:700;box-shadow:0 3px 10px rgba(6,60,52,.14)}
.chip[aria-pressed=true]{background:var(--teal);color:#fff;border-color:var(--teal)}
.offline{max-width:560px;margin:6px auto 0;background:#fef9c3;color:#713f12;border-radius:12px;padding:8px 12px;font-size:14px}
.toast{position:fixed;left:50%;transform:translate(-50%,10px);bottom:calc(84px + var(--safe-b));z-index:1100;background:var(--ink);color:#fff;border-radius:12px;padding:10px 14px;font-size:14px;opacity:0;transition:.2s;pointer-events:none;max-width:90vw;display:flex;gap:10px;align-items:center}
.toast.show{opacity:1;transform:translate(-50%,0);pointer-events:auto}
.toast button{background:var(--teal2);border:0;border-radius:8px;color:#fff;padding:5px 10px;font-weight:700}
.fab{position:fixed;z-index:1000;right:14px;bottom:calc(18px + var(--safe-b));border:0;border-radius:18px;background:linear-gradient(135deg,var(--teal2),var(--teal));color:#fff;font-weight:800;font-size:16px;padding:14px 18px;box-shadow:0 8px 22px rgba(6,60,52,.35);display:flex;gap:6px;align-items:center}
.leaflet-top{top:calc(112px + var(--safe-t))}
.leaflet-control-attribution{font-size:10px}
.leaflet-bottom.leaflet-right{bottom:calc(76px + var(--safe-b))}
/* Markører: rund «kapsel» med ikon og statusprikk */
.pk{width:32px;height:32px;border-radius:50% 50% 50% 6px;transform:rotate(-45deg);display:flex;align-items:center;justify-content:center;border:2px solid #fff;box-shadow:0 2px 6px rgba(0,0,0,.3);position:relative}
.pk b{transform:rotate(45deg);font-size:15px;line-height:1}
.pk.b{background:var(--teal)}.pk.s{background:#5eead4}.pk.m{background:#fde68a}
.pk i{position:absolute;top:-5px;right:-5px;width:14px;height:14px;border-radius:50%;border:2px solid #fff;transform:rotate(45deg)}
.pk i.virker{background:var(--leaf)}.pk i.ute{background:var(--red)}.pk i.full{background:var(--orange)}
.pk.near{outline:3px solid var(--sun);outline-offset:1px}
.pk.closed{filter:grayscale(.7) opacity(.75)}
.marker-cluster-small,.marker-cluster-medium,.marker-cluster-large{background:rgba(20,184,166,.35)}
.marker-cluster-small div,.marker-cluster-medium div,.marker-cluster-large div{background:var(--teal);color:#fff;font-weight:800}
.marker-cluster{border-radius:14px}.marker-cluster div{border-radius:11px}
.me{width:18px;height:18px;border-radius:50%;background:#2563eb;border:3px solid #fff;box-shadow:0 0 0 6px rgba(37,99,235,.2)}
/* Ark nederst */
.sheet{position:fixed;left:0;right:0;bottom:0;z-index:1200;background:#fff;border-radius:22px 22px 0 0;box-shadow:0 -10px 30px rgba(6,60,52,.22);max-height:72vh;display:flex;flex-direction:column;padding:6px 16px calc(14px + var(--safe-b));max-width:620px;margin:0 auto}
.handle{width:44px;height:5px;border-radius:3px;background:#cbd5d1;margin:4px auto 6px}
.sheet-head{display:flex;align-items:center;gap:10px}
.sheet-head h2{flex:1;margin:4px 0;font-size:20px;color:var(--teal)}
#sheet-body{overflow-y:auto;-webkit-overflow-scrolling:touch;padding-bottom:4px}
.list{list-style:none;margin:6px 0 0;padding:0}
.list li{display:flex;gap:12px;align-items:center;padding:10px 0;border-bottom:1px solid #e2efec}
.list li:last-child{border:0}
.list .ico{width:40px;height:40px;border-radius:12px;display:flex;align-items:center;justify-content:center;font-size:20px;flex:none}
.ico.b{background:var(--teal)}.ico.s{background:#99f6e4}.ico.m{background:#fef3c7}
.list .info{flex:1;min-width:0;cursor:pointer}
.list .nm{font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.list .mt{color:var(--muted);font-size:13px;margin-top:2px}
.list .dist{font-weight:800;color:var(--teal);font-size:15px;text-align:right;flex:none}
.list .dist small{display:block;font-weight:600;color:var(--muted);font-size:12px}
.empty{color:var(--muted);padding:14px 0}
.tag{display:inline-block;border-radius:8px;padding:2px 8px;font-size:12px;font-weight:800;margin:2px 4px 2px 0}
.tag.open{background:#dcfce7;color:#166534}.tag.closed{background:#fee2e2;color:#991b1b}
.tag.virker{background:#dcfce7;color:#166534}.tag.ute{background:#fee2e2;color:#991b1b}.tag.full{background:#ffedd5;color:#9a3412}
.tag.cat{background:var(--mint);color:var(--teal)}
/* Stedskort */
.place .sub{color:var(--muted);margin:0 0 6px;font-size:14px}
.statusbox{border-radius:14px;padding:10px 12px;margin:8px 0;font-weight:700;background:#f1f5f4;color:#334}
.statusbox.virker{background:#dcfce7;color:#14532d}.statusbox.ute{background:#fee2e2;color:#7f1d1d}.statusbox.full{background:#ffedd5;color:#7c2d12}
.statusbox small{display:block;font-weight:500;opacity:.85;margin-top:2px}
.report{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:10px 0}
.report button{border:0;border-radius:14px;padding:12px 4px;font-weight:800;font-size:14px;display:flex;flex-direction:column;align-items:center;gap:4px}
.report button span{font-size:22px}
.r-virker{background:#dcfce7;color:#14532d}.r-ute{background:#fee2e2;color:#7f1d1d}.r-full{background:#ffedd5;color:#7c2d12}
.report button:disabled{opacity:.5}
.fix{display:flex;flex-wrap:wrap;gap:6px;margin:4px 0 10px}
.fix button{border:1.5px solid #cde7e1;background:#fff;border-radius:10px;padding:6px 10px;font-size:13px;font-weight:700;color:var(--teal)}
.fix button b{background:var(--mint);border-radius:6px;padding:0 5px;margin-left:4px}
.facts{list-style:none;padding:0;margin:6px 0;font-size:14px}
.facts li{padding:3px 0}
.acts{display:flex;flex-wrap:wrap;gap:8px;margin:8px 0}
.acts a{text-decoration:none;background:var(--teal);color:#fff;border-radius:12px;padding:9px 14px;font-weight:800;font-size:14px}
.acts a.alt{background:var(--mint);color:var(--teal)}
.small{font-size:12px;color:var(--muted)}
.small a{color:var(--teal)}
.about p{line-height:1.5}
.legend{list-style:none;padding:0}
.legend li{display:flex;gap:10px;align-items:center;margin:8px 0;font-size:14px}
.dot{width:30px;height:30px;border-radius:10px;display:flex;align-items:center;justify-content:center;flex:none}
.dot.b{background:var(--teal)}.dot.s{background:#99f6e4}.dot.m{background:#fef3c7}
.muted{color:var(--muted);font-size:13px}
.links a{color:var(--teal);font-weight:700}
@media (min-width:760px){.sheet{left:16px;right:auto;bottom:16px;top:calc(120px + var(--safe-t));width:400px;max-height:none;border-radius:22px;margin:0}.fab{bottom:24px}}
[hidden]{display:none!important}
