.visitor-map {
    --visitor-map-width: 240px;
    width: min(100%, var(--visitor-map-width));
    margin: 0 auto;
    font-family: inherit;
    color: #334155;
    text-align: center;
}

.visitor-map__caption {
    min-height: 16px;
    margin-top: 4px;
    font-size: 0.7rem;
    font-weight: 500;
    line-height: 1.3;
    color: #64748b;
    text-align: center;
}

.visitor-map__canvas {
    position: relative;
    min-height: 125px;
    overflow: hidden;
    border: 1px solid #d7e1ec;
    border-radius: 8px;
    background: #f8fbff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.visitor-map__canvas svg {
    display: block;
    width: 100%;
    height: auto;
}

.visitor-map__loading {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    background: #f8fbff;
    color: #94a3b8;
    font-size: 0.68rem;
}

.visitor-map__spinner {
    width: 14px;
    height: 14px;
    border: 2px solid #cbd5e1;
    border-top-color: #2563eb;
    border-radius: 50%;
    animation: visitor-map-spin 0.8s linear infinite;
}

.visitor-map__tooltip {
    position: absolute;
    z-index: 3;
    display: none;
    max-width: 180px;
    padding: 5px 8px;
    border-radius: 6px;
    background: rgba(15, 23, 42, 0.9);
    color: #f8fafc;
    font-size: 0.68rem;
    line-height: 1.25;
    pointer-events: none;
    white-space: nowrap;
}

.visitor-map .country-base {
    fill: #c7d5e5;
    stroke: #ffffff;
    stroke-width: 0.45px;
}

.visitor-map .visitor-dot-ring {
    fill: none;
    stroke: #2563eb;
    stroke-width: 1px;
    opacity: 0.35;
}

.visitor-map .recent-halo {
    fill: none;
    stroke: #2563eb;
    stroke-width: 1.2px;
    opacity: 0.48;
    animation: visitor-map-halo 2.4s ease-out infinite;
}

.visitor-map .you-are-here {
    fill: #2563eb;
    stroke: #ffffff;
    stroke-width: 1.7px;
    animation: visitor-map-pulse 2s ease-out infinite;
}

@keyframes visitor-map-spin {
    to { transform: rotate(360deg); }
}

@keyframes visitor-map-halo {
    0% { opacity: 0.48; }
    70% { opacity: 0.12; }
    100% { opacity: 0.48; }
}

@keyframes visitor-map-pulse {
    0% { r: 5px; opacity: 1; }
    70% { r: 9px; opacity: 0.35; }
    100% { r: 5px; opacity: 1; }
}
