.map-dialog { width:min(700px,95vw); max-height:92dvh; overflow:auto; }
.map-shell { display:grid; gap:10px; }
.street-map { margin:0; overflow:hidden; border:1px solid #5a5260; border-radius:10px; background:#191f30; }
.street-map svg { display:block; width:100%; height:auto; max-height:46dvh; background-color:#1a2030; }
.map-water { fill:#1c4764; opacity:0.78; }
.street-map-curb,.street-map-road,.street-map-divider { fill:none; }
.street-map-curb { stroke:#6f6868; stroke-width:8.5; stroke-linecap:round; stroke-linejoin:round; }
.street-map-road { stroke:#3f4354; stroke-width:5.5; stroke-linecap:round; stroke-linejoin:round; }
.street-map-divider { stroke:#c1a97c; stroke-width:0.9; stroke-dasharray:3 4; }
.map-area-label { fill:#ffe8b6; font:800 8.5px Arial,sans-serif; pointer-events:none; text-shadow:0 1px 2px #000; }
.map-pin:hover circle,.map-pin:hover rect,.map-pin:hover polygon { filter:brightness(1.3); }
.route-player { fill:rgba(131,255,238,0.18); stroke:#83ffee; stroke-width:2.2; }
.route-player-tip { fill:#83ffee; }
.route-legend { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:6px; padding:7px 10px; border-top:1px solid #3c4258; color:#e6e4de; font-size:11.5px; }
.route-legend span:first-child::before { content:''; display:inline-block; width:8px; height:8px; margin-right:4px; border-radius:50%; border:2px solid #83ffee; vertical-align:-1px; }
.route-delivery-path { fill:none; stroke:#83ffee; stroke-width:3; stroke-linecap:round; stroke-linejoin:round; stroke-dasharray:5 3; }
.route-delivery-pin { fill:#ffbd42; stroke:#181c2b; stroke-width:1.4; }
.route-delivery-pin.pickup { fill:#3be898; }
.map-tabs { display:flex; flex-wrap:wrap; gap:5px; }
.map-tabs button { flex:1 1 auto; padding:6px 10px; border-radius:999px; border:1px solid rgba(255,204,112,.32); background:rgba(255,255,255,.06); color:#d8d5cc; font:700 12px Arial,sans-serif; }
.map-tabs button[aria-pressed="true"] { background:#ffba42; color:#181920; border-color:#ffe09c; }
.map-dir-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:6px; max-height:28dvh; overflow-y:auto; padding-right:2px; }
.map-dir-btn { display:flex; align-items:center; gap:8px; padding:7px 9px; border-radius:8px; border:1px solid rgba(255,255,255,.14); background:rgba(255,255,255,.05); color:#fff3d8; text-align:left; }
.map-dir-btn:hover,.map-dir-btn:active { background:rgba(255,196,86,.18); border-color:#ffca66; }
.map-dir-dot { flex:none; width:10px; height:10px; border-radius:50%; }
.map-dir-info { min-width:0; }
.map-dir-info strong { display:block; font:700 12px/1.2 Arial,sans-serif; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.map-dir-info small { display:block; font:600 10px Consolas,monospace; color:#a8b0c4; margin-top:2px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
@media(max-width:540px) {
  .map-dir-list { grid-template-columns:1fr; max-height:26dvh; }
  .street-map svg { max-height:34dvh; }
}
