/* Existing controls, clearer state. No added panel or render-dependent animation. */
.tour-clarity #loading{z-index:80;gap:20px;padding:32px;text-align:center;background:radial-gradient(ellipse at 50% 42%,#096763 0,#005a5a 55%,#004b4c 100%)}
.tour-clarity #loading>img{width:min(300px,65vw);height:auto;max-height:180px;object-fit:contain}
.tour-clarity #loading>span{font-size:15px;line-height:1.45;font-weight:500;letter-spacing:.025em;color:#fff6e9}
.tour-clarity #loading .loading-line{width:160px;max-width:55vw;margin-top:1px}
.tour-clarity .tour-loading-detail{display:block;max-width:290px;min-height:2.8em;font-size:12px;line-height:1.5;letter-spacing:0;color:#d1e2dc}
.tour-clarity .view-switch button:focus-visible,.tour-clarity .apartment-toolbar button:focus-visible,.tour-clarity #choose-house:focus-visible{outline:2px solid #c5a56f;outline-offset:3px}
@media(max-width:900px){
 .tour-clarity #loading{gap:17px;padding:24px}
 .tour-clarity #loading>img{width:230px;max-height:145px}
 .tour-clarity #choose-house[data-tour-context]{height:48px;display:block;text-align:left;padding:6px 38px 5px 13px;font-size:10px;line-height:14px;overflow:hidden}
 .tour-clarity #choose-house[data-tour-context]::before{content:attr(data-tour-context);display:block;font-size:12px;line-height:18px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 .tour-clarity #choose-house[data-tour-context]>span{position:absolute;right:14px;top:50%;transform:translateY(-50%);font-size:20px}
 .tour-clarity .apartment-toolbar{grid-template-columns:64px minmax(0,1fr) 62px}
 .tour-clarity .apartment-toolbar #apartment-exit{width:64px;min-width:64px;max-width:90px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;padding:5px 3px}
 .tour-clarity .apartment-toolbar #apartment-exit::before{font-size:18px;line-height:18px}
 .tour-clarity .apartment-toolbar #apartment-exit[data-tour-back]::after{content:attr(data-tour-back);display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:9px;line-height:11px;letter-spacing:0}
}
@media(max-width:900px) and (max-height:500px){
 .tour-clarity #loading{gap:10px;padding:16px}
 .tour-clarity #loading>img{width:150px;max-height:92px}
 .tour-clarity #loading>span{font-size:13px}
 .tour-clarity .tour-loading-detail{max-width:340px;min-height:1.5em;font-size:11px}
 .tour-clarity #choose-house[data-tour-context]{height:44px;padding-top:4px;padding-bottom:3px}
 .tour-clarity .apartment-toolbar #apartment-exit{gap:2px;padding-top:3px;padding-bottom:3px}
}
@media(prefers-reduced-motion:reduce){.tour-clarity #loading .loading-line::after,.tour-clarity #loading .loading-line::before{animation:none!important;transform:none!important}}
/* Keep provenance clear of the floor-selection card. The flat diagram has no
   background imagery, so its credits return when the visitor reopens 3D. */
.viewport:has(#floor-layout-panel:not([hidden])) #photo-background-credit,
.viewport:has(#floor-layout-panel:not([hidden])) #geographic-context-credit{visibility:hidden}
@media(max-width:900px){
 .tour-clarity.floor-layout-three-active #photo-background-credit{top:calc(122px + var(--mobile-safe-top,0px));bottom:auto}
 .tour-clarity.floor-layout-three-active #geographic-context-credit{top:calc(150px + var(--mobile-safe-top,0px));bottom:auto}
}
@media(max-width:900px) and (max-height:500px){
 .tour-clarity.floor-layout-three-active #photo-background-credit{top:calc(62px + var(--mobile-safe-top,0px));bottom:auto}
 .tour-clarity.floor-layout-three-active #geographic-context-credit{top:calc(90px + var(--mobile-safe-top,0px));bottom:auto}
}
@media(max-width:700px) and (max-height:500px){
 .tour-clarity.floor-layout-three-active #photo-background-credit{top:calc(110px + var(--mobile-safe-top,0px))}
 .tour-clarity.floor-layout-three-active #geographic-context-credit{top:calc(138px + var(--mobile-safe-top,0px))}
}
