/* ==================================================================
   Map-specific styles (overrides for Leaflet aircraft markers)
   ================================================================== */

/* Default aircraft marker shape — small triangle pointing in heading direction */
.ac-icon {
    background: transparent;
    border: none;
}

/* Aircraft marker container */
.ac-marker {
    background: transparent !important;
    border: none !important;
}

/* Rotating arrow icon */
.ac-arrow {
    width: 18px;
    height: 18px;
    position: relative;
    transform-origin: center center;
}

.ac-arrow svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* Selected aircraft */
.ac-marker.is-selected .ac-arrow {
    filter: drop-shadow(0 0 4px var(--accent));
}

/* Emergency aircraft pulse */
.ac-marker.is-emergency .ac-arrow {
    animation: pulse-emerg 1.1s ease-in-out infinite;
}

@keyframes pulse-emerg {
    0%, 100% { filter: drop-shadow(0 0 0 rgba(248, 81, 73, 0)); }
    50%      { filter: drop-shadow(0 0 6px rgba(248, 81, 73, 0.9)); }
}

/* Callsign label that appears next to marker */
.ac-label-text {
    background: rgba(14, 17, 22, 0.85);
    border: 1px solid var(--border-soft);
    color: var(--text);
    font-family: 'JetBrains Mono', 'SF Mono', Menlo, Consolas, monospace;
    font-size: 10px;
    font-weight: 600;
    padding: 1px 5px;
    border-radius: 2px;
    white-space: nowrap;
    pointer-events: none;
}

/* Trail polyline default */
.leaflet-overlay-pane svg path.trail {
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}
.leaflet-tile-pane {
    filter: grayscale(0.8) opacity(0.8) brightness(0.65);
}

/* Custom sleek tooltip on hover */
.leaflet-tooltip.ac-tooltip {
    background: rgba(14, 17, 22, 0.95);
    border: 1px solid var(--border-soft);
    color: var(--text);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    border-radius: 4px;
    padding: 8px 12px;
    pointer-events: none;
}
.leaflet-tooltip.ac-tooltip::before {
    display: none; /* Hide default leaflet tooltip triangle */
}