/* ============================================================
   Mar Investimentos, Protótipo · Design System aplicado
   Paleta navy #002430 + verde #18A86C · Montserrat + Inter
   ============================================================ */
:root {
  --navy: #002430;
  --navy-2: #00303f;
  --navy-3: #001824;
  --navy-rgb: 0,36,48;
  --green: #18A86C;
  --green-light: #3ED596;
  --green-deep: #0F7A4C;
  --ink: #16242b;
  --muted: #5f7079;
  --line: #e2e8eb;
  --bg: #f4f7f8;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 12px 34px rgba(0, 36, 48, 0.12);
  --shadow-sm: 0 4px 16px rgba(0, 36, 48, 0.08);
  --head: "Montserrat", "Segoe UI", system-ui, sans-serif;
  --body: "Inter", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body { font-family: var(--body); color: var(--ink); background: var(--bg); line-height: 1.6; }
h1, h2, h3, h4, .logo-text { font-family: var(--head); }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.container { width: min(1180px, 92%); margin: 0 auto; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 24px; border-radius: 10px; border: none;
  font-weight: 600; font-size: 15px; cursor: pointer; font-family: var(--body);
  transition: transform .15s ease, box-shadow .15s ease, background .2s, filter .2s;
}
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-deep); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: #eef3f4; transform: translateY(-1px); }
.btn-outline { background: transparent; border: 1.5px solid rgba(255,255,255,.45); color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,.12); }
.btn-whats { background: #25d366; color: #fff; }
.btn-whats:hover { background: #1ebe5b; transform: translateY(-1px); }
.btn-block { width: 100%; justify-content: center; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--navy); color: #fff; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 78px; }
.logo img { height: 38px; width: auto; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { font-size: 15px; font-weight: 500; opacity: .9; transition: opacity .2s, color .2s; }
.nav a:hover, .nav a.active { opacity: 1; color: var(--green-light); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.menu-toggle { display: none; background: none; border: none; color: #fff; font-size: 26px; cursor: pointer; }

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #fff;
  background: linear-gradient(rgba(var(--navy-rgb),.78), rgba(var(--navy-rgb),.86)), var(--hero-img) center/cover;
  padding: 92px 0 124px;
}
.hero .eyebrow { color: var(--green-light); font-weight: 600; letter-spacing: 2px; font-size: 13px; text-transform: uppercase; }
.hero h1 { font-size: clamp(30px, 4.4vw, 52px); line-height: 1.12; font-weight: 800; max-width: 700px; margin-top: 14px; }
.hero p { font-size: 18px; opacity: .92; margin: 18px 0 0; max-width: 560px; }

/* ---------- Search box ---------- */
.search-box { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; margin-top: 38px; }
.search-tabs { display: flex; gap: 8px; margin-bottom: 18px; }
.search-tabs button {
  padding: 9px 22px; border-radius: 8px; border: none; cursor: pointer;
  font-weight: 600; font-size: 14px; background: var(--bg); color: var(--muted); font-family: var(--body); transition: all .2s;
}
.search-tabs button.active { background: var(--navy); color: #fff; }
.search-grid { display: grid; grid-template-columns: repeat(4, 1fr) auto; gap: 14px; align-items: end; }
.field label { display: block; font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 6px; text-transform: uppercase; letter-spacing: .5px; }
.field select, .field input {
  width: 100%; padding: 12px 13px; border: 1.5px solid var(--line); border-radius: 9px;
  font-size: 15px; font-family: var(--body); color: var(--ink); background: #fff;
}
.field select:focus, .field input:focus { outline: none; border-color: var(--green); }

/* ---------- Sections ---------- */
.section { padding: 74px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 46px; }
.section-head .eyebrow { color: var(--green); font-weight: 700; letter-spacing: 2px; font-size: 13px; text-transform: uppercase; }
.section-head h2 { font-size: clamp(26px, 3vw, 36px); margin: 10px 0 12px; color: var(--navy); }
.section-head p { color: var(--muted); font-size: 17px; }

/* ---------- Property cards ---------- */
.grid-imoveis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s; display: flex; flex-direction: column; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-media { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card:hover .card-media img { transform: scale(1.06); }
.badge { position: absolute; top: 14px; left: 14px; background: var(--green); color: #fff; font-size: 12px; font-weight: 700; padding: 5px 12px; border-radius: 20px; text-transform: uppercase; letter-spacing: .5px; }
.badge-finalidade { position: absolute; top: 14px; right: 14px; background: rgba(var(--navy-rgb),.88); color: #fff; font-size: 12px; font-weight: 600; padding: 5px 12px; border-radius: 20px; }
.card-body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.card-tipo { font-size: 12px; color: var(--green); font-weight: 700; text-transform: uppercase; letter-spacing: .6px; }
.card-body h3 { font-size: 18px; margin: 6px 0 4px; color: var(--navy); line-height: 1.3; font-weight: 700; }
.card-local { font-size: 14px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.card-local img { width: 14px; height: 14px; opacity: .5; }
.card-preco { font-size: 22px; font-weight: 800; color: var(--navy); margin: 14px 0 12px; font-family: var(--head); }
.card-specs { display: flex; gap: 16px; padding-top: 14px; margin-top: auto; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--muted); }
.card-specs span { display: flex; align-items: center; gap: 6px; }
.ico { width: 17px; height: 17px; opacity: .62; object-fit: contain; }

/* ---------- Banner bands (imagens reais) ---------- */
.banner-band { position: relative; min-height: 340px; display: flex; align-items: center; background-size: cover; background-position: center; color: #fff; }
.banner-band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(var(--navy-rgb),.55), rgba(var(--navy-rgb),.15)); }
.banner-band .container { position: relative; z-index: 1; }
.banner-band h2 { font-size: clamp(26px, 3.4vw, 40px); max-width: 540px; line-height: 1.15; margin-bottom: 18px; }

/* ---------- Sobre ---------- */
.sobre { background: var(--navy); color: #fff; }
.sobre .container { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.sobre h2 { font-size: clamp(26px, 3vw, 34px); margin-bottom: 16px; }
.sobre p { opacity: .9; margin-bottom: 16px; }
.sobre-img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4/3; }
.sobre-img img { width: 100%; height: 100%; object-fit: cover; }
.stats { display: flex; gap: 40px; margin-top: 26px; }
.stats .num { font-size: 34px; font-weight: 800; color: var(--green-light); font-family: var(--head); }
.stats .lbl { font-size: 13px; opacity: .8; }

/* ---------- Listagem ---------- */
.page-head { background: var(--navy); color: #fff; padding: 52px 0; }
.page-head h1 { font-size: 32px; }
.page-head .crumbs { font-size: 14px; opacity: .75; margin-bottom: 8px; }
.layout { display: grid; grid-template-columns: 290px 1fr; gap: 32px; padding: 44px 0; align-items: start; }
.filtros { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 24px; position: sticky; top: 98px; }
.filtros h3 { font-size: 17px; color: var(--navy); margin-bottom: 18px; }
.filtros .field { margin-bottom: 16px; }
.list-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; }
.list-toolbar .count { color: var(--muted); font-size: 15px; }
.list-toolbar .count b { color: var(--navy); }
.grid-imoveis.cols-2 { grid-template-columns: repeat(2, 1fr); }
.empty { background: #fff; border-radius: var(--radius); padding: 60px; text-align: center; color: var(--muted); }

/* ---------- Ficha do imóvel ---------- */
.detalhe { padding: 38px 0 70px; }
.det-crumbs { color: var(--muted); font-size: 14px; margin-bottom: 18px; }
.det-crumbs a:hover { color: var(--green); }
.gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 10px; border-radius: var(--radius); overflow: hidden; height: 460px; }
.gallery .g-main { grid-row: 1 / 3; }
.gallery img { width: 100%; height: 100%; object-fit: cover; cursor: pointer; transition: opacity .2s; }
.gallery img:hover { opacity: .9; }
.det-grid { display: grid; grid-template-columns: 1fr 360px; gap: 38px; margin-top: 34px; align-items: start; }
.det-main h1 { font-size: 28px; color: var(--navy); line-height: 1.25; }
.det-local { color: var(--muted); font-size: 16px; margin: 8px 0 18px; display: flex; align-items: center; gap: 7px; }
.det-local img { width: 16px; height: 16px; opacity: .5; }
.specs-row { display: flex; gap: 14px; flex-wrap: wrap; margin: 8px 0 30px; }
.spec-box { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; text-align: center; min-width: 96px; box-shadow: var(--shadow-sm); }
.spec-box img { width: 24px; height: 24px; opacity: .7; margin: 0 auto 8px; object-fit: contain; }
.spec-box .v { font-size: 20px; font-weight: 800; color: var(--navy); font-family: var(--head); }
.spec-box .l { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; }
.det-block { margin-bottom: 34px; }
.det-block h2 { font-size: 20px; color: var(--navy); margin-bottom: 14px; }
.det-block p { color: #44525f; }
.feat-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 22px; }
.feat-list li { list-style: none; display: flex; align-items: center; gap: 9px; color: #44525f; }
.feat-list li img { width: 16px; height: 16px; opacity: .7; }
#map { height: 340px; border-radius: var(--radius); border: 1px solid var(--line); }

.contato-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px; position: sticky; top: 98px; }
.preco-grande { font-size: 30px; font-weight: 800; color: var(--navy); font-family: var(--head); }
.preco-sub { color: var(--muted); font-size: 14px; margin-bottom: 18px; }
.custos { font-size: 14px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 14px; margin: 16px 0; }
.custos div { display: flex; justify-content: space-between; padding: 3px 0; }
.corretor-mini { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); margin-top: 4px; }
.corretor-mini img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
.corretor-mini .nome { font-weight: 700; color: var(--navy); }
.corretor-mini .creci { font-size: 12px; color: var(--muted); }

/* Marca + CTA no card de contato da ficha (sem foto de corretor) */
.contato-marca { background: var(--navy); border-radius: 12px; padding: 16px; display: flex; align-items: center; justify-content: center; margin: 16px 0 14px; border-top: 1px solid var(--line); }
.contato-marca img { height: 34px; width: auto; max-width: 80%; }
.contato-cta { font-family: var(--head); font-weight: 700; color: var(--navy); font-size: 16px; line-height: 1.3; text-align: center; margin: 0 0 10px; }
.form-contato { margin-top: 14px; }
.form-contato input, .form-contato textarea { width: 100%; padding: 12px; border: 1.5px solid var(--line); border-radius: 9px; font-family: var(--body); font-size: 14px; margin-bottom: 10px; }
.form-contato textarea { resize: vertical; min-height: 80px; }
.form-contato input:focus, .form-contato textarea:focus { outline: none; border-color: var(--green); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-3); color: #c3ccd4; padding: 56px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; }
.footer-logo { height: 36px; margin-bottom: 16px; }
.site-footer h4 { color: #fff; font-size: 16px; margin-bottom: 16px; }
.site-footer a, .site-footer p { font-size: 14px; opacity: .85; margin-bottom: 9px; }
.site-footer a { display: block; }
.site-footer a:hover { color: var(--green-light); opacity: 1; }
.foot-contato p { display: flex; align-items: center; gap: 9px; }
.foot-contato img { width: 15px; height: 15px; opacity: .8; filter: brightness(0) invert(1); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 40px; padding-top: 22px; text-align: center; font-size: 13px; opacity: .65; }

/* WhatsApp flutuante */
.whats-float { position: fixed; bottom: 24px; right: 24px; z-index: 60; width: 60px; height: 60px; border-radius: 50%; background: #25d366; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(37,211,102,.45); transition: transform .2s; }
.whats-float img { width: 30px; height: 30px; filter: brightness(0) invert(1); }
.whats-float:hover { transform: scale(1.08); }

/* ---------- Responsivo ---------- */
@media (max-width: 940px) {
  .nav, .nav-cta .btn-text { display: none; }
  .menu-toggle { display: block; }
  .nav.open { display: flex; position: absolute; top: 78px; left: 0; right: 0; flex-direction: column; background: var(--navy); padding: 18px 6%; gap: 16px; }
  .search-grid { grid-template-columns: 1fr 1fr; }
  .grid-imoveis, .grid-imoveis.cols-2 { grid-template-columns: 1fr 1fr; }
  .sobre .container { grid-template-columns: 1fr; }
  .layout { grid-template-columns: 1fr; }
  .filtros { position: static; }
  .det-grid { grid-template-columns: 1fr; }
  .contato-card { position: static; }
  .gallery { grid-template-columns: 1fr 1fr; grid-template-rows: 200px 200px; height: auto; }
  .gallery .g-main { grid-row: auto; grid-column: 1 / 3; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .search-grid { grid-template-columns: 1fr; }
  .grid-imoveis, .grid-imoveis.cols-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .stats { flex-wrap: wrap; gap: 24px; }
}

/* ===== Hero slideshow + busca em linha única ===== */
.hero { position: relative; overflow: hidden; padding: 0; }
.hero-slides { position: absolute; inset: 0; z-index: 0; }
.hero-slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity 1.1s ease; }
.hero-slide.active { opacity: 1; }
.hero-slides::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(var(--navy-rgb),.5), rgba(var(--navy-rgb),.72)); }
.hero-content { position: relative; z-index: 1; padding: 92px 0 104px; }
.hero-dots { display: flex; gap: 10px; margin-top: 26px; }
.hero-dots button { width: 11px; height: 11px; border-radius: 50%; border: none; background: rgba(255,255,255,.45); cursor: pointer; padding: 0; transition: all .2s; }
.hero-dots button.active { background: var(--green-light); transform: scale(1.15); }

.search-bar { display: flex; align-items: stretch; gap: 0; background: #fff; border-radius: 12px; box-shadow: var(--shadow); margin-top: 34px; padding: 8px; max-width: 920px; }
.sb-field { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 6px 16px; border-right: 1px solid var(--line); }
.sb-field label { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 2px; }
.sb-field select { border: none; background: transparent; font-family: var(--body); font-size: 15px; color: var(--ink); padding: 2px 0; cursor: pointer; outline: none; }
.search-bar .btn { margin-left: 8px; padding: 0 30px; border-radius: 9px; }
@media (max-width: 760px) {
  .hero-content { padding: 60px 0 68px; }
  .search-bar { flex-direction: column; padding: 12px; }
  .sb-field { border-right: none; border-bottom: 1px solid var(--line); padding: 10px 12px; }
  .search-bar .btn { margin: 10px 0 0; padding: 13px; }
}

/* ===== Lightbox da galeria ===== */
.gallery img { cursor: zoom-in; }
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(var(--navy-rgb),.96); display: none; align-items: center; justify-content: center; }
.lightbox.open { display: flex; }
.lightbox #lb-img { max-width: 90vw; max-height: 85vh; border-radius: 8px; box-shadow: 0 24px 70px rgba(0,0,0,.55); }
.lb-close { position: absolute; top: 20px; right: 28px; background: none; border: none; color: #fff; font-size: 44px; line-height: 1; cursor: pointer; opacity: .85; }
.lb-close:hover { opacity: 1; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 56px; height: 56px; border-radius: 50%; border: none; background: rgba(255,255,255,.13); color: #fff; font-size: 38px; line-height: 1; cursor: pointer; display: grid; place-items: center; transition: background .2s; }
.lb-nav:hover { background: var(--green); }
.lb-prev { left: 24px; }
.lb-next { right: 24px; }
.lb-count { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); color: #fff; font-size: 14px; background: rgba(0,0,0,.45); padding: 6px 14px; border-radius: 20px; }
@media (max-width: 560px) {
  .lb-nav { width: 44px; height: 44px; font-size: 28px; }
  .lb-prev { left: 10px; } .lb-next { right: 10px; }
  .lb-close { top: 12px; right: 16px; font-size: 36px; }
}

/* ===== Seção: bairros em destaque (bento) ===== */
.bairros-bento { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 215px; gap: 16px; }
.bcard { position: relative; display: block; border-radius: var(--radius); overflow: hidden; background: var(--navy); box-shadow: var(--shadow-sm); }
.bcard img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.bcard:hover img { transform: scale(1.06); }
.bcard::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 38%, rgba(var(--navy-rgb),.85)); }
.bcard .info { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 18px 20px; color: #fff; }
.bcard .info h3 { font-family: var(--head); font-size: 21px; font-weight: 800; margin-bottom: 3px; }
.bcard .info span { font-size: 13.5px; opacity: .92; display: inline-flex; align-items: center; gap: 6px; }
.bcard .tag-qt { background: var(--green); color: #fff; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 20px; position: absolute; top: 14px; left: 14px; z-index: 1; }
.bcard.feat { grid-row: span 2; }
@media (max-width: 760px) {
  .bairros-bento { grid-template-columns: 1fr 1fr; grid-auto-rows: 170px; }
  .bcard.feat { grid-row: span 1; }
}
@media (max-width: 480px) {
  .bairros-bento { grid-template-columns: 1fr; }
}

/* ===== Selos (badges coloridos) ===== */
.card-flags { position: absolute; top: 12px; left: 12px; z-index: 1; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.card-flags .badge { position: static; top: auto; left: auto; }
.det-selos { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0 6px; }
.det-selos .badge { position: static; }

/* assinatura no rodapé do site */
.footer-by { text-align: center; font-size: 12px; margin-top: 6px; }

/* Carrossel "Imóveis à venda" estilo netflix */
.secao-venda { padding-bottom: 74px; }
.secao-venda .section-head { text-align: center; max-width: 720px; margin: 0 auto 8px; }
.carrossel { position: relative; }
.carrossel-track { display: flex; gap: 22px; overflow-x: auto; scroll-behavior: smooth; scroll-snap-type: x proximity; padding: 14px max(4vw, calc((100vw - 1180px) / 2)); scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.carrossel-track::-webkit-scrollbar { height: 0; display: none; }
.carrossel-track .card { flex: 0 0 268px; width: 268px; scroll-snap-align: start; }
.carrossel-track .card-media { aspect-ratio: 3 / 4; }
.carrossel-nav { position: absolute; top: calc(50% + 7px); transform: translateY(-50%); z-index: 5; width: 48px; height: 48px; border-radius: 50%; border: none; background: var(--navy); color: #fff; font-size: 26px; line-height: 1; cursor: pointer; display: grid; place-items: center; box-shadow: 0 6px 18px rgba(0,0,0,.2); opacity: .94; transition: background .2s, transform .2s, opacity .2s; }
.carrossel-nav:hover { background: var(--green); transform: translateY(-50%) scale(1.06); }
.carrossel-nav.prev { left: 14px; }
.carrossel-nav.next { right: 14px; }
@media (max-width: 760px) {
  .carrossel-nav { display: none; }
  .carrossel-track { padding-inline: 4vw; }
  .carrossel-track .card { flex-basis: 74vw; width: 74vw; }
}

/* Seção de transição com parallax e CTA para corretores */
.secao-cta-parallax { position: relative; background-size: cover; background-position: center; background-attachment: fixed; color: #fff; text-align: center; padding: 116px 0; }
.secao-cta-parallax .overlay { position: absolute; inset: 0; background: linear-gradient(rgba(var(--navy-rgb),.74), rgba(var(--navy-rgb),.78)); }
.secao-cta-parallax .container { position: relative; z-index: 1; max-width: 760px; }
.secao-cta-parallax .eyebrow { color: var(--green-light); font-weight: 700; letter-spacing: 2px; font-size: 13px; text-transform: uppercase; }
.secao-cta-parallax h2 { font-size: clamp(28px, 3.4vw, 40px); margin: 12px 0 14px; color: #fff; line-height: 1.18; }
.secao-cta-parallax p { font-size: 17px; opacity: .92; margin: 0 auto 30px; max-width: 580px; }
@media (max-width: 760px) { .secao-cta-parallax { background-attachment: scroll; padding: 84px 0; } }

/* Mapa (Leaflet): isola o contexto de empilhamento para os controles (z-index 1000)
   não passarem por cima do header fixo */
.leaflet-container { position: relative; z-index: 0; }

/* Campo "Código" na busca da hero: mesmo visual dos selects (sem moldura) */
.search-bar .sb-codigo { max-width: 150px; flex: 0 0 auto; }
.sb-field input { border: none; background: transparent; font-family: var(--body); font-size: 15px; color: var(--ink); padding: 2px 0; outline: none; width: 100%; }
.sb-field input::placeholder { color: var(--muted); opacity: .75; font-weight: 400; }
@media (max-width: 760px) { .search-bar .sb-codigo { max-width: none; } }

/* ===== Favoritos ===== */
.fav-btn { position: absolute; bottom: 12px; right: 12px; z-index: 3; width: 38px; height: 38px; border-radius: 50%; border: none; background: rgba(255,255,255,.92); display: grid; place-items: center; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.18); transition: transform .15s, background .15s; padding: 0; }
.fav-btn:hover { transform: scale(1.08); background: #fff; }
.fav-btn svg { width: 19px; height: 19px; }
.fav-btn svg path { fill: none; stroke: #002430; stroke-width: 1.8; transition: fill .15s, stroke .15s; }
.fav-btn.on svg path { fill: #C0492B; stroke: #C0492B; }

/* Link Favoritos no header */
.nav-fav { display: inline-flex; align-items: center; gap: 6px; }
.fav-count { background: var(--green); color: #fff; font-size: 11px; font-weight: 700; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; line-height: 1; }

/* Botao favoritar na ficha */
.btn-fav { background: #fff; border: 1px solid var(--line); color: var(--navy); display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.btn-fav:hover { border-color: #C0492B; color: #C0492B; }
.btn-fav svg { width: 18px; height: 18px; }
.btn-fav svg path { fill: none; stroke: currentColor; stroke-width: 1.8; }
.btn-fav.on { border-color: #C0492B; color: #C0492B; background: #fff; }
.btn-fav.on svg path { fill: #C0492B; stroke: #C0492B; }

/* Bloco "Envie-me esta lista" */
.fav-envio { margin-top: 38px; background: var(--navy); color: #fff; border-radius: 16px; padding: 30px 28px; text-align: center; }
.fav-envio h3 { font-size: 22px; margin: 0 0 6px; color: #fff; }
.fav-envio .muted { color: rgba(255,255,255,.75); margin-bottom: 18px; }
.fav-form { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; position: relative; }
.fav-form input[type=email] { min-width: 280px; padding: 12px 16px; border-radius: 10px; border: none; font-size: 15px; }
.fav-msg { margin-top: 12px; font-size: 14px; color: var(--green-light); min-height: 18px; }
@media (max-width: 560px) { .fav-form input[type=email] { min-width: 0; width: 100%; } .fav-form .btn { width: 100%; } }

/* Código do imóvel no card */
.card-codigo { margin-left: auto; display: flex; align-items: center; font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: .3px; }

/* Redes sociais no rodapé (apenas ícones) */
.foot-redes { display: flex; gap: 12px; margin-top: 16px; flex-wrap: wrap; }
.foot-redes a { display: inline-flex; width: 38px; height: 38px; align-items: center; justify-content: center; border-radius: 50%; background: rgba(255,255,255,.10); color: #fff; transition: background .15s, transform .15s; }
.foot-redes a:hover { background: var(--green); transform: translateY(-2px); }
.foot-redes svg { width: 19px; height: 19px; }

/* Link Smart Brand no rodapé do site */
.footer-by a { color: inherit; text-decoration: none; }
.footer-by a:hover { text-decoration: underline; }

/* CTA de fechamento na ficha do imóvel */
.det-cta { position: relative; background-color: var(--navy); background-size: cover; background-position: center; background-attachment: fixed; text-align: center; padding: 92px 0; margin-top: 56px; overflow: hidden; }
.det-cta::before { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(var(--navy-rgb),.80), rgba(var(--navy-rgb),.86)); }
.det-cta .container { position: relative; z-index: 1; }
.det-cta .eyebrow { display: inline-block; color: var(--green-light); font-weight: 700; letter-spacing: 2px; font-size: 12px; text-transform: uppercase; margin-bottom: 12px; }
.det-cta h2 { color: #fff; font-size: clamp(24px, 3.2vw, 36px); max-width: 700px; margin: 0 auto 26px; line-height: 1.22; }
.det-cta .btn-whats { font-size: 16px; padding: 15px 32px; }
@media (max-width: 760px) { .det-cta { background-attachment: scroll; padding: 70px 0; } }

/* Banner de consentimento de cookies (LGPD) */
.cookie-consent { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 120; max-width: 940px; margin: 0 auto; background: var(--navy); color: #fff; border-radius: 12px; box-shadow: 0 12px 34px rgba(0,0,0,.32); padding: 14px 18px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.cookie-consent p { margin: 0; flex: 1; min-width: 220px; font-size: 13.5px; line-height: 1.5; color: rgba(255,255,255,.9); }
.cookie-consent a { color: var(--green-light); text-decoration: underline; }
.cc-actions { display: flex; gap: 10px; align-items: center; flex-shrink: 0; }
.cookie-consent .btn { padding: 10px 26px; font-size: 15px; }
.cc-recusar { background: none; border: none; color: rgba(255,255,255,.62); font-size: 13px; text-decoration: underline; cursor: pointer; padding: 8px 6px; font-family: var(--body); }
.cc-recusar:hover { color: rgba(255,255,255,.92); }
@media (max-width: 560px) {
  .cookie-consent { left: 8px; right: 8px; bottom: 8px; flex-direction: column; align-items: stretch; gap: 10px; padding: 14px; }
  .cc-actions { flex-direction: column-reverse; gap: 6px; }
  .cc-actions .btn { width: 100%; justify-content: center; }
  .cc-recusar { align-self: center; }
}
