* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* body {
    background: #f4f6f9;
    font-family: Segoe UI, Arial, sans-serif;
    padding: 20px;
} */

.svg-map-container {
    position: relative;
    /* width: 100%; */
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, .15);
}

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

.marker {
    position: absolute;
    left: var(--x);
    top: var(--y);
    transform: translate(-50%, -100%);
    cursor: pointer;
    z-index: 10;
}

.marker.active {
    z-index: 999;
}

.marker-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ff3b30;
    border: 3px solid #fff;
    box-shadow: 0 0 0 8px rgba(255, 59, 48, .20);
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 59, 48, .45);
    }

    70% {
        box-shadow: 0 0 0 20px rgba(255, 59, 48, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 59, 48, 0);
    }
}

.marker-dot::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: transparent;
    transform: translate(-50%, -50%);
    border: 3px solid transparent;
    box-shadow: 0 0 0 0 rgba(255, 59, 48, 0);
    animation: pulse 2s infinite;
}

.tooltip {
    position: absolute;
    min-width: 280px;
    width: 320px;
    max-width: 90vw;
    background: #fff;
    border-radius: 14px;
    padding: 14px 20px 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .15);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .25s cubic-bezier(.4, 0, .2, 1),
        transform .25s cubic-bezier(.4, 0, .2, 1),
        visibility .25s;
}

.marker.active .tooltip {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.tooltip[data-arrow="top"] {
    bottom: 38px;
    left: var(--x);
    transform: translateY(-100%);
}

.tooltip[data-arrow="bottom"] {
    top: 38px;
    left: var(--x);
}

.tooltip[data-arrow="left"] {
    right: 38px;
    top: var(--y);
    transform: translateY(-50%);
}

.tooltip[data-arrow="right"] {
    left: 38px;
    top: var(--y);
    transform: translateY(-50%);
}

@media (max-width: 600px) {
    body {
        padding: 12px;
    }

    .tooltip {
        min-width: 0;
        width: fit-content;
    }

    .tooltip[data-arrow="top"],
    .tooltip[data-arrow="bottom"] {
        left: 50%;
        transform: translateX(-50%);
    }

    .tooltip[data-arrow="top"] {
        transform: translate(-50%, -100%);
    }

    .tooltip[data-arrow="left"],
    .tooltip[data-arrow="right"] {
        top: var(--y);
        transform: translateY(-50%);
    }
}

.tooltip h3 {
    font-size: 16px;
    color: #111827;
    margin-bottom: 4px;
}

.tooltip h4 {
    font-size: 13px;
    color: #2563eb;
    margin-bottom: 10px;
    font-weight: 600;
}

.tooltip p {
    font-size: 13px;
    line-height: 1.6;
    color: #4b5563;
    margin-bottom: 14px;
    white-space: normal;
}

.tooltip a {
    display: inline-block;
    text-decoration: none;
    background: #2563eb;
    color: #fff;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 13px;
}

.tooltip a:hover {
    background: #1d4ed8;
}

.close-tooltip {
    position: absolute;
    top: 8px;
    right: 10px;
    z-index: 2;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    color: #999;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background .2s, color .2s;
}

.close-tooltip:hover {
    background: #f3f4f6;
    color: #111;
}


