/*
Theme Name: AMC Imobiliária
Theme URI: https://amcimobiliaria.com.br
Author: AMC Imobiliária
Description: Tema personalizado para a AMC Imobiliária – imóveis para venda e aluguel em Teresina, PI. Camada de apresentação para o plugin de imóveis, com busca com filtros, galeria de fotos e integração com WhatsApp.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: amc-imobiliaria
*/

/* ============================================
   AMC Imobiliária – Design System
   Estética: Luxury Real Estate Minimal
   Fonte Principal: Raleway (Google Fonts)
   Fonte dos Preços: Roboto Black 900
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Raleway:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&family=Roboto:wght@900&display=swap');

/* ---------- Custom Properties ---------- */
:root {
  --primary: #1a1a2e;
  --primary-light: #16213e;
  --accent: #0ea5e9;
  --accent-hover: #0284c7;
  --accent-glow: rgba(14, 165, 233, 0.3);
  --gold: #d4a853;
  --gold-hover: #c49a43;
  --surface: #f8fafc;
  --surface-card: #ffffff;
  --text-primary: #0f172a;
  --text-secondary: #64748b;
  --text-light: #ffffff;
  --text-muted: #94a3b8;
  --border: #e2e8f0;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.15);
  --shadow-card: 0 4px 24px rgba(0,0,0,0.06);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 50px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Raleway', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Raleway', system-ui, sans-serif;
  background: var(--surface);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--surface); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-hover); }

/* ---------- Container ---------- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ============================================
   TOP BAR
   ============================================ */
.top-bar {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 40px;
  background: var(--primary);
  color: var(--text-light);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  z-index: 1001;
  display: flex;
  align-items: center;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.top-bar-left {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.top-bar-right {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.top-bar-left span,
.top-bar-right a {
  display: flex;
  gap: 6px;
  align-items: center;
  font-size: 0.8rem;
}

.top-bar-left span {
  color: rgba(255,255,255,0.6);
}

.top-bar-left .creci {
  color: var(--gold);
  font-weight: 600;
}

.top-bar-right a {
  color: var(--text-muted);
  transition: var(--transition);
}

.top-bar-right a:hover {
  color: var(--accent);
}

.top-bar svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: transparent;
  transition: background 0.4s ease, box-shadow 0.4s ease, top 0.3s ease, padding 0.3s ease;
  padding: 0.8rem 0;
}

.navbar.scrolled {
  top: 0; /* Sobe para o topo quando o usuário rola a página */
  background: rgba(26, 26, 46, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.2);
  padding: 0.5rem 0;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar-brand img {
  height: 80px;
  transition: var(--transition);
}

.navbar.scrolled .navbar-brand img {
  height: 48px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 0;
  align-items: center;
}

.nav-links li a {
  padding: 0.6rem 1rem;
  color: var(--text-light);
  font-weight: 500;
  font-size: 0.9rem;
  text-decoration: none;
  position: relative;
  transition: var(--transition);
}

.nav-links li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.nav-links li a:hover {
  color: var(--accent);
}

.nav-links li a:hover::after {
  width: 70%;
}

.nav-links li a.whatsapp-link {
  background: var(--accent);
  color: white;
  border-radius: var(--radius-full);
  padding: 0.5rem 1.2rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 0.5rem;
}

.nav-links li a.whatsapp-link::after {
  display: none;
}

.nav-links li a.whatsapp-link:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  color: white;
}

.nav-links li a.whatsapp-link svg {
  width: 16px;
  height: 16px;
}

/* Menu toggle mobile */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  padding: 0.5rem;
}

.menu-toggle svg {
  width: 28px;
  height: 28px;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 160px 0 80px;
  height: auto;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(26, 26, 46, 0.88) 0%,
    rgba(22, 33, 62, 0.75) 50%,
    rgba(14, 165, 233, 0.25) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  max-width: 980px; /* espaço extra para os campos do filtro caberem sem cortar */
  margin: 0 auto;
  padding: 0 1.5rem;
  animation: fadeInUp 1s ease-out forwards;
}

/* Título e subtítulo mantêm a medida de leitura original */
.hero-content h1,
.hero-content .hero-subtitle {
  max-width: 852px;
  margin-left: auto;
  margin-right: auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(212, 168, 83, 0.15);
  color: var(--gold);
  padding: 0.5rem 1.2rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(212, 168, 83, 0.3);
}

.hero-badge svg {
  width: 16px;
  height: 16px;
}

.hero h1 {
  font-family: 'Raleway', sans-serif;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  color: var(--text-light);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1rem;
  letter-spacing: -1px;
}

.hero h1 span {
  color: var(--accent);
  display: block;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(255, 255, 255, 0.8);
  max-width: 600px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
  font-weight: 400;
}

/* ============================================
   SEARCH FORM (MODELO LUXURY UNIFICADO)
   ============================================ */
.search-form {
  background: #ffffff;
  border-radius: 24px;
  padding: 2.2rem 2.5rem;
  border: none;
  max-width: 960px;
  margin: 0 auto;
  box-shadow: var(--shadow-lg);
  animation: fadeInUp 1.2s ease-out forwards;
}

.search-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.properties-counter {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.properties-counter strong {
  color: var(--text-primary);
  font-weight: 800;
  font-size: 1rem;
}

.search-tabs {
  display: flex;
  gap: 4px;
  background: #f4f3ef;
  border-radius: var(--radius-full);
  padding: 4px;
  width: fit-content;
}

.tab-btn {
  padding: 0.6rem 2.2rem;
  border-radius: var(--radius-full);
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.9rem;
  font-family: 'Raleway', sans-serif;
}

.tab-btn.active {
  background: var(--accent);
  color: white;
  box-shadow: 0 4px 12px var(--accent-glow);
}

.tab-btn:hover:not(.active) {
  color: var(--text-primary);
}

/* Campo de Palavra-chave intermediário */
.search-keyword-row {
  margin-bottom: 1.2rem;
  text-align: left;
  animation: fadeInUp 1.2s ease-out forwards;
}

.search-keyword-row .keyword-field {
  padding: 0;
  border-right: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.search-keyword-row label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #64748b;
  letter-spacing: 0.5px;
  margin-left: 4px;
}

.search-keyword-row .input-wrapper {
  position: relative;
  width: 100%;
}

.search-keyword-row input {
  width: 100%;
  padding: 1rem 1.2rem;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--text-primary);
  background: #ffffff;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}

.search-keyword-row input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15), var(--shadow-sm);
}

/* Caixa Única de Busca */
.search-box-wrapper {
  display: flex;
  border: 1px solid #cbd5e1;
  border-radius: 16px;
  overflow: hidden;
  background: #ffffff;
  align-items: center;
  box-shadow: var(--shadow-sm);
}

.search-field {
  flex: 1 1 0;
  min-width: 0; /* permite encolher sem estourar o flex container */
  padding: 0.8rem 1.1rem;
  display: flex;
  flex-direction: column;
  position: relative;
  border-right: 1px solid #e2e8f0;
  text-align: left;
}

/* Primeiro campo ganha o fundo azul clarinho */
.search-field.field-type {
  background: #f0f7fc;
  border-right-color: #cbd5e1;
}

/* Cada campo recebe espaço proporcional ao tamanho típico do seu conteúdo,
   em vez de larguras iguais — evita cortar "Ponto Comercial" ou "São Cristóvão"
   enquanto sobra espaço em "Cidade". */
.search-field.field-type { flex-grow: 1.2; }
.search-field.field-city { flex-grow: 1; }
.search-field.field-zone { flex-grow: 1; }
.search-field.field-neighborhood { flex-grow: 1.2; }

.search-field label {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-secondary);
  margin-bottom: 4px;
  padding-left: 2px;
}

.search-field select {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  border: none;
  background: transparent;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  padding: 2px 22px 2px 0;
  font-family: 'Raleway', sans-serif;
  transition: var(--transition);
  /* Nomes longos de bairro terminam em reticências em vez de corte seco */
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.search-field select:focus {
  outline: none;
}

.search-field select option {
  background: #ffffff;
  color: var(--text-primary);
}

.search-field .field-icon {
  position: absolute;
  right: 12px;
  bottom: 14px;
  color: var(--accent);
  pointer-events: none;
  width: 16px;
  height: 16px;
}

/* Botão em formato de ícone quadrado */
.btn-search-icon {
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  color: white;
  border: none;
  width: 54px;
  height: 54px;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 10px;
  transition: var(--transition);
  flex-shrink: 0;
  box-shadow: 0 4px 12px var(--accent-glow);
}

.btn-search-icon:hover {
  transform: translateY(-1px) scale(1.03);
  box-shadow: 0 6px 16px var(--accent-glow);
}

.btn-search-icon svg {
  width: 22px;
  height: 22px;
}

/* Rodapé do Form */
.search-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.5rem;
}

.btn-more-filters {
  display: flex;
  align-items: center;
  gap: 8px;
  border: none;
  background: transparent;
  color: var(--accent);
  font-weight: 700;
  cursor: pointer;
  font-size: 0.95rem;
  font-family: 'Raleway', sans-serif;
  transition: var(--transition);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
}

.btn-more-filters:hover {
  color: var(--accent-hover);
  background: rgba(14, 165, 233, 0.05);
}

.btn-more-filters .plus-icon {
  background: #e0f2fe;
  color: var(--accent);
  width: 24px;
  height: 24px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
}

/* Painel de Filtros Avançados */
.advanced-filters {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease, margin-top 0.3s ease, padding-top 0.3s ease;
  margin-top: 0;
  border-top: 1px solid transparent;
  padding-top: 0;
}

.advanced-filters.show {
  max-height: 250px; /* Suficiente no desktop */
  opacity: 1;
  margin-top: 1.5rem;
  border-top: 1px solid #cbd5e1;
  padding-top: 1.5rem;
}

.advanced-filters-grid {
  display: grid;
  grid-template-columns: 1.2fr 1.5fr 1.5fr 1.8fr;
  gap: 16px;
  align-items: start;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}

.filter-group label {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-secondary);
}

.filter-group select,
.filter-group input {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: var(--text-primary);
  font-size: 0.9rem;
  font-family: 'Raleway', sans-serif;
  font-weight: 500;
  appearance: none;
  -webkit-appearance: none;
  transition: var(--transition);
}

.filter-group select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%230ea5e9' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  padding-right: 36px;
}

.filter-group select:focus,
.filter-group input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.double-inputs {
  display: flex;
  gap: 8px;
}

.double-inputs input {
  text-align: center;
}

/* Modificações do botão de mais filtros quando ativo */
.btn-more-filters.active .plus-icon {
  background: #f1f5f9;
  color: var(--accent);
  font-size: 0.85rem;
}

/* ============================================
   SECTIONS
   ============================================ */
.section {
  padding: 5rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 0.8rem;
}

.section-label svg {
  width: 16px;
  height: 16px;
}

.section-header h2 {
  font-family: 'Raleway', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--text-primary);
  font-weight: 800;
  margin-bottom: 0.8rem;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

.section-header p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 550px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ============================================
   PROPERTIES GRID
   ============================================ */
.properties-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
}

/* ============================================
   PROPERTY CARD
   ============================================ */
.property-card {
  background: var(--surface-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
  border: 1px solid var(--border);
  position: relative;
}

.property-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.property-image {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.property-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.property-card:hover .property-image img {
  transform: scale(1.08);
}

.property-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 0.35rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 1;
}

.badge-venda {
  background: rgba(14, 165, 233, 0.9);
  color: white;
}

.badge-aluguel {
  background: rgba(212, 168, 83, 0.9);
  color: white;
}

.property-favorite {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  z-index: 1;
}

.property-favorite:hover {
  background: white;
  transform: scale(1.1);
}

.property-favorite svg {
  width: 18px;
  height: 18px;
  color: var(--text-secondary);
  transition: var(--transition);
}

.property-favorite.favorited svg {
  color: #ef4444;
  fill: #ef4444;
}

.property-info {
  padding: 1.4rem;
}

.property-price {
  font-family: 'Raleway', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 0.6rem;
}

.property-price small {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  font-family: 'Raleway', sans-serif;
}

.property-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.3rem;
  line-height: 1.4;
}

.property-location {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.property-location svg {
  width: 14px;
  height: 14px;
  color: var(--accent);
  flex-shrink: 0;
}

.property-features {
  display: flex;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

.property-features .feature {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.property-features .feature svg {
  width: 16px;
  height: 16px;
  color: var(--accent);
}

.property-features .feature strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  padding: 5rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
  opacity: 0.08;
  pointer-events: none;
}

.cta-section::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--gold) 0%, transparent 70%);
  opacity: 0.06;
  pointer-events: none;
}

.cta-section .container {
  position: relative;
  z-index: 1;
}

.cta-section h2 {
  font-family: 'Raleway', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: var(--text-light);
  font-weight: 800;
  margin-bottom: 1rem;
  letter-spacing: -0.5px;
}

.cta-section p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.7);
  max-width: 550px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary {
  padding: 0.7rem 1.8rem;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Raleway', sans-serif;
  white-space: nowrap;
}

.btn-primary svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-outline {
  padding: 0.7rem 1.8rem;
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: var(--text-light);
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Raleway', sans-serif;
  white-space: nowrap;
}

.btn-outline svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(212, 168, 83, 0.1);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--primary);
  color: var(--text-light);
  padding-top: 4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 6rem;
  padding-bottom: 3rem;
}

.footer-brand img {
  height: 52px;
  margin-bottom: 1.2rem;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 1rem;
}

.footer-social a {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  color: #ffffff;
}

.footer-social a.social-facebook {
  background: #1877F2;
  box-shadow: 0 4px 12px rgba(24, 119, 242, 0.2);
}

.footer-social a.social-facebook:hover {
  transform: translateY(-3px);
  background: #166fe5;
  box-shadow: 0 6px 18px rgba(24, 119, 242, 0.4);
}

.footer-social a.social-instagram {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  box-shadow: 0 4px 12px rgba(220, 39, 67, 0.2);
}

.footer-social a.social-instagram:hover {
  transform: translateY(-3px);
  filter: brightness(1.08);
  box-shadow: 0 6px 18px rgba(220, 39, 67, 0.4);
}

.footer-social a svg {
  width: 22px;
  height: 22px;
}

.footer h4 {
  font-family: 'Raleway', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.8rem;
}

.footer h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--accent);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.7rem;
}

.footer-links li a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-links li a:hover {
  color: var(--accent);
  padding-left: 4px;
}

.footer-contact {
  list-style: none;
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

.footer-contact li svg {
  width: 18px;
  height: 18px;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.5rem 0;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
}

.footer-bottom a {
  color: var(--accent);
  text-decoration: none;
}

.footer-bottom a:hover {
  text-decoration: underline;
}

.footer-bottom .footer-signature {
  margin-top: 6px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.3);
}

.footer-bottom .footer-signature a {
  font-weight: 700;
}

/* ============================================
   WHATSAPP FLOATING BUTTON
   ============================================ */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
  z-index: 999;
  transition: var(--transition);
  text-decoration: none;
  animation: pulse 2s infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.5);
}

.whatsapp-float svg {
  width: 28px;
  height: 28px;
  color: white;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes pulse {
  0% { box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4); }
  50% { box-shadow: 0 4px 24px rgba(37, 211, 102, 0.6); }
  100% { box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4); }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   RESPONSIVE – TABLET (max 1024px)
   ============================================ */
@media (max-width: 1024px) {
  .search-box-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-radius: 16px;
  }

  .search-field {
    border-right: none;
    border-bottom: 1px solid #e2e8f0;
  }

  .search-field:nth-child(odd) {
    border-right: 1px solid #e2e8f0;
  }

  /* No tablet, os dois primeiros e dois últimos têm bordas tratadas */
  .search-field:nth-child(3),
  .search-field:nth-child(4) {
    border-bottom: none;
  }

  .btn-search-icon {
    grid-column: span 2;
    width: auto;
    height: 52px;
    margin: 12px;
    border-radius: 10px;
  }

  .advanced-filters-grid {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }

  .advanced-filters.show {
    max-height: 400px; /* Altura maior para acomodar a quebra de grid */
  }

  .properties-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ============================================
   RESPONSIVE – MOBILE (max 768px)
   ============================================ */
@media (max-width: 768px) {
  .top-bar {
    display: none;
  }

  .navbar {
    top: 0; /* No mobile a top-bar não existe, então a navbar começa no topo */
  }

  /* Logo com altura fixa no mobile, inclusive após o scroll */
  .navbar-brand img,
  .navbar.scrolled .navbar-brand img {
    height: 50px;
  }

  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    background: var(--primary);
    flex-direction: column;
    padding: 5rem 2rem 2rem;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -4px 0 24px rgba(0,0,0,0.3);
    z-index: 1001;
    align-items: flex-start;
  }

  .nav-links.active {
    transform: translateX(0);
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links li a {
    padding: 1rem 0;
    font-size: 1.1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: block;
    width: 100%;
  }

  .nav-links li a::after {
    display: none;
  }

  .nav-links li a.whatsapp-link {
    margin-left: 0;
    margin-top: 1rem;
    text-align: center;
    justify-content: center;
  }

  .hero {
    height: auto;
    min-height: auto;
    padding: 140px 0 80px;
  }

  .hero h1 {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
  }

  .search-form {
    padding: 1.5rem 1.2rem;
  }

  .search-header {
    flex-direction: column;
    gap: 12px;
    align-items: center;
  }

  .search-box-wrapper {
    display: flex;
    flex-direction: column;
    border-radius: 16px;
  }

  .search-field {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid #e2e8f0;
    padding: 1rem;
  }

  .search-field.field-type {
    border-bottom-color: #cbd5e1;
  }

  .search-field:last-of-type {
    border-bottom: none;
  }

  .btn-search-icon {
    width: calc(100% - 24px);
    height: 48px;
    margin: 12px;
    border-radius: 10px;
  }

  .advanced-filters-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .advanced-filters.show {
    max-height: 700px; /* Altura maior para acomodar a quebra vertical no mobile */
  }

  .properties-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .section {
    padding: 3.5rem 0;
  }
}

/* ============================================
   RESPONSIVE – MOBILE SMALL (max 480px)
   ============================================ */
@media (max-width: 480px) {
  .hero-badge {
    font-size: 0.75rem;
    padding: 0.4rem 1rem;
  }

  .search-form {
    padding: 1.2rem 1rem;
  }

  .tab-btn {
    padding: 0.45rem 1.2rem;
    font-size: 0.82rem;
  }

  .property-image {
    height: 200px;
  }

  .property-info {
    padding: 1.2rem;
  }
}

/* ============================================
   PÁGINA DE RESULTADOS DE BUSCA
   ============================================ */
/* Forçar navbar escura e fixa na página de busca */
.search-page .navbar {
  background: rgba(26, 26, 46, 0.98) !important;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.25) !important;
  top: 0;
}

.search-page .navbar.scrolled {
  top: 0;
}

@media (max-width: 768px) {
  .search-page .navbar {
    top: 0 !important;
  }
}

.search-results-page {
  padding: 130px 0 5rem; /* Ajustado de 170px após a remoção da top-bar */
  background: var(--surface);
  min-height: 100vh;
}

.search-layout-container {
  display: flex;
  gap: 2.5rem;
  align-items: start;
}

/* --- SIDEBAR DE FILTROS --- */
.search-sidebar {
  width: 300px;
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.2rem;
  position: sticky;
  top: 100px;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}

.sidebar-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-bottom: 0.8rem;
  font-weight: 500;
}

.sidebar-breadcrumbs a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition);
}

.sidebar-breadcrumbs a:hover,
.sidebar-breadcrumbs a.active {
  color: var(--accent);
}

.sidebar-breadcrumbs svg {
  color: var(--text-muted);
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}

.sidebar-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.9rem;
  border-bottom: 2px solid var(--border);
  padding-bottom: 0.6rem;
}

.sidebar-filter-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.filter-section {
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.75rem;
}

.filter-section:last-of-type {
  border-bottom: none;
  padding-bottom: 0;
}

.filter-section-title {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
}

.filter-options-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

/* Radio buttons personalizados */
.control-radio {
  display: flex;
  align-items: center;
  position: relative;
  padding-left: 28px;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-primary);
  user-select: none;
}

.control-radio input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.control-indicator {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 0;
  height: 18px;
  width: 18px;
  background-color: #ffffff;
  border: 2px solid #cbd5e1;
  border-radius: 50%;
  transition: var(--transition);
}

.control-radio:hover input ~ .control-indicator {
  border-color: var(--accent);
}

.control-radio input:checked ~ .control-indicator {
  background-color: var(--accent);
  border-color: var(--accent);
}

.control-indicator:after {
  content: "";
  position: absolute;
  display: none;
}

.control-radio input:checked ~ .control-indicator:after {
  display: block;
}

.control-radio .control-indicator:after {
  top: 5px;
  left: 5px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: white;
}

/* Select wrapper com ícone */
.select-wrapper {
  position: relative;
  width: 100%;
}

.select-wrapper select {
  width: 100%;
  padding: 0.55rem 0.9rem;
  border-radius: var(--radius-sm);
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: var(--text-primary);
  font-size: 0.9rem;
  font-family: 'Raleway', sans-serif;
  font-weight: 500;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  transition: var(--transition);
  padding-right: 36px;
}

.select-wrapper::after {
  content: '';
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid var(--accent);
  pointer-events: none;
}

.select-wrapper select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

/* Range Inputs */
.range-inputs {
  display: flex;
  gap: 8px;
  align-items: center;
}

.range-inputs input {
  width: 100%;
  padding: 0.55rem 0.7rem;
  border-radius: var(--radius-sm);
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: var(--text-primary);
  font-size: 0.9rem;
  font-family: 'Raleway', sans-serif;
  font-weight: 500;
  text-align: center;
  transition: var(--transition);
}

.range-inputs input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.btn-apply-filter {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: var(--transition);
}

.btn-apply-filter:hover {
  background: var(--accent-hover);
  transform: scale(1.05);
}

.btn-apply-filter svg {
  width: 16px;
  height: 16px;
}

/* Pill Selectors */
.pill-selectors {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.pill-option {
  cursor: pointer;
}

.pill-option input {
  position: absolute;
  opacity: 0;
}

/* Botões numéricos de largura uniforme (estilo OLX) */
.pill-option span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 38px;
  padding: 0 0.6rem;
  border-radius: var(--radius-full);
  border: 1px solid #cbd5e1;
  background: #fff;
  color: var(--text-primary);
  font-size: 0.88rem;
  font-weight: 700;
  transition: var(--transition);
  text-align: center;
  user-select: none;
}

.pill-option:hover span {
  border-color: var(--accent);
  color: var(--accent);
}

.pill-option input:checked + span {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 2px 8px var(--accent-glow);
}

/* Foco visível para navegação por teclado */
.pill-option input:focus-visible + span {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Palavra chave */
.input-keyword-wrapper input {
  width: 100%;
  padding: 0.55rem 0.9rem;
  border-radius: var(--radius-sm);
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: var(--text-primary);
  font-size: 0.9rem;
  font-family: 'Raleway', sans-serif;
  font-weight: 500;
  transition: var(--transition);
}

.input-keyword-wrapper input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.btn-clear-filters {
  background: none;
  border: 1px dashed #cbd5e1;
  color: var(--text-secondary);
  padding: 0.55rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  font-family: 'Raleway', sans-serif;
  transition: var(--transition);
}

.btn-clear-filters:hover {
  background: #f1f5f9;
  color: var(--text-primary);
  border-color: var(--text-secondary);
}

/* --- CONTEÚDO PRINCIPAL --- */
.search-content {
  flex: 1;
}

.results-header-info {
  margin-bottom: 1.5rem;
}

.results-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.results-breadcrumbs .separator {
  color: var(--text-muted);
}

.results-breadcrumbs .current {
  color: var(--text-primary);
  font-weight: 600;
}

.results-search-term {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.3rem;
}

.results-count {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* Toolbar de ordenação e layout */
.results-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1.2rem;
  margin-bottom: 1.5rem;
}

.toolbar-left, .toolbar-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.toolbar-group label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-secondary);
  white-space: nowrap;
}

.select-small select {
  padding: 0.45rem 2.2rem 0.45rem 0.8rem;
  font-size: 0.85rem;
}

.select-small::after {
  right: 10px;
}

/* Toggle Grid/Lista */
.layout-toggle {
  display: flex;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  overflow: hidden;
  background: #f1f5f9;
}

.toggle-btn {
  background: transparent;
  border: none;
  padding: 6px 10px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.toggle-btn svg {
  width: 18px;
  height: 18px;
}

.toggle-btn:hover {
  color: var(--text-primary);
  background: #e2e8f0;
}

.toggle-btn.active {
  background: var(--accent);
  color: white;
}

/* --- CARDS DE IMÓVEIS (Alternáveis) --- */
.results-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

/* CARD DE BUSCA */
.search-card {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
  display: flex;
}

.search-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  z-index: 2;
  letter-spacing: 0.5px;
}

.card-favorite {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  box-shadow: var(--shadow-sm);
  color: var(--text-secondary);
  transition: var(--transition);
}

.card-favorite:hover {
  transform: scale(1.08);
  color: #ef4444;
}

.card-favorite.favorited {
  color: #ef4444;
}

/* Modo Lista (Horizontal estilo OLX) */
.results-container.layout-list .search-card {
  flex-direction: row;
  height: 200px;
}

.results-container.layout-list .card-image-section {
  width: 280px;
  height: 100%;
  position: relative;
  flex-shrink: 0;
  overflow: hidden;
}

.results-container.layout-list .card-image-section img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.results-container.layout-list .search-card:hover .card-image-section img {
  transform: scale(1.03);
}

.results-container.layout-list .card-info-section {
  flex: 1;
  padding: 1.2rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.results-container.layout-list .card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2px;
  transition: var(--transition);
}

.results-container.layout-list .card-title:hover {
  color: var(--accent);
  cursor: pointer;
}

.results-container.layout-list .card-subtitle {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.results-container.layout-list .card-tech-details {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-secondary);
  flex-wrap: wrap;
  margin: 0.5rem 0;
}

.results-container.layout-list .separator-bullet {
  color: var(--text-muted);
}

.results-container.layout-list .card-price {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--accent);
}

.results-container.layout-list .card-price small {
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.results-container.layout-list .card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border);
  padding-top: 0.6rem;
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.results-container.layout-list .card-location {
  display: flex;
  align-items: center;
  gap: 4px;
}

.results-container.layout-list .card-location svg {
  width: 14px;
  height: 14px;
  color: var(--accent);
}

.results-container.layout-list .card-bullets {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 4px;
  z-index: 2;
}

.card-bullets .bullet {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
}

.card-bullets .bullet.active {
  background: white;
}

/* Modo Grid (Vertical) */
.results-container.layout-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.results-container.layout-grid .search-card {
  flex-direction: column;
}

.results-container.layout-grid .card-image-section {
  width: 100%;
  height: 200px;
  position: relative;
  overflow: hidden;
}

.results-container.layout-grid .card-image-section img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.results-container.layout-grid .search-card:hover .card-image-section img {
  transform: scale(1.03);
}

.results-container.layout-grid .card-info-section {
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.results-container.layout-grid .card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2px;
  line-height: 1.4;
  height: 2.8rem; /* Evita quebra de layout de títulos em duas linhas */
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.results-container.layout-grid .card-subtitle {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
}

.results-container.layout-grid .card-tech-details {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 0.6rem 0;
}

.results-container.layout-grid .separator-bullet {
  display: none; /* No grid eles ficam separados pela caixa, não precisa de bullets */
}

.results-container.layout-grid .card-price {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--accent);
}

.results-container.layout-grid .card-price small {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.results-container.layout-grid .card-footer {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--text-secondary);
  align-items: center;
}

.results-container.layout-grid .card-location {
  display: flex;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 140px;
}

.results-container.layout-grid .card-location svg {
  width: 12px;
  height: 12px;
  color: var(--accent);
}

.results-container.layout-grid .card-bullets {
  display: none; /* Ocultar bullets no layout em grid para manter limpo */
}

/* Paginação */
.results-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 2rem;
}

.results-pagination a, .results-pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: var(--transition);
  color: var(--text-secondary);
  background: var(--surface-card);
  border: 1px solid var(--border);
}

.results-pagination a:hover:not(.disabled) {
  background: #cbd5e1;
  color: var(--text-primary);
}

/* A página atual é renderizada como <span> pelo WordPress, não como <a> */
.results-pagination a.active,
.results-pagination span.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  font-weight: 800;
  cursor: default;
  box-shadow: 0 2px 8px var(--accent-glow);
}

.results-pagination a.disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

.results-pagination .pagination-dots {
  background: transparent;
  border: none;
}

.results-pagination svg {
  width: 14px;
  height: 14px;
}

/* Botão Flutuante Mobile de Filtros */
.mobile-filters-trigger {
  display: none;
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: white;
  border: none;
  padding: 0.8rem 1.8rem;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-weight: 700;
  box-shadow: 0 4px 16px var(--accent-glow);
  z-index: 1001;
  cursor: pointer;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
  font-family: 'Raleway', sans-serif;
}

.mobile-filters-trigger svg {
  width: 16px;
  height: 16px;
}

.mobile-filters-trigger:hover {
  transform: translateX(-50%) translateY(-2px);
  box-shadow: 0 6px 20px var(--accent-glow);
}

/* Barra de Filtros Mobile Inline (Oculta no Desktop) */
.mobile-filters-bar {
  display: none;
}

/* Responsividade na Busca */
@media (max-width: 1024px) {
  .results-container.layout-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .search-layout-container {
    flex-direction: column;
    gap: 1.5rem;
  }

  .mobile-filters-bar {
    display: block;
    width: 100%;
    margin-bottom: 1.2rem;
  }
  
  .btn-trigger-filters {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #ffffff;
    color: var(--accent);
    border: 1.5px solid var(--accent);
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Raleway', sans-serif;
    box-shadow: 0 2px 8px rgba(14, 165, 233, 0.08);
  }
  
  .btn-trigger-filters:hover {
    background: rgba(14, 165, 233, 0.06);
  }
  
  .btn-trigger-filters svg {
    width: 16px;
    height: 16px;
    stroke-width: 2.5px;
  }
  
  .search-sidebar {
    display: none; /* Oculta no mobile por padrão */
    position: fixed;
    inset: 0;
    width: 100% !important;
    height: 100vh;
    z-index: 1002;
    top: 0 !important;
    background: white;
    border-radius: 0;
    overflow-y: auto;
    padding: 2.5rem 1.5rem 5rem;
  }
  
  .search-sidebar.active {
    display: flex;
    flex-direction: column;
  }

  .mobile-filters-trigger {
    display: flex;
  }

  .results-container.layout-list .search-card {
    flex-direction: column;
    height: auto;
  }
  
  .results-container.layout-list .card-image-section {
    width: 100%;
    height: 220px;
  }
  
  .results-container.layout-list .card-info-section {
    padding: 1.2rem;
    gap: 12px;
  }

  .results-container.layout-list .card-footer {
    border-top: 1px solid var(--border);
    padding-top: 0.6rem;
    margin-top: 0.4rem;
  }
}

/* Botão de Fechar Sidebar Mobile */
.sidebar-close-btn {
  display: none;
}

@media (max-width: 768px) {
  .sidebar-close-btn {
    display: block;
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    font-size: 2.2rem;
    line-height: 1;
    color: var(--text-secondary);
    cursor: pointer;
    z-index: 10;
  }
}

/* Efeito de carregamento simulado para os resultados */
.results-container.loading {
  opacity: 0.5;
  pointer-events: none;
  position: relative;
  transition: opacity 0.3s ease;
}

.results-container.loading::after {
  content: '';
  position: absolute;
  top: 100px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 40px;
  border: 4px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  z-index: 10;
}

/* ============================================
   PÁGINA DE DETALHES DO IMÓVEL (imovel.html)
   ============================================ */
.property-detail-page {
  padding: 140px 0 5rem; /* Ajustado de 180px após a remoção da top-bar */
  background: var(--surface);
  min-height: 100vh;
}

/* Breadcrumbs & Voltar */
.property-detail-breadcrumbs {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 12px;
}

.breadcrumbs-left {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--text-secondary);
  font-weight: 500;
  flex-wrap: wrap; /* Evita quebra feia e sobreposição do texto no mobile */
}

.breadcrumbs-left a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition);
}

.breadcrumbs-left a:hover {
  color: var(--accent);
}

.breadcrumbs-left .separator {
  color: var(--text-muted);
}

.breadcrumbs-left .current {
  color: var(--text-primary);
  font-weight: 700;
}

.btn-back-to-results {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--accent);
  transition: var(--transition);
}

.btn-back-to-results:hover {
  color: var(--accent-hover);
  transform: translateX(-2px);
}

.btn-back-to-results svg {
  width: 16px;
  height: 16px;
}

/* Cabeçalho do Imóvel */
.property-detail-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 20px;
}

.header-left-info {
  flex: 1 1 500px;
}

.header-badge-group {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 0.8rem;
}

.detail-badge {
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.detail-code {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
}

.header-left-info h1 {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
  margin-bottom: 0.6rem;
}

.detail-address {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.95rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.detail-address svg {
  width: 16px;
  height: 16px;
  color: var(--accent);
  flex-shrink: 0;
}

.header-right-price {
  text-align: right;
  flex-shrink: 0;
}

.detail-price-label {
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.detail-price-value {
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}

.detail-price-sub {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: 4px;
}

/* Galeria de Fotos */
/* Hero Grid: Galeria à Esquerda e Cabeçalho à Direita */
.property-hero-grid {
  display: grid;
  grid-template-columns: 7fr 3fr;
  gap: 3rem;
  margin-bottom: 2.5rem;
  align-items: start;
}

.property-hero-grid > * {
  min-width: 0;
}

.property-info-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.property-info-container .property-detail-header {
  display: block;
  margin-bottom: 0;
  width: 100%;
}

.property-info-container .header-left-info {
  margin-bottom: 1.5rem;
}

.property-info-container .header-left-info h1 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.25;
  margin-bottom: 0.8rem;
}

.property-info-container .detail-address {
  font-size: 1rem;
  line-height: 1.6;
}

/* Card de Preço */
.property-price-card {
  background: #f8fafc;
  border-radius: var(--radius-md);
  padding: 2rem;
  text-align: center;
  border: 1px solid #e2e8f0;
  box-shadow: var(--shadow-sm);
  margin-top: 1.5rem;
}

.property-price-card .detail-price-label {
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.property-price-card .detail-price-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1.1;
}

.property-price-card .detail-price-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: 8px;
}

.property-gallery-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.main-gallery-slider {
  width: 100%;
  height: 640px; /* Altura maior para exibição na vertical */
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-md);
  background: #0f172a;
}

.main-gallery-slider img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity 0.4s ease;
}

/* Responsivo para o Hero Grid */
@media (max-width: 992px) {
  .property-hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .main-gallery-slider {
    height: 480px; /* Reduz um pouco a altura vertical em tablets/celulares */
  }
  
  .property-price-card {
    padding: 1.5rem;
  }
  
  .property-price-card .detail-price-value {
    font-size: 2.2rem;
  }
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  color: var(--text-primary);
  transition: var(--transition);
  z-index: 5;
}

.slider-arrow:hover {
  background: white;
  transform: translateY(-50%) scale(1.05);
  color: var(--accent);
}

.arrow-left {
  left: 20px;
}

.arrow-right {
  right: 20px;
}

.slider-arrow svg {
  width: 20px;
  height: 20px;
}

.gallery-thumbnails {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: thin;
}

.gallery-thumbnails::-webkit-scrollbar {
  height: 6px;
}

.gallery-thumbnails::-webkit-scrollbar-thumb {
  background: var(--text-muted);
  border-radius: var(--radius-full);
}

.thumbnail {
  flex: 0 0 120px;
  height: 80px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  opacity: 0.6;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumbnail:hover,
.thumbnail.active {
  opacity: 1;
  border-color: var(--accent);
}

/* Corpo Principal (Coluna Esquerda + Direita) */
.property-detail-body {
  display: flex;
  gap: 2.5rem;
  align-items: start;
}

.detail-main-content {
  flex: 1;
  min-width: 0; /* Evita quebra de largura com flexbox */
}

/* Ficha Técnica Rápida */
.detail-quick-specs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 2.5rem;
}

.spec-card {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.2rem;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-sm);
}

.spec-card svg {
  width: 28px;
  height: 28px;
  color: var(--accent);
  flex-shrink: 0;
}

.spec-info {
  display: flex;
  flex-direction: column;
}

.spec-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-secondary);
  letter-spacing: 0.5px;
}

.spec-value {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-primary);
}

.spec-value small {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-secondary);
}

/* Seções de Detalhes */
.detail-section {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-card);
}

.detail-section-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  border-bottom: 2px solid var(--border);
  padding-bottom: 0.8rem;
}

.detail-text {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.7;
}

.detail-text p {
  margin-bottom: 1rem;
}

.detail-text p:last-of-type {
  margin-bottom: 0;
}

.detail-text ul {
  padding-left: 20px;
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.detail-text li {
  color: var(--text-secondary);
}

/* Diferenciais Grid */
.detail-diferenciais-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.diferencial-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  color: var(--text-primary);
  font-weight: 500;
}

.diferencial-check {
  width: 18px;
  height: 18px;
  color: var(--gold);
  flex-shrink: 0;
}

/* Mapa Simulado */
.simulated-map-container {
  width: 100%;
  height: 350px;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-sm);
  background: #cbd5e1;
}

.map-graphic-bg {
  width: 100%;
  height: 100%;
  background-color: #e2e8f0;
  background-image: 
    radial-gradient(#cbd5e1 2px, transparent 2px), 
    linear-gradient(to right, rgba(0,0,0,0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0,0,0,0.03) 1px, transparent 1px);
  background-size: 20px 20px, 40px 40px, 40px 40px;
}

.map-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 2;
}

.map-pin-icon {
  width: 44px;
  height: 44px;
  color: #ef4444;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
  animation: bounce 2s infinite;
}

.map-label {
  background: white;
  padding: 1rem 1.2rem;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  text-align: center;
  border: 1px solid var(--border);
  min-width: 260px;
}

.map-label h4 {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.map-label p {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* --- COLUNA DIREITA: SIDEBAR (30%) --- */
.detail-sidebar {
  width: 340px;
  position: sticky;
  top: 100px;
  flex-shrink: 0;
}

.contact-card-sticky {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow-lg);
}

.corretor-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1.2rem;
}

.corretor-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: contain;
  background: #f1f5f9;
  border: 1px solid var(--border);
}

.corretor-info h3 {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.corretor-info span {
  font-size: 0.78rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.sidebar-contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.form-input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-input-group label {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-secondary);
  letter-spacing: 0.5px;
}

.form-input-group input,
.form-input-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: var(--text-primary);
  font-size: 0.9rem;
  font-family: 'Raleway', sans-serif;
  font-weight: 500;
  transition: var(--transition);
}

.form-input-group input:focus,
.form-input-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.btn-submit-message {
  width: 100%;
  padding: 0.85rem;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.95rem;
  font-family: 'Raleway', sans-serif;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition);
  box-shadow: 0 4px 12px var(--accent-glow);
}

.btn-submit-message:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.btn-submit-message svg {
  width: 16px;
  height: 16px;
}

.btn-whatsapp-direct {
  width: 100%;
  padding: 0.85rem;
  background: #25D366;
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.95rem;
  font-family: 'Raleway', sans-serif;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.25);
}

.btn-whatsapp-direct:hover {
  background: #20ba59;
  transform: translateY(-1px);
}

.btn-whatsapp-direct svg {
  width: 18px;
  height: 18px;
}

.form-success-alert {
  margin-top: 1rem;
  padding: 1rem;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: var(--radius-sm);
  color: #065f46;
  font-size: 0.88rem;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.4;
}

.form-success-alert svg {
  width: 18px;
  height: 18px;
  color: #059669;
  flex-shrink: 0;
  margin-top: 2px;
}

/* Responsividade Detalhes */
@media (max-width: 1024px) {
  .property-detail-body {
    flex-direction: column;
    gap: 2rem;
  }
  
  .detail-main-content,
  .detail-sidebar {
    width: 100%;
  }

  .detail-sidebar {
    position: static;
  }
}

@media (max-width: 768px) {
  .property-detail-page {
    padding: 160px 0 4rem; /* Mantendo padding-top de 160px para mobile */
  }

  .property-detail-breadcrumbs {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .property-detail-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  .header-left-info {
    flex: none;
    width: 100%;
  }

  .header-right-price {
    text-align: left;
    width: 100%;
  }

  .main-gallery-slider {
    height: 300px;
  }

  .slider-arrow {
    width: 38px;
    height: 38px;
  }

  .slider-arrow svg {
    width: 16px;
    height: 16px;
  }

  .arrow-left {
    left: 10px;
  }

  .arrow-right {
    right: 10px;
  }

  .detail-quick-specs {
    grid-template-columns: repeat(2, 1fr);
  }

  .detail-diferenciais-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .detail-section {
    padding: 1.5rem;
  }
}


/* ============================================
   AJUSTES ESPECÍFICOS DO WORDPRESS
   ============================================ */

/* Compensa a admin bar quando logado (navbar é fixa) */
.admin-bar .navbar { top: 32px; }
@media screen and (max-width: 782px) {
  .admin-bar .navbar { top: 46px; }
}

/* Classes de alinhamento nativas do WP */
.alignleft { float: left; margin: 0 1.5rem 1rem 0; }
.alignright { float: right; margin: 0 0 1rem 1.5rem; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 0.85rem; color: var(--text-secondary); text-align: center; padding: 0.4rem 0; }
.screen-reader-text {
  border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
  height: 1px; width: 1px; margin: -1px; overflow: hidden;
  padding: 0; position: absolute; word-wrap: normal !important;
}

/* Mensagem de "nenhum imóvel encontrado" */
.no-results-message {
  padding: 3rem 1.5rem;
  text-align: center;
  background: var(--surface-card, #fff);
  border: 1px solid var(--border, #e5e5e5);
  border-radius: var(--radius-md, 8px);
  color: var(--text-secondary, #666);
}
.no-results-message h3 { margin-bottom: 0.6rem; color: var(--text-primary, #222); }

/* Conteúdo de páginas comuns */
.page-content-wrapper { padding: 140px 0 60px; }
.page-content-wrapper .entry-content p { margin-bottom: 1.2rem; color: var(--text-secondary); line-height: 1.7; }
.page-content-wrapper h1 { margin-bottom: 1.5rem; }

/* ============================================
   FAVORITOS
   ============================================ */

/* Link do menu com contador */
.favoritos-link {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
}

.favoritos-link svg {
  width: 18px;
  height: 18px;
}

.favoritos-contador {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
}

.favoritos-contador.vazio {
  display: none;
}

/* Coração ativo: a cor (#ef4444) já vem das regras dos cards.
   Aqui só a animação ao marcar. */
.property-favorite.favorited svg,
.card-favorite.favorited svg {
  animation: amc-fav-pop 0.28s ease;
}

@keyframes amc-fav-pop {
  0%   { transform: scale(1); }
  45%  { transform: scale(1.28); }
  100% { transform: scale(1); }
}

/* Página de favoritos */
.favoritos-page {
  padding: 140px 0 80px;
  background: var(--surface);
  min-height: 60vh;
}

.favoritos-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 2.5rem;
}

.favoritos-header .section-label {
  justify-content: center;
  margin-bottom: 1rem;
}

.favoritos-header h1 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.6rem;
  line-height: 1.2;
}

.favoritos-header p {
  color: var(--text-secondary);
  line-height: 1.6;
}

.favoritos-aviso {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.favoritos-status {
  text-align: center;
  padding: 2.5rem 1rem;
  color: var(--text-secondary);
}

.favoritos-conteudo {
  max-width: 700px;
  margin: 0 auto 2rem;
  color: var(--text-secondary);
  text-align: center;
}

@media (max-width: 768px) {
  .favoritos-page {
    padding: 110px 0 50px;
  }

  .favoritos-link .favoritos-texto {
    display: inline;
  }
}

/* ============================================
   PÁGINA DE CONTATO
   ============================================ */
.contact-page {
  padding: 140px 0 80px;
  background: var(--surface);
}

.contact-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem;
}

.contact-header .section-label {
  justify-content: center;
  margin-bottom: 1rem;
}

.contact-header h1 {
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.8rem;
  line-height: 1.2;
}

.contact-header p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.7;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.contact-form-column,
.contact-info-column,
.contact-map-section {
  background: var(--surface-card, #fff);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 2.2rem;
  box-shadow: var(--shadow-sm);
}

.contact-map-section {
  margin-top: 2.5rem;
}

.contact-map-address {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 1.2rem;
}

.contact-map-address svg {
  width: 16px;
  height: 16px;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-map-embed {
  position: relative;
  width: 100%;
  height: 420px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #e2e8f0;
}

.contact-map-embed iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.contact-block-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  padding-bottom: 0.8rem;
  border-bottom: 2px solid var(--border);
}

/* ---------- Lista de informações ---------- */
.contact-info-list {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
}

.contact-info-list li {
  display: flex;
  gap: 12px;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--border);
}

.contact-info-list li:last-child {
  border-bottom: none;
}

.contact-info-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(14, 165, 233, 0.1);
  color: var(--accent);
  flex-shrink: 0;
}

.contact-info-icon svg {
  width: 18px;
  height: 18px;
}

.contact-info-list strong {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-secondary);
  margin-bottom: 3px;
}

.contact-info-list a,
.contact-info-list span {
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.95rem;
  line-height: 1.5;
  transition: var(--transition);
}

.contact-info-list a:hover {
  color: var(--accent);
}

.contact-info-list small {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 3px;
}

.btn-contact-whatsapp {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 0.9rem 1.2rem;
  border-radius: var(--radius-sm);
  background: #25d366;
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: var(--transition);
}

.btn-contact-whatsapp:hover {
  background: #1eb955;
  transform: translateY(-1px);
}

.contact-social {
  margin-top: 1.8rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.contact-social > strong {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-secondary);
  margin-bottom: 0.8rem;
}

.contact-social-links {
  display: flex;
  gap: 10px;
}

.contact-social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  transition: var(--transition);
}

.contact-social-links a:hover {
  background: var(--accent);
  transform: translateY(-2px);
}

/* ---------- Campos do Contact Form 7 ---------- */
.contact-form-wrapper .wpcf7-form p {
  margin-bottom: 1.1rem;
}

.contact-form-wrapper label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.contact-form-wrapper .wpcf7-form-control-wrap {
  display: block;
}

.contact-form-wrapper input[type="text"],
.contact-form-wrapper input[type="email"],
.contact-form-wrapper input[type="tel"],
.contact-form-wrapper input[type="url"],
.contact-form-wrapper select,
.contact-form-wrapper textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-sm);
  background: #fff;
  font-family: 'Raleway', sans-serif;
  font-size: 0.95rem;
  color: var(--text-primary);
  transition: var(--transition);
}

.contact-form-wrapper textarea {
  min-height: 140px;
  resize: vertical;
}

.contact-form-wrapper input:focus,
.contact-form-wrapper select:focus,
.contact-form-wrapper textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.contact-form-wrapper input::placeholder,
.contact-form-wrapper textarea::placeholder {
  color: var(--text-muted);
}

.contact-form-wrapper .wpcf7-submit {
  width: 100%;
  padding: 0.95rem 1.5rem;
  border: none;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  color: #fff;
  font-family: 'Raleway', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 12px var(--accent-glow);
}

.contact-form-wrapper .wpcf7-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px var(--accent-glow);
}

/* Campos em duas colunas */
.contact-form-wrapper .campo-duplo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
}

/* Mensagens de validação e retorno do CF7 */
.contact-form-wrapper .wpcf7 form .wpcf7-response-output {
  margin: 1.2rem 0 0;
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius-sm);
  border-width: 1px;
  font-size: 0.9rem;
}

.contact-form-wrapper .wpcf7 form.sent .wpcf7-response-output {
  border-color: #16a34a;
  background: #f0fdf4;
  color: #15803d;
}

.contact-form-wrapper .wpcf7 form.invalid .wpcf7-response-output,
.contact-form-wrapper .wpcf7 form.failed .wpcf7-response-output {
  border-color: #dc2626;
  background: #fef2f2;
  color: #b91c1c;
}

.contact-form-wrapper .wpcf7-not-valid-tip {
  display: block;
  margin-top: 5px;
  font-size: 0.82rem;
  color: #dc2626;
}

.contact-form-wrapper .wpcf7-not-valid {
  border-color: #dc2626 !important;
}

.contact-form-wrapper .wpcf7-spinner {
  margin: 0 auto;
  display: block;
}

@media (max-width: 992px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .contact-page {
    padding: 110px 0 50px;
  }

  .contact-form-column,
  .contact-info-column,
  .contact-map-section {
    padding: 1.5rem;
  }

  .contact-map-embed {
    height: 300px;
  }

  .contact-form-wrapper .campo-duplo {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   MAPA DA PÁGINA DO IMÓVEL
   ============================================ */
.detail-map-address {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.detail-map-address svg {
  width: 16px;
  height: 16px;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
}

.property-map-embed {
  position: relative;
  width: 100%;
  height: 380px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  background: #e2e8f0;
}

.property-map-embed iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.btn-map-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 1rem;
  padding: 0.7rem 1.3rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface-card);
  color: var(--text-primary);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  transition: var(--transition);
}

.btn-map-link svg {
  width: 16px;
  height: 16px;
  color: var(--accent);
}

.btn-map-link:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.btn-map-link:hover svg {
  color: #fff;
}

@media (max-width: 768px) {
  .property-map-embed {
    height: 280px;
  }
}

/* ============================================
   TIPOGRAFIA DOS PREÇOS – Roboto Black 900
   Vale para todo o site: card da home, resultados
   da busca (lista e grade) e página do imóvel.
   Inclui os spans gerados pelo plugin Contempo
   em ct_listing_price() (.listing-price*).
   ============================================ */
.property-price,
.card-price,
.detail-price-value,
.listing-price,
.results-container.layout-list .card-price,
.results-container.layout-grid .card-price,
.property-price-card .detail-price-value {
  font-family: 'Roboto', 'Raleway', sans-serif;
  font-weight: 900;
  letter-spacing: -0.02em;
}

/* Prefixo do valor ("A partir de") — Roboto em peso visualmente menor */
.listing-price-prefix {
  font-family: 'Roboto', 'Raleway', sans-serif;
  font-weight: 900;
  font-size: 0.7em;
  opacity: 0.85;
}

/* Sufixos ("/mês", "por mês") seguem na fonte do restante do layout */
.property-price small,
.card-price small,
.detail-price-value small,
.listing-price-postfix,
.results-container.layout-list .card-price small,
.results-container.layout-grid .card-price small,
.property-price-card .detail-price-value small {
  font-family: 'Raleway', sans-serif;
  font-weight: 500;
  letter-spacing: normal;
}
