/* ========================================
   NETWORK MAP - CLEAN & PROFESSIONAL
   ======================================== */

/* Network Section - Simplified */
.network-map-hero {
    position: relative;
    width: 100%;
    background: #ffffff;
    padding: 0;
    margin: 0;
}

/* Hero Header - Minimal */
.network-hero-header {
    padding: 50px 0 30px;
    text-align: center;
}

.network-title-wrapper {
    max-width: 700px;
    margin: 0 auto;
}

.network-hero-title {
    font-size: 36px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 8px;
    line-height: 1.3;
}

.network-hero-subtitle {
    font-size: 16px;
    color: #6b7280;
    margin: 0;
}

/* Map Container - Clean with Padding */
.map-hero-container {
    position: relative;
    width: 100%;
    padding: 0 0 60px;
    background: #ffffff;
}

.map-wrapper-clean {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

#branchMap {
    width: 100%;
    height: 500px;
    z-index: 1;
}

/* Stats Compact - Bottom Right */
.map-stats-compact {
    position: absolute;
    bottom: 80px;
    right: 60px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1000;
}

.stat-item-compact {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    min-width: 140px;
}

.stat-item-compact:hover {
    transform: translateX(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.stat-item-compact i {
    font-size: 20px;
    color: #0554c6;
    flex-shrink: 0;
}

.stat-item-compact div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.stat-item-compact strong {
    font-size: 20px;
    font-weight: 700;
    color: #1f2937;
    line-height: 1;
}

.stat-item-compact span {
    font-size: 11px;
    color: #6b7280;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Marker Styling - Softer Blue */
.custom-marker {
    background: transparent;
    border: none;
}

.marker-pin {
    width: 32px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.marker-pin i {
    font-size: 44px;
    color: #0554c6;
    filter: drop-shadow(0 3px 6px rgba(5, 84, 198, 0.3));
    transition: all 0.3s ease;
}

.marker-pin:hover i {
    color: #0369a1;
    transform: scale(1.1);
    filter: drop-shadow(0 4px 8px rgba(5, 84, 198, 0.5));
}

/* Popup - Clean */
.leaflet-popup-content-wrapper {
    border-radius: 10px;
    padding: 0;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    border: 1px solid #e5e7eb;
}

.leaflet-popup-content {
    margin: 0;
    min-width: 180px;
}

.branch-popup {
    padding: 14px 16px;
    background: white;
}

.branch-popup h4 {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: #1f2937;
    display: flex;
    align-items: center;
    gap: 8px;
}

.branch-popup h4 i {
    color: #0554c6;
    font-size: 16px;
}

.leaflet-popup-tip {
    background: white;
}

/* Leaflet Controls - Clean */
.leaflet-control-zoom {
    border: none !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
    border-radius: 8px !important;
    overflow: hidden;
}

.leaflet-control-zoom a {
    background: white !important;
    color: #1f2937 !important;
    border: none !important;
    width: 36px !important;
    height: 36px !important;
    line-height: 36px !important;
    font-size: 18px !important;
    transition: all 0.2s ease !important;
}

.leaflet-control-zoom a:hover {
    background: #0554c6 !important;
    color: white !important;
}

/* Cities Section - Compact */
.network-cities-compact {
    padding: 50px 0;
    background: white;
}

.network-cities-compact h3 {
    font-size: 24px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 30px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.network-cities-compact h3 i {
    color: #0554c6;
    font-size: 22px;
}

/* Cities Grid - 3 Columns with Scroll */
.cities-scroll-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    max-height: 400px;
    overflow-y: auto;
    padding: 20px;
    background: #f9fafb;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

/* Custom Scrollbar */
.cities-scroll-grid::-webkit-scrollbar {
    width: 8px;
}

.cities-scroll-grid::-webkit-scrollbar-track {
    background: #e5e7eb;
    border-radius: 4px;
}

.cities-scroll-grid::-webkit-scrollbar-thumb {
    background: #0554c6;
    border-radius: 4px;
}

.cities-scroll-grid::-webkit-scrollbar-thumb:hover {
    background: #0369a1;
}

.city-item-compact {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s ease;
    cursor: default;
}

.city-item-compact:hover {
    border-color: #0554c6;
    background: #eff6ff;
    transform: translateX(3px);
}

.city-item-compact i {
    font-size: 8px;
    color: #0554c6;
    flex-shrink: 0;
}

.city-item-compact span {
    font-size: 14px;
    font-weight: 500;
    color: #1f2937;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .network-hero-title {
        font-size: 32px;
    }
    
    #branchMap {
        height: 450px;
    }
    
    .map-wrapper-clean {
        padding: 0 30px;
    }
    
    .map-stats-compact {
        right: 40px;
        bottom: 70px;
    }
    
    .cities-scroll-grid {
        grid-template-columns: repeat(2, 1fr);
        max-height: 350px;
    }
}

@media (max-width: 768px) {
    .network-hero-header {
        padding: 40px 0 25px;
    }
    
    .network-hero-title {
        font-size: 28px;
    }
    
    .network-hero-subtitle {
        font-size: 14px;
    }
    
    #branchMap {
        height: 400px;
    }
    
    .map-wrapper-clean {
        padding: 0 20px;
        border-radius: 12px;
    }
    
    .map-stats-compact {
        right: 30px;
        bottom: 60px;
        gap: 8px;
    }
    
    .stat-item-compact {
        padding: 10px 14px;
        min-width: 120px;
    }
    
    .stat-item-compact i {
        font-size: 18px;
    }
    
    .stat-item-compact strong {
        font-size: 18px;
    }
    
    .marker-pin i {
        font-size: 38px;
    }
    
    .network-cities-compact {
        padding: 40px 0;
    }
    
    .network-cities-compact h3 {
        font-size: 20px;
    }
    
    .cities-scroll-grid {
        max-height: 300px;
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .network-hero-title {
        font-size: 24px;
    }
    
    #branchMap {
        height: 350px;
    }
    
    .map-wrapper-clean {
        padding: 0 15px;
    }
    
    .map-stats-compact {
        right: 20px;
        bottom: 50px;
    }
    
    .stat-item-compact {
        padding: 8px 12px;
        min-width: 100px;
    }
    
    .stat-item-compact i {
        font-size: 16px;
    }
    
    .stat-item-compact strong {
        font-size: 16px;
    }
    
    .stat-item-compact span {
        font-size: 10px;
    }
    
    .marker-pin i {
        font-size: 34px;
    }
    
    .cities-scroll-grid {
        grid-template-columns: 1fr;
        max-height: 250px;
        gap: 10px;
    }
    
    .city-item-compact {
        padding: 10px 14px;
    }
    
    .city-item-compact span {
        font-size: 13px;
    }
}
