/* Revision 4: equal bottom-edge steps, drag galleries and the supplied brochure. */
:root{--image-bottom-step:120px;--contact-rule-width:1px;--contact-rule-color:#aaa19580}
.marina-images{--marina-left-height:650px;--marina-right-height:830px;grid-template-rows:auto;align-items:start}
.marina-images>p{grid-column:1;grid-row:1;align-self:start}
.marina-images>.marina-left{grid-column:1;grid-row:1;height:var(--marina-left-height);margin-top:calc(var(--marina-right-height) + var(--image-bottom-step) - var(--marina-left-height))}
.marina-images>.marina-right{grid-column:2;grid-row:1;height:var(--marina-right-height);margin-top:0}
.asym{--residence-left-height:580px;--residence-right-height:970px;align-items:start}
.asym>div{padding-top:calc(var(--residence-right-height) + var(--image-bottom-step) - var(--residence-left-height))}
.asym>div>img{height:var(--residence-left-height);width:100%}.asym>img{height:var(--residence-right-height)}
[data-section='4'] .statement{color:#D9532E}
.gallery-shell .gallery{cursor:grab;touch-action:pan-y;user-select:none;-webkit-user-select:none}
.gallery-shell .photo{cursor:inherit}.gallery-shell .photo img{pointer-events:none;user-select:none;-webkit-user-drag:none}
.gallery-shell .gallery.is-dragging{cursor:grabbing}
/* New height = viewport - 70% of the previous combined top/bottom margins. */
#gallery-viewer:not(.viewer-expanded) .viewer-stage:not(.zoomed) .viewer-frame{height:min(calc(30dvh + 445.2px),calc(100dvh - 100.8px))}
.contact input:not([type='checkbox']),.contact select{border-bottom:var(--contact-rule-width) solid var(--contact-rule-color)}
.location .icons{border-top:var(--contact-rule-width) solid var(--contact-rule-color);border-bottom:var(--contact-rule-width) solid var(--contact-rule-color)}
.location .icons img{width:54.6px;height:54.6px;flex:0 0 54.6px;max-width:none}
.location .fine{text-align:left}
.map-tools #minus,.map-tools #plus{width:44px;height:44px;min-width:44px;padding:0;border:1px solid #D9532E;border-radius:50%;background:transparent;color:#D9532E;font-size:24px;line-height:1;display:inline-flex;align-items:center;justify-content:center}
@media(max-width:900px){.marina-images{--marina-left-height:500px;--marina-right-height:600px;grid-template-rows:auto auto}.marina-images>p{grid-column:1 / -1;grid-row:1;margin:0 0 80px;max-width:560px}.marina-images>.marina-left,.marina-images>.marina-right{grid-row:2}}
@media(max-width:700px){.marina-images{--marina-left-height:360px;--marina-right-height:400px}.asym{--residence-left-height:320px;--residence-right-height:480px;grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);gap:24px}.asym>img{width:100%;margin-left:0}.asym .statement{font-size:clamp(28px,6vw,40px);margin-top:48px}}
/* Revision 5: requested spacing, shared contact rules and aligned residence images. */
/* Single-image floor-plan viewer: retain gallery controls elsewhere. */
#gallery-viewer .viewer-prev[hidden],#gallery-viewer .viewer-next[hidden]{display:none}
#gallery-viewer.single-image .viewer-stage.zoomed{cursor:grab;touch-action:none;scroll-behavior:auto}
#gallery-viewer.single-image .viewer-stage.zoomed.is-panning{cursor:grabbing}
#gallery-viewer.single-image .viewer-stage.zoomed img{pointer-events:none;-webkit-user-drag:none}
.location .map{margin-bottom:200px}
.partners{border-top:var(--contact-rule-width) solid var(--contact-rule-color);border-bottom:var(--contact-rule-width) solid var(--contact-rule-color)}
.arrows button,.viewer-prev,.viewer-next,
.arrows button:hover,.viewer-prev:hover,.viewer-next:hover{
  background:transparent;background-image:none;border:0;box-shadow:none;
}
/* Preserve keyboard focus visibility without adding a permanent frame. */
.arrows button:focus-visible,.viewer-prev:focus-visible,.viewer-next:focus-visible{outline:2px solid #D9532E;outline-offset:3px}
[data-section='4'] .asym{align-items:start}
[data-section='4'] .asym>div{padding-top:0;margin-top:0;align-self:start}
[data-section='4'] .asym>img{margin-top:0;align-self:start}

/* Revision 6: standard H2 scale and transparent supplied PNG arrows. */
[data-section="4"] .asym h2.statement{font-size:clamp(38px,3.6vw,58px);color:#D9532E}
.arrows button img,.viewer-prev img,.viewer-next img{filter:none;mix-blend-mode:normal}
@media(max-width:700px){[data-section="4"] .asym h2.statement{font-size:38px}}

/* Revision 7: contact states, architect logo and full-column typology rules. */
.contact select:invalid{color:rgba(0,0,0,.5);font-family:'Euclid Circular A',sans-serif;font-weight:400;font-size:12px;line-height:15px;letter-spacing:0}
.contact select option{color:var(--ink);font-size:16.8px;font-weight:300}
.contact select option[value=""]{color:rgba(0,0,0,.5);font-size:12px;font-weight:400}
.partners .architect-logo{width:160px;max-width:100%;height:auto;object-fit:contain;mix-blend-mode:multiply}
.contact .send-button{background:transparent;border:1px solid #D9532E;color:#D9532E;text-transform:uppercase}
.contact .send-button:disabled{opacity:1;cursor:not-allowed}
.contact .send-button.is-complete{background:#D9532E;color:#F8F5F0}
.types .type-caption{width:100%;margin-top:0;padding:24px 0;border-top:var(--contact-rule-width) solid var(--contact-rule-color);border-bottom:var(--contact-rule-width) solid var(--contact-rule-color)}

/* Revision 8: precise typology gap, neutral inputs and zoom-only panning. */
.types .type-caption{margin-top:48px}
.contact input[name="name"],.contact input[name="email"],
.contact input[name="name"]:focus,.contact input[name="email"]:focus{background:transparent;background-image:none}
/* Browser autofill uses a UA background; paint the actual section colour over it. */
.contact input[name="name"]:-webkit-autofill,.contact input[name="email"]:-webkit-autofill,
.contact input[name="name"]:-webkit-autofill:focus,.contact input[name="email"]:-webkit-autofill:focus{-webkit-box-shadow:0 0 0 1000px var(--sand) inset;box-shadow:0 0 0 1000px var(--sand) inset;-webkit-text-fill-color:var(--ink);caret-color:var(--ink)}
.contact input[name="name"]:autofill,.contact input[name="email"]:autofill{background:var(--sand);box-shadow:0 0 0 1000px var(--sand) inset}
.map{cursor:default;touch-action:pan-y}.map.is-zoomed{cursor:grab;touch-action:none}.map.is-panning{cursor:grabbing}.map>img{pointer-events:none;-webkit-user-drag:none;user-select:none}

/* Revision 10: three exact 48px gaps and neutral telephone/country fields. */
.types .type-caption{margin-top:48px;padding-top:48px;padding-bottom:48px}
.types .type-caption h2{margin:0}
.contact input:is([name="telephone"],[name="country"]),
.contact input:is([name="telephone"],[name="country"]):is(:focus,:valid,:active){background:transparent !important;background-image:none !important}
/* Autofill's browser background is painted over with the original section colour. */
.contact input:is([name="telephone"],[name="country"]):-webkit-autofill,
.contact input:is([name="telephone"],[name="country"]):-webkit-autofill:is(:focus,:hover,:active){background:transparent !important;background-image:none !important;-webkit-box-shadow:0 0 0 1000px var(--sand) inset !important;box-shadow:0 0 0 1000px var(--sand) inset !important;-webkit-text-fill-color:var(--ink);caret-color:var(--ink)}
.contact input:is([name="telephone"],[name="country"]):autofill{background:transparent !important;box-shadow:0 0 0 1000px var(--sand) inset !important}
.types .type-caption{position:relative;padding-right:48px}
.types .type-caption .download{position:absolute;right:0;top:50%;transform:translateY(-50%)}

/* Revision 11: updated full-bleed location banner and 9px caption insets. */
section.banner[data-section="3"]{width:100%;max-width:none;margin-left:0;margin-right:0;background-size:cover;background-position:center;background-repeat:no-repeat}
.types .type-caption h2{margin-left:9px;margin-right:9px}
.types .type-caption .download{right:9px}

/* Section 11: supplied CORALIS_MAPA image. */
.location #map-image{mix-blend-mode:multiply}

/* Requested typology overlays and legal-page typography only. */
.types .type,.types .type>img,.types article{border-radius:0}
.types .type>span{background:#D9532E;transition:opacity .25s ease;pointer-events:none}
.types .type:hover>span,.types .type:focus-visible>span{opacity:1}
/* Touch devices show prices continuously without intercepting the floor-plan action. */
@media(max-width:700px),(hover:none),(pointer:coarse){.types .type>span{opacity:1;inset:auto 0 0;padding:20px;gap:12px}.types .type>span strong{font-size:clamp(26px,4vw,40px)}}
@media(prefers-reduced-motion:reduce){.types .type>span{transition:none}}
.policy-page{max-width:1100px;margin-inline:auto;padding-inline:var(--gutter);overflow-wrap:anywhere}
.policy-page .policy-title{font-family:'SangBleu Kingdom',Georgia,serif;font-weight:300;font-size:52px;line-height:62px;letter-spacing:-.03em;margin:0 0 64px}
.policy-page .legal-content{font-size:16.8px;line-height:1.65;max-width:900px}
.policy-page .legal-content p{margin:0 0 24px}.policy-page .legal-content ul,.policy-page .legal-content ol{padding-left:24px;margin:0 0 24px}
.policy-page .legal-content li{margin-bottom:12px}
.policy-page .legal-content h4{font:400 12px/18px 'Euclid Circular A',sans-serif;letter-spacing:0;color:#D9532E;text-transform:uppercase;margin:48px 0 20px}
.policy-page .legal-content a{text-decoration:underline}.policy-page .back-link{margin-top:48px}
@media(max-width:700px){.policy-page .policy-title{font-size:40px;line-height:48px}.policy-page .legal-content{font-size:16px}}
