:root{--ink:#172739;--muted:#596f86;--accent:#233d59;--paper:#edf1f5;--line:#d5dce3}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font:15px 'DM Sans',sans-serif}header{height:88px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 5%}.brand{display:flex;gap:13px;align-items:center;color:var(--ink);text-decoration:none;font-size:26px;font-weight:800}.brand>span{color:#ee9e48}.brand small{font-size:10px;letter-spacing:2px;padding:6px 8px;border:1px solid #b6c2ce;border-radius:5px}.local{font-size:12px;color:var(--muted)}main{max-width:1440px;padding:45px 5% 20px;margin:auto}.intro{display:flex;justify-content:space-between;align-items:flex-end;margin-bottom:36px}.eyebrow{font-size:10px;letter-spacing:2px;font-weight:700;color:#5e758d}h1{font:800 clamp(32px,4vw,52px)/1.1 Manrope,sans-serif;letter-spacing:-2px;margin:14px 0}p{line-height:1.6}.intro p{color:var(--muted);margin-bottom:0}button,input,select{font:inherit}button{cursor:pointer;border-radius:8px;padding:12px 16px;font-weight:600}button:disabled{opacity:.55;cursor:wait}.primary{border:0;background:var(--accent);color:white}.secondary{border:1px solid #c5cfd9;background:#ffffff77;color:var(--ink)}button:hover{filter:brightness(.96)}button:focus-visible,a:focus-visible{outline:3px solid #eaa34b;outline-offset:3px}.workspace{display:grid;grid-template-columns:310px 1fr;gap:24px}.panel{background:white;border:1px solid var(--line);padding:25px;border-radius:12px}h2{font:800 23px Manrope,sans-serif;letter-spacing:-.6px;margin:12px 0 20px}label{display:block;font-size:12px;font-weight:700;margin:14px 0 8px}input:not([type=range]),select{width:100%;padding:11px;border:1px solid var(--line);border-radius:7px;background:#f7f9fb;color:var(--ink)}input[type=range]{width:100%;accent-color:var(--accent)}.hint{font-size:12px;color:var(--muted);line-height:1.6}.full{width:100%;margin-top:12px}.row,.scale{display:flex;justify-content:space-between;align-items:center}.row{margin-top:15px}.scale{font-size:10px;color:var(--muted)}.notice{display:flex;gap:14px;padding:22px 3px;font-size:12px}.notice>span{font-size:23px;color:#af6c20}.notice p{color:var(--muted);margin:5px 0}.map-panel{border:1px solid var(--line);background:white;border-radius:12px;overflow:hidden;display:flex;flex-direction:column;min-width:0}.map-top,.map-bottom{padding:18px;display:flex;justify-content:space-between;gap:12px;font-size:12px}.map-top span{color:var(--muted)}#map{min-height:480px;flex:1;background:#dfe6ed;z-index:0}.map-bottom{font-size:10px;color:var(--muted);flex-wrap:wrap}.map-bottom a{color:var(--accent)}.parking{background:#233d59;color:white;border:3px solid white;border-radius:50%;font:bold 19px sans-serif;text-align:center;line-height:30px;box-shadow:0 2px 12px #0003}.results{margin-top:35px}.results-head{display:flex;align-items:center;justify-content:space-between;gap:15px}.results h2{margin-bottom:0}.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin:22px 0}.card{border:1px solid var(--line);border-radius:12px;background:white;padding:22px;display:flex;flex-direction:column;align-items:flex-start}.card h3{font:700 18px/1.4 Manrope,sans-serif;margin:16px 0 8px}.card p{font-size:13px;color:var(--muted);margin:8px 0}.tag{font-size:10px;font-weight:700;padding:5px 8px;border-radius:5px;background:#fff0dc;color:#8c5515}.distance{float:right;font-size:12px;color:var(--muted)}.card-top{width:100%;display:block}.card button{margin-top:auto;font-size:12px;padding:8px 0;border:0;background:none;color:var(--accent)}.dates{font-size:12px;padding:12px 0;font-weight:600}.empty{grid-column:1/-1;padding:35px;border:1px dashed #b2becb;border-radius:10px;color:var(--muted)}#alerts:not(:empty){background:#dce4ed;border-radius:8px;padding:14px;margin-top:15px;font-size:13px}footer{display:flex;justify-content:space-between;border-top:1px solid var(--line);padding:24px 0;color:var(--muted);font-size:11px}@media(max-width:850px){.workspace{grid-template-columns:270px 1fr}.cards{grid-template-columns:1fr 1fr}.map-top span{display:none}}@media(max-width:620px){header{height:70px}.local{display:none}main{padding-top:28px}.intro{align-items:flex-start;gap:20px}.intro button{font-size:11px;padding:10px}.workspace{grid-template-columns:1fr}#map{height:380px;min-height:380px}.cards{grid-template-columns:1fr}.results-head{align-items:flex-start}.results-head button{font-size:11px;max-width:150px}footer{display:block}footer span{display:block;margin-top:8px}}

/* Ruhigeres Layout mit einheitlichen Abständen und Bedienelementen. */
:root{--paper:#f0f3f6;--line:#dae0e6;--muted:#5b7188}
body{-webkit-font-smoothing:antialiased}
header{height:80px;padding-inline:max(32px,calc((100vw - 1280px)/2));background:#f0f3f6}
.brand{gap:12px;font-size:21px;letter-spacing:-.6px}
.brand .brand-mark{display:grid;place-items:center;width:34px;height:38px;border-radius:9px;background:var(--accent);color:white;font-size:23px;font-weight:700;letter-spacing:0}
.brand small{margin-left:4px;border:0;background:#e3e8ed;font-size:9px;letter-spacing:1.5px;padding:6px 9px}
.local{display:flex;align-items:center;gap:8px;font-size:11px}.local:before{content:'';width:6px;height:6px;border-radius:50%;background:#6e869f}
main{max-width:1344px;padding:48px 32px 12px}
.intro{margin-bottom:36px;gap:28px;align-items:center}
h1{font-size:clamp(34px,3.7vw,48px);line-height:1.16;letter-spacing:-1.8px;margin:14px 0 16px;font-weight:700}
.intro p{font-size:14px}.eyebrow{font-size:10px;letter-spacing:1.6px;line-height:1.5}
h2{font-size:22px;line-height:1.35;font-weight:700;letter-spacing:-.7px;margin:12px 0 24px}
button{min-height:42px;padding:11px 16px;font-size:12px;line-height:1.4;border-radius:8px;transition:background .15s,border-color .15s,box-shadow .15s;filter:none!important}
.secondary{background:transparent;border-color:#ced6de}.secondary:hover{background:#e7ecf1;border-color:#afbcc9}.primary:hover{background:#1a3149}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid #5d748c;outline-offset:3px}
.workspace{grid-template-columns:304px minmax(0,1fr);gap:24px;align-items:stretch}
.panel{padding:26px 24px;border-radius:14px;box-shadow:0 3px 16px #18283903}
label{font-size:12px;margin:20px 0 9px;font-weight:600}
input:not([type=range]),select{min-height:44px;padding:12px;font-size:13px;background:#f8f9fb;border-radius:8px}
.panel h2+label{margin-top:0}.panel .hint{margin:12px 0 0;font-size:11px;line-height:1.7}
.full{margin-top:18px}.row{margin-top:28px}.row label{margin:0}.row strong{font-size:12px;font-weight:600;background:#e9edf2;border-radius:5px;padding:4px 8px}
input[type=range]{display:block;margin:13px 0 9px;height:18px;cursor:pointer}.scale{font-size:10px}
#save{margin-top:24px}#saved{min-height:36px;font-size:10px;text-align:center;margin-top:12px}
.notice{padding:20px 12px 0;font-size:11px;line-height:1.6}.notice strong{font-weight:600}.notice p{margin-top:5px;font-size:11px;line-height:1.7}
.map-panel{border-radius:14px;box-shadow:0 3px 16px #18283903}.map-top{padding:20px 22px;align-items:center;min-height:62px;font-size:12px}.map-top strong{font-weight:600}
.map-legend{display:flex;gap:16px;flex-shrink:0}.map-legend span{display:flex;align-items:center;gap:7px;font-size:10px}.legend-dot{width:8px;height:8px;border-radius:50%;background:#c9683d}.legend-pin{display:grid;place-items:center;background:#233d59;color:white;width:16px;height:16px;font-size:10px;font-style:normal;border-radius:50%}
#map{min-height:480px}.map-bottom{padding:16px 22px;line-height:1.6;gap:8px 20px;min-height:52px}.map-bottom a{text-underline-offset:3px;text-decoration-color:#b5c1cd;white-space:nowrap}
.results{margin-top:48px}.results-head{gap:24px}.results-head h2{margin-top:10px}.results>.hint{max-width:720px;font-size:12px;margin:14px 0 0}
#alerts:not(:empty){background:#e3e9f0;border:1px solid #d3dce6;padding:14px 18px;border-radius:9px;font-size:12px;line-height:1.6;margin-top:22px}
.cards{gap:20px;margin:24px 0 40px;grid-template-columns:repeat(3,minmax(0,1fr))}.card{padding:24px;border-radius:12px}.card-top{display:flex;align-items:center;justify-content:space-between;gap:12px}.tag{font-size:10px;font-weight:600;line-height:1.5;padding:5px 8px;background:#f8eedf;color:#906032}.distance{float:none;font-size:11px;white-space:nowrap}.card h3{font-size:17px;line-height:1.5;font-weight:700;margin:18px 0 0;letter-spacing:-.3px;overflow-wrap:anywhere}.dates{font-size:11px;padding:12px 0 8px;color:#3e4c5c}.card p{font-size:12px;line-height:1.7;margin:8px 0}.card button{width:100%;text-align:left;border-top:1px solid #e8ecf0;margin-top:auto;padding:16px 0 0;min-height:44px;border-radius:0;font-weight:600}.card p:last-of-type{padding-bottom:16px}.card button:hover{color:#526f8d}.empty{font-size:13px;line-height:1.7;background:#e9eef3;border:1px solid var(--line);padding:28px}
footer{padding:24px 0;gap:16px;font-size:10px;line-height:1.6}.leaflet-bar{border:1px solid #cfd7df!important;box-shadow:0 2px 8px #18283912!important}.leaflet-bar a{color:var(--ink)!important}
@media(min-width:1600px){main{padding-top:56px}}
@media(max-width:1050px){.cards{grid-template-columns:repeat(2,minmax(0,1fr))}.map-legend{display:none}.workspace{grid-template-columns:280px minmax(0,1fr)}}
@media(max-width:700px){header{padding-inline:22px;height:72px}main{padding:32px 20px 8px}.local{display:none}.intro{align-items:flex-start;flex-direction:column;gap:22px;margin-bottom:28px}.intro button{font-size:12px;padding:11px 16px}h1{font-size:38px;letter-spacing:-1.5px}.workspace{grid-template-columns:1fr;gap:22px}.panel{padding:24px}.notice{padding-top:16px;padding-bottom:0}.map-top{padding:17px}.map-bottom{padding:14px 17px}#map{height:390px;min-height:390px}.results{margin-top:34px}.results-head{align-items:flex-start;flex-direction:column;gap:18px}.results-head button{max-width:none;font-size:12px}.cards{grid-template-columns:1fr;gap:14px;margin-bottom:28px}.card{padding:22px}footer{display:flex;flex-direction:column;gap:6px}footer span{margin:0}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
.refresh-area{display:flex;flex-direction:column;align-items:flex-end;gap:10px;max-width:300px}#refreshStatus{font-size:11px;color:var(--muted);line-height:1.6;text-align:right;min-height:36px}#refresh[aria-busy=true]{background:#e3e9f0}.search-row{display:flex;gap:8px}.search-row input{min-width:0}.search-row button{padding-inline:12px}.search-results{display:grid;gap:4px;max-height:240px;overflow:auto;margin-top:8px}.search-results:empty{display:none}.search-results button{text-align:left;background:#f0f3f7;border:1px solid var(--line);font-size:12px}.search-results button:hover{background:#dfe6ee}#searchStatus:empty{display:none}@media(max-width:700px){.refresh-area{align-items:flex-start;max-width:100%}#refreshStatus{text-align:left}}

.source-note{max-width:820px;padding:0 0 28px;font-size:11px;color:var(--muted);line-height:1.7}.source-note strong{color:var(--ink);font-weight:600}.source-note p{margin:8px 0}.source-note a{color:var(--accent);text-underline-offset:3px}

.roads-controls{padding:0 22px 15px}.roads-controls label{display:flex;align-items:center;gap:8px;margin:0;font-size:12px}.roads-controls input{accent-color:var(--accent)}.roads-controls p{font-size:11px;color:var(--muted);margin:7px 0 0;line-height:1.5}
.roads-controls input[type=checkbox]{width:16px;height:16px;min-height:0;padding:0;margin:0;flex:0 0 16px;border-radius:3px}.roads-controls label{justify-content:flex-start}

.street-name-overlay{text-align:center;white-space:nowrap;pointer-events:none;font:600 11px/20px Arial,sans-serif;color:#384654;text-shadow:0 0 3px white,0 0 3px white,1px 1px white,-1px -1px white}.street-name-overlay span{background:rgba(255,255,255,.65);border-radius:3px;padding:1px 4px}

.roads-legend{display:flex;flex-wrap:wrap;gap:12px 24px;margin-top:14px}.roads-legend>span{display:flex;align-items:flex-start;gap:9px;flex:1 1 220px}.road-swatch{display:block;width:28px;height:8px;border-radius:4px;flex:0 0 28px;margin-top:5px}.road-swatch-red{background:#b85843}.road-swatch-yellow{background:linear-gradient(90deg,#db7d28,#ebca53)}.roads-legend strong{display:block;font-size:11px;font-weight:600}.roads-legend small{display:block;font-size:10px;line-height:1.5;color:var(--muted);margin-top:3px}

.parking-zones-controls{padding:15px 22px 17px;border-top:1px solid var(--border,#dbe1e7)}
.parking-zones-toggle{display:flex;align-items:center;gap:8px;font-size:12px;margin:0;cursor:pointer}
.parking-zones-toggle input[type=checkbox]{width:16px;height:16px;min-height:0;padding:0;margin:0;accent-color:var(--accent);flex:0 0 16px}
.parking-zones-tools{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px;align-items:center}
.parking-zones-tools select{width:auto;flex:1 1 160px;min-width:0;margin:0;font-size:12px}
.parking-zones-tools button{font-size:12px;padding:10px 14px}
.parking-zones-controls p{font-size:11px;line-height:1.6;margin:10px 0 0;color:var(--muted)}
.parking-zones-controls #parkingZonesStatus{color:var(--accent);font-weight:500}
.parking-zone-swatch{display:inline-block;width:13px;height:10px;background:#729db52e;border:1.5px solid #46728a;border-radius:2px;vertical-align:middle;margin-right:4px}
.parking-zone-label{background:#f6fafde8;border:1px solid #46728a66;border-radius:5px;box-shadow:none;color:#31556b;font-size:12px;font-weight:600;padding:2px 6px}
.parking-zone-label:before{display:none}.parking-zone-popup p{font-size:12px;line-height:1.5}.parking-zone-popup button{display:block;margin-top:12px;font-size:12px;padding:8px 12px;width:100%}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
[hidden]{display:none!important}

/* Map options float above the canvas instead of consuming map height. */
.map-stage{position:relative;flex:1;min-height:580px;isolation:isolate}
.map-stage #map{position:absolute;inset:0;width:100%;height:100%;min-height:0}
.map-layers{position:absolute;top:14px;right:14px;z-index:1000;max-width:calc(100% - 28px)}
.map-layers>summary{list-style:none;cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:18px;width:max-content;margin-left:auto;padding:11px 14px;min-height:44px;background:#fffffff5;border:1px solid #d5dce3;border-radius:8px;box-shadow:0 2px 10px #17273914;font-size:12px;font-weight:600}
.map-layers>summary::-webkit-details-marker{display:none}
.map-layers>summary:after{content:'';width:6px;height:6px;border-right:1.5px solid;border-bottom:1.5px solid;transform:rotate(45deg);margin-top:-3px}
.map-layers[open]>summary:after{transform:rotate(225deg);margin-top:3px}
.map-layers>summary:focus-visible{outline:3px solid #eaa34b;outline-offset:3px}
.map-layers-body{width:360px;max-width:100%;margin-top:8px;border:1px solid var(--line);border-radius:12px;background:#fff;box-shadow:0 8px 28px #17273926;max-height:440px;overflow-y:auto;overscroll-behavior:contain}
.map-layers-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:14px 16px 8px;font-size:12px}
.map-layers-heading button{font-size:11px;padding:8px 10px;min-height:36px}
.map-layers .roads-controls{padding:12px 16px 16px}.map-layers .parking-zones-controls{padding:16px}
.map-layers label{min-height:32px;line-height:1.5;cursor:pointer}
.map-layers .roads-legend{gap:10px}.map-layers .roads-legend>span{flex-basis:100%}
.map-layers .parking-zones-tools{gap:8px}.map-layers .parking-zones-tools select{flex-basis:140px}
.map-layers a{color:var(--accent);text-underline-offset:2px}
.map-key{position:absolute;z-index:500;bottom:27px;left:12px;max-width:calc(100% - 68px);display:flex;flex-wrap:wrap;gap:6px 12px;background:#fffffff0;border:1px solid #d5dce3;border-radius:7px;padding:8px 10px;pointer-events:none;font-size:10px;color:#3c4a5a;box-shadow:0 1px 8px #1727390d}
.map-key span{display:inline-flex;align-items:center;gap:6px}.map-key #roadsCompactKey{flex-wrap:wrap;gap:6px 12px}
.map-key .road-swatch{width:18px;flex-basis:18px;height:5px;margin:0}.map-key .parking-zone-swatch{margin:0}
@media(max-width:700px){.map-stage{min-height:460px}.map-layers{top:10px;right:10px;max-width:calc(100% - 20px)}.map-layers-body{max-height:345px;width:340px}.map-key{bottom:26px;left:10px;font-size:9px;padding:7px 8px}}

/* Resident parking is a primary map feature, separate from the legend. */
.map-top{flex-wrap:wrap;gap:12px}.map-top>.map-legend{display:none}
.zones-feature-toggle{display:flex;align-items:center;gap:10px;margin:0 0 0 auto;padding:9px 12px;border:1px solid #bed0db;background:#f2f7fa;border-radius:9px;cursor:pointer;font-size:12px;font-weight:600}
.zones-feature-toggle input[type=checkbox]{width:18px;height:18px;padding:0;margin:0;min-height:0;accent-color:#46728a;flex:0 0 18px}
.zones-feature-toggle span{color:#31556b}.zones-feature-toggle small{display:block;font-size:10px;font-weight:400;margin-top:3px;color:#607b8c}
.zones-feature-toggle:has(input:checked){background:#e5f0f6;border-color:#7197ae}
.zone-picker{position:absolute;top:14px;left:14px;z-index:1001;max-width:calc(100% - 28px)}
.zone-picker>summary{list-style:none;cursor:pointer;width:max-content;padding:11px 14px;min-height:44px;border:1px solid #bed0db;border-radius:8px;background:#f4f9fd;box-shadow:0 2px 10px #17273914;color:#31556b;font-size:12px;font-weight:600}
.zone-picker>summary::-webkit-details-marker{display:none}.zone-picker>summary:focus-visible{outline:3px solid #eaa34b;outline-offset:3px}
.zone-picker-body{margin-top:8px;width:350px;max-width:100%;background:white;border:1px solid #bed0db;border-radius:12px;box-shadow:0 8px 28px #17273926;max-height:340px;overflow:auto;overscroll-behavior:contain}
.zone-picker .parking-zones-controls{border-top:0;padding:16px}.zone-picker .parking-zones-tools{margin-top:0}.zone-picker a{color:var(--accent)}
@media(max-width:700px){.zones-feature-toggle{padding:8px 10px;font-size:11px}.zone-picker{top:10px;left:10px;max-width:calc(100% - 20px)}.zone-picker>summary,.map-layers>summary{font-size:11px;padding:10px;gap:10px}.zone-picker-body{width:320px}}

/* Both map layers share one consistent control row. */
.map-feature-toggles{display:flex;flex-wrap:wrap;gap:8px;margin-left:auto}
.map-feature-toggles label{display:flex;align-items:center;gap:10px;margin:0;padding:9px 12px;border:1px solid #d1d9e1;background:#f7f8fa;border-radius:9px;cursor:pointer;font-size:12px;font-weight:600}
.map-feature-toggles input[type=checkbox]{width:18px;height:18px;padding:0;margin:0;min-height:0;flex:0 0 18px;accent-color:var(--accent)}
.map-feature-toggles small{display:block;font-size:10px;font-weight:400;margin-top:3px;color:var(--muted)}
.map-feature-toggles .roads-feature-toggle:has(input:checked){border-color:#b6c2ce;background:#edf0f4}
.map-feature-toggles .zones-feature-toggle{border-color:#bed0db;background:#f2f7fa}.map-feature-toggles .zones-feature-toggle:has(input:checked){background:#e5f0f6;border-color:#7197ae}
.map-feature-toggles .zones-feature-toggle input{accent-color:#46728a}
@media(max-width:1050px){.map-feature-toggles{width:100%;margin-left:0}.map-feature-toggles label{flex:1;min-width:0;font-size:11px;padding:9px;gap:7px}}
@media(max-width:380px){.map-feature-toggles{flex-direction:column}}

.unified-legend{padding:2px 16px 16px}.legend-entry{display:flex;align-items:flex-start;gap:12px;padding:11px 0}.legend-entry>i{flex-shrink:0;margin-top:4px}.legend-entry .legend-pin{width:20px;height:20px;margin-top:0}.legend-entry .legend-dot{width:10px;height:10px;margin-inline:5px}.legend-entry .road-swatch{width:20px;flex-basis:20px}.legend-entry .parking-zone-swatch{width:20px;height:13px;margin-right:0}.legend-entry strong{display:block;font-size:12px;font-weight:600;line-height:1.5}.legend-entry small{display:block;font-size:11px;color:var(--muted);line-height:1.5;margin-top:2px}.unified-legend #roadsStatus{font-size:10px;line-height:1.6;color:var(--muted);margin:4px 0 10px;padding-left:32px}.unified-legend #roadsLegendEntries,.unified-legend #zonesLegendEntry{border-top:1px solid #e8ecf0}

/* Zone selection belongs to its layer switch in the header. */
.map-feature-toggles{align-items:flex-start}.zones-feature-group{border:1px solid #bed0db;border-radius:9px;background:#f2f7fa;max-width:100%}
.map-feature-toggles .zones-feature-group .zones-feature-toggle{border:0;background:transparent;border-radius:8px}
.zones-feature-group:has(input:checked){background:#e5f0f6;border-color:#7197ae}
.zones-feature-group #parkingZonesDetails{padding:0 10px 9px;max-width:300px}
.zones-feature-group .parking-zones-tools{margin:0;flex-wrap:nowrap;gap:6px}
.zones-feature-group .parking-zones-tools select{flex:1;min-width:0;width:130px;padding:7px;font-size:11px;min-height:36px}
.zones-feature-group .parking-zones-tools button{font-size:10px;white-space:nowrap;padding:7px 9px;min-height:36px}
.zones-feature-group #parkingZonesStatus{font-size:10px;line-height:1.5;color:#526e7c;margin:6px 0 0;max-width:270px}
@media(max-width:1050px){.zones-feature-group{flex:1;min-width:0}.map-feature-toggles>.roads-feature-toggle{flex:1}.zones-feature-group .parking-zones-tools{flex-wrap:wrap}.zones-feature-group .parking-zones-tools select{flex-basis:100%}}

/* Use the full toolbar width instead of stacking options in the right corner. */
.map-top{display:flex;flex-direction:column;align-items:stretch;gap:10px;padding:14px 18px;min-height:0}
.map-top>#mapLabel{font-size:11px;line-height:1.4}
.map-feature-toggles{width:100%;margin:0;align-items:stretch;flex-wrap:nowrap}
.map-feature-toggles>.roads-feature-toggle{flex:0 0 auto;align-self:flex-start}
.zones-feature-group{flex:1;min-width:0;display:flex;align-items:center;flex-wrap:wrap;column-gap:10px;padding-right:10px}
.map-feature-toggles .zones-feature-group .zones-feature-toggle{flex:0 0 auto;align-self:flex-start}
.zones-feature-group #parkingZonesDetails{flex:1;min-width:200px;max-width:none;padding:7px 0}
.zones-feature-group .parking-zones-tools{flex-wrap:nowrap;margin:0}
.zones-feature-group .parking-zones-tools select{flex:1 1 auto;width:110px;min-width:0}
.zones-feature-group #parkingZonesStatus{max-width:none;margin-top:4px}
@media(max-width:1050px){.map-feature-toggles>.roads-feature-toggle{flex:0 0 auto}.zones-feature-group{flex:1}.zones-feature-group .parking-zones-tools{flex-wrap:nowrap}.zones-feature-group .parking-zones-tools select{flex-basis:auto}}
@media(max-width:700px){.map-top{padding:12px}.map-feature-toggles{flex-wrap:wrap;flex-direction:row}.map-feature-toggles>.roads-feature-toggle{flex:1 1 130px}.zones-feature-group{flex:2 1 220px}.zones-feature-group #parkingZonesDetails{min-width:180px;margin-left:10px}}

/* Consistent layer controls and touch-friendly responsive layout. */
.map-feature-toggles{display:grid;grid-template-columns:minmax(145px,.8fr) minmax(0,2fr);align-items:stretch;gap:8px}
.map-feature-toggles>.roads-feature-toggle{align-self:stretch;min-height:62px;display:flex;align-items:center}
.zones-feature-group{min-height:62px;align-self:stretch;align-items:center;min-width:0}
.map-feature-toggles .zones-feature-group .zones-feature-toggle{align-self:stretch;align-items:center;min-height:60px}
.map-feature-toggles label span{min-width:0;overflow-wrap:break-word;line-height:1.4}
.zones-feature-group #parkingZonesDetails{min-width:180px}
.zones-feature-group .parking-zones-tools select,.zones-feature-group .parking-zones-tools button{min-height:40px}
@media(max-width:1100px){
 .map-feature-toggles{grid-template-columns:minmax(0,1fr) minmax(0,1.6fr)}
 .zones-feature-group{display:block;padding:0}
 .zones-feature-group #parkingZonesDetails{padding:0 10px 10px;margin:0;min-width:0}
 .map-feature-toggles .zones-feature-group .zones-feature-toggle{min-height:60px}
 .zones-feature-group .parking-zones-tools{flex-wrap:wrap}
 .zones-feature-group .parking-zones-tools select{flex:1 1 110px;width:auto}
 .map-layers-body{max-height:min(440px,65dvh)}
}
@media(max-width:850px){
 .workspace{grid-template-columns:minmax(230px,260px) minmax(0,1fr);gap:16px}
 .map-top{padding:12px}
 .map-feature-toggles{grid-template-columns:1fr 1.3fr;gap:7px}
 .map-feature-toggles label{padding:10px 8px;gap:7px;font-size:11px}
 .map-feature-toggles small{font-size:10px}
 .map-feature-toggles input[type=checkbox]{width:19px;height:19px;flex-basis:19px}
}
@media(max-width:700px){
 header{height:64px;padding-inline:16px}.brand{font-size:21px;gap:10px}
 main{padding:24px 14px 8px}.intro{gap:16px;margin-bottom:22px}
 h1{font-size:clamp(29px,8vw,38px);line-height:1.12;letter-spacing:-1px}
 .intro p{font-size:14px;line-height:1.6}.eyebrow{font-size:9px;letter-spacing:1.6px}
 .refresh-area{width:100%;max-width:none;gap:6px}#refresh{min-height:44px}#refreshStatus{min-height:0;font-size:11px}
 .workspace{grid-template-columns:minmax(0,1fr);gap:18px}.panel{padding:20px}
 .panel h2{margin-top:10px;margin-bottom:18px}
 input:not([type=checkbox]):not([type=range]),select{font-size:16px;min-height:44px}
 button{min-height:44px}.search-row{gap:8px}.search-row button{font-size:12px;padding:10px}
 .search-results button{min-height:48px;font-size:14px;line-height:1.5}
 input[type=range]{height:30px;margin:8px 0}.row{margin-top:20px}
 #save{margin-top:18px}#saved{min-height:0;text-align:left;line-height:1.6}
 .notice{padding:12px 4px 0}.notice p{margin-bottom:0}
 .map-feature-toggles{grid-template-columns:minmax(0,1fr) minmax(0,1.4fr)}
 .map-feature-toggles label{min-height:60px}
 .map-feature-toggles>.roads-feature-toggle{align-items:flex-start;padding-top:18px}
 .zones-feature-group .parking-zones-tools{display:flex;flex-direction:column;align-items:stretch;gap:6px}
 .zones-feature-group .parking-zones-tools select{width:100%;flex:none;font-size:16px;min-height:44px;padding:7px 4px}
 .zones-feature-group .parking-zones-tools button{font-size:12px;min-height:44px}
 .zones-feature-group #parkingZonesStatus{font-size:10px;line-height:1.5;overflow-wrap:anywhere}
 .map-stage{min-height:440px;min-height:clamp(380px,62svh,560px)}
 .map-layers-body{width:320px;max-height:min(340px,48svh)}
 .map-layers-heading button{min-height:44px}.map-layers>summary{min-height:44px}
 .map-bottom{padding:12px;gap:6px 12px;font-size:10px}
 .leaflet-control-zoom a{width:36px!important;height:36px!important;line-height:36px!important}
 .results{margin-top:28px}.results-head{gap:14px}.results-head h2{font-size:22px;line-height:1.3}
 .results-head button{min-height:44px}.card{padding:20px}.card button{min-height:44px}
 footer{padding:20px 0}.source-note{font-size:11px;overflow-wrap:anywhere}
}
@media(max-width:360px){
 main{padding-inline:10px}.map-top{padding:10px}.map-feature-toggles{gap:6px;grid-template-columns:1fr 1.3fr}
 .map-feature-toggles label{gap:5px;padding-inline:6px;font-size:10px}.map-feature-toggles small{font-size:9px}
 .zones-feature-group #parkingZonesDetails{padding-inline:6px}.panel{padding:16px}
}

/* Clearly identifiable resident-parking area labels. */
.parking-zone-label{display:flex;align-items:center;justify-content:center;min-width:34px;min-height:34px;box-sizing:border-box;padding:4px 9px;border:2px solid #fff;border-radius:9px;background:#315f7b;color:#fff;font-size:18px;font-weight:700;line-height:1.2;letter-spacing:.2px;text-align:center;box-shadow:0 2px 8px #17394f35;opacity:1!important;text-shadow:none;pointer-events:none}
@media(max-width:700px){.parking-zone-label{min-width:32px;min-height:32px;font-size:17px;padding:4px 8px}}

.site-footer>div>span{display:block;margin-top:5px}.site-footer .footer-links{display:flex;align-items:flex-start;gap:18px;flex-wrap:wrap}.site-footer .footer-links>span{margin:0}footer a,.legal-page a,.legal-back{color:var(--accent);text-underline-offset:3px}.legal-back{font-size:13px;min-height:44px;display:flex;align-items:center}.legal-page{max-width:900px}.legal-page h1{margin-bottom:32px}.legal-section{margin:28px 0}.legal-section h2{margin-bottom:14px}.legal-section address{font-style:normal;line-height:1.8}.legal-section p{line-height:1.8;overflow-wrap:anywhere}.legal-page footer{margin-top:40px}@media(max-width:700px){.site-footer .footer-links{gap:12px;margin-top:8px}.legal-section p,.legal-section address{font-size:14px}}

.compact-footer{display:flex;flex-direction:row;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px 20px;padding:18px 0}.compact-footer>span{margin:0}.compact-footer>a{white-space:nowrap}

.map-feature-toggles label span{display:block}
