/* Version 9 copy of photo-walk-v8.css: the only change is the Menu button of Plain view (see "version 9" below).
   The polished photo walk (version 6; started as version 5's): the folding Rooms menu, the steady room caption with its
   lettering depth, glowing page tabs, a visible cue on every tappable wall piece, the phone button kept on small screens,
   and what the version 6 engine (photo-walk-v6.js) needs: one way of moving the page, a short dip for far moves, and
   pop-ups that hold the page still behind them. */

/* ---------- one way to move: AniaNav moves the page, so nothing else may glide on top of it ---------- */
/* (site.css asks for smooth scrolling, which would stack a second, browser-timed glide on every move) */
html{scroll-behavior:auto}
/* the walk maps the scroll position to the camera, so the browser must not nudge it when something above changes size */
html.tour3d{overflow-anchor:none}
/* a room pop-up holds the page still behind it; the scrollbar keeps its space so nothing shifts sideways */
html{scrollbar-gutter:stable}
html.pop-lock{overflow:hidden}
.pop-card{overscroll-behavior:contain}
.pop-scrim{touch-action:none}
/* the short dip while the page cuts to a room further away (under the header and the agent card) */
.nav-veil{position:fixed;inset:0;z-index:45;pointer-events:none;background:var(--scene-bg,#17110D);opacity:0;visibility:hidden}
.nav-veil.on{visibility:visible}
html:not(.tour3d) .nav-veil{background:#fff}

/* ---------- header: the Rooms menu sits right beside the phone button; it replaces the old pull-down page menu ---------- */
.nav .menu-btn{display:none!important}
@media (max-width:1180px){html.tour3d .nav ul,html:not(.js) .nav ul{display:none}}

/* ---------- version 9: the Menu button of Plain view ----------
   Under 1180px the section links don't fit in the header. The walk-through has its Rooms menu there; Plain view (every
   phone and tablet, or a narrow desktop window) gets this button, which drops the same links down as a sheet.
   assets/menu-v9.js opens and closes it. The state class is is-menu, because site.css has a global .open. */
.pmenu-btn{display:none;align-items:center;gap:9px;height:46px;padding:0 16px 0 14px;border-radius:999px;border:1.5px solid var(--line);background:#fff;color:var(--ink);font:600 13.5px/1 var(--f-body);cursor:pointer;flex:none;transition:border-color .35s,box-shadow .45s var(--ease),color .35s;-webkit-tap-highlight-color:transparent}
.pmenu-btn b{font-weight:600}
.pmenu-btn i{display:grid;gap:4px;width:18px}
.pmenu-btn i span{display:block;height:2px;border-radius:2px;background:currentColor;transition:transform .4s var(--ease),opacity .25s}
.nav.is-menu .pmenu-btn i span:nth-child(1){transform:translateY(6px) rotate(45deg)}
.nav.is-menu .pmenu-btn i span:nth-child(2){opacity:0}
.nav.is-menu .pmenu-btn i span:nth-child(3){transform:translateY(-6px) rotate(-45deg)}
.pmenu-btn:hover{border-color:var(--red);color:var(--red);box-shadow:0 0 0 4px rgba(211,35,42,.08)}
.pmenu-btn:focus-visible{outline:none;border-color:var(--red);box-shadow:0 0 0 3px #fff,0 0 0 5px var(--red)}
.pmenu-btn:active{transform:translateY(1px)}
.nav.is-menu .pmenu-btn{border-color:var(--ink);color:var(--ink)}
@media (max-width:1180px){
  html.js:not(.tour3d) .pmenu-btn{display:inline-flex}
  html.js:not(.tour3d) .nav.is-menu{z-index:95}
  html.js:not(.tour3d) .nav ul{position:absolute;left:auto;right:max(12px,env(safe-area-inset-right,0px));top:calc(100% + 8px);z-index:3;width:min(320px,calc(100vw - 24px));max-height:calc(100vh - 130px);max-height:calc(100dvh - 130px);overflow:auto;overscroll-behavior:contain;
    display:flex;flex-direction:column;gap:2px;margin:0;padding:8px;background:#fff;border-radius:18px;box-shadow:0 34px 70px -30px rgba(20,10,6,.5),0 0 0 1px var(--line);font:600 16px/1.2 var(--f-body);letter-spacing:0;
    transform:translateY(-10px);opacity:0;visibility:hidden;pointer-events:none;transition:opacity .22s,transform .4s var(--ease),visibility 0s linear .4s}
  html.js:not(.tour3d) .nav.is-menu ul{transform:none;opacity:1;visibility:visible;pointer-events:auto;transition:opacity .25s,transform .45s var(--ease),visibility 0s}
  html.js:not(.tour3d) .nav ul a{display:flex;align-items:center;min-height:50px;padding:0 16px 0 20px;border-radius:11px;color:var(--ink);transition:background .25s,color .25s}
  html.js:not(.tour3d) .nav ul a::after{left:8px;right:auto;top:15px;bottom:15px;width:3px;height:auto;transform:scaleY(0)}
  html.js:not(.tour3d) .nav ul a:hover::after,html.js:not(.tour3d) .nav ul a.on::after{transform:scaleY(1)}
  html.js:not(.tour3d) .nav ul a:hover,html.js:not(.tour3d) .nav ul a.on{color:var(--red)}
  html.js:not(.tour3d) .nav ul a:hover,html.js:not(.tour3d) .nav ul a:active{background:rgba(211,35,42,.07)}
  html.js:not(.tour3d) .nav ul a:focus-visible{outline:2px solid var(--red);outline-offset:-2px}
}
/* phones: the button is a square beside the WhatsApp button, the word kept for screen readers */
@media (max-width:640px){
  .pmenu-btn{width:46px;padding:0;justify-content:center;border-radius:12px}
  .pmenu-btn b{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
}
@media (max-width:380px){.pmenu-btn{width:44px;height:44px}}
@media (prefers-reduced-motion:reduce){.pmenu-btn,.pmenu-btn i span,html.js:not(.tour3d) .nav ul,html.js:not(.tour3d) .nav.is-menu ul{transition:none}}
.nav-end{position:relative}

/* ---------- the Rooms menu: a hinged, folding reveal ---------- */
.rooms{position:relative;flex:none}
/* the Rooms menus (header and gate) are part of the walk-through: Plain view doesn't show them */
html:not(.tour3d) .rooms{display:none}
/* the walk-through is offered on desktops only (a mouse or trackpad and a wide screen): elsewhere there is no switch */
html:not(.walk-ok) .view-toggle{display:none!important}
.rooms-btn{display:inline-flex;align-items:center;gap:9px;height:46px;padding:0 15px 0 13px;border-radius:999px;border:1.5px solid var(--line);background:#fff;color:var(--ink);font:600 13.5px/1 var(--f-body);cursor:pointer;transition:border-color .35s,box-shadow .45s var(--ease),color .35s;-webkit-tap-highlight-color:transparent}
.rooms-btn svg{width:18px;height:18px;flex:none}
.rooms-btn .chev{width:7px;height:7px;border-right:1.7px solid currentColor;border-bottom:1.7px solid currentColor;transform:translateY(-2px) rotate(45deg);transition:transform .55s var(--ease)}
.rooms.is-open .rooms-btn .chev{transform:translateY(2px) rotate(225deg)}
.rooms-btn:hover{border-color:var(--red);color:var(--red);box-shadow:0 0 0 4px rgba(211,35,42,.08),0 0 22px rgba(211,35,42,.28)}
.rooms-btn:focus-visible{outline:none;border-color:var(--red);box-shadow:0 0 0 3px #fff,0 0 0 5px var(--red),0 0 22px rgba(211,35,42,.3)}
.rooms-btn:active{transform:translateY(1px);box-shadow:0 0 0 4px rgba(211,35,42,.14)}
.rooms.is-open .rooms-btn{border-color:var(--ink)}
/* while a menu is open, its header (or the gate section) sits above the agent card and the room rail */
html.rooms-open-top .nav{z-index:95}
html.rooms-open-end main{z-index:96}
html.rooms-open-end .stop.contact{position:relative;z-index:95}

.rooms-menu{position:absolute;right:0;top:calc(100% + 10px);z-index:90;width:min(330px,calc(100vw - 24px));perspective:1200px;visibility:hidden;pointer-events:none;transition:visibility 0s linear .7s}
.rooms.is-open .rooms-menu{visibility:visible;pointer-events:auto;transition-delay:0s}
/* the sheet unrolls from its hinge at the top edge... */
.rooms-menu ol{list-style:none;margin:0;padding:8px;max-height:var(--menu-max,none);overflow:auto;overscroll-behavior:contain;background:#fff;border-radius:18px;box-shadow:0 34px 70px -30px rgba(20,10,6,.5),0 0 0 1px var(--line);transform-origin:50% 0;transform:rotateX(-58deg);clip-path:inset(0 0 100% 0 round 18px);transition:clip-path .52s var(--ease) .1s,transform .62s var(--ease) .08s}
.rooms.is-open .rooms-menu ol{transform:none;clip-path:inset(0 0 0 0 round 18px);transition:clip-path .58s var(--ease),transform .62s var(--ease)}
/* ...and each room folds down from the one above it, the reverse running bottom-up on close */
.rooms-menu li{transform-origin:50% 0;transform:rotateX(-92deg);opacity:.25;transition:transform .42s var(--ease) calc(var(--r) * 16ms),opacity .3s calc(var(--r) * 16ms)}
.rooms.is-open .rooms-menu li{transform:none;opacity:1;transition:transform .5s var(--ease) calc(80ms + var(--k) * 28ms),opacity .35s calc(80ms + var(--k) * 28ms)}
.rooms.is-up .rooms-menu{top:auto;bottom:calc(100% + 10px)}
.rooms.is-up .rooms-menu ol{transform-origin:50% 100%;transform:rotateX(58deg);clip-path:inset(100% 0 0 0 round 18px)}
.rooms.is-up.is-open .rooms-menu ol{transform:none;clip-path:inset(0 0 0 0 round 18px)}
.rooms.is-up .rooms-menu li{transform-origin:50% 100%;transform:rotateX(92deg);transition-delay:calc(var(--k) * 16ms)}
.rooms.is-up.is-open .rooms-menu li{transform:none;transition-delay:calc(80ms + var(--r) * 28ms)}

.rooms-menu a{display:grid;grid-template-columns:30px 1fr;align-items:center;gap:10px;min-height:44px;padding:7px 12px 7px 10px;border-radius:11px;text-decoration:none;color:var(--ink);position:relative;transition:background .3s,color .3s,text-shadow .4s}
.rooms-menu .n{font:700 11.5px/1 var(--f-body);letter-spacing:.08em;color:var(--red);font-variant-numeric:tabular-nums}
.rooms-menu .t{display:grid;gap:3px;min-width:0}
.rooms-menu .t b{font:600 14.5px/1.15 var(--f-body)}
.rooms-menu .t small{font:500 12.5px/1.2 var(--f-body);color:var(--ink-soft);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rooms-menu a:hover,.rooms-menu a:focus-visible{background:#FBF1EF;color:var(--red);text-shadow:0 0 14px rgba(211,35,42,.35);outline:none}
.rooms-menu a:focus-visible{box-shadow:inset 0 0 0 2px var(--red)}
.rooms-menu a:active{background:#F6E1DE}
.rooms-menu a.on{background:var(--ink);color:#fff}
.rooms-menu a.on .n,.rooms-menu a.on small{color:#FFB3A3}
.rooms-menu a.on::after{content:"You are here";position:absolute;right:12px;top:50%;transform:translateY(-50%);font:600 10.5px/1 var(--f-body);letter-spacing:.06em;text-transform:uppercase;color:#FFB3A3}
.rooms-menu a.on .t small{padding-right:84px}

/* ---------- the second menu, beside the "10 · The front gate" tag, rises in with the section ---------- */
.gate-nav{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;margin-bottom:14px}
.gate-nav .room-tag{margin-bottom:0}
.rooms.end{transform:translateY(16px);clip-path:inset(0 0 100% 0);transition:transform .8s var(--ease),clip-path .8s var(--ease)}
.rooms.end.is-shown{transform:none;clip-path:inset(-2000px -2000px -2000px -2000px)}
.rooms.end .rooms-menu{left:auto;right:0}
.rooms.end.is-left .rooms-menu{left:0;right:auto}
.contact .rooms.end .rooms-btn{background:var(--ink);color:#fff;border-color:var(--ink)}
.contact .rooms.end .rooms-btn:hover{background:#000;color:#fff}

/* ---------- page tabs glow (navigation tabs, the room rail, the footer links) ---------- */
.nav ul a,.rail a span,footer nav a{transition:color .35s,text-shadow .45s var(--ease)}
.nav ul a:hover,.nav ul a:focus-visible{color:var(--red);text-shadow:0 0 16px rgba(211,35,42,.45),0 0 2px rgba(211,35,42,.2);outline:none}
.nav ul a:focus-visible{box-shadow:0 0 0 2px #fff,0 0 0 4px rgba(211,35,42,.6);border-radius:6px}
.nav ul a:active{color:#A8151C;text-shadow:0 0 8px rgba(211,35,42,.5)}
.nav ul a.on{color:var(--ink)}
.rail a:hover span,.rail a:focus-visible span{text-shadow:0 0 14px rgba(211,35,42,.55),0 0 2px rgba(211,35,42,.25)}
.rail a:focus-visible{outline:none}
.rail a:focus-visible i{box-shadow:0 0 0 3px #fff,0 0 0 5px var(--red)}
footer nav a:hover,footer nav a:focus-visible{color:#fff;text-shadow:0 0 16px rgba(255,92,97,.7);outline:none}
footer nav a:focus-visible{box-shadow:0 0 0 2px rgba(255,92,97,.7);border-radius:6px}
footer nav a:active{color:#FFB3A3}

/* ---------- the room caption: steady, replaced at each room's doorway, with gentle lettering depth ---------- */
.tour3d .travel .cap{display:none}
.wcap{display:none}
.tour3d .wcap{display:block;position:fixed;z-index:0;right:clamp(116px,9vw,156px);bottom:max(17vh,120px);max-width:min(48vw,640px);text-align:right;pointer-events:none}
/* (it keeps clear of the room rail's labels on the right; where a room's pictures leave its usual place no room, it sits
   just under the header instead) */
.tour3d .wcap.high{top:calc(var(--navh,72px) + 20px);bottom:auto}
.tour3d .wcap.off{visibility:hidden}
.wcap-in{display:grid;gap:9px;justify-items:end;margin:0;will-change:transform;clip-path:inset(-30px -40px -40px -40px);transition:clip-path .34s var(--ease)}
.wcap-in.swap{clip-path:inset(-30px -40px 100% -40px);transition:clip-path .18s ease-in}
/* while a room card is over the caption's place the caption steps aside with the same wipe, so it never shows half covered */
.wcap.under .wcap-in{clip-path:inset(-30px -40px 100% -40px);transition:clip-path .18s ease-in}
.wcap small{font:700 12px/1 var(--f-body);letter-spacing:.2em;text-transform:uppercase;color:#FFC9BE;text-shadow:0 1px 1px rgba(0,0,0,.65),0 2px 12px rgba(0,0,0,.5)}
/* the headline letters: a fine highlight, a short warm edge for depth, and a soft drop that matches the late sun */
.wcap b{font:700 clamp(2.1rem,4.2vw,3.7rem)/1.02 var(--f-display);letter-spacing:-.035em;color:#FFFDF9;
  text-shadow:0 -1px 0 rgba(255,255,255,.55),0 1px 0 #E6DCCF,0 2px 0 #CDBFAE,0 3px 0 #AE9D89,0 4px 1px rgba(92,70,52,.85),0 7px 6px rgba(20,10,4,.32),0 12px 22px rgba(20,10,4,.34),0 24px 46px rgba(20,10,4,.26)}
.wcap span{font:500 16px/1.4 var(--f-body);color:#fff;text-shadow:0 1px 2px rgba(0,0,0,.6),0 2px 16px rgba(0,0,0,.5);max-width:34ch}
/* beside a wide room card (the kitchen, the gallery) the caption keeps to the space left, a size smaller */
.wcap.tight b{font-size:clamp(1.8rem,2.9vw,2.6rem)}
.wcap.tight span{font-size:15px}
@media (max-width:899px){
  /* on a phone the caption sits low, just above where each room's card arrives, clear of the picture's subject */
  .tour3d .wcap{left:16px;right:16px;top:auto;bottom:calc(19vh + 14px);max-width:none;text-align:left}
  .tour3d .wcap.high{top:calc(var(--navh,64px) + 16px);bottom:auto}
  .wcap-in{justify-items:start}
  .wcap b{font-size:clamp(1.75rem,8.4vw,2.6rem)}
  .wcap span{font-size:15px}
}
@media (prefers-reduced-motion:reduce){.wcap-in,.wcap-in.swap{transition:none}}

/* ---------- Ania's card and the room rail make way for what is being read ---------- */
/* the card steps aside while a room card passes beneath it (the header's WhatsApp button stays) */
.tour3d .guide.aside{opacity:0;visibility:hidden;pointer-events:none;transition:opacity .3s,visibility 0s linear .3s}
/* on phones and upright tablets the big card at the top starts below the whole header, not over its buttons */
@media (max-width:899px){.tour3d .guide.big{top:calc(var(--head-h,100px) + 12px + env(safe-area-inset-top,0px))}}
/* the rail makes way for the footer, whose links it would otherwise cover */
.tour3d .rail{transition:opacity .3s}
.tour3d.foot-in .rail{opacity:0;visibility:hidden;transition:opacity .3s,visibility 0s linear .3s}
/* a room whose photograph is still on its way shows the loading note until it arrives */
.tour3d.ready3d.pic-wait .loader{opacity:1}

/* ---------- decorative motion only where it is seen: no pulse on hidden dots, no spinner once loaded, still grain while standing ---------- */
.hotspot:not(.on) i::after{animation:none}
.tour3d.ready3d:not(.pic-wait) .loader i{animation:none}
html.tour3d.cine:not(.traveling) .cine-fx::after{animation-play-state:paused}

/* ---------- every tappable wall piece shows itself once when the room settles ---------- */
.hotarea.on{animation:wall-cue 1.8s var(--ease) .35s 1}
@keyframes wall-cue{0%,100%{box-shadow:0 0 0 0 rgba(255,255,255,0)}35%{box-shadow:0 0 0 2px rgba(255,255,255,.85),0 0 26px 4px rgba(211,35,42,.38)}}
.hotarea{cursor:pointer}
.hotarea:focus-visible{outline:none;box-shadow:0 0 0 2px #fff,0 0 0 5px var(--red)}
.hotarea:active{box-shadow:0 0 0 2px #fff,0 0 30px 6px rgba(211,35,42,.45)}
@media (prefers-reduced-motion:reduce){.hotarea.on{animation:none}.rooms-menu ol,.rooms-menu li,.rooms.end{transition-duration:.01s!important;transition-delay:0s!important}}

/* ---------- the phone button stays on small screens, as a compact button ---------- */
@media (max-width:899px){
  .nav .nav-end .btn.red.phone-btn{display:inline-flex;width:46px;height:46px;padding:0;border-radius:12px;justify-content:center}
  .phone-btn span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
}
@media (max-width:640px){.rooms.top .rooms-btn span{display:none}.rooms.top .rooms-btn{padding:0 12px}}
@media (max-width:380px){.rooms.top .rooms-btn .chev{display:none}.rooms.top .rooms-btn{width:44px;height:44px;padding:0;justify-content:center}.nav .nav-end .btn.red.phone-btn{width:44px;height:44px}}
/* the headline's last words stay together */
.hero h1 .w.script{white-space:nowrap}
@media (max-width:430px){
  .nav .wrap{gap:10px}
  .nav .brand{gap:8px}
  .nav .brand svg{width:40px;height:30px}
  .nav .brand b{font-size:1.35rem}
  .nav-end{gap:6px}
  .rooms.top .rooms-btn{width:46px;padding:0;justify-content:center}
  .rooms.top .rooms-btn .chev{display:none}
}
@media (max-width:360px){
  .nav .wrap{gap:6px}
  .nav .brand{gap:6px}
  .nav .brand svg{width:34px;height:26px}
  .nav .brand b{font-size:1.18rem}
  .nav .brand small{letter-spacing:.3em}
  .nav-end{gap:5px}
  .nav .view-toggle{width:42px;height:44px;padding:0;justify-content:center}
}

/* ---------- version 9: the footer's legal line and the note under the contact form ---------- */
footer .legal-line{flex-basis:100%;margin:0;font-size:.84rem;line-height:1.6;border-top:1px solid rgba(255,255,255,.16);padding-top:16px}
.form .consent{margin:10px 0 0;font-size:.82rem;line-height:1.5;color:var(--ink-soft)}
.form .consent a{color:var(--red-deep);text-underline-offset:3px}
