/* Page 03 only. Main cards remain open; curtain is showroom-only. */
#villas{position:relative;isolation:isolate;z-index:9;color:#edf8ff;font-family:system-ui,-apple-system,sans-serif}
#villas>.gbr-inner-shell{display:none!important}
#villas .v15-layout{position:absolute;inset:0;pointer-events:none;overflow:hidden}
#villas .v15-heading{position:absolute;top:max(75px,10%);left:50%;width:32%;transform:translateX(-50%);text-align:center;z-index:2}
#villas .v15-heading small{font-size:10px;color:#22d3ee;letter-spacing:.2em;font-weight:700}
#villas .v15-heading h2{font-size:clamp(32px,4.5vw,66px);letter-spacing:-.06em;line-height:1;margin:6px 0}
#villas .v15-side{position:absolute;top:14%;bottom:6%;width:30%;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(4,minmax(0,1fr));gap:clamp(6px,1.2vh,12px) clamp(7px,1.3vw,19px);align-items:stretch;pointer-events:none}
#villas .v15-left{left:3.2%}#villas .v15-right{right:3.2%}
#villas .v15-card{position:relative;min-width:0;min-height:0;display:block;pointer-events:auto;transform:translate3d(0,calc(var(--v15-offset,0px) * var(--v15-depth,0)),0) rotate(var(--angle));perspective:1100px;z-index:1}
#villas .v15-card:hover,#villas .v15-card:focus-within{z-index:5}
#villas .v15-card:nth-child(even){translate:0 4px}
#villas .v15-card:last-child:nth-child(odd){grid-column:1/-1;width:54%;justify-self:center}
#villas .v15-float{width:100%;height:100%;animation:v15-bob var(--duration,6s) ease-in-out infinite;animation-delay:var(--delay);animation-play-state:paused}
#villas .v15-layout[data-active=true] .v15-float{animation-play-state:running}
@keyframes v15-bob{0%,100%{transform:translateY(1px)}50%{transform:translateY(-4px)}}
#villas .v15-button{position:relative;width:100%;height:100%;display:grid;grid-template-rows:minmax(0,1fr) auto;gap:3px;padding:5px;border:1px solid #a6d4de80;border-radius:9px;background:linear-gradient(150deg,#d1f4fc33,#142b39e6 50%,#0a1521f5);color:#fff;text-align:left;cursor:pointer;transform:rotateX(var(--rx,0deg)) rotateY(var(--ry,0deg));transition:transform .25s ease;overflow:hidden;touch-action:pan-y;box-shadow:0 7px 22px #0006}
#villas .v15-button:focus-visible{outline:2px solid #22D3EE;outline-offset:2px}
#villas .v15-button::after{content:'';position:absolute;inset:0;border-radius:inherit;background:radial-gradient(circle at var(--gx,50%) var(--gy,50%),#22d3ee40,transparent 45%),linear-gradient(130deg,transparent 50%,#ea580c24 70%,transparent 85%);opacity:var(--glare,0);pointer-events:none;transition:opacity .2s}
#villas .v15-media{min-height:0;display:block;overflow:hidden;border-radius:5px;background:#0d2432}
#villas .v15-media img{display:block;width:100%;height:100%;object-fit:cover;transform:scale(1.05) translate(var(--ix,0px),var(--iy,0px));transition:transform .25s ease;pointer-events:none}
#villas .v15-label{display:flex;align-items:center;justify-content:space-between;gap:4px;font-size:clamp(9px,.9vw,13px);line-height:1.12;font-weight:650;min-width:0;white-space:nowrap}
#villas .v15-label small{font-size:8px;font-weight:500;color:#bbd4e0;white-space:nowrap}
#villas .v15-copy{position:absolute;left:50%;top:51%;width:min(29%,405px);transform:translate(-50%,-50%);text-align:center;padding:clamp(9px,1.6vw,22px);border:1px solid #22d3ee24;border-radius:18px;background:#040d1a15;box-shadow:inset 0 1px #22d3ee12;pointer-events:none;z-index:2;text-shadow:0 2px 9px #040d1a}
#villas .v15-copy h3{margin:0 0 8px;font-size:clamp(18px,2.2vw,31px);letter-spacing:-.035em;line-height:1.1}
#villas .v15-copy p{font-size:clamp(11px,1.04vw,15px);line-height:1.5;margin:0 0 8px;color:#d8ebf3}
#villas .v15-copy .v15-note{font-size:clamp(9px,.84vw,12px);color:#9bb7c7}
#villas .v15-copy a{pointer-events:auto;display:inline-flex;margin-top:5px;border-radius:30px;padding:9px 15px;text-decoration:none;color:white;background:#EA580C;font-size:12px;font-weight:650}
#villas .v15-foot{position:absolute;bottom:2%;left:35%;width:30%;text-align:center;font-size:10px;color:#9db8c9;pointer-events:none}
@media(max-width:760px) and (min-height:551px){#villas .v15-heading{top:70px;width:94%}#villas .v15-heading h2{font-size:29px;margin:3px 0}#villas .v15-heading small{font-size:8px}#villas .v15-side{width:calc(100% - 24px);left:12px;right:12px;grid-template-columns:repeat(4,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr));gap:6px}#villas .v15-left{top:15%;bottom:61%}#villas .v15-right{top:71%;bottom:5%}#villas .v15-card:last-child:nth-child(odd){grid-column:auto;width:auto;justify-self:stretch}#villas .v15-copy{top:55%;width:86%;padding:8px}#villas .v15-copy h3{font-size:19px;margin-bottom:5px}#villas .v15-copy p{font-size:11px;line-height:1.25;margin-bottom:5px}#villas .v15-copy a{padding:6px 11px;margin-top:1px;font-size:11px}#villas .v15-button{padding:3px;gap:2px}#villas .v15-label{font-size:9px}#villas .v15-label small{display:none}#villas .v15-foot{display:none}}
@media(max-height:550px){#villas .v15-heading{top:55px}#villas .v15-heading h2{font-size:25px}#villas .v15-heading small{font-size:8px}#villas .v15-side{top:23%;bottom:4%;width:30%;gap:4px 8px}#villas .v15-copy{top:61%;width:30%;padding:7px}#villas .v15-copy h3{font-size:16px}#villas .v15-copy p{font-size:10px;line-height:1.22;margin:0 0 5px}#villas .v15-copy a{font-size:10px;padding:6px 10px;margin:0}#villas .v15-button{padding:3px;gap:1px}#villas .v15-label{font-size:9px}#villas .v15-label small{display:none}#villas .v15-foot{display:none}}
@media(max-width:760px) and (min-height:551px) and (max-height:690px){#villas .v15-left{top:20%;bottom:59%}#villas .v15-right{top:77%;bottom:3%}#villas .v15-copy{top:59%;width:94%;padding:5px}#villas .v15-copy h3{font-size:17px}#villas .v15-copy p{font-size:10px}#villas .v15-copy .v15-note{font-size:9px}}
@media(prefers-reduced-motion:reduce){#villas .v15-float{animation:none}#villas .v15-card{transform:none}#villas .v15-button,#villas .v15-media img{transform:none;transition:none}}

/* Polaroid arrangement: desktop coordinates are editable in villas-data.js. */
#villas .v15-button{background:linear-gradient(145deg,rgba(23,168,198,.10),transparent 55%),rgba(14,66,84,.38);backdrop-filter:none;-webkit-backdrop-filter:none;color:#fff;border:1px solid rgba(23,168,198,.32);border-radius:14px;padding:clamp(3px,.32vw,5px);gap:4px;box-shadow:0 7px 22px #0006}
#villas .v15-media{border-radius:10px}
#villas .v15-label{white-space:normal;font-weight:700;min-height:18px;line-height:1.15}
#villas .v15-label small{color:#bce4ee}
#villas .v15-center-title{display:none}
@media(min-width:761px) and (min-height:551px){
#villas .v15-heading{display:none}
#villas .v15-side{display:contents}
#villas .v15-card,#villas .v15-card:last-child:nth-child(odd){position:absolute;left:var(--card-x);top:var(--card-y);width:var(--card-w);height:var(--card-h);translate:none;transform:translate(-50%,-50%) translate3d(0,calc(var(--v15-offset,0px) * var(--v15-depth,0)),0) rotate(var(--angle));z-index:var(--card-z);opacity:var(--card-a)}
#villas .v15-card:hover,#villas .v15-card:focus-within{z-index:25}
#villas .v15-copy{left:var(--copy-x);top:var(--copy-y);width:var(--copy-w);min-height:var(--copy-h);display:flex;flex-direction:column;justify-content:center;align-items:center;z-index:var(--copy-z);background:rgba(14,66,84,.07);opacity:var(--copy-a);border-color:rgba(23,168,198,.32);padding:12px}
#villas .v15-center-title{display:block;font-size:clamp(32px,4vw,60px);line-height:1;letter-spacing:-.045em;margin:0 0 12px}
#villas .v15-foot{display:none}
}
@media(min-width:761px) and (min-height:551px) and (prefers-reduced-motion:reduce){#villas .v15-card,#villas .v15-card:last-child:nth-child(odd){transform:translate(-50%,-50%) rotate(var(--angle));}}
@media(max-width:760px),(max-height:550px){#villas .v15-card{--angle:0deg!important}#villas .v15-button{padding:3px}#villas .v15-label{font-size:9px;min-height:17px;overflow-wrap:anywhere}}

/* Glass showroom — native dialog is a transparent viewport, not a boxed modal. */
#villas .v15-copy{background:rgba(14,66,84,.07);border-color:rgba(23,168,198,.32);backdrop-filter:none;}
#villas .v15-button{clip-path:none;}
.v15-dialog{position:fixed;inset:0;width:100%;height:100%;max-width:none;max-height:none;margin:0;padding:clamp(10px,2vh,22px) 0;box-sizing:border-box;border:0;background:transparent;color:#effdff;overflow:hidden;font:14px/1.4 system-ui;overscroll-behavior:contain;--slide-width: 40vw;--slide-gap: 23vw;}
.v15-dialog[open]{display:grid;grid-template-rows:auto minmax(0,1fr) auto;gap:clamp(8px,1.8vh,18px);}
.v15-dialog::backdrop{background:rgba(4,13,26,.72);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);}
html:has(.v15-dialog[open]){overflow:hidden;}
.v15-dialog .v15-dialog-top,.v15-dialog .v15-dialog-bottom{position:relative;z-index:2;width:min(1100px,94vw);margin:0 auto;border:1px solid rgba(23,168,198,.32);border-radius:22px;background:rgba(14,66,84,.38);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);padding:clamp(10px,1.5vw,20px);box-shadow:0 12px 32px #0004;}
.v15-dialog .v15-dialog-top{display:flex;justify-content:space-between;align-items:center;gap:12px;}
.v15-dialog h2{font-size:clamp(20px,3vw,36px);line-height:1.15;margin:2px 0;letter-spacing:-.035em;}.v15-dialog small{color:#9fdae6;letter-spacing:.1em;font-size:10px;}
.v15-dialog button{cursor:pointer;border:1px solid #b2d9e15c;color:#fff;background:#102b3d;border-radius:24px;padding:9px 14px;font:650 14px system-ui;min-height:40px;}.v15-dialog button:focus-visible,.v15-dialog .v15-track:focus-visible{outline:2px solid #22d3ee;outline-offset:-2px;}.v15-dialog button:disabled{opacity:.35;cursor:default;}.v15-dialog .v15-close{flex-shrink:0;font-size:25px;width:44px;height:44px;padding:0;}
.v15-dialog .v15-track{display:flex;align-items:center;gap:var(--slide-gap);width:100%;min-height:0;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;scrollbar-width:thin;scrollbar-color:#22d3ee #102b3d;padding-inline:calc((100% - var(--slide-width))/2);padding-block:7px;touch-action:pan-x;overscroll-behavior-x:contain;}
.v15-dialog .v15-slide{flex:0 0 var(--slide-width);height:min(100%,510px);min-height:0;max-height:640px;display:grid;grid-template-rows:minmax(0,1fr) auto;scroll-snap-align:center;scroll-snap-stop:always;margin:0;padding:6px;background:rgba(14,66,84,.38);border:1px solid rgba(23,168,198,.32);border-radius:20px;overflow:hidden;backdrop-filter:none;-webkit-backdrop-filter:none;clip-path:inset(0% var(--curtain,0%) round 20px);box-shadow:0 14px 45px #0008;}
.v15-dialog .v15-slide img{display:block;width:100%;height:100%;min-height:0;object-fit:contain;border-radius:15px;background:#040d1a80;}
.v15-dialog .v15-slide figcaption{padding:7px 12px 4px;color:#e9f7fb;font-size:12px;text-align:center;}
.v15-dialog .v15-dialog-bottom{max-height:40dvh;overflow:auto;}
.v15-dialog .v15-specs{display:flex;flex-wrap:wrap;gap:8px 20px;margin:0;}.v15-dialog .v15-specs div{flex:0 1 auto;min-width:0;}.v15-dialog dt{font-size:10px;text-transform:uppercase;color:#a0d6e1;letter-spacing:.08em;}.v15-dialog dd{margin:2px 0;color:#f0f8ff;font-size:13px;}
.v15-dialog .v15-actions{display:flex;gap:10px;align-items:center;justify-content:space-between;flex-wrap:wrap;margin-top:10px;}.v15-dialog .v15-controls{display:flex;gap:8px;align-items:center;}.v15-dialog .v15-counter{font-size:12px;min-width:40px;text-align:center;color:#b6d9e4;}.v15-dialog .v15-book{background:#EA580C;border-color:#EA580C;padding:10px 20px;}.v15-dialog .v15-booknote{font-size:11px;color:#b9d2dd;margin:8px 0 0;}
@media(max-width:760px){.v15-dialog{--slide-width:68vw;--slide-gap:6vw;gap:8px;}.v15-dialog .v15-dialog-top,.v15-dialog .v15-dialog-bottom{border-radius:16px;padding:10px;}.v15-dialog .v15-dialog-bottom{max-height:43dvh;}.v15-dialog .v15-specs{gap:6px 13px;}.v15-dialog dd{font-size:12px;}.v15-dialog .v15-actions{gap:5px;margin-top:8px;}.v15-dialog .v15-book{padding:9px 12px;font-size:12px;}}
@media(prefers-reduced-motion:reduce){.v15-dialog .v15-slide{clip-path:inset(0% round 20px)!important;}.v15-dialog .v15-track{scroll-behavior:auto;}}

/* Match the shared scene layer, retain photo depth, avoid per-card live background sampling. */
#villas .v15-card{contain:layout style;}
#villas .v15-layout{contain:layout paint style;}
.v15-dialog .v15-track{box-sizing:border-box;}
.v15-dialog .v15-slide{padding:8px;grid-template-rows:minmax(0,1fr) auto;}
.v15-dialog .v15-slide figcaption{font-size:clamp(12px,1.25vw,17px);font-weight:600;}
