/* --- National Presence Map Section --- */
.map-section {
    background: #0a0a0a;
    padding: 0;
    overflow: hidden;
    position: relative;
    width: 100%;
}

.map-container {
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    column-gap: 30px; /* Reduced gap */
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 100px 60px;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

/* Map Visual */
.map-visual {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: flex-end; /* Align image to the right, closer to text */
    padding-right: 20px; /* Small buffer if needed, otherwise 0 */
}

.map-info {
    width: 100%;
    color: #fff;
    padding-left: 20px; /* Separation from map */
}

.map-image-container {
    position: relative;
    width: 100%;
}

.brazil-map-img {
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 10px 40px rgba(0, 0, 0, 0.5)) grayscale(100%) brightness(0.7) contrast(1.2);
    opacity: 0.9;
    transition: all 0.3s;
}

/* Location Pins Overlay */
.location-pins-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10; /* Higher z-index */
    pointer-events: none;
}

.pin-point {
    position: absolute;
    width: 12px; /* Slightly larger */
    height: 12px;
    background-color: var(--primary-color);
    border-radius: 50%;
    transform: translate(-50%, -50%); 
    opacity: 1; 
    z-index: 20; /* Ensure on top */
    transition: transform 0.3s, background-color 0.3s;
}

/* Initial state before drop (added by JS) */
.pin-point.waiting-to-drop {
    transform: translateY(-600px);
    opacity: 0;
}

/* Drop animation */
.pin-point.dropped {
    animation: pin-drop 1s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

/* Class added by JS to trigger drop */
.pin-point.dropped {
    animation: pin-drop 1s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

/* Continuous pulse animation after dropping */
.pin-point.active-pulse {
    animation: pin-float 3s infinite ease-in-out;
}

/* Staggered Animation Delays */
/* Staggered delays are now handled in JS */

@keyframes pin-drop {
    0% { transform: translate(-50%, -600px); opacity: 0; }
    60% { transform: translate(-50%, 0); opacity: 1; }
    80% { transform: translate(-50%, -10px); }
    100% { transform: translate(-50%, 0); opacity: 0.8; }
}

@keyframes pin-float {
    0%, 100% { transform: translate(-50%, 0); }
    50% { transform: translate(-50%, -5px); }
}

.pin-point:hover {
    transform: translate(-50%, -10px) scale(1.5);
    background-color: #fff;
    box-shadow: 0 0 15px var(--primary-color);
    z-index: 10;
    opacity: 1 !important;
}

.pin-main {
    width: 14px;
    height: 14px;
    animation: pin-pulse 2s infinite !important;
}

@keyframes pin-pulse {
    0% { box-shadow: 0 0 0 0 rgba(247, 176, 2, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(247, 176, 2, 0); }
    100% { box-shadow: 0 0 0 0 rgba(247, 176, 2, 0); }
}

/* Map Info */
.map-info {
    color: #fff;
}

.map-label {
    display: inline-block;
    font-size: 1rem;
    letter-spacing: 3px;
    color: var(--primary-color);
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 20px;
    line-height: 1.4;
}

.map-title {
    font-size: 2.8rem;
    line-height: 1.2;
    margin-bottom: 30px;
    color: #fff;
    font-weight: 700;
}

.map-description {
    font-size: 1.15rem;
    line-height: 1.7;
    color: #ccc;
    margin-bottom: 50px;
    max-width: 500px;
}

/* Map Stats */
.map-stats {
    display: flex;
    gap: 60px;
}

.stat-item-map {
    display: flex;
    align-items: baseline;
    gap: 15px;
}

.stat-number-map {
    font-size: 5rem;
    font-weight: 900;
    color: var(--primary-color);
    line-height: 1;
    font-family: var(--font-heading);
}

.stat-label-map {
    font-size: 1.1rem;
    color: #fff;
    line-height: 1.3;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 1200px) {
    .map-content {
        gap: 60px;
        padding: 80px 40px;
    }
    
    .map-title {
        font-size: 2.3rem;
    }
    
    .stat-number-map {
        font-size: 4rem;
    }
}

@media (max-width: 1024px) {
    .map-content {
        grid-template-columns: 1fr; /* Stack on smaller screens */
        gap: 60px;
        padding: 80px 40px;
        text-align: center;
    }
    
    .map-info {
        padding-left: 0;
        max-width: 600px;
        margin: 0 auto;
    }

    .brazil-map-img {
        max-width: 500px;
        margin: 0 auto;
    }
    
    .map-title {
        font-size: 2.2rem;
    }
    
    .map-stats {
        flex-direction: row;
        justify-content: center;
        gap: 40px;
    }
}

@media (max-width: 600px) {
    .map-stats {
        flex-direction: column;
        gap: 30px;
    }
    
    .stat-number-map {
        font-size: 3.5rem;
    }
}
