/* Map-specific styles */
.map-container {
    height: 600px;
    width: 100%;
    border: 1px solid #e5e7eb;
    position: relative;
    background: #f8fafc;
    overflow: hidden;
}

.vehicle-popup {
    background: white;
    border: 2px solid #000000;
    border-radius: 0;
    padding: 1rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    min-width: 250px;
    font-size: 0.875rem;
    position: absolute;
    z-index: 1000;
}

.vehicle-popup h3 {
    margin: 0 0 0.75rem 0;
    color: #1f2937;
    font-size: 1rem;
    font-weight: 700;
}

.vehicle-popup .detail-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    padding: 0.25rem 0;
    border-bottom: 1px solid #f3f4f6;
}

.vehicle-popup .detail-row:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.vehicle-popup .label {
    font-weight: 600;
    color: #6b7280;
}

.vehicle-popup .value {
    color: #1f2937;
    font-weight: 500;
}

.status-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 0.5rem;
}

.status-online {
    background: #10b981;
}

.status-offline {
    background: #ef4444;
}

.status-moving {
    background: #f59e0b;
}

.vehicle-marker {
    width: 32px;
    height: 32px;
    background: #000000;
    border: 3px solid white;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease;
    position: absolute;
}

.vehicle-marker:hover {
    transform: scale(1.1);
}

.vehicle-marker.moving {
    background: #f59e0b;
}

.vehicle-marker.offline {
    background: #6b7280;
}

.vehicle-marker svg {
    width: 16px;
    height: 16px;
    fill: white;
}

.map-controls {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.map-control-btn {
    background: white;
    border: 1px solid #e5e7eb;
    padding: 0.5rem;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.map-control-btn:hover {
    background: #f8fafc;
    transform: translateY(-1px);
}

.map-legend {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    background: white;
    border: 1px solid #e5e7eb;
    padding: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    font-size: 0.75rem;
}

.legend-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.legend-item:last-child {
    margin-bottom: 0;
}

.legend-marker {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 0.5rem;
    border: 1px solid white;
}

.auth-required {
    text-align: center;
    padding: 3rem;
    color: #6b7280;
}

/* Mobile-specific map styles */
@media (max-width: 768px) {
    .vehicle-popup {
        min-width: 200px;
        font-size: 0.8rem;
    }

    .map-controls {
        top: 0.5rem;
        right: 0.5rem;
    }

    .map-legend {
        bottom: 0.5rem;
        left: 0.5rem;
        font-size: 0.7rem;
    }

    .map-container {
        height: 400px;
    }
}