/* ═══════════════════════════════════════════════
   IMOBILIÁRIA — Design premium
   ─ Cormorant Garamond + DM Sans
   ─ Paleta: creme/dourado/escuro
═══════════════════════════════════════════════ */

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

:root {
  --cream:       #EFEFEF;
  --cream-dark:  #D3D3D3;
  --gold:        #878787;
  --gold-light:  #D5D5D5;
  --gold-pale:   #F3F3F3;
  --dark:        #1A1A1A;
  --dark-mid:    #2E2E2E;
  --text:        #3D3D3D;
  --muted:       #7A7670;
  --white:       #FFFFFF;
  --border:      rgba(184,184,184,.2);
  --shadow-sm:   0 4px 20px rgba(0,0,0,.06);
  --shadow-md:   0 12px 40px rgba(0,0,0,.1);
  --shadow-lg:   0 20px 60px rgba(0,0,0,.14);
  --radius:      6px;
  --radius-lg:   12px;
  --radius-xl:   18px;
  /* compatibilidade admin */
  --bg:          #1A1814;
  --bg-soft:     #2E2B26;
  --card:        #FDFCF9;
  --line:        #EDE6D6;
  --accent:      #B8944A;
  --accent-2:    #D4AF72;
  --shadow:      0 18px 50px rgba(15,23,42,.12);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', system-ui, sans-serif;
  background: var(--white);
  color: var(--text);
  font-size: 15px;
  line-height: 1.65;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

h1,h2,h3,h4 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400; line-height: 1.2; color: var(--dark);
}
h1 { font-size: clamp(2.4rem, 5vw, 4.5rem); }
h2 { font-size: clamp(1.8rem, 3vw, 2.8rem); }
h3 { font-size: 1.4rem; }

.eyebrow {
  display: block; font-size: 11px; font-weight: 500;
  letter-spacing: .15em; text-transform: uppercase;
  color: var(--gold); margin-bottom: .75rem;
}
.lede { font-size: 1rem; color: var(--muted); line-height: 1.8; }
.muted { color: var(--muted); }
.small { font-size: 13px; }

/* ─── HEADER ─── */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(253,252,249,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-header--dark {
  background: var(--dark) !important;
  border-bottom-color: rgba(255,255,255,.08) !important;
}
.site-header__inner {
  max-width: 1160px; margin: 0 auto; padding: 20px 32px;
  display: flex; align-items: center; gap: 24px;
}
.logo { display: flex; align-items: center; }
.logo-img { height: 44px; width: auto; display: block; }
/* fallback texto se logo não carregar */
.logo-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.35rem; font-weight: 600; color: var(--dark); letter-spacing: .04em;
}
.site-header--dark .logo-text { color: var(--white); }
.site-nav { display: flex; gap: 24px; margin-left: auto; align-items: center; }
.site-nav a { font-size: 13px; font-weight: 500; color: var(--muted); transition: color .25s; }
.site-nav a:hover { color: var(--gold); }
.site-header--dark .site-nav a { color: rgba(255,255,255,.65); }
.site-header--dark .site-nav a:hover { color: var(--gold-light); }
.site-nav__admin { font-size: 12px; opacity: .7; }
.site-nav__admin:hover { opacity: 1; }
.site-phone {
  font-weight: 500; font-size: 13px; padding: 10px 20px;
  background: var(--gold); color: var(--white) !important;
  border-radius: 100px; transition: background .25s, transform .2s; white-space: nowrap;
}
.site-phone:hover { background: var(--gold-light); color: var(--dark) !important; transform: translateY(-1px); }

/* ─── HERO ─── */
.hero {
  background: linear-gradient(160deg, #1A1A1A 0%, #2E2E2E 60%, #3A3A3A 100%);
  min-height: 92vh; display: flex; align-items: center;
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background-image: repeating-linear-gradient(45deg,var(--gold) 0,var(--gold) 1px,transparent 0,transparent 50%);
  background-size: 24px 24px; opacity: .03; pointer-events: none;
}
.hero__grid {
  max-width: 1160px; margin: 0 auto; padding: 80px 24px; width: 100%;
  display: grid; grid-template-columns: minmax(0,1.1fr) minmax(0,.9fr);
  gap: 56px; align-items: center; position: relative; z-index: 1;
}
.hero__copy .eyebrow { color: rgba(177, 177, 177, 90%); }
.hero__copy h1 { color: var(--white); font-weight: 300; font-style: italic; margin-bottom: 1.25rem; }
.hero__copy h1 em { font-style: normal; font-weight: 600; color: var(--gold-light); }
.hero__copy .lede { color: rgba(255,255,255,.6); max-width: 46ch; margin-bottom: 2rem; }
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; }

/* Hero visual — CORREÇÃO DO CARROSSEL */
.hero__visual {
  min-width: 0;    /* CRÍTICO: evita expansão além da coluna do grid */
  width: 100%;
  overflow: hidden; /* CRÍTICO: corta overflow do Swiper */
}

.hero-swiper {
  width: 100% !important;   /* força 100% da coluna */
  max-width: 100%;
  overflow: hidden !important; /* bloqueia o overflow padrão do Swiper */
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  background: var(--white);
  padding: 14px;
}

/* O wrapper interno do Swiper também precisa ser contido */
.hero-swiper .swiper-wrapper {
  width: 100%;
  display: flex;
}
.hero-swiper .swiper-slide {
  width: 100% !important;
  flex-shrink: 0;
  box-sizing: border-box;
  height: auto;
}

.hero__empty {
  background: var(--white); border-radius: var(--radius-xl);
  padding: 48px 24px; text-align: center; color: var(--muted);
  font-size: 14px; box-shadow: var(--shadow-lg);
}

/* Hero Card */
.hero-card {
  cursor: pointer;
  text-decoration: none;
  display: block;
}
.hero-card__media {
  border-radius: var(--radius-lg); overflow: hidden;
  height: 260px; background: var(--cream-dark);
  position: relative;
}
.hero-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.hero-card:hover .hero-card__media img { transform: scale(1.04); }
.hero-card__ph { width: 100%; height: 100%; }

/* badge venda/locação sobre a foto */
.hero-card__lt {
  position: absolute; bottom: 12px; left: 12px;
  font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 100px;
}
.hero-card__lt--sale { background: #1A4A2E; color: #fff; }
.hero-card__lt--rent { background: #1A2F4A; color: #fff; }
.hero-card__lt--both { background: #3A1A4A; color: #fff; }

.hero-card__body {
  padding: 18px 20px 20px;
}
.hero-card__meta {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 8px;
}
.hero-card__tipo {
  font-size: 10px; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--gold);
}
.hero-card__ref {
  font-size: 10px; font-weight: 500; letter-spacing: .08em;
  color: var(--muted); background: var(--cream);
  border: 1px solid var(--cream-dark);
  padding: 2px 8px; border-radius: 4px;
}
.hero-card h3 {
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem; font-weight: 600; line-height: 1.4;
  color: var(--dark); margin-bottom: 6px;
}
.hero-card__loc {
  display: flex; align-items: center; gap: 4px;
  font-size: 12px; color: var(--muted); margin-bottom: 16px;
}
.hero-card__loc svg { flex-shrink: 0; opacity: .5; }
.hero-card__footer {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 14px; border-top: 1px solid var(--cream-dark);
}
.hero-card__price { display: flex; flex-direction: column; }
.hero-card__price-label { font-size: 10px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.hero-card__price-val { font-family: 'DM Sans', sans-serif; font-size: 1.1rem; font-weight: 700; color: var(--dark); }

.swiper-pagination { margin-top: 14px; position: static !important; text-align: center; }
.swiper-pagination-bullet { background: var(--cream-dark) !important; opacity: 1 !important; }
.swiper-pagination-bullet-active { background: var(--gold) !important; }

/* ─── BOTÕES ─── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: none; cursor: pointer; font-family: 'DM Sans', sans-serif;
  font-weight: 500; font-size: 14px; letter-spacing: .04em;
  text-decoration: none; transition: all .2s;
  border-radius: 100px; padding: 11px 22px;
}
.btn--primary { background: var(--gold); color: var(--white); box-shadow: 0 8px 24px rgba(180,180,180,.3); }
.btn--primary:hover { background: var(--gold-light); color: var(--dark); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: rgba(255,255,255,.8); border: 1px solid rgba(255,255,255,.25); }
.btn--ghost:hover { border-color: var(--gold-light); color: var(--gold-light); }
.btn--sm { padding: 8px 14px; font-size: 13px; }
.btn--dark { background: var(--dark); color: var(--white); border-radius: var(--radius); }
.btn--dark:hover { background: var(--gold); }
.btn--danger { background: #fee2e2; color: #991b1b; border-radius: var(--radius); }

/* ─── LAYOUT ─── */
.section { padding: 72px 0; }
.section--muted { background: var(--cream); }
.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.section__head { display: flex; flex-direction: column; gap: 10px; margin-bottom: 2.5rem; }
.section__head-row {
  display: flex; align-items: flex-end; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem; margin-bottom: 2.5rem;
}
.section__head-row .link-more {
  font-size: 13px; color: var(--gold); font-weight: 500;
  border-bottom: 1px solid var(--gold); padding-bottom: 1px; transition: opacity .25s;
}
.section__head-row .link-more:hover { opacity: .65; }

/* ─── SOBRE ─── */
.sobre-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.sobre-img-wrap { position: relative; }
.sobre-img-wrap img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: var(--radius-xl); }
.sobre-badge {
  position: absolute; bottom: -1.25rem; right: -1.25rem;
  background: var(--gold); color: var(--white);
  padding: 1.25rem 1.5rem; border-radius: var(--radius-lg);
  text-align: center; min-width: 120px;
  box-shadow: 0 8px 30px rgba(184,148,74,.35);
}
.sobre-badge .num { font-family: 'Cormorant Garamond', serif; font-size: 2.4rem; font-weight: 600; line-height: 1; }
.sobre-badge .txt { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; opacity: .85; margin-top: .2rem; }
.sobre-text h2 { margin: .75rem 0 1.25rem; }
.sobre-text p { color: var(--muted); margin-bottom: 1rem; line-height: 1.8; }
.sobre-valores { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; margin-top: 1.75rem; }
.valor-item { background: white; padding: 1rem 1.1rem; border-radius: var(--radius); border-left: 3px solid var(--gold); }
.valor-item strong { display: block; font-size: 13px; font-weight: 500; color: var(--dark); margin-bottom: .15rem; }
.valor-item span { font-size: 12px; color: var(--muted); }

/* ─── FILTER TABS ─── */
.filter-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 2rem; }
.filter-tab {
  padding: .35rem 1rem; border: 1px solid var(--cream-dark); border-radius: 100px;
  font-size: 12px; font-weight: 500; letter-spacing: .05em;
  background: var(--white); cursor: pointer; color: var(--muted);
  transition: all .25s; font-family: 'DM Sans', sans-serif;
}
.filter-tab:hover, .filter-tab.active { background: var(--dark); color: var(--white); border-color: var(--dark); }

/* ─── PROPERTY GRID ─── */
.property-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; }

.property-card {
  border-radius: var(--radius-xl); background: var(--white);
  border: 1px solid var(--cream-dark); transition: all .3s;
  cursor: pointer; outline: none; overflow: hidden;
}
.property-card:hover { border-color: var(--gold); transform: translateY(-4px); box-shadow: var(--shadow-md); }
.property-card:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

.property-card__media { position: relative; height: 200px; overflow: hidden; background: var(--cream-dark); }
.property-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.property-card:hover .property-card__media img { transform: scale(1.05); }
.property-card__ph { width: 100%; height: 100%; }

.property-card__overlay {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(180deg,transparent 40%,rgba(26,24,20,.5)); opacity: 0; transition: opacity .25s;
}
.property-card:hover .property-card__overlay { opacity: 1; }

.pill { background: var(--white); color: var(--dark); font-weight: 700; font-size: 12px; padding: 7px 14px; border-radius: 100px; }

.property-card__body { padding: 16px; }
.property-card__tipo { font-size: 10px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: 4px; }
/* sans-serif nos cards para melhor legibilidade */
.property-card h3 { font-family: 'DM Sans', sans-serif; font-size: .975rem; font-weight: 600; line-height: 1.4; margin-bottom: 4px; color: var(--dark); }

.property-card__loc {
  font-size: 11px; color: var(--muted);
  display: flex; align-items: center; gap: 4px; margin-bottom: 12px;
}
.property-card__loc svg { flex-shrink: 0; opacity: .6; }

/* ─── SPECS (ícones dormitório / vaga / m²) ─── */
.property-card__specs {
  list-style: none;
  display: flex; align-items: center; gap: 0;
  padding: 10px 0;
  border-top: 1px solid var(--cream-dark);
  border-bottom: 1px solid var(--cream-dark);
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.spec-item {
  display: flex; align-items: center; gap: 5px;
  font-size: 12px; color: var(--text); font-family: 'DM Sans', sans-serif;
  padding: 0 14px 0 0;
  margin-right: 14px;
  border-right: 1px solid var(--cream-dark);
}
.spec-item:last-child { border-right: none; margin-right: 0; padding-right: 0; }
.spec-item svg { width: 15px; height: 15px; flex-shrink: 0; stroke: var(--gold); }
.spec-item span { font-weight: 500; }

/* ─── CARD FOOTER (preço + cta) ─── */
.property-card__footer {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.property-card__price { display: flex; flex-direction: column; }
.price-label { font-size: 10px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-family: 'DM Sans', sans-serif; }
/* preço em sans-serif para leitura de número mais clara */
.price-value { font-family: 'DM Sans', sans-serif; font-size: 1rem; font-weight: 700; color: var(--dark); line-height: 1.2; }
.property-card__cta {
  font-size: 11px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase;
  color: var(--gold); border-bottom: 1px solid var(--gold); padding-bottom: 1px;
  white-space: nowrap; transition: opacity .2s; font-family: 'DM Sans', sans-serif;
}
.property-card:hover .property-card__cta { opacity: .7; }

/* ─── FILTER BAR ─── */
.filter-bar {
  display: flex; align-items: center; gap: 10px;
  flex-wrap: wrap;
  background: var(--white);
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.filter-bar__search {
  display: flex; align-items: center; gap: 8px;
  flex: 1; min-width: 180px;
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius);
  padding: 0 12px;
  background: var(--cream);
  transition: border-color .25s;
}
.filter-bar__search:focus-within { border-color: var(--gold); }
.filter-bar__search svg { flex-shrink: 0; opacity: .45; }
.filter-bar__search input {
  border: none; background: transparent; outline: none;
  font: inherit; font-size: 13px; color: var(--dark);
  width: 100%; padding: 9px 0;
}
.filter-bar__search input::placeholder { color: var(--muted); }

.filter-bar select {
  border: 1px solid var(--cream-dark); border-radius: var(--radius);
  padding: 9px 32px 9px 12px; font: inherit; font-size: 13px;
  color: var(--dark); background: var(--cream);
  outline: none; cursor: pointer; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237A7670' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center;
  transition: border-color .25s; min-width: 140px;
}
.filter-bar select:focus { border-color: var(--gold); }

.filter-bar__clear {
  display: flex; align-items: center; gap: 6px;
  border: 1px solid var(--cream-dark); border-radius: var(--radius);
  padding: 9px 14px; background: var(--white);
  font: inherit; font-size: 12px; font-weight: 500;
  color: var(--muted); cursor: pointer; transition: all .25s;
  letter-spacing: .04em; white-space: nowrap;
}
.filter-bar__clear:hover { border-color: #e57373; color: #c62828; background: #fff8f8; }

/* status do filtro */
.filter-status { min-height: 24px; margin-bottom: .75rem; }
.filter-count {
  font-size: 13px; color: var(--muted);
  padding: 4px 12px; background: var(--gold-pale);
  border-radius: 100px; border: 1px solid var(--border);
  display: inline-block;
}
.filter-loading { display: inline-flex; gap: 5px; align-items: center; padding: 4px 0; }
.filter-loading span {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold); opacity: .3;
  animation: filterPulse .9s ease-in-out infinite;
}
.filter-loading span:nth-child(2) { animation-delay: .2s; }
.filter-loading span:nth-child(3) { animation-delay: .4s; }
@keyframes filterPulse { 0%,100%{opacity:.3;transform:scale(.8)} 50%{opacity:1;transform:scale(1)} }

/* grid loading state */
.property-grid.is-loading { opacity: .5; pointer-events: none; transition: opacity .2s; }

/* empty state */
.filter-empty {
  grid-column: 1 / -1;
  text-align: center; padding: 3rem 1rem;
  color: var(--muted); font-size: 14px;
}

.load-more-wrap { display: flex; justify-content: center; margin-top: 2rem; }
.is-hidden { display: none !important; }

/* ─── DIFERENCIAIS ─── */
.diferenciais-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.5rem; }
.diferencial {
  text-align: center; padding: 2rem 1.25rem;
  border: 1px solid rgba(255,255,255,.07); border-radius: var(--radius-xl); transition: border-color .3s;
}
.diferencial:hover { border-color: rgba(184,148,74,.3); }
.dif-icon {
  width: 52px; height: 52px; background: rgba(184,148,74,.1);
  border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 1.1rem;
}
.dif-icon svg { width: 22px; height: 22px; stroke: var(--gold-light); fill: none; stroke-width: 1.5; }
.diferencial h3 { font-size: 1.1rem; color: var(--white); margin-bottom: .6rem; }
.diferencial p { font-size: 13px; color: rgba(255,255,255,.4); line-height: 1.7; }

/* ─── FORM ─── */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.form { display: flex; flex-direction: column; gap: 14px; margin-top: 1rem; }
.form label { font-weight: 500; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; display: flex; flex-direction: column; gap: 6px; color: var(--text); }
.form input,.form textarea,.form select { border: 1px solid var(--cream-dark); border-radius: var(--radius); padding: 10px 14px; font: inherit; font-size: 14px; color: var(--dark); background: var(--cream); outline: none; transition: border-color .25s; }
.form input:focus,.form textarea:focus,.form select:focus { border-color: var(--gold); }
.map-shell { border-radius: var(--radius-lg); height: 320px; background: var(--cream-dark); margin-top: 12px; overflow: hidden; }
.map-shell--sm { height: 200px; }

/* ─── CTA BANNER ─── */
.cta-banner { background: var(--gold); padding: 5rem 0; text-align: center; }
.cta-banner h2 { color: var(--white); margin-bottom: .75rem; }
.cta-banner p { color: rgba(255,255,255,.8); font-size: 1rem; margin-bottom: 2.25rem; max-width: 42ch; margin-left: auto; margin-right: auto; }
.btn--cta-white { background: var(--white); color: var(--gold); padding: .85rem 2.5rem; font-weight: 700; border-radius: 100px; border: none; cursor: pointer; font-family: inherit; font-size: 14px; transition: all .25s; display: inline-block; }
.btn--cta-white:hover { background: var(--dark); color: var(--white); }

/* ─── FOOTER ─── */
.site-footer { background: var(--dark-mid); color: rgba(255,255,255,.45); padding: 3.5rem 0 1.5rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2.5rem; margin-bottom: 2.5rem; }
.footer-brand .logo-footer { font-family: 'Cormorant Garamond', serif; font-size: 1.35rem; color: var(--white); font-weight: 600; display: block; margin-bottom: .75rem; }
.footer-brand p { font-size: 13px; line-height: 1.8; max-width: 240px; margin-bottom: 1.25rem; }
.social-links { display: flex; gap: .6rem; }
.social-link { width: 34px; height: 34px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; color: rgba(255,255,255,.45); transition: all .25s; }
.social-link:hover { background: var(--gold); border-color: var(--gold); color: var(--white); }
.footer-col h4 { font-family: 'DM Sans', sans-serif; font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--white); margin-bottom: .85rem; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: .5rem; }
.footer-col li a { font-size: 13px; color: rgba(255,255,255,.4); transition: color .25s; }
.footer-col li a:hover { color: var(--gold-light); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.07); padding-top: 1.5rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .75rem; font-size: 12px; }
.footer-bottom nav { display: flex; gap: 1.5rem; }
.footer-bottom nav a { font-size: 12px; color: rgba(255,255,255,.3); transition: color .25s; }
.footer-bottom nav a:hover { color: var(--gold-light); }

/* ─── MODAL ─── */
.modal { position: fixed; inset: 0; display: none; z-index: 50; }
.modal.is-open { display: block; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(26,24,20,.6); backdrop-filter: blur(4px); }
.modal__dialog { position: relative; max-width: 1040px; margin: 36px auto; background: var(--white); border-radius: var(--radius-xl); padding: 24px; max-height: calc(100vh - 72px); overflow: auto; }
.modal__close { position: absolute; top: 14px; right: 16px; background: var(--cream); border: 1px solid var(--cream-dark); border-radius: var(--radius); width: 36px; height: 36px; font-size: 18px; cursor: pointer; color: var(--dark); display: flex; align-items: center; justify-content: center; transition: background .2s; }
.modal__close:hover { background: var(--gold); color: var(--white); border-color: var(--gold); }
.modal__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 8px; }
.modal-cover { border-radius: var(--radius-lg); overflow: hidden; background: var(--cream-dark); min-height: 260px; display: flex; }
.modal-cover img { width: 100%; object-fit: cover; }
.modal-thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.modal-thumbs button { border: none; padding: 0; border-radius: var(--radius); overflow: hidden; cursor: pointer; height: 60px; background: var(--cream-dark); transition: opacity .2s; }
.modal-thumbs button:hover { opacity: .8; }
.modal-thumbs img { height: 100%; width: auto; display: block; }
.modal-desc { white-space: pre-wrap; color: var(--muted); font-size: 14px; line-height: 1.8; }
.modal-loading { text-align: center; padding: 2rem; color: var(--muted); }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 14px 0; font-size: 14px; }
.facts dt { margin: 0; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.facts dd { margin: 0; font-weight: 700; color: var(--dark); }

.flash { background: var(--gold-pale); border: 1px solid var(--gold); padding: 10px 14px; border-radius: var(--radius); color: var(--dark); font-size: 14px; }
.flash--warn { border-color: #fed7aa; background: #fff7ed; color: #9a3412; }

/* ─── ADMIN ─── */
.admin-body { background: #f1f5f9; }
.admin-header { background: #fff; border-bottom: 1px solid var(--cream-dark); }
.admin-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 22px; padding: 12px 20px; }
.admin-brand { font-weight: 700; text-decoration: none; color: var(--dark); font-family: 'Cormorant Garamond', serif; font-size: 1.2rem; }
.admin-nav { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.admin-nav a { text-decoration: none; font-weight: 500; color: var(--dark); font-size: 14px; }
.admin-main { max-width: 1100px; margin: 0 auto; padding: 22px 20px; }
.admin-main--narrow { max-width: 520px; }
.admin-logout { display: inline; }
.admin-logout .link-button { background: none; border: none; color: #ef4444; cursor: pointer; font-weight: 500; text-decoration: underline; font-size: 14px; }
.dashboard-cards { display: flex; gap: 14px; margin-top: 16px; flex-wrap: wrap; }
.dash-card { flex: 1; min-width: 150px; background: white; border-radius: var(--radius-lg); padding: 16px; text-decoration: none; box-shadow: var(--shadow-sm); border: 1px solid var(--cream-dark); }
.table { width: 100%; border-collapse: collapse; margin-top: 12px; background: white; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.table td,.table th { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--cream-dark); font-size: 14px; }
.table th { font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); background: var(--cream); }
.toolbar { margin: 10px 0; }
.filters { display: flex; gap: 10px; align-items: flex-end; margin: 10px 0; flex-wrap: wrap; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }
.checkbox { flex-direction: row !important; align-items: center; gap: 8px; }
.sep { border: none; border-top: 1px solid var(--cream-dark); margin: 22px 0; }
.photo-admin-grid { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 12px; }
.photo-admin-card { width: 170px; background: white; border-radius: var(--radius-lg); padding: 10px; border: 1px solid var(--cream-dark); }
.photo-admin-card img { width: 100%; height: 110px; object-fit: cover; border-radius: var(--radius); }
.photo-admin-actions { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.login-card { padding: 28px; background: white; border-radius: var(--radius-xl); box-shadow: var(--shadow-md); }
.split-admin { display: grid; grid-template-columns: 1.35fr .9fr; gap: 26px; }

/* ─── RESPONSIVO ─── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .diferenciais-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; gap: 32px; padding: 56px 24px; }
  .hero { min-height: auto; }
  .sobre-grid { grid-template-columns: 1fr; gap: 3rem; }
  .sobre-badge { bottom: 1rem; right: 1rem; }
  .property-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .split { grid-template-columns: 1fr; }
  .split-admin { grid-template-columns: 1fr; }
  .modal__grid { grid-template-columns: 1fr; }
  .site-header__inner { flex-wrap: wrap; }
  .site-nav { flex-wrap: wrap; gap: 12px; }
}
@media (max-width: 600px) {
  .property-grid { grid-template-columns: 1fr; }
  .diferenciais-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .sobre-valores { grid-template-columns: 1fr; }
  .hero__cta { flex-direction: column; }
}

@keyframes fadeUp { from { opacity:0; transform:translateY(18px); } to { opacity:1; transform:translateY(0); } }
.fade-up { animation: fadeUp .65s ease forwards; opacity: 0; }
.delay-1 { animation-delay: .12s; }
.delay-2 { animation-delay: .24s; }
.delay-3 { animation-delay: .36s; }

.reveal { opacity: 0; transform: translateY(20px); transition: opacity .55s ease, transform .55s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ─── WHATSAPP FLUTUANTE ─── */
.whatsapp-fab {
  position: fixed;
  bottom: 28px; right: 28px;
  z-index: 90;
  display: flex; align-items: center; gap: 10px;
  background: #25D366;
  color: #fff;
  border-radius: 100px;
  padding: 14px 20px 14px 16px;
  box-shadow: 0 6px 24px rgba(37,211,102,.4);
  text-decoration: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px; font-weight: 600;
  transition: transform .25s, box-shadow .25s, padding .3s;
  overflow: hidden;
  max-width: 54px; /* colapsado = só ícone */
}
.whatsapp-fab svg {
  width: 26px; height: 26px;
  flex-shrink: 0;
}
.whatsapp-fab__label {
  white-space: nowrap;
  max-width: 0; opacity: 0;
  transition: max-width .35s ease, opacity .25s ease;
  overflow: hidden;
}
.whatsapp-fab:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 32px rgba(37,211,102,.5);
  max-width: 240px;
}
.whatsapp-fab:hover .whatsapp-fab__label {
  max-width: 160px; opacity: 1;
}

@media (max-width: 600px) {
  .whatsapp-fab { bottom: 20px; right: 16px; padding: 13px; border-radius: 50%; }
  .whatsapp-fab__label { display: none; }
}

/* ─── REFERÊNCIA NO CARD ─── */
.property-card__tipo {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px; margin-bottom: 4px;
}
.property-card__ref {
  font-size: 10px; font-weight: 500;
  color: var(--muted);
  background: var(--cream);
  border: 1px solid var(--cream-dark);
  border-radius: 4px;
  padding: 2px 7px;
  letter-spacing: .04em;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Campo ref no filtro — menor que o de busca */
.filter-bar__search--ref { flex: 0 0 auto; min-width: auto; }
.filter-bar__search--ref input { width: 130px; }

/* ─── LISTING TYPE TABS ─── */
.listing-tabs {
  display: flex; gap: 6px; margin-bottom: 1.25rem;
}
.listing-tab {
  padding: .45rem 1.25rem;
  border: 1px solid var(--cream-dark); border-radius: 100px;
  font-family: 'DM Sans', sans-serif; font-size: 13px; font-weight: 500;
  background: var(--white); cursor: pointer; color: var(--muted);
  transition: all .2s;
}
.listing-tab:hover { border-color: var(--gold); color: var(--gold); }
.listing-tab.active.sale-active,
.listing-tab.active[data-lt="sale"] { background: #1A4A2E; color: #fff; border-color: #1A4A2E; }
.listing-tab.active[data-lt="rent"] { background: #1A2F4A; color: #fff; border-color: #1A2F4A; }
.listing-tab.active[data-lt=""]     { background: var(--dark); color: #fff; border-color: var(--dark); }

/* ─── LISTING TYPE BADGE (no card) ─── */
.lt-badge {
  position: absolute; bottom: 10px; left: 10px;
  font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: 3px 10px; border-radius: 100px;
  pointer-events: none;
}
.lt-badge--sale { background: #1A4A2E; color: #fff; }
.lt-badge--rent { background: #1A2F4A; color: #fff; }
