/* =========================================================
   MOD_WYBOR_PIETRA – Joomla 6
   Wszystkie style są ograniczone do modułu.
   ========================================================= */

.mod-wybor-pietra {
    width: 100%;
    position: relative;
    font-family: Arial, Helvetica, sans-serif;
    line-height: 0;
}

.mod-wybor-pietra__svg {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
    overflow: visible;
}

/* Dostępne / aktywne piętro */
.mod-wybor-pietra .shape {
    fill: transparent;
    cursor: pointer;
    transition: fill 0.45s ease;
}

/* Hover – zielony */
.mod-wybor-pietra .shape:hover,
.mod-wybor-pietra .shape:focus {
    fill: rgba(151, 177, 109, 0.79);
}

/* Sprzedane / niedostępne */
.mod-wybor-pietra .shapesprzedany {
    fill: rgba(109, 109, 108, 0.50);
    transition: fill 0.2s ease;
}

.mod-wybor-pietra .shapesprzedany:hover,
.mod-wybor-pietra .shapesprzedany:focus {
    fill: rgba(109, 109, 108, 0.90);
}

/* Zarezerwowane */
.mod-wybor-pietra .shapereserved {
    fill: transparent;
    cursor: pointer;
    transition: fill 0.45s ease;
}

.mod-wybor-pietra .shapereserved:hover,
.mod-wybor-pietra .shapereserved:focus {
    fill: rgba(169, 144, 90, 0.90);
}

/* Budynek / etap informacyjny */
.mod-wybor-pietra .shapewykonczony {
    fill: transparent;
    cursor: help;
    transition: fill 0.35s ease;
}

.mod-wybor-pietra .shapewykonczony:hover {
    fill: rgba(78, 78, 78, 0.78);
}

/* Tooltip */
.mod-wybor-pietra__tooltip {
    position: fixed;
    display: none;
    pointer-events: none;
    z-index: 99999;
    max-width: min(360px, calc(100vw - 24px));
    padding: 8px 12px;
    background: #fff;
    color: #333;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.14);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.35;
    white-space: nowrap;
}

/* Na urządzeniach dotykowych tooltip nie jest potrzebny. */
@media (hover: none), (pointer: coarse) {
    .mod-wybor-pietra__tooltip {
        display: none !important;
    }
}

/* Delikatne ograniczenie szerokości na bardzo dużych ekranach – opcjonalne.
   Można usunąć, jeśli grafika ma zawsze rozciągać się na 100%. */
.mod-wybor-pietra img {
    max-width: 100%;
}
