/* =========================================================================
   MOCKUP • Imobiliária de Alto Padrão — Design System
   Direção: Luxo sofisticado (escuro) · dourado champanhe
   ========================================================================= */

/* ---------- Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Jost:wght@300;400;500;600&display=swap');

/* ---------- Tokens ---------- */
:root {
  /* Surfaces */
  --bg-900: #0b0b0d;
  --bg-800: #111114;
  --bg-700: #16161a;
  --bg-600: #1d1d22;
  --bg-card: #131317;
  --line: rgba(201, 168, 106, 0.16);
  --line-soft: rgba(255, 255, 255, 0.06);

  /* Gold / champagne accents */
  --gold: #c9a86a;
  --gold-bright: #e2c58c;
  --gold-deep: #a9884f;
  --gold-grad: linear-gradient(135deg, #e2c58c 0%, #c9a86a 45%, #a9884f 100%);

  /* Text */
  --ink: #f5f1ea;
  --ink-soft: #cfc9bd;
  --muted: #948e82;
  --muted-2: #6f6a61;

  /* Semantic */
  --sale: #c9a86a;
  --rent: #7fa88f;
  --danger: #d98a6a;

  /* Type */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Jost', system-ui, sans-serif;

  /* Radius & shadow */
  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 20px;
  --shadow-md: 0 18px 40px -20px rgba(0,0,0,0.7);
  --shadow-lg: 0 40px 80px -30px rgba(0,0,0,0.8);
  --shadow-gold: 0 20px 50px -20px rgba(201,168,106,0.35);

  /* Layout */
  --maxw: 1280px;
  --gut: clamp(20px, 5vw, 64px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--bg-900);
  color: var(--ink);
  line-height: 1.6;
  font-weight: 300;
  letter-spacing: 0.01em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }
input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }

/* Grain / atmosphere overlay */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none; z-index: 1;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

/* ---------- Utilities ---------- */
.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gut); }
.eyebrow {
  font-size: 0.72rem; letter-spacing: 0.35em; text-transform: uppercase;
  color: var(--gold); font-weight: 500; display: inline-flex; align-items: center; gap: 0.7em;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--gold); opacity: 0.7; }
.eyebrow.center::after { content: ""; width: 28px; height: 1px; background: var(--gold); opacity: 0.7; }

.section-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.section-title em { font-style: italic; color: var(--gold-bright); }
.lead { color: var(--ink-soft); font-size: 1.05rem; max-width: 56ch; font-weight: 300; }
.gold-text { color: var(--gold); }
.center { text-align: center; }
.section { padding-block: clamp(64px, 9vw, 128px); position: relative; z-index: 2; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  padding: 0.95em 1.9em; border-radius: 999px;
  font-size: 0.82rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 500;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), background .3s, color .3s, border-color .3s;
  will-change: transform;
}
.btn svg { width: 16px; height: 16px; }
.btn-gold { background: var(--gold-grad); color: #201a10; box-shadow: var(--shadow-gold); }
.btn-gold:hover { transform: translateY(-3px); box-shadow: 0 26px 60px -18px rgba(201,168,106,0.5); }
.btn-ghost { border: 1px solid var(--line); color: var(--ink); background: rgba(255,255,255,0.02); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-bright); transform: translateY(-3px); }
.btn-dark { background: var(--bg-600); color: var(--ink); border: 1px solid var(--line-soft); }
.btn-dark:hover { border-color: var(--gold); color: var(--gold-bright); }
.btn-block { width: 100%; }
.btn-lg { padding: 1.15em 2.4em; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .4s var(--ease), backdrop-filter .4s, border-color .4s, padding .4s;
  border-bottom: 1px solid transparent;
  padding-block: 18px;
}
.site-header.scrolled {
  background: rgba(11,11,13,0.82);
  backdrop-filter: blur(18px) saturate(1.2);
  border-color: var(--line-soft);
  padding-block: 10px;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

/* Logo */
.logo { display: flex; align-items: center; gap: 12px; }
.logo-mark {
  width: 42px; height: 42px; flex: none; border-radius: 10px;
  background: var(--gold-grad); color: #17130a;
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: 1.35rem;
  box-shadow: var(--shadow-gold);
}
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-text b {
  font-family: var(--font-display); font-weight: 600; font-size: 1.35rem; letter-spacing: 0.16em;
  color: var(--ink);
}
.logo-text span { font-size: 0.56rem; letter-spacing: 0.42em; text-transform: uppercase; color: var(--gold); margin-top: 4px; }

/* Nav */
.main-nav { display: flex; align-items: center; gap: 6px; }
.main-nav > a, .nav-item > a {
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  padding: 10px 14px; font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink-soft); font-weight: 400; border-radius: 999px; transition: color .3s, background .3s;
}
.main-nav > a:hover, .nav-item:hover > a { color: var(--gold-bright); }
.nav-item { position: relative; }
.nav-item > a::after { content: "▾"; font-size: 0.6rem; color: var(--gold); opacity: 0.7; }
.dropdown {
  position: absolute; top: 100%; left: 50%; transform: translate(-50%, 10px);
  background: var(--bg-800); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 10px; min-width: 220px; box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transition: all .3s var(--ease); z-index: 20;
}
.nav-item:hover .dropdown { opacity: 1; visibility: visible; transform: translate(-50%, 6px); }
.dropdown a {
  display: block; padding: 10px 14px; border-radius: var(--r-sm); font-size: 0.85rem;
  color: var(--ink-soft); transition: background .25s, color .25s; letter-spacing: 0.02em;
}
.dropdown a:hover { background: var(--bg-600); color: var(--gold-bright); }
.header-actions { display: flex; align-items: center; gap: 14px; }
.icon-btn { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-soft); color: var(--ink-soft); transition: all .3s; }
.icon-btn:hover { border-color: var(--gold); color: var(--gold-bright); }
.icon-btn svg { width: 18px; height: 18px; }
.header-phone { display: flex; flex-direction: column; text-align: right; line-height: 1.2; }
.header-phone span { font-size: 0.6rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.header-phone b { font-family: var(--font-display); font-size: 1.15rem; color: var(--ink); font-weight: 600; white-space: nowrap; }
.header-phone span { white-space: nowrap; }
@media (max-width: 1180px) { .header-phone { display: none; } }
.burger { display: none; flex-direction: column; gap: 5px; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-soft); align-items: center; justify-content: center; }
.burger span { width: 18px; height: 1.5px; background: var(--ink); transition: .3s; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,11,13,0.55) 0%, rgba(11,11,13,0.35) 35%, rgba(11,11,13,0.9) 100%),
              radial-gradient(120% 90% at 20% 20%, rgba(11,11,13,0.2), rgba(11,11,13,0.85));
}
.hero-inner { position: relative; z-index: 3; width: 100%; padding-top: 120px; padding-bottom: 60px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 18px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(11,11,13,0.4); backdrop-filter: blur(8px);
  font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-bright);
  margin-bottom: 28px;
}
.hero-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 10px var(--gold); }
.hero h1 {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(2.8rem, 7vw, 6rem); line-height: 0.98; letter-spacing: -0.02em;
  max-width: 16ch; color: #fff;
}
.hero h1 em { font-style: italic; color: var(--gold-bright); }
.hero p.lead { margin-top: 26px; font-size: clamp(1rem, 1.6vw, 1.2rem); color: rgba(245,241,234,0.85); }
.hero-cta { display: flex; gap: 16px; margin-top: 36px; flex-wrap: wrap; }

/* Hero search widget */
.search-widget {
  margin-top: 52px; background: rgba(17,17,20,0.72); backdrop-filter: blur(20px);
  border: 1px solid var(--line); border-radius: var(--r-lg); padding: 10px;
  box-shadow: var(--shadow-lg); max-width: 920px;
}
.search-tabs { display: flex; gap: 6px; padding: 6px 6px 12px; }
.search-tab {
  padding: 9px 20px; border-radius: 999px; font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); transition: all .3s; font-weight: 500;
}
.search-tab.active { background: var(--gold-grad); color: #201a10; }
.search-fields { display: grid; grid-template-columns: 1.4fr 1fr 1fr auto; gap: 1px; background: var(--line-soft); border-radius: var(--r-md); overflow: hidden; }
.search-field { background: var(--bg-800); padding: 14px 18px; display: flex; flex-direction: column; gap: 4px; }
.search-field label { font-size: 0.62rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); }
.search-field select, .search-field input {
  background: none; border: none; color: var(--ink); font-size: 0.95rem; outline: none; padding: 2px 0; width: 100%;
}
.search-field select option { background: var(--bg-800); }
.search-submit { background: var(--gold-grad); display: grid; place-items: center; padding-inline: 26px; color: #201a10; transition: filter .3s; }
.search-submit:hover { filter: brightness(1.08); }
.search-submit svg { width: 22px; height: 22px; }

/* ---------- Stats strip ---------- */
.stats-strip { border-block: 1px solid var(--line-soft); background: var(--bg-800); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 44px 20px; text-align: center; border-left: 1px solid var(--line-soft); }
.stat:first-child { border-left: none; }
.stat b { font-family: var(--font-display); font-size: clamp(2.2rem, 4vw, 3.2rem); font-weight: 600; color: var(--gold-bright); display: block; line-height: 1; }
.stat span { font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); margin-top: 10px; display: block; }

/* ---------- Section head ---------- */
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 52px; flex-wrap: wrap; }
.section-head .section-title { margin-top: 16px; }
.section-head.center { flex-direction: column; align-items: center; text-align: center; }

/* ---------- Category cards ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.cat-card {
  position: relative; border-radius: var(--r-lg); overflow: hidden; min-height: 300px;
  display: flex; align-items: flex-end; isolation: isolate; border: 1px solid var(--line-soft);
}
.cat-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .8s var(--ease); }
.cat-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 30%, rgba(11,11,13,0.9)); }
.cat-card:hover img { transform: scale(1.08); }
.cat-card .cat-body { padding: 26px; width: 100%; }
.cat-card h3 { font-family: var(--font-display); font-size: 1.7rem; font-weight: 600; color: #fff; }
.cat-card p { font-size: 0.82rem; color: var(--ink-soft); margin-top: 4px; }
.cat-card .cat-count { position: absolute; top: 20px; right: 20px; background: rgba(11,11,13,0.6); backdrop-filter: blur(8px); border: 1px solid var(--line); padding: 6px 14px; border-radius: 999px; font-size: 0.72rem; color: var(--gold-bright); letter-spacing: 0.1em; }
.cat-card .cat-arrow { margin-top: 14px; display: inline-flex; align-items: center; gap: 8px; font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); }

/* ---------- Property cards ---------- */
.prop-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.prop-card {
  background: var(--bg-card); border: 1px solid var(--line-soft); border-radius: var(--r-lg); overflow: hidden;
  transition: transform .5s var(--ease), border-color .5s, box-shadow .5s; position: relative; display: flex; flex-direction: column;
}
.prop-card:hover { transform: translateY(-8px); border-color: var(--line); box-shadow: var(--shadow-lg); }
.prop-media { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.prop-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.prop-card:hover .prop-media img { transform: scale(1.07); }
.prop-badges { position: absolute; top: 14px; left: 14px; display: flex; gap: 8px; z-index: 2; }
.badge {
  padding: 5px 12px; border-radius: 999px; font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 500;
  backdrop-filter: blur(6px);
}
.badge-sale { background: rgba(201,168,106,0.92); color: #201a10; }
.badge-rent { background: rgba(127,168,143,0.92); color: #0d160f; }
.badge-new { background: rgba(11,11,13,0.7); color: var(--gold-bright); border: 1px solid var(--line); }
.prop-fav { position: absolute; top: 12px; right: 12px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; background: rgba(11,11,13,0.55); backdrop-filter: blur(8px); border: 1px solid var(--line-soft); display: grid; place-items: center; color: #fff; transition: all .3s; }
.prop-fav:hover, .prop-fav.active { background: var(--gold); color: #201a10; border-color: var(--gold); }
.prop-fav svg { width: 18px; height: 18px; }
.prop-gallery-count { position: absolute; bottom: 12px; right: 12px; z-index: 2; background: rgba(11,11,13,0.6); backdrop-filter: blur(8px); padding: 5px 12px; border-radius: 999px; font-size: 0.72rem; color: #fff; display: flex; align-items: center; gap: 6px; }
.prop-gallery-count svg { width: 14px; height: 14px; }
.prop-body { padding: 22px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.prop-price { display: flex; align-items: baseline; gap: 8px; }
.prop-price b { font-family: var(--font-display); font-size: 1.7rem; font-weight: 600; color: var(--gold-bright); }
.prop-price small { font-size: 0.78rem; color: var(--muted); }
.prop-title { font-family: var(--font-display); font-size: 1.3rem; font-weight: 500; color: var(--ink); line-height: 1.2; }
.prop-loc { display: flex; align-items: center; gap: 7px; font-size: 0.82rem; color: var(--muted); }
.prop-loc svg { width: 15px; height: 15px; color: var(--gold); flex: none; }
.prop-specs { display: flex; gap: 18px; padding-top: 16px; border-top: 1px solid var(--line-soft); margin-top: auto; }
.prop-spec { display: flex; align-items: center; gap: 7px; font-size: 0.82rem; color: var(--ink-soft); }
.prop-spec svg { width: 17px; height: 17px; color: var(--gold); }
.prop-footer { display: flex; align-items: center; justify-content: space-between; padding: 16px 22px; border-top: 1px solid var(--line-soft); background: rgba(0,0,0,0.15); }
.prop-agent { display: flex; align-items: center; gap: 10px; }
.prop-agent img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; border: 1px solid var(--line); }
.prop-agent span { font-size: 0.78rem; color: var(--muted); }
.prop-cta { font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); display: inline-flex; align-items: center; gap: 6px; transition: gap .3s; }
.prop-card:hover .prop-cta { gap: 12px; }

/* ---------- Featured split (large) ---------- */
.featured-split { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 0; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--bg-card); }
.featured-split .fs-media { position: relative; min-height: 460px; }
.featured-split .fs-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.featured-split .fs-tag { position: absolute; top: 22px; left: 22px; background: var(--gold-grad); color: #201a10; padding: 7px 16px; border-radius: 999px; font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600; }
.featured-split .fs-body { padding: clamp(30px, 4vw, 56px); display: flex; flex-direction: column; justify-content: center; gap: 20px; }
.featured-split .fs-body h3 { font-family: var(--font-display); font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 500; }
.featured-split .fs-price { font-family: var(--font-display); font-size: 2.2rem; color: var(--gold-bright); font-weight: 600; }
.fs-specs { display: flex; gap: 28px; flex-wrap: wrap; padding-block: 8px; }
.fs-spec { text-align: center; }
.fs-spec b { display: block; font-family: var(--font-display); font-size: 1.5rem; color: var(--ink); }
.fs-spec span { font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }

/* ---------- Services / why us ---------- */
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feat-card { padding: 36px 30px; border: 1px solid var(--line-soft); border-radius: var(--r-lg); background: var(--bg-card); transition: border-color .4s, transform .4s; }
.feat-card:hover { border-color: var(--line); transform: translateY(-6px); }
.feat-icon { width: 58px; height: 58px; border-radius: 14px; background: rgba(201,168,106,0.1); border: 1px solid var(--line); display: grid; place-items: center; color: var(--gold-bright); margin-bottom: 22px; }
.feat-icon svg { width: 26px; height: 26px; }
.feat-card h3 { font-family: var(--font-display); font-size: 1.45rem; font-weight: 500; margin-bottom: 10px; }
.feat-card p { color: var(--muted); font-size: 0.92rem; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; border-radius: var(--r-lg); overflow: hidden; padding: clamp(48px, 7vw, 96px); text-align: center; }
.cta-band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.cta-band::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(11,11,13,0.82), rgba(11,11,13,0.92)); }
.cta-band h2 { font-family: var(--font-display); font-size: clamp(2rem, 5vw, 3.6rem); font-weight: 500; max-width: 20ch; margin-inline: auto; }
.cta-band h2 em { font-style: italic; color: var(--gold-bright); }
.cta-band p { color: var(--ink-soft); margin-top: 18px; max-width: 54ch; margin-inline: auto; }
.cta-band .hero-cta { justify-content: center; }

/* ---------- Testimonials ---------- */
.test-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.test-card { padding: 34px 30px; border: 1px solid var(--line-soft); border-radius: var(--r-lg); background: var(--bg-card); display: flex; flex-direction: column; gap: 18px; }
.test-stars { color: var(--gold); letter-spacing: 3px; }
.test-card blockquote { font-family: var(--font-display); font-size: 1.3rem; font-style: italic; color: var(--ink-soft); line-height: 1.4; }
.test-author { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.test-author img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; border: 1px solid var(--line); }
.test-author b { display: block; font-size: 0.95rem; }
.test-author span { font-size: 0.78rem; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-800); border-top: 1px solid var(--line-soft); position: relative; z-index: 2; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 40px; padding-block: 72px; }
.footer-about p { color: var(--muted); font-size: 0.92rem; margin-top: 22px; max-width: 38ch; }
.footer-social { display: flex; gap: 12px; margin-top: 26px; }
.footer-social a { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-soft); display: grid; place-items: center; color: var(--ink-soft); transition: all .3s; }
.footer-social a:hover { border-color: var(--gold); color: var(--gold-bright); transform: translateY(-3px); }
.footer-social svg { width: 18px; height: 18px; }
.footer-col h4 { font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); margin-bottom: 22px; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul a { color: var(--ink-soft); font-size: 0.9rem; transition: color .3s, padding .3s; }
.footer-col ul a:hover { color: var(--gold-bright); padding-left: 6px; }
.footer-contact li { display: flex; gap: 12px; margin-bottom: 16px; color: var(--ink-soft); font-size: 0.9rem; }
.footer-contact svg { width: 18px; height: 18px; color: var(--gold); flex: none; margin-top: 2px; }
.footer-bottom { border-top: 1px solid var(--line-soft); padding-block: 26px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer-bottom p { font-size: 0.8rem; color: var(--muted-2); }
.footer-bottom .creci { color: var(--gold); }
.footer-legal { display: flex; gap: 22px; }
.footer-legal a { font-size: 0.8rem; color: var(--muted); }
.footer-legal a:hover { color: var(--gold-bright); }

/* ---------- Reveal animation ---------- */
[data-reveal] { opacity: 0; transform: translateY(30px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
[data-reveal].in { opacity: 1; transform: none; }

/* ---------- Popup (lead) ---------- */
.overlay { position: fixed; inset: 0; z-index: 200; background: rgba(6,6,8,0.8); backdrop-filter: blur(6px); display: none; align-items: center; justify-content: center; padding: 24px; }
.overlay.open { display: flex; animation: fade .4s ease; }
@keyframes fade { from { opacity: 0; } }
.modal {
  position: relative; width: min(940px, 100%); background: var(--bg-800); border: 1px solid var(--line);
  border-radius: var(--r-lg); overflow: hidden; display: grid; grid-template-columns: 0.9fr 1.1fr;
  box-shadow: var(--shadow-lg); animation: pop .5s var(--ease);
}
@keyframes pop { from { transform: translateY(24px) scale(.97); opacity: 0; } }
.modal-media { position: relative; min-height: 420px; }
.modal-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.modal-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(160deg, rgba(11,11,13,0.15), rgba(11,11,13,0.7)); }
.modal-media .mm-quote { position: absolute; bottom: 30px; left: 30px; right: 30px; font-family: var(--font-display); font-style: italic; font-size: 1.4rem; color: #fff; }
.modal-body { padding: 44px; }
.modal-close { position: absolute; top: 18px; right: 18px; z-index: 5; width: 40px; height: 40px; border-radius: 50%; background: rgba(11,11,13,0.5); border: 1px solid var(--line-soft); display: grid; place-items: center; color: #fff; transition: all .3s; }
.modal-close:hover { background: var(--gold); color: #201a10; }
.modal-body h3 { font-family: var(--font-display); font-size: 2rem; font-weight: 500; }
.modal-body h3 em { font-style: italic; color: var(--gold-bright); }
.modal-body p.sub { color: var(--muted); margin-top: 8px; margin-bottom: 26px; font-size: 0.92rem; }

/* ---------- Forms ---------- */
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); margin-bottom: 8px; }
.field input, .field select, .field textarea {
  width: 100%; background: var(--bg-700); border: 1px solid var(--line-soft); border-radius: var(--r-sm);
  padding: 13px 15px; transition: border-color .3s, background .3s; outline: none;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--gold); background: var(--bg-600); }
.field textarea { resize: vertical; min-height: 90px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-note { font-size: 0.74rem; color: var(--muted-2); margin-top: 14px; text-align: center; }

/* ---------- Page hero (subpages) ---------- */
.page-hero { position: relative; padding-top: 160px; padding-bottom: 60px; overflow: hidden; }
.page-hero-bg { position: absolute; inset: 0; z-index: -1; }
.page-hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.page-hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,11,13,0.85), rgba(11,11,13,0.96)); }
.breadcrumb { display: flex; align-items: center; gap: 10px; font-size: 0.78rem; color: var(--muted); margin-bottom: 20px; }
.breadcrumb a:hover { color: var(--gold-bright); }
.breadcrumb .sep { color: var(--gold); }
.page-hero h1 { font-family: var(--font-display); font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 500; }
.page-hero h1 em { font-style: italic; color: var(--gold-bright); }

/* =========================================================================
   LISTING PAGE
   ========================================================================= */
.listing-layout { display: grid; grid-template-columns: 320px 1fr; gap: 34px; align-items: start; }
.filters {
  position: sticky; top: 90px; background: var(--bg-card); border: 1px solid var(--line-soft);
  border-radius: var(--r-lg); padding: 26px; max-height: calc(100vh - 110px); overflow-y: auto;
}
.filters h3 { font-family: var(--font-display); font-size: 1.4rem; font-weight: 500; margin-bottom: 6px; }
.filters .clear { font-size: 0.72rem; color: var(--gold); letter-spacing: 0.1em; text-transform: uppercase; }
.filter-group { padding-block: 22px; border-top: 1px solid var(--line-soft); }
.filter-group:first-of-type { border-top: none; }
.filter-group h4 { font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 16px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 8px 15px; border-radius: 999px; border: 1px solid var(--line-soft); font-size: 0.8rem;
  color: var(--ink-soft); transition: all .3s; background: var(--bg-700);
}
.chip:hover { border-color: var(--gold); color: var(--gold-bright); }
.chip.active { background: var(--gold-grad); color: #201a10; border-color: transparent; font-weight: 500; }
.range-vals { display: flex; justify-content: space-between; font-size: 0.82rem; color: var(--gold-bright); margin-bottom: 10px; font-family: var(--font-display); font-size: 1rem; }
input[type=range] { width: 100%; accent-color: var(--gold); }
.filter-check { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-size: 0.88rem; color: var(--ink-soft); cursor: pointer; }
.filter-check input { width: 16px; height: 16px; accent-color: var(--gold); }

.listing-main { min-width: 0; }
.listing-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 26px; flex-wrap: wrap; }
.listing-toolbar .count { font-size: 0.92rem; color: var(--muted); }
.listing-toolbar .count b { color: var(--ink); font-family: var(--font-display); font-size: 1.3rem; }
.toolbar-right { display: flex; align-items: center; gap: 14px; }
.sort-select { background: var(--bg-700); border: 1px solid var(--line-soft); border-radius: 999px; padding: 10px 16px; font-size: 0.82rem; outline: none; }
.view-toggle { display: flex; gap: 4px; background: var(--bg-700); border: 1px solid var(--line-soft); border-radius: 999px; padding: 4px; }
.view-toggle button { width: 36px; height: 32px; border-radius: 999px; display: grid; place-items: center; color: var(--muted); transition: all .3s; }
.view-toggle button.active { background: var(--gold-grad); color: #201a10; }
.view-toggle svg { width: 16px; height: 16px; }
.listing-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.active-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.filter-tag { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: rgba(201,168,106,0.12); border: 1px solid var(--line); font-size: 0.78rem; color: var(--gold-bright); }
.filter-tag button { color: var(--gold-bright); font-size: 1rem; line-height: 1; }

/* Pagination */
.pagination { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 56px; }
.pagination a { min-width: 44px; height: 44px; padding-inline: 8px; border-radius: 50%; border: 1px solid var(--line-soft); display: grid; place-items: center; font-size: 0.9rem; color: var(--ink-soft); transition: all .3s; }
.pagination a:hover, .pagination a.active { background: var(--gold-grad); color: #201a10; border-color: transparent; }

/* Map placeholder */
.map-strip { border: 1px solid var(--line-soft); border-radius: var(--r-lg); overflow: hidden; position: relative; height: 220px; margin-bottom: 26px; }
.map-strip img { width: 100%; height: 100%; object-fit: cover; opacity: 0.6; }
.map-strip .map-cta { position: absolute; inset: 0; display: grid; place-items: center; }

/* =========================================================================
   PROPERTY DETAIL PAGE
   ========================================================================= */
.detail-top { padding-top: 110px; }
.detail-headbar { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 26px; flex-wrap: wrap; }
.detail-headbar .dh-left h1 { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3rem); font-weight: 500; line-height: 1.05; }
.detail-headbar .dh-loc { display: flex; align-items: center; gap: 8px; color: var(--muted); margin-top: 10px; font-size: 0.95rem; }
.detail-headbar .dh-loc svg { width: 17px; height: 17px; color: var(--gold); }
.detail-headbar .dh-right { text-align: right; }
.detail-headbar .dh-price { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 2.8rem); color: var(--gold-bright); font-weight: 600; line-height: 1; }
.detail-headbar .dh-price small { display: block; font-size: 0.82rem; color: var(--muted); font-family: var(--font-body); margin-top: 6px; letter-spacing: 0.05em; }
.detail-actions { display: flex; gap: 10px; margin-top: 14px; justify-content: flex-end; }
.detail-actions .icon-btn { width: 40px; height: 40px; }

/* Gallery */
.gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 10px; border-radius: var(--r-lg); overflow: hidden; height: 540px; margin-bottom: 20px; }
.gallery .g-item { position: relative; overflow: hidden; cursor: pointer; }
.gallery .g-item:first-child { grid-row: span 2; }
.gallery .g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.gallery .g-item:hover img { transform: scale(1.06); }
.gallery .g-more { position: absolute; inset: 0; background: rgba(11,11,13,0.7); display: grid; place-items: center; color: #fff; font-size: 0.9rem; letter-spacing: 0.1em; text-transform: uppercase; }
.gallery .g-more b { font-family: var(--font-display); font-size: 2rem; display: block; }

.detail-layout { display: grid; grid-template-columns: 1fr 380px; gap: 40px; align-items: start; }
.detail-content { min-width: 0; }
.quick-specs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 40px; }
.qspec { padding: 22px 18px; border: 1px solid var(--line-soft); border-radius: var(--r-md); background: var(--bg-card); text-align: center; }
.qspec svg { width: 24px; height: 24px; color: var(--gold); margin-bottom: 10px; }
.qspec b { display: block; font-family: var(--font-display); font-size: 1.5rem; color: var(--ink); }
.qspec span { font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }

.detail-block { padding-block: 34px; border-top: 1px solid var(--line-soft); }
.detail-block h2 { font-family: var(--font-display); font-size: 1.9rem; font-weight: 500; margin-bottom: 20px; }
.detail-block p { color: var(--ink-soft); margin-bottom: 16px; font-size: 1rem; line-height: 1.75; }
.amenities { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.amenity { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--line-soft); border-radius: var(--r-md); font-size: 0.9rem; color: var(--ink-soft); background: var(--bg-card); }
.amenity svg { width: 20px; height: 20px; color: var(--gold); flex: none; }
.feature-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 40px; }
.feature-list li { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--line-soft); font-size: 0.92rem; }
.feature-list li span:first-child { color: var(--muted); }
.feature-list li span:last-child { color: var(--ink); }

/* Financing calculator */
.calc { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 30px; }
.calc-result { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 24px; }
.calc-out { padding: 20px; border-radius: var(--r-md); background: var(--bg-700); border: 1px solid var(--line-soft); text-align: center; }
.calc-out span { font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); display: block; margin-bottom: 8px; }
.calc-out b { font-family: var(--font-display); font-size: 1.8rem; color: var(--gold-bright); }
.calc-slider-label { display: flex; justify-content: space-between; font-size: 0.85rem; margin-bottom: 8px; }
.calc-slider-label b { color: var(--gold-bright); font-family: var(--font-display); font-size: 1.05rem; }

/* Sticky contact card */
.detail-side { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 20px; }
.contact-card { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; box-shadow: var(--shadow-md); }
.agent-head { display: flex; align-items: center; gap: 14px; padding-bottom: 20px; border-bottom: 1px solid var(--line-soft); margin-bottom: 20px; }
.agent-head img { width: 62px; height: 62px; border-radius: 50%; object-fit: cover; border: 2px solid var(--gold); }
.agent-head b { font-family: var(--font-display); font-size: 1.25rem; }
.agent-head span { font-size: 0.8rem; color: var(--muted); display: block; }
.agent-head .creci-tag { font-size: 0.7rem; color: var(--gold); letter-spacing: 0.08em; }
.contact-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.btn-whatsapp { background: #1e2f26; color: #7fe0a8; border: 1px solid rgba(127,224,168,0.3); }
.btn-whatsapp:hover { background: #234135; color: #9ff0be; }
.trust-badges { display: flex; flex-direction: column; gap: 12px; padding: 20px 22px; border: 1px solid var(--line-soft); border-radius: var(--r-lg); background: var(--bg-card); }
.trust-badges .tb { display: flex; align-items: center; gap: 12px; font-size: 0.85rem; color: var(--ink-soft); }
.trust-badges svg { width: 20px; height: 20px; color: var(--gold); flex: none; }

/* Sticky mobile bar */
.mobile-bar { position: fixed; bottom: 0; left: 0; right: 0; z-index: 90; background: rgba(11,11,13,0.92); backdrop-filter: blur(18px); border-top: 1px solid var(--line); padding: 12px 16px; display: none; align-items: center; gap: 12px; }
.mobile-bar .mb-price { flex: 1; }
.mobile-bar .mb-price b { font-family: var(--font-display); font-size: 1.3rem; color: var(--gold-bright); display: block; line-height: 1; }
.mobile-bar .mb-price span { font-size: 0.72rem; color: var(--muted); }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(6,6,8,0.96); display: none; align-items: center; justify-content: center; flex-direction: column; }
.lightbox.open { display: flex; animation: fade .3s; }
.lightbox img { max-width: 88vw; max-height: 80vh; border-radius: var(--r-md); box-shadow: var(--shadow-lg); }
.lightbox-close { position: absolute; top: 24px; right: 30px; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); color: #fff; display: grid; place-items: center; }
.lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 56px; height: 56px; border-radius: 50%; background: rgba(255,255,255,0.06); border: 1px solid var(--line); color: #fff; display: grid; place-items: center; }
.lightbox-nav.prev { left: 30px; } .lightbox-nav.next { right: 30px; }
.lightbox-counter { margin-top: 20px; color: var(--muted); letter-spacing: 0.2em; font-size: 0.85rem; }

/* Toast */
.toast { position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%) translateY(30px); background: var(--bg-700); border: 1px solid var(--gold); color: var(--ink); padding: 14px 24px; border-radius: 999px; z-index: 400; opacity: 0; transition: all .4s var(--ease); font-size: 0.9rem; display: flex; align-items: center; gap: 10px; box-shadow: var(--shadow-lg); }
.toast svg { width: 18px; height: 18px; color: var(--gold); }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Similar strip reuse prop-grid */

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (max-width: 1080px) {
  .prop-grid, .test-grid, .feat-grid, .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 34px; }
  .detail-layout { grid-template-columns: 1fr; }
  .detail-side { position: static; }
  .featured-split { grid-template-columns: 1fr; }
  .featured-split .fs-media { min-height: 300px; }
}
@media (max-width: 900px) {
  .header-phone, .main-nav { display: none; }
  .burger { display: flex; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: none; }
  .listing-layout { grid-template-columns: 1fr; }
  .filters { position: static; max-height: none; }
  .modal { grid-template-columns: 1fr; }
  .modal-media { min-height: 200px; }
  .gallery { grid-template-columns: 1fr 1fr; grid-template-rows: 200px 200px; height: auto; }
  .gallery .g-item:first-child { grid-column: span 2; grid-row: auto; height: 260px; }
  .mobile-bar { display: flex; }
  .quick-specs { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .prop-grid, .test-grid, .feat-grid, .cat-grid, .listing-grid { grid-template-columns: 1fr; }
  .search-fields { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .amenities, .feature-list { grid-template-columns: 1fr; }
  .calc-result { grid-template-columns: 1fr; }
  .detail-headbar { flex-direction: column; }
  .detail-headbar .dh-right { text-align: left; }
  .detail-actions { justify-content: flex-start; }
  .hero h1 { font-size: 3rem; }
}

/* Mobile nav drawer */
.mobile-drawer { position: fixed; inset: 0; z-index: 150; background: var(--bg-900); transform: translateX(100%); transition: transform .5s var(--ease); display: flex; flex-direction: column; padding: 30px var(--gut); }
.mobile-drawer.open { transform: none; }
.mobile-drawer .md-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 40px; }
.mobile-drawer nav a { display: block; font-family: var(--font-display); font-size: 1.8rem; padding: 14px 0; border-bottom: 1px solid var(--line-soft); color: var(--ink); }
.mobile-drawer nav a:hover { color: var(--gold-bright); }
.mobile-drawer .md-foot { margin-top: auto; }
