:root{--bg:#07131f;--panel:#0e2030;--panel2:#122a3d;--text:#f5f8fb;--muted:#93a7b8;--cyan:#35d0df;--green:#2ed47a;--orange:#ffb547;--red:#ff5b68;--line:#244056}*{box-sizing:border-box}html{background:#07131f}body{margin:0;font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;background:linear-gradient(180deg,#06111b,#0a1927 55%,#07131f);color:var(--text);min-height:100vh;min-height:100dvh}.topbar{display:block;padding:calc(env(safe-area-inset-top,0px) + 18px) 18px 10px;position:sticky;top:0;z-index:1000;background:rgba(7,19,31,.95);backdrop-filter:blur(12px);border-bottom:1px solid #183246}.brandrow{display:flex;align-items:center;justify-content:space-between;gap:12px}.brandwrap{min-width:155px}.brand{font-size:25px;font-weight:900;letter-spacing:.8px}.brand span{color:var(--cyan)}.tagline{font-size:12px;color:var(--muted);margin-top:2px}.top-actions{display:flex;gap:7px;flex-wrap:wrap;justify-content:flex-end;margin-top:8px}.gps-compact{border:0;background:transparent;color:#dffbff;font-weight:800;font-size:13px;padding:8px 0 8px 10px;white-space:nowrap;cursor:pointer}.gps-compact span{color:var(--cyan)}.locate,.controls button,.controls select{border:0;border-radius:12px;padding:9px 11px;background:var(--cyan);color:#021014;font-weight:800;cursor:pointer;min-height:44px}.locate.secondary{background:#18374b;color:#fff;border:1px solid #2d536b}main{max-width:900px;margin:auto;padding:14px}.hero{display:flex;gap:16px;align-items:center;background:linear-gradient(135deg,#10283a,#0d1f2e);padding:20px;border:1px solid var(--line);border-radius:20px;margin-bottom:12px}.bigdot{width:56px;height:56px;border-radius:50%;flex:0 0 auto;box-shadow:0 0 26px currentColor}.bigdot.neutral{background:#607486;color:#607486}.bigdot.green{background:var(--green);color:var(--green)}.bigdot.orange{background:var(--orange);color:var(--orange)}.bigdot.red{background:var(--red);color:var(--red)}.eyebrow{color:var(--cyan);font-size:11px;font-weight:900;letter-spacing:1.4px}.hero h1{font-size:22px;margin:4px 0}.hero p{margin:0;color:var(--muted);font-size:14px}.livebar{display:flex;justify-content:space-between;gap:9px;flex-wrap:wrap;margin:12px 0;padding:10px 14px;border:1px solid rgba(255,255,255,.09);border-radius:12px;background:rgba(255,255,255,.035);font-size:.78rem;color:#9fb0c3}.livebar .active,#gpsState.active,#pwaState.ok{color:#6fe8a0}.install-help{margin:0 0 12px;padding:12px 14px;border:1px solid #2d536b;border-radius:14px;background:#102536;color:#d9e5ee;font-size:.84rem;line-height:1.45}.controls{display:grid;grid-template-columns:minmax(180px,1fr) auto auto;gap:10px;align-items:end;background:var(--panel);padding:13px 15px;border-radius:16px;border:1px solid var(--line);margin-bottom:12px}.controlgroup{display:flex;flex-direction:column;gap:7px}.controls label{font-size:13px;color:var(--muted)}.controls strong{color:#fff}.controls input{width:100%;accent-color:var(--cyan)}.controls select{background:#18374b;color:white;border:1px solid #2d536b;padding-right:28px}.controls button{background:#18374b;color:white;border:1px solid #2d536b}#refreshBtn:disabled{opacity:.55;cursor:wait}#map{height:43vh;min-height:330px;border-radius:20px;border:1px solid var(--line);overflow:hidden;background:#10202c}.panel{margin-top:14px}.panelhead{display:flex;align-items:baseline;justify-content:space-between;gap:10px}.panelhead h2{font-size:18px;margin:0 0 10px}.panelhead span{font-size:11px;color:var(--muted)}.cards{display:grid;gap:10px}.card{display:grid;grid-template-columns:12px 1fr auto;gap:11px;align-items:start;background:var(--panel);border:1px solid var(--line);border-radius:16px;padding:14px}.pilldot{width:11px;height:11px;border-radius:50%;margin-top:5px}.pilldot.green{background:var(--green)}.pilldot.orange{background:var(--orange)}.pilldot.red{background:var(--red)}.card h3{font-size:16px;margin:0 0 2px}.place{font-size:12px;color:#76dce5;font-weight:700;margin-bottom:5px}.meta{font-size:12px;color:var(--muted);line-height:1.45}.distance{font-size:13px;font-weight:800;white-space:nowrap}.status{display:inline-block;margin-top:7px;padding:4px 8px;border-radius:999px;font-size:11px;font-weight:900}.status.green{background:rgba(46,212,122,.14);color:#7ef0aa}.status.orange{background:rgba(255,181,71,.14);color:#ffd28b}.status.red{background:rgba(255,91,104,.14);color:#ff9da5}.empty{padding:22px;text-align:center;background:var(--panel);border:1px dashed #31516a;border-radius:16px;color:var(--muted)}.legend{display:flex;flex-wrap:wrap;gap:12px 18px;margin:16px 3px;color:var(--muted);font-size:12px}.legend i{display:inline-block;width:9px;height:9px;border-radius:50%;margin-right:5px}.legend .green{background:var(--green)}.legend .orange{background:var(--orange)}.legend .red{background:var(--red)}.stats{display:flex;justify-content:flex-end;gap:10px;color:#71899b;font-size:11px;border-top:1px solid #173044;padding:12px 4px 0}.disclaimer{color:#6f8495;font-size:11px;line-height:1.5;text-align:center;padding:8px 15px 25px}.leaflet-popup-content-wrapper,.leaflet-popup-tip{background:#102536;color:white}.leaflet-control-attribution{font-size:9px}.alert-banner{position:fixed;z-index:9999;left:50%;top:calc(env(safe-area-inset-top,0px) + 12px);transform:translate(-50%,-160%);width:min(92vw,620px);display:flex;justify-content:space-between;align-items:center;gap:14px;padding:14px 16px;border-radius:14px;color:white;box-shadow:0 18px 45px rgba(0,0,0,.35);transition:transform .28s ease,opacity .2s ease;opacity:0;visibility:hidden;pointer-events:none;background:#d98a13}.alert-banner.red{background:#d83b4d}.alert-banner.orange{background:#d98a13}.alert-banner.show{transform:translate(-50%,0);opacity:1;visibility:visible;pointer-events:auto}.alert-banner strong,.alert-banner span{display:block}.alert-banner span{font-size:.88rem;margin-top:3px;opacity:.92}.alert-banner button{background:transparent;border:0;color:white;font-size:1.7rem;line-height:1;cursor:pointer;min-width:44px;min-height:44px} @media(min-width:700px){main{padding:20px}.cards{grid-template-columns:1fr 1fr}.hero h1{font-size:28px}}@media(max-width:680px){.topbar{padding-top:calc(env(safe-area-inset-top,0px) + 18px)}.brandrow{width:100%}.top-actions{width:100%;display:flex;justify-content:flex-end;margin-top:6px}.top-actions button{width:auto;font-size:11px;min-height:38px;padding:7px 9px}.gps-compact{font-size:12px}.controls{grid-template-columns:1fr 1fr}.radiusgroup{grid-column:1/-1}.controls button{width:100%}.livebar{font-size:.73rem}.hero{padding:16px}.bigdot{width:45px;height:45px}.hero h1{font-size:19px}#map{height:40vh;min-height:300px}}.coverage-note{margin:10px 18px 8px;padding:9px 12px;border:1px solid #23455c;border-radius:12px;background:#0d1e2a;color:#dce9f2;font-size:12px;display:flex;gap:7px;align-items:center;flex-wrap:wrap}.coverage-note strong{color:#38c7d7}.coverage-note span{color:#91a5b7}#soundBtn,#notifyBtn{min-width:42px!important;width:42px!important;height:38px;padding:0!important;overflow:hidden;white-space:nowrap}#refreshBtn{width:auto!important;min-width:96px!important;padding:7px 10px!important}@media(max-width:680px){#soundBtn,#notifyBtn{min-width:38px!important;width:38px!important;height:36px}#refreshBtn{min-width:88px!important;font-size:12px!important}}
/* BrugRadar v5.1 corrections */
#refreshBtn{
  width:auto!important;
  min-width:94px!important;
  height:44px!important;
  min-height:44px!important;
  padding:0 12px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
}
.controls select{
  min-height:44px!important;
  height:44px!important;
}
@media(max-width:680px){
  #refreshBtn{
    min-width:88px!important;
    height:42px!important;
    min-height:42px!important;
  }
  .controls select{
    height:42px!important;
    min-height:42px!important;
  }
}

/* BrugRadar v5.2 - compact header controls */
.topbar{padding-bottom:10px!important}
.brandrow{display:flex!important;align-items:flex-start!important;justify-content:space-between!important;gap:10px!important}
.header-icons{display:flex;align-items:center;justify-content:flex-end;gap:3px;padding-top:1px;flex-shrink:0}
.header-icon-btn{
  appearance:none;border:0!important;background:transparent!important;box-shadow:none!important;
  width:34px!important;min-width:34px!important;height:34px!important;padding:0!important;margin:0!important;
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  font-size:18px!important;line-height:1!important;color:#fff!important;border-radius:9px!important;cursor:pointer
}
.header-icon-btn:active{background:rgba(55,199,215,.14)!important}
.install-compact{margin-top:5px!important;font-size:11px!important;padding:6px 8px!important}
#soundBtn,#notifyBtn{font-size:18px!important;overflow:visible!important;white-space:normal!important}
@media(max-width:680px){
  .brand{font-size:22px!important}
  .tagline{font-size:12px!important}
  .header-icons{gap:1px}
  .header-icon-btn{width:31px!important;min-width:31px!important;height:31px!important;font-size:17px!important}
}

/* BrugRadar v5.4 - Leaflet controls blijven achter de vaste header */
.topbar{
  position:sticky!important;
  top:0!important;
  z-index:2000!important;
  isolation:isolate;
}
.map-wrap,.map-card,#map{
  position:relative;
  z-index:1!important;
}
.leaflet-pane{z-index:100!important}
.leaflet-top,.leaflet-bottom{z-index:400!important}
.leaflet-control{z-index:400!important}
.map-wrap{position:relative!important}.map-recenter{position:absolute;right:12px;bottom:12px;z-index:450;width:42px;height:42px;border:1px solid #31566e;border-radius:50%;background:#0a263a;color:#37c7d7;box-shadow:0 2px 8px rgba(0,0,0,.35);display:flex;align-items:center;justify-content:center;font-size:21px;font-weight:900;line-height:1;cursor:pointer;transform:rotate(-45deg)}.map-recenter:active{transform:rotate(-45deg) scale(.94);background:#10364e}
/* v5.8 */
.map-recenter{right:18px!important;bottom:18px!important}

/* BrugRadar v5.9 meldingdiagnose */
#notifyDebug{color:#9fb4c5}

#pushState{color:#8fb5c8}

/* v0.11 */
#pushTestBtn{font-size:11px!important;padding:6px 8px!important}

/* BrugRadar v0.14 Beta */
.push-controls{display:flex;gap:6px;justify-content:center;flex-wrap:wrap;width:100%;margin-top:4px}
.push-controls button{font-size:11px!important;padding:6px 9px!important}

/* BrugRadar v0.19 Beta */
#pushResetBtn{font-size:11px!important;padding:6px 8px!important}
#pushResetBtn:disabled{opacity:.55;cursor:wait}

/* v0.22 */
#serverLocationAge{color:#9fd6df}#heartbeatState{color:#86a9ba}

/* BrugRadar v0.26 Beta - meldingenpaneel */
.notify-panel{
  position:fixed;inset:0;z-index:5000;
  background:rgba(2,12,20,.62);
  display:flex;align-items:flex-end;justify-content:center;
  padding:18px;
}
.notify-panel[hidden]{display:none!important}
.notify-panel-card{
  width:min(520px,100%);
  background:#0d2230;border:1px solid #2a4d63;border-radius:18px;
  padding:16px;box-shadow:0 12px 40px rgba(0,0,0,.45);
  color:#eaf4fa;
}
.notify-panel-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}
.notify-panel-head strong{font-size:18px}
#notifyPanelClose{
  width:34px;height:34px;border:0;border-radius:50%;
  background:#173448;color:#fff;font-size:22px;line-height:1;
}
.notify-panel-status{color:#a9c0cf;margin-bottom:12px}
.notify-panel-actions{display:flex;gap:8px;flex-wrap:wrap}
.notify-panel-actions button{
  flex:1 1 180px;min-height:42px;border:1px solid #31566e;border-radius:12px;
  background:#123247;color:#fff;font-weight:700;padding:9px 12px;
}
.notify-panel-small{margin-top:10px;font-size:11px;color:#7894a8}
