/* TrackMap custom styles */

html, body { height: 100%; margin: 0; }

#map { background: #1f2937; }

/* Sidebar */
.tm-sidebar {
    width: 18rem;
    background: #111827;
    border-right: 1px solid #1f2937;
    overflow-y: auto;
}

.tm-section {
    border-bottom: 1px solid #1f2937;
    padding: 0.75rem 1rem;
}

.tm-section h3 {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #9ca3af;
    margin-bottom: 0.5rem;
}

.tm-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    padding: 0.25rem 0;
}

.tm-swatch {
    display: inline-block;
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 2px;
    border: 1px solid rgba(255,255,255,0.15);
}

/* Flight plan waypoint marker */
.fp-waypoint-icon {
    color: #A78BFA;
    font-size: 12px;
    text-align: center;
    line-height: 12px;
    text-shadow: 0 0 2px rgba(0,0,0,0.8);
}

/* Legend control */
.leaflet-control.tm-legend {
    background: rgba(17, 24, 39, 0.92);
    color: #e5e7eb;
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    font-size: 0.75rem;
    line-height: 1.4;
    border: 1px solid #374151;
    min-width: 160px;
}

.leaflet-control.tm-legend h4 {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

/* Leaflet popups on dark theme */
.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
    background: #1f2937;
    color: #e5e7eb;
}
