/* Navigation and residence-specific controls extend the existing explorer. */
.tour-toolbar{display:flex;flex-wrap:wrap;gap:12px;padding:14px 16px;background:#fafbf8;border-top:0;border-radius:10px 10px 0 0}
.tour-toolbar label{display:flex;flex:1;min-width:150px;flex-direction:column;gap:6px;font-size:14px;color:var(--muted)}
.tour-toolbar select,.tour-residence select{width:100%;min-height:42px;padding:8px 30px 8px 10px;background:#fff;border:1px solid var(--line);border-radius:5px;color:var(--ink);font-size:14px}
.tour-residence{display:flex;flex-wrap:wrap;gap:10px;align-items:center;padding:10px 16px;border-top:1px solid var(--line);font-size:14px}
.tour-residence label{display:flex;align-items:center;gap:10px}.tour-residence select{width:auto;max-width:250px}.tour-residence button{padding:8px 12px;border:1px solid var(--line);border-radius:5px}.tour-residence>span{font-size:12px;color:var(--muted);flex:1 1 220px;line-height:1.5}
.extended-filters{display:grid;gap:14px;margin-top:14px}.extended-filters label{font-size:14px;display:flex;flex-direction:column;gap:6px;min-width:0}.extended-filters fieldset{border:0;padding:0;margin:0;min-width:0}.extended-filters legend{font-size:14px;margin-bottom:7px}.extended-filters input,.extended-filters select{width:100%;min-width:0;min-height:42px;border:1px solid var(--line);border-radius:5px;padding:8px;background:white;color:var(--ink);font-size:14px}.filter-row{min-width:0}.filter-row>*{min-width:0;flex:1}.filter-panel .filters{max-height:55dvh;overflow:auto;overscroll-behavior:contain}.filter-panel{flex-shrink:0}.filter-data-note{font-size:12px;color:var(--muted);line-height:1.5;margin:0}#filter-error{font-size:13px;color:#8d3327;margin:0}.filter-bottom{position:sticky;bottom:-16px;background:#f7f9f6;padding:12px 0 8px;z-index:1}
#fly-altitude{display:flex;gap:5px;justify-content:center;margin-top:5px}#fly-altitude button{font-size:17px}.three-stage[data-navigation=rotate] canvas,.three-stage[data-navigation=walk] canvas,.three-stage[data-navigation=fly] canvas{cursor:grab}.three-stage .three-hint{max-width:calc(100% - 32px);line-height:1.45;pointer-events:none}.experience-tabs{max-width:680px}.viewer-toolbar:has(#room-navigation[hidden]){justify-content:flex-end}
@media(max-width:899px){.tour-toolbar{gap:8px}.tour-toolbar label{min-width:140px}.tour-residence{gap:8px}.tour-residence>span{flex-basis:100%}.filter-panel .filters{max-height:52dvh}}
@media(max-width:599px){.tour-toolbar{padding:10px;display:grid;grid-template-columns:1fr 1fr}.tour-toolbar label{min-width:0;font-size:12px}.tour-toolbar select{font-size:14px;padding:8px 22px 8px 8px}.tour-toolbar #scheme-control{grid-column:1/-1}.tour-residence{padding:10px}.tour-residence label{flex:1;min-width:0;font-size:12px}.tour-residence select{max-width:100%;min-width:0;font-size:14px}.tour-residence button{font-size:12px}.experience-tabs{gap:0;overflow-x:auto}.experience-tabs button{font-size:12px;padding:9px 7px}.three-hint{font-size:11px!important}.walk-controls{bottom:68px}.tour-residence>span{font-size:12px}}

/* One workspace for plans, interior tours and the residence view. */
#plan-navigation .plan-actions{grid-template-columns:repeat(4,minmax(0,1fr))}
#plan-navigation .tour-residence{padding:0 0 12px;margin:0 0 12px;border-top:0;border-bottom:1px solid var(--line)}
#plan-navigation .tour-residence label{flex:1;min-width:0}
#plan-navigation .tour-residence select{flex:1;min-width:0;max-width:260px}
#plan-navigation .tour-residence>span{flex:1;font-size:12px}
#plan-navigation .plan-nav-label{display:none}
#plan-navigation .plan-actions button:disabled{color:#859087;cursor:not-allowed;background:transparent}
@media(max-width:599px){#plan-navigation .tour-residence{padding-bottom:10px;margin-bottom:10px}#plan-navigation .tour-residence>span{flex-basis:100%}#plan-navigation .plan-actions button{min-height:44px;font-size:13px}.experience-tabs button{white-space:nowrap}}

.window-view{padding:9px 12px;background:transparent;border:1px solid #cbd6c9;border-radius:5px;color:#355747;font-size:12px;white-space:nowrap}.window-view[hidden]{display:none}.window-view:disabled{opacity:.45;cursor:not-allowed}@media(max-width:600px){.viewer-toolbar{flex-wrap:wrap}.window-view{font-size:11px}}

/* One selection controls the plan, interior and residence view. */
#plan-navigation .tour-residence{display:grid;grid-template-columns:minmax(0,1fr);gap:10px;padding:0;margin:0;border:0}
#plan-navigation .tour-residence label{display:grid;gap:7px;font-size:14px}
#plan-navigation .tour-residence select{width:100%;max-width:none;min-height:44px;font-size:14px}
#plan-navigation .tour-residence>span{font-size:13px;line-height:1.5}
#plan-navigation .plan-count{font-size:13px;margin-top:5px;line-height:1.5}
#plan-navigation[data-selection="plan"] .plan-actions{grid-template-columns:repeat(3,minmax(0,1fr))}
#plan-navigation .plan-actions [hidden]{display:none!important}

/* 2D plan · Mobilyalı plan · 3D tur · Manzara: two rows on phones. */
@media(max-width:600px){#plan-navigation .plan-actions,#plan-navigation[data-selection="plan"] .plan-actions{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* 3D tour and residence view: the model is the page.
   One quiet row for the plan and the mode. The stage takes whatever is left. */
body[data-experience=interior],
body[data-experience=view]{display:flex!important;flex-direction:column!important;height:100dvh!important;overflow:hidden!important}
body[data-experience=interior] .topbar,
body[data-experience=view] .topbar{flex:0 0 auto;height:56px!important;min-height:0!important;padding:0 18px!important}
body[data-experience=interior] .workspace,
body[data-experience=view] .workspace{display:flex!important;flex:1 1 auto!important;flex-direction:column!important;min-height:0!important;height:auto!important;grid-template-columns:minmax(0,1fr)!important}
body[data-experience=interior] .workspace>.sidebar,
body[data-experience=view] .workspace>.sidebar{display:none!important}
body[data-experience=interior] .explorer,
body[data-experience=view] .explorer{display:flex!important;flex:1 1 auto!important;flex-direction:column!important;min-height:0!important;width:100%!important;max-width:none!important;margin:0!important;padding:4px 16px 0!important;overflow:hidden!important;box-sizing:border-box}
body[data-experience=interior] .scene-top,
body[data-experience=view] .scene-top{display:none!important}
body[data-experience=interior] .experience-tabs,
body[data-experience=view] .experience-tabs{display:flex!important;flex:0 0 auto;flex-wrap:nowrap!important;align-items:center;gap:4px 16px!important;width:auto!important;max-width:none!important;margin:0 0 6px!important;padding:0!important;background:transparent!important;border:0!important;border-radius:0!important;overflow:auto;scrollbar-width:none}
body[data-experience=interior] .experience-tabs>*,
body[data-experience=view] .experience-tabs>*{flex:0 0 auto!important;min-height:0!important;min-width:0!important}
body[data-experience=interior] .experience-tabs button,
body[data-experience=view] .experience-tabs button,
body[data-experience=interior] .experience-tabs .neighborhood-nav,
body[data-experience=view] .experience-tabs .neighborhood-nav{min-height:28px!important;padding:4px 0!important;border:0!important;border-bottom:1px solid transparent!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;color:#8b989e!important;font-size:12.5px!important;font-weight:500;letter-spacing:.01em}
body[data-experience=interior] .experience-tabs button.active,
body[data-experience=view] .experience-tabs button.active{background:transparent!important;color:#234759!important;border-bottom-color:#234759!important;box-shadow:none!important}
body[data-experience=interior] #plan-navigation,
body[data-experience=view] #plan-navigation{display:flex!important;flex:0 0 auto;flex-wrap:nowrap;align-items:center;gap:8px;position:relative;width:100%;margin:0 0 8px!important;padding:0!important;background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important}
body[data-experience=interior] #plan-navigation .tour-residence,
body[data-experience=view] #plan-navigation .tour-residence{display:flex!important;flex:1 1 auto;align-items:center;gap:8px;min-width:0;margin:0!important;padding:0!important;border:0!important;background:transparent!important}
body[data-experience=interior] #plan-navigation .tour-residence>label,
body[data-experience=view] #plan-navigation .tour-residence>label{position:absolute!important;width:1px!important;height:1px!important;margin:-1px!important;padding:0!important;overflow:hidden!important;clip:rect(0 0 0 0)!important;white-space:nowrap!important}
body[data-experience=interior] #plan-navigation .pm,
body[data-experience=view] #plan-navigation .pm{flex:0 1 280px;min-width:0;max-width:320px}
body[data-experience=interior] .pm-trigger,
body[data-experience=view] .pm-trigger{display:flex!important;align-items:center;gap:8px;min-height:32px!important;padding:4px 28px 4px 12px!important;border:1px solid #23475914!important;border-radius:999px!important;background:#fffefa url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path d='M1 1 5 5 9 1' fill='none' stroke='%239aa6ad' stroke-width='1.2' stroke-linecap='round'/></svg>") no-repeat right 12px center!important;box-shadow:none!important}
body[data-experience=interior] .pm-title,
body[data-experience=view] .pm-title{font:400 14px/1.2 Georgia,"Times New Roman",serif!important}
body[data-experience=interior] .pm-id,
body[data-experience=view] .pm-id,
body[data-experience=interior] .pm-meta,
body[data-experience=view] .pm-meta,
body[data-experience=interior] #plan-count,
body[data-experience=view] #plan-count{display:none!important}
body[data-experience=interior] #tour-position,
body[data-experience=view] #tour-position{position:absolute!important;width:1px!important;height:1px!important;margin:0!important;overflow:hidden!important;clip:rect(0 0 0 0)!important;white-space:nowrap!important}
body[data-experience=interior] #plan-navigation .plan-actions,
body[data-experience=view] #plan-navigation .plan-actions{display:flex!important;flex:0 0 auto;flex-wrap:nowrap;gap:2px;width:auto!important;margin:0 0 0 auto!important;padding:2px!important;background:#efeae0!important;border:0!important;border-radius:999px!important}
body[data-experience=interior] #plan-navigation .plan-actions button,
body[data-experience=view] #plan-navigation .plan-actions button{flex:0 0 auto;min-height:28px!important;padding:0 12px!important;border:0!important;border-radius:999px!important;background:transparent!important;color:#5c7080!important;font-size:12px!important;box-shadow:none!important}
body[data-experience=interior] #plan-navigation .plan-actions button.active,
body[data-experience=view] #plan-navigation .plan-actions button.active{background:#234759!important;color:#f6f1e4!important;border-color:transparent!important}
body[data-experience=interior] #immersive-section,
body[data-experience=view] #immersive-section{display:flex!important;flex:1 1 auto!important;flex-direction:column!important;min-height:0!important;margin:0!important;border:0!important;border-radius:14px!important;background:transparent!important;overflow:hidden!important}
body[data-experience=interior] #unit-pick-controls,
body[data-experience=view] #unit-pick-controls{display:none!important}
body[data-experience=interior] .three-stage,
body[data-experience=view] .three-stage,
html.list-closed body[data-experience=interior] .three-stage:not([data-fullscreen]),
html.list-closed body[data-experience=view] .three-stage:not([data-fullscreen]){flex:1 1 auto!important;width:100%!important;height:auto!important;min-height:0!important;max-height:none!important;border-radius:14px!important}
body[data-experience=interior] .source-disclosure,
body[data-experience=view] .source-disclosure{flex:0 0 auto;margin:0!important;font-size:9px!important;line-height:1.2}
body[data-experience=interior] .source-disclosure summary,
body[data-experience=view] .source-disclosure summary{min-height:0!important;padding:1px 2px 0!important;font-size:9px!important;line-height:1.2!important;color:#a3aeb4!important}
body[data-experience=interior] .aw-return,
body[data-experience=view] .aw-return{bottom:48px!important}
body[data-experience=interior] .three-hint,
body[data-experience=view] .three-hint{left:158px!important;max-width:calc(100% - 250px)!important}
body[data-experience=interior] .explorer-footer,
body[data-experience=view] .explorer-footer{flex:0 0 auto;margin:0!important;padding:5px 0 0!important;border:0!important;font-size:9px!important;line-height:1.2!important;letter-spacing:.04em!important;gap:8px!important;color:#a3aeb4!important}
body[data-experience=interior] .privacy-footer,
body[data-experience=view] .privacy-footer{flex:0 0 auto;margin:0!important;padding:0 0 6px!important;gap:12px!important;font-size:9px!important;line-height:1.2!important}
body[data-experience=interior] .privacy-footer button,
body[data-experience=view] .privacy-footer button{min-height:0!important;padding:0!important;font-size:9px!important;text-underline-offset:2px!important}
@media(max-width:700px){
 body[data-experience=interior] .explorer,
 body[data-experience=view] .explorer{padding:4px 10px 0!important}
 body[data-experience=interior] #plan-navigation,
 body[data-experience=view] #plan-navigation{flex-wrap:wrap!important;row-gap:6px}
 body[data-experience=interior] #plan-navigation .pm,
 body[data-experience=view] #plan-navigation .pm{flex:1 1 160px;max-width:none}
 body[data-experience=interior] #plan-navigation .plan-actions,
 body[data-experience=view] #plan-navigation .plan-actions{margin-left:0!important}
 body[data-experience=interior] .experience-tabs,
 body[data-experience=view] .experience-tabs{gap:4px 12px!important}
}
