.rr-floor-plan { margin: 2.5rem 0; }
.rr-floor-figure { margin: 1rem 0 0; padding: 1.25rem; background: #f7f4ed; text-align: center; }
.rr-floor-preview { display: block; width: fit-content; max-width: 100%; margin: auto; cursor: zoom-in; }
.rr-floor-preview img { display: block; width: auto; height: auto; max-width: 100%; max-height: 460px; object-fit: contain; }
.rr-floor-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem 1.5rem; margin-top: 1rem; font-size: .9rem; }
.rr-floor-actions a { text-decoration: underline; text-underline-offset: .2em; }
.rr-floor-dialog:not([open]) { display: none; }
.rr-floor-dialog { box-sizing: border-box; position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; padding: 0; margin: 0; border: 0; background: #f7f4ed; color: #302b24; overflow: hidden; }
.rr-floor-dialog[open] { display: flex; flex-direction: column; }
.rr-floor-dialog::backdrop { background: rgba(30, 26, 22, .75); }
.rr-floor-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .65rem; padding: .75rem 1rem; border-bottom: 1px solid #c8bda8; background: #fff; flex: 0 0 auto; }
.rr-floor-toolbar h2 { font-size: clamp(1rem, 2.5vw, 1.4rem) !important; margin: 0 !important; line-height: 1.2; }
.rr-floor-controls { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
.rr-floor-controls button { min-width: 42px; min-height: 44px; border: 1px solid #a99b84; background: #fff; color: #302b24; font: inherit; padding: .4rem .65rem; cursor: pointer; }
.rr-floor-controls button:disabled { opacity: .45; cursor: default; }
.rr-floor-controls button[data-floor-close] { background: #4e4438; color: #fff; }
.rr-floor-controls span { min-width: 3.2em; text-align: center; font-variant-numeric: tabular-nums; font-size: .85rem; }
.rr-floor-viewport { flex: 1 1 auto; min-height: 0; min-width: 0; overflow: auto; overscroll-behavior: contain; }
.rr-floor-canvas { display: grid; place-items: center; box-sizing: border-box; min-width: 100%; min-height: 100%; width: max-content; height: max-content; padding: 12px; }
.rr-floor-canvas img { display: block; max-width: none !important; max-height: none !important; object-fit: contain; }
html.rr-floor-open { overflow: hidden; }
.rr-floor-plan a:focus-visible, .rr-floor-dialog button:focus-visible, .rr-floor-viewport:focus-visible { outline: 2px solid #8b7043; outline-offset: 3px; }
@media (max-width: 600px) { .rr-floor-figure { padding: .75rem; } .rr-floor-toolbar { padding: .6rem .75rem; } .rr-floor-preview img { max-height: 400px; } }
