/* Animated World Map Styles */

.map-container {
    position: relative;
    width: 100%;
    height: auto;
}

.map-image {
    width: 100%;
    height: auto;
    display: block;
    opacity: 0;
    animation: fadeIn 1s ease-in forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: visible;
}

/* Animated dotted lines */
.route-line {
    stroke: #4a90e2;
    stroke-width: 1.5;
    fill: none;
    stroke-dasharray: 8, 6;
    stroke-dashoffset: 0;
    opacity: 0;
    animation: drawLine 1.5s ease-in-out forwards, dashAnimation 20s linear infinite;
    vector-effect: non-scaling-stroke;
}

@keyframes drawLine {
    to {
        opacity: 0.8;
    }
}

@keyframes dashAnimation {
    to {
        stroke-dashoffset: -1000;
    }
}

/* Location markers */
.marker {
    position: absolute;
    transform: translate(-50%, -50%);
    opacity: 0;
    animation: markerAppear 0.5s ease-out forwards;
}

@keyframes markerAppear {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.marker-pin {
    width: 10px;
    height: 20px;
    position: relative;
}

.marker-pin::before {
    content: '';
    position: absolute;
    width: 15px;
    height: 15px;
    background: #0E5BA0;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    border: 2px solid white;
    box-shadow: 0 3px 10px rgba(0,0,0,0.3);
    animation: pulse 2s ease-in-out infinite;
}

.marker-pin::after {
    content: '';
    position: absolute;
    width: 5px;
    height: 5px;
    background: white;
    border-radius: 50%;
    top: 6px;
    left: 10px;
    transform: rotate(45deg);
}

@keyframes pulse {
    0%, 100% {
        transform: rotate(-45deg) scale(1);
    }
    50% {
        transform: rotate(-45deg) scale(1.1);
    }
}

.marker-label {
    position: absolute;
    top: 25px;
    left: 100%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.95);
    padding: 2px 5px;
    border-radius: 4px;
    font-size: 9px;
    font-weight: bold;
    color: #333;
    white-space: nowrap;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    font-family:Arial, Helvetica, sans-serif;
}

/* Stagger animations */
.marker:nth-child(1) { animation-delay: 0.5s; }
.marker:nth-child(2) { animation-delay: 0.7s; }
.marker:nth-child(3) { animation-delay: 0.9s; }
.marker:nth-child(4) { animation-delay: 1.1s; }
.marker:nth-child(5) { animation-delay: 1.3s; }
.marker:nth-child(6) { animation-delay: 1.5s; }
.marker:nth-child(7) { animation-delay: 1.7s; }
.marker:nth-child(8) { animation-delay: 1.9s; }

.route-line:nth-child(1) { animation-delay: 1s; }
.route-line:nth-child(2) { animation-delay: 1.2s; }
.route-line:nth-child(3) { animation-delay: 1.4s; }
.route-line:nth-child(4) { animation-delay: 1.6s; }
.route-line:nth-child(5) { animation-delay: 1.8s; }
.route-line:nth-child(6) { animation-delay: 2s; }
.route-line:nth-child(7) { animation-delay: 2.2s; }
