/* ==========================================================================
   GuruGhar Estate - Premium Interactive GSAP Projects Map Styling
   ========================================================================== */

:root {
    --map-bg-slate: #403f46;          /* The core background slate */
    --map-bg-deep: #2a292e;           /* Deep dark background shade for layout contrast */
    --map-bg-card: rgba(64, 63, 70, 0.45); /* Glassmorphic card fill */
    --map-bg-card-active: rgba(82, 81, 89, 0.65);
    
    --map-gold: #d4af37;              /* Luxury brand accent gold */
    --map-gold-hover: #bda031;        /* Muted focus gold */
    --map-gold-glow: rgba(212, 175, 55, 0.35);
    
    --text-white: #ffffff;
    --text-silver: #d1d1d6;           /* Premium muted silver text */
    --text-muted: #8e8e93;
    
    --map-transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    --map-shadow-gold: 0 0 20px rgba(212, 175, 55, 0.3);
    --map-border-glass: rgba(255, 255, 255, 0.08);
}

/* Base resets & Section wrapper */
.projects-map-section {
    padding: 90px 40px;
    background: linear-gradient(135deg, var(--map-bg-slate) 0%, var(--map-bg-deep) 100%);
    font-family: 'Outfit', 'Poppins', sans-serif;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

/* Ambient Radial Background Glow overlays for premium depth */
.map-bg-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.07) 0%, rgba(212, 175, 55, 0) 70%);
    filter: blur(100px);
    pointer-events: none;
    z-index: -1;
}
.glow-1 {
    top: -15%;
    left: -10%;
}
.glow-2 {
    bottom: -15%;
    right: -10%;
}

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

/* ==========================================================================
   LEFT COLUMN - INTERACTIVE SELECTOR & TEXT CONTENT
   ========================================================================== */
.p-map-content {
    flex: 1.1;
    max-width: 580px;
    position: relative;
    z-index: 2;
}

.p-map-badge {
    display: inline-block;
    background: rgba(212, 175, 55, 0.12);
    color: var(--map-gold);
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 14px;
    border: 1px solid rgba(212, 175, 55, 0.25);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

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

.p-map-title-underline {
    width: 60px;
    height: 3px;
    background-color: var(--map-gold);
    margin-bottom: 18px;
    border-radius: 2px;
    box-shadow: var(--map-shadow-gold);
}

.p-map-description {
    color: var(--text-silver);
    font-size: 14.5px;
    line-height: 1.7;
    margin-bottom: 22px;
}

/* Location Selector Grid Layout styling */
/* Location Selector Grid Layout styling */
.map-location-selector {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 25px;
}

.loc-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--map-bg-card);
    border: 1px solid var(--map-border-glass);
    border-radius: 8px;
    padding: 12px 16px;
    cursor: pointer;
    transition: var(--map-transition);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.loc-card:hover {
    background: var(--map-bg-card-active);
    border-color: rgba(212, 175, 55, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.loc-card.active {
    background: rgba(82, 81, 89, 0.85);
    border-color: var(--map-gold);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25), 0 0 15px rgba(212, 175, 55, 0.15);
}

.loc-dot {
    width: 8px;
    height: 8px;
    background: var(--text-silver);
    border-radius: 50%;
    flex-shrink: 0;
    transition: var(--map-transition);
}

.loc-card:hover .loc-dot {
    background: var(--map-gold);
    box-shadow: var(--map-shadow-gold);
}

.loc-card.active .loc-dot {
    background: var(--map-gold);
    box-shadow: var(--map-shadow-gold);
    transform: scale(1.3);
}

.loc-card-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex-grow: 1;
}

.loc-card-info h4 {
    font-size: 14.5px;
    font-weight: 600;
    color: var(--text-white);
    margin: 0;
    line-height: 1.2;
}

.loc-count {
    font-size: 10px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-silver);
    padding: 2px 8px;
    border-radius: 30px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--map-transition);
    align-self: flex-start;
}

.loc-card.active .loc-count {
    background: rgba(212, 175, 55, 0.18);
    color: var(--map-gold);
    border-color: rgba(212, 175, 55, 0.3);
}

/* Premium Stats Columns styling */
.p-map-stats {
    display: flex;
    gap: 30px;
    margin-bottom: 25px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.stat-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    font-weight: 700;
    color: var(--map-gold);
    margin: 0 0 4px 0;
    text-shadow: var(--map-shadow-gold);
}

.stat-card p {
    font-size: 11px;
    color: var(--text-silver);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

.map-cta-btn {
    padding: 10px 24px;
    font-size: 13px;
    letter-spacing: 0.8px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--map-transition);
}

/* ==========================================================================
   RIGHT COLUMN - DYNAMIC MAP CANVAS & PIN HOTSPOTS
   ========================================================================== */
.p-map-visual {
    flex: 1.2;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    z-index: 2;
}

.map-wrapper {
    position: relative;
    width: 100%;
    max-width: 300px;                 /* Sized perfectly to match the exact vertical height of the About image (460px total with tooltip) */
    border-radius: 16px;
    border: 2px solid rgba(255, 255, 255, 0.25);
    background: #ffffff;              /* Clean white background to blend perfectly with JPG */
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    aspect-ratio: 1 / 1;              /* Perfect square constraints matching new image bounds */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: var(--map-transition);
}

.map-wrapper:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
    border-color: rgba(212, 175, 55, 0.4);
}

/* High-performance Map visual render */
.main-map-img {
    width: 100%;
    height: 100%;
    object-fit: cover;               /* Crop perfectly into square bounds */
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.15)) contrast(1.02);
    opacity: 0.95;
    transition: var(--map-transition);
    transform: none;
}

/* ==========================================================================
   GLASSMORPHIC TOOLTIP DETAILS BOX OVERLAY
   ========================================================================== */
.map-tooltip-box {
    position: relative;
    width: 100%;
    max-width: 300px;
    background: rgba(30, 29, 34, 0.82);
    border: 1.5px solid rgba(212, 175, 55, 0.25);
    border-radius: 12px;
    padding: 16px 20px;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), 0 0 20px rgba(212, 175, 55, 0.08);
    z-index: 12;
    transition: var(--map-transition);
}

.tooltip-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding-bottom: 8px;
}

.tooltip-header h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-white);
    margin: 0;
    letter-spacing: 0.5px;
}

.tooltip-badge {
    font-size: 9px;
    font-weight: 700;
    background: rgba(212, 175, 55, 0.15);
    color: var(--map-gold);
    padding: 3px 8px;
    border-radius: 30px;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.map-tooltip-box p {
    font-size: 12.5px;
    color: var(--text-silver);
    line-height: 1.5;
    margin: 0 0 12px 0;
    opacity: 0.9;
}

.tooltip-footer {
    display: flex;
    justify-content: space-between;
    gap: 15px;
}

.tooltip-stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.t-label {
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.t-val {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-white);
}

.text-green {
    color: #2ecc71 !important;
}

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

/* ==========================================================================
   RESPONSIVE DESIGN BREAKPOINTS
   ========================================================================== */
@media screen and (max-width: 1280px) {
    .projects-map-container {
        gap: 40px;
    }
    .p-map-content h2 {
        font-size: 32px;
    }
}

@media screen and (max-width: 1024px) {
    .projects-map-section {
        padding: 90px 30px;
    }
    
    .projects-map-container {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }
    
    .p-map-content {
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .p-map-title-underline {
        margin: 0 auto 18px auto;
    }
    
    .map-location-selector {
        width: 100%;
        max-width: 600px;
    }
    
    .p-map-stats {
        justify-content: center;
        width: 100%;
        max-width: 600px;
    }
    
    .p-map-visual {
        width: 100%;
        margin-top: 20px;
        padding-bottom: 0;
    }
    
    .map-tooltip-box {
        width: 100%;
        max-width: 300px;
    }
}

@media screen and (max-width: 768px) {
    .projects-map-section {
        padding: 70px 20px;
    }
    
    .p-map-content h2 {
        font-size: 30px;
    }
    
    .p-map-description {
        font-size: 14px;
        text-align: justify;
    }
    
    .map-location-selector {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .loc-card-info h4 {
        font-size: 13.5px;
    }
    
    .p-map-stats {
        gap: 25px;
    }
    
    .stat-card h3 {
        font-size: 28px;
    }
    
    .map-tooltip-box {
        padding: 14px 18px;
    }
    
    .map-tooltip-box p {
        font-size: 12px;
    }
    
    .t-val {
        font-size: 11px;
    }
}
