/* World Map Section - Leaflet.js Style */
.world-map-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 50%, #f8f9fa 100%);
    position: relative;
    overflow: hidden;
}

.world-map-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(0, 0, 0, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(0, 0, 0, 0.05) 0%, transparent 40%);
    pointer-events: none;
}

.world-map-section .section-header {
    position: relative;
    z-index: 1;
}

.world-map-section .section-header h2 {
    color: #333333;
    font-size: 42px;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.world-map-section .section-header p {
    color: #666666;
    font-size: 18px;
}

/* World Map Container */
.world-map-container {
    position: relative;
    max-width: 100%;
    margin: 0;
    padding: 0;
    background: #ffffff;
    border-radius: 0;
    box-shadow: none;
    overflow: hidden;
    border: 1px solid #e0e0e0;
}

/* Map Container */
#map-container {
    width: 100%;
    height: 500px;
    position: relative;
    z-index: 1;
    border-radius: 10px;
    overflow: hidden;
}

/* Country Flag Styles */
.country-flag {
    background: transparent !important;
    border: none !important;
}

.flag-img {
    width: 40px;
    height: 30px;
    cursor: pointer;
    transition: all 0.2s ease;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
    border-radius: 3px;
}

.flag-img:hover {
    transform: scale(1.3);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
}

/* Custom Popup Styles */
.custom-popup .leaflet-popup-content-wrapper {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    padding: 0;
}

.custom-popup .leaflet-popup-content {
    margin: 0;
    padding: 15px;
}

.marker-popup {
    text-align: center;
}

.marker-popup h3 {
    margin: 0 0 10px 0;
    color: #2c3e50;
    font-size: 18px;
    font-weight: 600;
}

.marker-popup p {
    margin: 0 0 15px 0;
    color: #666;
    font-size: 14px;
}

.popup-link {
    display: inline-block;
    padding: 8px 20px;
    background: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.popup-link:hover {
    background: #2980b9;
    transform: translateY(-2px);
}

/* Custom Tooltip Styles */
.custom-tooltip {
    background: rgba(44, 62, 80, 0.95);
    border: none;
    border-radius: 5px;
    color: white;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.custom-tooltip::before {
    border-top-color: rgba(44, 62, 80, 0.95);
}

/* Map Legend */
.map-legend {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.95);
    padding: 15px 25px;
    border-radius: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    z-index: 10;
    border: 1px solid #e9ecef;
}

.map-legend p {
    margin: 0;
    color: #333333;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}

.map-legend i {
    color: #666666;
    font-size: 18px;
}

/* Responsive Design */
@media (max-width: 992px) {
    .world-map-section {
        padding: 60px 0;
    }
    
    .world-map-section .section-header h2 {
        font-size: 36px;
    }
    
    .world-map-container {
        padding: 0;
        margin: 0;
    }
}

@media (max-width: 768px) {
    .world-map-section {
        padding: 40px 0;
    }
    
    .world-map-section .section-header h2 {
        font-size: 28px;
    }
    
    .world-map-section .section-header p {
        font-size: 16px;
    }
    
    .world-map-container {
        padding: 0;
        margin: 0;
    }
    
    #map-container {
        height: 400px;
    }
    
    .map-legend {
        padding: 12px 20px;
    }
    
    .map-legend p {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .world-map-section .section-header h2 {
        font-size: 24px;
    }
    
    .world-map-container {
        padding: 0;
        margin: 0;
    }
    
    #map-container {
        height: 350px;
    }
    
    .map-legend {
        padding: 10px 15px;
        bottom: 10px;
    }
    
    .map-legend p {
        font-size: 11px;
    }
}



/* Leaflet overrides */
.leaflet-control-zoom {
    border: none !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2) !important;
}

.leaflet-control-zoom a {
    background: white !important;
    color: #333 !important;
    border: none !important;
    width: 30px !important;
    height: 30px !important;
    line-height: 30px !important;
    font-size: 18px !important;
}

.leaflet-control-zoom a:hover {
    background: #f8f9fa !important;
}

.leaflet-control-attribution {
    background: rgba(255, 255, 255, 0.8) !important;
    font-size: 11px !important;
}
