* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html, body {
    height: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    color: #0f172a;
}

#header {
    background: linear-gradient(160deg, #0f172a 0%, #1e293b 100%);
    text-align: center;
    z-index: 1000;
}

#header h1 {
    font-size: 22px;
    font-weight: 700;
    color: #f1f5f9;
    letter-spacing: -0.3px;
    padding: 20px 24px 0;
    margin-bottom: 16px;
}

#quote-block {
    margin: 0 auto 0;
    max-width: 720px;
    padding: 0 20px;
}

#minister-photo {
    display: block;
    width: 100%;
    object-fit: cover;
    object-position: center center;
    border-radius: 16px 16px 0 0;
}

#minister-quote {
    font-family: Georgia, 'Times New Roman', serif;
    font-style: italic;
    font-size: 16px;
    color: #e2e8f0;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-left: 4px solid #06b6d4;
    border-radius: 0 0 16px 16px;
    padding: 18px 24px;
    text-align: left;
    line-height: 1.7;
}

#minister-quote cite {
    display: block;
    font-size: 13px;
    color: #94a3b8;
    margin-top: 10px;
    font-style: normal;
    font-weight: 600;
}

#quote-source {
    font-size: 12px;
    font-weight: 400;
    color: #64748b;
}

#call-to-action {
    font-size: 17px;
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 14px 24px;
    background: linear-gradient(90deg, #ef4444 0%, #dc2626 100%);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

#toolbar {
    background: #f8fafc;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 4px 12px rgba(0, 0, 0, 0.03);
    z-index: 1000;
    flex-wrap: wrap;
    border-bottom: none;
}

#filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 20px;
    border: 1.5px solid #e2e8f0;
    border-radius: 24px;
    background: #fff;
    cursor: pointer;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #475569;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.filter-btn:hover {
    border-color: #06b6d4;
    color: #0e7490;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.15);
}

.filter-btn.active {
    border-color: #0891b2;
    background: linear-gradient(135deg, #06b6d4, #0891b2);
    color: #fff;
    box-shadow: 0 2px 8px rgba(6, 182, 212, 0.35);
}

.filter-btn.green.active {
    border-color: #059669;
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.35);
}

.filter-btn.red.active {
    border-color: #e11d48;
    background: linear-gradient(135deg, #f43f5e, #e11d48);
    color: #fff;
    box-shadow: 0 2px 8px rgba(244, 63, 94, 0.35);
}

.filter-btn span {
    font-weight: 700;
}

#map {
    flex: 1;
    min-height: 400px;
}

@media (min-width: 769px) {
    #map {
        min-height: clamp(600px, 65vw, 1000px);
    }
}

.leaflet-popup-content-wrapper {
    border-radius: 16px !important;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 10px 25px -5px rgba(0,0,0,0.1) !important;
    padding: 4px !important;
    font-family: 'Inter', sans-serif !important;
}

.leaflet-popup-tip {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
}

.popup-content {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    line-height: 1.5;
}

.popup-content .hospital-name {
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 4px;
    color: #0f172a;
}

.popup-content .hospital-address {
    color: #64748b;
    margin-bottom: 8px;
}

.popup-content .births-count {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.popup-content .births-count.green {
    color: #059669;
}

.popup-content .births-count.red {
    color: #e11d48;
}

.popup-content .births-label {
    color: #94a3b8;
    font-size: 12px;
    font-weight: 500;
}

#footer {
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    padding: 14px 20px;
    font-size: 12px;
    color: #94a3b8;
    text-align: center;
    letter-spacing: 0.1px;
}

@media (max-width: 768px) {
    #header h1 {
        font-size: 17px;
        padding: 14px 16px 0;
        margin-bottom: 12px;
    }

    #quote-block {
        padding: 0 12px;
    }

    #minister-photo {
        height: 180px;
    }

    #minister-quote {
        font-size: 14px;
        padding: 14px 16px;
    }

    #call-to-action {
        font-size: 14px;
        padding: 12px 16px;
        letter-spacing: 1px;
    }

    #toolbar {
        padding: 10px 12px;
        gap: 12px;
    }

    .filter-btn {
        padding: 8px 14px;
        font-size: 12px;
    }
}
