/* SKYNET v27.3 shared map experience */
:root{--sk-map-bg:#050d18;--sk-map-panel:rgba(5,17,31,.92);--sk-map-border:#173c5c;--sk-cyan:#21c7ff;--sk-blue:#1688ff;--sk-green:#42f578;--sk-lime:#9dff39;--sk-yellow:#ffd43b;--sk-orange:#ff8a21;--sk-red:#ff3f4f;--sk-purple:#a855f7}
.leaflet-container.skynet-modern-map{background:radial-gradient(circle at 50% 45%,#0b2940 0,#071522 46%,#030812 100%);color:#d9efff;box-shadow:inset 0 0 50px rgba(0,170,255,.09)}
.leaflet-container.skynet-modern-map .leaflet-tile-pane{filter:brightness(.72) saturate(.86) contrast(1.13) hue-rotate(2deg)}
.leaflet-container.skynet-modern-map .leaflet-control-zoom a,
.leaflet-container.skynet-modern-map .leaflet-control-layers{background:rgba(4,16,29,.94);color:#dff6ff;border-color:#1d496a;backdrop-filter:blur(12px)}
.leaflet-container.skynet-modern-map .leaflet-control-zoom a:hover{background:#0b2941;color:#40d8ff}
.leaflet-container.skynet-modern-map .leaflet-control-attribution{background:rgba(3,11,20,.74);color:#7fa7c5}
.leaflet-container.skynet-modern-map .leaflet-popup-content-wrapper,
.leaflet-container.skynet-modern-map .leaflet-popup-tip{background:#071827;color:#dff5ff;border:1px solid #1b4b6e;box-shadow:0 14px 42px rgba(0,0,0,.55),0 0 20px rgba(20,180,255,.08)}
.leaflet-container.skynet-modern-map .leaflet-popup-content{line-height:1.5}
.leaflet-container.skynet-modern-map .leaflet-tooltip{background:rgba(5,18,32,.96);color:#e9f8ff;border:1px solid #1d5276;box-shadow:0 10px 28px rgba(0,0,0,.42)}
.skynet-net-link{filter:drop-shadow(0 0 3px currentColor);stroke-linecap:round;transition:opacity .35s ease,stroke-width .35s ease}
.skynet-net-link.active{animation:skynetLinkFlow 1.7s linear infinite}
.skynet-net-link.direct{stroke-dasharray:8 10}.skynet-net-link.relayed{stroke-dasharray:3 10}.skynet-net-link.mqtt{stroke-dasharray:2 8}
@keyframes skynetLinkFlow{to{stroke-dashoffset:-36}}
.skynet-traffic-particle{filter:drop-shadow(0 0 5px currentColor);animation:skynetParticlePulse 1.1s ease-in-out infinite alternate}
@keyframes skynetParticlePulse{from{stroke-width:1;filter:drop-shadow(0 0 3px currentColor)}to{stroke-width:2;filter:drop-shadow(0 0 10px currentColor)}}
.skynet-activity-hit{animation:skynetActivityHit .75s ease-out}
@keyframes skynetActivityHit{0%{stroke-width:2;fill-opacity:.9}100%{stroke-width:16;fill-opacity:0;stroke-opacity:0}}
.skynet-map-live-control{font:700 11px/1.2 system-ui,sans-serif;background:rgba(4,17,30,.94);color:#dff5ff;border:1px solid #1d4a69;border-radius:12px;padding:7px 9px;box-shadow:0 8px 28px rgba(0,0,0,.35);backdrop-filter:blur(10px);display:flex;align-items:center;gap:7px;white-space:nowrap}
.skynet-map-live-control .dot{width:8px;height:8px;border-radius:50%;background:#2ef27a;box-shadow:0 0 10px #2ef27a;animation:skynetLivePulse 1.5s ease-in-out infinite}
.skynet-map-live-control.stale .dot{background:#f7c948;box-shadow:0 0 8px #f7c948}.skynet-map-live-control.error .dot{background:#ff4357;box-shadow:0 0 8px #ff4357}
@keyframes skynetLivePulse{50%{opacity:.42;transform:scale(.78)}}
.skynet-map-activity-panel{background:rgba(4,17,30,.94);border:1px solid #1d4a69;border-radius:12px;padding:8px;box-shadow:0 10px 30px rgba(0,0,0,.36);backdrop-filter:blur(12px);color:#cfeeff;font:600 11px/1.2 system-ui,sans-serif}
.skynet-map-activity-panel button{border:1px solid #245778;background:#0a263b;color:#dff5ff;border-radius:8px;padding:6px 8px;font:inherit;cursor:pointer}.skynet-map-activity-panel button.on{border-color:#1bbdff;background:#073653;box-shadow:0 0 12px rgba(20,190,255,.13)}
.skynet-map-activity-panel .row{display:flex;gap:5px}.skynet-map-activity-panel small{display:block;color:#75a7c7;margin-top:5px}
.skynet-map-role-marker{position:relative;width:38px;height:38px;display:grid;place-items:center;color:#fff;filter:drop-shadow(0 0 7px var(--sk-marker,#21c7ff))}
.skynet-map-role-marker:before{content:"";position:absolute;inset:2px;background:rgba(4,18,32,.96);border:2px solid var(--sk-marker,#21c7ff);transform:rotate(45deg);border-radius:8px;box-shadow:0 0 0 3px rgba(0,0,0,.35),0 0 18px color-mix(in srgb,var(--sk-marker,#21c7ff) 62%,transparent)}
.skynet-map-role-marker svg,.skynet-map-role-marker span{position:relative;z-index:2;width:21px;height:21px}
.skynet-map-role-marker.online:after{content:"";position:absolute;inset:-7px;border:1px solid var(--sk-marker,#21c7ff);border-radius:50%;opacity:.5;animation:skynetMarkerPing 2s ease-out infinite}
@keyframes skynetMarkerPing{0%{transform:scale(.65);opacity:.65}85%,100%{transform:scale(1.35);opacity:0}}
.skynet-map-caption{pointer-events:none!important;background:transparent!important;border:0!important;color:#e9f8ff!important;text-shadow:0 2px 4px #000,0 0 8px #000;font:800 10px/1.1 system-ui,sans-serif;box-shadow:none!important}
/* Public maps get cleaner controls without private traffic overlays */
body:not(.member-site) .leaflet-control-zoom a,body:not(.member-site) .leaflet-control-layers{border-color:#b8c8d5}
@media(max-width:760px){
 .leaflet-container.skynet-modern-map .leaflet-control-zoom{margin-top:10px;margin-left:10px}
 .skynet-map-live-control{font-size:10px;padding:6px 7px}.skynet-map-activity-panel{display:none}.skynet-map-activity-panel button{padding:7px 8px}
 .leaflet-container.skynet-modern-map .leaflet-popup-content-wrapper{max-width:min(290px,78vw)}
}
@media(prefers-reduced-motion:reduce){.skynet-net-link.active,.skynet-traffic-particle,.skynet-map-role-marker.online:after,.skynet-map-live-control .dot{animation:none!important}}
