/* property-map.css — klikitav kruntide kaart + info-kaart (vasakus ulanurgas) */

.plot-map {
    position: relative;
    display: block;
    line-height: 0;
}
.plot-map svg {
    display: block;
    width: 100%;
    height: auto;
}

/* Krundid — varv tuleb CSS-ist (mitte SVG sees), et hover saaks muuta */
.plot-map svg [id^="plot-"] {
    fill: #073edf; /* krundi pohivarv (sinine) */
    cursor: pointer;
    transition: fill 0.15s ease;
}
.plot-map svg [id^="plot-"]:hover {
    fill: #4d8bff; /* hele sinine — hiire all */
}
.plot-map svg [id^="plot-"].is-active {
    fill: #032a8a; /* tume sinine — valitud krunt */
}
/* Muudud (sold) krunt — hall, ei klikita, hover ei muuda varvi */
.plot-map svg [id^="plot-"].is-sold {
    fill: #9aa1ad;
    cursor: default;
    pointer-events: none;
}
/* Numbrid krundi peal — klikid lahevad lapi (krundi) kuni alla */
.plot-map svg #plots path:not([id]) {
    pointer-events: none;
}

/* Info-kaart */
.plot-card {
    position: absolute;
    top: 24px;
    left: 24px;
    z-index: 10;
    min-width: 230px;
    max-width: 300px;
    background: #fff;
    box-shadow:
        0 12px 34px rgba(7, 62, 223, 0.18),
        0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 22px 24px;
    line-height: 1.5;
    text-align: left; /* tuhista paritud text-center */
    box-sizing: border-box;
}
.plot-card[hidden] {
    display: none;
}

.plot-card h3 {
    margin: 0 0 14px;
    padding-right: 22px; /* ruumi sulgemisnupule (×) */
    color: #073edf;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.2;
    text-align: left;
}
.plot-card .row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin: 0; /* tuhista Bootstrapi .row negatiivne margin */
    padding: 5px 0;
    font-size: 15px;
}
.plot-card .row span {
    color: #6b7280;
}
.plot-card .row b {
    color: #111827;
    font-weight: 600;
    text-align: right;
}

.plot-card-close {
    position: absolute;
    top: 8px;
    right: 12px;
    border: 0;
    background: none;
    font-size: 24px;
    line-height: 1;
    color: #9ca3af;
    cursor: pointer;
    padding: 4px;
}
.plot-card-close:hover {
    color: #111827;
}

/* Info-sisu sektsioon — ainult andmete hoidmiseks, ei kuvata otse */
.plot-modals {
    display: none;
}

@media (max-width: 575px) {
    .plot-card {
        top: 10px;
        left: 10px;
        min-width: 150px;
        max-width: 62%;
        padding: 13px 15px;
        border-radius: 10px;
    }
    .plot-card h3 {
        font-size: 16px;
        margin-bottom: 8px;
    }
    .plot-card .row {
        font-size: 12px;
        padding: 3px 0;
        gap: 8px;
    }
}
