:root {
  color-scheme: light;
  --blue: #174b83;
  --ink: #123456;
  --muted: #526273;
  --paper: #f5f0e7;
  --white: #fffcf7;
  --surface: #eee7dc;
  --line: #d7d0c6;
  --accent: #b49a76;
  --dark: var(--ink);
  --blue-soft: #e7edf4;
  --blue-border: #9db3cc;
  --frame: #e8dfd1;
  --on-dark-muted: #d7e2ee;
  --stage: #0c243d;
  --error: #873e32;
  --shadow-rgb: 18, 52, 86;
  --overlay: rgba(12, 36, 61, .9);
  --font-sans: "Segoe UI", Arial, sans-serif;
  --font-serif: Georgia, "Times New Roman", serif;
  --section-title-size: clamp(2rem, 4vw, 3rem);
  --header-height: 78px;
  --sticky-height: 79px;
  font-family: var(--font-sans);
  font-size: 1rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--sticky-height) + 1rem); scrollbar-gutter: stable; }
body { margin: 0; background: var(--paper); color: var(--ink); }
body.dialog-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
:is(.leisure, .site-footer, .lightbox) :focus-visible { outline-color: var(--accent); }
.skip-link { position: fixed; z-index: 60; top: .5rem; left: .5rem; padding: .8rem 1rem; background: var(--white); transform: translateY(-180%); }
.skip-link:focus { transform: translateY(0); }
.container { width: min(100% - 2.5rem, 1200px); margin-inline: auto; }
.section { padding-block: clamp(3rem, 6vw, 5.5rem); }
section[id] { scroll-margin-top: 0; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2 { font-family: var(--font-serif); font-weight: 400; letter-spacing: -.035em; line-height: 1.12; }
h2 { font-size: var(--section-title-size); }
h1 em, h2 em { font-weight: 400; }
p { line-height: 1.65; }
.eyebrow { display: flex; align-items: center; gap: .75rem; margin-bottom: 1.5rem; color: var(--blue); font-size: .75rem; font-weight: 700; letter-spacing: .14em; line-height: 1.4; }
.light-eyebrow { color: var(--accent); }
.eyebrow span { width: 1.5rem; height: 1px; background: currentColor; flex: 0 0 auto; }
.text-link { display: inline-flex; gap: 1rem; align-items: center; padding: .4rem 0 .6rem; border-bottom: 1px solid var(--accent); color: var(--blue); font-size: .9375rem; font-weight: 600; }
.text-link span, .button span, .nav-contact span { transition: transform .2s ease; }
.text-link:hover span, .button:hover span, .nav-contact:hover span { transform: translate(3px, -3px); }

.site-header { position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: 1px solid var(--line); transition: box-shadow .2s ease; }
.site-header.is-scrolled { box-shadow: 0 8px 24px rgba(var(--shadow-rgb), .08); }
.header-inner { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: .5rem; flex-wrap: wrap; padding-block: .5rem; }
.brand { display: inline-flex; align-items: center; gap: .7rem; flex-shrink: 0; }
.brand-logo { display: block; width: auto; height: 44px; }
.navigation { width: 100%; padding: 0 0 1.5rem; display: flex; flex-direction: column; gap: .15rem; }
.navigation a { position: relative; padding: .8rem .35rem; border-radius: 4px; color: var(--ink); font-size: .94rem; font-weight: 600; transition: color .2s, background-color .2s; }
.navigation a:hover, .navigation a:focus-visible { color: var(--blue); background: var(--blue-soft); }
.navigation a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.navigation a[aria-current="location"] { color: var(--blue); background: var(--blue-soft); box-shadow: inset 0 -2px var(--blue); }
.navigation .nav-contact { color: var(--white); background: var(--blue); }
.navigation .nav-contact:hover, .navigation .nav-contact:focus-visible { color: var(--white); background: var(--ink); }
.navigation[hidden], .menu-toggle[hidden] { display: none; }
.menu-toggle { display: flex; align-items: center; gap: .75rem; min-height: 44px; padding: .5rem; border: 0; background: transparent; color: var(--ink); font-size: .75rem; font-weight: 700; cursor: pointer; }
.menu-toggle:focus-visible, .brand:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.menu-icon { display: flex; flex-direction: column; gap: 5px; }
.menu-icon span { display: block; width: 21px; height: 1px; background: currentColor; }
.menu-icon span { transition: transform .2s ease; }
.menu-toggle[aria-expanded="true"] .menu-icon span:first-child { transform: translateY(3px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-icon span:last-child { transform: translateY(-3px) rotate(-45deg); }

@media (max-width: 949.98px) {
  html { --sticky-height: 0px; }
  /* Without JS the menu stays in normal flow, so the header is only sticky once enhanced. */
  .site-header:not(.is-enhanced) { position: relative; }
  .is-enhanced .navigation {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    width: auto;
    max-height: calc(100vh - var(--header-height));
    max-height: calc(100dvh - var(--header-height));
    padding: .5rem max(1.25rem, env(safe-area-inset-right)) max(1rem, env(safe-area-inset-bottom)) max(1.25rem, env(safe-area-inset-left));
    overflow-y: auto;
    overscroll-behavior: contain;
    background: var(--white);
    border-top: 1px solid var(--line);
    box-shadow: 0 16px 24px rgba(var(--shadow-rgb), .12);
    opacity: 1;
    transform: translateY(0);
    transition: opacity .18s ease, transform .18s ease, display .18s allow-discrete;
  }
  .is-enhanced .navigation[hidden] { opacity: 0; transform: translateY(-6px); }
  @starting-style {
    .is-enhanced .navigation { opacity: 0; transform: translateY(-6px); }
  }
  .navigation a { display: flex; align-items: center; min-height: 48px; }
  .is-enhanced .navigation a + a { border-top: 1px solid var(--line); }
}

.hero { padding-block: clamp(2rem, 5vw, 4rem); color: var(--ink); background: var(--paper); }
.hero-layout { display: grid; grid-template-columns: minmax(0, 1fr); align-items: center; gap: clamp(2rem, 5vw, 4.5rem); }
.hero-content { min-width: 0; max-width: 570px; padding-block: clamp(.5rem, 2vw, 1.5rem); }
.hero-eyebrow { margin-bottom: clamp(1.25rem, 2.5vw, 2rem); }
.hero h1 { max-width: 700px; color: var(--ink); font-size: clamp(2.8rem, 6.1vw, 5.1rem); }
.hero h1 em { color: var(--blue); }
.hero-description { max-width: 460px; margin-top: 1.35rem; color: var(--muted); font-size: clamp(1rem, 1.25vw, 1.125rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem 1.4rem; align-items: center; margin-top: 2rem; }
.button { display: inline-flex; justify-content: space-between; align-items: center; gap: 1.5rem; padding: 1.05rem 1.2rem; min-height: 52px; border-radius: 4px; font-size: .9375rem; font-weight: 600; transition: background-color .2s; }
.button-light { color: var(--blue); background: var(--white); }
.button-light:hover { background: var(--blue-soft); }
.hero .button-light { color: var(--white); background: var(--blue); }
.hero .button-light:hover { background: var(--ink); }
.hero-link { padding: .8rem 0; border-bottom: 1px solid var(--accent); color: var(--blue); font-size: .9375rem; font-weight: 600; }
.hero-link span { padding-left: .5rem; }
.hero-carousel { width: min(100%, 430px); min-width: 0; justify-self: center; }
.hero-image { margin: 0; padding: clamp(.55rem, 1.3vw, 1rem); border: 1px solid var(--line); border-radius: 6px; background: var(--frame); box-shadow: 0 22px 54px rgba(var(--shadow-rgb), .12); touch-action: pan-y pinch-zoom; }
.hero-slide { aspect-ratio: 4 / 5; }
.hero-slide img { width: 100%; height: 100%; object-fit: contain; }
.hero-carousel-controls { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .65rem; margin-top: .85rem; padding: .65rem; border: 1px solid var(--blue-border); border-radius: 12px; background: var(--white); }
.hero-carousel-controls button { display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 1px solid var(--blue); border-radius: 50%; color: var(--white); background: var(--blue); cursor: pointer; transition: background-color .2s, box-shadow .2s; }
.hero-carousel-controls button:hover { background: var(--ink); box-shadow: 0 4px 12px rgba(var(--shadow-rgb), .18); }
.hero-carousel-controls button:focus-visible { outline-color: var(--blue); background: var(--ink); }
.hero-carousel-controls svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.hero-carousel-caption { display: grid; gap: .15rem; color: var(--blue); text-align: center; }
.hero-carousel-caption strong { font-size: .875rem; font-weight: 700; line-height: 1.4; }
.hero-carousel-status { color: var(--muted); font-size: .8125rem; line-height: 1.4; }
.hero-carousel-error { margin-top: .75rem; color: var(--error); font-size: .875rem; }

.intro { background: var(--white); }
.intro-grid, .section-heading, .location-inner, .contact-inner { display: grid; gap: 2rem; }
.intro-copy { max-width: 520px; color: var(--muted); }
.intro-copy .lead { color: var(--ink); font-family: var(--font-serif); font-size: clamp(1.25rem, 1.7vw, 1.5rem); line-height: 1.45; }
.intro-copy p + p { margin-top: 1rem; }
.intro-copy .text-link { margin-top: 1.5rem; }
.features { margin-top: 2.5rem; display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; }
.feature { padding: 1.5rem; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); }
.feature-number { color: var(--blue); font-size: .75rem; font-weight: 600; letter-spacing: .12em; }
.feature h3 { margin-top: 1rem; font-family: var(--font-serif); font-size: 1.25rem; font-weight: 500; line-height: 1.3; }
.feature p { margin-top: .6rem; color: var(--muted); font-size: .9375rem; }

.apartments { background: var(--surface); }
.section-heading { align-items: end; margin-bottom: 2.5rem; }
.section-heading > p { max-width: 390px; color: var(--muted); font-size: 1rem; }
.apartment-card { display: flex; max-width: 38rem; flex-direction: column; padding: clamp(1.25rem, 3vw, 2rem); background: var(--white); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 8px 26px rgba(var(--shadow-rgb), .04); transition: box-shadow .25s ease, transform .25s ease; }
.apartment-card-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.apartment-type { display: flex; align-items: baseline; gap: .45rem; font-family: var(--font-serif); font-size: clamp(1.35rem, 2.5vw, 1.75rem); font-weight: 500; line-height: 1.25; }
.apartment-count { color: var(--blue); font-family: var(--font-sans); font-size: 1.4em; font-weight: 700; letter-spacing: -.05em; line-height: 1; }
.apartment-icon { display: grid; flex: 0 0 auto; width: 3.25rem; height: 3.25rem; place-items: center; border-radius: 50%; color: var(--blue); background: var(--blue-soft); }
.apartment-icon svg { width: 1.75rem; height: 1.75rem; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.apartment-suite { width: fit-content; margin-top: 1rem; padding: .45rem .75rem; border: 1px solid var(--blue-border); border-radius: 4px; color: var(--blue); font-size: .875rem; font-weight: 700; line-height: 1.4; }
.apartment-features { display: grid; gap: .75rem; margin: 1.5rem 0 0; padding: 1.25rem 0 0; border-top: 1px solid var(--line); color: var(--muted); list-style: none; }
.apartment-features li { position: relative; padding-left: 1.25rem; font-size: 1rem; line-height: 1.5; }
.apartment-features li::before { position: absolute; top: .55em; left: .1rem; width: .5rem; height: .3rem; border-bottom: 2px solid var(--accent); border-left: 2px solid var(--accent); content: ""; transform: rotate(-45deg); }
.apartment-gallery-link { align-self: flex-start; max-width: 100%; margin-top: auto; padding-top: 1.25rem; }
.apartment-card:focus-within { box-shadow: 0 12px 30px rgba(var(--shadow-rgb), .1); }
.footnote { margin-top: 1.4rem; color: var(--muted); font-size: .875rem; }

.gallery { background: var(--white); }
.gallery-filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(.6rem, 2vw, 1.25rem); }
.gallery-filters button { display: flex; flex-wrap: wrap; align-content: center; align-items: center; justify-content: space-between; gap: .5rem; min-height: 5rem; padding: clamp(.7rem, 2vw, 1.3rem); border: 1px solid var(--blue-border); border-radius: 12px; color: var(--blue); background: var(--paper); box-shadow: 0 4px 14px rgba(var(--shadow-rgb), .05); text-align: left; font-weight: 600; cursor: pointer; transition: background-color .2s, border-color .2s; }
.gallery-filters button:hover { background: var(--blue-soft); border-color: var(--blue); }
.filter-count { min-width: 1.9rem; padding: .2rem .45rem; border-radius: 12px; background: var(--blue-soft); color: var(--ink); font-size: .8125rem; font-weight: 700; text-align: center; }
.filter-count:empty { display: none; }
.gallery-filters button[aria-pressed="true"] { border-color: var(--blue); background: var(--blue); color: var(--paper); }
.gallery-filters button[aria-pressed="true"] .filter-count { background: var(--paper); color: var(--blue); }
.gallery-status { min-height: 1.75em; margin-block: .9rem 1.25rem; color: var(--muted); font-size: .875rem; }
.gallery-status:empty { display: none; }
.gallery-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.75rem 1.25rem; }
.gallery-item { min-width: 0; }
.gallery-open { position: relative; display: block; overflow: hidden; border-radius: 8px; background: var(--paper); box-shadow: 0 1px 0 var(--line); }
/* Cards share one ratio and are cropped without distortion; the modal shows the complete photo. */
.gallery-item img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .45s ease, filter .25s; }
.gallery-item--uncropped img { object-fit: contain; }
.gallery-zoom { position: absolute; right: .75rem; bottom: .75rem; padding: .45rem .7rem; border-radius: 4px; color: var(--white); background: rgba(var(--shadow-rgb), .82); font-size: .8125rem; font-weight: 600; transition: background-color .2s; }
.gallery-item figcaption { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: .3rem .6rem; padding-top: .8rem; color: var(--ink); font-size: .875rem; }
.gallery-item figcaption span:first-child { order: 2; color: var(--blue); font-size: .75rem; font-weight: 700; letter-spacing: .1em; }

.lightbox { width: min(1100px, calc(100% - 2rem)); max-height: calc(100vh - 2rem); max-height: calc(100dvh - 2rem); padding: 1rem; overflow-y: auto; border: 1px solid var(--blue-border); border-radius: 12px; color: var(--white); background: var(--dark); box-shadow: 0 24px 80px rgba(var(--shadow-rgb), .35); }
.lightbox::backdrop { background: var(--overlay); }
.lightbox-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: .75rem; }
.lightbox-toolbar h2 { font-family: var(--font-sans); font-size: 1rem; font-weight: 600; letter-spacing: 0; line-height: 1.4; }
.lightbox button { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; gap: .7rem; min-width: 48px; min-height: 48px; padding: .5rem .75rem; border: 1px solid var(--blue-border); border-radius: 6px; background: transparent; color: var(--white); cursor: pointer; }
.lightbox button:hover { background: var(--blue); }
.lightbox-close { font-size: .875rem; }
.lightbox-stage { aspect-ratio: 4 / 3; max-height: min(60vh, 640px); max-height: min(60dvh, 640px); display: grid; place-items: center; margin-inline: auto; background: var(--stage); border-radius: 6px; touch-action: pan-y pinch-zoom; }
.lightbox-image { width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.lightbox-controls { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-top: .75rem; }
.lightbox-caption { display: flex; flex-direction: column; align-items: center; gap: .15rem; font-size: 1rem; text-align: center; line-height: 1.4; }
.lightbox-category { color: var(--accent); font-size: .75rem; font-weight: 700; letter-spacing: .12em; }
.lightbox-title { font-weight: 600; }
.lightbox-counter { color: var(--on-dark-muted); font-size: .875rem; }
#lightbox-help { margin-top: .75rem; text-align: center; color: var(--on-dark-muted); font-size: .875rem; }
.lightbox-error { padding: .75rem; color: var(--white); }

.leisure { display: grid; background: var(--dark); color: var(--white); }
.leisure-carousel { position: relative; min-width: 0; min-height: 0; background: var(--stage); }
.leisure-image { position: absolute; inset: 0; touch-action: pan-y pinch-zoom; }
.leisure-slide, .leisure-slide img { width: 100%; height: 100%; }
.leisure-slide img { object-fit: contain; }
.leisure-carousel::before { content: ""; display: block; aspect-ratio: 1280 / 853; }
.leisure-carousel-controls button { position: absolute; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 1px solid var(--blue); border-radius: 50%; background: var(--paper); color: var(--blue); box-shadow: 0 4px 14px rgba(var(--shadow-rgb), .24); cursor: pointer; }
.leisure-carousel-previous { left: clamp(.65rem, 2vw, 1.25rem); }
.leisure-carousel-next { right: clamp(.65rem, 2vw, 1.25rem); }
.leisure-carousel-controls button:is(:hover, :focus-visible) { background: var(--blue); border-color: var(--paper); color: var(--paper); }
.leisure-carousel-controls svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.leisure-carousel-status, .leisure-carousel-error { position: absolute; left: 50%; transform: translateX(-50%); max-width: calc(100% - 2rem); width: max-content; padding: .3rem .75rem; border-radius: 1rem; color: var(--paper); background: var(--dark); font-size: .8125rem; text-align: center; }
.leisure-carousel-status { bottom: .75rem; }
.leisure-carousel-error { top: .75rem; }
.leisure-content { padding: 3rem 1.25rem; }
.leisure-content p:not(.eyebrow) { max-width: 440px; margin-top: 1.5rem; color: var(--on-dark-muted); font-size: 1.0625rem; }
.light-link { margin-top: 1.5rem; color: var(--white); border-color: var(--accent); }
.presentation { background: var(--white); }
.presentation-inner { display: grid; grid-template-columns: minmax(0, 1fr); align-items: center; gap: clamp(1.5rem, 3vw, 3rem); }
.presentation-copy > p:last-child { max-width: 29rem; margin-top: 1.25rem; color: var(--muted); }
.presentation video, .presentation-pick { display: block; width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: contain; border-radius: 12px; background: var(--dark); box-shadow: 0 12px 30px rgba(var(--shadow-rgb), .14); }
.presentation-feature, .presentation-option { min-width: 0; margin: 0; }
.presentation-feature { justify-self: center; width: min(100%, 20rem); }
.presentation-stage { position: relative; }
.presentation-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; width: min(100%, 25rem); justify-self: center; }
.presentation figcaption, .presentation-message { margin-top: .5rem; color: var(--blue); font-size: .875rem; text-align: center; }
.presentation figcaption { font-weight: 600; }
.presentation-message:empty { display: none; }
.presentation-pick { position: relative; padding: 0; border: 0; cursor: pointer; }
.presentation-pick img { width: 100%; height: 100%; object-fit: contain; border-radius: inherit; }
.presentation-play, .presentation-pick::after {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  inline-size: 3rem;
  block-size: 3rem;
  padding: 0;
  border: 2px solid var(--paper);
  border-radius: 50%;
  background: var(--blue);
  color: var(--paper);
  box-shadow: 0 3px 12px rgba(var(--shadow-rgb), .35);
}
.presentation-play { z-index: 1; cursor: pointer; }
.presentation-play::before, .presentation-pick::after { content: "\25B6"; }
.presentation-pick::after { pointer-events: none; }
.presentation-play:hover, .presentation-pick:hover::after { background: var(--ink); }
.presentation :is(.presentation-play, .presentation-pick, video):focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
@media (max-width: 549px) {
  .presentation-feature, .presentation-options { justify-self: start; }
  .presentation-feature { width: min(calc(100% - 3.25rem), 20rem); }
  .presentation-options { grid-template-columns: minmax(0, 1fr); width: min(calc(100% - 4.5rem), 15rem); gap: 1.25rem; }
}
.location { background: var(--paper); }
.location-inner { grid-template-columns: minmax(0, 1fr); align-items: center; }
.location-copy { max-width: 460px; color: var(--muted); }
.location-city { margin-bottom: .8rem; color: var(--ink); font-size: .875rem; font-weight: 600; letter-spacing: .1em; }
.location-city span { color: var(--blue); }
.location-address { color: var(--ink); font-size: 1.0625rem; font-style: normal; font-weight: 600; line-height: 1.6; }
.location-proximity { margin-top: .65rem; font-size: .9375rem; }
.location-map-link { margin-top: 1.25rem; }
.location-map { width: 100%; min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: var(--white); box-shadow: 0 12px 30px rgba(var(--shadow-rgb), .08); }
.location-map iframe { display: block; width: 100%; max-width: 100%; min-width: 0; min-height: 280px; height: auto; aspect-ratio: 4 / 3; border: 0; }
.contact { background: var(--surface); color: var(--ink); }
.contact .light-eyebrow { color: var(--blue); }
.contact-copy { max-width: 390px; align-self: end; color: var(--muted); }
.contact-copy { padding-left: 1.5rem; border-left: 2px solid var(--accent); }
.contact-phone { margin-top: .75rem; color: var(--ink); font-size: 1.125rem; font-weight: 600; }
.contact-phone a { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: .2em; }
.contact-whatsapp { margin-top: 1.25rem; color: var(--white); background: var(--blue); }
.contact-whatsapp:hover { background: var(--ink); }
.site-footer { padding-block: 3rem 1.5rem; background: var(--dark); color: var(--white); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2rem; }
.footer-inner p, .footer-inner > a:last-child { font-size: .875rem; color: var(--on-dark-muted); }
.footer-inner > a:last-child { display: inline-flex; align-items: center; gap: .75rem; min-height: 44px; }
.footer-note { margin-top: 2.5rem; padding-top: 1rem; border-top: 1px solid var(--blue-border); color: var(--on-dark-muted); font-size: .8125rem; }
.footer-brands { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem clamp(1.5rem, 3vw, 2.5rem); max-width: 100%; }
.footer-construction { display: grid; justify-items: start; gap: .65rem; max-width: min(100%, 12rem); }
.footer-builder-link { display: block; width: 6rem; max-width: 100%; border-radius: 6px; background: var(--white); }
.footer-builder-link img { display: block; width: 100%; height: auto; border-radius: inherit; }
.footer-brand { flex-direction: column; align-items: flex-start; gap: .75rem; }
.footer-logo { display: block; width: 120px; height: auto; }
.footer-brand small { color: var(--on-dark-muted); font-size: .6875rem; font-weight: 600; letter-spacing: .12em; }

html:has(.floating-whatsapp) { scroll-padding-bottom: calc(5rem + env(safe-area-inset-bottom, 0px)); }
.site-footer:has(+ .floating-whatsapp) { padding-bottom: calc(5rem + env(safe-area-inset-bottom, 0px)); }
.floating-whatsapp, .floating-back-top { bottom: calc(14px + max(.75rem, env(safe-area-inset-bottom, 0px))); }
.floating-whatsapp {
  position: fixed;
  z-index: 40;
  right: max(.75rem, env(safe-area-inset-right, 0px));
  margin-left: max(.75rem, env(safe-area-inset-left, 0px));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-width: 52px;
  min-height: 52px;
  padding: .5rem;
  border: 1px solid #fff;
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(var(--shadow-rgb), .2);
  color: #fff;
  background: #087c52;
  font-size: .875rem;
  font-weight: 700;
  transform: translate(var(--whatsapp-shift-x, 0px), var(--whatsapp-shift-y, 0px));
}
.floating-whatsapp svg { flex: none; }
.floating-whatsapp span { display: none; }
.floating-whatsapp:hover { background: #066643; }
.floating-whatsapp:focus-visible { outline: 2px solid #fff; outline-offset: 2px; box-shadow: 0 0 0 6px var(--ink); }

.floating-back-top { display: none; }
@media (min-width: 1024px) {
  .floating-back-top {
    position: fixed;
    z-index: 40;
    left: max(.75rem, env(safe-area-inset-left, 0px));
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    padding: 0;
    border: 1px solid var(--white);
    border-radius: 50%;
    background: var(--blue);
    box-shadow: 0 4px 14px rgba(var(--shadow-rgb), .2);
    color: var(--white);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    transform: translateY(var(--back-top-shift-y, 0px));
  }
  .floating-back-top:hover { background: var(--ink); }
  .floating-back-top:focus-visible { outline: 2px solid var(--white); outline-offset: 2px; box-shadow: 0 0 0 6px var(--ink); }
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .apartment-card:hover { transform: translateY(-4px); box-shadow: 0 16px 32px rgba(var(--shadow-rgb), .09); }
  .gallery-open:hover img { filter: brightness(.94); }
  .gallery-item:not(.gallery-item--uncropped) .gallery-open:hover img { transform: scale(1.03); }
  .gallery-open:hover .gallery-zoom { background: var(--blue); }
}
@media (min-width: 550px) {
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 700px) {
  .container { width: min(100% - 5rem, 1200px); }
  .gallery-filters { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .is-enhanced .navigation { padding-inline: 2.5rem; }
  .intro-grid, .section-heading, .contact-inner { grid-template-columns: 1.15fr 1fr; gap: 4rem; }
  .location-inner { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 4rem; }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .presentation-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .presentation-copy { grid-column: 1 / -1; }
  .leisure { grid-template-columns: 1fr 1fr; }
  .leisure-carousel { grid-column: 1; grid-row: 1; }
  .leisure-content { grid-column: 2; grid-row: 1; }
  .leisure-content { align-self: center; padding: 4rem clamp(2rem, 6vw, 6rem); }
}
@media (min-width: 950px) {
  .features { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .presentation-inner { grid-template-columns: minmax(0, 1fr) minmax(0, .9fr) minmax(0, 1fr); }
  .presentation-copy { grid-column: auto; }
  .hero-layout { grid-template-columns: minmax(0, .9fr) minmax(0, 1fr); gap: clamp(2rem, 4vw, 4rem); }
  .hero-carousel { width: min(100%, 540px); justify-self: end; }
  .floating-whatsapp { padding-inline: .85rem; }
  .floating-whatsapp span { display: inline; }
}
@media (min-width: 950px) {
  .header-inner { flex-wrap: nowrap; gap: 1rem; }
  .menu-toggle:not([hidden]) { display: none; }
  .brand-logo { height: 54px; }
  .navigation, .navigation[hidden] { width: auto; padding: 0; display: flex; flex-direction: row; align-items: center; gap: clamp(.45rem, 1.25vw, 1.1rem); }
  .is-enhanced .navigation { padding: 0; }
  .navigation .nav-contact { padding: .72rem .95rem; border: 1px solid var(--blue); }
  .gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; }
}
