/* Sobha-inspired expanding triptych and Discovery-inspired portrait collection. */
.selection-gallery{background:var(--paper);padding:55px 0 110px;overflow:clip;--selection-scale:1;--selection-side:0px;--selection-word:0px}
.selection-masthead{margin:0 var(--gutter);display:flex;justify-content:space-between;gap:25px;font-size:9px;text-transform:uppercase;letter-spacing:.13em;border-bottom:1px solid var(--line);padding-bottom:24px}
.selection-display{text-align:center;font-size:clamp(65px,8.6vw,145px);line-height:1.02;letter-spacing:-.055em;margin:80px 20px 55px}
.selection-display>span,.selection-display>em{display:block;transform:translateX(var(--selection-word));will-change:transform}.selection-display>em{transform:translateX(calc(var(--selection-word) * -1));font-size:.91em}
.selection-scroll{height:145svh}.selection-stage{position:sticky;top:90px;height:calc(100svh - 110px);min-height:440px;display:flex;align-items:center}
.selection-triptych{display:grid;grid-template-columns:1fr 1.35fr 1fr;gap:18px;width:100%;padding:0 28px;align-items:center;transform:scale(var(--selection-scale));transform-origin:center center;will-change:transform}
.selection-frame{min-width:0;margin:0}.selection-frame>div{overflow:hidden;height:56svh;max-height:730px;min-height:320px;background:var(--sand)}
.selection-frame img{width:100%;height:100%;object-fit:cover}.selection-center>div{height:76svh;max-height:940px;min-height:420px}.selection-left{transform:translateY(var(--selection-side))}.selection-right{transform:translateY(calc(var(--selection-side) * -1))}
.selection-left img{object-position:49% center}.selection-center img{object-position:50% center}.selection-right img{object-position:48% center}
.selection-frame figcaption{display:flex;justify-content:space-between;gap:12px;margin-top:14px;font-size:9px;letter-spacing:.06em}.selection-frame figcaption span{opacity:.55;text-align:right}
.selection-statement{padding:65px var(--gutter) 0;max-width:1400px;margin:auto}.selection-statement>.eyebrow{font-size:9px;text-align:center;margin-bottom:30px}
.selection-statement h3{text-align:center;font-size:clamp(39px,5.3vw,80px);line-height:1.13;letter-spacing:-.035em}.selection-explanation{display:grid;grid-template-columns:1fr 1fr;gap:6vw;max-width:830px;margin:45px auto 0;font-size:14px;line-height:1.85}.selection-explanation .editorial-link{margin-top:15px;font-size:10px}
/* Four homes are visible together on a wide screen; no vertical scroll hijacking. */
.collection-editorial{padding-top:80px;background:#e9e9df;color:var(--forest)}.collection-heading{margin-bottom:38px;align-items:center}.collection-heading h2{font-size:clamp(55px,6.6vw,102px)}.collection-heading .eyebrow{color:#66705d}.collection-summary{display:flex;gap:22px;max-width:360px;align-items:center}.collection-total{font-size:84px;margin:0;color:#80896f}.collection-summary p{font-size:12px;line-height:1.8}
.collection-localities{border-color:#20392c30;color:#53624f;margin-bottom:34px}.property-rail{margin:0 var(--gutter);padding:0 0 8px;gap:18px}.property-slide{flex:0 0 calc((100% - 54px)/4)}.property-photo{aspect-ratio:.62;background:#d7d9ce}.property-photo-number{top:15px;left:14px;font-size:9px}.property-photo-link{background:#20392c90;right:12px;bottom:12px;gap:15px;padding:9px 11px;font-size:8px}.property-information{display:block;padding-top:20px}.property-location{font-size:8px;letter-spacing:.08em;color:#586352;opacity:1;margin-bottom:8px}.property-title{color:var(--forest);font-size:clamp(23px,2.05vw,34px);line-height:1.18}.property-title:hover{color:#65724c}.property-right{text-align:left;margin-top:12px;padding:0}.property-capacity{font-size:8px;letter-spacing:.03em}.property-tagline{display:none}.property-navigation{margin-top:30px}.property-position{color:#20392c80;letter-spacing:.07em}.property-position span{color:var(--forest)}.property-hint{color:#53624f}.property-arrows button{color:var(--forest);border-color:#20392c60}.property-arrows button:hover{color:var(--paper);background:var(--forest)}.property-arrows button:disabled{color:var(--forest)}.property-index{border-bottom:1px solid #20392c25;padding-bottom:22px}.property-index button{color:#53624f;border-color:#20392c30}.property-index button[aria-pressed=true]{color:var(--forest);border-color:var(--forest)}.collection-assist{border-color:#20392c30;margin-top:40px;padding-top:15px}.collection-assist .editorial-link{border-color:#74815e}
@media(min-width:761px) and (max-height:650px){.selection-scroll{height:auto}.selection-stage{position:relative;top:auto;height:auto;min-height:0}.selection-frame>div{min-height:240px}.selection-center>div{min-height:330px}}
@media(min-width:761px) and (max-width:1100px){.property-slide{flex-basis:calc((100% - 36px)/3)}.selection-frame figcaption{display:block}.selection-frame figcaption span{display:block;text-align:left;margin-top:3px}}
@media(max-width:760px){
 .selection-gallery{padding:35px 0 70px}.selection-masthead{margin:0 24px;font-size:7px;letter-spacing:.07em;gap:25px;padding-bottom:19px}.selection-masthead>span:last-child{text-align:right;max-width:110px}
 .selection-display{font-size:clamp(42px,9.8vw,72px);line-height:1.07;margin:50px 16px 35px;letter-spacing:-.045em}.selection-display>em{font-size:.95em}
 .selection-scroll{height:auto}.selection-stage{position:relative;top:0;height:auto;min-height:0;display:block}.selection-triptych{gap:8px;padding:0 10px;grid-template-columns:.7fr 1.5fr .7fr;transform:none}.selection-frame>div{height:40vw;min-height:0;max-height:none}.selection-center>div{height:76vw;min-height:0}.selection-left{transform:translateY(24px)}.selection-right{transform:translateY(-24px)}.selection-frame figcaption{display:none}.selection-center figcaption{display:block;font-size:8px;line-height:1.6;margin-top:12px}.selection-center figcaption span{display:block;text-align:left}
 .selection-statement{padding:55px 24px 0}.selection-statement>.eyebrow{font-size:8px;margin-bottom:22px}.selection-statement h3{font-size:34px;line-height:1.16}.selection-statement h3 br{display:none}.selection-explanation{display:block;font-size:13px;margin-top:26px}.selection-explanation>div{margin-top:18px}.selection-explanation .editorial-link{font-size:9px}
 .collection-editorial{padding-top:55px}.collection-heading{margin:0 24px 28px}.collection-heading h2{font-size:52px}.collection-summary{margin-top:28px;max-width:350px}.collection-total{font-size:66px}.collection-summary p{font-size:12px}.collection-localities{margin-bottom:25px}.property-rail{margin:0 0 0 24px;padding-right:24px;gap:14px}.property-slide{flex-basis:76%}.property-photo{aspect-ratio:.72}.property-title{font-size:31px}.property-location{font-size:8px}.property-capacity{font-size:9px}.property-information{padding-top:19px}.property-navigation{margin-top:25px}.property-index{padding-bottom:20px}.collection-assist{margin-top:30px;padding-top:0}
}
@media(prefers-reduced-motion:reduce){.selection-scroll{height:auto}.selection-stage{position:relative;top:0;height:auto;padding:25px 0}.selection-triptych,.selection-display>span,.selection-display>em,.selection-left,.selection-right{transform:none;will-change:auto}}

/* Selection promise, followed by a photo-led collection without repeated labels. */
.collection-editorial .property-rail.is-gliding{scroll-snap-type:none;scroll-behavior:auto;cursor:grab;user-select:none;-webkit-user-select:none}
.property-rail.is-gliding .property-photo,.property-rail.is-gliding .property-title{cursor:grab}
.property-rail.is-gliding img{-webkit-user-drag:none}
.collection-editorial .property-rail.is-dragging,.property-rail.is-dragging .property-photo,.property-rail.is-dragging .property-title{cursor:grabbing}
.property-rail.is-dragging .property-photo img{transform:none}
.property-rail.is-gliding:focus-visible{outline:1px solid var(--forest);outline-offset:-1px}
.property-rail.is-gliding .property-photo img{transition:transform 1s cubic-bezier(.2,.65,.3,1)}
@media(prefers-reduced-motion:reduce){.property-rail.is-gliding .property-photo img{transition:none}}
.selection-statement .selection-explanation{display:block;max-width:740px;margin:32px auto 0;text-align:center;font-size:15px;line-height:1.9;text-wrap:pretty}
.collection-editorial .collection-heading{margin-bottom:48px}
.collection-editorial .property-rail{margin:0;padding:0 0 8px;gap:18px}
.collection-editorial .property-rail.is-rebasing{scroll-snap-type:none;scroll-behavior:auto}
.collection-editorial .property-information{padding:15px 12px 0}
.collection-editorial .property-title{display:flex;align-items:baseline;justify-content:space-between;gap:10px;width:100%;min-height:44px;font:500 clamp(11px,.85vw,13px)/1.65 var(--sans);letter-spacing:.01em;text-align:left}
.property-title>span:first-child{max-width:none}
.property-title-arrow{flex:none;font:400 14px/1.5 var(--sans);opacity:.55;transition:transform .25s}
.property-title-arrow svg{display:block;width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.3;stroke-linecap:round;stroke-linejoin:round}
.property-title:hover .property-title-arrow{transform:translate(2px,-2px)}
.collection-editorial .property-navigation{justify-content:flex-end;margin-top:28px}
.collection-status{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.property-pagination{display:none}
@media(max-width:760px){
 .selection-statement .selection-explanation{font-size:14px;line-height:1.85;margin-top:25px}
 .collection-editorial .collection-heading{margin-bottom:32px}
 .collection-editorial .property-rail{width:100%;margin:0;padding:0 0 8px;gap:14px}
 .collection-editorial .property-information{padding:14px 12px 0}
 .collection-editorial .property-title{font-size:12px}
 .collection-editorial .property-rail{gap:0;scroll-snap-type:x mandatory;scroll-behavior:auto;-webkit-overflow-scrolling:touch;touch-action:pan-x pan-y pinch-zoom}
 .collection-editorial .property-slide{flex:0 0 100%;scroll-snap-align:start;scroll-snap-stop:always}
 .collection-editorial .property-loop-copy{display:none}
 .collection-editorial .property-photo{aspect-ratio:4/5}
 .collection-editorial .property-photo:hover img{transform:none}
 .collection-editorial .property-information{padding:14px 22px 0}
 .property-pagination:not([hidden]){display:flex;justify-content:center;align-items:center;gap:0;margin:4px auto 0}
 .property-pagination button{display:grid;place-items:center;width:28px;height:36px;padding:0;border:0;background:none;color:var(--forest)}
 .property-pagination button::after{content:'';width:5px;height:5px;border-radius:50%;background:currentColor;opacity:.23;transition:opacity .2s,transform .2s}
 .property-pagination button[aria-current=true]::after{opacity:1;transform:scale(1.3)}
}

/* Native touch scrolling brings each portrait forward without extending the page. */
@media(max-width:760px){
 .selection-triptych{position:relative;display:flex;align-items:flex-start;gap:12px;padding:12px 10vw 8px;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;scrollbar-width:none;transform:none;will-change:auto;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch}
 .selection-triptych::-webkit-scrollbar{display:none}
 .selection-triptych:focus-visible{outline:1px solid var(--forest);outline-offset:-2px}
 .selection-triptych .selection-frame{flex:0 0 80vw;scroll-snap-align:center;transform:none}
 .selection-triptych .selection-frame>div{height:auto;min-height:0;max-height:none;aspect-ratio:.8;transform:perspective(1100px) rotateY(var(--portrait-turn,0deg)) scale(var(--portrait-scale,1));transform-origin:center;will-change:transform}
 .selection-triptych .selection-frame img{display:block;height:100%}
 .selection-triptych .selection-frame figcaption{display:block;text-align:center;font:400 10px/1.6 var(--sans);letter-spacing:.015em;margin:14px 0 0}
}
@media(max-width:760px) and (prefers-reduced-motion:reduce){
 .selection-triptych .selection-frame>div{transform:none;will-change:auto}
}
/* October 8 review: useful villa detail within the approved photo-led collection. */
.collection-editorial .collection-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:48px}
.collection-heading .collection-introduction{max-width:350px;margin:0 0 12px;font:400 14px/1.9 var(--sans);color:var(--forest);text-wrap:pretty}
.collection-editorial .property-title{min-height:0;line-height:1.6}
.property-guest-capacity{margin:5px 0 0;color:var(--forest);opacity:.68;font:400 12px/1.6 var(--sans)}
#villa-dialog{width:min(1380px,96vw);max-height:94svh;padding:0;border:0;background:var(--paper);color:var(--forest);box-shadow:0 20px 100px #16231d40}
#villa-dialog::backdrop{background:#16231db8;backdrop-filter:blur(10px)}
#villa-dialog .gallery-shell{display:grid;grid-template-columns:minmax(0,1fr) 290px;grid-template-areas:'heading heading' 'photo detail' 'thumbs detail';gap:24px 32px;padding:28px 32px;max-height:94svh;overflow-y:auto}
#villa-dialog .gallery-head{grid-area:heading;margin:0;align-items:center;border-bottom:1px solid #20392c20;padding:0 0 22px}
#villa-dialog .gallery-head h2{font:400 clamp(25px,2.5vw,38px)/1.2 var(--serif);letter-spacing:-.025em;margin-top:7px}
#villa-dialog .gallery-head .eyebrow{font:500 11px/1.5 var(--sans);letter-spacing:.08em;margin:0}
#villa-dialog .close-button{min-height:44px;min-width:70px;font-size:12px;flex:none}
#villa-dialog .gallery-main{grid-area:photo;width:100%;height:min(60svh,650px);background:#f2ede3;overflow:hidden}
#villa-dialog #gallery-image{display:block;width:100%;height:100%;object-fit:contain;object-position:center}
#villa-dialog .gallery-prev,#villa-dialog .gallery-next{height:44px;width:44px;font-size:26px;background:var(--paper);color:var(--forest);border:0}
#villa-dialog #gallery-counter{background:var(--forest);color:var(--paper);padding:6px 10px;font-size:11px;bottom:14px;right:14px}
#villa-dialog .gallery-thumbs{grid-area:thumbs;display:flex;gap:8px;margin:0;padding:0 0 6px;overflow-x:auto;scrollbar-width:thin}
#villa-dialog .gallery-thumbs button{flex:0 0 76px;min-height:54px;opacity:.5;transition:opacity .2s;border:0;padding:0}
#villa-dialog .gallery-thumbs button[aria-pressed='true']{opacity:1;outline:1px solid var(--forest);outline-offset:-1px}
#villa-dialog .gallery-thumbs img{height:54px;width:100%;object-fit:cover}
#villa-dialog .gallery-bottom{grid-area:detail;display:flex;flex-direction:column;justify-content:space-between;align-items:stretch;gap:32px;border:0;padding:16px 0 0;margin:0}
#villa-dialog #gallery-specs{font:500 14px/1.65 var(--sans);letter-spacing:0;text-transform:none;margin:0 0 20px}
#villa-dialog #gallery-description{font:400 15px/1.85 var(--sans);max-width:none;text-wrap:pretty;margin:0}
#villa-dialog #choose-villa{width:100%;min-height:52px;padding:18px 16px;font:500 11px/1.5 var(--sans);letter-spacing:.06em;background:var(--forest);color:var(--paper);border:1px solid var(--forest)}
#villa-dialog #choose-villa:hover{background:var(--paper);color:var(--forest)}
@media(max-width:1050px) and (min-width:761px){#villa-dialog .gallery-shell{grid-template-columns:minmax(0,1fr) 235px;gap:22px}#villa-dialog #gallery-description{font-size:14px}}
@media(max-width:760px){
 .collection-editorial .collection-heading{display:block;margin-bottom:28px}
 .collection-heading .collection-introduction{max-width:330px;font-size:13px;line-height:1.8;margin:24px 0 0}
 .collection-introduction br{display:none}
 .property-guest-capacity{font-size:12px;margin-top:4px}
 #villa-dialog{width:100%;height:100svh;max-height:100svh;margin:0}
 #villa-dialog .gallery-shell{display:flex;flex-direction:column;gap:18px;padding:18px 18px max(20px,env(safe-area-inset-bottom));height:100%;max-height:none}
 #villa-dialog .gallery-head{position:sticky;top:-18px;z-index:3;background:var(--paper);padding:14px 0;margin-top:-14px;align-items:flex-start}
 #villa-dialog .gallery-head h2{font-size:27px;line-height:1.22;max-width:270px;margin-top:6px}
 #villa-dialog .gallery-head .eyebrow{font-size:10px}
 #villa-dialog .close-button{font-size:11px;min-width:54px;gap:5px;margin-top:4px}
 #villa-dialog .gallery-main{flex:none;height:auto;aspect-ratio:3/2;min-height:0;max-height:none}
 #villa-dialog #gallery-image{aspect-ratio:3/2;object-fit:contain}
 #villa-dialog .gallery-thumbs{flex:none;min-height:60px}
 #villa-dialog .gallery-bottom{padding:0;gap:24px;flex:1}
 #villa-dialog #gallery-specs{margin-bottom:12px;font-size:13px}
 #villa-dialog #gallery-description{font-size:14px;line-height:1.8}
 #villa-dialog #choose-villa{position:sticky;bottom:0;margin:0;flex:none;min-height:52px;font-size:11px}
}
@media(max-width:760px){
 .collection-editorial .collection-heading h2{font-size:clamp(34px,9.8vw,42px);line-height:1.12}
 .collection-editorial .collection-heading h2 em{white-space:nowrap}
}
/* Collection navigation: deliberate arrows and hover steering, with native mobile swiping. */
.collection-controls{display:flex;justify-content:flex-end;align-items:center;gap:28px;margin:26px var(--gutter) 0}
.collection-arrow-pair{display:flex;gap:10px;flex:none}
.collection-arrow-pair button{display:grid;place-items:center;width:46px;height:46px;border:1px solid #20392c50;border-radius:50%;background:transparent;color:var(--forest);transition:background .2s,color .2s}
.collection-arrow-pair svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.3;stroke-linecap:round;stroke-linejoin:round}
.collection-arrow-pair button:hover{background:var(--forest);color:var(--paper)}
.collection-arrow-pair button:disabled{opacity:.3;cursor:default;background:transparent;color:var(--forest)}
.collection-editorial .property-rail.is-gliding{cursor:default}
.collection-editorial .property-rail.is-gliding .property-photo,.collection-editorial .property-rail.is-gliding .property-title{cursor:pointer}
@media(max-width:760px){.collection-controls{margin:20px 22px 0;gap:12px}.collection-controls .property-pagination{flex:1;margin:0;padding:0;justify-content:flex-start;gap:9px}.collection-arrow-pair{gap:7px}.collection-arrow-pair button{width:40px;height:40px}}
.collection-editorial .property-photo,.collection-editorial .property-title{text-decoration:none}
