.map-shell{overflow:clip}
.map-stage{position:relative;display:flex;flex-direction:column;justify-content:flex-end;align-items:flex-start;min-height:665px;background:#08283f}
.map-stage #regional-map{position:absolute;inset:0;min-height:0}
.map-stage .map-google-embed{position:absolute;inset:0;width:100%;height:100%;border:0;z-index:3;background:#08283f}
.map-shell #regional-map:before{content:none}
.map-shell #regional-map{background:#08283f !important}
.map-shell.map-fallback-active #regional-map{background:#08283f url('../images/hero-02.jpg') center/cover no-repeat !important}
.map-fallback-label{position:absolute;z-index:1;left:18px;bottom:14px;margin:0;font-size:10px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:#fff;background:rgba(5,32,55,.8);padding:6px 9px;border-radius:4px;max-width:calc(100% - 36px)}
.map-fallback-label[hidden]{display:none}
.map-base-switch{position:absolute;z-index:6;top:12px;right:12px;display:flex;background:#fff;border-radius:4px;box-shadow:0 6px 18px rgba(5,31,59,.18);overflow:hidden}
.map-base-switch button{border:0;background:#fff;color:#071f3b;padding:9px 13px;font-size:11px;font-weight:800;cursor:pointer}
.map-base-switch button+button{border-left:1px solid #dbe5ec}
.map-base-switch button.active{background:#071f3b;color:#fff}
.map-shell[data-map-state="loading"] .map-base-switch,.map-shell[data-map-state="fallback"] .map-base-switch{display:none}
.map-shell[data-map-state="loading"] .map-load-note,.map-shell[data-map-state="fallback"] .map-load-note{display:block}
.map-shell[data-map-state="ready"] .map-load-note{display:none}
.map-load-note .map-retry{display:block;margin-top:8px;border:1px solid #071f3b;background:#071f3b;color:#fff;border-radius:4px;padding:8px 14px;font-size:10px;font-weight:800;cursor:pointer}
.map-load-note .map-retry:hover{background:#fff;color:#071f3b}
.map-panel button:disabled,.map-panel select:disabled{opacity:.45;cursor:not-allowed}
.map-marker.selected{transform:scale(1.35);box-shadow:0 0 0 4px rgba(255,255,255,.55),0 3px 10px rgba(0,0,0,.35)}
.map-route-origin,.map-ring-label{background:#fff;color:#071f3b;font:700 11px/1.2 var(--body);padding:4px 8px;border-radius:3px;box-shadow:0 3px 10px rgba(0,0,0,.25);white-space:nowrap}
.map-route-origin{position:relative;max-width:180px;overflow:hidden;text-overflow:ellipsis;border-left:6px solid #e2262a}
.map-route-origin,.map-ring-label{pointer-events:none}
.popup{width:210px;font-family:var(--body)}
.popup img{display:block;width:100%;height:96px;object-fit:cover;border-radius:4px}
.popup strong{display:block;margin:8px 0 2px;font-family:var(--head);font-size:15px;color:#071f3b}
.popup small{display:block;font-size:11px;color:#51636f}
.popup .map-popup-estimate{margin:8px 0 0;padding:6px 8px;font-size:10px;line-height:1.4;color:#6b5833;background:#fff7e8;border:1px solid #efd39f;border-radius:4px}
.popup a{display:inline-block;margin-top:8px;font-size:12px;font-weight:800;color:#0e6cae}
.popup a.map-popup-google{margin-left:12px}
@media(max-width:640px){.popup{width:min(170px,60vw)}.popup img{display:none}}
@media(max-width:920px){.map-stage{min-height:480px}.map-base-switch{top:10px;right:10px}}
.map-pin{cursor:pointer;padding:7px;border-radius:50%}
.map-pin:focus-visible{outline:2px solid #fff;outline-offset:-2px}
.map-shell .maplibregl-popup{z-index:1}
.map-shell .maplibregl-popup-content{padding:10px;border-radius:6px}
.map-shell .maplibregl-ctrl-attrib{font-size:10px}

.map-google-pins{position:absolute;inset:0;z-index:4;overflow:hidden;pointer-events:none}
.map-google-pins[hidden],.map-google-card[hidden]{display:none}
.map-google-pin{position:absolute;width:30px;height:40px;margin:0;padding:0;border:0;background:transparent;transform:translate(-50%,-100%);cursor:pointer;pointer-events:auto}
.map-google-pin:focus-visible{outline:2px solid #fff;outline-offset:2px}
.map-google-pin-dot,.map-google-pin-label{display:none}
.map-google-pin.selected{z-index:1}
.map-google-pin.selected .map-google-pin-dot{display:block;position:absolute;left:50%;bottom:-11px;width:22px;height:22px;margin-left:-11px;border:4px solid #fff;border-radius:50%;background:#e2262a;box-shadow:0 0 0 6px rgba(226,38,42,.35),0 3px 10px rgba(0,0,0,.4)}
.map-google-pin.selected .map-google-pin-label{display:block;position:absolute;left:50%;bottom:calc(100% + 4px);transform:translateX(-50%);background:#e2262a;color:#fff;font:800 12px/1.2 var(--body);padding:5px 9px;border-radius:4px;white-space:nowrap;box-shadow:0 3px 10px rgba(0,0,0,.35)}
.map-google-card{position:sticky;z-index:5;bottom:0;margin:0 0 28px 12px;width:260px;max-width:calc(100% - 24px);background:#fff;border-radius:6px;padding:12px 30px 12px 12px;box-shadow:0 8px 24px rgba(5,31,59,.28);font-family:var(--body)}
.map-google-card strong{display:block;font-family:var(--head);font-size:15px;color:#071f3b}
.map-google-card small{display:block;margin-top:2px;font-size:11px;color:#51636f}
.map-google-card .map-popup-estimate{margin:8px 0 0;padding:6px 8px;font-size:10px;line-height:1.4;color:#6b5833;background:#fff7e8;border:1px solid #efd39f;border-radius:4px}
.map-google-card-links{display:flex;gap:12px;flex-wrap:wrap}
.map-google-card-links a{margin-top:8px;font-size:12px;font-weight:800;color:#0e6cae}
.map-google-card-close{position:absolute;top:4px;right:4px;width:28px;height:28px;border:0;background:transparent;color:#071f3b;font-size:20px;line-height:1;cursor:pointer;border-radius:4px}
.map-google-card-close:hover,.map-google-card-close:focus-visible{background:#eef3f7}
@media(max-width:640px){.map-google-card{margin:0 0 24px 10px;width:calc(100% - 72px);padding:10px 28px 10px 10px}.map-google-card strong{font-size:14px}.map-google-card .map-popup-estimate{margin-top:6px;padding:4px 6px}}
.map-google-capture{position:absolute;inset:0;z-index:4;cursor:grab;touch-action:pan-y}
.map-google-capture[hidden],.map-google-recentre[hidden]{display:none}
.map-google-recentre{position:absolute;z-index:6;top:84px;right:12px;border:0;border-radius:4px;background:#071f3b;color:#fff;font:800 12px var(--body);padding:9px 14px;cursor:pointer;box-shadow:0 3px 10px rgba(0,0,0,.35)}
.map-google-recentre:focus-visible{outline:2px solid #fff;outline-offset:2px}
.map-google-rings{position:absolute;inset:0;z-index:4;overflow:hidden;pointer-events:none}
.map-google-rings[hidden]{display:none}
.map-google-rings-origin{position:absolute;overflow:visible}
.map-google-ring-label{font:700 12px var(--body);paint-order:stroke;stroke:#fff;stroke-width:4px;stroke-linejoin:round}
.map-legend{position:absolute;z-index:6;left:10px;top:78px;display:flex;flex-direction:column;gap:5px;max-width:min(230px,60%);padding:7px 9px;background:rgba(255,255,255,.92);border-radius:4px;box-shadow:0 4px 12px rgba(5,31,59,.2);font:700 11px/1.3 var(--body);color:#071f3b}
.map-legend[hidden],.map-legend [hidden]{display:none}
.map-legend span{display:flex;align-items:center;gap:7px}
.map-legend i{flex:none;display:inline-block;width:18px;height:10px;box-sizing:border-box}
.map-legend-line{border-top:2px solid #00bcd4;border-bottom:2px solid #e53935}
.map-legend-square{border:2px dashed #008c72;background:rgba(0,140,114,.12)}
.map-google-route{position:absolute;inset:0;z-index:4;overflow:hidden;pointer-events:none}
.map-google-route[hidden]{display:none}
.map-google-route-origin-layer{position:absolute;left:50%;top:50%;overflow:visible}
.route-destination{margin:0 0 10px;font-size:13px;font-weight:800;color:#fff}
.route-label{display:block;font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.06em;color:#9fc1d7;margin-bottom:5px}
.route-address-row{display:flex;gap:6px}
.route-input{flex:1;min-width:0;border:1px solid rgba(255,255,255,.28);background:#0b355a;color:#fff;border-radius:4px;padding:9px 10px;font-size:12px}
.route-input::placeholder{color:#8eb0c6}
.route-input:focus-visible,.route-search:focus-visible,.route-car:focus-visible,.route-candidate:focus-visible,.route-google:focus-visible{outline:2px solid #fff;outline-offset:2px}
.route-search,.route-car,.route-candidate{border:1px solid rgba(255,255,255,.18);background:#0b355a;color:#fff;border-radius:4px;font-size:12px;cursor:pointer}
.route-search{padding:9px 14px;font-weight:800;background:var(--cyan);color:#06243f}
.route-message{min-height:0;margin:8px 0 0;font-size:11px;color:#e1edf4}
.route-message:empty{display:none}
.route-candidates{list-style:none;margin:6px 0 0;padding:0;display:grid;gap:5px}
.route-candidate{display:block;width:100%;padding:8px 10px;text-align:center;font-weight:800}
.route-candidate-label{display:block;margin:2px 0 4px;font-size:12px;line-height:1.35;color:#e1edf4}
.route-origin{font-size:12px;color:#c2d5e4}
.route-candidate-note{opacity:.75}
.route-candidate:hover,.route-car:hover{background:#fff;color:#071f3b}
.route-result{margin-top:8px;font-size:12px;color:#e1edf4}
.route-result p{margin:6px 0}
.route-straight{font-weight:700}
.route-car{display:block;width:100%;padding:9px 10px;font-weight:800}
.route-note,.route-status{font-size:10px;color:#9fc1d7}
.route-google{display:inline-block;margin-top:4px;font-size:12px;font-weight:800;color:#86c8e5}
.map-panel .route-note,.map-panel .route-status{font-size:10px}
.map-directions{position:absolute;inset:0;z-index:8;background:#fff}
.map-directions[hidden]{display:none}
.map-directions-frame{position:absolute;inset:0;width:100%;height:100%;border:0}
.map-directions-close{position:absolute;right:10px;bottom:28px;z-index:9;border:0;border-radius:4px;background:#071f3b;color:#fff;font:800 12px var(--body);padding:9px 14px;cursor:pointer;box-shadow:0 3px 10px rgba(0,0,0,.35)}
