.newGenplanWrapper {
    position: relative;
    width: 100%;
    /* height: 52.2vh; */
    height: 100vh;
    overflow-y: hidden;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.newGenplanWrapper .genplan-svg {
    display: block;
    width: auto;
    height: 100%;
    max-width: none;
    max-width: none;
    margin: 0 auto;
}

.genplan-svg .plot {
    fill: transparent;
    cursor: pointer;
    -webkit-tap-highlight-color: rgba(255, 255, 255, 0);
    transition: fill 0.2s;
    -webkit-transition: fill 0.2s;
    -moz-transition: fill 0.2s;
    -ms-transition: fill 0.2s;
    -o-transition: fill 0.2s;
}

.genplan-svg .plot:hover {
    fill: rgba(199, 255, 79, 0.35);
    /* stroke: #c7ff4f; */
}

/* -- СТАТУСЫ */
.plot[data-status='busy'] {
    fill: rgba(255, 0, 0, 0.5);
}
.plot[data-status='busy']:hover {
    fill: rgba(255, 0, 0, 0.6);
}

.plot[data-status='free'] {
    fill: rgba(199, 255, 79, 0.2);
}
.plot[data-status='free']:hover {
    fill: rgba(199, 255, 79, 0.5);
}

.plot[data-status='ready'] {
    fill: rgba(255, 217, 3, 0.7);
}
.plot[data-status='ready']:hover {
    fill: rgba(255, 217, 3, 0.6);
}
/* ---- */
@media (max-width: 768px) {
    .newGenplanWrapper {
        height: 100vh;
        min-height: 400px;
        overflow-x: auto;
        overflow-y: hidden;
        padding-bottom: 10px;
    }
    .newGenplanWrapper .genplan-svg {
        width: auto; /* Отменяем 100% ширину */
        height: 100%; /* Занимает всю высоту контейнера */
        min-width: 800px; /* Минимальная ширина для читаемости */
        max-width: none;
        display: inline-block; /* Для горизонтального потока */
        vertical-align: top;
    }
}
@media (max-width: 480px) {
    .newGenplanWrapper {
        height: 100vh;
        min-height: 350px;
        /* max-height: 500px; */
    }
    .newGenplanWrapper .genplan-svg {
        min-width: 700px;
    }
}

/* tooltip */

.tooltipWrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}
.tooltip-content {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(5px);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    font-family: Arial, sans-serif;
    font-size: 24px;
    width: fit-content;
    min-width: 200px;
    -webkit-border-radius: 12px;
    -moz-border-radius: 12px;
    -ms-border-radius: 12px;
    -o-border-radius: 12px;
}

.tooltip-title {
    text-transform: uppercase;
    font-weight: bold;
    color: #2c5aa0;
}

.tooltip-area,
.tooltip-price,
.tooltip-fullprice {
    color: #333;
}
.tooltip-area {
    display: flex;
    width: 100%;
}
.tooltip-status {
    font-weight: bold;
    padding: 4px 8px;
    border-radius: 4px;
    display: inline-block;
    margin-top: 5px;
}

.status-free {
    background: rgba(21, 87, 36, 0.8);
    border: none;
    color: #fff;
}

.status-busy {
    background: rgba(114, 28, 36, 0.8);
    border: none;
    color: #fff;
}

.status-ready {
    background: rgba(0, 46, 250, 0.8);
    color: #fff;
    border: none;
}

/* -------------------------------
   Общие переменные (опционально)
-------------------------------- */
:root {
    --tt-paper: #ffffff;
    --tt-ink: #1b1f23;
    --tt-muted: #6b7280;
    --tt-line: rgba(0, 0, 0, 0.08);
    --tt-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    --tt-radius: 12px;

    --free: #10b981; /* зелёный */
    --busy: #ef4444; /* красный */
    --ready: #f59e0b; /* янтарный */
}

/* -------------------------------
   Базовые контейнеры тултипов
   (важно: fixed, чтобы coords по clientX/Y работали)
-------------------------------- */
.plot-tooltip-html,
.plot-tooltip-html-zone {
    position: fixed;
    left: 0;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(5px);
    top: 0;
    display: none;
    z-index: 10000;
    pointer-events: none; /* не перехватывать hover/клик */
    max-width: min(90vw, 340px);
    will-change: left, top, transform;
}

/* -------------------------------
   Внутренняя карточка
-------------------------------- */
.tooltip-content {
    color: var(--tt-ink);
    border: 1px solid var(--tt-line);
    box-shadow: var(--tt-shadow);
    border-radius: var(--tt-radius);
    padding: 12px 14px;
    backdrop-filter: saturate(120%) blur(2px);
}

/* Для "зон" можно сделать чуть компактнее */
.zone-tooltip {
    padding: 10px 12px;
}

.zone-tooltip .tooltip-title {
    text-align: center;
}

/* -------------------------------
   Шапка тултипа участка
-------------------------------- */
.tooltipWrapper .f-tooltipcontainer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.tooltip-title {
    font-weight: 800;
    font-size: 16px;
    line-height: 1.2;
}

/* -------------------------------
   Статус-бейдж
-------------------------------- */
.tooltip-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid var(--tt-line);
    background: #f8fafc;
    color: var(--tt-ink);
    white-space: nowrap;
}

.tooltip-status.status-free {
    background: color-mix(in srgb, var(--free) 12%, #fff);
    border-color: color-mix(in srgb, var(--free) 35%, #fff);
    color: #064e3b;
}

.tooltip-status.status-busy {
    background: color-mix(in srgb, var(--busy) 12%, #fff);
    border-color: color-mix(in srgb, var(--busy) 35%, #fff);
    color: #7f1d1d;
}

.tooltip-status.status-ready {
    background: color-mix(in srgb, var(--ready) 12%, #fff);
    border-color: color-mix(in srgb, var(--ready) 35%, #fff);
    color: #78350f;
}

/* -------------------------------
   Блоки инфы (площадь/цены)
-------------------------------- */
.tooltip-area,
.tooltip-price,
.tooltip-fullprice {
    display: flex;
    font-size: 14px;
    color: var(--tt-ink);
    gap: 10px;
}

.info-tooltip-title {
    font-weight: 700;
    color: #2c5aa0;
}

/* Чуть выделим основные цифры */
.tooltip-price span:last-child,
.tooltip-fullprice span:last-child {
    font-variant-numeric: tabular-nums;
    font-weight: 800;
}

/* -------------------------------
   Тултип для "зон" (только текст)
-------------------------------- */
.plot-tooltip-html-zone .tooltip-title {
    font-weight: 800;
    font-size: 15px;
}

/* -------------------------------
   Тёмная тема (если на сайте есть)
   Подключай класс на <body>, например .dark
-------------------------------- */
.dark .tooltip-content {
    background: rgba(17, 24, 39, 0.98);
    color: #e5e7eb;
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}
.dark .tooltip-status {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.08);
    color: #e5e7eb;
}
.dark .tooltip-status.status-free {
    background: color-mix(in srgb, var(--free) 20%, transparent);
    border-color: color-mix(in srgb, var(--free) 45%, transparent);
    color: #b7f7d3;
}
.dark .tooltip-status.status-busy {
    background: color-mix(in srgb, var(--busy) 20%, transparent);
    border-color: color-mix(in srgb, var(--busy) 45%, transparent);
    color: #fecaca;
}
.dark .tooltip-status.status-ready {
    background: color-mix(in srgb, var(--ready) 20%, transparent);
    border-color: color-mix(in srgb, var(--ready) 45%, transparent);
    color: #fde68a;
}

/* -------------------------------
   Адаптив под мобилу
-------------------------------- */
@media (max-width: 768px) {
    .tooltip-content {
        border-radius: 14px;
        padding: 14px 16px;
    }
    .tooltip-title {
        font-size: 17px;
    }
    .tooltip-area,
    .tooltip-price,
    .tooltip-fullprice {
        font-size: 15px;
    }
}

/* -------------------------------
   Страховка на всякий случай
-------------------------------- */
.newGenplanWrapper {
    position: relative; /* если вдруг решишь сделать absolute — не мешает */
}
