/* components/maps/NightMap.astro */
.nm { position: relative; margin: 0; overflow: hidden; border: 1px solid var(--border); border-radius: 22px; background: #05050a; box-shadow: 0 40px 100px -40px #000; }
.nm svg { display: block; width: 100%; height: auto; }
.nm-pin { color: #8fd4ff; }
.nm-pin circle { fill: currentColor; }
.nm-pin .nm-ring { fill: transparent; stroke: currentColor; stroke-width: calc(.4px * var(--nm-s, 1)); opacity: .75; transform-box: fill-box; transform-origin: center; animation: nm-ping 3s ease-out infinite; }
.nm-pin--good { color: #6ee7a8; }
.nm-pin--warn { color: #f7c46c; }
.nm-pin--bad { color: #ff8a7a; }
@keyframes nm-ping { 0% { transform: scale(.6); opacity: .9; } 80%, 100% { transform: scale(2.2); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .nm-pin .nm-ring { animation: none; } }
.nm-label { fill: #e8f4ff; font-family: var(--mono); font-weight: 600; paint-order: stroke; stroke: #05050a; pointer-events: none; }
.nm figcaption { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding: 12px 18px; border-top: 1px solid var(--border); font-size: 13px; color: var(--text-3); }
.nm figcaption b { color: var(--text); font-weight: 600; }

/* As a hero's background: the map covers the whole card, behind the copy, darkened where the text sits. */
.nm--bleed { position: absolute; inset: 0; z-index: -1; border: 0; border-radius: 0; background: none; box-shadow: none; pointer-events: none; }
.nm--bleed svg { width: 100%; height: 100%; }
.nm--bleed::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #0a0b0f 0%, #0a0b0fe6 26%, #0a0b0f80 46%, #0a0b0f00 66%), linear-gradient(0deg, #0a0b0fcc 0%, #0a0b0f00 22%); }
.nm--bleed figcaption { display: none; }
@media (max-width: 900px) { .nm--bleed::after { background: linear-gradient(180deg, #0a0b0f 0%, #0a0b0fd9 55%, #0a0b0f99 100%); } }
