/* ÁUREA website template. Plain CSS, no build step. */
:root {
  --night: #070e0b;
  --olive: #4f543c;
  --olive-dark: #3c402d;
  --sand: #d7c3a9;
  --gold: #c29e71;
  --linen: #f6f1ea;
  --paper: #fffdf9;
  --ink: #1d201a;
  --ink-2: #3a3d33;
  --muted: #5b5e52;
  --line: #e3d9cb;
  --field: #d9cfc1;
  --radius: 18px;
  --wrap: 1240px;
  --display: 'Jost', system-ui, sans-serif;
  --body: 'DM Sans', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--linen); color: var(--ink); font: 400 16px/1.5 var(--body); }
img { max-width: 100%; display: block; }
a { color: var(--olive-dark); }
a:hover { color: var(--night); }
h1, h2, h3 { margin: 0; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.eyebrow { font-family: var(--display); font-size: 13px; letter-spacing: .28em; text-transform: uppercase; color: #6b5a3f; }
.display { font-family: var(--display); font-weight: 300; line-height: 1.1; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 24px; border-radius: 999px; border: 1px solid transparent; font-weight: 500; text-decoration: none; cursor: pointer; transition: background .15s, color .15s; }
.btn-primary { background: var(--olive); color: var(--paper); }
.btn-primary:hover { background: var(--olive-dark); color: var(--paper); }
.btn-sand { background: var(--sand); color: var(--night); }
.btn-sand:hover { background: #e6d6c0; color: var(--night); }
.btn-outline { border-color: var(--olive); color: var(--olive-dark); background: transparent; }
.btn-outline:hover { background: var(--olive); color: var(--paper); }
.btn-ghost-dark { border-color: #5b5e52; color: var(--linen); background: transparent; }
.btn-ghost-dark:hover { border-color: var(--sand); color: var(--sand); }
.btn-block { width: 100%; border-radius: 14px; }

/* Header */
.site-header { background: var(--night); color: var(--sand); position: sticky; top: 0; z-index: 30; }
.site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: 84px; }
.site-header .brand img { height: 68px; width: auto; }
.site-nav { display: flex; gap: 28px; flex: 1; justify-content: center; }
.site-nav a { color: var(--linen); text-decoration: none; font-size: 15px; padding: 10px 0; border-bottom: 1px solid transparent; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--sand); border-bottom-color: var(--gold); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.header-phone { display: inline-flex; align-items: center; gap: 8px; color: var(--sand); text-decoration: none; min-height: 44px; }
.header-phone:hover { color: var(--paper); }
.menu-toggle, .icon-btn { width: 44px; height: 44px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid #3a3d33; background: transparent; color: var(--linen); cursor: pointer; }
.icon-btn.sand { background: var(--sand); border-color: var(--sand); color: var(--night); }
.menu-toggle, .header-actions .icon-btn { display: none; }
.mobile-nav { display: none; background: var(--night); border-top: 1px solid #2a2f28; padding: 8px 24px 24px; }
.mobile-nav a { display: block; color: var(--linen); text-decoration: none; padding: 14px 0; border-bottom: 1px solid #1d221d; font-size: 18px; }
.mobile-nav .btn { margin-top: 18px; width: 100%; }
.mobile-nav.open { display: block; }

/* Hero */
.hero { position: relative; background: var(--night); overflow: hidden; }
.hero picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.hero .wrap { position: relative; padding-top: 112px; padding-bottom: 168px; }
.hero .eyebrow { color: var(--sand); margin-bottom: 20px; font-size: 14px; letter-spacing: .32em; }
.hero h1 { max-width: 780px; font-family: var(--display); font-weight: 300; font-size: clamp(38px, 6vw, 76px); line-height: 1.04; letter-spacing: -.01em; color: var(--paper); }
.hero .lead { margin-top: 28px; max-width: 560px; font-size: 19px; line-height: 1.55; color: #ece4d8; }

/* Search */
.search { position: relative; margin-top: -104px; }
.search-card { background: var(--paper); border-radius: 20px; padding: 24px; box-shadow: 0 24px 60px rgba(7,14,11,.18); display: flex; flex-direction: column; gap: 20px; }
.search-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.segmented { display: inline-flex; background: #efe7dc; border-radius: 999px; padding: 4px; }
.segmented button { min-height: 44px; padding: 0 22px; border: 0; border-radius: 999px; background: transparent; color: var(--olive-dark); font-weight: 500; cursor: pointer; }
.segmented button[aria-pressed="true"] { background: var(--olive); color: var(--paper); }
.search-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; align-items: end; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 500; color: var(--muted); }
.field select, .field input, .field textarea { min-height: 48px; padding: 0 14px; border: 1px solid var(--field); border-radius: 12px; background: var(--paper); font-size: 16px; font-weight: 400; color: var(--ink); width: 100%; }
.field textarea { padding: 12px 14px; min-height: 110px; resize: vertical; }
.code-search { display: none; gap: 12px; flex-wrap: wrap; }
.code-search.open { display: flex; }
.code-search input { flex: 1 1 220px; min-height: 48px; padding: 0 14px; border: 1px solid var(--field); border-radius: 12px; font-size: 16px; }
.link-btn { background: none; border: 0; padding: 10px 0; color: var(--olive-dark); text-decoration: underline; cursor: pointer; font-size: 14px; }

/* Sections */
.section { padding-top: 96px; padding-bottom: 96px; }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 32px; }
.section-head h2 { font-family: var(--display); font-weight: 300; font-size: clamp(32px, 4vw, 44px); line-height: 1.1; margin-top: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid #cdbfac; color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 500; }
.chip:hover { border-color: var(--night); color: var(--night); }
.chip.active { background: var(--night); border-color: var(--night); color: var(--paper); }

/* Cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px; }
.card { background: var(--paper); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; text-decoration: none; color: var(--ink); transition: transform .15s, box-shadow .15s; }
.card:hover { transform: translateY(-2px); box-shadow: 0 18px 40px rgba(7,14,11,.10); color: var(--ink); }
.card-media { position: relative; aspect-ratio: 4 / 3; background: #e6ddd0; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.badge { position: absolute; top: 14px; left: 14px; padding: 6px 12px; border-radius: 999px; background: var(--paper); color: var(--ink); font-size: 13px; font-weight: 500; }
.card-body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.price { font-family: var(--display); font-size: 28px; color: var(--night); }
.price small { font-size: 15px; color: var(--muted); }
.card-title { font-size: 17px; font-weight: 500; }
.card-sub { font-size: 14px; color: var(--muted); }
.specs { list-style: none; margin: 8px 0 0; padding: 14px 0 0; border-top: 1px solid #ece4d8; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 14px; color: var(--ink-2); }
.card-code { margin-top: auto; padding-top: 8px; font-size: 12px; letter-spacing: .06em; color: var(--muted); }
.card-more { border-radius: var(--radius); border: 1.5px dashed #b9a98f; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 14px; padding: 40px; text-decoration: none; color: var(--olive-dark); min-height: 320px; text-align: center; }
.card-more strong { font-family: var(--display); font-size: 30px; font-weight: 300; }
.card-more span { font-size: 15px; color: var(--muted); }

/* Towns */
.towns { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.town { display: flex; flex-direction: column; gap: 40px; padding: 28px; border-radius: var(--radius); background: #e9e1d5; color: var(--night); text-decoration: none; }
.town:nth-child(1) { background: var(--olive); color: var(--paper); }
.town:nth-child(1) span { color: var(--sand); }
.town:nth-child(2) { background: var(--sand); }
.town span { font-size: 14px; color: var(--ink-2); }
.town strong { font-family: var(--display); font-size: 30px; font-weight: 300; }
.town:hover { filter: brightness(.97); }

/* Owners band */
.band-dark { background: var(--night); color: var(--linen); }
.band-dark .wrap { display: flex; flex-wrap: wrap; gap: 56px; padding-top: 96px; padding-bottom: 96px; }
.band-dark .eyebrow { color: var(--gold); }
.band-dark h2 { font-family: var(--display); font-weight: 300; font-size: clamp(34px, 4vw, 46px); line-height: 1.1; }
.band-dark .copy { flex: 1 1 380px; display: flex; flex-direction: column; gap: 22px; }
.band-dark .copy p { font-size: 18px; line-height: 1.6; color: var(--sand); }
.steps { flex: 1 1 460px; list-style: none; margin: 0; padding: 0; }
.steps li { display: flex; gap: 24px; padding: 24px 0; border-top: 1px solid #2a2f28; }
.steps li:last-child { border-bottom: 1px solid #2a2f28; }
.steps .n { font-family: var(--display); font-size: 34px; font-weight: 300; color: var(--gold); width: 48px; flex: none; }
.steps h3 { font-size: 19px; font-weight: 500; margin-bottom: 6px; }
.steps p { color: #c9bba6; line-height: 1.55; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

/* About */
.split { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.split > * { flex: 1 1 420px; }
.split .media { aspect-ratio: 5 / 4; border-radius: 22px; overflow: hidden; background: #e6ddd0; }
.split .media img { width: 100%; height: 100%; object-fit: cover; }
.split .copy { display: flex; flex-direction: column; gap: 20px; }
.split h2 { font-family: var(--display); font-weight: 300; font-size: clamp(32px, 4vw, 44px); line-height: 1.1; }
.split .copy p { font-size: 18px; line-height: 1.65; color: var(--ink-2); }

.backers { border-top: 1px solid var(--line); }
.backers .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 24px 48px; padding-top: 48px; padding-bottom: 48px; }
.backers h2 { font-size: 14px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.backers ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 16px 44px; font-family: var(--display); font-size: 20px; color: var(--ink-2); }

/* Footer */
.site-footer { background: var(--night); color: var(--sand); }
.site-footer .cols { display: flex; flex-wrap: wrap; gap: 48px; padding-top: 64px; padding-bottom: 32px; }
.site-footer .cols > * { flex: 1 1 180px; display: flex; flex-direction: column; gap: 12px; }
.site-footer .cols > :first-child { flex-basis: 260px; }
.site-footer h3 { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin-bottom: 6px; font-weight: 500; }
.site-footer a { color: var(--linen); text-decoration: none; }
.site-footer a:hover { color: var(--sand); }
.site-footer .legal { border-top: 1px solid #2a2f28; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 20px; padding-bottom: 32px; font-size: 13px; color: #a89a85; }

/* Floating WhatsApp */
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 40; width: 60px; height: 60px; border-radius: 999px; background: var(--olive); color: var(--paper); display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 30px rgba(7,14,11,.3); }
.wa-float:hover { background: var(--olive-dark); color: var(--paper); }

/* Page title (inner pages) */
.page-head { padding: 48px 0 28px; }
.page-head h1 { font-family: var(--display); font-weight: 300; font-size: clamp(32px, 4.5vw, 52px); line-height: 1.08; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--muted); margin-bottom: 18px; }

/* Searcher filters */
.filters { background: var(--paper); border-radius: 18px; padding: 18px; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; align-items: end; margin-bottom: 28px; }
.results-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 20px; color: var(--ink-2); }
.pager { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 48px; list-style: none; padding: 0; }
.pager a, .pager span { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 12px; border-radius: 999px; border: 1px solid #cdbfac; text-decoration: none; color: var(--ink); }
.pager .current { background: var(--night); border-color: var(--night); color: var(--paper); }
.empty { background: var(--paper); border-radius: 18px; padding: 48px 24px; text-align: center; display: flex; flex-direction: column; gap: 16px; align-items: center; }

/* Detail */
.detail-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 28px; }
.detail-head .tag { align-self: flex-start; padding: 6px 12px; border-radius: 999px; background: var(--olive); color: var(--paper); font-size: 13px; font-weight: 500; }
.detail-head .left { display: flex; flex-direction: column; gap: 10px; }
.detail-head .right { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.detail-head .price { font-size: clamp(32px, 4vw, 44px); }
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: 250px 250px; gap: 10px; border-radius: 20px; overflow: hidden; }
.gallery button { padding: 0; border: 0; background: #e6ddd0; cursor: zoom-in; position: relative; overflow: hidden; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery button:first-child { grid-column: span 2; grid-row: span 2; }
.gallery .all { position: absolute; right: 14px; bottom: 14px; min-height: 44px; padding: 0 18px; border-radius: 999px; background: var(--paper); color: var(--ink); display: inline-flex; align-items: center; font-size: 14px; font-weight: 500; }
.detail-body { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; margin-top: 40px; }
.detail-main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 40px; }
.facts { list-style: none; margin: 0; padding: 24px; background: var(--paper); border-radius: 18px; display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 20px; }
.facts li { display: flex; flex-direction: column; gap: 4px; }
.facts strong { font-family: var(--display); font-size: 28px; font-weight: 300; }
.facts span { font-size: 14px; color: var(--muted); }
.prose h2 { font-family: var(--display); font-weight: 300; font-size: 32px; margin-bottom: 16px; }
.prose p { font-size: 17px; line-height: 1.7; color: var(--ink-2); }
.features { columns: 2 220px; list-style: none; margin: 0; padding: 0; }
.features li { break-inside: avoid; padding: 8px 0 8px 22px; position: relative; color: var(--ink-2); }
.features li::before { content: ''; position: absolute; left: 0; top: 16px; width: 8px; height: 8px; border-radius: 999px; background: var(--gold); }
.contact-card { flex: 1 1 340px; background: var(--paper); border-radius: 20px; padding: 28px; display: flex; flex-direction: column; gap: 18px; box-shadow: 0 16px 40px rgba(7,14,11,.08); position: sticky; top: 108px; }
.agent { display: flex; align-items: center; gap: 14px; }
.avatar { width: 56px; height: 56px; border-radius: 999px; background: var(--sand); display: flex; align-items: center; justify-content: center; font-family: var(--display); font-size: 20px; color: var(--night); flex: none; }
.contact-card form { display: flex; flex-direction: column; gap: 12px; border-top: 1px solid #ece4d8; padding-top: 18px; }
.note { font-size: 13px; color: var(--muted); }
.alert { padding: 14px 16px; border-radius: 12px; background: #e8eadf; color: var(--olive-dark); }
.alert.error { background: #f6e3dc; color: #7a2e17; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 60; background: rgba(7,14,11,.94); display: none; align-items: center; justify-content: center; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 84vh; object-fit: contain; }
.lightbox .lb-btn { position: absolute; width: 52px; height: 52px; border-radius: 999px; border: 0; background: rgba(255,253,249,.12); color: var(--paper); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.lightbox .lb-close { top: 20px; right: 20px; }
.lightbox .lb-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 20px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-count { position: absolute; bottom: 24px; left: 0; right: 0; text-align: center; color: var(--sand); font-size: 14px; }

/* Contact page */
.contact-grid { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.contact-grid > * { flex: 1 1 380px; }
.info-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.info-list li { display: flex; gap: 14px; align-items: flex-start; font-size: 17px; }
.info-list svg { flex: none; color: var(--olive); margin-top: 3px; }
.panel { background: var(--paper); border-radius: 20px; padding: 28px; display: flex; flex-direction: column; gap: 14px; }

/* Responsive */
@media (max-width: 960px) {
  .site-nav, .header-phone, .header-actions .btn { display: none; }
  .menu-toggle, .header-actions .icon-btn { display: inline-flex; }
  .site-header .wrap { min-height: 68px; justify-content: space-between; }
  .site-header .brand img { height: 52px; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: 220px 140px; }
  .gallery button:first-child { grid-column: span 2; grid-row: span 1; }
  .gallery button:nth-child(n+4) { display: none; }
  .contact-card { position: static; }
  .detail-head .right { align-items: flex-start; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  .hero .wrap { padding-top: 40px; padding-bottom: 92px; }
  .hero .lead { display: none; }
  .hero .eyebrow { font-size: 12px; margin-bottom: 14px; }
  .search { margin-top: -64px; }
  .search-card { padding: 16px; gap: 12px; }
  .segmented { display: flex; width: 100%; }
  .segmented button { flex: 1; }
  .search-fields .optional { display: none; }
  .search-fields.expanded .optional { display: flex; }
  .section { padding-top: 56px; padding-bottom: 56px; }
  .grid { grid-template-columns: 1fr; gap: 20px; }
  .band-dark .wrap { padding-top: 56px; padding-bottom: 56px; gap: 32px; }
  .wa-float { width: 56px; height: 56px; right: 16px; bottom: 16px; }
}
@media (min-width: 601px) { .more-filters { display: none; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
