.map-dialog { width: min(1180px, calc(100% - 32px)); max-width: none; max-height: min(900px, calc(100% - 32px)); padding: 0; border: 1px solid #43515f; border-radius: 18px; color: #f3f6fb; background: #10171f; box-shadow: 0 36px 100px #000b; font-family: Avenir, system-ui, sans-serif; overflow: auto; }
.map-dialog::backdrop { background: rgba(3, 7, 12, .82); backdrop-filter: blur(8px); }
.map-explorer-shell, .map-explorer-shell * { box-sizing: border-box; }
.map-explorer-shell button { font: inherit; color: inherit; cursor: pointer; }
.map-explorer-shell button:focus-visible, .map-explorer-viewport:focus-visible { outline: 3px solid #9bcfff; outline-offset: 3px; }
.map-explorer-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 26px 30px 23px; border-bottom: 1px solid #293541; }
.map-explorer-header h2 { margin: 6px 0 4px; font-size: clamp(1.45rem, 2vw, 2rem); letter-spacing: -.035em; }
.map-explorer-header p, .map-explorer-help { margin: 0; color: #a2afbf; font-size: .83rem; }
.map-explorer-eyebrow, .map-explorer-topline, .map-explorer-panel-top, .map-explorer-list-heading { font-size: .68rem; font-weight: 700; letter-spacing: .14em; color: #90a8b8; }
.map-explorer-close { flex: none; width: 44px; height: 44px; border: 1px solid #465462; border-radius: 50%; background: #18232d; font-size: 1.65rem !important; line-height: 1; }
.map-explorer-close:hover, .map-explorer-controls button:hover, .map-explorer-list button:hover { background: #263847; }
.map-explorer-layout { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(280px, .8fr); }
.map-explorer-stage { min-width: 0; padding: 24px; background: radial-gradient(circle at 50% 45%, #172c3b, #0b1118 75%); }
.map-explorer-topline, .map-explorer-panel-top, .map-explorer-list-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.map-explorer-topline { margin: 0 0 14px; }
.map-explorer-topline i { display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: #6cbeff; box-shadow: 0 0 10px #268bff; }
.map-explorer-viewport { position: relative; height: clamp(310px, 42vw, 500px); overflow: hidden; border: 1px solid #4b626d; border-radius: 8px; background: #172833; touch-action: none; cursor: grab; box-shadow: 0 20px 42px #0008, inset 0 0 35px #0006; isolation: isolate; }
.map-explorer-viewport:active { cursor: grabbing; }
.map-explorer-world { position: absolute; inset: 0; transform-origin: center; will-change: transform; }
.map-explorer-art { width: 100%; height: 100%; display: block; }
.map-explorer-buildings { filter: drop-shadow(4px 7px 2px #061017a0); }
.map-explorer-world.hide-buildings .map-explorer-buildings, .map-explorer-world.hide-points .map-explorer-marker { display: none; }
.map-explorer-marker { position: absolute; left: var(--x); top: var(--y); display: grid; place-items: center; width: 44px; height: 44px; padding: 0; transform: translate(-50%, -50%); border: 0; border-radius: 50%; background: #268bff33; }
.map-explorer-marker span { display: grid; place-items: center; width: 30px; height: 30px; border: 2px solid #bbdfff; border-radius: 50%; background: #1468c5; box-shadow: 0 4px 12px #000b, 0 0 0 5px #268bff33; color: white; font-size: .62rem; font-weight: 800; }
.map-explorer-marker.is-selected span { background: #f3f6fb; border-color: #fff; color: #0a4f96; box-shadow: 0 0 0 7px #268bff66, 0 5px 18px #000b; }
.map-explorer-scan { pointer-events: none; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 25%, #8bd7ff0d 48%, transparent 55%); }
.map-explorer-maplabel { position: absolute; left: 16px; bottom: 15px; padding: 7px 10px; border: 1px solid #66829277; background: #0b1822cc; font-size: .65rem; font-weight: 800; letter-spacing: .1em; pointer-events: none; }
.map-explorer-maplabel span { color: #9eb3bf; margin-left: 10px; }
.map-explorer-controls { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 15px; }
.map-explorer-control-group { display: flex; gap: 5px; }
.map-explorer-controls button { min-width: 44px; min-height: 44px; padding: 0 12px; border: 1px solid #3e505e; border-radius: 6px; background: #182630; font-size: .78rem; }
.map-explorer-controls button[aria-pressed="true"] { border-color: #5798cb; background: #193d59; }
.map-explorer-controls button:disabled { opacity: .45; cursor: default; }
.map-explorer-help { margin-top: 12px; line-height: 1.5; }
.map-explorer-panel { padding: 28px 25px; border-left: 1px solid #293541; background: #10171f; }
.map-explorer-panel-top { margin-bottom: 32px; }
.map-explorer-panel h3 { margin: 0 0 8px; font-size: 1.65rem; letter-spacing: -.04em; }
.map-explorer-address { margin: 0; color: #a2afbf; font-size: .9rem; line-height: 1.5; }
.map-explorer-panel dl { margin: 28px 0 32px; border-top: 1px solid #293541; }
.map-explorer-panel dl div { padding: 13px 0; border-bottom: 1px solid #293541; }
.map-explorer-panel dt { color: #a2afbf; font-size: .72rem; }
.map-explorer-panel dd { margin: 5px 0 0; font-size: .88rem; line-height: 1.4; }
.map-explorer-list-heading { margin-bottom: 10px; }
.map-explorer-list { display: grid; gap: 6px; }
.map-explorer-list button { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 8px 10px; text-align: left; border: 1px solid transparent; border-radius: 6px; background: #17222c; font-size: .84rem; }
.map-explorer-list button.is-selected { border-color: #478aca; background: #1a3449; }
.map-explorer-list button span { color: #83bfff; font-size: .7rem; }
.map-explorer-note { margin: 25px 0 0; color: #a2afbf; font-size: .75rem; line-height: 1.5; }
@media (prefers-reduced-motion: no-preference) { .map-dialog[open] .map-explorer-scan { animation: map-explorer-scan 8s ease-in-out infinite alternate; } .map-dialog[open] .map-explorer-marker.is-selected span { animation: map-explorer-pulse 2.5s ease-in-out infinite; } }
@keyframes map-explorer-scan { from { transform: translateX(-55%); } to { transform: translateX(55%); } }
@keyframes map-explorer-pulse { 50% { box-shadow: 0 0 0 11px #268bff33, 0 5px 18px #000b; } }
@media (max-width: 760px) { .map-dialog { width: calc(100% - 20px); max-height: calc(100% - 20px); } .map-explorer-header { padding: 20px; } .map-explorer-layout { grid-template-columns: 1fr; } .map-explorer-stage { padding: 18px; } .map-explorer-viewport { height: 340px; } .map-explorer-panel { border-left: 0; border-top: 1px solid #293541; padding: 24px 20px; } .map-explorer-panel-top { margin-bottom: 20px; } }
@media (max-width: 420px) { .map-explorer-viewport { height: 280px; } .map-explorer-topline span:last-child { display: none; } }
.map-explorer-header { position: sticky; top: 0; z-index: 5; background: #10171f; }
.map-explorer-zoom { display: inline-flex; align-items: center; justify-content: center; min-width: 50px; color: #c4d6e3; font-size: .78rem; font-variant-numeric: tabular-nums; }
.map-explorer-world.is-perspective .map-explorer-buildings { filter: drop-shadow(1px 2px 0 #273841) drop-shadow(2px 4px 0 #1b2b34) drop-shadow(5px 8px 3px #061017b0); }
@media (prefers-reduced-motion: no-preference) { .map-dialog[open] .map-explorer-route { animation: map-explorer-route 12s linear infinite; } }
@keyframes map-explorer-route { to { stroke-dashoffset: -170; } }

/* Explorer follows the light product board while retaining the original map
   controls, selectable markers, zoom and keyboard interaction. */
.map-dialog { color:#12202d; background:#fffdf8; border-color:#c9dcda; box-shadow:0 36px 100px #173c4350; }
.map-dialog::backdrop { background:rgba(18,32,45,.48); }
.map-explorer-header { border-color:#d8e5e2; background:#fffdf8; }.map-explorer-header p,.map-explorer-help,.map-explorer-address,.map-explorer-note { color:#61747c; }.map-explorer-eyebrow,.map-explorer-topline,.map-explorer-panel-top,.map-explorer-list-heading { color:#347a72; }
.map-explorer-close { border-color:#bfd4d1; background:#f1f8f5; color:#173842; }.map-explorer-close:hover,.map-explorer-controls button:hover,.map-explorer-list button:hover { background:#e1f0ec; }
.map-explorer-stage { background:radial-gradient(circle at 50% 45%,#d9eee8,#f4f8f6 75%); }.map-explorer-viewport { border-color:#94bcb5; background:#d7ebe5; box-shadow:0 20px 42px #173c4324,inset 0 0 35px #173c4310; }
.map-explorer-buildings { filter:drop-shadow(4px 7px 2px #23483b30); }.map-explorer-marker { background:#1769e01c; }.map-explorer-marker span { border-color:#fff; background:#1769e0; box-shadow:0 4px 12px #173c4350,0 0 0 5px #1769e025; }.map-explorer-marker.is-selected span { background:#fff; border-color:#1769e0; color:#0d4fae; box-shadow:0 0 0 7px #1769e033,0 5px 18px #173c4350; }
.map-explorer-scan { background:linear-gradient(110deg,transparent 25%,#fff8 48%,transparent 55%); }.map-explorer-maplabel { border-color:#8eb8b177; background:#ffffffcc; color:#23434e; }.map-explorer-maplabel span { color:#66847e; }
.map-explorer-controls button { border-color:#bdd3d0; background:#fff; color:#173842; }.map-explorer-controls button[aria-pressed="true"] { border-color:#1769e0; background:#e9f1ff; color:#0d4fae; }.map-explorer-panel { border-color:#d8e5e2; background:#fffdf8; }.map-explorer-panel dl,.map-explorer-panel dl div { border-color:#d8e5e2; }.map-explorer-panel dt { color:#69837f; }.map-explorer-list button { background:#f0f7f4; }.map-explorer-list button.is-selected { border-color:#1769e0; background:#e9f1ff; }.map-explorer-list button span { color:#1769e0; }

.map-explorer-zoom { color:#375866; }
.map-explorer-world.is-perspective .map-explorer-buildings { filter:drop-shadow(1px 2px 0 #85aaa0) drop-shadow(2px 4px 0 #6e9a90) drop-shadow(5px 8px 3px #3d605a55); }
