/* Shared visitor skin, independent of authoring mode. */
#tourSurface{--skin-sidebar-width:240px;--skin-logo-width:130px;--skin-logo-height:80px;--skin-brand-size:22px;--skin-text-size:13px;--skin-align:left}
#tourSurface[data-skin-font=serif] .site-brand,#tourSurface[data-skin-font=serif] #websiteSidebar,#tourSurface[data-skin-font=serif] #websiteHeader,#tourSurface[data-skin-font=serif] #websiteFooter{font-family:Georgia,serif}
#tourSurface[data-skin-font=humanist] .site-brand,#tourSurface[data-skin-font=humanist] #websiteSidebar,#tourSurface[data-skin-font=humanist] #websiteHeader,#tourSurface[data-skin-font=humanist] #websiteFooter{font-family:'Trebuchet MS',sans-serif}
#tourSurface #websiteSidebar{width:var(--skin-sidebar-width);max-width:44%;background:var(--sidebar-background,var(--skin-background));color:var(--skin-text);padding:24px 18px 18px}
#tourSurface #websiteSidebar .site-brand{text-align:var(--skin-align);padding:0 4px 20px}
#tourSurface #websiteSidebar .site-brand img{display:inline-block;width:var(--skin-logo-width);height:var(--skin-logo-height);max-width:100%;max-height:none;object-fit:contain;margin-bottom:16px}
#tourSurface #websiteSidebar .site-brand strong{font-size:var(--skin-brand-size);overflow-wrap:anywhere}
#tourSurface #websiteSidebar .site-brand small{font-size:10px;line-height:1.6;white-space:pre-wrap}
#tourSurface #websiteSidebar .site-monogram{margin-left:auto;margin-right:auto}
#tourSurface #websiteSidebar .site-brand:has(+*) .site-monogram{display:inline-grid}
#tourSurface #websiteSidebar nav button,#tourSurface #websiteSidebar summary{font-size:var(--skin-text-size);color:var(--skin-text)}
#tourSurface #websiteSidebar .site-footer-credit,#tourSurface #websiteSidebar .site-utilities button,#tourSurface #websiteSidebar .site-scene-number{color:var(--skin-text)}
#tourSurface #websiteHeader{background:var(--skin-background);color:var(--skin-text)}
#tourSurface #websiteHeader nav button{color:var(--skin-text);font-size:var(--skin-text-size)}
#tourSurface #websiteHeader .site-brand img{width:var(--skin-logo-width);height:var(--skin-logo-height);max-width:130px;max-height:80px}
#tourSurface #websiteHeader .site-brand strong{font-size:var(--skin-brand-size)}
#tourSurface[data-sidebar-side=right] #websiteSidebar{order:2;border-left:1px solid #ffffff33;border-right:0}
#tourSurface.sidebar-collapsed #websiteSidebar{display:none!important}
#toggleTourSidebar{position:absolute;top:15px;left:15px;z-index:9;padding:8px 12px;font-size:11px}
body.hotspot-editing #toggleTourSidebar{display:none!important}
#editSidebarSkin{background:#ffffffec;color:#1b5264;border-color:#ffffff80;margin-top:18px;font-size:11px;flex-shrink:0}
.sidebar-custom-blocks:empty{display:none}
.sidebar-custom-blocks{padding:14px 4px 4px;display:flex;flex-direction:column;gap:12px}
.sidebar-custom-block{line-height:1.7;color:inherit;white-space:pre-wrap;overflow-wrap:anywhere}
.sidebar-custom-block strong{display:block;font-size:1.15em;margin-bottom:6px}
.sidebar-custom-block span{display:block}
.sidebar-custom-block.button{padding:10px 12px;border:1px solid #ffffff55;background:#ffffff12;color:inherit;min-height:38px;border-radius:5px}
.sidebar-custom-block.button:hover{background:#ffffff25;color:inherit}
body.preview .workspace{height:100dvh;min-height:0;padding-top:65px;display:block}
body.preview main{height:calc(100dvh - 65px);min-height:0;padding:0;display:flex;flex-direction:column}
body.preview #tourSurface{display:flex;flex:1;min-height:0;border:0;border-radius:0}
body.preview #stage{flex:1;min-height:0}
body.preview #viewer{min-height:0}
body.preview #filmstrip,body.preview .filmstrip-heading{display:none}
body.preview #websiteHeader:not([hidden]),body.preview #websiteFooter:not([hidden]){display:flex}
body.preview #websiteSidebar:not([hidden]){display:flex}
body.preview #skinLayer{display:block}
body.exported main{height:100dvh}
.skin-designer{width:min(760px,96vw);max-width:96vw;padding:0;max-height:94dvh;overflow:auto}
.skin-designer-heading{padding:24px 26px 12px;border-bottom:1px solid #d3e0e8}
.skin-designer-heading h2{margin:6px 0;font-size:26px}
.skin-designer-heading p{line-height:1.7}
.designer-tabs{display:flex;gap:3px;padding:10px 20px;background:#f4f8fa;position:sticky;top:0;z-index:2;border-bottom:1px solid #d3e0e8;overflow:auto}
.designer-tabs button{white-space:nowrap;background:transparent;border:0;font-size:12px}
.designer-tabs button.active{color:#09695f;background:#e2f1ec;box-shadow:inset 0 -2px #0f766e}
#designerFields{padding:12px 26px 20px;min-height:300px}
#designerFields label{font-size:10px;line-height:1.6;display:block;margin:15px 0}
#designerFields input,#designerFields textarea,#designerFields select{margin-top:7px;font-size:13px;letter-spacing:0}
#designerFields .designer-check{display:flex;align-items:center;font-size:13px;letter-spacing:0;font-weight:500}
#designerFields .designer-check input{width:16px;height:16px;accent-color:#0f766e;margin:0 10px 0 0}
.designer-logo-preview{display:grid;place-items:center;min-height:110px;border:1px dashed #adc4d0;background:repeating-conic-gradient(#eff4f6 0 25%,#fff 0 50%) 50% / 18px 18px;border-radius:7px;margin:18px 0;color:#537384}
.designer-logo-preview img{max-width:220px;max-height:130px;object-fit:contain;margin:15px}
.skin-designer-actions{position:sticky;bottom:0;background:#fff;border-top:1px solid #d3e0e8;display:flex;gap:8px;justify-content:flex-end;padding:15px 22px;z-index:2}
.skin-designer-actions button{font-size:12px}
#skinDesignerError{margin:0 26px 15px;color:#b23e36}
.designer-add-row{display:flex;gap:8px;margin:18px 0}
.sidebar-block-editor{border:1px solid #c8dae4;border-radius:7px;padding:12px 16px;margin:17px 0;background:#f9fcfd}
.sidebar-block-editor legend{font-size:12px;font-weight:700;color:#24556a;padding:0 7px}
.block-order{display:flex;gap:5px;justify-content:flex-end}
.block-order button{padding:5px 10px;min-height:29px;font-size:11px}
.sidebar-custom-blocks+nav[hidden]{display:none!important}
@media(max-width:620px){#tourSurface #websiteSidebar{width:min(var(--skin-sidebar-width),44vw);padding:14px 10px}#tourSurface #websiteSidebar .site-brand strong{font-size:min(var(--skin-brand-size),20px)}#tourSurface #websiteSidebar nav button{font-size:min(var(--skin-text-size),12px)}#tourSurface #websiteHeader .site-brand img{max-height:50px;max-width:90px}.designer-tabs{padding:8px}.designer-tabs button{padding:8px;font-size:10px}#designerFields{padding:10px 18px}.skin-designer-actions{padding:12px;gap:5px}.skin-designer-actions button{font-size:10px;padding:8px}}
#panoramaEngine{position:absolute;inset:0;z-index:0;background:#10252e;touch-action:none}
#panoramaEngine .pnlm-panorama-info,#panoramaEngine .pnlm-controls-container{display:none}
#panoramaEngine.pnlm-container{font-family:inherit}
#panoramaEngine .pnlm-render-container,#panoramaEngine .pnlm-dragfix{touch-action:none}
#pano{z-index:1}#hotspots{z-index:3}.viewer-shade{z-index:2;pointer-events:none}
#viewer .scene-caption,#viewer .viewer-top,#viewer .viewer-bottom{z-index:4}

/* Opaque viewer controls avoid expensive backdrop sampling during panorama movement. */
#viewer .glass,#viewer .glass-badge,#viewer .view-controls{backdrop-filter:none;-webkit-backdrop-filter:none}

#tourSurface[data-sidebar-overlay=true] #stage{position:relative}
#tourSurface[data-sidebar-overlay=true] #websiteSidebar:not([hidden]){position:absolute;left:0;top:0;bottom:0;z-index:8;overflow:auto}
#tourSurface[data-sidebar-overlay=true][data-sidebar-side=right] #websiteSidebar{left:auto;right:0}
#tourSurface[data-sidebar-overlay=true]:not(.sidebar-collapsed) #toggleTourSidebar{left:calc(min(var(--skin-sidebar-width),44%) + 12px)}
#tourSurface[data-sidebar-overlay=true][data-sidebar-side=right]:not(.sidebar-collapsed) #toggleTourSidebar{left:12px}
#webframeDialog{padding:0;border:0;border-radius:6px;width:var(--frame-width,90vw);height:var(--frame-height,90dvh);max-width:96vw;max-height:96dvh;overflow:visible;background:#fff;box-shadow:0 18px 70px #0007}
#webframeDialog::backdrop{background:var(--frame-veil,#0006);backdrop-filter:blur(var(--frame-blur,0px))}
.webframe-shell{position:relative;width:100%;height:100%}
#webframeDialog iframe{display:block;border:0;width:100%;height:100%;border-radius:6px;background:#fff}
#webframeDialog .webframe-close{position:absolute;right:0;top:0;transform:translate(25%,-45%);z-index:2;width:40px;height:40px;padding:0;display:grid;place-items:center;border:2px solid white;border-radius:50%;background:#172b3b;color:#fff;font:30px/1 system-ui;box-shadow:0 2px 12px #0006;cursor:pointer}
#webframeDialog .webframe-close:focus-visible{outline:3px solid #39b9ff;outline-offset:3px}

/* The panorama stays full-width behind the translucent overlay. */
#tourSurface #websiteSidebar{padding-bottom:76px}
#tourSurface #toggleTourSidebar,#tourSurface[data-sidebar-overlay=true]:not(.sidebar-collapsed) #toggleTourSidebar,#tourSurface[data-sidebar-overlay=true][data-sidebar-side=right]:not(.sidebar-collapsed) #toggleTourSidebar{position:absolute;left:18px;right:auto;top:auto;bottom:18px;width:40px;height:40px;min-height:40px;padding:0;border:2px solid #ffffffcc;border-radius:50%;background:#152734cc;color:#fff;font:32px/1 system-ui;z-index:10;box-shadow:0 2px 8px #0003}
#tourSurface[data-sidebar-side=right] #toggleTourSidebar,#tourSurface[data-sidebar-overlay=true][data-sidebar-side=right]:not(.sidebar-collapsed) #toggleTourSidebar{left:auto;right:18px}
#tourSurface.sidebar-collapsed #toggleTourSidebar{top:50%;bottom:auto;transform:translateY(-50%);left:10px}
#tourSurface.sidebar-collapsed[data-sidebar-side=right] #toggleTourSidebar{left:auto;right:10px}
#toggleTourSidebar:focus-visible{outline:3px solid #fff;outline-offset:4px}
#collapsedTourBrand{position:absolute;left:28px;top:24px;z-index:6;pointer-events:none;color:#fff;text-shadow:0 2px 6px #0008;max-width:60%}
#collapsedTourBrand[hidden]{display:none}
#collapsedTourBrand .site-brand{display:flex;align-items:center;gap:14px}
#collapsedTourBrand .site-brand img{width:var(--skin-logo-width);height:var(--skin-logo-height);object-fit:contain;max-width:100%}
#collapsedTourBrand .site-brand strong{font-size:var(--skin-brand-size);display:block}
#collapsedTourBrand .site-brand small{display:block;margin-top:6px}
#tourSurface .scene-caption .eyebrow[hidden],#guidedToggle[hidden]{display:none!important}
@media(prefers-reduced-motion:reduce){#websiteSidebar,#collapsedTourBrand{transition:none}}

#tourSurface .sidebar-links:empty{display:none}
#tourSurface .sidebar-links{display:flex;flex-direction:column;margin:10px 0 18px;border-top:1px solid #ffffff45}
#tourSurface .sidebar-links button{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:45px;padding:12px 4px;border:0;border-bottom:1px solid #ffffff45;border-radius:0;background:transparent;color:var(--skin-text);text-align:left;font-size:var(--skin-text-size);box-shadow:none}
#tourSurface .sidebar-links button:hover{background:#ffffff15}
#tourSurface .sidebar-links button span{font-size:12px;opacity:.7}
#tourSurface .sidebar-contact{display:flex;flex-direction:column;gap:5px;padding:17px 4px 12px;font-size:var(--skin-text-size);line-height:1.45;overflow-wrap:anywhere;color:var(--skin-text)}
#tourSurface .sidebar-contact:before{content:'';width:34px;height:3px;margin-bottom:8px;background:var(--tour-accent,#34b8e8)}
#tourSurface .sidebar-contact a{color:inherit;text-decoration:none}
#tourSurface .sidebar-contact a:hover{text-decoration:underline}
#tourSurface .site-brand:has(strong[hidden]):has(small[hidden])>div{display:none}

#tourSurface #stage>#fullscreen{position:absolute;top:15px;right:15px;left:auto;z-index:12;width:42px;height:42px;min-height:42px;padding:0;font-size:22px;pointer-events:auto}
#tourSurface .sidebar-links button:hover,#tourSurface .sidebar-links button:focus-visible,#tourSurface #websiteSidebar nav button:hover,#tourSurface #websiteSidebar nav button:focus-visible,#tourSurface .sidebar-custom-block.button:hover{background:var(--menu-hover-background,#147bd1);color:var(--menu-hover-colour,#fff);outline-offset:2px}
.menu-panorama-list{display:flex;flex-direction:column;gap:8px;max-height:60dvh;overflow:auto}
#dialog .sidebar-contact{color:inherit;display:flex;flex-direction:column;gap:8px;overflow-wrap:anywhere}
#dialog .sidebar-contact a{color:inherit}

/* Floating branding uses its own size instead of the header's 38px image cap. */
#tourSurface #collapsedTourBrand{max-width:calc(100% - 100px)}
#tourSurface #collapsedTourBrand .site-brand img{display:block;width:var(--collapsed-logo-width,220px);height:var(--collapsed-logo-height,150px);max-width:100%;max-height:none;object-fit:contain;flex-shrink:0;margin:0;opacity:1}

/* Published tours fill the viewport and do not reserve editor preview chrome. */
body.exported{margin:0;height:100dvh;overflow:hidden}
body.exported.preview .workspace{padding:0;height:100dvh;min-height:0;overflow:hidden}
body.exported.preview main{height:100%;min-height:0;padding:0}
body.exported #previewBar{display:none!important}
/* One divider at each menu boundary; no duplicate brand or utility borders. */
#tourSurface #websiteSidebar .site-brand{border-bottom:0}
#tourSurface #websiteSidebar .sidebar-links:not(:empty)~.site-utilities{border-top:0}

#toggleHotspots{display:inline-grid;place-items:center;min-width:36px}
#toggleHotspots svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
#toggleHotspots .hotspot-eye-slash{display:none}
#toggleHotspots.is-off .hotspot-eye-slash{display:block}
#toggleHotspots.is-off{background:#dcece8;color:#0a5f55}
#hotspots[hidden]{display:none!important;pointer-events:none}
