/* ====================================
   LEERFAHRTEN-VISUALIZER STYLES
   ==================================== */

/* Map Container Base */
.comparison-map-container {
    position: relative;
    width: 100%;
    height: 400px;
    border-radius: 0;
}

/* MapLibre GL Container */
#empty-run-map,
#shared-run-map {
    width: 100%;
    height: 100%;
}

/* Custom Marker Styles */
.map-marker {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    color: white;
    cursor: pointer;
    transition: transform 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.map-marker:hover {
    transform: scale(1.15);
}

/* Marker Types */
.marker-start {
    background: linear-gradient(135deg, #10B981, #059669);
}

.marker-stop {
    background: linear-gradient(135deg, #F59E0B, #D97706);
}

.marker-end {
    background: linear-gradient(135deg, #EF4444, #DC2626);
}

/* LKW Icon (animated) */
.truck-marker {
    width: 36px;
    height: 36px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4));
    transition: transform 0.3s ease;
}

.truck-marker.empty-run {
    filter: drop-shadow(0 2px 8px rgba(239, 68, 68, 0.6));
}

.truck-marker.shared-run {
    filter: drop-shadow(0 2px 8px rgba(16, 185, 129, 0.6));
}

/* Route Lines */
.maplibregl-popup {
    max-width: 200px;
}

.maplibregl-popup-content {
    border-radius: 8px;
    padding: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* Loading State */
.map-loading {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.9);
    z-index: 10;
}

.map-loading.hidden {
    display: none;
}

/* Mobile Anpassungen */
@media (max-width: 768px) {
    .comparison-map-container {
        height: 300px;
    }
    
    .map-marker {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
    
    .truck-marker {
        width: 30px;
        height: 30px;
    }
}
