/* Shared by V5, V6, V7: the oxblood door, the 3D tour behind it, small helpers.
   z-scale: photo 0, copy 1, ambience 30-41, header 50, sticky bar 55, dialog = top layer */
html.locked,html.locked body{overflow:hidden}
#door{display:none}
.js #door{display:block;position:absolute;inset:0;z-index:2;overflow:hidden;cursor:pointer;background:radial-gradient(120% 90% at 50% 50%,#1d0608 0,#0d0304 55%,#070202 100%)}
#door img,#door video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
#door .wood,#door .seal,#door video,#door .lit{opacity:0}
#door .seal{-webkit-mask:radial-gradient(circle at 50% 50%,#000 calc(var(--sr) - 1px),transparent var(--sr));mask:radial-gradient(circle at 50% 50%,#000 calc(var(--sr) - 1px),transparent var(--sr))}
#door .lit{z-index:1;opacity:var(--d2,0)}#door video{z-index:2}
#door svg{position:absolute;z-index:3;left:50%;top:50%;width:calc(var(--rr)*2 + 12px);height:calc(var(--rr)*2 + 12px);transform:translate(-50%,-50%) rotate(-90deg);overflow:visible;filter:drop-shadow(0 0 7px rgba(255,160,70,.8))}
#door circle{fill:none;stroke:#ffd59a;stroke-width:2;stroke-linecap:round;stroke-dasharray:1;stroke-dashoffset:calc(1 - var(--dp,0))}
#door.s1 .seal{animation:dseal .8s cubic-bezier(.3,0,.2,1) both}
#door.s1 .wood{animation:dwood 1.15s .35s cubic-bezier(.4,0,.3,1) both}
@keyframes dseal{from{opacity:0;filter:brightness(.25) blur(5px);transform:scale(1.035)}to{opacity:1;filter:none;transform:none}}
@keyframes dwood{from{opacity:0}to{opacity:1}}
#door.done{opacity:0;transition:opacity .28s linear;pointer-events:none}
#door.skip{opacity:0;transition:opacity .6s ease;pointer-events:none}
@media(prefers-reduced-motion:reduce){.js #door{display:none}}

/* a photo with depth: <div class="wa-stage"><img></div>, canvas is added on top */
.wa-cv{position:absolute;inset:0;width:100%;height:100%;opacity:0;transition:opacity .6s}
.wa-cv.on{opacity:1}

/* the tour opens behind the same door */
dialog.wa-tour{position:fixed;inset:0;width:100vw;height:100dvh;max-width:none;max-height:none;margin:0;padding:0;border:0;background:#0b0405;overflow:hidden}
dialog.wa-tour::backdrop{background:#0b0405}
.wa-tour iframe{position:absolute;inset:0;width:100%;height:100%;border:0;background:#0b0405}
.wa-tour .leaf{position:absolute;inset:0;transition:opacity .9s ease;background:#0b0405}
.wa-tour .leaf video{width:100%;height:100%;object-fit:cover}
.wa-tour .leaf.gone{opacity:0;pointer-events:none}
.wa-tour button{position:absolute;right:1.5rem;top:1.5rem;height:3rem;padding:0 1.5rem;border:0;border-radius:var(--btn-r,99rem);background:#efe6d8;color:#1b0d0c;font:500 1rem var(--sans,system-ui);cursor:pointer}
.wa-tour button:active{transform:scale(.98)}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}

/* our date field and its calendar (wa.js datePicker): the browser's own picker cannot be styled */
.dpf{display:flex;align-items:center;justify-content:space-between;gap:.8rem;width:100%;height:3.5rem;padding:0 1.1rem;border:1px solid rgba(224,176,116,.24);border-radius:.4rem;background:rgba(255,255,255,.03);color:var(--fg,#f6ebdc);font:400 1.1rem/1.2 var(--sans,system-ui);text-align:left;cursor:pointer;-webkit-appearance:none;appearance:none;transition:border-color .3s,background-color .3s,box-shadow .3s}
.dpf em{display:block;min-width:0;margin:0;overflow:hidden;font:inherit;font-style:normal;letter-spacing:normal;text-transform:none;color:inherit;white-space:nowrap;text-overflow:ellipsis}
.dpf.empty em{color:#7a6c5f}
.dpf svg{flex:none;width:1.15rem;height:1.15rem;fill:none;stroke:var(--ac,#e0b074);stroke-width:1.3;stroke-linecap:round;opacity:.85}
.dpf:hover{border-color:rgba(224,176,116,.48)}
.dpf:focus{outline:0}.dpf:focus-visible,.dpf[aria-expanded=true]{border-color:var(--ac,#e0b074);background-color:rgba(224,176,116,.06);box-shadow:0 0 0 3px rgba(224,176,116,.13)}
.xq .dpf{height:3.1rem;padding:0 1rem;border-color:rgba(224,176,116,.22);border-radius:.3rem;font-size:1rem}
.bad .dpf{border-color:rgba(255,171,150,.7)}
.dp{position:absolute;z-index:48;width:16.5rem;max-width:calc(100vw - 16px);padding:.75rem .8rem .8rem;border:1px solid rgba(224,176,116,.22);border-radius:.55rem;background:#1c1411;box-shadow:0 1.2rem 2.8rem rgba(0,0,0,.55);color:var(--fg,#f6ebdc);font:400 1rem/1 var(--sans,system-ui);color-scheme:dark}
.dp button{margin:0;padding:0;border:0;background:none;color:inherit;font:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent}
.dp button:focus{outline:0}.dp button:focus-visible{box-shadow:0 0 0 2px var(--ac,#e0b074)}
.dph{display:flex;align-items:center;gap:.3rem;margin:0 0 .35rem .3rem}
.dph b{flex:1;font:400 1.2rem/1 var(--disp,Georgia,serif);letter-spacing:-.02em}.dph b span{color:#a89a87}
.dph button{display:grid;place-items:center;width:1.85rem;height:1.85rem;border:1px solid rgba(224,176,116,.22);border-radius:50%;transition:border-color .25s,background-color .25s,opacity .25s}
.dph button svg{width:.62rem;height:.62rem;fill:none;stroke:var(--ac,#e0b074);stroke-width:1.4;stroke-linecap:round;stroke-linejoin:round}
.dph button:hover:not(:disabled){border-color:var(--ac,#e0b074);background:rgba(224,176,116,.08)}.dph button:disabled{opacity:.28;cursor:default}
.dpw,.dpg{display:grid;grid-template-columns:repeat(7,1fr);gap:.1rem;text-align:center}
.dpw i{padding:.3rem 0 .4rem;font:500 .6rem/1 var(--sans,system-ui);font-style:normal;letter-spacing:.12em;text-transform:uppercase;color:#a89a87}
.dpg button{position:relative;height:var(--dh,2rem);border-radius:99rem;font-size:.85rem;font-variant-numeric:tabular-nums;transition:background-color .2s,color .2s}
.dpg button:hover:not(:disabled){background:rgba(224,176,116,.12)}
.dpg button:disabled{color:#4f443b;cursor:default}
.dpg .now{color:var(--ac,#e0b074)}.dpg .now::after{content:"";position:absolute;left:50%;bottom:.15rem;width:.2rem;height:.2rem;margin-left:-.1rem;border-radius:50%;background:currentColor}
.dpg [aria-pressed=true],.dpg [aria-pressed=true]:hover{background:var(--ac,#e0b074);color:var(--on,#2a150a);font-weight:500}
.dpg [aria-pressed=true]:focus-visible{box-shadow:0 0 0 2px #1c1411,0 0 0 4px var(--ac,#e0b074)}
