.tour-viewer{box-sizing:border-box;width:min(1100px,96vw);height:min(850px,94dvh);max-width:96vw;max-height:94dvh;border:0;border-radius:16px;padding:16px;color:#0f3a5c}.tour-viewer[open]{display:flex;flex-direction:column;gap:10px}.tour-viewer::backdrop{background:#0f3a5cbb}.tour-viewer-header{display:flex;align-items:center;justify-content:space-between;gap:12px}.tour-viewer-header h2{font-size:18px;margin:0}.tour-viewer-header button{min-width:44px;min-height:44px;border:1px solid #dee5ea;border-radius:8px;background:white;color:#0f3a5c;font-size:24px;cursor:pointer}.tour-select-label{font-size:13px}.tour-viewer select{width:100%;min-height:44px;padding:10px;border:1px solid #dee5ea;border-radius:8px;font-size:16px}.tour-viewer iframe{width:100%;flex:1;min-height:180px;border:0;border-radius:8px}.tour-status{font-size:12px;margin:0}.tour-unit-list{overflow:auto;max-height:280px}.floorplans{width:100%;border-collapse:collapse;font-size:12px}.floorplans th,.floorplans td{padding:9px;text-align:left;border-bottom:1px solid #dee5ea}.tour-panel .button{cursor:pointer;border:0}.tour-panel{padding:18px;background:#edf2f6;border-radius:12px;margin-top:18px}.tour-panel h2{font-size:20px}.tour-panel p{font-size:12px}@media(max-width:640px){.tour-viewer{padding:12px;width:96vw;height:94dvh}.tour-viewer-header h2{font-size:16px}}

/* Keep the close control above the embedded tour, including mobile landscape. */
.tour-viewer{overflow:hidden;overscroll-behavior:contain}
.tour-viewer .tour-viewer-header{position:relative;flex:none;min-height:44px;padding-right:56px}
.tour-viewer .tour-viewer-header h2{min-width:0;overflow-wrap:anywhere;line-height:1.35}
.tour-viewer .tour-viewer-close{position:absolute;right:0;top:0;display:flex;align-items:center;justify-content:center;flex:none;width:44px;height:44px;min-width:44px;min-height:44px;padding:0;border-radius:50%;background:#fff;color:#103a5c;border:2px solid #103a5c;font:32px/1 Arial,sans-serif;z-index:2;touch-action:manipulation}
.tour-viewer .tour-viewer-close:focus-visible{outline:3px solid #dfb651;outline-offset:2px}
.tour-viewer iframe{min-height:0;flex:1 1 0}
.tour-viewer>label,.tour-viewer>select,.tour-viewer>.tour-status{flex:none}
@media(max-width:640px){.tour-viewer{width:100%;max-width:100%;height:100dvh;max-height:100dvh;margin:0;border-radius:0;padding:max(10px,env(safe-area-inset-top)) max(12px,env(safe-area-inset-right)) max(10px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left));gap:8px}.tour-viewer .tour-viewer-header h2{font-size:15px}.tour-viewer .tour-status{font-size:11px}}
@media(max-width:640px) and (max-height:450px){.tour-viewer .tour-status,.tour-viewer>.tour-select-label{display:none}.tour-viewer[open]{gap:4px}}
