.iom-map {
    width: 100%;
    max-width: var(--iom-max-width, 1916px);
    margin-inline: auto;
}

.iom-map,
.iom-map * {
    box-sizing: border-box;
}

.iom-map__stage {
    position: relative;
    width: 100%;
    line-height: 0;
    isolation: isolate;
    overflow: visible;
    touch-action: manipulation;
}

.iom-map__image {
    display: block;
    width: 100%;
    height: auto;
    user-select: none;
    -webkit-user-drag: none;
}

.iom-map__overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: block;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.iom-area {
    cursor: pointer;
    outline: none;
}

.iom-area polygon {
    fill: transparent;
    stroke: transparent;
    stroke-width: 5;
    vector-effect: non-scaling-stroke;
    pointer-events: all;
    transition:
        fill 160ms ease,
        stroke 160ms ease,
        filter 160ms ease;
}

.iom-area--available {
    --iom-area-fill: rgba(94, 190, 0, 0.54);
    --iom-area-stroke: rgba(69, 145, 0, 0.95);
}

.iom-area--reserved {
    --iom-area-fill: rgba(245, 158, 11, 0.52);
    --iom-area-stroke: rgba(217, 119, 6, 0.95);
}

.iom-area--sold {
    --iom-area-fill: rgba(220, 38, 38, 0.50);
    --iom-area-stroke: rgba(185, 28, 28, 0.95);
}


.iom-area--unavailable {
    --iom-area-fill: rgba(107, 114, 128, 0.58);
    --iom-area-stroke: rgba(75, 85, 99, 0.96);
}

.iom-area:hover polygon,
.iom-area:focus-visible polygon,
.iom-area.is-active polygon,
.iom-area.is-selected polygon {
    fill: var(--iom-area-fill);
    stroke: var(--iom-area-stroke);
    filter: drop-shadow(0 6px 9px rgba(0, 0, 0, 0.2));
}

.iom-tooltip {
    position: absolute;
    z-index: 5;
    min-width: 230px;
    max-width: min(330px, calc(100vw - 28px));
    padding: 16px 20px;
    border-radius: 11px;
    background: rgba(13, 13, 13, 0.96);
    color: #fff;
    line-height: 1.25;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
    transform: translate3d(0, 0, 0);
    pointer-events: none;
    opacity: 0;
    transition: opacity 120ms ease;
}

.iom-tooltip:not([hidden]) {
    opacity: 1;
}

.iom-tooltip__title {
    display: block;
    margin-bottom: 6px;
    font-size: clamp(15px, 1.25vw, 21px);
    font-weight: 800;
    line-height: 1.15;
    text-transform: uppercase;
    letter-spacing: -0.01em;
}

.iom-tooltip__local-line {
    display: block;
    margin-bottom: 5px;
    font-size: clamp(14px, 1.12vw, 19px);
    font-weight: 700;
    line-height: 1.2;
    color: #ffffff;
}

.iom-tooltip__status-line {
    display: block;
    font-size: clamp(14px, 1.12vw, 19px);
    line-height: 1.25;
}

.iom-tooltip__status {
    color: #63c900;
}

.iom-tooltip[data-status-key="reserved"] .iom-tooltip__status {
    color: #f59e0b;
}

.iom-tooltip[data-status-key="sold"] .iom-tooltip__status {
    color: #ef4444;
}


.iom-tooltip[data-status-key="unavailable"] .iom-tooltip__status {
    color: #9ca3af;
}

@media (max-width: 767px) {
    .iom-tooltip {
        min-width: 190px;
        padding: 12px 14px;
        border-radius: 9px;
    }

    .iom-area polygon {
        stroke-width: 3;
    }
}

@media (prefers-reduced-motion: reduce) {
    .iom-area polygon,
    .iom-tooltip {
        transition: none;
    }
}
