/* Keep the building as the main canvas; detailed controls open on demand. */
.viewer-page .topbar{height:68px}
.viewer-page .primary-nav{padding:7px 20px}
.viewer-page .workspace{position:relative;display:block;height:calc(100dvh - 124px);min-height:584px}
.viewer-page .view{width:100%;height:100%;min-height:584px}
.viewer-page .scene-heading{top:24px;left:26px;max-width:calc(100% - 230px)}
.viewer-page .scene-heading h1{font-family:Georgia,'Noto Serif TC','Microsoft JhengHei',serif;font-size:32px;letter-spacing:.06em}
.viewer-page .scene-heading p:last-child{font-size:12px;line-height:1.8}
.viewer-page .view:has(.listing-map[data-listing-map-active=true]) .scene-heading p:last-child{display:none}
.viewer-page .view:after{height:120px;background:linear-gradient(#e5ece3e6,transparent)}
.viewer-page .view-tabs{top:auto;bottom:62px;left:50%;right:auto;transform:translateX(-50%);flex-wrap:nowrap;max-width:calc(100% - 145px);padding:5px;gap:3px;background:#fbfcf4e8;border:1px solid #d4ddcc;border-radius:8px;box-shadow:0 3px 14px #263e2e12;overflow:auto;z-index:8}
.viewer-page .view-tabs button{white-space:nowrap;border:0;min-height:36px;font-size:11px;background:transparent;border-radius:4px}
.viewer-page .view-tabs button[aria-pressed=true]{background:#304d3c}
.viewer-page .scene-bottom{bottom:8px;left:20px;right:20px;font-size:9px;line-height:1.6;z-index:3}
.viewer-page .scene-bottom .scale{display:none}
.viewer-page .landmark-controls{bottom:120px;left:20px;padding:6px;z-index:7}
.viewer-page .view:has(.listing-map[data-listing-map-open=true]) .landmark-controls{visibility:hidden}
.viewer-page .landmark-legend{display:none}
.viewer-page .map-tools{bottom:120px;right:20px;z-index:7}
.explorer-settings{position:absolute;z-index:12;top:20px;right:72px;width:310px;pointer-events:none}
.explorer-settings>summary{margin-left:auto;list-style:none;width:max-content;cursor:pointer;pointer-events:auto;font-size:12px;padding:11px 15px;background:#fcfdf5f0;border:1px solid #c8d2bf;border-radius:7px;box-shadow:0 2px 9px #21352610;min-height:40px}
.explorer-settings>summary::-webkit-details-marker{display:none}
.explorer-settings>summary span{margin-left:16px;color:#8c9a7f}
.explorer-settings[open]>summary{background:#304d3c;color:white;border-color:#304d3c}
.explorer-settings .sidebar{pointer-events:auto;max-height:calc(100dvh - 230px);overflow:auto;display:block;border:1px solid #ccd5c2;background:#fcfdf6f5;backdrop-filter:blur(12px);box-shadow:0 8px 30px #21352620;border-radius:10px;padding:22px 20px;margin-top:8px}
.explorer-settings .sidebar section{margin-bottom:18px;padding-bottom:18px}
.listing-directory{border:1px solid #d3dccb;border-radius:9px;background:#fafbf5;margin:20px 0}
.listing-directory>summary{cursor:pointer;padding:18px 20px;font-size:14px;color:#304c39}
.listing-directory>summary span{font-size:11px;color:#7a886e;margin-left:18px;white-space:nowrap}
.listing-directory[open]{padding:0 18px 18px}
.listing-directory[open]>summary{margin:0 -18px;border-bottom:1px solid #d3dccb}
.viewer-page>.listings-panel{padding:25px 30px 20px}
.viewer-page>.listings-panel h2{font-size:22px;margin:0}
.viewer-page>.listings-panel .eyebrow{display:none}
.viewer-page>.listings-panel .section-heading p{margin-bottom:0}
.embed.viewer-page .workspace{height:calc(100dvh - 55px)}
.art .explorer-settings,.art .listing-map{display:none}
.art.viewer-page .workspace,.art.viewer-page .view{height:100dvh;min-height:0}
@media(max-width:650px){
 .viewer-page .topbar{height:64px}
 .viewer-page .primary-nav{padding:6px 10px}
 .viewer-page .workspace,.embed.viewer-page .workspace{height:calc(100svh - 118px);min-height:584px}
 .viewer-page .view{height:100%;min-height:584px}
 .viewer-page .scene-heading{left:16px;top:20px;max-width:calc(100% - 66px)}
 .viewer-page .scene-heading h1{font-size:25px;margin:5px 0}
 .viewer-page .scene-heading .eyebrow{font-size:8px;letter-spacing:.12em}
 .viewer-page .scene-heading p:last-child{font-size:10px;max-width:270px}
 .viewer-page .view-tabs{bottom:62px;left:10px;right:10px;transform:none;max-width:none;max-height:none;gap:1px;padding:4px;justify-content:flex-start}
 .viewer-page .view-tabs button{font-size:10px;padding:7px;min-height:38px}
 .viewer-page .landmark-controls{left:10px;bottom:114px;padding:3px}
 .viewer-page .landmark-controls button{font-size:10px;min-height:36px}
 .viewer-page .map-tools{right:10px;bottom:12px;gap:4px;flex-direction:row}
 .viewer-page .map-tools button{width:34px;min-height:34px}
 .viewer-page .compass{top:19px;right:20px}
 .viewer-page .scene-bottom{left:12px;right:170px;bottom:8px;font-size:8px}
 .viewer-page .view:has(.listing-map[data-listing-map-open=true]) .landmark-controls{display:none}
 .explorer-settings{top:18px;right:60px;width:min(310px,calc(100% - 72px))}
 .explorer-settings>summary{font-size:10px;min-height:36px;padding:8px 10px}
 .explorer-settings .sidebar{max-height:410px;padding:18px 16px}
 .listing-directory>summary{padding:16px;font-size:13px}
 .listing-directory>summary span{display:block;margin:8px 0 0 15px}
 .viewer-page>.listings-panel{padding:25px 18px 16px}
}
/* Reserve the community navigation; short landscape canvases stay scrollable. */
@media(max-width:650px){
 body[data-jf="vvs1"].viewer-page:not(.art) .workspace{height:calc(100svh - 118px - var(--jf-height,0px));min-height:360px}
 body[data-jf="vvs1"].viewer-page:not(.art) .view{height:100%;min-height:0}
 body[data-jf="vvs1"].viewer-page .explorer-settings .sidebar{max-height:min(410px,calc(100dvh - var(--jf-height,0px) - 76px))}
}
@media(max-width:1000px) and (max-height:480px){
 body[data-jf="vvs1"].viewer-page:not(.art) .workspace{height:calc(100dvh - 124px - var(--jf-height,0px));min-height:360px}
 body[data-jf="vvs1"].viewer-page:not(.art) .view{height:100%;min-height:0}
}
