:root {
  --bg: #f6f2ea;
  --surface: #fffdf8;
  --surface-soft: rgba(255, 253, 248, 0.82);
  --text: #242827;
  --muted: #69706d;
  --line: rgba(36, 40, 39, 0.1);
  --primary: #0f766e;
  --primary-dark: #115e59;
  --sand: #d8b56d;
  --sand-soft: #efe2c3;
  --shadow: 0 22px 60px rgba(22, 32, 30, 0.12);
  --shadow-soft: 0 12px 34px rgba(22, 32, 30, 0.08);
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --container: min(1180px, calc(100% - 32px));
  --header-h: 66px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(15, 118, 110, 0.12), transparent 34rem),
    linear-gradient(180deg, #fbf7ef 0%, var(--bg) 100%);
  font-size: 15px;
  line-height: 1.58;
}
body.menu-open, body.modal-open, body.photo-open { overflow: hidden; }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

.site-shell { overflow-x: clip; }
.container { width: var(--container); margin: 0 auto; }
.section { padding: clamp(3.4rem, 7vw, 6rem) 0; }
.eyebrow {
  margin: 0 0 .8rem;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .72rem;
  font-weight: 800;
}
h1, h2, h3, p { margin-top: 0; }
h1, h2 { letter-spacing: -.045em; line-height: 1.02; }
h1 { font-size: clamp(2.35rem, 5.8vw, 5.25rem); max-width: 11ch; }
h2 { font-size: clamp(1.65rem, 3.45vw, 3.25rem); }
h3 { line-height: 1.18; }
p { color: var(--muted); }

.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.14);
  transition: background .25s ease, color .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.site-header.is-scrolled {
  color: var(--text);
  background: rgba(255,253,248,.88);
  backdrop-filter: blur(18px);
  border-color: var(--line);
  box-shadow: var(--shadow-soft);
}
.header-inner { min-height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: .85rem; }
.brand { display: inline-flex; align-items: center; gap: .55rem; min-width: 0; }
.brand img { width: 44px; height: 44px; object-fit: contain; border-radius: 13px; background: #fff; padding: .24rem; box-shadow: 0 10px 26px rgba(0,0,0,.12); }
.brand span { display: grid; line-height: 1.1; }
.brand strong { font-size: .86rem; }
.brand small { color: currentColor; opacity: .72; font-size: .7rem; margin-top: .18rem; }
.desktop-nav { display: none; align-items: center; gap: 1.1rem; font-weight: 700; font-size: .86rem; }
.desktop-nav a { opacity: .84; }
.desktop-nav a:hover { opacity: 1; color: var(--sand); }
.header-cta { display: none; padding: .62rem .9rem; border-radius: 999px; background: var(--primary); color: #fff; font-weight: 800; box-shadow: var(--shadow-soft); font-size: .9rem; }
.menu-toggle, .sidebar-close, .modal-close, .photo-lightbox-close { border: 0; cursor: pointer; }
.menu-toggle {
  width: 38px; height: 38px; display: inline-flex; flex-direction: column; justify-content: center; align-items: center; gap: .24rem;
  border-radius: 12px; color: currentColor; background: rgba(255,255,255,.14); backdrop-filter: blur(10px);
}
.menu-toggle span { width: 17px; height: 2px; border-radius: 999px; background: currentColor; transition: transform .25s ease, opacity .25s ease; }
.menu-toggle.is-active span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle.is-active span:nth-child(2) { opacity: 0; }
.menu-toggle.is-active span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-overlay, .gallery-backdrop { position: fixed; inset: 0; opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility .25s ease; }
.mobile-overlay { z-index: 55; background: rgba(9, 20, 18, .42); }
.mobile-overlay.is-visible { opacity: 1; visibility: visible; }
.mobile-sidebar {
  position: fixed; top: 0; right: 0; z-index: 60;
  width: min(88vw, 360px); height: 100svh; padding: 1.15rem;
  display: flex; flex-direction: column; gap: 1.35rem;
  background: rgba(255,253,248,.96); color: var(--text); backdrop-filter: blur(16px);
  transform: translateX(100%); transition: transform .28s ease; box-shadow: -22px 0 60px rgba(0,0,0,.18);
}
.mobile-sidebar.is-open { transform: translateX(0); }
.sidebar-top { display: flex; gap: 1rem; justify-content: space-between; align-items: flex-start; }
.sidebar-top h2 { font-size: 1.5rem; }
.sidebar-close, .modal-close { width: 34px; height: 34px; border-radius: 50%; background: var(--sand-soft); color: var(--text); font-size: 1.2rem; line-height: 1; }
.mobile-nav { display: grid; gap: .6rem; }
.mobile-nav a { padding: .72rem 0; border-bottom: 1px solid var(--line); font-weight: 800; }

.button {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  min-height: 42px; padding: .62rem .95rem; border-radius: 999px;
  border: 1px solid transparent; font-weight: 850; transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  font-size: .88rem;
}
.button:hover { transform: translateY(-1px); }
.button-primary { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff; box-shadow: var(--shadow-soft); }
.button-secondary { background: rgba(255,255,255,.15); color: #fff; border-color: rgba(255,255,255,.42); backdrop-filter: blur(10px); }
.button-outline { background: transparent; border-color: var(--line); color: var(--primary-dark); }

.hero { position: relative; min-height: 100svh; display: grid; align-items: center; overflow: hidden; color: #fff; background: #08110f; isolation: isolate; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; filter: brightness(1.12) saturate(1.08) contrast(.96); }
.hero-overlay { position: absolute; inset: 0; z-index: -1; background: none; }
.hero-content { padding: calc(var(--header-h) + 3.4rem) 0 3.6rem; }
.hero-copy { max-width: 760px; text-shadow: 0 3px 18px rgba(0,0,0,.42); }
.hero .eyebrow, .hero p { color: rgba(255,255,255,.9); }
.hero-text { max-width: 58ch; font-size: clamp(.95rem, 1.8vw, 1.12rem); font-weight: 600; }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); max-width: 580px; margin: 1.35rem 0; border: 1px solid rgba(255,255,255,.24); background: rgba(8,17,15,.16); backdrop-filter: blur(4px); border-radius: var(--radius-md); overflow: hidden; box-shadow: 0 16px 42px rgba(0,0,0,.12); }
.hero-stats article { padding: .85rem; border-right: 1px solid rgba(255,255,255,.16); }
.hero-stats article:last-child { border-right: 0; }
.hero-stats strong { display: block; font-size: clamp(1.45rem, 3.5vw, 2.3rem); line-height: 1; }
.hero-stats span { display: block; margin-top: .3rem; color: rgba(255,255,255,.82); font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 900; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .7rem; }
.hero-whatsapp { position: absolute; right: clamp(1rem, 3vw, 2rem); bottom: clamp(1rem, 3vw, 2rem); display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .76rem 1.05rem; border-radius: 999px; background: #25d366; color: #fff; font-size: .92rem; font-weight: 900; box-shadow: 0 16px 44px rgba(0,0,0,.28); }
.hero-whatsapp .whatsapp-logo { width: 1.28rem; height: 1.28rem; flex: 0 0 auto; fill: currentColor; }

.split-grid { display: grid; gap: 1.6rem; align-items: start; }
.intro-copy p { font-size: 1rem; }
.section-heading { max-width: 780px; margin-bottom: 1.7rem; }
.section-heading.compact { margin-bottom: 1.2rem; }
.section-heading-row { max-width: none; display: grid; gap: 1rem; align-items: end; }
.section-heading-row p { max-width: 48ch; }

.locations-grid, .apartments-grid, .highlights-grid, .faq-grid { display: grid; gap: 1rem; }
.location-card { position: relative; min-height: 330px; overflow: hidden; border-radius: var(--radius-lg); box-shadow: var(--shadow-soft); background: #ddd; }
.location-card img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; transition: transform .45s ease; }
.location-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(6,16,14,.82)); }
.location-card:hover img { transform: scale(1.05); }
.location-card div { position: absolute; inset: auto 0 0; z-index: 2; padding: 1.2rem; color: #fff; }
.location-card strong { display: block; font-size: 1.25rem; margin-bottom: .3rem; }
.location-card span { color: rgba(255,255,255,.82); }

.filter-bar { display: flex; flex-wrap: wrap; gap: .55rem; margin-bottom: 1.2rem; }
.filter-bar button, .gallery-tabs button {
  border: 1px solid var(--line); background: rgba(255,255,255,.68); color: var(--text); border-radius: 999px; padding: .52rem .78rem; cursor: pointer; font-size: .84rem; font-weight: 850;
}
.filter-bar button.is-active, .gallery-tabs button.is-active { background: var(--primary); color: #fff; border-color: var(--primary); }

.apartment-card {
  display: grid; overflow: hidden; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-soft);
}
.apartment-card[hidden] { display: none; }
.apartment-media { position: relative; min-height: 250px; background: #d9d4ca; overflow: hidden; }
.apartment-media img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; transition: transform .45s ease; }
.apartment-card:hover .apartment-media img { transform: scale(1.04); }
.media-badge { position: absolute; left: .85rem; top: .85rem; z-index: 2; padding: .42rem .65rem; border-radius: 999px; background: rgba(255,253,248,.9); color: var(--primary-dark); font-size: .72rem; font-weight: 900; }
.apartment-body { padding: 1rem; display: grid; gap: .75rem; }
.apartment-top { display: flex; justify-content: space-between; gap: 1rem; align-items: start; }
.apartment-kicker { margin: 0 0 .35rem; color: var(--primary); font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 900; }
.apartment-top h3 { margin: 0; font-size: clamp(1.16rem, 2.35vw, 1.72rem); letter-spacing: -.03em; }
.rating { flex: 0 0 auto; padding: .3rem .5rem; border-radius: 999px; background: var(--sand-soft); font-size: .8rem; font-weight: 900; }
.apartment-desc { margin: 0; }
.amenities { display: flex; flex-wrap: wrap; gap: .38rem; }
.amenities span { padding: .32rem .5rem; border-radius: 999px; background: #f4efe5; border: 1px solid var(--line); color: #4e5754; font-size: .72rem; font-weight: 750; }
.policy-note { margin: 0; padding: .65rem .75rem; border-radius: var(--radius-sm); background: rgba(15,118,110,.08); color: var(--primary-dark); font-size: .84rem; font-weight: 750; }
.apartment-actions { display: flex; flex-wrap: wrap; gap: .55rem; padding-top: .35rem; border-top: 1px solid var(--line); }
.apartment-actions .button { min-height: 38px; padding: .52rem .78rem; font-size: .84rem; }

.highlights-section, .apartments-section { background: rgba(255,255,255,.38); }
.highlights-grid article, .faq-grid article, .location-panel { border: 1px solid var(--line); background: var(--surface-soft); border-radius: var(--radius-md); padding: 1.15rem; box-shadow: var(--shadow-soft); }
.highlights-grid span { color: var(--sand); font-weight: 950; letter-spacing: .12em; }
.highlights-grid h3, .faq-grid h3 { margin: .4rem 0 .4rem; font-size: 1.15rem; }
.highlights-grid p, .faq-grid p { margin-bottom: 0; }
.location-panel { display: grid; gap: 1.35rem; background: linear-gradient(135deg, rgba(15,118,110,.1), rgba(255,253,248,.92)); }
.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.check-list li { padding-left: 1.9rem; position: relative; color: var(--muted); }
.check-list li::before { content: '✓'; position: absolute; left: 0; top: 0; color: var(--primary); font-weight: 900; }

.site-footer { background: #0b1715; color: #fff; padding: 3.4rem 0 1.3rem; }
.site-footer p, .site-footer li { color: rgba(255,255,255,.72); }
.footer-grid { display: grid; gap: 1.6rem; }
.footer-brand img { width: 76px; border-radius: 16px; background: #fff; padding: .32rem; margin-bottom: .85rem; }
.footer-brand h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); max-width: 14ch; }
.site-footer h3 { margin: 0 0 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .65rem; }
.site-footer a:hover { color: var(--sand); }
.footer-bottom { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,.12); text-align: center; }
.footer-bottom p { margin: 0 auto; }
.footer-bottom a { color: #fff; font-weight: 900; text-decoration: underline; text-underline-offset: .2em; }

.gallery-modal[hidden] { display: none; }
.gallery-modal { position: fixed; inset: 0; z-index: 100; }
.gallery-modal.is-open .gallery-backdrop { opacity: 1; visibility: visible; }
.gallery-backdrop { z-index: 0; background: rgba(5,12,11,.72); }
.gallery-dialog {
  position: relative; z-index: 1; width: min(1120px, calc(100% - 1rem)); max-height: calc(100svh - 1rem); overflow: auto;
  margin: .5rem auto; padding: clamp(.85rem, 2.5vw, 1.6rem); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow);
}
.modal-close { position: sticky; top: .4rem; margin-left: auto; display: grid; place-items: center; z-index: 3; }
.gallery-dialog-header { max-width: 780px; margin-bottom: 1rem; }
.gallery-dialog-header h2 { font-size: clamp(1.65rem, 3.6vw, 2.8rem); }
.gallery-tabs { display: flex; flex-wrap: wrap; gap: .45rem; margin: .85rem 0 1rem; }
.gallery-grid { display: grid; gap: .7rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.gallery-grid.is-single { grid-template-columns: minmax(0, min(540px, 100%)); justify-content: center; }
.gallery-item { overflow: hidden; min-height: 230px; border-radius: var(--radius-md); background: #ddd; border: 1px solid var(--line); position: relative; }
.gallery-item-button { width: 100%; padding: 0; cursor: zoom-in; text-align: left; }
.gallery-grid.is-single .gallery-item { min-height: clamp(220px, 42vw, 380px); }
.gallery-item img, .gallery-item video { width: 100%; height: 100%; object-fit: cover; min-height: 230px; }
.gallery-item video { background: #000; }
.gallery-label { position: absolute; left: .75rem; bottom: .75rem; padding: .38rem .6rem; border-radius: 999px; background: rgba(5,12,11,.7); color: #fff; font-size: .75rem; font-weight: 900; }
.empty-state { padding: 1rem; border-radius: var(--radius-md); background: #f4efe5; color: var(--muted); }

.photo-lightbox[hidden] { display: none; }
.photo-lightbox { position: fixed; inset: 0; z-index: 140; display: grid; place-items: center; padding: clamp(.75rem, 3vw, 1.5rem); }
.photo-lightbox-backdrop { position: absolute; inset: 0; border: 0; background: rgba(4, 10, 9, .88); opacity: 0; transition: opacity .22s ease; cursor: zoom-out; }
.photo-lightbox.is-open .photo-lightbox-backdrop { opacity: 1; }
.photo-lightbox-dialog { position: relative; z-index: 1; width: min(100%, 1040px); display: grid; justify-items: center; gap: .7rem; transform: translateY(10px) scale(.98); opacity: 0; transition: transform .22s ease, opacity .22s ease; }
.photo-lightbox.is-open .photo-lightbox-dialog { transform: translateY(0) scale(1); opacity: 1; }
.photo-lightbox-dialog img { max-width: 100%; max-height: min(82svh, 760px); object-fit: contain; border-radius: var(--radius-md); box-shadow: 0 24px 80px rgba(0,0,0,.42); background: #111; }
.photo-lightbox-dialog p { margin: 0; max-width: min(100%, 780px); color: rgba(255,255,255,.86); text-align: center; font-weight: 800; }
.photo-lightbox-close { position: absolute; right: 0; top: 0; transform: translate(35%, -35%); z-index: 2; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: var(--sand-soft); color: var(--text); font-size: 1.35rem; line-height: 1; box-shadow: 0 12px 34px rgba(0,0,0,.28); }

@media (max-width: 680px) {
  :root { --header-h: 58px; --container: min(100% - 20px, 1180px); }
  body { font-size: 14px; }
  .section { padding: clamp(2.7rem, 6vw, 4.5rem) 0; }
  .brand img { width: 36px; height: 36px; border-radius: 11px; }
  .brand strong { font-size: .8rem; }
  .brand small { display: none; }
  .menu-toggle { width: 36px; height: 36px; }
  .header-cta { display: none; }
  .hero { min-height: 92svh; }
  .hero-content { padding: calc(var(--header-h) + 2.2rem) 0 4.5rem; }
  h1 { font-size: clamp(2.1rem, 10.5vw, 3.35rem); }
  h2 { font-size: clamp(1.55rem, 7vw, 2.35rem); }
  .apartment-top { gap: .65rem; }
  .apartment-top h3 { font-size: clamp(1.05rem, 6vw, 1.42rem); }
  .apartment-desc { font-size: .94rem; line-height: 1.55; }
  .amenities { gap: .34rem; }
  .amenities span { padding: .28rem .46rem; font-size: .68rem; }
  .policy-note { font-size: .8rem; line-height: 1.5; }
  .hero-stats { grid-template-columns: 1fr; }
  .hero-stats article { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.14); }
  .hero-stats article:last-child { border-bottom: 0; }
  .hero-actions .button { width: 100%; }
  .apartment-actions .button { width: 100%; }
  .gallery-dialog { width: 100%; max-height: 100svh; margin: 0; border-radius: 0; }
  .gallery-tabs { gap: .4rem; }
  .gallery-tabs button { padding: .48rem .7rem; font-size: .8rem; }
  .gallery-grid.is-single { grid-template-columns: minmax(0, min(420px, 100%)); }
  .gallery-grid.is-single .gallery-item { min-height: clamp(210px, 66vw, 320px); }
  .photo-lightbox { padding: .65rem; }
  .photo-lightbox-dialog { width: 100%; }
  .photo-lightbox-dialog img { max-height: 78svh; border-radius: var(--radius-sm); }
  .photo-lightbox-close { right: .35rem; top: .35rem; transform: none; width: 40px; height: 40px; }
}

@media (min-width: 760px) {
  .split-grid, .section-heading-row, .location-panel { grid-template-columns: minmax(0, .9fr) minmax(0, 1fr); }
  .locations-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .highlights-grid, .faq-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1.35fr repeat(3, 1fr); }
  .apartment-card { grid-template-columns: minmax(330px, .85fr) minmax(0, 1fr); }
  .apartment-media { min-height: 100%; }
}

@media (min-width: 1024px) {
  .desktop-nav, .header-cta { display: inline-flex; }
  .menu-toggle { display: none; }
  .apartments-grid { gap: 1.1rem; }
  .highlights-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
