/* Floor plan selector: keep styles local to this page component. */
.floorplan-selector { margin: 32px auto; max-width: 1200px; background: #fff; border: 1px solid #cbd6db; box-shadow: 0 8px 28px #153d5012; }
.floorplan-tabs { display: flex; flex-wrap: wrap; gap: 4px; padding: 12px; background: #eef4f5; }
.floorplan-tabs a { flex: 1 1 160px; padding: 16px 10px; text-align: center; text-decoration: none; color: #154d68; background: #fff; border: 1px solid #b9cbd3; font-weight: bold; border-radius: 4px; }
.floorplan-tabs a:hover { background: #e0edf1; }
.floorplan-tabs a[aria-selected="true"] { color: #fff; background: #126e98; border-color: #126e98; }
.floorplan-selector a:focus-visible { outline: 3px solid #b76b00; outline-offset: 3px; }
.floorplan-panel { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(260px, 1fr); align-items: center; gap: 36px; padding: 40px; border-top: 1px solid #dce5e8; }
.floorplan-panel[hidden] { display: none; }
.floorplan-image { display: block; text-align: center; }
.floorplan-image img { display: block; width: 100%; height: 470px; object-fit: contain; margin: auto; }
#floorplans .floorplan-info h2 { margin: 0 0 20px; color: #154d68; font-size: 30px; }
.floorplan-info p { margin: 16px 0; }
.floorplan-type { font-size: 20px; }
.floorplan-price { font-size: 24px; font-weight: bold; color: #154d68; }
.floorplan-actions { display: flex; flex-direction: column; gap: 12px; margin-top: 28px; }
.floorplan-actions a { padding: 14px 20px; background: #126e98; color: #fff; border-radius: 28px; text-align: center; text-decoration: none; font-weight: bold; }
.floorplan-actions a:hover { background: #285e42; }
.floorplan-hint { font-size: 14px; color: #52636b; }
@media (max-width: 700px) { .floorplan-panel { grid-template-columns: minmax(0, 1fr); gap: 24px; padding: 24px 16px; } .floorplan-image img { height: auto; max-height: 430px; } .floorplan-info { text-align: center; } .floorplan-tabs a { flex-basis: 120px; } }

.floorplan-popup { position: fixed; inset: 0; margin: auto; box-sizing: border-box; width: min(1000px, 90vw); max-width: 90vw; max-height: 90vh; max-height: 90dvh; padding: 56px 24px 24px; border: 0; border-radius: 8px; background: #fff; box-shadow: 0 12px 50px #0005; }
.floorplan-popup::backdrop { background: #102630cc; }
.floorplan-popup img { display: block; margin: 0 auto; width: 100%; height: min(700px, calc(90vh - 80px)); height: min(700px, calc(90dvh - 80px)); object-fit: contain; }
.floorplan-popup-close { position: absolute; top: 8px; right: 10px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: #126e98; color: white; font-size: 30px; line-height: 1; cursor: pointer; }
.floorplan-popup-close:focus-visible { outline: 3px solid #b76b00; outline-offset: 3px; }
html.floorplan-popup-open { overflow: hidden; }
