.global-shipping-map {
    position: relative;
    width: 100%;
    background-color: transparent;
    border-radius: 12px;
    overflow: hidden;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.global-shipping-map__scroll {
    position: relative;
    width: 100%;
}

.global-shipping-map__stage {
    position: relative;
    width: 100%;
    aspect-ratio: 2 / 1;
    overflow: hidden;
    background-color: transparent;
    user-select: none;
}

.global-shipping-map__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: fill;
    pointer-events: none;
    opacity: 1;
}

.global-shipping-map__svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}

.global-shipping-map__markers {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 3;
}

.global-shipping-map__marker {
    position: absolute;
    left: calc(var(--x) / 1000 * 100%);
    top: calc(var(--y) / 500 * 100%);
    transform: translate(-50%, -50%);
    z-index: 5;
    pointer-events: auto;
}

.global-shipping-map__marker-button {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    width: 32px;
    height: 32px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    outline: none;
}

.global-shipping-map__marker-button:focus-visible {
    outline: 2px solid var(--marker-color, #00c8ff);
    outline-offset: 2px;
}

.global-shipping-map__marker-dot {
    display: block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--marker-color, #00c8ff);
    box-shadow: 0 0 10px var(--marker-color, #00c8ff), 0 0 20px var(--marker-color, #00c8ff);
    transition: transform 0.25s ease, box-shadow 0.2s ease;
}

.global-shipping-map__marker-button:hover .global-shipping-map__marker-dot,
.global-shipping-map__marker.is-active .global-shipping-map__marker-dot {
    transform: scale(1.35);
    box-shadow: 0 0 15px var(--marker-color, #00c8ff), 0 0 30px var(--marker-color, #00c8ff);
}

.global-shipping-map__label {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    color: #ffffff;
    background-color: rgba(10, 15, 30, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(4px);
    white-space: nowrap;
    pointer-events: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    z-index: 10;
}

.global-shipping-map__route {
    fill: none;
    stroke: var(--route-color, #00c8ff);
    stroke-width: 1.2;
    stroke-linecap: round;
    stroke-linejoin: round;
    vector-effect: non-scaling-stroke;
    opacity: 0.85;
}

.global-shipping-map--flow-static .global-shipping-map__route {
    stroke-dasharray: none;
    animation: none;
    opacity: 0.75;
}

.global-shipping-map--flow-soft-dash .global-shipping-map__route {
    stroke-dasharray: 4 7;
    animation: shippingDashFlow 3s linear infinite;
    opacity: 0.85;
}

.global-shipping-map--flow-fast-dash .global-shipping-map__route {
    stroke-dasharray: 4 7;
    animation: shippingDashFlow 1.6s linear infinite;
    opacity: 0.9;
}

.global-shipping-map--flow-light-pulse .global-shipping-map__route {
    stroke-dasharray: none;
    animation: shippingLinePulse 2.4s ease-in-out infinite;
}

.global-shipping-map--flow-comet .global-shipping-map__route {
    stroke-dasharray: none;
    animation: none;
    opacity: 0.45;
}

.global-shipping-map--flow-dot .global-shipping-map__route {
    stroke-dasharray: none;
    animation: none;
    opacity: 0.35;
}

.global-shipping-map__moving-dot {
    fill: var(--route-color, #00c8ff);
    opacity: 0.95;
    filter: drop-shadow(0 0 3px var(--route-color, #00c8ff));
}

@keyframes shippingDashFlow {
    from {
        stroke-dashoffset: 0;
    }
    to {
        stroke-dashoffset: -44;
    }
}

@keyframes shippingLinePulse {
    0% {
        opacity: 0.45;
    }
    50% {
        opacity: 0.95;
    }
    100% {
        opacity: 0.45;
    }
}

.global-shipping-map__debug-crosshair {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 14px;
    height: 14px;
    transform: translate(-50%, -50%);
    pointer-events: none;
    display: none;
    z-index: 20;
}

.global-shipping-map__debug-crosshair::before,
.global-shipping-map__debug-crosshair::after {
    content: "";
    position: absolute;
    background-color: #ff3b30;
}

.global-shipping-map__debug-crosshair::before {
    left: 6px;
    top: 0;
    width: 2px;
    height: 14px;
}

.global-shipping-map__debug-crosshair::after {
    left: 0;
    top: 6px;
    width: 14px;
    height: 2px;
}

.global-shipping-map__debug-coords {
    position: absolute;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    background: #ff3b30;
    color: #fff;
    font-size: 9px;
    padding: 1px 3px;
    border-radius: 3px;
    white-space: nowrap;
    font-family: monospace;
}

.global-shipping-map--debug .global-shipping-map__debug-crosshair {
    display: block;
}

.global-shipping-map__swipe-hint {
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(13, 17, 29, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    padding: 8px 16px;
    z-index: 20;
    pointer-events: none;
    font-size: 12px;
    color: #e0e6ed;
    transition: opacity 0.5s ease, transform 0.5s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    opacity: 0;
}

.global-shipping-map__swipe-icon {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: #00c8ff;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    animation: gsmSwipeAnimation 1.8s ease-in-out infinite;
}

@keyframes gsmSwipeAnimation {
    0%, 100% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(-6px);
    }
}

.global-shipping-map--mobile-scroll .global-shipping-map__scroll {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.global-shipping-map--mobile-fit .global-shipping-map__scroll {
    overflow: hidden;
}

@media (max-width: 767px) {
    .global-shipping-map__swipe-hint {
        opacity: 1;
    }

    .global-shipping-map--mobile-scroll .global-shipping-map__stage {
        min-width: var(--mobile-map-min-width, 900px);
        height: var(--mobile-map-height, 420px);
        aspect-ratio: auto;
    }

    .global-shipping-map--mobile-fit .global-shipping-map__stage {
        width: 100%;
        aspect-ratio: 2 / 1;
    }

    .global-shipping-map--mobile-label-tap .global-shipping-map__label {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateX(-50%) translateY(6px);
    }

    .global-shipping-map--mobile-label-tap .global-shipping-map__marker.is-active .global-shipping-map__label,
    .global-shipping-map--mobile-label-tap .global-shipping-map__marker:focus-within .global-shipping-map__label {
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) translateY(0);
    }

    .global-shipping-map--mobile-label-show .global-shipping-map__label {
        opacity: 1;
        visibility: visible;
    }

    .global-shipping-map__label {
        font-size: 13px;
        padding: 7px 10px;
        max-width: 180px;
        text-align: center;
        white-space: normal;
        z-index: 10;
        bottom: calc(100% + 6px);
    }

    .global-shipping-map__marker-dot {
        width: 14px;
        height: 14px;
    }

    .global-shipping-map__marker-button {
        width: 34px;
        height: 34px;
    }

    .global-shipping-map--mobile-fit .global-shipping-map__label {
        font-size: 11px;
        padding: 5px 8px;
        max-width: 130px;
    }

    .global-shipping-map--mobile-fit .global-shipping-map__marker-dot {
        width: 10px;
        height: 10px;
    }

    .global-shipping-map--mobile-fit .global-shipping-map__marker-button {
        width: 28px;
        height: 28px;
    }
}