.flat-plan-heading {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.flat-plan-interactive {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 2rem;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    padding: 10px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.flat-plan-image {
    width: 100%;
    height: auto;
    display: block;
}

.flat-plan-svg {
    position: absolute;
    top: 10px;
    left: 10px;
    width: calc(100% - 20px);
    height: calc(100% - 20px);
    pointer-events: none;
}

.flat-area {
    pointer-events: auto;
    cursor: pointer;
    stroke-width: 3;
    stroke: transparent;
    transition: fill 0.2s ease, stroke 0.2s ease;
}

.flat-area.flat-status-free {
    fill: rgba(91, 192, 222, 0.18);
}

.flat-area.flat-status-reserved {
    fill: rgba(255, 153, 2, 0.18);
}

.flat-area.flat-status-sold {
    fill: rgba(231, 76, 60, 0.18);
}

.flat-area.flat-status-free.hovered,
.flat-area.flat-status-free.is-active {
    fill: rgba(91, 192, 222, 0.45);
    stroke: #5bc0de;
}

.flat-area.flat-status-reserved.hovered,
.flat-area.flat-status-reserved.is-active {
    fill: rgba(255, 153, 2, 0.45);
    stroke: #ff9902;
}

.flat-area.flat-status-sold.hovered,
.flat-area.flat-status-sold.is-active {
    fill: rgba(231, 76, 60, 0.45);
    stroke: #e74c3c;
}

.flat-plan-tooltip {
    display: none;
    position: absolute;
    background: rgba(0, 0, 0, 0.78);
    color: #fff;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 13px;
    line-height: 1.6;
    pointer-events: none;
    z-index: 100;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    min-width: 200px;
}

.flat-plan-tooltip .tooltip-name {
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 6px;
    color: #ff9902;
}

.flat-plan-tooltip .tooltip-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.flat-plan-tooltip .tooltip-row span:first-child {
    color: #bbb;
}

.flat-plan-tooltip .tooltip-row span:last-child {
    font-weight: 600;
}

.flat-plan-tooltip .tooltip-status {
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    font-weight: 700;
    text-align: center;
}

.flat-plan-tooltip .tooltip-status.status-free {
    color: #5bc0de;
}

.flat-plan-tooltip .tooltip-status.status-reserved {
    color: #ff9902;
}

.flat-plan-tooltip .tooltip-status.status-sold {
    color: #e74c3c;
}

.flat-plan-tooltip .tooltip-hint {
    margin-top: 6px;
    font-size: 11px;
    color: #aaa;
    text-align: center;
}
