 
/* Map Container */
.map-section {
    position: relative;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.map-container {
    width: 100%;
    height: 600px;
    border-radius: 12px;
}

/* Map Controls */
.map-controls {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 1000;
}

.map-control-btn {
    background: white;
    border: none;
    padding: 0.8rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    min-width: 120px;
}

.map-control-btn:hover {
    background: #f8f9fa;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

/* Custom Map Controls (Google Maps) */
.custom-map-control-button {
    background: white;
    border: none;
    padding: 0.8rem 1rem;
    margin: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.custom-map-control-button:hover {
    background: #f8f9fa;
    transform: translateY(-1px);
}

/* Vehicle Info Popup */
.vehicle-info-popup {
    max-width: 300px;
    padding: 1rem;
}

.vehicle-info-popup h3 {
    margin-bottom: 0.8rem;
    color: #333;
    font-size: 1.2rem;
}

.vehicle-info-popup p {
    margin-bottom: 0.5rem;
    color: #666;
}

.vehicle-info-popup .btn-compare,
.vehicle-info-popup .btn-reserve {
    display: inline-block;
    padding: 0.6rem 1rem;
    margin: 0.5rem 0.5rem 0 0;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.vehicle-info-popup .btn-compare {
    background: #2196F3;
    color: white;
}

.vehicle-info-popup .btn-compare:hover {
    background: #1976D2;
}

.vehicle-info-popup .btn-reserve {
    background: #4CAF50;
    color: white;
}

.vehicle-info-popup .btn-reserve:hover {
    background: #45a049;
}

/* Cluster Styles */
.cluster-marker {
    background: #667eea;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.cluster-marker.small {
    width: 30px;
    height: 30px;
}

.cluster-marker.medium {
    width: 40px;
    height: 40px;
    font-size: 14px;
}

.cluster-marker.large {
    width: 50px;
    height: 50px;
    font-size: 16px;
}

/* Heatmap Toggle */
.heatmap-active {
    background: #ff6b6b !important;
    color: white !important;
}

/* Vehicle Markers */
.vehicle-marker {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 12px;
    color: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.vehicle-marker:hover {
    transform: scale(1.2);
    z-index: 1000;
}

.vehicle-marker.tier {
    background: #00D4AA;
}

.vehicle-marker.bird {
    background: #000000;
}

.vehicle-marker.lime {
    background: #00FF00;
    color: black;
}

.vehicle-marker.voi {
    background: #E60012;
}

.vehicle-marker.ryde {
    background: #FF6B35;
}

/* Battery Indicator on Map */
.vehicle-marker::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background: #ddd;
    border-radius: 2px;
}

.vehicle-marker.high-battery::after {
    background: #4CAF50;
}

.vehicle-marker.medium-battery::after {
    background: #FF9800;
}

.vehicle-marker.low-battery::after {
    background: #f44336;
}

/* Map Loading State */
.map-loading {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.map-loading .spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Route Display */
.route-info {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: white;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    max-width: 300px;
    z-index: 1000;
}

.route-info h4 {
    margin-bottom: 0.5rem;
    color: #333;
}

.route-info p {
    margin-bottom: 0.3rem;
    color: #666;
    font-size: 0.9rem;
}

.route-info .route-stats {
    display: flex;
    justify-content: space-between;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid #eee;
}

.route-info .route-stat {
    text-align: center;
}

.route-info .route-stat-value {
    font-weight: bold;
    color: #2196F3;
}

.route-info .route-stat-label {
    font-size: 0.8rem;
    color: #666;
}

/* Responsive Map */
@media (max-width: 768px) {
    .map-container {
        height: 400px;
    }
    
    .map-controls {
        top: 5px;
        right: 5px;
    }
    
    .map-control-btn {
        padding: 0.6rem;
        min-width: 100px;
        font-size: 0.8rem;
    }
    
    .vehicle-info-popup {
        max-width: 250px;
        padding: 0.8rem;
    }
    
    .route-info {
        bottom: 5px;
        left: 5px;
        padding: 0.8rem;
        max-width: 250px;
    }
}

@media (max-width: 480px) {
    .map-container {
        height: 300px;
    }
    
    .map-controls {
        flex-direction: row;
        top: 5px;
        left: 5px;
        right: 5px;
    }
    
    .map-control-btn {
        flex: 1;
        min-width: auto;
        padding: 0.5rem;
        font-size: 0.7rem;
    }
    
    .vehicle-marker {
        width: 25px;
        height: 25px;
        font-size: 10px;
    }
}

/* Map Themes */
.map-container.dark-theme {
    filter: invert(90%) hue-rotate(180deg);
}

.map-container.satellite-theme {
    /* Satellite view styling if needed */
}

/* Traffic Layer */
.traffic-layer-active {
    /* Traffic layer indicator */
}

/* Transit Layer */
.transit-layer-active {
    /* Transit layer indicator */
}
