/* ============================================================
   HMV Imobiliária — Stylesheet Principal
   Design: Minimalista, fundo branco, orientado à conversão
   ============================================================ */

/* ── RESET & BASE ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* ── Paleta Dourada HMV ── */
  --gold:        #C9A84C;
  --gold-light:  #FCD975;
  --gold-dark:   #9A6B1E;
  --gold-bg:     #FDF8EE;
  --gold-grad:   linear-gradient(135deg, #FCD975 0%, #C9A84C 50%, #9A6B1E 100%);
  --gold-shadow: 0 6px 24px rgba(201,168,76,.30);

  /* ── Escuros ── */
  --navy:        #111827;
  --navy-mid:    #1F2937;
  --dark-bg:     #0D1117;

  /* ── Verde HMV (cor do logótipo) ── */
  --teal:        #007655;
  --teal-mid:    #007655;
  --teal-light:  #007655;
  --teal-dark:   #007655;
  --teal-grad:   #007655;
  --teal-grad-r: #007655;
  --teal-bg:     #f0faf6;
  --teal-shadow: 0 6px 24px rgba(0,118,85,.28);

  /* ── Cinzentos ── */
  --gray-1:      #F9FAFB;
  --gray-2:      #E5E7EB;
  --gray-3:      #9CA3AF;
  --gray-4:      #6B7280;
  --gray-5:      #374151;
  --white:       #ffffff;

  /* ── Sombras ── */
  --shadow-sm:   0 2px 8px rgba(0,0,0,.07);
  --shadow-md:   0 4px 20px rgba(0,0,0,.10);
  --shadow-lg:   0 8px 40px rgba(0,0,0,.14);

  /* ── Misc ── */
  --radius:      10px;
  --radius-lg:   16px;
  --transition:  .22s ease;
  --font:        'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font);
  color: var(--navy-mid);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button, input, select, textarea { font-family: inherit; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── TIPOGRAFIA ───────────────────────────────────────────── */
h1,h2,h3,h4,h5 { font-weight: 700; line-height: 1.25; color: var(--navy); }
h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.25rem; }

.section-title { text-align: center; margin-bottom: 12px; }
.section-sub {
  text-align: center;
  color: var(--gray-4);
  max-width: 600px;
  margin: 0 auto 48px;
  font-size: .95rem;
  line-height: 1.7;
}

/* ── HEADER / NAVBAR ──────────────────────────────────────── */
header { position: relative; z-index: 1002; }
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1002;
  transition: background var(--transition), box-shadow var(--transition);
  padding: 0;
}
.navbar.scrolled {
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

/* ── Páginas sem hero: navbar sempre branca desde o início ── */
body.no-hero .navbar {
  background: var(--white);
  box-shadow: var(--shadow-sm);
}
body.no-hero .navbar .logo-img-hero   { display: none; }
body.no-hero .navbar .logo-img-scrolled { display: block; }
body.no-hero .navbar .nav-links a { color: var(--navy-mid); }
body.no-hero .navbar .nav-links a:hover { color: var(--gold); }
body.no-hero .navbar .lang-switcher a { color: var(--gray-4); }
body.no-hero .navbar .lang-switcher a.lang-active { color: var(--teal); font-weight: 700; }
body.no-hero .navbar .lang-switcher a:hover { color: var(--teal-mid); }
body.no-hero .navbar .lang-sep { color: var(--gray-3); }
body.no-hero .navbar .btn-outline-white {
  border-color: var(--navy-mid);
  color: var(--navy-mid) !important;
}
body.no-hero .navbar .btn-outline-white:hover {
  background: var(--teal);
  color: var(--white) !important;
}
.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 108px;
  gap: 24px;
  padding-top: 10px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0;
  flex-shrink: 0;
  transition: opacity var(--transition);
}
.logo:hover { opacity: .9; }
/* Logo hero: sobre fundo escuro do hero */
.logo-img-hero {
  height: 100px;
  width: auto;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,.35));
}
/* Logo navbar scrolled: sobre fundo branco */
.logo-img-scrolled {
  height: 90px;
  width: auto;
  display: none;
  object-fit: contain;
}
.navbar.scrolled .logo-img-hero   { display: none; }
.navbar.scrolled .logo-img-scrolled { display: block; }
.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}
.nav-links a {
  font-size: .92rem;
  font-weight: 500;
  color: rgba(255,255,255,.9);
  transition: color var(--transition);
}
.navbar.scrolled .nav-links a { color: var(--navy-mid); }
.nav-links a:hover { color: var(--gold-light); }
.navbar.scrolled .nav-links a:hover { color: var(--gold); }

.nav-cta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  position: relative;
  z-index: 1001;
}
.btn-outline-white {
  border: 1.5px solid rgba(255,255,255,.7);
  color: var(--white) !important;
  padding: 8px 20px;
  border-radius: 50px;
  font-size: .88rem;
  font-weight: 500;
  transition: all var(--transition);
}
.navbar.scrolled .btn-outline-white {
  border-color: var(--navy-mid);
  color: var(--navy-mid) !important;
}
.btn-outline-white:hover {
  background: var(--white);
  color: var(--navy) !important;
}

/* ── BOTÕES GLOBAIS ───────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: .92rem;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}
.btn-green, .btn-gold {
  background: var(--gold-grad);
  color: var(--navy);
  font-weight: 700;
}
.btn-green:hover, .btn-gold:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
  box-shadow: var(--gold-shadow);
}
.btn-navy {
  background: var(--teal);
  color: var(--white);
}
.btn-navy:hover {
  background: var(--teal-mid);
  transform: translateY(-1px);
}
.btn-outline-gold, .btn-outline-green {
  background: transparent;
  border: 2px solid var(--gold);
  color: var(--gold);
}
.btn-outline-gold:hover, .btn-outline-green:hover {
  background: var(--gold-grad);
  color: var(--navy);
  border-color: transparent;
}
.btn-lg { padding: 15px 36px; font-size: 1rem; }
.btn-sm { padding: 8px 18px; font-size: .83rem; }
.btn-outline-navy {
  background: transparent;
  border: 1.5px solid var(--navy);
  color: var(--navy);
}
.btn-outline-navy:hover {
  background: var(--teal);
  color: var(--white);
  border-color: var(--teal);
}

/* ── SCROLL TO TOP ────────────────────────────────────────── */
#scrollTopBtn {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 1500;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--gold-grad);
  color: var(--navy);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: 0 4px 14px rgba(0,0,0,.22);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity .3s, transform .3s;
}
#scrollTopBtn.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
#scrollTopBtn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(0,0,0,.3);
}

/* ── HERO SECTION ─────────────────────────────────────────── */
.hero {
  position: relative;
  background: linear-gradient(
    to bottom,
    rgba(13,17,23,.78) 0%,
    rgba(13,17,23,.52) 55%,
    rgba(13,17,23,.80) 100%
  ), url('https://images.unsplash.com/photo-1564013799919-ab600027ffc6?w=1800&q=85') center/cover no-repeat;
  text-align: center;
  /* Padding generoso em baixo para os cards sobreporem */
  padding: 100px 24px 260px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
/* fade branco no rodapé do hero (por baixo dos cards) */
.hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 200px;
  background: linear-gradient(to top, var(--white) 0%, transparent 100%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  width: 100%;
}

.hero-badge { display: none; } /* Removido por pedido do cliente */

.hero h1 {
  color: var(--white);
  font-size: clamp(2.4rem, 5.5vw, 3.8rem);
  font-weight: 800;
  letter-spacing: -.8px;
  line-height: 1.15;
  margin-bottom: 20px;
  text-shadow: 0 2px 20px rgba(0,0,0,.35);
}
.hero h1 em {
  font-style: normal;
  background: var(--gold-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  color: rgba(255,255,255,.88);
  font-size: 1.15rem;
  margin-bottom: 44px;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 0 1px 8px rgba(0,0,0,.3);
  line-height: 1.7;
}

/* ── SEARCH BOX ───────────────────────────────────────────── */
.search-box {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(0,0,0,.30);
  padding: 32px 36px 0;
  text-align: left;
  margin-top: 16px;
  max-width: 980px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  border-top: 3px solid var(--gold);
  overflow: hidden;
}

.search-row {
  display: grid;
  grid-template-columns: 1.9fr 1.1fr 1fr auto;
  gap: 14px;
  align-items: end;
}

.search-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.search-field label {
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--gray-4);
}
.search-field input,
.search-field select {
  height: 48px;
  border: 1.5px solid var(--gray-2);
  border-radius: var(--radius);
  padding: 0 14px;
  font-size: .92rem;
  color: var(--navy);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}
.search-field input::placeholder { color: var(--gray-3); }
.search-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236c757d' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}
.search-field input:focus,
.search-field select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,168,76,.15);
}

.search-btn-wrap {
  padding-bottom: 0;
  display: flex;
  align-items: flex-end;
}
.search-btn-wrap .btn {
  height: 48px;
  width: 100%;
  padding: 0 24px;
  border-radius: var(--radius);
  font-size: .92rem;
  gap: 7px;
  justify-content: center;
  white-space: nowrap;
}

/* Filtros avançados */
.advanced-toggle {
  display: flex;
  justify-content: flex-end;
  margin-top: 12px;
}
.advanced-toggle button {
  background: none;
  border: none;
  color: var(--gray-4);
  font-size: .83rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px 0;
  transition: color var(--transition);
}
.advanced-toggle button:hover { color: var(--gold); }

.advanced-panel {
  display: none;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 16px;
  padding-top: 16px;
  padding-bottom: 24px;
  border-top: 1px solid var(--gray-2);
}
.advanced-panel.open { display: grid; }

/* Stats DENTRO da search-box */
.search-box-stats {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  margin-top: 20px;
  padding: 18px 36px;
  border-top: 1px solid var(--gray-2);
  background: var(--gold-bg);
  margin-left: -36px;
  margin-right: -36px;
}
.search-box-stats .stat-item {
  flex: 1;
  text-align: center;
  padding: 4px 12px;
}
.search-box-stats .stat-num {
  font-size: 1.6rem;
  font-weight: 800;
  background: var(--gold-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}
.search-box-stats .stat-lbl {
  font-size: .75rem;
  color: var(--gray-4);
  margin-top: 4px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.stat-divider {
  width: 1px;
  height: 36px;
  background: var(--gray-2);
  flex-shrink: 0;
}
/* Manter compatibilidade com hero-stats legado (EN pages, etc.) */
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-top: 32px;
  position: relative;
  z-index: 2;
}
.hero-stats .stat-item { text-align: center; }
.hero-stats .stat-num {
  font-size: 1.9rem;
  font-weight: 800;
  background: var(--gold-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}
.hero-stats .stat-lbl { font-size: .8rem; color: rgba(255,255,255,.75); margin-top: 5px; font-weight: 500; }

/* ── HERO FEATURED CARDS (3 imóveis em destaque no hero) ──── */
/* Os cards ficam DENTRO do hero (padding-bottom: 260px),
   centrados horizontalmente, no fundo do hero   */
.hero-featured-cards {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  max-width: 1140px;
  width: calc(100% - 48px);
  /* Saem do padding-bottom do hero e sobrepõem a secção branca */
  margin: 32px auto -180px;
}

.hero-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 12px 48px rgba(0,0,0,.28);
  border: 1px solid rgba(255,255,255,.18);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}
.hero-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0,0,0,.35);
}

.hero-card-img-link { display: block; }

/* ── Hero Card: slider wrapper replaces old bg-image div ─── */
.hero-card-img-wrap {
  position: relative;
  height: 190px;
  overflow: hidden;
  display: block;
}
.hero-card-img-wrap .hero-card-img-link {
  display: block;
  height: 100%;
}
.hero-card-img-wrap .hc-slide-img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: opacity .22s ease;
}

/* gradient overlay on top of <img> */
.hero-card-img-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13,17,23,.55) 0%, transparent 50%);
  pointer-events: none;
  z-index: 1;
}

/* Slider prev/next buttons */
.hc-slide-prev,
.hc-slide-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  background: rgba(255,255,255,.82);
  border: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .65rem;
  color: var(--navy);
  opacity: 0;
  transition: opacity .2s ease, background .2s ease;
  backdrop-filter: blur(4px);
}
.hc-slide-prev { left: 8px; }
.hc-slide-next { right: 8px; }
.hero-card-img-wrap:hover .hc-slide-prev,
.hero-card-img-wrap:hover .hc-slide-next { opacity: 1; }
.hc-slide-prev:hover,
.hc-slide-next:hover { background: var(--white); }

/* Dots */
.hc-slide-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 5px;
  z-index: 4;
}
.hc-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,.55);
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
  border: none;
}
.hc-dot.active {
  background: var(--gold);
  transform: scale(1.25);
}

/* badge/fav z-index above overlay */
.hero-card-img-wrap .hero-card-badge { z-index: 3; }
.hero-card-img-wrap .hero-card-fav   { z-index: 3; }

.hero-card-img {
  height: 190px;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}
.hero-card-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13,17,23,.55) 0%, transparent 50%);
}

.hero-card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  background: var(--gold-grad);
  color: var(--navy);
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 4px 10px;
  border-radius: 20px;
}

.hero-card-fav {
  position: absolute;
  top: 10px;
  right: 12px;
  z-index: 2;
  background: rgba(255,255,255,.88);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), transform var(--transition);
  backdrop-filter: blur(4px);
}
.hero-card-fav::before {
  content: '\f004';
  font-family: 'Font Awesome 6 Free';
  font-weight: 400;
  font-size: .85rem;
  color: var(--gold-dark);
}
.hero-card-fav.active::before {
  font-weight: 900;
  color: var(--gold);
}
.hero-card-fav:hover {
  background: var(--white);
  transform: scale(1.1);
}

.hero-card-body {
  padding: 14px 16px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hero-card-title {
  font-size: .88rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--navy);
  margin: 0;
}
.hero-card-title a {
  color: inherit;
  transition: color var(--transition);
}
.hero-card-title a:hover { color: var(--gold-dark); }

.hero-card-loc {
  font-size: .75rem;
  color: var(--gray-4);
  display: flex;
  align-items: center;
  gap: 4px;
}

.hero-card-specs {
  display: flex;
  gap: 12px;
  font-size: .75rem;
  color: var(--gray-4);
  flex-wrap: wrap;
}
.hero-card-specs span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.hero-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--gray-2);
}

.hero-card-price {
  font-size: 1rem;
  font-weight: 800;
  background: var(--gold-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.hero-card-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: .75rem;
  font-weight: 600;
  color: var(--navy);
  background: var(--gold-bg);
  border: 1px solid rgba(201,168,76,.3);
  border-radius: 6px;
  padding: 5px 12px;
  transition: background var(--transition), color var(--transition);
}
.hero-card-btn:hover {
  background: var(--gold-grad);
  color: var(--navy);
  border-color: transparent;
}

/* ── SECÇÕES ──────────────────────────────────────────────── */
section { padding: 80px 0; }
section:nth-child(even) { background: var(--gray-1); }

/* A primeira section depois do hero precisa de padding-top extra para acomodar os hero-cards */
.hero + #imoveis-destaque,
.hero + #featured-properties { padding-top: 220px; }

/* ── PROPERTY CARDS ───────────────────────────────────────── */
.property-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 0;
}

.property-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  border: 1px solid var(--gray-2);
}
.property-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.card-img {
  position: relative;
  height: 220px;
  overflow: hidden;
}
.card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.property-card:hover .card-img img { transform: scale(1.05); }

.card-badge {
  position: absolute;
  top: 14px; left: 14px;
  background: var(--gold-grad);
  color: var(--navy);
  font-size: .73rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.card-badge.vendido { background: var(--gray-4); color: var(--white); }

.card-fav {
  position: absolute;
  top: 14px; right: 14px;
  width: 34px; height: 34px;
  background: rgba(255,255,255,.9);
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--gray-3);
  font-size: .95rem;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}
.card-fav:hover, .card-fav.active { color: #e74c3c; background: var(--white); }
.card-fav.active::before { content: '♥'; }
.card-fav:not(.active)::before { content: '♡'; }

.card-ref {
  position: absolute;
  bottom: 10px; left: 14px;
  background: rgba(0,0,0,.55);
  color: rgba(255,255,255,.9);
  font-size: .7rem;
  padding: 2px 8px;
  border-radius: 4px;
}

.card-body { padding: 18px 20px 20px; }

.card-cat {
  display: inline-block;
  background: var(--gold-bg);
  color: var(--gold-dark);
  font-size: .73rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 50px;
  margin-bottom: 10px;
  text-transform: capitalize;
  border: 1px solid rgba(201,168,76,.25);
}

.card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 5px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-location {
  font-size: .82rem;
  color: var(--gray-4);
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 14px;
}
/* O ícone de localização é gerado via FA no PHP — não usar ::before emoji */

.card-specs {
  display: flex;
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid var(--gray-2);
  border-bottom: 1px solid var(--gray-2);
  margin-bottom: 14px;
}
.spec-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: .82rem;
  color: var(--gray-4);
  white-space: nowrap;
}
.spec-item .icon { font-size: .85rem; }

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.card-price {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--gold-dark);
}
.card-price.negociavel::after {
  content: ' *';
  font-size: .75rem;
  color: var(--gray-3);
}

/* ── FEATURED / DESTAQUE ──────────────────────────────────── */
#imoveis-destaque { background: var(--white); }

/* ── CONTACT / CTA BANNER ─────────────────────────────────── */
.cta-banner {
  background: var(--white) !important;
  padding: 80px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
/* Barra dourada decorativa — removida a pedido do cliente */
.cta-banner::before { display: none; }
.cta-banner h2 {
  color: var(--navy) !important;
  position: relative;
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
}
.cta-banner p {
  color: var(--gray-4) !important;
  margin: 12px 0 36px;
  position: relative;
  font-size: 1rem;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
}
.cta-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ── MODAL CONTACTO / VISITA ──────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26,34,53,.65);
  backdrop-filter: blur(3px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}
.modal-overlay.open { opacity: 1; pointer-events: all; }

.modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px;
  width: 100%;
  max-width: 520px;
  transform: translateY(20px);
  transition: transform var(--transition);
  position: relative;
}
.modal-overlay.open .modal { transform: translateY(0); }

.modal-close {
  position: absolute;
  top: 16px; right: 20px;
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--gray-3);
  line-height: 1;
  transition: color var(--transition);
}
.modal-close:hover { color: var(--navy); }

.modal h3 { margin-bottom: 6px; }
.modal .modal-sub { color: var(--gray-4); font-size: .88rem; margin-bottom: 24px; }

.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  font-size: .8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--gray-4);
  margin-bottom: 6px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  border: 1.5px solid var(--gray-2);
  border-radius: var(--radius);
  padding: 11px 14px;
  font-size: .92rem;
  color: var(--navy);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  background: var(--white);
}
.form-group textarea { height: 90px; resize: vertical; }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(46,204,113,.12);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: .83rem;
  color: var(--gray-4);
  margin-top: 14px;
  cursor: pointer;
  line-height: 1.55;
}
.form-check input[type="checkbox"] {
  width: 15px;
  height: 15px;
  margin-top: 2px;       /* empurra o checkbox para alinhar com 1ª linha */
  flex-shrink: 0;
  accent-color: var(--gold);
  cursor: pointer;
}
/* Span envolve todo o texto — flui normalmente como bloco inline */
.form-check .check-text {
  flex: 1;
  display: inline;
}

/* ── DETALHE DO IMÓVEL ────────────────────────────────────── */
.property-detail-hero {
  height: 55vh;
  min-height: 380px;
  background: var(--gray-1);
  position: relative;
  overflow: hidden;
}
.property-detail-hero img {
  width: 100%; height: 100%; object-fit: cover;
}

.detail-content { padding: 48px 0 80px; }
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 40px;
  align-items: start;
}

.detail-specs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 28px 0;
}
.detail-spec {
  background: var(--gray-1);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
}
.detail-spec .lbl { font-size: .75rem; color: var(--gray-4); margin-bottom: 4px; text-transform: uppercase; letter-spacing: .05em; }
.detail-spec .val { font-size: 1.05rem; font-weight: 700; color: var(--navy); }

.sticky-card {
  position: sticky;
  top: 90px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 28px;
  border: 1px solid var(--gray-2);
}
.sticky-card .price {
  font-size: 2rem;
  font-weight: 800;
  color: var(--gold-dark);
  margin-bottom: 6px;
}
.sticky-card .ref { font-size: .8rem; color: var(--gray-4); margin-bottom: 20px; }
.sticky-card .btn { width: 100%; justify-content: center; margin-bottom: 10px; }
.sticky-card hr { border: none; border-top: 1px solid var(--gray-2); margin: 18px 0; }
.agent-mini { display: flex; align-items: center; gap: 12px; }
.agent-mini .avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--gold-grad);
  display: flex; align-items: center; justify-content: center;
  color: var(--navy); font-weight: 700; font-size: 1rem;
  flex-shrink: 0;
}
.agent-mini .name { font-weight: 600; font-size: .88rem; }
.agent-mini .role { font-size: .78rem; color: var(--gray-4); }

/* ── GALERIA ──────────────────────────────────────────────── */
.gallery-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: repeat(2, 180px);
  gap: 8px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 32px;
}
.gallery-grid .main-photo { grid-row: 1 / 3; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; cursor: pointer; transition: opacity var(--transition); }
.gallery-grid img:hover { opacity: .88; }
.gallery-more {
  position: relative;
  cursor: pointer;
}
.gallery-more::after {
  content: '+' attr(data-more) ' fotos';
  position: absolute;
  inset: 0;
  background: rgba(26,34,53,.65);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 1rem;
}

/* ── LISTAGEM ─────────────────────────────────────────────── */
.listing-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  padding: 20px 0;
  border-bottom: 1px solid var(--gray-2);
  flex-wrap: wrap;
  gap: 14px;
}
.listing-count { font-size: .9rem; color: var(--gray-4); }
.listing-count strong { color: var(--navy); }

.sort-select {
  height: 40px;
  border: 1.5px solid var(--gray-2);
  border-radius: var(--radius);
  padding: 0 14px;
  font-size: .87rem;
  color: var(--navy);
  background: var(--white);
  cursor: pointer;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  padding-right: 32px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236c757d' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
}

/* Paginação */
.pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 48px;
  flex-wrap: wrap;
}
.page-btn {
  width: 40px; height: 40px;
  border-radius: var(--radius);
  border: 1.5px solid var(--gray-2);
  background: var(--white);
  cursor: pointer;
  font-size: .87rem;
  font-weight: 500;
  color: var(--navy);
  transition: all var(--transition);
  display: flex; align-items: center; justify-content: center;
}
.page-btn:hover, .page-btn.active {
  background: var(--gold-grad);
  border-color: var(--gold);
  color: var(--navy);
  font-weight: 700;
}

/* ── FOOTER ───────────────────────────────────────────────── */
footer {
  background: #007655;
  color: rgba(255,255,255,.75);
  padding: 60px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
}
.footer-brand .logo { color: var(--white); margin-bottom: 22px; }
.footer-brand p { font-size: .88rem; line-height: 1.7; max-width: 260px; margin-top: 8px; }

.footer-col h4 {
  color: var(--white);
  font-size: .88rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 18px;
  font-weight: 700;
}
.footer-col ul li {
  margin-bottom: 10px;
}
.footer-col ul li a {
  font-size: .87rem;
  transition: color var(--transition);
}
.footer-col ul li a:hover { color: var(--gold-light); }

.footer-contact li {
  display: flex;
  align-items: center;   /* centra icon + texto na mesma linha */
  gap: 10px;
  margin-bottom: 12px;
  font-size: .87rem;
}
/* Ícones FA inline nos <li> do footer-contact */
.footer-contact li > i {
  width: 16px;
  text-align: center;
  flex-shrink: 0;
  font-size: .85rem;
  color: var(--gold);
  /* remover margin-right inline se existir via style= */
  margin-right: 0 !important;
}

.social-links {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}
.social-link {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center;
  font-size: .9rem;
  transition: background var(--transition), color var(--transition);
  color: rgba(255,255,255,.75);
}
.social-link:hover { background: var(--gold-grad); color: var(--navy); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .8rem;
  color: rgba(255,255,255,.45);
  flex-wrap: wrap;
  gap: 10px;
}
.footer-bottom a { color: rgba(255,255,255,.45); transition: color var(--transition); }
.footer-bottom a:hover { color: var(--gold-light); }

/* ── TOAST NOTIFICATIONS ──────────────────────────────────── */
.toast-container {
  position: fixed;
  bottom: 24px; right: 24px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.toast {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .88rem;
  font-weight: 500;
  min-width: 280px;
  transform: translateX(120%);
  transition: transform .3s ease;
  border-left: 4px solid var(--gold);
}
.toast.show { transform: translateX(0); }
.toast.error { border-left-color: #e74c3c; }
.toast .toast-icon { font-size: 1.1rem; }

/* ── LOADING SKELETON ─────────────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg, var(--gray-2) 25%, var(--gray-1) 50%, var(--gray-2) 75%);
  background-size: 400% 100%;
  animation: skeleton-loading 1.4s ease infinite;
  border-radius: var(--radius);
}
@keyframes skeleton-loading {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}
.skeleton-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--gray-2);
}
.skeleton-img { height: 220px; }
.skeleton-body { padding: 18px; }
.skeleton-line { height: 14px; margin-bottom: 10px; }
.skeleton-line.w-60 { width: 60%; }
.skeleton-line.w-40 { width: 40%; }

/* ── MOBILE MENU ──────────────────────────────────────────── */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}
.navbar.scrolled .hamburger span { background: var(--navy); }

/* ── SECÇÃO FEATURES / PORQUE ESCOLHER ────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  margin-top: 0;
}
.feature-card {
  background: var(--white);
  border: 1px solid var(--gray-2);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
  cursor: default;
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gold-grad);
  transform: scaleX(0);
  transition: transform .3s ease;
  transform-origin: left;
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--gold-shadow);
  border-color: rgba(201,168,76,.3);
}
.feature-card:hover::before { transform: scaleX(1); }
.feature-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--gold-bg);
  border: 2px solid rgba(201,168,76,.25);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  transition: background .28s ease, border-color .28s ease;
}
.feature-icon svg {
  width: 28px; height: 28px;
  stroke: var(--gold-dark);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke .28s ease;
}
/* Hover: ícone NÃO muda — apenas borda e sombra do card */
.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}
.feature-card p {
  font-size: .88rem;
  color: var(--gray-4);
  line-height: 1.65;
}

/* ── FORMULÁRIO DE CONTACTO ────────────────────────────────── */
.contact-section {
  background: var(--gray-1);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 60px;
  align-items: start;
}
.contact-info h2 { margin-bottom: 16px; }
.contact-info p { color: var(--gray-4); line-height: 1.7; margin-bottom: 32px; }
.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
}
.contact-detail-icon {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--gold-bg);
  border: 1px solid rgba(201,168,76,.3);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-detail-icon svg {
  width: 20px; height: 20px;
  stroke: var(--gold-dark);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.contact-detail-text strong { display: block; font-size: .85rem; font-weight: 700; color: var(--navy); }
.contact-detail-text span { font-size: .88rem; color: var(--gray-4); }
.contact-form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
  border-top: 3px solid var(--gold);
}
.contact-form-card h3 { margin-bottom: 24px; }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,168,76,.12);
}
.form-check input[type="checkbox"] { accent-color: var(--gold); }

/* ── PÁGINA FAVORITOS ────────────────────────────────────────── */
.favorites-page { padding: 40px 0 80px; min-height: 60vh; }
.favorites-empty {
  text-align: center;
  padding: 80px 20px;
  color: var(--gray-4);
}
.favorites-empty svg {
  width: 72px; height: 72px;
  stroke: var(--gray-3);
  fill: none;
  stroke-width: 1.2;
  margin: 0 auto 20px;
  display: block;
}
.favorites-empty h2 { color: var(--gray-5); margin-bottom: 10px; }

/* ── LANG SWITCHER ───────────────────────────────────────────── */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: .83rem;
}
.lang-switcher a {
  padding: 3px 8px;
  border-radius: 4px;
  font-weight: 600;
  color: rgba(255,255,255,.7);
  transition: all var(--transition);
}
.lang-switcher a.active,
.lang-switcher a:hover {
  color: var(--gold-light);
}
.navbar.scrolled .lang-switcher a { color: var(--gray-4); }
.navbar.scrolled .lang-switcher a.active,
.navbar.scrolled .lang-switcher a:hover { color: var(--teal); }
.navbar.scrolled .lang-switcher a.lang-active { color: var(--teal); font-weight: 700; }
.lang-sep { color: rgba(255,255,255,.3); font-weight: 300; }
.navbar.scrolled .lang-sep { color: var(--gray-3); }

/* ── RESPONSIVO ───────────────────────────────────────────── */
/* ================================================================
   RESPONSIVE — Tablet (≤992px)
   ================================================================ */
@media (max-width: 992px) {
  .property-grid       { grid-template-columns: repeat(2, 1fr); }
  .search-row          { grid-template-columns: 1fr 1fr; }
  .search-btn-wrap     { grid-column: 1 / -1; }
  .search-btn-wrap .btn { width: 100%; justify-content: center; }
  .footer-grid         { grid-template-columns: 1fr 1fr; }
  .detail-grid         { grid-template-columns: 1fr; }
  .advanced-panel      { grid-template-columns: repeat(2, 1fr); }
  .features-grid       { grid-template-columns: repeat(2, 1fr); }
  .contact-grid        { grid-template-columns: 1fr; gap: 40px; }
  
  
  
  
  
  /* Hero cards — tablet: 3 colunas mais compactas */
  .hero-featured-cards { gap: 14px; }
  .hero-card-img       { height: 160px; }
  /* Navbar: reduzir logo e altura */
  .navbar-inner        { height: 72px; }
  .logo-img-hero,
  .logo-img-scrolled   { height: 90px; }
}

/* ================================================================
   RESPONSIVE — Mobile (≤768px)
   ================================================================ */
@media (max-width: 768px) {

  /* ── NAVBAR ── */
  .navbar-inner {
    height: 64px;
    gap: 8px;
    padding: 0 4px;
  }
  .logo-img-hero,
  .logo-img-scrolled   { height: 46px; }

  /* Ocultar lang switcher no mobile para não encher a navbar */
  .lang-switcher       { display: none; }

  /* Ocultar botão WhatsApp texto — só ícone */
  .btn-outline-white   { display: none; }

  /* Botão CTA navbar — só ícone no mobile */
  .btn-nav-cta {
    padding: 8px 10px;
    font-size: 0;
    gap: 0;
  }
  .btn-nav-cta i       { font-size: .95rem; }

  /* Favoritos badge menor */
  .nav-fav-link        { width: 32px; height: 32px; font-size: .95rem; }

  /* Hamburger */
  .nav-links           { display: none; }
  .hamburger           { display: flex; }
  .hamburger span      { background: var(--white); }
  .navbar.scrolled .hamburger span,
  body.no-hero .navbar .hamburger span { background: var(--navy); }

  /* Menu móvel aberto */
  .nav-links.mobile-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 64px; left: 0; right: 0;
    background: var(--white);
    padding: 8px 20px 20px;
    gap: 0;
    box-shadow: var(--shadow-md);
    z-index: 1050;
    border-top: 2px solid var(--gold);
  }
  .nav-links.mobile-open li { width: 100%; }
  .nav-links.mobile-open a {
    display: block;
    color: var(--navy-mid);
    padding: 14px 0;
    border-bottom: 1px solid var(--gray-2);
    font-size: 1rem;
    font-weight: 500;
  }
  .nav-links.mobile-open li:last-child a { border-bottom: none; }

  /* ── HERO ── */
  .hero {
    padding: 90px 20px 200px;
    text-align: center;
  }
  .hero h1 {
    font-size: clamp(1.9rem, 8vw, 2.6rem);
    letter-spacing: -.3px;
    margin-bottom: 14px;
  }
  .hero-sub {
    font-size: .97rem;
    margin-bottom: 28px;
    line-height: 1.65;
  }
  .hero::after { height: 130px; }

  /* Search box no hero */
  .search-box {
    padding: 20px 16px 0;
    border-radius: 14px;
    margin-top: 10px;
  }
  .search-row          { grid-template-columns: 1fr; gap: 10px; }
  .search-btn-wrap     { grid-column: 1; padding-bottom: 4px; }
  .search-field input,
  .search-field select { height: 50px; font-size: .95rem; }
  .search-btn-wrap .btn { height: 50px; font-size: .95rem; }

  /* Stats dentro da search box */
  .search-box-stats {
    padding: 14px 16px;
    margin-left: -16px;
    margin-right: -16px;
    gap: 0;
  }
  .search-box-stats .stat-item  { padding: 4px 6px; }
  .search-box-stats .stat-num   { font-size: 1.25rem; }
  .search-box-stats .stat-lbl   { font-size: .68rem; }
  .stat-divider                 { height: 28px; }

  /* ── HERO FEATURED CARDS — swipe horizontal ── */
  .hero-featured-cards {
    grid-template-columns: repeat(3, 80vw);
    overflow-x: auto;
    overflow-y: visible;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 10px;
    scrollbar-width: none;
    gap: 14px;
    margin: 20px auto -130px;
    width: calc(100% - 32px);
  }
  .hero-featured-cards::-webkit-scrollbar { display: none; }
  .hero-card { scroll-snap-align: start; }
  .hero-card-img { height: 180px; }
  .hero + #imoveis-destaque,
  .hero + #featured-properties { padding-top: 170px; }

  /* ── SECTIONS ── */
  section { padding: 56px 0; }
  .section-title { font-size: clamp(1.5rem, 5.5vw, 2rem); }
  .section-sub   { font-size: .9rem; margin-bottom: 36px; }

  /* ── PROPERTY GRID ── */
  .property-grid { grid-template-columns: 1fr; gap: 20px; }

  /* Cards: imagem maior, body mais espaçado */
  .card-img      { height: 210px; }
  .card-body     { padding: 16px 18px 18px; }
  .card-title    { font-size: 1.02rem; }
  .card-price    { font-size: 1.15rem; }
  .card-footer   { flex-wrap: wrap; gap: 10px; }
  .card-footer .btn { flex: 1; justify-content: center; min-width: 120px; }

  /* ── FEATURES GRID ── */
  .features-grid { grid-template-columns: 1fr; gap: 16px; }

  /* ── CTA BANNER ── */
  .cta-banner    { padding: 56px 20px; }
  .cta-buttons   { flex-direction: column; align-items: stretch; gap: 12px; }
  .cta-buttons .btn { justify-content: center; }

  /* ── FOOTER ── */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 36px;
    padding-bottom: 36px;
  }
  .footer-brand p    { max-width: 100%; }
  .footer-col h4     { margin-bottom: 12px; }
  .footer-col ul li  { margin-bottom: 8px; }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 8px;
    padding: 16px 0;
  }

  /* ── MODALS ── */
  .modal         { padding: 28px 20px; }
  .form-row      { grid-template-columns: 1fr; }

  /* ── DETAIL PAGE ── */
  .detail-specs-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .gallery-grid  { grid-template-columns: 1fr; grid-template-rows: auto; }
  .gallery-grid .main-photo { grid-row: auto; }
  .sticky-card   { position: static; margin-top: 32px; }

  /* ── LISTING PAGE ── */
  .advanced-panel { grid-template-columns: 1fr; }
  .listing-header { flex-direction: column; align-items: flex-start; gap: 10px; }
  .sort-select    { width: 100%; }

  /* ── CONTACT PAGE ── */
  .contact-info-card { padding: 28px 20px; }
  .contact-form-card { padding: 28px 20px; }
}

/* ================================================================
   RESPONSIVE — Small Mobile (≤480px)
   ================================================================ */
@media (max-width: 480px) {
  .container     { padding: 0 16px; }
  section        { padding: 48px 0; }

  .hero {
    padding: 82px 16px 210px;
  }
  .hero h1       { font-size: clamp(1.75rem, 9vw, 2.2rem); }
  .hero-sub      { font-size: .92rem; }

  .search-box    { padding: 18px 14px 0; border-radius: 12px; }
  .search-box-stats { margin-left: -14px; margin-right: -14px; padding: 12px 14px; }
  .search-box-stats .stat-num  { font-size: 1.1rem; }
  .search-box-stats .stat-lbl  { font-size: .63rem; }

  .hero-featured-cards {
    grid-template-columns: repeat(3, 86vw);
    margin: 16px auto -115px;
  }
  .hero + #imoveis-destaque,
  .hero + #featured-properties { padding-top: 155px; }

  .section-title { font-size: clamp(1.4rem, 7vw, 1.8rem); }

  /* Cards full-width, imagem ligeiramente mais alta */
  .card-img      { height: 200px; }
  .card-specs    { gap: 10px; }
  .spec-item     { font-size: .79rem; }

  /* Footer — condensar */
  .footer-grid   { gap: 28px; }
  .social-links  { gap: 8px; }
  .social-link   { width: 34px; height: 34px; font-size: .85rem; }

  /* Modal */
  .modal { padding: 24px 16px; }

  /* Toast menor */
  .toast { min-width: unset; width: calc(100vw - 32px); font-size: .83rem; }
  .toast-container { right: 16px; bottom: 16px; }

  /* Scroll top btn — menor */
  #scrollTopBtn { width: 40px; height: 40px; font-size: .95rem; bottom: 16px; right: 16px; }
}

/* ── UTILITÁRIOS ──────────────────────────────────────────── */
.text-center { text-align: center; }
.text-green  { color: var(--gold); }
.text-gold   { color: var(--gold); }
.gold-grad-text {
  background: var(--gold-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-32 { margin-bottom: 32px; }
.fw-bold { font-weight: 700; }
.fw-600 { font-weight: 600; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-8 { gap: 8px; }
.gap-16 { gap: 16px; }
.hidden { display: none !important; }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); border: 0;
}

/* ── NAV CTA GOLD ─────────────────────────────────────────── */
.btn-nav-cta {
  background: var(--gold-grad);
  color: var(--navy);
  font-weight: 700;
  padding: 9px 22px;
  border-radius: 50px;
  font-size: .88rem;
  display: flex;
  align-items: center;
  gap: 7px;
  transition: filter var(--transition), transform var(--transition), box-shadow var(--transition);
  border: none;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}
.btn-nav-cta:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
  box-shadow: var(--gold-shadow);
}

/* ── CARD FAV (favoritos) ─────────────────────────────────── */
.card-fav:hover, .card-fav.active { color: #e74c3c; background: var(--white); }

/* ── NAV — ícone favoritos ───────────────────────────────── */
.nav-fav-link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: rgba(255,255,255,.85);
  font-size: 1.05rem;
  transition: color var(--transition), background var(--transition);
}
.nav-fav-link:hover { color: var(--gold-light); }
.navbar.scrolled .nav-fav-link { color: var(--gray-4); }
.navbar.scrolled .nav-fav-link:hover { color: var(--gold); }

.nav-fav-count {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  background: var(--gold-grad);
  color: var(--navy);
  font-size: .65rem;
  font-weight: 700;
  border-radius: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  line-height: 1;
}

/* ── lang-switcher — estado ativo ────────────────────────── */
.lang-switcher a.lang-active { color: var(--gold-light); font-weight: 700; }
.navbar.scrolled .lang-switcher a.lang-active { color: var(--gold); }

/* ── Contact Info Card ───────────────────────────────────── */
.contact-info-card {
  background: var(--gold-bg);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  border: 1.5px solid rgba(201,168,76,.18);
}
.contact-info-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
}
.contact-info-card > p {
  color: var(--gray-4);
  margin-bottom: 28px;
  font-size: .95rem;
}
.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.contact-info-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.contact-info-icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  background: var(--gold-grad);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  font-size: .9rem;
}
.contact-info-label {
  display: block;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--gray-3);
  font-weight: 600;
  margin-bottom: 2px;
}
.contact-info-list a {
  color: var(--navy-mid);
  font-weight: 500;
  font-size: .92rem;
  transition: color var(--transition);
}
.contact-info-list a:hover { color: var(--gold); }

/* ── Favorites Page ──────────────────────────────────────── */
.favorites-header { text-align: center; margin-bottom: 16px; }
.favorites-header h1 { font-size: 2rem; color: var(--navy); font-weight: 800; }
.favorites-header p  { color: var(--gray-4); margin-top: 8px; }

.favorites-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.favorites-empty-icon {
  font-size: 4rem;
  color: var(--gray-2);
  margin-bottom: 20px;
}

/* ── Formulário feedback (sucesso / erro) ────────────────── */
.form-success {
  background: #f0fdf4;
  border: 1.5px solid #86efac;
  color: #166534;
  border-radius: var(--radius);
  padding: 14px 16px;
  font-size: .9rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.form-error {
  background: #fef2f2;
  border: 1.5px solid #fca5a5;
  color: #991b1b;
  border-radius: var(--radius);
  padding: 14px 16px;
  font-size: .9rem;
  display: flex;
  align-items: center;
  gap: 8px;
}



/* ── Secção "Porque HMV" — fundo alternado ───────────────── */
#porque-hmv,
#why-hmv {
  background: var(--gray-1);
}

/* ── Secção Imóveis em Destaque — fundo branco ───────────── */
#imoveis-destaque,
#featured-properties {
  background: var(--white);
}


/* ── NAV FAVORITOS LINK ───────────────────────────────────── */
.nav-fav-link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: rgba(255,255,255,.85);
  font-size: 1.1rem;
  transition: color var(--transition), background var(--transition);
  text-decoration: none;
}
.nav-fav-link:hover { color: var(--gold-light); }
.navbar.scrolled .nav-fav-link { color: var(--gray-4); }
.navbar.scrolled .nav-fav-link:hover { color: var(--gold); }
.nav-fav-count {
  position: absolute;
  top: 0; right: 0;
  background: var(--gold);
  color: var(--navy);
  font-size: .62rem;
  font-weight: 800;
  width: 16px; height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* ── LANG SWITCHER (active state) ────────────────────────── */
.lang-switcher a.lang-active {
  color: var(--gold-light);
  font-weight: 700;
}
.navbar.scrolled .lang-switcher a.lang-active { color: var(--gold); }

/* ── PAGE HERO (inner pages) ─────────────────────────────── */
.page-hero {
  background: #007655;
  padding: 80px 0 48px;
  margin-top: 68px;
}
.page-hero h1 {
  color: var(--white);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: 8px;
}
.page-hero p {
  color: rgba(255,255,255,.65);
  font-size: 1rem;
}

/* ── CONTACT INFO CARD ────────────────────────────────────── */
.contact-info-card {
  background: #007655;
  border-radius: var(--radius-lg);
  padding: 40px;
  color: var(--white);
}
.contact-info-card h3 {
  color: var(--white);
  margin-bottom: 12px;
  font-size: 1.3rem;
}
.contact-info-card > p {
  color: rgba(255,255,255,.65);
  font-size: .93rem;
  line-height: 1.7;
  margin-bottom: 32px;
}
.contact-info-list {
  list-style: none;
  padding: 0; margin: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.contact-info-list li {
  display: flex;
  align-items: center;
  gap: 16px;
}
.contact-info-icon {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(201,168,76,.15);
  border: 1px solid rgba(201,168,76,.3);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: var(--gold);
  font-size: 1rem;
}
.contact-info-label {
  display: block;
  font-size: .75rem;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 2px;
}
.contact-info-list a,
.contact-info-list span {
  color: rgba(255,255,255,.85);
  font-size: .93rem;
  text-decoration: none;
}
.contact-info-list a:hover { color: var(--gold-light); text-decoration: underline; }

/* ── FORM SUCCESS / ERROR ─────────────────────────────────── */
.form-success {
  background: #f0fdf4;
  border: 1px solid #86efac;
  color: #166534;
  border-radius: var(--radius);
  padding: 14px 18px;
  font-size: .93rem;
  display: flex;
  align-items: center;
  gap: 10px;
}
.form-error {
  background: #fef2f2;
  border: 1px solid #fca5a5;
  color: #991b1b;
  border-radius: var(--radius);
  padding: 14px 18px;
  font-size: .93rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ── BREADCRUMB ───────────────────────────────────────────── */
.breadcrumb { margin-bottom: 16px; }
.breadcrumb ol {
  list-style: none;
  padding: 0; margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.breadcrumb ol li { font-size: .85rem; color: rgba(255,255,255,.55); }
.breadcrumb ol li:not(:last-child)::after { content: '/'; margin-left: 8px; }
.breadcrumb ol li a { color: rgba(255,255,255,.75); text-decoration: none; }
.breadcrumb ol li a:hover { color: var(--gold-light); }
.breadcrumb ol li[aria-current="page"] { color: var(--gold-light); font-weight: 600; }

/* ── FAVORITES PAGE ───────────────────────────────────────── */
.favorites-page { padding: 60px 0; }
.favorites-empty {
  text-align: center;
  padding: 80px 20px;
  max-width: 520px;
  margin: 0 auto;
}
.favorites-empty-icon {
  font-size: 4rem;
  color: var(--gold);
  margin-bottom: 24px;
  opacity: .5;
}
.favorites-empty h2 {
  color: var(--navy);
  margin-bottom: 14px;
  font-size: 1.5rem;
}
.favorites-empty p {
  color: var(--gray-4);
  line-height: 1.7;
  margin-bottom: 32px;
}

/* ── HERO H1 EM (gold highlight) ─────────────────────────── */
.hero h1 em {
  font-style: normal;
  background: var(--gold-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── RESPONSIVE contact-info-card ────────────────────────── */
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
  .contact-info-card { padding: 32px 24px; }
  .contact-form-card { padding: 32px 24px; }
}
@media (max-width: 640px) {
  
  
  .nav-fav-link { width: 32px; height: 32px; font-size: 1rem; }
}

/* ── Nav lang mobile \u2014 s\u00f3 aparece quando menu est\u00e1 aberto \u2500\u2500\u2500\u2500\u2500\u2500 */
@media (max-width: 768px) {
  .nav-links.mobile-open .nav-lang-mobile { display: list-item !important; }
}

/* ── Feature card \u2014 garantir padding adequado mobile \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */
@media (max-width: 768px) {
  .feature-card { padding: 24px 20px; }
  
  
}

/* ── Card Image Slider ──────────────────────────────────────── */
.card-slider { position: relative; overflow: hidden; }

/* Prev / Next arrow buttons */
.card-slide-prev,
.card-slide-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  background: rgba(255, 255, 255, .88);
  border: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  font-size: .8rem;
  opacity: 0;
  transition: opacity .2s ease, background .2s ease, transform .2s ease;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  box-shadow: 0 2px 8px rgba(0,0,0,.18);
  pointer-events: auto;
}
.card-slider:hover .card-slide-prev,
.card-slider:hover .card-slide-next { opacity: 1; }
.card-slide-prev:hover,
.card-slide-next:hover {
  background: rgba(255, 255, 255, 1);
  transform: translateY(-50%) scale(1.08);
}
.card-slide-prev { left: 10px; }
.card-slide-next { right: 10px; }

/* Dot indicators */
.card-slide-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 5px;
  z-index: 4;
  pointer-events: auto;
}
.card-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .55);
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
  border: none;
  padding: 0;
}
.card-dot.active {
  background: #ffffff;
  transform: scale(1.35);
}
.card-dot:hover { background: rgba(255, 255, 255, .85); }

/* Card slide link fills the container */
.card-slide-link {
  display: block;
  width: 100%;
  height: 100%;
}
.card-slide-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity .25s ease;
}

/* Always show arrows on touch/mobile (no :hover) */
@media (max-width: 768px) {
  .card-slide-prev,
  .card-slide-next {
    opacity: .85;
    width: 30px;
    height: 30px;
    font-size: .75rem;
  }
  .card-slide-prev { left: 7px; }
  .card-slide-next { right: 7px; }
}

/* ═══════════════════════════════════════════════════════════════
   HOMEPAGE BANNER CTA — secção entre hero e destaques
   ═══════════════════════════════════════════════════════════════ */

.homepage-banner {
  position: relative;
  width: 100%;
  height: clamp(320px, 42vw, 560px);
  overflow: hidden;
  display: flex;
  align-items: center;
}

/* Imagem de fundo — ocupa 100% */
.homepage-banner-img {
  position: absolute;
  inset: 0;
  background-image: url('../images/banner-consultor.jpg');
  background-size: cover;
  background-position: center 20%;
  z-index: 0;
}

/* Overlay subtil: só na metade esquerda, para o texto ter contraste sem tapar a pessoa */
.homepage-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(1, 30, 20, 0.62) 0%,
    rgba(1, 30, 20, 0.42) 38%,
    rgba(1, 30, 20, 0.10) 60%,
    transparent 80%
  );
  z-index: 1;
}

/* Container de conteúdo */
.homepage-banner-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
}

/* Caixa de texto — lado esquerdo, ~38% da largura */
.homepage-banner-text-box {
  width: 38%;
  min-width: 240px;
  max-width: 460px;
}

/* Texto principal — tamanho adapta-se via JS */
.hb-text {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
  margin: 0;
  text-shadow: 0 2px 12px rgba(0,0,0,.35);
  /* tamanho base — JS vai ajustar dinamicamente */
  font-size: clamp(1.5rem, 3.2vw, 2.6rem);
  letter-spacing: -.01em;
}

/* Linha dourada decorativa abaixo do texto */
.hb-text::after {
  content: '';
  display: block;
  width: 48px;
  height: 4px;
  background: var(--gold);
  border-radius: 2px;
  margin-top: 18px;
}

/* Responsivo tablet */
@media (max-width: 900px) {
  .homepage-banner {
    height: clamp(260px, 50vw, 400px);
  }
  .homepage-banner-content {
    padding: 0 24px;
  }
  .homepage-banner-text-box {
    width: 52%;
  }
  .homepage-banner-overlay {
    background: linear-gradient(
      to right,
      rgba(1, 30, 20, 0.72) 0%,
      rgba(1, 30, 20, 0.48) 50%,
      transparent 80%
    );
  }
}

/* Responsivo mobile */
@media (max-width: 600px) {
  .homepage-banner {
    height: auto;
    min-height: 220px;
    align-items: flex-end;
    padding-bottom: 28px;
  }
  .homepage-banner-img {
    background-position: 70% center;
  }
  .homepage-banner-overlay {
    background: linear-gradient(
      to top,
      rgba(1, 30, 20, 0.80) 0%,
      rgba(1, 30, 20, 0.50) 50%,
      transparent 100%
    );
  }
  .homepage-banner-content {
    padding: 0 20px;
    align-items: flex-end;
  }
  .homepage-banner-text-box {
    width: 100%;
    max-width: 100%;
  }
  .hb-text {
    font-size: clamp(1.3rem, 5.5vw, 1.8rem);
  }
}