/* Colombia Interactive Map Styles */

.colombia-svg-map {
    width: 100%;
    height: 400px;
    border-radius: 15px;
    background: linear-gradient(135deg, #1a365d 0%, #2d4065 50%, #1a365d 100%);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.colombia-svg-map:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 40px rgba(0,0,0,0.4);
}

/* Colombia outline animation */
.colombia-outline {
    transition: all 0.3s ease;
}

.colombia-svg-map:hover .colombia-outline {
    opacity: 0.5 !important;
    stroke-width: 1;
}

/* Location markers */
.location-marker {
    cursor: pointer;
    transition: all 0.3s ease;
}

.location-marker:hover {
    transform: scale(1.3);
}

.location-marker .marker-core {
    transition: all 0.3s ease;
}

.location-marker:hover .marker-core {
    filter: url(#glow) brightness(1.3);
}

/* Connection lines animations */
.connection-line {
    transition: all 0.3s ease;
}

@keyframes pulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

/* Tooltip styles */
.map-tooltip {
    position: absolute;
    background: linear-gradient(135deg, #005EB8, #0D2C54);
    color: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    z-index: 1000;
    min-width: 250px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.map-tooltip.show {
    opacity: 1;
    transform: translateY(0);
}

.map-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 8px solid transparent;
    border-top-color: #0D2C54;
}

.tooltip-header h5 {
    margin: 0;
    color: white;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.tooltip-content {
    margin-top: 10px;
}

.tooltip-content p {
    margin: 5px 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

.tooltip-content strong {
    color: #FFD700;
}

/* Modal styles */
.location-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.location-modal-overlay.show {
    opacity: 1;
}

.location-modal {
    background: white;
    border-radius: 15px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.location-modal-overlay.show .location-modal {
    transform: scale(1);
}

.location-modal .modal-header {
    background: linear-gradient(135deg, #005EB8, #0D2C54);
    color: white;
    padding: 20px;
    border-radius: 15px 15px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.location-modal .modal-header h3 {
    margin: 0;
    color: white;
    display: flex;
    align-items: center;
}

.location-modal .btn-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.location-modal .btn-close:hover {
    background-color: rgba(255,255,255,0.2);
}

.location-modal .modal-body {
    padding: 25px;
}

.location-modal .modal-body h5 {
    color: #005EB8;
    margin-bottom: 15px;
    font-weight: 600;
    border-bottom: 2px solid #E3F2FD;
    padding-bottom: 5px;
}

.location-modal .modal-body p {
    margin-bottom: 10px;
    line-height: 1.6;
}

.location-modal .modal-body i {
    width: 20px;
}

.location-modal .modal-body ul {
    margin-bottom: 0;
}

.location-modal .modal-body li {
    margin-bottom: 5px;
}

.location-modal .modal-footer {
    padding: 20px 25px;
    border-top: 1px solid #E0E0E0;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.location-modal .modal-footer .btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
}

.location-modal .modal-footer .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Map container enhancements */
.map-container-spectacular {
    position: relative;
    background: linear-gradient(135deg, #0c1c2f 0%, #1a365d 25%, #2d4065 50%, #1a365d 75%, #0c1c2f 100%);
    border-radius: 20px;
    padding: 30px;
    overflow: hidden;
}

.map-container-spectacular::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0,191,255,0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
    pointer-events: none;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#colombia-interactive-map {
    position: relative;
    z-index: 2;
    border-radius: 15px;
    overflow: hidden;
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Floating particles for map background */
.floating-particles-map {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.particle-map {
    position: absolute;
    width: 4px;
    height: 4px;
    background: radial-gradient(circle, #00BFFF 0%, transparent 70%);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.particle-map.particle-1 { top: 10%; left: 20%; animation-delay: 0s; }
.particle-map.particle-2 { top: 30%; left: 80%; animation-delay: 1s; }
.particle-map.particle-3 { top: 60%; left: 15%; animation-delay: 2s; }
.particle-map.particle-4 { top: 80%; left: 75%; animation-delay: 3s; }
.particle-map.particle-5 { top: 20%; left: 60%; animation-delay: 4s; }
.particle-map.particle-6 { top: 70%; left: 40%; animation-delay: 5s; }
.particle-map.particle-7 { top: 40%; left: 10%; animation-delay: 1.5s; }
.particle-map.particle-8 { top: 90%; left: 50%; animation-delay: 3.5s; }

@keyframes float {
    0%, 100% { 
        transform: translateY(0px) scale(1);
        opacity: 0.3;
    }
    50% { 
        transform: translateY(-20px) scale(1.2);
        opacity: 0.8;
    }
}

/* Responsive design */
@media (max-width: 768px) {
    .colombia-svg-map {
        height: 300px;
    }
    
    .map-tooltip {
        min-width: 200px;
        font-size: 0.9rem;
    }
    
    .location-modal {
        width: 95%;
        margin: 10px;
    }
    
    .location-modal .modal-body {
        padding: 20px;
    }
    
    .location-modal .modal-footer {
        flex-direction: column;
        gap: 10px;
    }
    
    .location-modal .modal-footer .btn {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .map-container-spectacular {
        padding: 20px;
    }
    
    .colombia-svg-map {
        height: 250px;
    }
    
    .map-tooltip {
        min-width: 180px;
        padding: 12px;
    }
}