.electoral-map-dialog{width:min(1160px,96vw);max-width:96vw;background:#f7f9f8;color:#233c40}
.electoral-map-dialog .map-intro{color:#64777a;font-size:14px;margin:15px 0 22px}
.map-controls{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.electoral-map-dialog .map-controls label{margin:0;font-size:12px;font-weight:700;min-width:0;color:#536a70}
.electoral-map-dialog .map-controls select,.electoral-map-dialog .map-information select{display:block;min-width:0;width:100%;margin:7px 0 0;min-height:42px;background:white;font-size:13px;color:#263e42}
.map-options{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin:14px 0}
.electoral-map-dialog .map-options>label{display:flex;align-items:center;gap:7px;margin:0;font-size:12px}
.map-zoom-controls{display:flex;align-items:center;gap:7px}.map-zoom-controls button{min-width:38px;min-height:36px;border:1px solid #c6d4d8;background:white;border-radius:8px;color:#304a50;cursor:pointer;padding:5px 9px}.map-zoom-controls output{font-size:12px;min-width:38px;text-align:center}
.map-layout{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);gap:22px;align-items:start}
.map-visual-column,.map-information{min-width:0}.map-viewport{background:radial-gradient(ellipse at 50% 40%,#eaf3f3,#d4e7eb);border:1px solid #cbdce0;border-radius:18px;overflow:auto;max-height:78vh;overscroll-behavior:contain}
.electoral-geography{display:block;width:100%;height:auto;max-width:none}.map-district{cursor:pointer;outline:none}.map-district [data-map-region]{stroke:#fff;stroke-width:3;stroke-linejoin:round;transition:fill .15s}.map-district:hover [data-map-region],.map-district:focus [data-map-region]{stroke:#243d43;stroke-width:5}.map-district.selected [data-map-region]{stroke:#183d48;stroke-width:6}
.map-district-name{font-size:22px;font-weight:800;fill:#173038;stroke:#ffffffd9;stroke-width:4px;paint-order:stroke;pointer-events:none;font-family:Manrope,sans-serif}.map-district-percent{font-size:21px;font-weight:700;fill:#173038;stroke:#ffffffdb;stroke-width:4;paint-order:stroke;pointer-events:none}
.map-sea-label{fill:#7d9fa7;letter-spacing:4px;font-size:13px}.map-compass{fill:#567a84;font-size:16px;font-weight:800}
.map-parliament-marker{cursor:pointer;outline:none}.map-parliament-marker>rect{fill:#fffffff0;stroke:#8ba7ad;stroke-width:2}.map-parliament-marker:hover>rect,.map-parliament-marker:focus>rect{stroke:#153f4c;stroke-width:5}.map-parliament-marker>text{font-size:16px;font-weight:700;fill:#365660;pointer-events:none}
.map-legend{padding:14px 0}.map-legend p,.map-visual-column>small{font-size:12px;line-height:1.6;color:#60777d;display:block}.map-color-key{display:flex;gap:10px 14px;flex-wrap:wrap;font-size:12px}.map-color-key span{display:flex;gap:6px;align-items:center}.map-color-key i{width:13px;height:13px;border:1px solid #a4b2b7;border-radius:4px}.map-support-key{display:grid;gap:8px;font-size:12px}.map-color-scale{display:block;width:100%;height:14px;border-radius:4px;border:1px solid #b5c4c8}
.map-information{padding:18px;background:white;border:1px solid #d7e1e2;border-radius:16px}.electoral-map-dialog .map-information>label{margin:0 0 20px;font-size:12px;font-weight:700}.map-information h3{font-size:23px;line-height:1.2;margin:10px 0 18px;overflow-wrap:anywhere}.map-district-summary{display:grid;gap:12px;margin:15px 0}.map-district-summary dt{font-size:11px;text-transform:uppercase;letter-spacing:.6px;color:#698186}.map-district-summary dd{font-size:14px;font-weight:700;margin:4px 0 0}
.map-detail-table-wrap{overflow:auto}.map-detail-table{width:100%;border-collapse:collapse;table-layout:fixed;font-size:12px}.map-detail-table th,.map-detail-table td{padding:9px 3px;text-align:right;border-bottom:1px solid #e6ecec;vertical-align:top}.map-detail-table th:first-child,.map-detail-table td:first-child{text-align:left;width:65%;overflow-wrap:anywhere}.map-detail-table i{display:inline-block;width:8px;height:8px;border-radius:50%;margin-right:5px}.map-government-note{font-size:12px}
.map-ranking h3{font-size:18px;margin-top:24px}.map-ranking>p{font-size:12px;color:#6b7e81}.map-ranking button{position:relative;width:100%;display:flex;justify-content:space-between;gap:12px;text-align:left;padding:11px 0 10px;background:none;border:0;border-bottom:1px solid #e6ecec;cursor:pointer;color:#314d54;font-size:12px}.map-ranking button i{position:absolute;bottom:0;left:0;height:3px;opacity:.7}.map-ranking button:hover{background:#f1f5f4}
.map-parliament-cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-top:22px}.map-parliament-card{display:grid;gap:9px;padding:16px;border:1px solid #cfdbdd;border-radius:12px;background:#fff;text-align:left;cursor:pointer;color:#29434b;min-width:0}.map-parliament-card:hover{border-color:#43717a;background:#f0f6f5}.map-parliament-card span{font-size:9px;letter-spacing:1px;color:#789094}.map-parliament-card strong{font-size:14px;overflow-wrap:anywhere}.map-parliament-card small{font-size:12px;line-height:1.5;color:#60777b}
@media(prefers-reduced-motion:reduce){.map-district [data-map-region]{transition:none}}
@media(max-width:760px){.map-controls{grid-template-columns:repeat(2,minmax(0,1fr))}.map-layout{grid-template-columns:minmax(0,1fr)}.map-viewport{max-height:none}.map-parliament-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.electoral-map-dialog{padding:14px}.map-information{padding:14px}.map-parliament-card{padding:12px}.map-zoom-controls button{min-height:42px}.map-options{gap:16px}.map-information .parliament-panel{padding:10px}}

.map-shoreline{fill:none;stroke:#f8fcff;stroke-width:3;pointer-events:none;stroke-linejoin:round}.map-natural-features{pointer-events:none}.map-river{fill:none;stroke:#94cfdb;stroke-width:6;stroke-linecap:round;opacity:.65}.map-river.tributary{stroke-width:3}.map-lake{fill:#aed9e1;stroke:#e6f6fa;stroke-width:2;opacity:.85}.map-mountains{fill:none;stroke:#214c50;stroke-width:3;opacity:.20;stroke-linecap:round;stroke-linejoin:round}

.map-labels{pointer-events:none}
.map-boundaries{pointer-events:none}.map-boundary-district,.map-boundary-territory{fill:none;stroke:#111820;stroke-linecap:round;stroke-linejoin:round}.map-boundary-district{stroke-width:2.5;stroke-dasharray:9 7}.map-boundary-territory{stroke-width:7}.map-district [data-map-region]{stroke:none}.map-boundary-key{display:flex;gap:16px;flex-wrap:wrap;align-items:center;margin:12px 0 0;font-size:12px;color:#566d75}.map-boundary-key span{display:inline-flex;gap:7px;align-items:center}.map-boundary-key i{width:26px;border-top:4px solid #111820}.map-boundary-key .district-key i{border-top:2px dashed #111820}
html[data-theme=dark] .map-boundary-key{color:#c5d5e3}html[data-theme=dark] .map-boundary-key i{border-color:#d4e5f2}
