#haus>.story-text{margin-top:0}
.interactive-floor-gallery{align-self:stretch;display:flex;flex-direction:column;background:#f4f3ec}
.floor-viewer-stage{position:relative;isolation:isolate;min-width:0;flex:1;min-height:420px;background:radial-gradient(ellipse at 50% 42%,#fffefb 0%,#efeee5 85%);border-radius:20px 20px 0 0;overflow:hidden}
#floor-model{display:block;width:100%;height:100%;min-height:420px;position:absolute;inset:0;--poster-color:transparent;--progress-bar-height:0;background:transparent;outline-offset:-5px}
.floor-model-poster{width:100%;height:100%;object-fit:contain;pointer-events:none}
.floor-static-fallback{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;pointer-events:none}
.floor-viewer-topline{position:absolute;z-index:2;left:20px;right:20px;top:18px;display:flex;align-items:center;justify-content:space-between;gap:10px;pointer-events:none}
.floor-viewer-badge{font-size:.8125rem;color:var(--muted);letter-spacing:.02em;padding:10px 14px;background:#fbfaf7dd;border-radius:24px;pointer-events:none}
.floor-tool{display:inline-flex;align-items:center;justify-content:center;min-width:44px;height:44px;gap:8px;flex-shrink:0;padding:0 12px;border:1px solid #d5dbd0;border-radius:50%;background:#fbfaf7ee;color:var(--ink);font-size:1.4rem;line-height:1;pointer-events:auto;box-shadow:0 3px 12px #1c392208;touch-action:manipulation}
.floor-tool-label{border-radius:24px;font-size:.8125rem;padding-inline:15px}
.floor-tool[aria-pressed=true]{background:var(--green);color:#fff;border-color:var(--green)}
.floor-tool:disabled{opacity:.4;cursor:default}
.floor-viewer-tools{position:absolute;z-index:2;left:20px;right:20px;bottom:16px;display:flex;justify-content:center;align-items:center;gap:8px;pointer-events:none}
.floor-zoom-tools{display:flex;gap:5px}
.floor-viewer-loading{position:absolute;inset:auto 15px 80px;text-align:center;font-size:.8125rem;color:var(--muted);padding:9px 14px;border-radius:20px;background:#fbfaf7ee;width:max-content;max-width:calc(100% - 30px);margin:auto;pointer-events:none}
.floor-viewer-hint{text-align:center;font-size:.8125rem;line-height:1.5;color:var(--muted);padding:12px 15px 16px}
.floor-switch-strip{margin-top:auto;min-height:82px;padding:14px 22px!important;border-top:1px solid #dce0d3;background:#e9eddf;touch-action:pan-y;user-select:none;cursor:ew-resize}
.floor-switch-strip>span:first-child{font-variant-numeric:tabular-nums;flex-shrink:0}
.floor-switch-strip>span:nth-child(2){font-size:.8125rem;line-height:1.35;text-align:center}
.floor-switch-strip .round{width:44px;height:44px;min-width:44px;background:var(--paper);flex-shrink:0}
.floor-viewer-error{padding:0 22px 15px;text-align:center}
.floor-viewer-error p{font-size:.875rem;margin-bottom:6px;color:var(--muted)}
.floor-viewer-error button{font-size:.875rem}
.floor-3d-dialog{position:fixed;inset:0;width:min(1500px,96vw);max-width:96vw;max-height:96svh;margin:auto;padding:0;border:0;border-radius:22px;background:var(--paper);color:var(--ink);box-shadow:0 20px 100px #14281955}
.floor-3d-dialog::backdrop{background:#13261ed9;backdrop-filter:blur(7px)}
.floor-3d-dialog-header{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:14px 22px}
.floor-3d-dialog-header h2{font-size:1.1rem;letter-spacing:0;margin:0}
.floor-3d-dialog .floor-viewer-stage{height:calc(94svh - 195px);min-height:280px;flex:none;border-radius:0}
.floor-3d-dialog .floor-viewer-hint{margin:0;padding:12px 15px 18px}
@media(hover:hover) and (pointer:fine){.floor-tool:not(:disabled):hover{background:#e7eddf}.floor-tool[aria-pressed=true]:hover{background:#244d3c}}
@media(max-width:1100px){.floor-viewer-stage{min-height:440px}#floor-model{min-height:440px}}
@media(max-width:700px){.floor-viewer-stage{min-height:370px}#floor-model{min-height:370px}.floor-viewer-topline{left:12px;right:12px;top:12px}.floor-viewer-tools{left:10px;right:10px;bottom:12px;gap:6px}.floor-tool-label{padding-inline:12px;font-size:.75rem}.floor-viewer-hint{font-size:.75rem;padding:10px 8px 14px}.floor-switch-strip{padding-inline:15px!important}.floor-3d-dialog{width:100%;max-width:100%;max-height:100svh;border-radius:0}.floor-3d-dialog-header{padding:calc(12px + env(safe-area-inset-top)) 16px 12px}.floor-3d-dialog .floor-viewer-stage{height:calc(100svh - 210px - env(safe-area-inset-top) - env(safe-area-inset-bottom));min-height:240px}.floor-3d-dialog #floor-model{min-height:240px}.floor-3d-dialog .floor-switch-strip{padding-bottom:calc(14px + env(safe-area-inset-bottom))!important}}
@media(prefers-reduced-transparency:reduce){.floor-tool,.floor-viewer-badge,.floor-viewer-loading{background:var(--paper)}}

/* Controls stay outside the canvas so zoomed rooms are never hidden by them. */
.floor-navigation-selects{display:flex;gap:12px;padding:14px 18px;background:#f4f3ec;border-radius:20px 20px 0 0}
.floor-navigation-selects label{display:flex;align-items:center;gap:10px;min-width:0;flex:1;font-size:.875rem;color:var(--muted)}
.floor-navigation-selects select{min-width:0;width:100%;min-height:44px;padding:8px 30px 8px 12px;border:1px solid #d5dbd0;border-radius:12px;background:var(--paper);color:var(--ink);font:inherit;font-size:1rem}
.floor-navigation-selects .floor-large-floor-label{display:none}
.floor-navigation-selects [hidden]{display:none}
.floor-viewer-stage{border-radius:0}
.floor-pan-surface{position:absolute;inset:0;z-index:1;touch-action:none;cursor:grab;outline-offset:-5px}
.floor-pan-surface:active{cursor:grabbing}
.floor-pan-surface[hidden]{display:none}
.floor-interaction-mode{display:flex;align-self:center;padding:4px;margin:12px 12px 0;border:1px solid #d5dbd0;border-radius:28px;background:#e9eddf}
.floor-interaction-mode button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:8px 20px;border:0;border-radius:24px;font:inherit;font-size:.875rem;background:transparent;color:var(--ink);touch-action:manipulation}
.floor-mode-icon{width:18px;height:18px;flex:none}
.floor-interaction-mode button[aria-pressed=true]{background:var(--green);color:white}
.floor-interaction-mode button:disabled{opacity:.4}
.floor-viewer-tools{position:relative;inset:auto;flex-wrap:wrap;gap:8px;margin:10px 12px 0;pointer-events:auto}
.floor-tool-label{font-size:.875rem}
.floor-viewer-hint{margin:0;min-height:40px;font-size:.875rem;padding:10px 16px 12px}
.floor-viewer-loading{bottom:20px}
.floor-viewer-badge{max-width:calc(100% - 60px);font-size:.875rem;line-height:1.3}
.floor-3d-dialog .floor-navigation-selects .floor-large-floor-label{display:flex}
.floor-3d-dialog .floor-viewer-stage{height:clamp(220px,calc(94svh - 350px),900px);min-height:220px}
.floor-3d-dialog #floor-model{min-height:220px}
.floor-3d-dialog .floor-switch-strip{min-height:60px;padding-block:8px!important}
.floor-3d-dialog .floor-viewer-hint{padding-block:8px}
.floor-3d-dialog .floor-navigation-selects{border-radius:0}
@media(max-width:700px){
 .floor-navigation-selects{padding:10px 12px;gap:8px}
 .floor-navigation-selects label{display:flex;flex-direction:column;align-items:stretch;gap:4px}
 .floor-viewer-tools{gap:6px;margin-inline:8px}
 .floor-tool-label{padding-inline:12px}
 .floor-viewer-hint{font-size:.8125rem}
 .floor-3d-dialog .floor-viewer-stage{height:calc(100svh - 375px - env(safe-area-inset-top) - env(safe-area-inset-bottom));min-height:200px}
 .floor-3d-dialog #floor-model{min-height:200px}
 .floor-3d-dialog .floor-switch-strip{padding-bottom:calc(8px + env(safe-area-inset-bottom))!important}
}
@media(max-width:350px){.floor-tool-label{padding-inline:9px}.floor-viewer-tools{gap:4px}.floor-zoom-tools{gap:4px}}
.floor-3d-dialog[open]{display:flex;flex-direction:column;height:96svh;overflow:auto}
.floor-3d-dialog .floor-3d-dialog-header{flex-shrink:0}
.floor-3d-dialog .floor-3d-dialog-header h2{font-size:1.1rem;line-height:1.3;letter-spacing:0}
.floor-3d-mount{flex:1;min-height:0;display:flex}
.floor-3d-mount .interactive-floor-gallery{flex:1;min-height:0}
.floor-3d-dialog .floor-viewer-stage{flex:1;height:auto;min-height:150px}
.floor-3d-dialog #floor-model{min-height:0}
.floor-3d-dialog .floor-navigation-selects,.floor-3d-dialog .floor-interaction-mode,.floor-3d-dialog .floor-viewer-tools,.floor-3d-dialog .floor-viewer-hint,.floor-3d-dialog .floor-switch-strip{flex-shrink:0}
.floor-3d-dialog .floor-switch-strip{display:none}
@media(max-width:700px){.floor-3d-dialog[open]{height:100svh}}

.floor-display-options{display:flex;justify-content:center;gap:28px;padding:4px 12px 10px;flex-shrink:0;background:#f4f3ec}
.floor-display-options label{display:flex;align-items:center;gap:8px;min-height:44px;font-size:.875rem;cursor:pointer}
.floor-display-options input{width:20px;height:20px;accent-color:var(--green);cursor:pointer}
.floor-view-mode{display:flex;gap:3px;padding:3px;border:1px solid #d5dbd0;border-radius:24px;background:#e9eddf}
.floor-view-mode .floor-tool{border:0;box-shadow:none;background:transparent;padding-inline:12px}
.floor-view-mode .floor-tool[aria-pressed=true]{background:var(--green)}
.floor-interaction-mode[hidden]{display:none}
.floor-area-anchor{width:0;height:0;pointer-events:none;opacity:0}
.floor-area-labels{position:absolute;inset:0;z-index:2;pointer-events:none;overflow:hidden}
.floor-area-label{position:absolute;left:0;top:0;width:max-content;max-width:160px;min-height:44px;padding:8px 10px;background:#fbfaf7f5;color:var(--green);border:1px solid #bdcbb9;border-radius:12px;box-shadow:0 2px 10px #173b2010;pointer-events:auto;font:inherit;font-size:.875rem;line-height:1.35}
.floor-area-label[hidden]{display:none}
.floor-measure-summary{padding:12px 18px;margin:10px 12px 0;background:#e9eddf;border-radius:12px;flex-shrink:0;line-height:1.45;font-size:.875rem}
.floor-measure-summary p{margin:4px 0;font-size:inherit}
.floor-measure-summary small{display:block;color:var(--muted);font-size:.75rem;line-height:1.45}
.floor-measure-summary[hidden]{display:none}
.floor-3d-dialog .floor-measure-summary{max-height:140px;overflow:auto}
.floor-3d-dialog .floor-3d-mount{min-height:450px}
@media(max-width:700px){.floor-area-label{max-width:138px}.floor-viewer-tools{gap:5px}.floor-view-mode .floor-tool{padding-inline:10px}.floor-measure-summary{margin-inline:8px;padding:10px 12px}.floor-3d-dialog .floor-3d-mount{min-height:470px}}
@media(max-width:350px){.floor-viewer-tools .floor-tool-label{padding-inline:7px;font-size:.8125rem}.floor-view-mode{gap:0;padding:2px}.floor-viewer-tools{margin-inline:6px;gap:4px}}
/* Room photos appear after a room is selected. */
.floor-room-actions[hidden]{display:none!important}
.floor-room-actions{display:flex;align-items:center;flex-wrap:wrap;gap:6px 14px;padding:12px 22px;flex-shrink:0}
.floor-room-photo{min-height:44px;background:var(--green);border:1px solid var(--green);color:#fff;border-radius:24px;padding:10px 18px;font-size:.875rem;font-weight:500}
#floor-photo-note{font-size:.75rem;color:var(--muted)}
@media(max-width:700px){.floor-room-actions{padding-inline:12px}.floor-room-actions #floor-photo-note{display:none}}
