/* ==========================================================================
   Indokona Academy - Live India Branch & Campus Map Section
   ========================================================================== */

.academy-map-section {
    padding: 85px 20px 80px;
    background: radial-gradient(circle at 50% 20%, #290505 0%, #150202 60%, #0d0101 100%);
    color: #ffffff;
    position: relative;
    overflow: hidden;
    border-top: 2px solid rgba(212, 175, 55, 0.35);
}

.academy-map-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(212, 175, 55, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(212, 175, 55, 0.04) 1px, transparent 1px);
    background-size: 36px 36px;
    pointer-events: none;
}

.map-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* Section Header */
.map-header {
    text-align: center;
    max-width: 820px;
    margin: 0 auto 38px;
}

.map-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(212, 175, 55, 0.12);
    border: 1px solid rgba(212, 175, 55, 0.4);
    color: #ffd86b;
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.map-live-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #00ff88;
    box-shadow: 0 0 10px #00ff88;
    animation: livePulse 1.8s infinite;
}

@keyframes livePulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.4); opacity: 0.6; }
}

.map-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 12px;
    line-height: 1.2;
}

.map-header h2 span {
    background: linear-gradient(90deg, #ffd86b, #d4af37, #ffffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.map-header p {
    color: #d1c5b8;
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
}

/* City Filter Switcher */
.map-city-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 35px;
}

.map-city-pill {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(212, 175, 55, 0.25);
    color: #f0e6d6;
    padding: 7px 16px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.map-city-pill:hover {
    background: rgba(212, 175, 55, 0.2);
    border-color: #d4af37;
    color: #ffffff;
    transform: translateY(-2px);
}

.map-city-pill.active {
    background: linear-gradient(135deg, #d4af37, #996515);
    border-color: #ffd86b;
    color: #240a0a;
    box-shadow: 0 4px 16px rgba(212, 175, 55, 0.35);
}

.map-city-pill .pill-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #00ff88;
}

.map-city-pill.active .pill-dot {
    background: #240a0a;
}

/* Two-Column Grid: Map on Left, Branch Spotlight on Right */
.map-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 30px;
    align-items: start;
}

/* Map Canvas Card */
.map-canvas-card {
    background: rgba(20, 3, 3, 0.75);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 24px;
    padding: 24px;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.map-canvas-card::after {
    content: "";
    position: absolute;
    top: -50px;
    right: -50px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.12), transparent 70%);
    pointer-events: none;
}

.map-canvas-wrap {
    width: 100%;
    position: relative;
    display: flex;
    justify-content: center;
}

.map-canvas-wrap svg {
    width: 100%;
    max-width: 520px;
    height: auto;
    display: block;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.6));
}

/* SVG Map State Paths */
.map-canvas-wrap svg path {
    fill: #240808;
    stroke: rgba(212, 175, 55, 0.4);
    stroke-width: 0.75;
    transition: all 0.25s ease;
    cursor: pointer;
}

.map-canvas-wrap svg path:hover {
    fill: #471111;
    stroke: #ffd86b;
    stroke-width: 1.2;
}

/* Pulsating Branch Pins */
.map-pin-group {
    cursor: pointer;
    transition: transform 0.2s ease;
}

.map-pin-group:hover,
.map-pin-group.active {
    transform: scale(1.15);
}

.pin-beacon {
    fill: none;
    stroke: #00ff88;
    stroke-width: 1.5;
    opacity: 0.8;
    animation: beaconExpand 2.2s cubic-bezier(0.2, 0.8, 0.4, 1) infinite;
    transform-origin: center;
}

.pin-beacon.hq {
    stroke: #ffd700;
}

@keyframes beaconExpand {
    0% { r: 5; opacity: 0.9; }
    100% { r: 24; opacity: 0; }
}

.pin-core {
    fill: #00ff88;
    stroke: #ffffff;
    stroke-width: 2;
    filter: drop-shadow(0 0 8px #00ff88);
}

.pin-core.hq {
    fill: #ffd700;
    stroke: #ffffff;
    filter: drop-shadow(0 0 10px #ffd700);
}

.pin-label-svg {
    fill: #ffffff;
    font-size: 8.5px;
    font-weight: 800;
    font-family: 'DM Sans', sans-serif;
    text-shadow: 0 1px 4px #000, 0 0 6px #000;
    pointer-events: none;
}

/* Map Controls Overlay */
.map-overlay-badge {
    position: absolute;
    bottom: 18px;
    left: 18px;
    background: rgba(10, 2, 2, 0.85);
    border: 1px solid rgba(212, 175, 55, 0.35);
    padding: 7px 14px;
    border-radius: 12px;
    font-size: 11px;
    color: #e5dac6;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.map-overlay-badge strong {
    color: #00ff88;
}

/* Right Column: Branch Spotlight Card */
.map-spotlight-card {
    background: rgba(25, 4, 4, 0.85);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(212, 175, 55, 0.35);
    border-radius: 24px;
    padding: 28px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
    position: relative;
    overflow: hidden;
}

.map-spotlight-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #d4af37, #650000, #d4af37);
}

.spotlight-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 255, 136, 0.12);
    border: 1px solid rgba(0, 255, 136, 0.4);
    color: #00ff88;
    padding: 5px 14px;
    border-radius: 30px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.spotlight-title {
    font-size: 22px;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 10px;
    line-height: 1.3;
}

.spotlight-city-state {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #ffd86b;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 16px;
}

.spotlight-city-state i {
    color: #d4af37;
}

.spotlight-details-list {
    margin: 0 0 24px;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 12px;
}

.spotlight-details-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: rgba(255, 255, 255, 0.04);
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.spotlight-item-icon {
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    border-radius: 8px;
    background: rgba(212, 175, 55, 0.15);
    border: 1px solid rgba(212, 175, 55, 0.3);
    color: #ffd86b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.spotlight-item-text {
    flex: 1;
}

.spotlight-item-text small {
    display: block;
    color: #a39b90;
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
}

.spotlight-item-text strong {
    display: block;
    color: #ffffff;
    font-size: 13px;
    margin-top: 2px;
}

/* CTA Action Buttons */
.spotlight-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 22px;
}

.spotlight-btn-wa {
    background: #25D366;
    color: #ffffff;
    padding: 12px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 800;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.spotlight-btn-wa:hover {
    background: #1eb956;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(37, 211, 102, 0.35);
}

.spotlight-btn-call {
    background: linear-gradient(135deg, #d4af37, #996515);
    color: #240a0a;
    padding: 12px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 800;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.spotlight-btn-call:hover {
    background: linear-gradient(135deg, #ffd86b, #d4af37);
    color: #150202;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(212, 175, 55, 0.35);
}

/* Quick List of all centers */
.spotlight-quick-list {
    border-top: 1px dashed rgba(212, 175, 55, 0.25);
    padding-top: 16px;
}

.spotlight-quick-list h4 {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #ffd86b;
    margin: 0 0 10px;
    font-weight: 800;
}

.spotlight-quick-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.spotlight-quick-tag {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #d1c8be;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.spotlight-quick-tag:hover {
    background: rgba(212, 175, 55, 0.2);
    color: #ffd86b;
    border-color: #d4af37;
}

/* Network Bottom Stats Bar */
.map-stats-bar {
    margin-top: 45px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    background: rgba(20, 3, 3, 0.7);
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: 18px;
    padding: 22px 18px;
    text-align: center;
    backdrop-filter: blur(8px);
}

.map-stat-col strong {
    display: block;
    font-size: 28px;
    font-weight: 900;
    font-family: 'Playfair Display', serif;
    color: #ffd86b;
}

.map-stat-col span {
    font-size: 12px;
    color: #d6ccbe;
    margin-top: 4px;
    display: block;
}

@media (max-width: 991px) {
    .map-grid {
        grid-template-columns: 1fr;
    }
    .map-canvas-card {
        padding: 16px;
    }
    .map-stats-bar {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }
}

@media (max-width: 576px) {
    .academy-map-section {
        padding: 55px 15px 50px;
    }
    .map-header h2 {
        font-size: 26px;
    }
    .spotlight-actions {
        grid-template-columns: 1fr;
    }
    .map-stats-bar {
        grid-template-columns: 1fr 1fr;
        padding: 16px 10px;
    }
    .map-stat-col strong {
        font-size: 22px;
    }
}
