

/* Main container */
.coordinate-map-container {
    position: relative;
    width: 100%;
    max-width: 1300px;
    margin: 40px auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.5),
        0 0 50px rgba(0, 150, 255, 0.2);
    background: linear-gradient(135deg, #0f1419 0%, #1a2332 50%, #0a0e14 100%);
    border: 2px solid rgba(64, 224, 255, 0.3);
}


.map-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 20/10; 
    overflow: hidden;
}

/* Base map image - responsive */
.base-map-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: brightness(0.7) contrast(1.2) saturate(1.1);
    transition: filter 0.4s ease;
}

/* Sci-fi overlay effects */
.sci-fi-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(0, 20, 50, 0.6) 0%,
        rgba(0, 50, 100, 0.3) 30%,
        rgba(0, 0, 0, 0.4) 100%
    );
    pointer-events: none;
    z-index: 1;
}

.coordinate-map-container:hover .sci-fi-overlay {
    background: linear-gradient(
        135deg,
        rgba(0, 40, 80, 0.7) 0%,
        rgba(0, 100, 200, 0.4) 30%,
        rgba(0, 0, 0, 0.5) 100%
    );
}

/* Scan line animation */
/* .scan-line {
    position: absolute;
    top: 0;
    left: -2px;
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, 
        transparent 0%, 
        rgba(64, 224, 255, 0.8) 50%, 
        transparent 100%);
    opacity: 0;
    animation: scan 1s ease-in-out infinite;
    z-index: 2;
} */

@keyframes scan {
    0% { left: -2px; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { left: 100%; opacity: 0; }
}

/* Container for pins, labels, and hotspots */
.country-pins-container,
.country-labels-container,
.country-hotspots-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 3;
}

.country-hotspots-container {
    pointer-events: auto;
    z-index: 4;
}

/* Coordinate-based positioning system */
.coordinate-pin,
.coordinate-label,
.country-hotspot {
    position: absolute;
    transform: translate(-50%, -50%);
}

/* Country pins */
.coordinate-pin {
    width: 40px;
    height: 40px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 5;
}

.coordinate-pin.active {
    opacity: 1;
    visibility: visible;
    animation: pinBounce 0.6s ease-out;
}

@keyframes pinBounce {
    0% { transform: translate(-50%, -50%) scale(0); }
    60% { transform: translate(-50%, -50%) scale(1.3); }
    100% { transform: translate(-50%, -50%) scale(1); }
}

/* Pin marker (the actual pin shape) */
.pin-marker {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #00ff96 0%, #40e0ff 100%);
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    box-shadow: 
        0 0 20px rgba(0, 255, 150, 0.6),
        inset 0 2px 4px rgba(255, 255, 255, 0.3);
    position: relative;
}

.pin-marker::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 6px;
    width: 28px;
    height: 28px;
    background: radial-gradient(circle, #ffffff 30%, transparent 70%);
    border-radius: 50%;
    animation: pinInnerPulse 2s ease-in-out infinite;
}

@keyframes pinInnerPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.2); }
}

/* Pin pulse effect */
.pin-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    border: 2px solid rgba(0, 255, 150, 0.6);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: pinPulseRing 2s ease-out infinite;
}

@keyframes pinPulseRing {
    0% {
        width: 40px;
        height: 40px;
        opacity: 1;
    }
    100% {
        width: 80px;
        height: 80px;
        opacity: 0;
    }
}

/* Country labels */
.coordinate-label {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.9) 0%, rgba(20, 35, 50, 0.95) 100%);
    color: #00ff96;
    padding: 10px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, -50%) translateY(10px);
    transition: all 0.4s ease;
    border: 1px solid rgba(0, 255, 150, 0.3);
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    z-index: 10;
    min-width: 100px;
    text-align: center;
}

.coordinate-label::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid rgba(0, 255, 150, 0.8);
}

.coordinate-label.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) translateY(0);
    animation: labelGlow 2s ease-in-out infinite;
}

@keyframes labelGlow {
    0%, 100% { 
        box-shadow: 
            0 8px 25px rgba(0, 0, 0, 0.4),
            inset 0 1px 0 rgba(255, 255, 255, 0.1),
            0 0 15px rgba(0, 255, 150, 0.3);
    }
    50% { 
        box-shadow: 
            0 8px 25px rgba(0, 0, 0, 0.4),
            inset 0 1px 0 rgba(255, 255, 255, 0.1),
            0 0 25px rgba(0, 255, 150, 0.6);
    }
}

/* Interactive hotspots */
.country-hotspot {
    background: rgba(0, 255, 150, 0.1);
    border: 1px solid rgba(0, 255, 150, 0.3);
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: auto;
}

.country-hotspot:hover {
    opacity: 0.3;
    background: rgba(0, 255, 150, 0.2);
    transform: translate(-50%, -50%) scale(1.1);
}

.country-hotspot.active {
    opacity: 0.2;
    background: rgba(0, 255, 150, 0.15);
    animation: hotspotPulse 2s ease-in-out infinite;
}

@keyframes hotspotPulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.05); }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .coordinate-map-container {
        margin: 20px auto;
        max-width: 100%;
    }

    .coordinate-pin {
        width: 30px;
        height: 30px;
    }

    .pin-marker::before {
        top: 4px;
        left: 4px;
        width: 22px;
        height: 22px;
    }

    .coordinate-label {
        font-size: 12px;
        padding: 8px 12px;
        min-width: 80px;
    }
}

@media (max-width: 480px) {
    .coordinate-pin {
        width: 25px;
        height: 25px;
    }

    .coordinate-label {
        font-size: 10px;
        padding: 6px 10px;
        min-width: 70px;
    }
}

/* Loading animation */
.coordinate-map-container {
    opacity: 0;
    transform: scale(0.95);
    animation: mapFadeIn 1s ease-out forwards 0.5s;
}

@keyframes mapFadeIn {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* height: 546 px width: 1395 px */