body {
    margin: 0;
    padding: 0;
    font-family: 'Open Sans', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

#map {
    height: 600px;
    width: 100%;
    border-radius: 8px;
}

.map-container {
    position: relative;
    margin: 20px 0;
}

.header {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    max-width: 250px;
    backdrop-filter: blur(10px);
}

.header h5 {
    font-family: 'Oswald', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 600;
    margin-bottom: 10px;
}

.controls {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
    max-width: 200px;
}

.controls h6 {
    font-family: 'Oswald', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 600;
    margin-bottom: 10px;
}

.legend {
    position: absolute;
    bottom: 20px;
    left: 10px;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
}

.legend-item {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}

.legend-color {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    margin-right: 10px;
    border: 2px solid #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.color-gradient {
    display: flex;
    align-items: center;
    margin: 10px 0;
}

.gradient-bar {
    width: 200px;
    height: 20px;
    background: linear-gradient(to right, #007bff, #ffc107, #be1e2d);
    border-radius: 10px;
    margin: 0 10px;
}

.loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2000;
    background: rgba(255, 255, 255, 0.95);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
    backdrop-filter: blur(10px);
}

.spinner-border {
    width: 3rem;
    height: 3rem;
}

.stats {
    background: #f8f9fa;
    padding: 10px;
    border-radius: 5px;
    margin-top: 10px;
}

.info-window {
    max-width: 300px;
    font-family: 'Open Sans', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.info-window h5 {
    margin-bottom: 10px;
    color: #2c3e50;
    font-size: 16px;
    font-family: 'Oswald', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 600;
}

.info-window p {
    margin: 5px 0;
    font-size: 14px;
}

.info-window .stats {
    background: #f8f9fa;
    padding: 10px;
    border-radius: 5px;
    margin-top: 10px;
}

/* Ensure info windows overlay header and controls */
.info-window {
    z-index: 3000 !important;
}

/* Mobile Responsive Styles */
@media (max-width: 767px) {
    .controls {
        display: none;
    }
    
    .header {
        max-width: 280px;
        padding: 12px;
    }
    
    .header h5 {
        font-size: 14px;
        margin-bottom: 8px;
    }
    
    .header p {
        font-size: 12px;
        margin-bottom: 8px;
    }
    
    .legend {
        max-width: 250px;
        padding: 12px;
    }
    
    .legend-item {
        font-size: 12px;
    }
    
    .gradient-bar {
        width: 150px;
        height: 16px;
    }
    
    .color-gradient {
        margin: 8px 0;
    }
    
    .color-gradient span {
        font-size: 11px;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    .header {
        max-width: 250px;
        padding: 10px;
    }
    
    .header h5 {
        font-size: 13px;
    }
    
    .header p {
        font-size: 11px;
    }
    
    .legend {
        max-width: 220px;
        padding: 10px;
    }
    
    .gradient-bar {
        width: 120px;
        height: 14px;
    }
} 