/* ============================================
   Atlantic Meridian Imóveis — styles.css
   Variáveis, base, componentes e layout geral
   ============================================ */

:root {
  /* Paleta */
  --azul-marinho: #0B1F33;
  --azul-profundo: #123A5A;
  --dourado: #C9A96E;
  --dourado-claro: #E0C384;
  --fundo-claro: #F6F7F8;
  --branco: #FFFFFF;
  --texto: #17212B;
  --texto-secundario: #66717E;
  --sucesso: #197A55;
  --erro: #B42318;

  /* Neutros */
  --borda: #E5E8EC;
  --borda-escura: #D4D9DF;
  --cinza-hover: #EEF1F4;

  /* Tipografia */
  --fonte-titulo: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --fonte-base: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Tamanhos */
  --container: 1240px;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 18px;

  /* Sombras */
  --sombra-1: 0 1px 2px rgba(11, 31, 51, 0.05), 0 2px 6px rgba(11, 31, 51, 0.04);
  --sombra-2: 0 4px 12px rgba(11, 31, 51, 0.08), 0 2px 4px rgba(11, 31, 51, 0.04);
  --sombra-3: 0 12px 32px rgba(11, 31, 51, 0.12);

  /* Transições */
  --t-fast: 120ms ease;
  --t-base: 200ms ease;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--fonte-base);
  font-size: 16px;
  line-height: 1.55;
  color: var(--texto);
  background: var(--fundo-claro);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4 {
  font-family: var(--fonte-titulo);
  color: var(--azul-marinho);
  margin: 0 0 0.5em;
  line-height: 1.2;
  font-weight: 600;
}
h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.6rem, 2.8vw, 2.25rem); }
h3 { font-size: clamp(1.2rem, 1.8vw, 1.4rem); }
p { margin: 0 0 1em; }
a { color: var(--azul-profundo); text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--dourado); }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
ul { padding: 0; margin: 0; list-style: none; }

/* Acessibilidade */
.skip-link {
  position: absolute;
  top: -100px;
  left: 8px;
  background: var(--azul-marinho);
  color: var(--branco);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  z-index: 1000;
  font-weight: 600;
}
.skip-link:focus { top: 8px; color: var(--branco); }
:focus-visible {
  outline: 3px solid var(--dourado);
  outline-offset: 2px;
  border-radius: 4px;
}
.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;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* Botões */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.2px;
  text-decoration: none;
  transition: all var(--t-base);
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary {
  background: var(--azul-marinho);
  color: var(--branco);
  border-color: var(--azul-marinho);
}
.btn-primary:hover { background: var(--azul-profundo); color: var(--branco); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }
.btn-primary:disabled { background: var(--borda-escura); border-color: var(--borda-escura); cursor: not-allowed; }

.btn-secondary {
  background: var(--branco);
  color: var(--azul-marinho);
  border-color: var(--borda);
}
.btn-secondary:hover { border-color: var(--dourado); color: var(--azul-marinho); background: var(--cinza-hover); }

.btn-gold {
  background: var(--dourado);
  color: var(--azul-marinho);
  border-color: var(--dourado);
}
.btn-gold:hover { background: var(--dourado-claro); color: var(--azul-marinho); }

.btn-ghost {
  background: transparent;
  color: var(--azul-marinho);
  border-color: transparent;
}
.btn-ghost:hover { background: var(--cinza-hover); }

.btn-block { width: 100%; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid transparent;
  transition: box-shadow var(--t-base), border-color var(--t-base);
}
.site-header.scrolled {
  box-shadow: var(--sombra-1);
  border-bottom-color: var(--borda);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
}
.logo-link { display: inline-flex; align-items: center; flex-shrink: 0; }
.logo-link svg { height: 44px; width: auto; }

.nav-list {
  display: flex;
  gap: 28px;
  align-items: center;
}
.nav-list a {
  font-weight: 500;
  color: var(--texto);
  font-size: 0.95rem;
  padding: 8px 0;
  position: relative;
}
.nav-list a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--dourado);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-base);
}
.nav-list a:hover::after,
.nav-list a[aria-current="page"]::after { transform: scaleX(1); }
.nav-list a[aria-current="page"] { color: var(--azul-marinho); }

.header-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}
.icon-btn {
  position: relative;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--borda);
  border-radius: 50%;
  color: var(--azul-marinho);
  transition: all var(--t-base);
}
.icon-btn:hover { background: var(--cinza-hover); border-color: var(--dourado); color: var(--dourado); }
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn .badge {
  position: absolute;
  top: -4px; right: -4px;
  background: var(--dourado);
  color: var(--azul-marinho);
  font-size: 0.7rem;
  font-weight: 700;
  min-width: 20px;
  height: 20px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--borda);
  border-radius: var(--radius-sm);
  align-items: center;
  justify-content: center;
  color: var(--azul-marinho);
}
.menu-toggle svg { width: 22px; height: 22px; }

/* Hero */
.hero {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #0B1F33 0%, #123A5A 100%);
  color: var(--branco);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image: url('https://images.unsplash.com/photo-1564013799919-ab600027ffc6?auto=format&fit=crop&w=1920&q=80');
  background-size: cover;
  background-position: center;
  opacity: 0.45;
}
.hero::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,31,51,0.55) 0%, rgba(11,31,51,0.85) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  padding: 80px 0;
}
.hero h1 {
  color: var(--branco);
  font-size: clamp(2rem, 5vw, 3.4rem);
  margin-bottom: 16px;
  font-weight: 600;
}
.hero p.lead {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 32px;
  max-width: 580px;
}

/* Abas e busca hero */
.search-card {
  background: var(--branco);
  color: var(--texto);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--sombra-3);
  max-width: 880px;
}
.tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--borda);
  margin-bottom: 16px;
}
.tab {
  background: transparent;
  border: 0;
  padding: 12px 20px;
  font-weight: 600;
  color: var(--texto-secundario);
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: all var(--t-fast);
}
.tab[aria-selected="true"] {
  color: var(--azul-marinho);
  border-bottom-color: var(--dourado);
}
.tab:hover { color: var(--azul-marinho); }

.search-form {
  display: grid;
  grid-template-columns: 2fr 1.2fr 1.2fr auto;
  gap: 12px;
}
.field {
  display: flex;
  flex-direction: column;
}
.field label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--texto-secundario);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.field input,
.field select,
.field textarea {
  height: 44px;
  padding: 10px 14px;
  border: 1px solid var(--borda);
  border-radius: var(--radius-sm);
  background: var(--branco);
  color: var(--texto);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--dourado);
  box-shadow: 0 0 0 3px rgba(201, 169, 110, 0.18);
}
.field .error-msg {
  color: var(--erro);
  font-size: 0.8rem;
  margin-top: 4px;
  min-height: 1em;
}
.field input[aria-invalid="true"],
.field select[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: var(--erro);
}

/* Seções */
.section {
  padding: 72px 0;
}
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.section-head h2 { margin-bottom: 8px; }
.section-head p { color: var(--texto-secundario); margin: 0; max-width: 560px; }
.section-head a { font-weight: 600; color: var(--azul-profundo); }
.section-head a:hover { color: var(--dourado); }

/* Grid de cards */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

/* Card de imóvel */
.imovel-card {
  background: var(--branco);
  border-radius: var(--radius);
  border: 1px solid var(--borda);
  overflow: hidden;
  transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
  position: relative;
  display: flex;
  flex-direction: column;
}
.imovel-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sombra-2);
  border-color: var(--dourado);
}
.card-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, #E5E8EC 0%, #D4D9DF 100%);
}
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}
.imovel-card:hover .card-media img { transform: scale(1.05); }
.card-badges {
  position: absolute;
  top: 12px; left: 12px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.badge {
  background: rgba(255, 255, 255, 0.95);
  color: var(--azul-marinho);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 100px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}
.badge-destaque { background: var(--dourado); color: var(--azul-marinho); }
.badge-lancamento { background: var(--azul-marinho); color: var(--branco); }
.badge-venda { background: #197A55; color: var(--branco); }
.badge-aluguel { background: var(--azul-profundo); color: var(--branco); }

.fav-btn {
  position: absolute;
  top: 12px; right: 12px;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.95);
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--texto-secundario);
  transition: all var(--t-fast);
  box-shadow: var(--sombra-1);
}
.fav-btn:hover { color: var(--erro); transform: scale(1.06); }
.fav-btn[aria-pressed="true"] { color: var(--erro); }
.fav-btn[aria-pressed="true"] svg { fill: currentColor; }
.fav-btn svg { width: 20px; height: 20px; }

.card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.card-tipo {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--dourado);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}
.card-titulo {
  font-family: var(--fonte-titulo);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--azul-marinho);
  margin: 0 0 6px;
  line-height: 1.3;
}
.card-local {
  font-size: 0.88rem;
  color: var(--texto-secundario);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.card-local svg { width: 14px; height: 14px; flex-shrink: 0; }

.card-preco {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--azul-marinho);
  margin-bottom: 4px;
  font-family: var(--fonte-titulo);
}
.card-custos {
  font-size: 0.82rem;
  color: var(--texto-secundario);
  margin-bottom: 16px;
}

.card-specs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  padding: 14px 0;
  border-top: 1px solid var(--borda);
  border-bottom: 1px solid var(--borda);
  margin-bottom: 16px;
}
.spec {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
  font-size: 0.78rem;
  color: var(--texto-secundario);
}
.spec svg { width: 18px; height: 18px; color: var(--azul-marinho); }
.spec strong { color: var(--texto); font-size: 0.85rem; font-weight: 600; }

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}
.card-codigo {
  font-size: 0.75rem;
  color: var(--texto-secundario);
  font-family: 'Courier New', monospace;
}
.card-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--azul-profundo);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.card-link:hover { color: var(--dourado); gap: 8px; }
.card-link svg { width: 14px; height: 14px; }

/* Card linkable: card inteiro clicável */
.imovel-card .card-link-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.imovel-card .fav-btn,
.imovel-card .card-link { position: relative; z-index: 2; }

/* Categorias */
.categorias-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.categoria {
  background: var(--branco);
  border: 1px solid var(--borda);
  border-radius: var(--radius);
  padding: 24px 16px;
  text-align: center;
  color: var(--texto);
  transition: all var(--t-base);
}
.categoria:hover {
  border-color: var(--dourado);
  transform: translateY(-3px);
  box-shadow: var(--sombra-2);
  color: var(--azul-marinho);
}
.categoria svg {
  width: 36px;
  height: 36px;
  color: var(--dourado);
  margin-bottom: 12px;
}
.categoria strong { display: block; font-size: 1rem; color: var(--azul-marinho); }
.categoria span { font-size: 0.82rem; color: var(--texto-secundario); }

/* Regiões */
.regioes-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.regiao {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  color: var(--branco);
  display: flex;
  align-items: end;
  padding: 16px;
  font-weight: 600;
  transition: transform var(--t-base);
}
.regiao::before {
  content: '';
  position: absolute; inset: 0;
  background-image: var(--bg);
  background-size: cover;
  background-position: center;
  transition: transform 500ms ease;
}
.regiao::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(11,31,51,0.85) 100%);
}
.regiao:hover { transform: translateY(-3px); color: var(--branco); }
.regiao:hover::before { transform: scale(1.06); }
.regiao span { position: relative; z-index: 2; }

/* Confiança */
.confianca {
  background: var(--branco);
  border-radius: var(--radius-lg);
  padding: 48px 32px;
  border: 1px solid var(--borda);
}
.confianca-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  text-align: center;
}
.conf-item svg { width: 40px; height: 40px; color: var(--dourado); margin-bottom: 12px; }
.conf-item h3 { font-family: var(--fonte-base); font-size: 1.05rem; color: var(--azul-marinho); margin-bottom: 6px; }
.conf-item strong { display: block; font-size: 2rem; font-family: var(--fonte-titulo); color: var(--azul-marinho); margin-bottom: 4px; }
.conf-item p { color: var(--texto-secundario); font-size: 0.9rem; margin: 0; }
.mock-tag {
  display: inline-block;
  font-size: 0.7rem;
  color: var(--texto-secundario);
  background: var(--cinza-hover);
  padding: 2px 8px;
  border-radius: 100px;
  margin-top: 8px;
}

/* CTA proprietários */
.cta-proprietarios {
  background: linear-gradient(135deg, var(--azul-marinho) 0%, var(--azul-profundo) 100%);
  color: var(--branco);
  border-radius: var(--radius-lg);
  padding: 56px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.cta-proprietarios::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,169,110,0.25) 0%, transparent 70%);
}
.cta-proprietarios h2 { color: var(--branco); position: relative; }
.cta-proprietarios p { color: rgba(255,255,255,0.85); position: relative; margin-bottom: 0; }
.cta-proprietarios .btn-gold { position: relative; justify-self: end; }

/* Depoimentos */
.depoimentos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.depoimento {
  background: var(--branco);
  border: 1px solid var(--borda);
  border-radius: var(--radius);
  padding: 28px;
  position: relative;
}
.depoimento::before {
  content: '"';
  position: absolute;
  top: 8px; left: 20px;
  font-family: var(--fonte-titulo);
  font-size: 4rem;
  color: var(--dourado);
  line-height: 1;
  opacity: 0.3;
}
.depoimento p {
  font-style: italic;
  color: var(--texto);
  margin: 12px 0 20px;
  position: relative;
}
.depoimento .autor {
  display: flex;
  align-items: center;
  gap: 12px;
}
.avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--azul-profundo), var(--dourado));
  color: var(--branco);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
}
.autor strong { display: block; color: var(--azul-marinho); font-size: 0.95rem; }
.autor span { font-size: 0.82rem; color: var(--texto-secundario); }

/* Newsletter */
.newsletter {
  background: var(--branco);
  border: 1px solid var(--borda);
  border-radius: var(--radius-lg);
  padding: 40px;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}
.newsletter h2 { margin-bottom: 8px; }
.newsletter p { color: var(--texto-secundario); margin-bottom: 24px; }
.newsletter-form {
  display: flex;
  gap: 8px;
  max-width: 480px;
  margin: 0 auto;
}
.newsletter-form input {
  flex: 1;
  height: 48px;
  padding: 10px 16px;
  border: 1px solid var(--borda);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 1rem;
}

/* Footer */
.site-footer {
  background: var(--azul-marinho);
  color: rgba(255,255,255,0.8);
  padding: 64px 0 24px;
  margin-top: 80px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand p { font-size: 0.92rem; margin: 16px 0; max-width: 320px; }
.footer-brand .logo-link svg path,
.footer-brand .logo-link svg text { fill: var(--branco); }
.footer-brand .logo-link svg text { fill: var(--dourado); }

.footer-col h4 {
  color: var(--branco);
  font-family: var(--fonte-base);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 18px;
}
.footer-col ul li {
  margin-bottom: 10px;
  font-size: 0.92rem;
}
.footer-col a { color: rgba(255,255,255,0.7); }
.footer-col a:hover { color: var(--dourado); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
}
.social-links { display: flex; gap: 8px; }
.social-links a {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.8);
  transition: all var(--t-base);
}
.social-links a:hover { background: var(--dourado); color: var(--azul-marinho); }
.social-links svg { width: 18px; height: 18px; }

/* Botão voltar ao topo */
.to-top {
  position: fixed;
  bottom: 24px; right: 24px;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--azul-marinho);
  color: var(--branco);
  border: 0;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: var(--sombra-2);
  z-index: 90;
  transition: all var(--t-base);
}
.to-top:hover { background: var(--dourado); color: var(--azul-marinho); transform: translateY(-3px); }
.to-top.visible { display: inline-flex; }
.to-top svg { width: 20px; height: 20px; }

/* Toast / Notificações */
.toast-region {
  position: fixed;
  bottom: 24px; left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}
.toast {
  background: var(--azul-marinho);
  color: var(--branco);
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  box-shadow: var(--sombra-3);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  pointer-events: auto;
  animation: toastIn 240ms ease;
  max-width: 360px;
}
.toast.toast-success { background: var(--sucesso); }
.toast.toast-error { background: var(--erro); }
.toast svg { width: 18px; height: 18px; flex-shrink: 0; }
@keyframes toastIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Modal genérico */
.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(11,31,51,0.6);
  backdrop-filter: blur(4px);
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal-backdrop.open { display: flex; animation: fadeIn 200ms ease; }
.modal {
  background: var(--branco);
  border-radius: var(--radius-lg);
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 32px;
  position: relative;
  animation: modalIn 240ms ease;
}
.modal h3 { margin-bottom: 16px; }
.modal-close {
  position: absolute;
  top: 12px; right: 12px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: transparent;
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--texto-secundario);
}
.modal-close:hover { background: var(--cinza-hover); color: var(--texto); }
.modal-close svg { width: 18px; height: 18px; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* Página: hero compacto */
.page-hero {
  background: linear-gradient(135deg, var(--azul-marinho) 0%, var(--azul-profundo) 100%);
  color: var(--branco);
  padding: 56px 0;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 20% 30%, rgba(201,169,110,0.15) 0%, transparent 50%);
}
.page-hero h1 { color: var(--branco); margin-bottom: 8px; position: relative; }
.page-hero p { color: rgba(255,255,255,0.85); margin: 0; max-width: 640px; position: relative; }
.breadcrumb {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 16px;
  position: relative;
}
.breadcrumb a { color: rgba(255,255,255,0.85); }
.breadcrumb a:hover { color: var(--dourado); }
.breadcrumb .sep { margin: 0 8px; opacity: 0.5; }

/* Página Sobre */
.sobre-hero-content { max-width: 760px; }
.valores-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.valor {
  background: var(--branco);
  border: 1px solid var(--borda);
  border-radius: var(--radius);
  padding: 28px;
}
.valor svg { width: 36px; height: 36px; color: var(--dourado); margin-bottom: 16px; }
.valor h3 { font-family: var(--fonte-titulo); font-size: 1.2rem; }
.valor p { color: var(--texto-secundario); margin: 0; font-size: 0.95rem; }

/* Página Contato */
.contato-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: start;
}
.contato-info {
  background: var(--azul-marinho);
  color: var(--branco);
  border-radius: var(--radius-lg);
  padding: 40px;
}
.contato-info h2 { color: var(--branco); }
.contato-info p { color: rgba(255,255,255,0.8); }
.info-item {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.info-item:last-child { border-bottom: 0; }
.info-item svg {
  width: 22px; height: 22px;
  color: var(--dourado);
  flex-shrink: 0;
  margin-top: 2px;
}
.info-item strong { display: block; color: var(--branco); margin-bottom: 4px; }
.info-item span, .info-item a { color: rgba(255,255,255,0.8); font-size: 0.95rem; }
.info-item a:hover { color: var(--dourado); }

.form-card {
  background: var(--branco);
  border: 1px solid var(--borda);
  border-radius: var(--radius-lg);
  padding: 40px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-grid .full { grid-column: 1 / -1; }
.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--texto-secundario);
}
.checkbox-group input { margin-top: 4px; }

/* Página Favoritos */
.favoritos-vazio {
  text-align: center;
  padding: 80px 24px;
  background: var(--branco);
  border: 1px dashed var(--borda-escura);
  border-radius: var(--radius-lg);
}
.favoritos-vazio svg {
  width: 72px;
  height: 72px;
  color: var(--borda-escura);
  margin-bottom: 16px;
}
.favoritos-vazio h2 { margin-bottom: 8px; }
.favoritos-vazio p { color: var(--texto-secundario); margin-bottom: 24px; }

/* Catálogo */
.catalogo-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  align-items: start;
}
.filtros-panel {
  background: var(--branco);
  border: 1px solid var(--borda);
  border-radius: var(--radius);
  padding: 24px;
  position: sticky;
  top: 96px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}
.filtros-panel h3 {
  font-family: var(--fonte-base);
  font-size: 1rem;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--borda);
}
.filtro-grupo { margin-bottom: 20px; }
.filtro-grupo label.titulo {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--texto-secundario);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}
.filtro-grupo .row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.filtro-grupo .check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  color: var(--texto);
  margin-bottom: 6px;
  cursor: pointer;
}
.filtro-grupo .check input { width: 16px; height: 16px; accent-color: var(--azul-marinho); }

.catalogo-main {
  min-width: 0;
}
.catalogo-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.result-count { font-size: 0.95rem; color: var(--texto-secundario); }
.result-count strong { color: var(--texto); }
.toolbar-actions { display: flex; gap: 12px; align-items: center; }
.chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  min-height: 8px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--azul-marinho);
  color: var(--branco);
  padding: 6px 12px;
  border-radius: 100px;
  font-size: 0.82rem;
}
.chip button {
  background: transparent;
  border: 0;
  color: var(--branco);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  padding: 0;
  opacity: 0.8;
}
.chip button:hover { opacity: 1; }
.chip button svg { width: 12px; height: 12px; }

.view-toggle {
  display: inline-flex;
  border: 1px solid var(--borda);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.view-toggle button {
  background: var(--branco);
  border: 0;
  padding: 8px 12px;
  color: var(--texto-secundario);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.view-toggle button[aria-pressed="true"] {
  background: var(--azul-marinho);
  color: var(--branco);
}
.view-toggle svg { width: 18px; height: 18px; }

.cards-list .imovel-card {
  display: grid;
  grid-template-columns: 280px 1fr;
}
.cards-list .card-media { aspect-ratio: auto; height: 100%; }
.cards-list .card-body { padding: 24px; }

.load-more-wrap { text-align: center; margin-top: 32px; }

/* Estado vazio */
.empty-state {
  text-align: center;
  padding: 80px 24px;
  background: var(--branco);
  border: 1px dashed var(--borda-escura);
  border-radius: var(--radius-lg);
}
.empty-state svg { width: 64px; height: 64px; color: var(--borda-escura); margin-bottom: 16px; }
.empty-state h3 { margin-bottom: 8px; }
.empty-state p { color: var(--texto-secundario); margin-bottom: 24px; }

/* Filtros mobile trigger */
.filtros-trigger { display: none; }

/* Detalhe imóvel */
.detalhe-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 40px;
  align-items: start;
}
.galeria {
  margin-bottom: 24px;
}
.galeria-principal {
  aspect-ratio: 16 / 10;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--cinza-hover);
  margin-bottom: 12px;
  cursor: zoom-in;
}
.galeria-principal img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.galeria-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.thumb {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  background: var(--cinza-hover);
  padding: 0;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb[aria-current="true"] { border-color: var(--dourado); }

.detalhe-titulo {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 8px;
}
.detalhe-local {
  color: var(--texto-secundario);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 20px;
}
.detalhe-local svg { width: 18px; height: 18px; }

.detalhe-badges { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.detalhe-preco {
  font-family: var(--fonte-titulo);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--azul-marinho);
  margin-bottom: 8px;
}
.detalhe-custos { color: var(--texto-secundario); margin-bottom: 24px; }

.detalhe-specs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  padding: 20px;
  background: var(--branco);
  border: 1px solid var(--borda);
  border-radius: var(--radius);
  margin-bottom: 32px;
}
.detalhe-spec {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.detalhe-spec svg { width: 26px; height: 26px; color: var(--dourado); }
.detalhe-spec strong { display: block; font-size: 1.1rem; color: var(--azul-marinho); }
.detalhe-spec span { font-size: 0.78rem; color: var(--texto-secundario); text-transform: uppercase; letter-spacing: 0.5px; }

.detalhe-section {
  background: var(--branco);
  border: 1px solid var(--borda);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 24px;
}
.detalhe-section h2 { font-size: 1.4rem; margin-bottom: 16px; }
.caract-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.caract-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--texto);
}
.caract-list svg { width: 18px; height: 18px; color: var(--sucesso); flex-shrink: 0; }

.mapa-mock {
  position: relative;
  aspect-ratio: 16 / 9;
  background:
    linear-gradient(135deg, #E8EFF5 0%, #C8D4E0 100%);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mapa-mock::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(0deg, rgba(11,31,51,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11,31,51,0.08) 1px, transparent 1px);
  background-size: 40px 40px;
}
.mapa-pin {
  position: relative;
  background: var(--azul-marinho);
  color: var(--branco);
  padding: 10px 16px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: var(--sombra-2);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.mapa-pin svg { width: 18px; height: 18px; color: var(--dourado); }
.mapa-legend {
  position: absolute;
  bottom: 12px; left: 12px;
  background: rgba(255,255,255,0.95);
  padding: 6px 12px;
  border-radius: 100px;
  font-size: 0.78rem;
  color: var(--texto-secundario);
}

/* Card fixo de contato */
.contato-card {
  position: sticky;
  top: 96px;
  background: var(--branco);
  border: 1px solid var(--borda);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--sombra-1);
}
.contato-card h3 { font-size: 1.1rem; margin-bottom: 4px; }
.contato-card p.muted { color: var(--texto-secundario); font-size: 0.88rem; margin-bottom: 20px; }
.contato-card .btn { margin-bottom: 10px; }
.contato-card .btn-whatsapp {
  background: #25D366;
  color: var(--branco);
  border-color: #25D366;
}
.contato-card .btn-whatsapp:hover { background: #1DA851; color: var(--branco); border-color: #1DA851; }
.contato-card .btn-share {
  background: var(--branco);
  color: var(--azul-marinho);
  border-color: var(--borda);
}

.form-interesse .field { margin-bottom: 14px; }

/* 404 */
.error-page {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 24px;
}
.error-code {
  font-family: var(--fonte-titulo);
  font-size: clamp(6rem, 18vw, 10rem);
  color: var(--dourado);
  line-height: 1;
  margin-bottom: 8px;
}

/* Anúncio demo banner */
.demo-banner {
  background: linear-gradient(90deg, var(--azul-marinho), var(--azul-profundo));
  color: var(--branco);
  text-align: center;
  font-size: 0.78rem;
  padding: 6px 16px;
  letter-spacing: 0.3px;
}

/* Imagem quebrada fallback */
img.broken {
  background: linear-gradient(135deg, #E5E8EC 0%, #D4D9DF 100%);
  position: relative;
}

/* Skeleton */
.skeleton {
  background: linear-gradient(90deg, #EEF1F4 25%, #D4D9DF 50%, #EEF1F4 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: var(--radius-sm);
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
