:root {
  --ink: #201e1a;
  --paper: #f2eee7;
  --line: rgba(49, 44, 36, 0.17);
  --bronze: #9a7250;
  --font-display: Georgia, 'Times New Roman', serif;
  --font-sans: Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--paper); color: var(--ink); }
body { font-family: var(--font-sans), sans-serif; }
button { font: inherit; }

.tour-shell { min-height: 100vh; padding: 18px; --floor-accent: #8b725c; --floor-accent-dark: #43382f; }
.tour-shell[data-floor='interrato'] { --floor-accent: #a86f46; --floor-accent-dark: #4d3325; }
.tour-shell[data-floor='terra'] { --floor-accent: #64886b; --floor-accent-dark: #2e4934; }
.tour-shell[data-floor='primo'] { --floor-accent: #6687a8; --floor-accent-dark: #31485f; }
.tour-shell[data-floor='sundeck'] { --floor-accent: #b08b45; --floor-accent-dark: #594522; }
.tour-shell[data-floor='esterni'] { --floor-accent: #4e898b; --floor-accent-dark: #25484a; }
.tour-header { position: sticky; top: 0; z-index: 50; border: 1px solid var(--line); border-bottom: 0; background: rgba(248, 245, 239, 0.97); box-shadow: 0 12px 30px rgba(39, 34, 28, .08); backdrop-filter: blur(14px); }
.agent-strip { min-height: 80px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 5px 18px; background: #27241f; color: #f7f2e9; }
.agent-brand { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
.agent-logo-card { position: relative; width: 152px; height: 70px; flex: 0 0 auto; overflow: hidden; border-radius: 4px; background: #fff; box-shadow: 0 4px 18px rgba(0,0,0,.2); }
.agent-logo-card img { position: absolute; left: 50%; top: 50%; width: 156px; max-width: none; height: 156px; transform: translate(-50%, -50%); object-fit: contain; }
.agent-identity { display: grid; line-height: 1.1; }
.agent-identity strong { font-family: var(--font-display), serif; font-size: 17px; font-weight: 600; letter-spacing: .01em; }
.agent-identity small { margin-top: 3px; color: #b9afa4; font-size: 7px; font-weight: 800; letter-spacing: .18em; }
.agent-contacts { display: flex; align-items: center; gap: 8px; }
.agent-contacts a { min-width: 166px; display: grid; gap: 2px; padding: 7px 11px; border: 1px solid rgba(255,255,255,.15); border-radius: 3px; color: inherit; text-decoration: none; transition: border-color .2s, background .2s; }
.agent-contacts a:hover, .agent-contacts a:focus-visible { border-color: #c39a74; background: rgba(255,255,255,.06); outline: none; }
.agent-contacts span { color: #aaa095; font-size: 7px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.agent-contacts strong { font-size: 10px; font-weight: 700; letter-spacing: .025em; }
.project-strip { min-height: 64px; display: flex; align-items: center; gap: 14px; padding: 0 18px; }
.property-brand { display: flex; align-items: center; gap: 14px; }
.brand-mark { width: 38px; height: 38px; display: grid; flex: 0 0 auto; place-items: center; border: 1px solid #8f6d51; border-radius: 50%; color: #76583f; font-family: var(--font-display), serif; font-size: 22px; }
.eyebrow { margin: 0 0 3px; font-size: 9px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: #766e63; }
.project-strip h1 { margin: 0; font-family: var(--font-display), serif; font-size: 27px; font-weight: 600; line-height: 1; }
.header-meta { margin-left: auto; display: flex; align-items: center; gap: 20px; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: #665e54; }
.status-dot::before { content: ''; display: inline-block; width: 6px; height: 6px; margin-right: 8px; border-radius: 50%; background: #779177; }
.tour-toolbar { min-height: 48px; display: flex; justify-content: flex-end; gap: 7px; padding: 7px 12px; border: 1px solid var(--line); border-bottom: 0; background: #f8f5ef; }
.tour-toolbar button { min-height: 34px; display: flex; align-items: center; gap: 7px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: #4d473f; font-size: 8px; font-weight: 900; letter-spacing: .11em; text-transform: uppercase; cursor: pointer; }
.tour-toolbar button:hover, .tour-toolbar button:focus-visible { border-color: var(--floor-accent); color: var(--floor-accent-dark); outline: none; }
.tour-toolbar button span { font-size: 14px; }
.tour-toolbar .plans-primary { font-size: 12px; min-height: 42px; padding: 0 20px; letter-spacing: .035em; color: #fff; background: #4f614f; border-color: #4f614f; }
.tour-toolbar .plans-primary:hover, .tour-toolbar .plans-primary:focus-visible { background: #3c503d; color: #fff; }

.tour-grid { min-height: calc(100vh - 229px); display: grid; grid-template-columns: 236px minmax(0, 1fr); border: 1px solid var(--line); background: #f8f5ef; }
.floor-nav { padding: 22px 12px; border-right: 1px solid var(--line); max-height: max(680px, calc(100vh - 229px)); overflow-y: auto; }
.nav-title { margin: 0 0 18px 10px; font-size: 10px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: #776f64; }
.floor-button { width: 100%; display: grid; grid-template-columns: 34px 1fr; align-items: center; gap: 9px; padding: 11px 9px; border: 0; border-radius: 3px; background: transparent; color: #70685d; text-align: left; cursor: pointer; transition: background .2s, color .2s; }
.floor-button:hover { background: #ebe4da; }
.floor-button.active { background: var(--floor-accent-dark); color: #fff; box-shadow: inset 3px 0 0 var(--floor-accent); }
.floor-index { width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid currentColor; border-radius: 50%; font-size: 10px; }
.floor-button span:last-child { font-size: 12px; font-weight: 700; }
.nav-rule { height: 1px; margin: 24px 10px; background: var(--line); }
.nav-note { margin: 0 10px; font-family: var(--font-display), serif; color: #777065; font-size: 14px; line-height: 1.45; }
.left-room-list { display: grid; gap: 5px; }
.left-room-list .room-link { width: 100%; min-height: 42px; font-size: 11px; padding: 8px; }
.left-room-list .room-link span { font-size: 9px; }
.nav-plan-button { width: 100%; min-height: 42px; margin-bottom: 8px; padding: 9px; border: 1px solid #4f614f; border-radius: 3px; background: #e3ebe0; color: #304e33; text-align: left; font-size: 11px; font-weight: 700; cursor: pointer; }
.nav-plan-button.active { background: #4f614f; color: #fff; }
.floor-nav button:focus-visible { outline: 2px solid #4f614f; outline-offset: 2px; }
.nav-room-info { margin: 20px 8px 14px; color: #6e665c; font-size: 11px; line-height: 1.5; }
.nav-room-info p { margin: 0 0 8px; }
.nav-room-info small { font-size: 10px; font-weight: 700; }
.tour-disclaimer { margin: 10px 0 0; color: #7e776d; font-size: 10px; line-height: 1.5; }

.viewer { position: relative; min-height: 680px; overflow: hidden; outline: none; background: #1e1d1a; }
.viewer > .active-render { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; animation: render-in .36s ease both; }
.viewer > .active-render.contain { object-fit: contain; background: #1e1d1a; }
[hidden] { display: none !important; }
@keyframes render-in { from { opacity: .35; transform: scale(1.008); } to { opacity: 1; transform: scale(1); } }
.viewer-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.39), transparent 28%, transparent 66%, rgba(0,0,0,.52)); pointer-events: none; }
.viewer-title { position: absolute; top: 28px; left: 32px; max-width: 72%; color: #fff; text-shadow: 0 2px 16px rgba(0,0,0,.35); }
.viewer-title p { margin: 0 0 4px; font-size: 10px; font-weight: 700; letter-spacing: .17em; text-transform: uppercase; }
.viewer-title h2 { margin: 0; font-family: var(--font-display), serif; font-size: clamp(32px, 3.5vw, 52px); font-weight: 500; line-height: 1.02; }
.floor-chip { position: absolute; z-index: 8; left: 32px; top: 112px; padding: 5px 9px; border: 1px solid rgba(255,255,255,.42); border-radius: 999px; background: color-mix(in srgb, var(--floor-accent-dark) 78%, transparent); color: #fff; font-size: 8px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; backdrop-filter: blur(10px); }
.compass { position: absolute; right: 24px; top: 24px; width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.75); border-radius: 50%; color: #fff; font-size: 9px; }
.compass::after { content: ''; position: absolute; top: 4px; width: 1px; height: 10px; background: #fff; }
.destination-trigger { position: absolute; z-index: 18; right: 78px; top: 24px; min-height: 42px; display: flex; align-items: center; gap: 8px; padding: 0 13px; border: 1px solid rgba(255,255,255,.46); border-radius: 999px; background: rgba(25,24,21,.48); color: #fff; font-size: 9px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; cursor: pointer; backdrop-filter: blur(12px); }
.destination-trigger span { font-size: 15px; line-height: 1; }
.destination-trigger:hover, .destination-trigger:focus-visible { border-color: #fff; background: rgba(25,24,21,.75); outline: none; }
.image-arrow { position: absolute; top: 50%; width: 42px; height: 56px; transform: translateY(-50%); border: 1px solid rgba(255,255,255,.35); background: rgba(27,25,22,.34); color: #fff; font-family: Georgia, serif; font-size: 28px; cursor: pointer; backdrop-filter: blur(8px); transition: background .2s; }
.image-arrow:hover { background: rgba(27,25,22,.72); }
.image-arrow:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.image-status { position: absolute; z-index: 15; right: 18px; bottom: 90px; max-width: calc(100% - 36px); margin: 0; padding: 8px 12px; border-radius: 4px; background: #f8f5ef; color: #39342d; font-size: 11px; line-height: 1.4; }
.image-arrow:disabled { opacity: .22; cursor: default; }
.image-arrow.left { left: 14px; }
.image-arrow.right { right: 14px; }

.hotspot { position: absolute; z-index: 12; width: 48px; height: 48px; display: grid; place-items: center; border: 0; background: transparent; color: #fff; cursor: pointer; transform: translate(-50%, -50%); }
.hotspot-plus { width: 31px; height: 31px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.94); border-radius: 50%; background: color-mix(in srgb, var(--floor-accent-dark) 82%, transparent); box-shadow: 0 0 0 8px rgba(255,255,255,.11), 0 8px 22px rgba(0,0,0,.22); font-size: 16px; line-height: 1; backdrop-filter: blur(8px); transition: transform .2s, background .2s; }
.hotspot:hover .hotspot-plus, .hotspot:focus-visible .hotspot-plus, .hotspot.active .hotspot-plus { transform: scale(1.12); background: var(--floor-accent-dark); }
.hotspot:focus-visible { outline: none; }
.hotspot-card { position: absolute; z-index: 28; left: 50%; bottom: 92px; width: min(330px, calc(100% - 32px)); display: grid; grid-template-columns: 1fr auto; gap: 3px 14px; padding: 15px 15px 14px; transform: translateX(-50%); border: 1px solid rgba(255,255,255,.28); border-radius: 8px; background: rgba(29,27,24,.91); color: #fff; box-shadow: 0 18px 60px rgba(0,0,0,.32); backdrop-filter: blur(16px); }
.hotspot-card > span { grid-column: 1; color: #c9c1b8; font-size: 8px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.hotspot-card > strong { grid-column: 1; font-family: var(--font-display), serif; font-size: 20px; font-weight: 600; }
.hotspot-card > button:not(.hotspot-card-close) { grid-column: 2; grid-row: 1 / 3; align-self: center; min-width: 62px; min-height: 40px; border: 0; border-radius: 999px; background: var(--floor-accent); color: #fff; font-size: 9px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; cursor: pointer; }
.hotspot-card-close { position: absolute; right: -10px; top: -10px; width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.34); border-radius: 50%; background: #2a2824; color: #fff; cursor: pointer; }

.stair-switcher { position: absolute; z-index: 16; right: 24px; top: 84px; display: grid; gap: 5px; padding: 6px; border: 1px solid rgba(255,255,255,.26); border-radius: 999px; background: rgba(28,26,22,.55); backdrop-filter: blur(12px); }
.stair-switcher button { width: 44px; height: 44px; border: 1px solid rgba(255,255,255,.3); border-radius: 50%; background: transparent; color: #fff; font-size: 9px; font-weight: 800; cursor: pointer; }
.stair-switcher button:hover, .stair-switcher button:focus-visible, .stair-switcher button.active { border-color: #fff; background: var(--floor-accent); outline: none; }

.journey-progress { position: absolute; z-index: 14; left: 22px; bottom: 22px; display: grid; gap: 2px; padding: 8px 11px; border: 1px solid rgba(255,255,255,.25); border-radius: 4px; background: rgba(28,26,22,.54); color: #fff; backdrop-filter: blur(12px); }
.journey-progress span { color: #d5cec4; font-size: 7px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.journey-progress strong { font-size: 10px; letter-spacing: .08em; }

.view-switcher { position: absolute; left: 50%; bottom: 20px; display: flex; gap: 7px; transform: translateX(-50%); padding: 7px; border: 1px solid rgba(255,255,255,.26); border-radius: 4px; background: rgba(28,26,22,.56); backdrop-filter: blur(12px); }
.view-button { position: relative; width: 72px; height: 46px; overflow: hidden; border: 1px solid transparent; border-radius: 2px; background: #38342d; color: #fff; cursor: pointer; opacity: .72; transition: opacity .2s, border-color .2s, transform .2s; }
.view-button:hover { opacity: 1; transform: translateY(-2px); }
.view-button.active { border-color: #fff; opacity: 1; }
.view-button img { width: 100%; height: 100%; object-fit: cover; }
.view-button span { position: absolute; right: 4px; bottom: 3px; min-width: 20px; padding: 2px 3px; background: rgba(25,23,20,.7); font-size: 8px; font-weight: 800; }

.route-banner { position: absolute; z-index: 26; left: 50%; bottom: 91px; width: min(560px, calc(100% - 40px)); display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 12px 13px 12px 16px; transform: translateX(-50%); border: 1px solid rgba(255,255,255,.3); border-radius: 8px; background: rgba(29,27,24,.92); color: #fff; box-shadow: 0 18px 60px rgba(0,0,0,.32); backdrop-filter: blur(16px); }
.route-banner > div:first-child { min-width: 0; display: grid; gap: 2px; }
.route-banner span, .route-banner small { color: #c9c1b8; font-size: 7px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.route-banner strong { overflow: hidden; font-family: var(--font-display), serif; font-size: 19px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.route-actions { display: flex; flex: 0 0 auto; gap: 7px; }
.route-actions button { min-height: 39px; padding: 0 13px; border-radius: 999px; font-size: 8px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; cursor: pointer; }
.route-cancel { border: 1px solid rgba(255,255,255,.3); background: transparent; color: #fff; }
.route-continue { border: 0; background: var(--floor-accent); color: #fff; }

.destination-chooser { position: absolute; z-index: 40; left: 26px; top: 88px; width: min(560px, calc(100% - 52px)); max-height: calc(100% - 112px); overflow: auto; padding: 18px; border: 1px solid rgba(255,255,255,.3); border-radius: 10px; background: rgba(26,25,22,.94); color: #fff; box-shadow: 0 24px 90px rgba(0,0,0,.42); backdrop-filter: blur(20px); }
.destination-head { display: flex; align-items: start; justify-content: space-between; gap: 18px; }
.destination-head > div { display: grid; gap: 4px; }
.destination-head span { color: #bdb5ab; font-size: 8px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.destination-head strong { font-family: var(--font-display), serif; font-size: 25px; font-weight: 600; }
.destination-head > button { width: 44px; height: 44px; flex: 0 0 auto; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.26); border-radius: 50%; background: transparent; color: #fff; font-size: 20px; cursor: pointer; }
.destination-floor-tabs { display: flex; gap: 6px; margin: 18px 0 12px; overflow-x: auto; padding-bottom: 2px; }
.destination-floor-tabs button { min-width: max-content; min-height: 42px; display: flex; align-items: center; gap: 7px; padding: 0 11px; border: 1px solid rgba(255,255,255,.2); border-radius: 999px; background: transparent; color: #d7d1c8; font-size: 8px; font-weight: 800; cursor: pointer; }
.destination-floor-tabs button span { width: 24px; height: 24px; display: grid; place-items: center; border: 1px solid currentColor; border-radius: 50%; }
.destination-floor-tabs button.active { border-color: var(--floor-accent); background: var(--floor-accent-dark); color: #fff; }
.destination-route-note { margin: 0 0 10px; padding: 9px 11px; border-left: 3px solid var(--floor-accent); background: rgba(255,255,255,.05); color: #ccc4ba; font-size: 9px; line-height: 1.45; }
.destination-arrival { width: 100%; min-height: 51px; display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 8px; padding: 9px 12px; border: 1px solid var(--floor-accent); border-radius: 5px; background: color-mix(in srgb, var(--floor-accent-dark) 80%, transparent); color: #fff; text-align: left; cursor: pointer; }
.destination-arrival span { font-size: 8px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.destination-arrival strong { font-family: var(--font-display), serif; font-size: 17px; }
.destination-room-list { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.destination-room-list button { min-height: 54px; display: grid; gap: 4px; padding: 10px 11px; border: 1px solid rgba(255,255,255,.18); border-radius: 5px; background: rgba(255,255,255,.035); color: #fff; text-align: left; cursor: pointer; transition: border-color .2s, background .2s; }
.destination-room-list button:hover, .destination-room-list button:focus-visible { border-color: rgba(255,255,255,.6); background: rgba(255,255,255,.08); outline: none; }
.destination-room-list button.active { border-color: var(--floor-accent); box-shadow: inset 3px 0 0 var(--floor-accent); }
.destination-room-list span { font-family: var(--font-display), serif; font-size: 15px; }
.destination-room-list small { color: #aea69c; font-size: 7px; font-weight: 700; letter-spacing: .08em; }

.plan-chooser { position: absolute; z-index: 42; inset: 24px; display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto; gap: 13px; padding: 18px; border: 1px solid rgba(255,255,255,.3); border-radius: 10px; background: rgba(26,25,22,.96); color: #fff; box-shadow: 0 24px 90px rgba(0,0,0,.46); backdrop-filter: blur(20px); }
.plan-head { display: flex; align-items: start; justify-content: space-between; gap: 18px; }
.plan-head > div { display: grid; gap: 3px; }
.plan-head span { color: #bdb5ab; font-size: 8px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.plan-head strong { font-family: var(--font-display), serif; font-size: 25px; font-weight: 600; }
.plan-head > button { width: 44px; height: 44px; flex: 0 0 auto; border: 1px solid rgba(255,255,255,.26); border-radius: 50%; background: transparent; color: #fff; font-size: 20px; cursor: pointer; }
.plan-tabs { display: flex; gap: 6px; overflow-x: auto; }
.plan-tabs button { min-width: max-content; min-height: 40px; display: flex; align-items: center; gap: 7px; padding: 0 11px; border: 1px solid rgba(255,255,255,.2); border-radius: 999px; background: transparent; color: #d7d1c8; font-size: 8px; font-weight: 800; cursor: pointer; }
.plan-tabs button span { width: 24px; height: 24px; display: grid; place-items: center; border: 1px solid currentColor; border-radius: 50%; }
.plan-tabs button.active { border-color: var(--floor-accent); background: var(--floor-accent-dark); color: #fff; }
.plan-stage { min-height: 0; display: grid; place-items: center; overflow: hidden; border-radius: 6px; background: #eee9e1; }
.plan-stage img { width: 100%; height: 100%; object-fit: contain; }
.plan-footer { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.plan-footer p { max-width: 68%; margin: 0; color: #cec6bb; font-size: 10px; line-height: 1.5; }
.plan-footer button { min-height: 42px; padding: 0 17px; border: 0; border-radius: 999px; background: var(--floor-accent); color: #fff; font-size: 8px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; cursor: pointer; }

.detail-panel { padding: 30px 23px 24px; border-left: 1px solid var(--line); background: #f7f3ed; overflow: auto; }
.detail-panel h3 { margin: 9px 0 14px; font-family: var(--font-display), serif; font-size: 29px; font-weight: 600; line-height: 1.02; }
.detail-copy { margin: 0; color: #686157; font-size: 11px; line-height: 1.68; }
.detail-panel dl { margin: 24px 0 20px; border-top: 1px solid var(--line); }
.detail-panel dl div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 9px; }
.detail-panel dt { color: #82796e; text-transform: uppercase; letter-spacing: .1em; }
.detail-panel dd { margin: 0; max-width: 58%; font-weight: 700; text-align: right; }
.mini-plan { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #e8e2d8; }
.mini-plan img { width: 100%; height: 100%; object-fit: contain; }
.mini-plan button { position: absolute; left: 10px; bottom: 10px; padding: 7px 9px; border: 0; border-radius: 2px; background: rgba(247,243,237,.94); color: #302d28; font-size: 8px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; cursor: pointer; }
.room-directory { margin-top: 20px; }
.directory-title { margin: 0 0 8px; font-size: 8px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; color: #81796f; }
.room-directory > div { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; }
.room-link { min-height: 35px; display: flex; align-items: center; gap: 7px; padding: 6px 7px; border: 1px solid var(--line); border-radius: 2px; background: transparent; color: #6f675c; text-align: left; font-size: 8px; font-weight: 700; line-height: 1.25; cursor: pointer; }
.room-link span { color: #a39688; font-size: 7px; }
.room-link:hover { background: #eee7dd; }
.room-link.active { border-color: #302d28; background: #302d28; color: #fff; }
.room-link.active span { color: #d4c7b8; }
.disclaimer { margin: 16px 0 0; color: #8a8278; font-size: 8px; line-height: 1.5; }

@media (max-width: 1120px) {
  .tour-grid { grid-template-columns: 218px minmax(0, 1fr); }
  .detail-panel { display: none; }
  .viewer { min-height: calc(100vh - 229px); }
  .destination-chooser { width: min(610px, calc(100% - 52px)); }
}

@media (max-width: 700px) {
  .tour-shell { padding: 0; }
  .tour-header { height: auto; border-left: 0; border-right: 0; }
  .agent-strip { min-height: 91px; display: grid; grid-template-columns: 1fr; gap: 4px; padding: 5px 10px 7px; }
  .agent-brand { gap: 7px; }
  .agent-logo-card { width: 120px; height: 54px; }
  .agent-logo-card img { width: 122px; height: 122px; }
  .agent-identity strong { font-size: 13px; }
  .agent-identity small { font-size: 6px; }
  .agent-contacts { width: 100%; flex-direction: row; align-items: center; justify-content: space-between; gap: 8px; padding-top: 3px; border-top: 1px solid rgba(255,255,255,.11); }
  .agent-contacts a { min-width: 0; padding: 1px 0; border: 0; background: transparent; }
  .agent-contacts span { display: none; }
  .agent-contacts strong { font-size: 8px; white-space: nowrap; }
  .project-strip { min-height: 50px; padding: 0 11px; }
  .property-brand { gap: 9px; }
  .brand-mark { width: 31px; height: 31px; font-size: 18px; }
  .project-strip h1 { font-size: 22px; }
  .project-strip .eyebrow { font-size: 7px; }
  .header-meta { display: none; }
  .tour-grid { display: flex; min-height: calc(100vh - 141px); flex-direction: column-reverse; border-left: 0; border-right: 0; }
  .tour-toolbar { min-height: 44px; padding: 5px 8px; }
  .tour-toolbar button { flex: 1; justify-content: center; }
  .viewer { min-height: calc(100vh - 233px); }
  .floor-nav { display: block; padding: 10px 8px; border: 0; border-top: 1px solid var(--line); max-height: none; overflow: visible; }
  .floor-list { display: flex; gap: 5px; overflow-x: auto; padding-bottom: 7px; }
  .left-room-list { display: flex; gap: 6px; overflow-x: auto; padding: 4px 0; }
  .left-room-list .room-link { flex: 0 0 auto; width: auto; max-width: 200px; min-height: 44px; }
  .nav-plan-button { margin: 3px 0 5px; width: auto; }
  .nav-room-info { margin: 10px 4px 0; }
  .tour-disclaimer { padding: 0 10px 10px; }
  .nav-title, .nav-rule, .nav-note { display: none; }
  .floor-button { min-width: 112px; grid-template-columns: 28px 1fr; padding: 8px; }
  .floor-index { width: 24px; height: 24px; }
  .viewer-title { top: 20px; left: 18px; }
  .viewer-title h2 { font-size: 33px; }
  .floor-chip { display: none; }
  .compass { right: 14px; top: 14px; }
  .image-arrow { width: 44px; height: 52px; }
  .image-arrow.left { left: 7px; }
  .image-arrow.right { right: 7px; }
  .stair-switcher { right: 12px; top: 65px; }
  .stair-switcher button { width: 44px; height: 44px; }
  .journey-progress { left: 8px; bottom: 73px; padding: 6px 8px; }
  .view-switcher { width: calc(100% - 70px); justify-content: center; bottom: 14px; }
  .view-button { width: 22%; max-width: 70px; }
  .hotspot-card { bottom: 76px; }
  .route-banner { left: 8px; right: 8px; bottom: 75px; width: auto; transform: none; }
  .destination-chooser { position: absolute; left: 8px; right: 8px; top: auto; bottom: 8px; width: auto; max-height: min(72vh, calc(100% - 16px)); padding: 14px; border-radius: 12px; }
  .destination-head strong { font-size: 22px; }
  .destination-floor-tabs { margin-top: 14px; }
  .destination-room-list { grid-template-columns: 1fr; }
  .plan-chooser { inset: 8px; padding: 14px; }
  .plan-footer { align-items: stretch; flex-direction: column; gap: 9px; }
  .plan-footer p { max-width: none; }
  .plan-footer button { min-height: 44px; }
}

@media (max-width: 440px) {
  .route-banner { align-items: stretch; flex-direction: column; gap: 9px; }
  .route-actions { justify-content: flex-end; }
  .route-actions button { min-height: 44px; }
  .destination-floor-tabs button { padding: 0 8px; }
  .destination-floor-tabs button:not(.active) { font-size: 0; }
  .destination-floor-tabs button:not(.active) span { font-size: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .active-render { animation: none !important; }
  .view-button { transition: none; }
}
