/* ── Wrapper ── */
.floor-map-wrap {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    font-family: 'Segoe UI', system-ui, sans-serif;
}

.floor-map-wrap img.floor-img {
    display: block;
    width: 100%;
    height: auto;
}

/* ── SVG překryvná vrstva ── */
.floor-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
}

/* ── Apartmán ── */
.apt-group {
    pointer-events: all;
    cursor: pointer;
}

.apt-shape {
    fill: #BC9567;
    fill-opacity: 0;
    stroke: #BC9567;
    stroke-width: 3;
    stroke-opacity: 0;
    transition: fill-opacity 0.2s ease, stroke-opacity 0.2s ease;
}

.apt-group:hover .apt-shape {
    fill-opacity: 0.3;
    stroke-opacity: 0.9;
}

.apt-group.active .apt-shape {
    fill-opacity: 0.45;
    stroke-opacity: 1;
}

/* ── Detail panel ── */
.fm-detail {
    position: absolute;
    background: #fff;
    border: 1px solid #e0d5c5;
    border-radius: 10px;
    padding: 18px 20px 16px;
    width: 240px;
    box-shadow: 0 8px 28px rgba(0,0,0,0.13);
    pointer-events: all;
    z-index: 10;
    display: none;
}

.fm-detail.visible {
    display: block;
}

.fm-close {
    position: absolute;
    top: 10px; right: 12px;
    background: none;
    border: none;
    font-size: 20px;
    color: #b0a090;
    cursor: pointer;
    line-height: 1;
    padding: 0;
}
.fm-close:hover { color: #1a2840; }

.fm-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #a09080;
    margin: 0 0 2px;
}

.fm-name {
    font-size: 17px;
    font-weight: 600;
    color: #1a2840;
    margin: 0 0 8px;
}

.fm-status {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    margin-bottom: 12px;
}

.fm-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 14px;
}

.fm-cell {
    background: #faf7f3;
    border-radius: 6px;
    padding: 7px 10px;
}

.fm-cell-label {
    font-size: 10px;
    color: #a09080;
    margin: 0 0 2px;
}

.fm-cell-val {
    font-size: 14px;
    font-weight: 600;
    color: #1a2840;
    margin: 0;
}

.fm-btn {
    display: block;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    padding: 9px;
    background: #BC9567;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    border-radius: 7px;
    text-decoration: none;
    transition: background 0.15s;
}

.fm-btn:hover {
    background: #a07d50;
    color: #fff;
}
