* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #d8dbd5;
    color: #212121;
    line-height: 1.6;
    min-height: 100vh;
    padding-top: 80px;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: white;
    border-bottom: 1px solid #81C784;
    padding: 0 20px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(46, 125, 50, 0.1);
}

.logo {
    height: 60px;
    width: auto;
}

.nav {
    display: flex;
    gap: 32px;
}

.nav a {
    text-decoration: none;
    color: #757575;
    font-weight: 500;
    font-size: 20px;
    transition: color 0.2s ease;
	margin-right: 20px;
}

.nav a:hover {
    color: #2E7D32;
}

.nav a.active {
    color: #2E7D32;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(46, 125, 50, 0.08);
    margin: 20px auto;
    border: 1px solid rgba(129, 199, 132, 0.2);
}

h1 {
    text-align: center;
    color: #2E7D32;
    margin-bottom: 8px;
    font-size: 2.4em;
    font-weight: 700;
}

.tagline {
    text-align: center;
    font-size: 1.2em;
    margin-bottom: 32px;
    color: #757575;
    font-weight: 400;
}

.controls {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.btn {
    padding: 10px 20px;
    border: 1px solid #81C784;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
    background: white;
    color: #2E7D32;
    font-size: 14px;
}

.btn:hover {
    background: #81C784;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(46, 125, 50, 0.2);
}

.btn-primary {
    background: #2E7D32;
    color: white;
    border-color: #2E7D32;
}

.btn-primary:hover {
    background: #1B5E20;
    border-color: #1B5E20;
    color: white;
}

#map {
    height: 600px;
    width: 100%;
    border-radius: 6px;
    border: 2px solid #81C784;
    overflow: hidden;
}

.legend {
    margin-top: 32px;
    padding: 24px;
    background: rgba(129, 199, 132, 0.08);
    border-radius: 6px;
    border: 1px solid rgba(129, 199, 132, 0.3);
}

.legend h3 {
    margin-bottom: 20px;
    color: #2E7D32;
    font-size: 1.3em;
    font-weight: 600;
    text-align: center;
}

.legend-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 12px;
}

.legend-item {
    padding: 12px 16px;
    border-radius: 4px;
    background: white;
    border: 1px solid #e9ecef;
    display: flex;
    align-items: center;
    transition: border-color 0.2s ease;
}

.legend-item:hover {
    border-color: #d1d5db;
}

.color-swatch {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    margin-right: 12px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.advice-panel {
    margin-top: 24px;
    padding: 20px;
    background: #fef3c7;
    border-radius: 6px;
    border: 1px solid #fcd34d;
    text-align: center;
}

.advice-title {
    font-weight: 600;
    color: #92400e;
    margin-bottom: 8px;
    font-size: 1.1em;
}

.location-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 12px;
    margin-top: 24px;
}

.location-card {
    background: white;
    padding: 16px;
    border-radius: 4px;
    border: 1px solid #e9ecef;
    cursor: pointer;
    transition: all 0.2s ease;
}

.location-card:hover {
    border-color: #2563eb;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.1);
}

.location-name {
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 4px;
}

.location-aqi {
    font-size: 1.3em;
    font-weight: 700;
    margin: 6px 0;
}

.location-description {
    font-size: 0.9em;
    color: #666;
    font-style: italic;
}

.disclaimer {
    text-align: center;
    margin-top: 32px;
    color: #666;
    font-style: italic;
    font-size: 0.9em;
    border-top: 1px solid #e9ecef;
    padding-top: 20px;
}

/* Leaflet Popup Styling */
.leaflet-popup-content-wrapper {
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(46, 125, 50, 0.15);
    border: 1px solid rgba(129, 199, 132, 0.2);
}

.leaflet-popup-content {
    font-family: inherit;
    line-height: 1.5;
    color: #212121;
}

.popup-title {
    font-size: 1.2em;
    font-weight: 600;
    color: #2E7D32;
    margin-bottom: 6px;
}

.popup-aqi {
    font-size: 1.4em;
    font-weight: 700;
    margin: 6px 0;
}

.popup-advice {
    background: rgba(3, 169, 244, 0.08);
    padding: 8px 12px;
    border-radius: 4px;
    margin-top: 8px;
    font-style: italic;
    font-size: 0.9em;
    border: 1px solid rgba(3, 169, 244, 0.2);
}

/* Responsive Design */
@media (max-width: 768px) {
    .header {
        padding: 0 16px;
        height: 70px;
    }

    .logo {
        height: 50px;
    }

    .nav {
        gap: 20px;
    }

    .nav a {
        font-size: 14px;
    }

    .container {
        padding: 24px 20px;
        margin: 16px;
        border-radius: 6px;
    }

    h1 {
        font-size: 2em;
    }

    .tagline {
        font-size: 1.1em;
    }

    #map {
        height: 400px;
    }

    .legend-grid {
        grid-template-columns: 1fr;
    }

    body {
        padding-top: 70px;
    }
}

@media (max-width: 480px) {
    .nav {
        gap: 16px;
    }

    .nav a {
        font-size: 13px;
    }

    .controls {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 200px;
        text-align: center;
    }
}