.building-page {
    color: #0f172a;
}

.building-page h2 {
    margin-bottom: 8px;
    font-weight: 600;
}

.building-description,
.building-hint {
    color: #64748b;
    font-size: 14px;
}

.building3d {
    width: 100%;
    height: 680px;
    min-height: 420px;
    overflow: hidden;
    background: transparent;
}

.building3d canvas {
    display: block;
    width: 100%;
    height: 100%;
}

.building-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin: 16px 0;
    padding: 14px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
}

.building-legend span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.legend-dot.water {
    background: #078cff;
}

.legend-dot.electric {
    background: #f97316;
}

.legend-dot.water-alert {
    background: #1a8dff;
}

.legend-dot.electric-alert {
    background: #ffc400;
}

.legend-dot.hot-alert {
    background: #ff2d55;
}

.legend-dot.heating-alert {
    background: #ff4bd8;
}

.legend-dot.data-alert {
    background: #65ff70;
}

.legend-dot.walls {
    background: #b9c9dd;
}

.legend-dot.equipment {
    background: #526780;
}

.building-hint {
    margin-top: 10px;
}

@media (max-width: 768px) {
    .building3d {
        height: 480px;
    }

    .building-legend {
        gap: 10px;
    }
}
