:root {
  color-scheme: light;
  --ink: #17231d;
  --ink-soft: #46524b;
  --gold: #b28b50;
  --gold-dark: #8e6a35;
  --cream: #f7f5f1;
  --sand: #eee9df;
  --white: #fff;
  --line: #e2ded7;
  --muted: #737b75;
  --shadow: 0 18px 48px rgba(22, 34, 28, .1);
  --radius: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select { font: inherit; }
button, select { cursor: pointer; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  line-height: 1.15;
}
h1 { font-size: clamp(2.5rem, 5.5vw, 4.65rem); letter-spacing: -.035em; }
h2 { font-size: clamp(2rem, 3.4vw, 3rem); letter-spacing: -.025em; }
h3 { font-size: 1.45rem; }
.container { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  color: var(--white);
  background: var(--ink);
  border-radius: 6px;
}
.skip-link:focus { top: 12px; }

.topline { color: #e8e9e6; background: var(--ink); font-size: .78rem; }
.topline__inner {
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.topline a { text-decoration: none; }
.topline a:hover { color: #f0d4a4; }
.site-header { position: relative; z-index: 10; background: var(--white); border-bottom: 1px solid rgba(23, 35, 29, .08); }
.header__inner { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: flex; align-items: center; flex: 0 0 auto; text-decoration: none; }
.brand img { width: 188px; height: 66px; object-fit: contain; }
.main-nav { display: flex; align-items: center; gap: clamp(15px, 2vw, 30px); font-size: .88rem; }
.main-nav > a, .nav-more > summary {
  color: var(--ink-soft);
  text-decoration: none;
  transition: color .15s ease;
}
.main-nav > a:hover, .nav-more > summary:hover { color: var(--gold-dark); }
.main-nav .nav-contact { padding: 11px 18px; color: var(--white); background: var(--ink); border-radius: 5px; }
.main-nav .nav-contact:hover { color: var(--white); background: var(--gold-dark); }
.nav-more { position: relative; }
.nav-more > summary { list-style: none; cursor: pointer; }
.nav-more > summary::-webkit-details-marker { display: none; }
.nav-more > summary::after { content: "⌄"; padding-left: 6px; }
.nav-more[open] .nav-more__panel { display: grid; }
.nav-more__panel {
  position: absolute;
  top: calc(100% + 18px);
  left: -18px;
  z-index: 20;
  display: none;
  min-width: 210px;
  padding: 8px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.nav-more__panel a { padding: 9px 11px; color: var(--ink-soft); text-decoration: none; border-radius: 5px; }
.nav-more__panel a:hover { color: var(--ink); background: var(--cream); }
.menu-toggle { display: none; }

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 5px;
  font-size: .92rem;
  font-weight: 650;
  line-height: 1.15;
  text-align: center;
  text-decoration: none;
  transition: background .15s ease, border-color .15s ease, color .15s ease, transform .15s ease;
}
.button:hover { transform: translateY(-1px); }
.button--dark { color: var(--white); background: var(--ink); }
.button--dark:hover { background: #26382e; }
.button--gold { color: #171c18; background: #d2b47d; }
.button--gold:hover { background: #e0c590; }
.button--outline { color: var(--ink); background: transparent; border-color: #a89f91; }
.button--outline:hover { color: var(--white); background: var(--ink); border-color: var(--ink); }
.button--wide { width: 100%; }
.button--small { min-height: 38px; padding: 9px 15px; font-size: .84rem; }
.text-link { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); font-weight: 650; text-decoration-color: var(--gold); text-decoration-thickness: 1px; text-underline-offset: 5px; }
.text-link:hover { color: var(--gold-dark); }
.eyebrow { margin-bottom: 12px; color: var(--gold-dark); font-size: .75rem; font-weight: 750; letter-spacing: .16em; line-height: 1.4; text-transform: uppercase; }
.eyebrow--light { color: #e0c590; }

.hero {
  min-height: 540px;
  position: relative;
  display: flex;
  align-items: center;
  color: var(--white);
  background-color: #26352c;
  background-image: linear-gradient(90deg, rgba(16, 26, 21, .88) 0%, rgba(16, 26, 21, .65) 49%, rgba(16, 26, 21, .15) 100%), var(--hero-image);
  background-position: center;
  background-size: cover;
}
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 110px; background: linear-gradient(0deg, rgba(14, 22, 18, .4), transparent); pointer-events: none; }
.hero__inner { position: relative; z-index: 1; padding: 70px 0 105px; }
.hero h1 { max-width: 700px; margin-bottom: 18px; color: var(--white); }
.hero__lead { max-width: 600px; margin-bottom: 27px; color: rgba(255, 255, 255, .84); font-size: 1.08rem; }
.search-card-wrap { position: absolute; z-index: 2; right: 0; bottom: -49px; left: 0; }
.search-card {
  display: grid;
  grid-template-columns: 1.05fr 1.1fr 1.1fr .85fr auto;
  gap: 12px;
  align-items: end;
  padding: 20px;
  background: var(--white);
  border-radius: 9px;
  box-shadow: var(--shadow);
}
.search-card label, .catalog-filters label { display: grid; gap: 6px; }
.search-card label > span, .catalog-filters label > span { color: var(--muted); font-size: .75rem; font-weight: 650; }
input, select {
  width: 100%;
  min-height: 44px;
  padding: 9px 11px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid #d8d5cf;
  border-radius: 4px;
}
input:focus, select:focus { outline: 2px solid rgba(178, 139, 80, .38); border-color: var(--gold); }
.search-card .button { min-height: 44px; white-space: nowrap; }

.section { padding: 86px 0; }
.section--featured { padding-top: 122px; }
.section--sand { background: var(--cream); }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 28px; }
.section-heading h2 { margin-bottom: 0; }
.section-heading .text-link { margin-bottom: 5px; }
.property-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.property-card {
  min-width: 0;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 25px rgba(22, 34, 28, .04);
  transition: transform .18s ease, box-shadow .18s ease;
}
.property-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.property-card[hidden] { display: none; }
.property-card__image { position: relative; display: block; overflow: hidden; aspect-ratio: 1.52; background: var(--sand); }
.property-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.property-card:hover .property-card__image img { transform: scale(1.035); }
.property-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 5px 9px;
  color: var(--ink);
  background: #f4e5c8;
  border-radius: 3px;
  font-size: .68rem;
  font-weight: 750;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.property-badge--status { top: auto; right: 14px; bottom: 14px; left: auto; color: var(--white); background: rgba(23, 35, 29, .86); }
.property-card__body { padding: 17px 18px 19px; }
.property-card__location { margin-bottom: 6px; color: var(--muted); font-size: .76rem; }
.property-card h3 { min-height: 2.4em; margin-bottom: 8px; font-size: 1.38rem; }
.property-card h3 a { text-decoration: none; }
.property-card h3 a:hover { color: var(--gold-dark); }
.property-card__description { display: -webkit-box; min-height: 3.15em; margin-bottom: 15px; overflow: hidden; color: var(--ink-soft); font-size: .83rem; line-height: 1.55; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.property-card__facts { display: flex; flex-wrap: wrap; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--ink-soft); font-size: .76rem; }
.property-card__fact strong { color: var(--ink); }
.property-card__bottom { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 13px; }
.property-card__price { margin: 0; color: var(--ink); font-size: 1.08rem; font-weight: 750; }
.property-card__code { margin-top: 2px; color: var(--muted); font-size: .7rem; }
.property-card__arrow { display: grid; width: 34px; height: 34px; place-items: center; color: var(--ink); border: 1px solid var(--line); border-radius: 50%; text-decoration: none; }
.property-card__arrow:hover { color: var(--white); background: var(--ink); border-color: var(--ink); }

.story-grid { display: grid; grid-template-columns: 1.2fr .8fr; align-items: center; gap: 90px; }
.story-copy h2 { max-width: 550px; margin-bottom: 18px; }
.story-copy p:not(.eyebrow) { max-width: 610px; color: var(--ink-soft); }
.story-copy .button { margin-top: 12px; }
.story-card {
  min-height: 310px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 43px;
  color: rgba(255, 255, 255, .83);
  background: var(--ink);
  border-radius: 8px;
}
.story-card__number { color: #d2b47d; font-family: Georgia, serif; font-size: 6.5rem; line-height: .9; }
.story-card__label { margin-top: 10px; color: var(--white); font-family: Georgia, serif; font-size: 1.45rem; line-height: 1.3; }
.story-card__rule { width: 45px; height: 2px; margin: 24px 0 17px; background: var(--gold); }
.story-card span:last-child { font-size: .88rem; }
.neighborhood-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.neighborhood-link {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding: 17px 19px;
  color: var(--ink);
  background: var(--cream);
  border: 1px solid transparent;
  border-radius: 5px;
  text-decoration: none;
}
.neighborhood-link:hover { background: var(--white); border-color: var(--gold); }
.neighborhood-link small { color: var(--muted); white-space: nowrap; }
.cta-band { padding: 64px 0; color: var(--white); background: #22332a; }
.cta-band__inner { display: flex; justify-content: space-between; align-items: center; gap: 35px; }
.cta-band h2 { max-width: 630px; margin-bottom: 10px; color: var(--white); }
.cta-band p:not(.eyebrow) { margin-bottom: 0; color: rgba(255, 255, 255, .75); }
.cta-band .button { flex: 0 0 auto; }

.page-banner, .detail-banner { padding: 60px 0 64px; color: var(--white); background: #22332a; }
.page-banner h1, .detail-banner h1 { margin-bottom: 11px; color: var(--white); font-size: clamp(2.4rem, 4.4vw, 4rem); }
.page-banner p:last-child, .detail-banner p:last-child { margin-bottom: 0; color: rgba(255, 255, 255, .76); }
.catalog-section { padding-top: 48px; }
.catalog-filters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; padding: 20px; background: var(--cream); border: 1px solid var(--line); border-radius: 8px; }
.filters-actions { display: flex; align-items: center; gap: 18px; }
.catalog-resultbar { display: flex; justify-content: space-between; gap: 15px; align-items: baseline; margin: 28px 0 18px; }
.catalog-resultbar p { margin: 0; font-weight: 750; }
.catalog-resultbar span { color: var(--muted); font-size: .78rem; }
.empty-state { padding: 55px 20px; text-align: center; }
.empty-state h2 { font-size: 1.8rem; }
.empty-state p { color: var(--muted); }

.back-link { display: inline-block; margin-bottom: 19px; color: #f2e3c5; font-size: .86rem; text-decoration: none; }
.back-link:hover { color: var(--white); }
.detail-banner { padding-top: 34px; }
.detail-banner h1 { max-width: 850px; margin-bottom: 8px; }
.detail-banner .eyebrow { margin-bottom: 8px; }
.detail-section { padding-top: 45px; }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(270px, .75fr); align-items: start; gap: 34px; }
.detail-main { min-width: 0; }
.gallery { overflow: hidden; border-radius: 8px; background: var(--cream); }
.gallery__main { position: relative; height: clamp(290px, 47vw, 590px); background: #e5e1d9; }
.gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.gallery__counter { position: absolute; right: 14px; bottom: 14px; padding: 6px 10px; color: var(--white); background: rgba(23, 35, 29, .78); border-radius: 4px; font-size: .76rem; }
.gallery__thumbs { display: flex; gap: 8px; overflow-x: auto; padding: 10px; }
.gallery__thumbs button { flex: 0 0 86px; overflow: hidden; padding: 0; aspect-ratio: 1.2; background: var(--sand); border: 2px solid transparent; border-radius: 4px; }
.gallery__thumbs button[aria-current="true"] { border-color: var(--gold); }
.gallery__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.detail-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 25px 0 43px; }
.detail-fact { padding: 15px 10px; text-align: center; background: var(--cream); border-radius: 5px; }
.detail-fact strong { display: block; color: var(--ink); font-size: 1.22rem; }
.detail-fact span { color: var(--muted); font-size: .74rem; }
.detail-description, .detail-location { padding: 25px 0; border-top: 1px solid var(--line); }
.detail-description h2, .detail-location h2 { margin-bottom: 15px; font-size: 1.9rem; }
.description-copy { color: var(--ink-soft); white-space: normal; }
.detail-location p:not(.eyebrow) { color: var(--ink-soft); }
.detail-tour { margin: 15px 0 30px; }
.contact-card { position: sticky; top: 20px; padding: 25px; background: var(--white); border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); }
.property-code { color: var(--muted); font-size: .77rem; }
.contact-card__price { margin: 12px 0 6px; color: var(--ink); font-family: Georgia, serif; font-size: 2rem; line-height: 1.2; }
.contact-card__note { color: var(--muted); font-size: .85rem; }
.contact-card .button + .button { margin-top: 10px; }
.contact-card__fine { margin: 17px 0 0; color: var(--muted); font-size: .72rem; text-align: center; }

.info-section { min-height: 390px; }
.info-content { max-width: 900px; }
.info-content p { color: var(--ink-soft); }
.info-content h2 { margin-top: 34px; font-size: 1.85rem; }
.info-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 25px 0; }
.info-card { padding: 23px; background: var(--cream); border-radius: 7px; }
.info-card h2, .info-card h3 { margin: 0 0 8px; font-size: 1.25rem; }
.info-card p:last-child { margin-bottom: 0; }
.contact-list { display: grid; gap: 16px; margin: 22px 0 28px; padding: 0; list-style: none; }
.contact-list li { padding: 19px; background: var(--cream); border-radius: 6px; }
.contact-list strong { display: block; margin-bottom: 4px; }

.site-footer { padding: 52px 0 20px; color: rgba(255, 255, 255, .74); background: #15211b; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1.2fr .85fr; gap: 30px; padding-bottom: 38px; }
.footer-brand img { width: 175px; height: 62px; object-fit: contain; filter: brightness(1.08); }
.footer-brand p { margin: 12px 0 0; font-family: Georgia, serif; font-size: 1.04rem; }
.site-footer h2 { margin: 3px 0 15px; color: var(--white); font-family: inherit; font-size: .8rem; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
.site-footer p { font-size: .83rem; }
.site-footer a { color: rgba(255, 255, 255, .83); text-decoration: none; }
.site-footer a:hover { color: #e2c48e; }
.footer-links { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; font-size: .83rem; }
.footer-bottom { display: flex; justify-content: space-between; gap: 15px; padding-top: 17px; color: rgba(255, 255, 255, .52); border-top: 1px solid rgba(255, 255, 255, .14); font-size: .72rem; }
.whatsapp-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 9;
  padding: 11px 17px;
  color: #fff;
  background: #16845b;
  border-radius: 25px;
  box-shadow: 0 8px 24px rgba(22, 34, 28, .2);
  font-size: .82rem;
  font-weight: 700;
  text-decoration: none;
}
.whatsapp-float:hover { background: #116c49; }
.cookie-banner {
  position: fixed;
  right: 18px;
  bottom: 78px;
  z-index: 30;
  width: min(490px, calc(100% - 36px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.cookie-banner[hidden] { display: none; }
.cookie-banner p { margin: 0; color: var(--ink-soft); font-size: .78rem; }

@media (max-width: 1050px) {
  .header__inner { gap: 18px; }
  .brand img { width: 165px; }
  .main-nav { gap: 13px; font-size: .82rem; }
  .search-card { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .search-card .button { grid-column: span 4; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  .container { width: min(100% - 32px, 680px); }
  .topline__inner { justify-content: center; min-height: 35px; }
  .topline__inner > span { display: none; }
  .header__inner { min-height: 76px; }
  .brand img { width: 160px; height: 60px; }
  .menu-toggle {
    width: 44px;
    height: 42px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 8px;
    background: transparent;
    border: 1px solid var(--line);
    border-radius: 5px;
  }
  .menu-toggle span:not(.sr-only) { width: 19px; height: 2px; background: var(--ink); }
  .main-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: none;
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    padding: 10px 20px 18px;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px rgba(22, 34, 28, .08);
  }
  .main-nav.is-open { display: flex; }
  .main-nav > a, .nav-more > summary { padding: 10px 4px; }
  .main-nav .nav-contact { margin-top: 6px; text-align: center; }
  .nav-more__panel { position: static; margin: 3px 0 10px; box-shadow: none; }
  .hero { min-height: 560px; background-position: 62% center; }
  .hero__inner { padding: 55px 0 125px; }
  .hero h1 { max-width: 600px; font-size: clamp(2.4rem, 8vw, 3.7rem); }
  .search-card-wrap { bottom: -120px; }
  .search-card { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 15px; }
  .search-card .button { grid-column: span 2; }
  .section { padding: 67px 0; }
  .section--featured { padding-top: 171px; }
  .property-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
  .story-grid { grid-template-columns: 1fr; gap: 30px; }
  .story-card { min-height: 260px; }
  .detail-layout { grid-template-columns: 1fr; }
  .contact-card { position: static; grid-row: 1; }
}
@media (max-width: 560px) {
  body { font-size: 15px; }
  .container { width: calc(100% - 28px); }
  .topline { font-size: .74rem; }
  .header__inner { min-height: 68px; }
  .brand img { width: 145px; height: 53px; }
  .hero { min-height: 600px; background-position: 59% center; }
  .hero::after { height: 190px; }
  .hero__inner { padding: 48px 0 172px; }
  .hero h1 { font-size: 2.55rem; }
  .hero__lead { font-size: .95rem; }
  .search-card-wrap { bottom: -142px; }
  .search-card { gap: 9px; padding: 13px; }
  .search-card label > span { font-size: .69rem; }
  input, select { min-height: 42px; padding: 8px; font-size: .84rem; }
  .search-card .button { min-height: 43px; }
  .section { padding: 57px 0; }
  .section--featured { padding-top: 193px; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 10px; }
  .section-heading h2 { font-size: 2.15rem; }
  .property-grid { grid-template-columns: 1fr; }
  .property-card__image { aspect-ratio: 1.6; }
  .neighborhood-grid { grid-template-columns: 1fr; gap: 8px; }
  .story-card { padding: 30px; }
  .story-card__number { font-size: 5.4rem; }
  .cta-band { padding: 48px 0; }
  .cta-band__inner { align-items: flex-start; flex-direction: column; }
  .page-banner, .detail-banner { padding: 42px 0; }
  .page-banner h1, .detail-banner h1 { font-size: 2.45rem; }
  .catalog-section { padding-top: 26px; }
  .catalog-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 13px; }
  .catalog-filters label:first-child, .filters-actions { grid-column: span 2; }
  .filters-actions { align-items: flex-start; flex-direction: column; gap: 10px; }
  .catalog-resultbar { align-items: flex-start; flex-direction: column; gap: 3px; }
  .detail-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery__main { height: 68vw; min-height: 250px; }
  .gallery__thumbs button { flex-basis: 72px; }
  .info-cards { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 22px; }
  .footer-bottom { align-items: flex-start; flex-direction: column; gap: 5px; }
  .whatsapp-float { right: 12px; bottom: 12px; padding: 10px 14px; }
  .cookie-banner { right: 10px; bottom: 66px; width: calc(100% - 20px); align-items: flex-start; }
}
