/* ==========================================================================
   RR Homes - Projects Map Component
   ========================================================================== */

:root {
    --map-dark: #1E1A22;
    --map-gold: #C8A96A;
    --map-light-gold: rgba(200, 169, 106, 0.15);
    --map-text-grey: #666666;
}

.projects-map-section {
    padding: 100px 40px;
    background: #ffffff; /* Clean white alternate background */
    font-family: 'Poppins', sans-serif;
    overflow: hidden;
}

.projects-map-container {
    max-width: 1350px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 80px;
}

/* ==========================================================================
   LEFT CONTENT & STATS
   ========================================================================== */
.p-map-content {
    flex: 1;
    max-width: 550px;
}

.p-map-badge {
    display: inline-block;
    background: var(--map-light-gold);
    color: var(--map-gold);
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 25px;
    border: 1px solid rgba(200, 169, 106, 0.3);
}

.p-map-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 48px;
    font-weight: 700;
    color: var(--map-dark);
    line-height: 1.2;
    margin-bottom: 25px;
}

.gold-text {
    color: var(--map-gold);
}

.p-map-content p {
    color: var(--map-text-grey);
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 40px;
}

/* Professional Real Estate Stats */
.p-map-stats {
    display: flex;
    gap: 40px;
    margin-bottom: 45px;
    padding-bottom: 30px;
    border-bottom: 1px solid #eaeaea;
}

.stat-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 38px;
    color: var(--map-dark);
    margin: 0 0 5px 0;
}

.stat-card p {
    font-size: 14px;
    color: #888;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.map-cta-btn {
    padding: 14px 32px;
    font-size: 14px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-weight: 500;
}


/* ==========================================================================
   RIGHT MAP & ANIMATIONS
   ========================================================================== */
.p-map-visual {
    flex: 1.2;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.main-map-img {
    width: 100%;
    max-width: 650px;
    height: auto;
    filter: drop-shadow(0 20px 30px rgba(0,0,0,0.05)); /* Soft shadow on the SVG map */
}

/* Pulse Ping Animations */
.map-pin {
    position: absolute;
    width: 14px;
    height: 14px;
    background: var(--map-gold);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 10px var(--map-gold);
    z-index: 10;
}

.map-pin::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--map-gold);
    opacity: 0.8;
    animation: pingPulse 2s infinite cubic-bezier(0.215, 0.61, 0.355, 1);
}

@keyframes pingPulse {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 0.8; }
    100% { transform: translate(-50%, -50%) scale(4); opacity: 0; }
}

.pin-label {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--map-dark);
    color: #fff;
    font-size: 11px;
    padding: 5px 12px;
    border-radius: 4px;
    font-weight: 500;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    white-space: nowrap;
    z-index: 11;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.pin-label::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 4px 4px 0;
    border-style: solid;
    border-color: var(--map-dark) transparent transparent transparent;
}

.map-pin:hover .pin-label {
    opacity: 1;
    visibility: visible;
    top: -38px;
}

/* Approximate absolute positions (Will depend heavily on actual SVG dimensions) */
/* The user can easily adjust these top/left percentages if the dots mismatch the visual map boundaries! */
.pin-delhi { top: 25%; left: 38%; }
.pin-mumbai { top: 60%; left: 24%; }
.pin-bangalore { top: 78%; left: 40%; }


/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media screen and (max-width: 1024px) {
    .projects-map-container {
        flex-direction: column;
        text-align: center;
        gap: 60px;
    }
    .p-map-content {
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .p-map-stats {
        justify-content: center;
    }
    .p-map-visual {
        width: 100%;
        margin-top: 20px;
    }
    .main-map-img {
        max-width: 90%;
    }
}

@media screen and (max-width: 768px) {
    .projects-map-section {
        padding: 70px 20px;
    }
    .p-map-content h2 {
        font-size: 34px;
    }
    .p-map-content p {
        font-size: 15px;
        text-align: justify;
    }
    .p-map-stats {
        gap: 30px;
    }
    .stat-card h3 {
        font-size: 32px;
    }
}
