.impact-map-section {
    position: relative;
    padding: var(--space-xl) 0;
    padding-top: calc(var(--space-xl) + 50px);
    background: #006D5B;
    color: #ffffff;
}

.impact-map-section .section-header h2,
.impact-map-section .section-header .font-heading {
    color: #ffffff !important;
}

.impact-map-section .text-muted,
.impact-map-section p {
    color: rgba(255, 255, 255, 0.8) !important;
}

.map-container {
    position: relative;
    /* Flex defined in HTML classes */
    min-height: 500px;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
}

.hyderabad-map-svg {
    width: 100%;
    /* Removed max-width constraint or increased it */
    max-width: 1200px;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.08));
}

@media (max-width: 992px) {
    .map-container {
        flex-direction: column !important;
        justify-content: center !important;
        gap: 2rem;
    }
    
    .map-wrapper,
    .map-info-wrapper {
        flex: 0 0 100% !important;
        width: 100% !important;
        justify-content: center !important;
    }
    
    .webgraph-display {
        display: none !important;
    }
    
    .map-info-box {
        max-width: 100% !important;
    }
}

.map-zone {
    cursor: pointer;
    transition: var(--transit-fast);
    stroke: #fff;
    stroke-width: 1.5;
}

.map-zone:hover {
    opacity: 0.9;
    stroke: var(--clr-accent);
    stroke-width: 2;
    filter: brightness(1.05);
}

/* Map Popup Card (Replaces large info box) */
.map-popup-card {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* Default centered, JS can move it */
    width: 280px;
    background: rgba(255, 255, 255, 0.95); /* Semi-transparent white */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    padding: 1.5rem;
    color: #1a1a1a;
    opacity: 0;
    pointer-events: none; /* Let clicks pass through if covering */
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 20;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}

.map-popup-card.active {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    padding-bottom: 0.8rem;
    margin-bottom: 0.8rem;
}

.popup-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #006D5B !important; /* Force accent green for the title */
}

/* Ensure text inside the white card doesn't inherit the section's white text color */
.map-popup-card .text-muted {
    color: #64748b !important;
}

.map-popup-card .text-dark,
.map-popup-card span:not(.text-muted):not(.badge) {
    color: #1a1a1a !important;
}

/* Graph Labels */
.graph-label {
    font-family: var(--font-body);
    font-weight: 500;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    letter-spacing: 0.5px;
}

.info-header {
    margin-bottom: var(--space-sm);
    padding-bottom: var(--space-sm);
    border-bottom: 1px solid #f5f5f5;
}

.info-title {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
    color: var(--clr-text-main);
}

.info-status {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--clr-accent);
}

.info-stats-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 1rem;
}

.info-stat {
    background: #f8fafb;
    padding: 1rem;
    border-radius: 12px;
}

.info-stat-label {
    font-size: 0.7rem;
    color: var(--clr-text-muted);
    text-transform: uppercase;
    margin-bottom: 0.25rem;
    letter-spacing: 0.05em;
}

.info-stat-value {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--clr-text-main);
    font-weight: 600;
}

@media (max-width: 991px) {
    .map-info-box {
        position: static;
        width: 100%;
        margin-top: var(--space-lg);
        transform: none;
        box-shadow: none;
        border: 1px solid #f0f0f0;
        opacity: 1;
        visibility: visible;
    }
}
