/* A quiet frame for actual tours and actual CubiCasa plans. No generated property imagery. */
.property-explorer{padding-top:30px;padding-bottom:85px}
.tour-heading{display:flex;justify-content:space-between;align-items:end;gap:50px;margin-bottom:37px}
.tour-heading .eyebrow{color:var(--coral);font-size:10px;margin-bottom:22px}
.tour-heading h2{font-size:clamp(40px,4.7vw,73px);line-height:1.02}
.tour-heading>p{font-size:15px;line-height:1.8;max-width:350px;margin-bottom:5px}
.tour-switcher{display:flex;align-items:center;gap:30px;position:relative;border-bottom:1px solid var(--line);margin-bottom:23px;width:100%}
.tour-switcher button{font-size:14px;line-height:1.2;min-height:52px;padding:12px 3px 18px;color:#a39786;white-space:nowrap;transition:color .3s}
.tour-switcher button[aria-selected=true]{color:var(--cream)}
.tour-tab-line{position:absolute;bottom:-1px;height:2px;background:var(--coral);width:var(--tab-width,80px);transform:translateX(var(--tab-x,0px));transition:transform .5s var(--ease),width .5s var(--ease);left:0;pointer-events:none}
.tour-viewer{position:relative;aspect-ratio:16/9;width:100%;min-height:350px;max-height:780px;background:#221e19;border:1px solid #eee1cf27;overflow:hidden;border-radius:3px;isolation:isolate}
.tour-viewer[data-provider=cubi]{background:#e9e1d4}
.tour-empty{position:absolute;inset:0;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:19px;text-align:center;padding:30px}
.tour-empty>span{font:500 clamp(24px,3.2vw,50px)/1 var(--sans);letter-spacing:-.025em;color:#f5eddfb3}
.tour-empty>p{font-size:13px;color:#a39580;line-height:1.6}
.tour-viewer[data-provider=cubi] .tour-empty>span{color:#6d604c}.tour-viewer[data-provider=cubi] .tour-empty>p{color:#8c7b63}
.tour-viewer iframe{position:absolute;inset:0;width:100%;height:100%;border:0;background:#141210}
.tour-viewer>img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;padding:18px}
.tour-caption{display:flex;justify-content:space-between;align-items:center;gap:20px;padding-top:17px}
.tour-caption>p{font-size:11px;line-height:1.6;color:#988b78;max-width:470px}
.tour-caption>div{display:flex;align-items:center;gap:27px;flex-shrink:0}
.tour-caption button,.tour-caption a{font-size:12px;line-height:1.4;min-height:44px;display:flex;align-items:center;gap:12px;padding:7px 0;color:#c2b4a0}
.tour-caption a:last-child{color:var(--cream)}.tour-caption a:hover,.tour-caption button:hover{color:var(--coral)}
#tour-edit>span{font-size:18px;color:var(--coral)}
#tour-source-dialog{width:min(540px,94vw);max-width:94vw;max-height:94dvh;margin:auto;padding:25px 30px 32px;overflow:auto}
#tour-source-dialog[open]{animation:dialogIn .35s var(--ease)}
#tour-source-dialog h2{font-size:34px;line-height:1.1;margin:25px 0 17px}
#tour-source-help{font-size:13px;line-height:1.7;color:#ae9f89;margin-bottom:25px}
#tour-source-form label{font-size:12px}#tour-source-url{font-size:14px;margin-top:8px}
#tour-source-form>.button{margin-top:25px;font-size:13px;min-height:48px}
#tour-source-dialog .prototype-note{font-size:10px;line-height:1.7;margin-top:26px}
#tour-source-error{font-size:12px;line-height:1.6;margin-top:20px;color:#ffac88}
#tour-floor-upload .upload-label{font-size:12px;min-height:52px}
@media(max-width:900px){.tour-heading h2{font-size:49px}.tour-heading>p{font-size:13px}.tour-caption>div{gap:20px}.tour-caption>p{max-width:320px}.tour-viewer{min-height:420px}}
@media(max-width:600px){.property-explorer{padding-top:15px;padding-bottom:60px}.tour-heading{display:block;margin-bottom:24px}.tour-heading .eyebrow{font-size:8px;margin-bottom:18px}.tour-heading h2{font-size:43px;line-height:1.04}.tour-heading>p{font-size:13px;max-width:300px;margin-top:21px;line-height:1.7}.tour-switcher{justify-content:space-between;gap:16px;margin-bottom:17px}.tour-switcher button{font-size:13px;min-height:49px;padding-inline:0}.tour-viewer{min-height:400px;aspect-ratio:4/5}.tour-empty{gap:17px;padding:25px}.tour-empty>span{font-size:29px}.tour-empty>p{font-size:12px;max-width:225px}.tour-caption{display:block;padding-top:15px}.tour-caption>p{font-size:10px;max-width:none}.tour-caption>div{justify-content:space-between;gap:20px;flex-wrap:wrap;margin-top:7px}.tour-caption button,.tour-caption a{font-size:11px}.tour-caption>div>#tour-open{order:3;font-size:10px;min-height:32px;margin-top:-10px;width:100%}.tour-viewer>img{padding:10px}#tour-source-dialog{padding:19px 23px 28px}#tour-source-dialog h2{font-size:30px}#tour-source-form>.button{width:100%}}
@media(max-width:350px){.tour-heading h2{font-size:38px}.tour-switcher button{font-size:12px}.tour-switcher{gap:14px}.tour-viewer{min-height:360px}.tour-caption>div{gap:12px}.tour-caption button,.tour-caption a{font-size:10px}}
/* Phone viewer with measured breathing room; the real provider tabs remain fully usable. */
@media(max-width:900px){
 .property-explorer{padding-top:38px;padding-bottom:48px}
 .tour-heading{display:block;margin-bottom:25px}
 .tour-heading .eyebrow,.tour-heading>p{display:none}
 .tour-heading h2{font-size:36px;line-height:1.1}
 .tour-heading h2 br{display:none}
 .tour-switcher{justify-content:space-between;gap:12px;margin-bottom:14px}
 .tour-switcher button{font-size:13px;min-height:48px;padding-inline:0}
 .tour-viewer{aspect-ratio:4/3;min-height:320px;height:clamp(320px,95vw,420px);max-height:none}
 .tour-empty{gap:14px;padding:20px}
 .tour-empty>span{font-size:28px}
 .tour-empty>p{font-size:12px}
 .tour-caption{display:block;padding-top:12px}
 .tour-caption>p{font-size:10px;line-height:1.5}
 .tour-caption>div{justify-content:space-between;gap:12px;flex-wrap:wrap;margin-top:4px}
 .tour-caption button,.tour-caption a{font-size:11px;min-height:44px}
 .tour-caption>div>#tour-open{min-height:44px;margin:0}
}
/* Actual delivered CubiCasa sheets: no redraw, crop or signed links. */
.tour-viewer[data-provider=cubi]{background:#fff}
.tour-viewer>.cubi-plan{object-fit:contain;padding:70px 14px 12px;background:#fff}
.cubi-plan-controls{position:absolute;z-index:3;top:12px;left:16px;right:16px;display:flex;align-items:center;gap:13px;min-height:44px;color:var(--ink)}
.cubi-plan-controls label{font-size:12px;font-weight:500}
.cubi-plan-select{appearance:none;-webkit-appearance:none;width:auto;min-width:126px;height:44px;min-height:44px;padding:9px 30px 9px 12px;background-color:#faf6f0;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%23141210' stroke-width='1.5'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 12px center;border:1px solid #b5a58f;border-radius:2px;color:#141210;font:500 14px/1.4 var(--sans);color-scheme:light}
.cubi-plan-select:focus-visible{outline:2px solid #a53b19;outline-offset:3px}
@media(max-width:600px){.tour-viewer>.cubi-plan{padding:65px 5px 5px}.cubi-plan-controls{left:12px;right:12px;top:10px}.cubi-plan-select{font-size:16px}}

/* Each tab uses original provider artwork, never recolored text substitutes. */
.tour-switcher button{display:flex;align-items:center;justify-content:center;min-height:56px;padding:8px 0 12px;min-width:0}
.tour-tab-brand{display:flex;align-items:center;justify-content:center;background:#fff;padding:7px 9px;border-radius:2px;width:146px;height:38px;max-width:100%;box-sizing:border-box}
.tour-tab-brand img{display:block;width:126px;max-width:100%;height:auto;max-height:25px;object-fit:contain;filter:none}
.tour-tab-brand-zillow img{width:105px}
.tour-tab-brand-cubi{background:#244f5b}
.tour-provider-badge{position:absolute;top:22px;left:22px;z-index:2;background:#fff;padding:10px 13px;border-radius:2px}
.tour-provider-logo{display:block;width:150px;height:auto;filter:none}
.cubi-provider-badge{display:flex;align-items:center;justify-content:center;background:#244f5b;border-radius:2px;padding:10px 12px;flex-shrink:0}
.cubi-provider-logo{width:118px;height:auto;filter:none}
@media(max-width:900px){.tour-switcher{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.tour-switcher button{width:100%}.tour-tab-brand{width:100%;max-width:146px}.tour-provider-badge{top:16px;left:16px;padding:9px 10px}.tour-provider-logo{width:122px}}
@media(max-width:600px){.tour-switcher{gap:8px}.tour-tab-brand{padding:6px;height:34px}.tour-tab-brand img{width:100%;height:auto;max-height:22px}.tour-tab-brand-zillow img{width:85%}.cubi-plan-controls{column-gap:9px;flex-wrap:wrap;align-content:start}.cubi-provider-badge{padding:7px 9px}.cubi-provider-logo{width:94px}.cubi-plan-controls label{font-size:11px}.cubi-plan-controls .cubi-plan-select{min-width:116px}.tour-viewer>.cubi-plan{padding-top:112px}}


/* Real configured tour: first-party poster until the visitor starts it. */
.tour-cover{position:absolute;inset:0;display:grid;place-items:center;background:var(--espresso,#2b2520)}
.tour-cover>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:.78}
.tour-cover::after{content:'';position:absolute;inset:0;background:#1412103d;pointer-events:none}
.tour-start{position:relative;z-index:2;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;min-width:192px;min-height:94px;padding:20px 25px;background:var(--cream);color:var(--ink);border:1px solid var(--cream);border-radius:3px;transition:background .2s,transform .2s}
.tour-start strong{font:600 20px/1.2 var(--sans);letter-spacing:-.02em}
.tour-start span{font-size:11px;line-height:1.5;letter-spacing:.02em}
.tour-start:hover{background:var(--sand);transform:translateY(-2px)}
.tour-start:focus-visible{outline:3px solid var(--coral);outline-offset:5px}
@media(prefers-reduced-motion:reduce){.tour-start{transition:none}.tour-start:hover{transform:none}}
body.motion-off .tour-start{transition:none;transform:none}

@media(prefers-reduced-motion:reduce){.tour-tab-line{transition:none!important}}
body.motion-off .tour-tab-line{transition:none!important}
