/* NieboGuard — PAŻP DroneMap zones, drones and FIRMS fires.
 * MapLibre GL JS markers/layers; no Leaflet dependency. */
:root {
  --ng-drone-legal: #00f0ff;
  --ng-drone-unauthorized: #a100ff;
  --ng-drone-alert: #ff003c;
  --ng-fire: #ff6a00;
  --ng-fire-edge: #e60000;
}

.ng-drone-marker {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ng-drone-unauthorized);
  cursor: pointer;
  transform-origin: center;
  pointer-events: auto;
  -webkit-tap-highlight-color: transparent;
}

.ng-drone-marker svg {
  display: block;
  overflow: visible;
  filter: drop-shadow(0 0 4px rgba(0, 0, 0, .85));
}

.ng-drone-marker--legal { color: var(--ng-drone-legal); }
.ng-drone-marker--unauthorized { color: var(--ng-drone-unauthorized); }
.ng-drone-marker--alert { color: var(--ng-drone-alert); }

.ng-drone-marker--legal svg {
  filter: drop-shadow(0 0 4px rgba(0, 240, 255, .75));
}
.ng-drone-marker--unauthorized svg {
  filter: drop-shadow(0 0 5px rgba(161, 0, 255, .8));
}
.ng-drone-marker--alert svg {
  filter: drop-shadow(0 0 8px rgba(255, 0, 60, .95));
  animation: ng-drone-pulse 1.35s ease-in-out infinite;
}

.ng-drone-marker--alert::after {
  content: "";
  position: absolute;
  width: 38px;
  height: 38px;
  border: 2px solid var(--ng-drone-alert);
  border-radius: 50%;
  opacity: .75;
  animation: ng-drone-ring 1.35s ease-out infinite;
}

@keyframes ng-drone-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.14); opacity: .82; }
}

@keyframes ng-drone-ring {
  from { transform: scale(.7); opacity: .8; }
  to { transform: scale(1.8); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .ng-drone-marker--alert svg,
  .ng-drone-marker--alert::after {
    animation: none !important;
  }
}

/* Compact map legend row if a host page chooses to add one. */
.ng-drone-legend {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #b8c7dd;
}
.ng-drone-legend i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--ng-drone-unauthorized);
  box-shadow: 0 0 6px currentColor;
}
.ng-drone-legend i.legal { background: var(--ng-drone-legal); }
.ng-drone-legend i.alert { background: var(--ng-drone-alert); }
.ng-drone-legend i.fire { background: var(--ng-fire); border: 1px solid var(--ng-fire-edge); }

/* FIRMS detection card — MapLibre popup content, readable on mobile. */
.ng-fire-card {
  display: grid;
  gap: 3px;
  max-width: 300px;
  color: #e9f2ff;
  font: 12px/1.4 var(--ng-font-sans, system-ui, sans-serif);
}
.ng-fire-card > b { color: #ffb15c; font-size: 13px; }
.ng-fire-card hr { width: 100%; margin: 3px 0; border: 0; border-top: 1px solid rgba(255,177,92,.3); }
.ng-fire-card div { overflow-wrap: anywhere; }
.ng-fire-card small { margin-top: 4px; color: #b8c7dd; font-size: 10px; line-height: 1.35; }
.ng-fire-card a { color: #8ec0ff; }
@media (max-width: 480px) {
  .ng-fire-card { max-width: min(78vw, 300px); font-size: 11.5px; }
}
