.scope { position: relative; flex: 1; min-height: 0; overflow: hidden; }
#map { position: absolute; inset: 0; background: var(--bg); overflow: hidden; }
.leaflet-container { background: var(--bg); font-family: inherit; }
.radar-tiles { filter: invert(1) hue-rotate(180deg) brightness(0.55) contrast(1.15) saturate(0.35); }
.leaflet-control-attribution { background: rgba(5, 11, 20, 0.7) !important; color: var(--dim) !important; font-size: 10px; }
.leaflet-control-attribution a { color: var(--dim) !important; }

/* Rotating radar sweep, sized and placed by radar.js */
#sweep {
  position: absolute;
  z-index: 450;
  border-radius: 50%;
  pointer-events: none;
  background: conic-gradient(from 0deg, rgba(57, 255, 156, 0) 0deg, rgba(57, 255, 156, 0) 300deg, rgba(57, 255, 156, 0.22) 358deg, rgba(57, 255, 156, 0.5) 360deg);
  animation: sweep 6s linear infinite;
}
@keyframes sweep { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { #sweep { animation: none; opacity: 0; } }

.ring-label { color: var(--green); opacity: 0.6; font-size: 11px; font-weight: 700; text-align: center; }
.airport-label {
  color: var(--bg); background: var(--green); border-radius: 6px;
  font-weight: 900; font-size: 13px; text-align: center; line-height: 24px; letter-spacing: 0.05em;
}

/* Plane markers glide between one-second position updates */
.plane-marker { transition: transform 1s linear; }
.pm { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; }
.pm svg { transition: transform 0.6s ease; filter: drop-shadow(0 0 4px rgba(0, 0, 0, 0.9)); }
.pm path { fill: var(--cyan); stroke: #04121c; stroke-width: 1; }
.pm-cargo path { fill: var(--amber); }
.pm-small path { fill: var(--green); }
.pm-military path { fill: var(--pink); }
.pm-ground { opacity: 0.55; }

/* Cargo planes pulse so they are easy to find */
.pm-cargo { box-shadow: 0 0 0 2px rgba(255, 179, 71, 0.55); animation: cargo-pulse 2s ease-out infinite; }
@keyframes cargo-pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 179, 71, 0.7); }
  100% { box-shadow: 0 0 0 16px rgba(255, 179, 71, 0); }
}
/* Simulated planes always carry a dashed outline */
.pm-sim { outline: 2px dashed var(--blue); outline-offset: -8px; }

.plane-marker.is-selected .pm { background: rgba(127, 227, 255, 0.18); box-shadow: 0 0 0 3px #fff; animation: none; }
.plane-marker.is-selected { z-index: 1000 !important; }
