:root{
  /* Updated palette for a clean, minimal aesthetic inspired by the Figma design. */
  --brand:#000000;        /* primary accent colour for call‑to‑actions */
  --brand2:#000000;
  --ink:#0f172a;          /* default dark text */
  --text:#0f172a;         /* body copy colour */
  --muted:#64748b;        /* subdued text for secondary information */
  --line:#e5e7eb;         /* light border colour */
  --bg:#ffffff;           /* page background */
  --white:#ffffff;        /* white for cards and elements */
  --green:#00c389;        /* retained for status chips */
}

*{box-sizing:border-box}
html,body{margin:0;padding:0;font-family:'Inter',system-ui,Segoe UI,Roboto,Arial,sans-serif;color:var(--text);background:var(--bg);font-weight:300}
a{color:inherit;text-decoration:none}
img{max-width:100%;display:block}
.wrap{max-width:1180px;margin:0 auto;padding:0 16px}
.center{text-align:center}
.mt24{margin-top:24px}
.w100{width:100%}
.muted{color:var(--muted)}
.micro{font-size:12px}

/* TOP BAR */
.topbar{background:#f0f6ff;border-bottom:1px solid #e5eefc;font-size:14px}
.topbar .wrap{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 16px}
.topbar .dot{width:8px;height:8px;border-radius:50%;background:#00c389;display:inline-block;margin-right:8px}
.sep{opacity:.5;margin:0 8px}
.wa{color:#0aa34f;font-weight:600}

/* NAV */
.nav{background:var(--white);position:sticky;top:0;z-index:20;border-bottom:1px solid var(--line)}
.nav-inner{display:flex;align-items:center;gap:16px;padding:12px 0}
.brand{display:flex;align-items:center;gap:10px;color:var(--brand)}
.logo{width:28px;height:28px}
.brand-text{font-weight:800;font-size:22px;letter-spacing:.5px}
.menu{display:flex;gap:18px}
.menu a{padding:10px 6px;border-radius:8px}
.menu a:hover{background:#eef5ff}
.nav-actions{margin-left:auto;display:flex;align-items:center;gap:12px}
.search{display:flex;gap:8px;align-items:center}
.search input{height:38px;padding:0 12px;border:1px solid var(--line);border-radius:10px;min-width:320px}
.btn{display:inline-flex;align-items:center;justify-content:center;height:38px;padding:0 14px;border-radius:10px;font-weight:600;border:1px solid transparent;cursor:pointer;transition:.2s;white-space:nowrap}
.btn-primary{background:var(--brand);color:#fff;border-color:var(--brand)}
.btn-primary:hover{filter:brightness(.95)}
.btn-light{background:#eef5ff;border-color:#d6e6ff;color:var(--brand)}
.btn-ghost{background:#fff;border-color:var(--line);color:var(--ink)}
.btn-secondary{background:#fff;border:1px solid var(--line);color:var(--ink)} /* "Meus Anúncios" */
.fav{position:absolute;right:10px;top:10px;background:#fff;border:1px solid var(--line);width:34px;height:34px;border-radius:50%;cursor:pointer}

/* ---- box “Olá, {nome} / Sair” (injetado pelo script.js) ---- */
.nav-userbox{display:flex;align-items:center;gap:8px;margin-left:4px}
.nav-userbox .btn{height:32px;padding:0 10px}

/* HERO */
.hero{background:linear-gradient(135deg,var(--brand) 0%,var(--brand2) 100%);color:#fff}
.hero-inner{padding:48px 0 28px}
.hero h1{font-size:42px;line-height:1.1;margin:0 0 8px}
.hero .highlight{color:#cde6ff}
.hero p{opacity:.95;margin:0 0 18px}
.hero-cta{display:flex;gap:12px;margin-bottom:22px}
.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}
.stat{background:rgba(255,255,255,.12);backdrop-filter:blur(3px);padding:16px;border-radius:12px;text-align:center}
.stat .number{font-size:22px;font-weight:800}
.stat .label{font-size:12px;opacity:.9}

/* SECTIONS */
.section{padding:44px 0}
.section h2{margin:0 0 6px;font-size:28px}
.section p{margin:0 0 18px}

/* ===================== CARROSSEL BASE ===================== */
.scroller{
  display:flex;
  gap:20px;
  overflow-x:auto;
  scroll-behavior:smooth;
  scroll-snap-type:x mandatory;
  scroll-padding: 1px;
  padding: 6px 28px 14px;
  align-items:stretch;
}
.scroller::-webkit-scrollbar{height:10px}
.scroller::-webkit-scrollbar-thumb{background:#d9e6ff;border-radius:6px}

.carousel{position:relative}
.carousel::before,.carousel::after{
  content:"";position:absolute;top:0;bottom:0;width:56px;pointer-events:none;z-index:3
}
.carousel::before{left:0;background:linear-gradient(90deg,rgba(246,248,251,1),rgba(246,248,251,0))}
.carousel::after{right:0;background:linear-gradient(270deg,rgba(246,248,251,1),rgba(246,248,251,0))}
.caro-btn{
  position:absolute;top:50%;transform:translateY(-50%);
  width:44px;height:44px;border-radius:999px;border:1px solid var(--line);
  background:#fff;box-shadow:0 6px 18px rgba(16,41,80,.16);
  display:grid;place-items:center;font-size:24px;color:#0f172a;z-index:4;cursor:pointer
}
.caro-btn:hover{filter:brightness(.97)}
.caro-btn[disabled]{opacity:.45;cursor:not-allowed}
.caro-btn.prev{left:-22px}
.caro-btn.next{right:-22px}

/* ===================== BAIRROS ===================== */
.bairro-card{
  min-width:360px;width:360px;
  background:#fff;border:1px solid var(--line);border-radius:16px;overflow:hidden;
  scroll-snap-align:start;box-shadow:0 6px 16px rgba(16,41,80,.06);
  display:flex;flex-direction:column;transition:transform .2s, box-shadow .2s;
}
.bairro-card:hover{transform:translateY(-2px);box-shadow:0 10px 22px rgba(16,41,80,.10)}
.bairro-card img{height:180px;object-fit:cover}
.bairro-body{padding:14px;display:flex;flex-direction:column}
.bairro-top{display:flex;align-items:center;gap:8px;margin-bottom:6px}
.pill{background:#eef5ff;color:var(--brand);border:1px solid #d6e6ff;padding:3px 8px;border-radius:999px;font-size:12px}
.kv{list-style:none;padding:0;margin:10px 0 14px;display:grid;gap:4px}
.bairro-body .btn-primary.w100{margin-top:auto}

/* ===================== DESTAQUES ===================== */
.scroller.imoveis{padding-bottom:8px}
.scroller.imoveis .imovel-card{min-width:360px;width:360px;flex:0 0 auto}
.imovel-card{
  position:relative;background:#fff;border:1px solid var(--line);border-radius:16px;overflow:hidden;
  scroll-snap-align:start;box-shadow:0 6px 16px rgba(16,41,80,.06);
  display:flex;flex-direction:column;transition:transform .2s, box-shadow .2s;
}
.imovel-card:hover{transform:translateY(-2px);box-shadow:0 10px 22px rgba(16,41,80,.10)}
.imovel-card img{height:220px;object-fit:cover}
.imovel-body{padding:14px;display:flex;flex-direction:column;min-height:240px}
.imovel-body h3{margin:0 0 8px}
.price{color:var(--brand);font-weight:800;margin-bottom:6px}
.meta{font-size:14px;color:var(--muted);margin-bottom:8px}
.imovel-body p.muted{flex:1}
/* Remove the original pill-style tag definitions and replace with a rectangular style via overrides below */


/* ===================== REVIEWS COMPACTOS ===================== */
.reviews{gap:16px;padding:6px 6px 10px}
.review-card{
  min-width:320px;width:320px;background:#fff;border:1px solid var(--line);border-radius:14px;
  padding:14px;scroll-snap-align:start;box-shadow:0 4px 12px rgba(16,41,80,.07);
  display:flex;flex-direction:column;gap:10px
}
.review-card p{margin:0}
.stars{color:#ffb703}
.who{display:flex;gap:10px;align-items:center}
.avatar{width:32px;height:32px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;background:#e7f0ff;color:var(--brand);font-weight:700}

/* NEWSLETTER / FORM */
.newsletter{background:linear-gradient(135deg,#e9f2ff,#f7fbff)}
.card.form{background:#fff;border:1px solid var(--line);border-radius:16px;padding:16px}
.card.form input:not([type="checkbox"]), .card.form select{
  width:100%;height:42px;border:1px solid var(--line);border-radius:10px;padding:0 12px;margin-bottom:10px
}
.card.form input[type="checkbox"]{width:18px;height:18px;margin-top:4px}
.card.form .check{display:flex;gap:10px;align-items:flex-start;margin:6px 0 12px}
.ticks{list-style:none;padding:0;margin:10px 0 16px}
.ticks li{padding-left:22px;position:relative;margin:6px 0}
.ticks li::before{content:"✓";position:absolute;left:0;top:0;color:#00a86b}

/* Chips (telefones Laura/Juliana) */
.cta-chip-row{display:flex;gap:10px;flex-wrap:wrap}
.chip{display:inline-flex;align-items:center;gap:8px;background:#eef5ff;border:1px solid #d6e6ff;color:var(--brand);padding:8px 12px;border-radius:999px;font-weight:600}
.wa-chip{background:#e9fff4;border-color:#b8f3d8;color:#107a4f}

/* FOOTER */
.footer{background:#081a33;color:#cfd8ea;margin-top:8px}
.footer .wrap{padding:28px 16px}
.footer-grid{display:grid;grid-template-columns:1.1fr .8fr .8fr;gap:24px}
.brand-footer{display:flex;align-items:center;gap:10px;color:#fff;margin-bottom:8px}
.footer h4{margin:0 0 10px;color:#fff}
.links{list-style:none;padding:0;margin:0;display:grid;gap:8px}
.links.cols{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 16px}
.social{display:flex;gap:10px;margin-top:8px}
.copy{text-align:center;padding:12px;border-top:1px solid rgba(255,255,255,.1);font-size:13px;color:#aab3c7}

/* Responsivo */
@media (max-width:1024px){
  .footer-grid{grid-template-columns:1fr 1fr}
  .nav-actions .search input{min-width:220px}
  .scroller.imoveis .imovel-card{min-width:320px;width:320px}
  .bairro-card{min-width:320px;width:320px}
}
@media (max-width:640px){
  .menu{display:none}
  .stats{grid-template-columns:repeat(2,1fr)}
  .footer-grid{grid-template-columns:1fr}
  .hero h1{font-size:34px}
  .scroller.imoveis .imovel-card{min-width:86%;width:86%}
  .bairro-card{min-width:86%;width:86%}
  .review-card{min-width:86%;width:86%}
  .caro-btn{width:40px;height:40px}
  .caro-btn.prev{left:-18px}
  .caro-btn.next{right:-18px}
}
/* ===== Verificação por e-mail (chip + toast) ===== */
.verify-chip{
  display:inline-flex;align-items:center;gap:8px;
  padding:6px 10px;border-radius:10px;
  background:#fff7e6;border:1px solid #ffe3b3;color:#7a4b00;
  margin-left:8px;
}

/* ------------------------------------------------------------------ */
/*                            Figma Overrides                          */
/* These rules override and extend the existing styles to match the    */
/* attached Figma design. They aim for a clean, modern look with      */
/* thin typography, subtle borders and generous spacing.              */

/* Hide the old top bar entirely */
.topbar{display:none}

/* NAVIGATION */
.nav{background:var(--white);border-bottom:1px solid var(--line);position:sticky;top:0;z-index:20}
.nav-inner{display:flex;align-items:center;gap:24px;min-height:72px}
.menu a{color:var(--ink);font-weight:500;font-size:14px;padding:8px 6px;border-radius:6px;transition:color .2s ease}
.menu a:hover{color:#475569}
.nav-actions{display:flex;align-items:center;gap:12px;margin-left:auto}
.nav-actions .btn{height:36px;padding:0 16px;border-radius:8px;font-size:14px;line-height:1;font-weight:500;cursor:pointer;transition:background .2s, color .2s, border-color .2s}
.btn-primary{background:var(--ink);color:var(--white);border:1px solid var(--ink)}
.btn-primary:hover{filter:brightness(.95)}
.btn-outline{background:transparent;color:var(--ink);border:1px solid var(--ink)}
.btn-outline:hover{background:rgba(0,0,0,.05)}
.btn-outline-light{background:transparent;color:var(--white);border:1px solid var(--white)}
.btn-outline-light:hover{background:rgba(255,255,255,.1)}
.btn-secondary{background:var(--white);color:var(--ink);border:1px solid var(--line)}

/* HERO */
.hero{position:relative;color:#fff;padding:120px 0 96px;overflow:hidden}
.hero:before{content:"";position:absolute;inset:0;background-image:url('https://images.unsplash.com/photo-1600585154340-be6161a56a0c?w=1920');background-size:cover;background-position:center;z-index:0;filter:brightness(.6)}
.hero:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(0,0,0,.8),rgba(0,0,0,.4));z-index:1}
.hero .hero-content{position:relative;z-index:2}
.hero h1{font-size:56px;line-height:1.2;font-weight:600;margin:0 0 16px}
.hero p{font-size:18px;line-height:1.5;color:#e2e8f0;margin:0 0 32px}
.hero-cta{display:flex;gap:12px;margin-bottom:40px}
.stats{display:flex;gap:40px;border-top:1px solid rgba(255,255,255,.2);padding-top:32px}
.stat{text-align:center;min-width:100px}
.stat .icon{width:32px;height:32px;margin:0 auto 8px;color:#fff}
.stat .number{font-size:32px;font-weight:700;margin-bottom:4px}
.stat .label{font-size:14px;color:#cbd5e1}

/* SEARCH SECTION */
.search-section{padding:48px 0;background:#f8fafc;border-bottom:1px solid var(--line)}
.search-container{max-width:640px;margin:0 auto;display:flex;gap:12px;align-items:center;position:relative}
.input-wrapper{position:relative;flex:1}
.input-wrapper input{width:100%;height:48px;padding:0 16px 0 44px;border:1px solid var(--line);border-radius:8px;background:var(--white);font-size:16px;color:var(--text)}
.input-wrapper input::placeholder{color:var(--muted)}
.search-icon{position:absolute;left:16px;top:50%;transform:translateY(-50%);width:20px;height:20px;color:var(--muted)}
.search-container .btn{height:48px;padding:0 24px;font-size:16px}

/* PROPERTIES GRID */
.properties-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:24px}
.imovel-card{background:var(--white);border:1px solid var(--line);border-radius:16px;overflow:hidden;box-shadow:0 4px 8px rgba(0,0,0,.05);display:flex;flex-direction:column;transition:transform .2s, box-shadow .2s}
.imovel-card:hover{transform:translateY(-2px);box-shadow:0 8px 16px rgba(0,0,0,.08)}
.imovel-card img{width:100%;height:200px;object-fit:cover}
.imovel-card .imovel-body{padding:16px;display:flex;flex-direction:column;flex:1}
.imovel-card h3{font-size:18px;margin:0 0 8px;color:var(--ink)}
.imovel-card .meta{font-size:14px;margin-bottom:12px;color:var(--muted);display:flex;gap:12px;flex-wrap:wrap;align-items:center}
.imovel-card .meta span{display:flex;align-items:center;gap:4px}
.imovel-card .meta svg{width:16px;height:16px;color:var(--muted)}
.imovel-card .price{font-size:20px;font-weight:700;color:var(--ink);margin-bottom:12px}
.imovel-card .actions{margin-top:auto}
.imovel-card .btn{padding:6px 12px;font-size:14px;border-radius:8px}
.imovel-card .badge{position:absolute;top:12px;right:12px;background:var(--ink);color:var(--white);padding:4px 8px;font-size:12px;border-radius:6px}

/* Make any existing .tag elements (used in dynamic cards) follow the same appearance as .badge */
.imovel-card .tag{position:absolute;top:12px;right:12px;background:var(--ink);color:var(--white);padding:4px 8px;font-size:12px;border-radius:6px;z-index:2}
.imovel-card .tag.alt{background:var(--ink)}

/* ===================================================================== */
/* Custom overrides for the property card to match the user’s Figma design */
/* These rules implement thin typography, clean lines and structured sections */

/* Position tag inside the card image */
.imovel-card .thumb{position:relative}
.imovel-card .tag{
  position:absolute;
  top:12px;
  right:12px;
  background:var(--ink);
  color:var(--white);
  padding:4px 8px;
  font-size:12px;
  border-radius:4px;
  z-index:2;
}

/* Body styling */
.imovel-card .imovel-body{
  padding:16px 16px 20px;
  display:flex;
  flex-direction:column;
  flex:1;
}
.imovel-card h3{
  font-size:18px;
  font-weight:300;
  margin:0 0 8px;
  color:var(--ink);
}

/* Location row */
.imovel-card .location{
  display:flex;
  align-items:center;
  gap:6px;
  font-size:14px;
  color:var(--muted);
  margin-bottom:12px;
}
.imovel-card .location img{
  width:16px;
  height:16px;
  opacity:0.6;
}

/* Dividers */
.imovel-card hr{
  border:0;
  border-top:1px solid var(--line);
  margin:12px 0;
}

/* Feature row */
.imovel-card .features{
  display:flex;
  gap:20px;
  align-items:center;
  font-size:14px;
  color:var(--muted);
}
.imovel-card .feat{
  display:flex;
  align-items:center;
  gap:4px;
}
.imovel-card .feat img{
  width:16px;
  height:16px;
  opacity:0.6;
}

/* Price row */
.imovel-card .price-label{
  font-size:14px;
  color:var(--muted);
  margin-top:8px;
}
.imovel-card .price-row{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-top:8px;
}
.imovel-card .price-value{
  font-size:24px;
  font-weight:500;
  color:var(--ink);
}
.imovel-card .btn-detail{
  font-size:14px;
  background:var(--ink);
  color:var(--white);
  padding:8px 12px;
  border-radius:6px;
  border:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
  cursor:pointer;
  transition:background .2s ease;
}
.imovel-card .btn-detail:hover{
  filter:brightness(.95);
}

/* FOOTER */
.footer{background:#4c4d4f;color:#94a3b8;margin-top:0}
.footer .wrap{padding:40px 16px;display:grid;gap:40px;grid-template-columns:repeat(auto-fit,minmax(200px,1fr))}
.footer h4{color:#ffffff;margin-bottom:12px;font-size:16px}
.footer p{font-size:14px;margin:0 0 8px;color:#94a3b8}
.footer a{color:#94a3b8;font-size:14px}
.footer a:hover{color:#ffffff}
.copy{text-align:center;padding:12px;font-size:13px;color:#94a3b8;border-top:1px solid rgba(255,255,255,.1)}
.verify-chip .btn-resend{
  height:28px;padding:0 10px;border-radius:8px;
  border:1px solid #ffd28a;background:#fff;cursor:pointer
}

/* Toast simples (feedback rápido) */
.miu-toast{
  position:fixed;left:50%;bottom:18px;transform:translateX(-50%);
  background:#111;color:#fff;padding:10px 14px;border-radius:10px;
  z-index:9999;box-shadow:0 8px 24px rgba(0,0,0,.2);opacity:.98
}
.badge {
  display:inline-flex; align-items:center; gap:6px;
  padding:2px 8px; border-radius:999px; font-size:12px;
  background:#e7f4ff; color:#0b63ce; font-weight:600;
}
.badge svg { width:14px; height:14px }

/* === Custom modifications === */
/* Darken the newsletter section and adjust text colours */
.newsletter{
  background:#0f172a;
  color:#94a3b8;
}
.newsletter h2,
.newsletter label,
.newsletter .ticks li,
.newsletter .cta-chip-row a,
.newsletter p{
  color:#94a3b8;
}
/* Increase spacing below the "Quero receber alertas" form micro text */
.newsletter .card.form .micro{
  margin-top:16px;
}
/* Modal styles */
.modal{
  position:fixed;
  top:0;
  left:0;
  width:100%;
  height:100%;
  background:rgba(0,0,0,0.6);
  display:none;
  justify-content:center;
  align-items:center;
  z-index:1000;
  padding:16px;
}
.modal.open{
  display:flex;
}
.modal-content{
  background:#ffffff;
  color:var(--ink);
  padding:24px;
  border-radius:12px;
  max-width:90%;
  width:560px;
  max-height:80%;
  overflow-y:auto;
}
.modal-content h2{
  margin-top:0;
  font-size:24px;
  font-weight:600;
}
.modal-content p{
  margin-top:8px;
  line-height:1.5;
}
.modal-close{
  margin-top:24px;
  cursor:pointer;
}

/* ================================================================ */
/* Additional tweaks for hero stats and search bar (post-Figma)    */
/* Make the stat cards ~20% wider and shorter, and style icons    */

/* Increase stat width and adjust vertical spacing */
.stats .stat{
  min-width:120px;
  /* optional: adjust padding if needed to reduce vertical space */
}

/* Style the images used as icons in the stats cards */
.stats .stat img{
  width:32px;
  height:32px;
  margin:0 auto 6px;
  /* invert the black PNGs to white for visibility on dark hero backgrounds */
  filter:invert(1);
}

/* Tighten spacing below numbers */
.stats .stat .number{
  font-size:32px;
  font-weight:700;
  margin-bottom:2px;
}

/* Search bar tweaks: make the search container wider and increase gap */
.search-container{
  max-width:800px;
  gap:16px;
}

