/* az-hero-lens.css - homepage hero pictures, lens dial and camera-focus transitions (az-hero-lens.js),
   and the 360° tour popup on every page.

   Alignment: each picture and its clickable parts share one box (the "frame") with the picture's exact
   proportions (--ar). The picture fills the frame and the SVG of parts fills it too, so they can never drift
   apart. Desktop: the frame covers the hero (the resort anchored at the bottom, the buildings centred).
   Phones: the frame is fit to the width and centred; a blurred, darkened copy of the same picture fills the
   space above and below. */

/* ---------- slides ---------- */
.az-hero{--azl-t:.8s}
.azl-slide,.azl-bg,main>.az-hero>.az-hero-map-scene{position:absolute}
/* transitions and stacking live only on the state attribute, so no layout rule can override them */
[data-azl]{transition:opacity var(--azl-t) ease,filter var(--azl-t) ease,scale var(--azl-t) cubic-bezier(.25,.6,.3,1)}
.azl-slide{inset:0;overflow:hidden}
.azl-bg{inset:0;display:none;overflow:hidden;background:#0c0a09}
.azl-bg img{position:absolute;inset:-48px;width:calc(100% + 96px);height:calc(100% + 96px);max-width:none;object-fit:cover;filter:blur(22px) brightness(.5) saturate(1.1)}

/* the frame: the resort scene from the page itself, or a building slide's .azl-frame */
main>.az-hero>.az-hero-map-scene,.azl-frame{
 --ar:1580/996;inset:auto;left:50%;bottom:0;top:auto;width:max(100%,calc(100vh * var(--ar)));width:max(100%,calc(100dvh * var(--ar)));height:auto;aspect-ratio:var(--ar);translate:-50% 0;overflow:visible}
.azl-frame{position:absolute;top:50%;bottom:auto;translate:-50% -50%}
main>.az-hero>.az-hero-map-scene.is-ready{animation:none}
main>.az-hero .az-hero-map-scene>img,.azl-frame>img{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:fill;max-width:none}
main>.az-hero .az-hero-hotspots,.azl-parts{position:absolute;inset:0;width:100%;height:100%;overflow:visible}
main>.az-hero .az-hero-map-scene>.az-hero-shade{display:none}
/* soft shade at the top of the hero so the header stays readable over bright skies */
main>.az-hero::before{content:"";position:absolute;left:0;right:0;top:0;height:150px;z-index:3;pointer-events:none;background:linear-gradient(180deg,rgba(6,9,7,.5),rgba(6,9,7,0))}
.azl-parts polygon{pointer-events:visiblePainted;fill:transparent;stroke:transparent;cursor:pointer}
.azl-parts .az-hs{outline:none}

/* states: data-azl = on | off | out (leaving) | in (arriving) */
[data-azl="off"]{opacity:0;visibility:hidden;pointer-events:none;transition:none}
[data-azl="on"]{opacity:1;visibility:visible;filter:none;scale:1;z-index:2}
/* leaving: the lens refocuses - a slight zoom in and a blur while it fades */
[data-azl="out"]{opacity:0;visibility:visible;pointer-events:none;filter:blur(14px);scale:1.08;z-index:1;transition:opacity var(--azl-t) cubic-bezier(.5,0,.75,.6),filter var(--azl-t) ease,scale var(--azl-t) cubic-bezier(.25,.6,.3,1)}
/* arriving: starts soft and a touch large, then settles sharply into focus (z above the leaving one) */
[data-azl="in"]{opacity:0;visibility:visible;filter:blur(14px);scale:1.035;z-index:2;transition:none}

/* ---------- phones: whole building, fit to width, blurred fill around it ---------- */
@media (max-width:768px),(orientation:portrait) and (max-width:1023px){
 .azl-bg{display:block}
 main>.az-hero>.az-hero-map-scene,.azl-frame{width:100%;top:50%;bottom:auto;translate:-50% -50%}
}

/* ---------- lens dial ---------- */
.azl-dial{position:absolute;z-index:6;right:clamp(14px,2.6vw,40px);top:50%;translate:0 -50%;display:flex;flex-direction:column;align-items:flex-end;gap:0;padding:10px 0;touch-action:none;user-select:none;-webkit-user-select:none}
/* the thin line with fine markings, like the scale on a focus ring */
.azl-dial::before{content:"";position:absolute;right:21px;top:0;bottom:0;width:1px;background:rgba(255,255,255,.55);box-shadow:0 0 6px rgba(0,0,0,.35)}
.azl-dial::after{content:"";position:absolute;right:16px;top:6px;bottom:6px;width:11px;opacity:.5;
 background:repeating-linear-gradient(180deg,rgba(255,255,255,.85) 0 1px,transparent 1px 12px);-webkit-mask:linear-gradient(90deg,transparent 0 2px,#000 2px 9px,transparent 9px);mask:linear-gradient(90deg,transparent 0 2px,#000 2px 9px,transparent 9px)}
.azl-dot{all:unset;box-sizing:border-box;position:relative;z-index:1;display:flex;align-items:center;justify-content:flex-end;gap:12px;height:56px;padding:0 10px 0 14px;cursor:pointer;-webkit-tap-highlight-color:transparent}
.azl-mark{flex:none;display:block;width:12px;height:12px;margin-right:6px;border-radius:50%;background:rgba(255,255,255,.92);box-shadow:0 0 0 3px rgba(0,0,0,.18),0 1px 6px rgba(0,0,0,.45);transition:width .3s ease,height .3s ease,margin .3s ease,background-color .3s ease,box-shadow .3s ease}
.azl-dot[aria-checked="true"] .azl-mark{width:22px;height:22px;margin-right:1px;background:#2fa52a;box-shadow:0 0 0 4px rgba(47,165,42,.28),0 0 14px rgba(47,165,42,.65)}
.azl-name{padding:6px 11px;border-radius:7px;background:rgba(13,15,13,.82);border:1px solid rgba(47,165,42,.55);color:#fff;font:600 13px/1.2 "Plus Jakarta Sans",system-ui,sans-serif;letter-spacing:.01em;white-space:nowrap;
 opacity:0;translate:6px 0;pointer-events:none;transition:opacity .2s ease,translate .2s ease;box-shadow:0 6px 18px -8px rgba(0,0,0,.6)}
.azl-dot[aria-checked="true"] .azl-name,.azl-dot:hover .azl-name,.azl-dot:focus-visible .azl-name{opacity:1;translate:0 0}
.azl-dot[aria-checked="true"] .azl-name{background:#2fa52a;border-color:#2fa52a}
.azl-dot:focus-visible .azl-mark{outline:2px solid #fff;outline-offset:3px}
.azl-dot:hover:not([aria-checked="true"]) .azl-mark{background:#fff;box-shadow:0 0 0 3px rgba(47,165,42,.45),0 1px 6px rgba(0,0,0,.45)}

/* ---------- scroll-down arrow, bottom centre ---------- */
.azl-down{position:absolute;z-index:6;left:50%;bottom:clamp(14px,2.6vh,28px);translate:-50% 0;width:44px;height:44px;padding:0;display:grid;place-items:center;border:1px solid rgba(255,255,255,.6);border-radius:50%;
 background:rgba(13,15,13,.3);color:#fff;cursor:pointer;animation:azlDown 2.4s ease-in-out 1.5s infinite}
.azl-down svg{width:20px;height:20px}
.azl-down:focus-visible{outline:2px solid #fff;outline-offset:3px}
@keyframes azlDown{0%,100%{transform:translateY(0)}50%{transform:translateY(6px)}}

@media (max-width:640px){
 .azl-dial{right:8px}
 .azl-dot{height:50px;padding-left:8px}
 .azl-name{font-size:12px;padding:5px 9px}
}

/* ---------- 360° tour popup (all pages): fixed over the page, never in the page flow ---------- */
main>.az-modal,.az-modal{position:fixed!important;inset:0!important;z-index:2147482000!important;width:100%;height:100vh;height:100dvh;background:#0c0a09;touch-action:none}
html.az-tour-open,html.az-tour-open body{overflow:hidden!important;overscroll-behavior:none}

@media (prefers-reduced-motion:reduce){
 .az-hero{--azl-t:.01s}
 .azl-down{animation:none}
 [data-azl="out"],[data-azl="in"]{filter:none;scale:1}
}
