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

:root {
  --navy: #2d2d2d;
  --navy-dark: #1a1a1a;
  --navy-light: #3d3d3d;
  --charcoal: #2d2d2d;
  --gold: #C9A22B;
  --white: #ffffff;
  --gray-50: #f8f9fb;
  --gray-100: #f1f3f7;
  --gray-200: #e2e6ed;
  --gray-400: #9aa3b0;
  --gray-600: #5a6478;
  --gray-800: #2d3648;
  --green-wa: #25D366;
  --red-sold: #e53935;
  --shadow-sm: 0 2px 8px rgba(0,0,0,.08);
  --shadow-md: 0 6px 24px rgba(0,0,0,.12);
  --shadow-lg: 0 16px 48px rgba(0,0,0,.16);
  --radius: 12px;
  --radius-sm: 8px;
  --transition: .22s ease;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
  overflow-x: hidden;
}
@media (max-width: 640px) {
  html { scroll-padding-top: 58px; }
}

body {
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  color: var(--gray-800);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
}

a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ===== TOP BAR ===== */
.topbar {
  background: #1a1a1a;
  color: var(--gray-200);
  font-size: .8rem;
  padding: .45rem 0;
}
.topbar .inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.topbar-contacts { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.topbar-contacts a { display: flex; align-items: center; gap: .4rem; color: var(--gray-200); transition: color var(--transition); }
.topbar-contacts a:hover { color: var(--gold); }
.topbar-contacts svg { width: 14px; height: 14px; flex-shrink: 0; }
.creci { font-weight: 600; color: var(--gold); letter-spacing: .05em; }

/* ===== HEADER ===== */
header {
  background: var(--charcoal);
  border-bottom: 3px solid var(--gold);
  box-shadow: 0 3px 16px rgba(0,0,0,.45);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: .8rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.logo img { height: 110px; width: auto; mix-blend-mode: screen; }
.logo-fallback {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1.1;
  letter-spacing: -.02em;
}
.logo-fallback span { color: var(--gold); }

nav { display: flex; gap: .25rem; }
nav a {
  padding: .5rem .9rem;
  border-radius: var(--radius-sm);
  font-size: .88rem;
  font-weight: 500;
  color: rgba(255,255,255,.75);
  transition: background var(--transition), color var(--transition);
}
nav a:hover { background: rgba(255,255,255,.1); color: var(--white); }
nav a.active { color: var(--gold); font-weight: 700; }

.header-cta {
  background: transparent;
  color: var(--gold);
  border: 2px solid var(--gold);
  padding: .5rem 1.2rem;
  border-radius: 99px;
  font-size: .85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: .5rem;
  transition: background var(--transition), color var(--transition), transform var(--transition);
  white-space: nowrap;
}
.header-cta:hover { background: var(--gold); color: var(--charcoal); transform: translateY(-1px); }
.header-cta svg { width: 18px; height: 18px; }

/* ===== HERO ===== */
.hero {
  background: linear-gradient(160deg, #111111 0%, #2d2d2d 100%);
  padding: 5rem 1.5rem 6rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-content { position: relative; z-index: 1; }
.hero h1 {
  color: var(--white);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: .75rem;
  letter-spacing: -.02em;
}
.hero h1 span { color: var(--gold); }
.hero p {
  color: rgba(255,255,255,.75);
  font-size: 1.1rem;
  margin-bottom: 2.5rem;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

/* Search Box */
.search-box {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  max-width: 860px;
  margin: 0 auto;
  box-shadow: var(--shadow-lg);
}
.search-filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: .75rem;
  margin-bottom: 1rem;
}
.filter-select {
  width: 100%;
  padding: .75rem 1rem;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: .9rem;
  color: var(--gray-800);
  background: var(--white);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%239aa3b0' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .75rem center;
  cursor: pointer;
  transition: border-color var(--transition);
  font-family: inherit;
}
.filter-select:focus { outline: none; border-color: var(--gold); }

.btn-search {
  width: 100%;
  padding: .85rem;
  background: var(--gold);
  color: var(--white);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .03em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  transition: background var(--transition), transform var(--transition);
  box-shadow: 0 4px 16px rgba(201,162,43,.35);
}
.btn-search:hover { background: #a88520; transform: translateY(-1px); }
.btn-search svg { width: 20px; height: 20px; }

/* ===== STATS BAR ===== */
.stats-bar {
  background: var(--gold);
  padding: 1.2rem 1.5rem;
}
.stats-bar .inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}
.stat { text-align: center; color: var(--white); }
.stat-number { font-size: 1.6rem; font-weight: 800; line-height: 1; }
.stat-label { font-size: .78rem; opacity: .9; text-transform: uppercase; letter-spacing: .06em; margin-top: .2rem; }

/* ===== SECTION COMMON ===== */
section { padding: 4rem 1.5rem; }
.section-header { text-align: center; margin-bottom: 2.5rem; }
.section-label {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .5rem;
}
.section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -.02em;
  line-height: 1.2;
}
.section-title span { color: var(--gold); }
.section-desc { color: var(--gray-600); margin-top: .5rem; font-size: .95rem; }

/* ===== PROPERTIES ===== */
.properties-section { background: var(--gray-50); }

.properties-toolbar {
  max-width: 1200px;
  margin: 0 auto 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.results-count { color: var(--gray-600); font-size: .9rem; }
.results-count strong { color: var(--navy); font-weight: 700; }
.sort-select {
  padding: .5rem .85rem;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: .85rem;
  color: var(--gray-800);
  background: var(--white);
  cursor: pointer;
  font-family: inherit;
  appearance: none;
  padding-right: 2rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='%239aa3b0' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .6rem center;
}
.sort-select:focus { outline: none; border-color: var(--gold); }

.properties-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

/* Property Card */
.property-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}
.property-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.card-image {
  position: relative;
  height: 200px;
  background: var(--gray-100);
  overflow: hidden;
}
.card-image-link { display: block; width: 100%; height: 100%; }
.card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.property-card:hover .card-image img { transform: scale(1.05); }

.card-image-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .75rem;
}
.card-image-placeholder svg { width: 48px; height: 48px; color: rgba(255,255,255,.4); }
.card-image-placeholder span { color: rgba(255,255,255,.6); font-size: .8rem; font-weight: 500; }

.card-badge {
  position: absolute;
  top: .75rem;
  left: .75rem;
  background: var(--navy);
  color: var(--white);
  font-size: .72rem;
  font-weight: 700;
  padding: .3rem .7rem;
  border-radius: 99px;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.badge-tipo {
  position: absolute;
  top: .75rem;
  right: .75rem;
  background: rgba(255,255,255,.95);
  color: var(--navy);
  font-size: .72rem;
  font-weight: 700;
  padding: .3rem .7rem;
  border-radius: 99px;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.badge-sold {
  position: absolute;
  inset: 0;
  background: rgba(229,57,53,.85);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.badge-sold span {
  color: var(--white);
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: .1em;
  transform: rotate(-20deg);
  text-shadow: 0 2px 8px rgba(0,0,0,.3);
}
.badge-fav {
  position: absolute;
  bottom: .75rem;
  right: .75rem;
  width: 32px;
  height: 32px;
  background: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
  transition: transform var(--transition);
}
.badge-fav:hover { transform: scale(1.15); }
.badge-fav svg { width: 16px; height: 16px; color: var(--gray-400); transition: color var(--transition); }
.badge-fav.active svg { color: var(--red-sold); fill: var(--red-sold); }

.card-body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; gap: .75rem; }

.card-location {
  display: flex;
  align-items: flex-start;
  gap: .4rem;
  color: var(--gray-600);
  font-size: .82rem;
}
.card-location svg { width: 14px; height: 14px; flex-shrink: 0; margin-top: .1rem; color: var(--gold); }

.card-price {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -.02em;
}
.card-features {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: .75rem;
  border-top: 1px solid var(--gray-100);
}
.feat {
  display: flex;
  align-items: center;
  gap: .35rem;
  font-size: .8rem;
  color: var(--gray-600);
}
.feat svg { width: 14px; height: 14px; color: var(--navy); }

.card-ref { font-size: .72rem; color: var(--gray-400); }

.card-footer {
  padding: 0 1.25rem 1.25rem;
  display: flex;
  gap: .6rem;
}
.btn-card {
  flex: 1;
  padding: .65rem;
  border-radius: var(--radius-sm);
  font-size: .85rem;
  font-weight: 700;
  text-align: center;
  transition: all var(--transition);
}
.btn-card.primary {
  background: var(--navy);
  color: var(--white);
}
.btn-card.primary:hover { background: var(--navy-dark); transform: translateY(-1px); }
.btn-card.wa {
  background: var(--green-wa);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  flex: 0 0 auto;
  padding: .65rem .9rem;
}
.btn-card.wa:hover { background: #1ebe57; }
.btn-card.wa svg { width: 18px; height: 18px; }

/* No results */
.no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 1rem;
  color: var(--gray-400);
}
.no-results svg { width: 64px; height: 64px; margin: 0 auto 1rem; opacity: .4; }
.no-results p { font-size: 1.1rem; font-weight: 600; color: var(--gray-600); }
.no-results span { font-size: .9rem; }

/* Load more */
.load-more-wrap { text-align: center; margin-top: 2.5rem; }
.btn-load-more {
  padding: .85rem 2.5rem;
  border: 2px solid var(--gold);
  border-radius: 99px;
  color: var(--gold);
  font-size: .95rem;
  font-weight: 700;
  transition: all var(--transition);
  display: inline-flex;
  align-items: center;
  gap: .5rem;
}
.btn-load-more:hover { background: var(--gold); color: var(--white); transform: translateY(-1px); }

/* ===== CTAS ===== */
.ctas-section { background: var(--white); }
.ctas-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.5rem;
}
.cta-card {
  background: var(--gray-50);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  border: 2px solid var(--gray-200);
  transition: all var(--transition);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .75rem;
}
.cta-card:hover {
  border-color: var(--gold);
  background: var(--white);
  box-shadow: 0 6px 24px rgba(201,162,43,.15);
  transform: translateY(-3px);
}
.cta-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}
.cta-card:hover .cta-icon { background: var(--gold); }
.cta-icon svg { width: 28px; height: 28px; color: var(--white); }
.cta-card h3 { font-size: 1.05rem; font-weight: 700; color: var(--navy); }
.cta-card p { font-size: .85rem; color: var(--gray-600); line-height: 1.5; }
.cta-link { font-size: .85rem; font-weight: 700; color: var(--gold); display: flex; align-items: center; gap: .3rem; margin-top: .25rem; }
.cta-link svg { width: 14px; height: 14px; }

/* ===== ABOUT ===== */
.about-section { background: var(--navy); }
.about-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.about-text .section-title { color: var(--white); }
.about-text .section-label { color: var(--gold); }
.about-text p { color: rgba(255,255,255,.75); margin-top: 1rem; line-height: 1.8; }
.about-highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.5rem;
}
.highlight {
  background: rgba(255,255,255,.08);
  border-radius: var(--radius-sm);
  padding: 1rem;
  border: 1px solid rgba(255,255,255,.1);
}
.highlight-num { font-size: 1.4rem; font-weight: 800; color: var(--gold); }
.highlight-label { font-size: .8rem; color: rgba(255,255,255,.65); margin-top: .15rem; }
.about-cta {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin-top: 1.75rem;
  background: transparent;
  color: var(--gold);
  border: 2px solid var(--gold);
  padding: .75rem 1.75rem;
  border-radius: 99px;
  font-weight: 700;
  font-size: .9rem;
  transition: all var(--transition);
}
.about-cta:hover { background: var(--gold); color: var(--charcoal); transform: translateY(-1px); }
.about-map {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.about-map iframe { width: 100%; height: 340px; border: none; display: block; }

/* ===== FOOTER ===== */
footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,.7);
  padding: 3rem 1.5rem 1.5rem;
}
.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-brand p { font-size: .88rem; margin-top: .75rem; line-height: 1.7; }
.footer-logo { height: 96px; width: auto; margin-bottom: .25rem; mix-blend-mode: screen; }
.footer-logo-text {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -.01em;
}
.footer-logo-text span { color: var(--gold); }
.social-links { display: flex; gap: .6rem; margin-top: 1rem; }
.social-link {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}
.social-link:hover { background: var(--gold); }
.social-link svg { width: 16px; height: 16px; color: var(--white); }

.footer-col h4 {
  font-size: .85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--white);
  margin-bottom: 1rem;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: .5rem; }
.footer-col ul li a {
  font-size: .85rem;
  color: rgba(255,255,255,.6);
  transition: color var(--transition);
}
.footer-col ul li a:hover { color: var(--gold); }
.footer-contact-item {
  display: flex;
  gap: .6rem;
  align-items: flex-start;
  font-size: .85rem;
  margin-bottom: .65rem;
}
.footer-contact-item svg { width: 16px; height: 16px; color: var(--gold); flex-shrink: 0; margin-top: .15rem; }

.footer-bottom {
  max-width: 1200px;
  margin: 1.5rem auto 0;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: .75rem;
  font-size: .8rem;
}
.footer-bottom a { color: var(--gold); }
.footer-bottom a:hover { text-decoration: underline; }

/* ===== WHATSAPP FLOAT ===== */
.wa-float {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: .5rem;
  opacity: 1;
  transition: opacity var(--transition), transform var(--transition);
}
.wa-float.wa-float-oculto { opacity: 0; transform: scale(.8); pointer-events: none; }
.wa-float-btn {
  width: 60px;
  height: 60px;
  background: var(--green-wa);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(37,211,102,.4);
  transition: transform var(--transition), box-shadow var(--transition);
  animation: pulse 2.5s infinite;
}
.wa-float-btn:hover { transform: scale(1.1); box-shadow: 0 8px 28px rgba(37,211,102,.55); }
.wa-float-btn svg { width: 32px; height: 32px; color: var(--white); }
.wa-tooltip {
  background: var(--gray-800);
  color: var(--white);
  font-size: .8rem;
  font-weight: 600;
  padding: .45rem .85rem;
  border-radius: 99px;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(8px);
  transition: all var(--transition);
  pointer-events: none;
}
.wa-float:hover .wa-tooltip { opacity: 1; transform: translateX(0); }

@keyframes pulse {
  0%, 100% { box-shadow: 0 6px 20px rgba(37,211,102,.4); }
  50% { box-shadow: 0 6px 32px rgba(37,211,102,.65); }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .about-inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .stats-bar .inner { gap: 1.25rem; }
  .stat-number { font-size: 1.3rem; }
  .ctas-grid { grid-template-columns: 1fr 1fr; }
  .properties-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
}

@media (max-width: 640px) {
  /* Topbar: esconde no mobile */
  .topbar { display: none; }

  /* Header compacto e 100% da largura */
  header { box-shadow: 0 3px 16px rgba(0,0,0,.5); width: 100%; border-bottom: 2px solid var(--gold); }
  .header-inner {
    padding: .6rem 1rem;
    gap: .75rem;
    justify-content: center;
    flex-wrap: nowrap;
    width: 100%;
    max-width: 100%;
  }
  .logo img { height: 92px; }
  .logo-fallback { font-size: 1.2rem; text-align: center; }
  nav { display: none; }
  /* Remove o botão WhatsApp do header no mobile */
  .header-cta { display: none; }

  /* Hero */
  .hero { padding: 2.5rem 1rem 3.5rem; }
  .hero h1 { font-size: 1.55rem; margin-bottom: .5rem; }
  .hero p { font-size: .9rem; margin-bottom: 1.75rem; }

  /* Search box */
  .search-box { padding: 1rem; border-radius: var(--radius-sm); }
  .search-filters { grid-template-columns: 1fr 1fr; gap: .6rem; margin-bottom: .75rem; }
  .filter-select { padding: .65rem .85rem; font-size: .85rem; }
  .btn-search { padding: .75rem; font-size: .9rem; }

  /* Stats bar */
  .stats-bar { padding: .9rem 1rem; }
  .stats-bar .inner { gap: 1rem; }
  .stat-number { font-size: 1.2rem; }
  .stat-label { font-size: .7rem; }

  /* Section */
  section { padding: 2.5rem 1rem; }
  .section-title { font-size: 1.4rem; }

  /* Properties */
  .properties-grid { grid-template-columns: 1fr; gap: 1rem; }
  .properties-toolbar { gap: .6rem; }
  .results-count { font-size: .82rem; }

  /* CTAs */
  .ctas-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .cta-card { padding: 1.25rem 1rem; }
  .cta-icon { width: 52px; height: 52px; }
  .cta-icon svg { width: 22px; height: 22px; }
  .cta-card h3 { font-size: .92rem; }
  .cta-card p { font-size: .78rem; }

  /* About */
  .about-highlights { grid-template-columns: 1fr 1fr; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  footer { padding: 2rem 1rem 1rem; }

  /* WhatsApp flutuante — menor e no canto, sem sobrepor */
  .wa-float { bottom: 1rem; right: 1rem; }
  .wa-float-btn { width: 50px; height: 50px; }
  .wa-float-btn svg { width: 26px; height: 26px; }
  .wa-tooltip { display: none; }

  /* Padding extra no final da página para não cobrir conteúdo */
  footer { padding-bottom: 5rem; }
}

@media (max-width: 400px) {
  .search-filters { grid-template-columns: 1fr; }
  .ctas-grid { grid-template-columns: 1fr; }
}

/* ===== ANIMATIONS ===== */
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity .5s ease, transform .5s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ===== BREADCRUMB ===== */
.breadcrumb-bar {
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
  padding: .65rem 1.5rem;
}
.breadcrumb-bar .inner { max-width: 1200px; margin: 0 auto; }
.breadcrumb {
  display: flex;
  align-items: center;
  gap: .35rem;
  font-size: .82rem;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--gray-600); transition: color var(--transition); }
.breadcrumb a:hover { color: var(--navy); }
.breadcrumb span { color: var(--navy); font-weight: 600; }
.breadcrumb svg { width: 12px; height: 12px; color: var(--gray-400); flex-shrink: 0; }

/* ===== LOADING / NOT FOUND ===== */
.detail-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  min-height: 50vh;
  color: var(--gray-400);
  font-size: .95rem;
}
.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--gray-200);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.detail-not-found {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  min-height: 50vh;
  text-align: center;
  padding: 3rem 1.5rem;
  color: var(--gray-400);
}
.detail-not-found svg { width: 72px; height: 72px; opacity: .35; }
.detail-not-found h2 { font-size: 1.5rem; font-weight: 700; color: var(--navy); }
.detail-not-found p { font-size: .95rem; color: var(--gray-600); }
.btn-back {
  margin-top: .5rem;
  display: inline-block;
  background: var(--navy);
  color: var(--white);
  padding: .75rem 2rem;
  border-radius: 99px;
  font-weight: 700;
  font-size: .9rem;
  transition: background var(--transition);
}
.btn-back:hover { background: var(--navy-dark); }

/* ===== GALERIA ===== */
.gallery-section {
  background: var(--gray-800);
  padding: 0;
}
.gallery-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.gallery-carousel {
  position: relative;
  width: 100%;
  height: 480px;
  overflow: hidden;
  background: var(--gray-800);
}
.gallery-slides {
  display: flex;
  height: 100%;
  transition: none;
}
.gallery-slide {
  min-width: 100%;
  height: 100%;
  display: none;
  position: relative;
}
.gallery-slide.active { display: block; }
.gallery-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  cursor: zoom-in;
}
.gallery-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.gallery-placeholder svg { width: 80px; height: 80px; color: rgba(255,255,255,.3); }

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,.92);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  transition: all var(--transition);
  z-index: 10;
}
.gallery-nav:hover { background: var(--white); transform: translateY(-50%) scale(1.08); }
.gallery-nav svg { width: 20px; height: 20px; color: var(--navy); }
.gallery-nav.prev { left: 1rem; }
.gallery-nav.next { right: 1rem; }

.gallery-counter {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,.55);
  color: var(--white);
  font-size: .8rem;
  font-weight: 600;
  padding: .3rem .8rem;
  border-radius: 99px;
  z-index: 10;
}

.gallery-status-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  font-size: .88rem;
  font-weight: 800;
  padding: .4rem 1rem;
  border-radius: 99px;
  letter-spacing: .06em;
  z-index: 10;
}
.gallery-status-badge.sold { background: var(--red-sold); color: var(--white); }
.gallery-status-badge.reserved { background: var(--gold); color: var(--white); }

.gallery-thumbs {
  display: flex;
  gap: .5rem;
  padding: .6rem 1rem;
  background: var(--gray-800);
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--gray-600) transparent;
}
.gallery-thumb {
  flex-shrink: 0;
  width: 72px;
  height: 52px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid transparent;
  transition: border-color var(--transition);
  opacity: .65;
}
.gallery-thumb.active { border-color: var(--gold); opacity: 1; }
.gallery-thumb:hover { opacity: 1; }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* ===== DETALHE CONTENT ===== */
.detail-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 2.5rem;
  align-items: start;
}

/* --- Header --- */
.detail-header { margin-bottom: 1.75rem; }
.detail-badges { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: .75rem; }
.detail-badge {
  font-size: .72rem;
  font-weight: 700;
  padding: .3rem .8rem;
  border-radius: 99px;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.detail-badge.finalidade { background: var(--navy); color: var(--white); }
.detail-badge.tipo { background: var(--gray-200); color: var(--navy); }
.detail-badge.destaque { background: #fff3cd; color: #856404; }

.detail-title {
  font-size: clamp(1.25rem, 2.5vw, 1.65rem);
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -.02em;
  line-height: 1.25;
  margin-bottom: .6rem;
}
.detail-location {
  display: flex;
  align-items: flex-start;
  gap: .4rem;
  color: var(--gray-600);
  font-size: .9rem;
}
.detail-location svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: .1rem; color: var(--gold); }

/* --- Seções da esquerda --- */
.detail-section-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 1rem;
  padding-bottom: .6rem;
  border-bottom: 2px solid var(--gray-200);
}

.detail-specs-box { margin-bottom: 2rem; }
/* Flexbox em vez de grid: cada linha distribui o espaço sobrando entre os
   cards dela mesma, então a última linha (quando não fecha a fileira toda)
   não deixa espaço em branco — os cards dela só crescem um pouco pra
   preencher, em vez de ficar um buraco vazio ao lado. */
.detail-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.spec-item {
  flex: 1 1 165px;
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 1rem 1.15rem;
  display: flex;
  align-items: center;
  gap: .75rem;
  border: 1px solid var(--gray-200);
}
.spec-icon {
  width: 40px;
  height: 40px;
  background: var(--gold);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.spec-icon svg { width: 19px; height: 19px; color: var(--white); }
.spec-info { display: flex; flex-direction: column; min-width: 0; }
.spec-value { font-size: 1.1rem; font-weight: 800; color: var(--navy); line-height: 1.15; overflow-wrap: break-word; word-break: break-word; }
.spec-label { font-size: .74rem; color: var(--gray-600); margin-top: .15rem; overflow-wrap: break-word; word-break: break-word; }

/* --- Amenidades (características de sim/não) --- */
/* Lista fluida de ícone + texto, sem card ao redor — evita o problema de
   texto quebrando feio dentro de uma coluna estreita de grid, já que cada
   item ocupa só a largura que precisa e quebra pro espaço disponível. */
.detail-amenidades-box { margin-bottom: 2rem; }
.amenidades-list {
  display: flex;
  flex-wrap: wrap;
  gap: .9rem 1.75rem;
}
.amenidade-item {
  display: flex;
  align-items: center;
  gap: .55rem;
  font-size: .88rem;
  font-weight: 600;
  color: var(--navy);
  white-space: nowrap;
}
.amenidade-item svg {
  width: 19px;
  height: 19px;
  color: var(--gold);
  flex-shrink: 0;
}
@media (max-width: 640px) {
  .amenidades-list { gap: .7rem 1.1rem; }
  .amenidade-item { font-size: .82rem; white-space: normal; }
}

/* --- Custos adicionais (IPTU / condomínio) --- */
.detail-custos-box { margin-bottom: 2rem; }
.detail-custos {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.custo-item {
  background: rgba(201, 162, 43, .08);
  border: 1px solid rgba(201, 162, 43, .35);
  border-radius: var(--radius-sm);
  padding: .85rem 1.25rem;
  display: flex;
  flex-direction: column;
  min-width: 150px;
}
.custo-label { font-size: .72rem; color: var(--gold); font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }
.custo-value { font-size: 1.05rem; font-weight: 800; color: var(--navy); margin-top: .2rem; }

.detail-desc-box { margin-bottom: 2rem; }
.detail-desc {
  color: var(--gray-600);
  line-height: 1.85;
  font-size: .95rem;
}

/* --- WA Banner --- */
.detail-wa-banner {
  background: linear-gradient(135deg, #25d366 0%, #1aab52 100%);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.wa-banner-text {
  display: flex;
  align-items: center;
  gap: .85rem;
  color: var(--white);
}
.wa-banner-text svg { flex-shrink: 0; }
.wa-banner-text div { display: flex; flex-direction: column; gap: .15rem; }
.wa-banner-text strong { font-size: 1rem; font-weight: 700; }
.wa-banner-text span { font-size: .85rem; opacity: .88; }
.wa-banner-btn {
  background: var(--white);
  color: #1aab52;
  font-size: .9rem;
  font-weight: 800;
  padding: .7rem 1.75rem;
  border-radius: 99px;
  white-space: nowrap;
  transition: all var(--transition);
}
.wa-banner-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(0,0,0,.15); }

/* ===== SIDEBAR ===== */
.sidebar-sticky { position: sticky; top: 88px; display: flex; flex-direction: column; gap: 1rem; }

.sidebar-price-box {
  background: var(--white);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.sidebar-badge {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  padding: .3rem .8rem;
  border-radius: 99px;
  text-transform: uppercase;
  letter-spacing: .04em;
  background: var(--navy);
  color: var(--white);
  margin-bottom: .75rem;
}
.sidebar-price {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -.03em;
  line-height: 1;
  margin-bottom: .5rem;
}
.sidebar-ref { font-size: .8rem; color: var(--gray-400); }

.sidebar-actions { display: flex; flex-direction: column; gap: .65rem; }
.action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  padding: .85rem 1rem;
  border-radius: var(--radius-sm);
  font-size: .92rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  font-family: inherit;
  text-align: center;
}
.action-btn svg { width: 20px; height: 20px; flex-shrink: 0; }
.action-btn.wa { background: var(--green-wa); color: var(--white); }
.action-btn.wa:hover { background: #1ebe57; transform: translateY(-1px); }
.action-btn.schedule {
  background: var(--navy);
  color: var(--white);
}
.action-btn.schedule:hover { background: var(--navy-dark); transform: translateY(-1px); }
.action-btn.simulate {
  background: transparent;
  color: var(--gold);
  border: 2px solid var(--gold);
}
.action-btn.simulate:hover { background: var(--gold); color: var(--white); transform: translateY(-1px); }
.action-btn.lead {
  background: var(--navy);
  color: var(--white);
  border: none;
}
.action-btn.lead:hover { background: var(--navy-dark); transform: translateY(-1px); }

.sidebar-contact {
  background: var(--gray-50);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  border: 1px solid var(--gray-200);
}
.sidebar-contact-label {
  font-size: .78rem;
  font-weight: 600;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: .75rem;
}
.sidebar-contact-item {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .88rem;
  color: var(--gray-800);
  margin-bottom: .5rem;
  transition: color var(--transition);
}
.sidebar-contact-item:last-child { margin-bottom: 0; }
.sidebar-contact-item:hover { color: var(--gold); }
.sidebar-contact-item svg { width: 15px; height: 15px; color: var(--gold); flex-shrink: 0; }

/* ===== SECTION SIMILAR ===== */
.similar-section {
  background: var(--gray-50);
  padding: 3rem 1.5rem;
}
.similar-section .section-header { margin-bottom: 2rem; }
.similar-section .properties-grid {
  max-width: 1200px;
  margin: 0 auto;
}

/* ===== MODAIS ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.modal-box {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  max-width: 400px;
  width: 100%;
  position: relative;
  text-align: center;
  box-shadow: var(--shadow-lg);
  animation: modalIn .22s ease;
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(16px) scale(.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}
.modal-close:hover { background: var(--gray-200); }
.modal-close svg { width: 16px; height: 16px; color: var(--gray-600); }
.modal-icon {
  width: 72px;
  height: 72px;
  background: var(--gray-100);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
}
.modal-icon svg { width: 32px; height: 32px; color: var(--navy); }
.modal-box h3 { font-size: 1.2rem; font-weight: 800; color: var(--navy); margin-bottom: .6rem; }
.modal-box p { font-size: .9rem; color: var(--gray-600); line-height: 1.65; margin-bottom: 1.5rem; }
.modal-cta {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--green-wa);
  color: var(--white);
  padding: .8rem 2rem;
  border-radius: 99px;
  font-weight: 700;
  font-size: .9rem;
  transition: all var(--transition);
}
.modal-cta:hover { background: #1ebe57; transform: translateY(-1px); }

/* ===== LIGHTBOX DA GALERIA ===== */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.92);
  z-index: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  animation: modalIn .18s ease;
}
.lightbox-img {
  max-width: 92vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
}
.lightbox-close {
  position: fixed;
  top: 1.25rem;
  right: 1.25rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
  z-index: 10;
}
.lightbox-close:hover { background: rgba(255,255,255,.2); }
.lightbox-close svg { width: 20px; height: 20px; color: var(--white); }

/* --- Navegação do lightbox (mesmo comportamento do carrossel normal) --- */
.lightbox-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), transform var(--transition);
  z-index: 10;
}
.lightbox-nav:hover { background: rgba(255,255,255,.2); transform: translateY(-50%) scale(1.06); }
.lightbox-nav svg { width: 22px; height: 22px; color: var(--white); }
.lightbox-nav.prev { left: 1.25rem; }
.lightbox-nav.next { right: 1.25rem; }
.lightbox-counter {
  position: fixed;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,.55);
  color: var(--white);
  padding: .4rem .9rem;
  border-radius: 99px;
  font-size: .8rem;
  font-weight: 700;
}
@media (max-width: 640px) {
  .lightbox-overlay { padding: 1rem; }
  .lightbox-close { top: .75rem; right: .75rem; }
  .lightbox-nav { width: 38px; height: 38px; }
  .lightbox-nav svg { width: 18px; height: 18px; }
  .lightbox-nav.prev { left: .5rem; }
  .lightbox-nav.next { right: .5rem; }
}

/* ===== DETAIL PAGE — RESPONSIVE ===== */
@media (max-width: 960px) {
  .detail-content {
    grid-template-columns: 1fr;
  }
  .detail-sidebar { order: -1; }
  .sidebar-sticky { position: static; }
  .sidebar-actions { flex-direction: row; flex-wrap: wrap; }
  .action-btn { flex: 1; min-width: 140px; }
}

@media (max-width: 640px) {
  .gallery-carousel { height: 260px; }
  .gallery-slide img { object-fit: cover; }
  .gallery-nav { width: 36px; height: 36px; }
  .gallery-nav svg { width: 16px; height: 16px; }
  .detail-content { padding: 1.5rem 1rem; }
  .sidebar-actions { flex-direction: column; }
  .action-btn { flex: none; }
  .detail-wa-banner { flex-direction: column; text-align: center; }
  .wa-banner-btn { width: 100%; justify-content: center; }
  .similar-section { padding: 2rem 1rem; }
}

/* ===== CALCULADORA SAC/PRICE ===== */
.modal-calc-box {
  background: var(--white);
  border-radius: var(--radius);
  width: 100%;
  max-width: 760px;
  max-height: 92vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateY(18px) scale(.97);
  transition: opacity .22s ease, transform .22s ease;
}
.modal-calc-content {
  flex: 1;
  overflow-y: auto;
  min-height: 0;
}
.modal-calc-box.open { opacity: 1; transform: translateY(0) scale(1); }

.modal-calc-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--navy);
  padding: 1.4rem 1.75rem;
  border-radius: var(--radius) var(--radius) 0 0;
  border-bottom: 3px solid var(--gold);
}
.modal-calc-icon {
  flex-shrink: 0;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-calc-icon svg { width: 26px; height: 26px; color: var(--gold); stroke: var(--gold); }
.modal-calc-title { font-size: 1.1rem; font-weight: 700; color: var(--white); margin: 0; }
.modal-calc-subtitle { font-size: .85rem; color: var(--gray-500); line-height: 1.4; padding: .75rem 1.75rem 0; }
.modal-calc-box .modal-close { background: transparent; color: var(--gold); top: .9rem; right: .9rem; z-index: 10; }
.modal-calc-box .modal-close svg { stroke: var(--gold); }
.modal-calc-box .modal-close:hover { background: rgba(201,168,76,.15); }

.modal-calc-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  padding: 1.5rem 1.75rem 1.75rem;
}

/* --- Inputs --- */
.calc-inputs { display: flex; flex-direction: column; gap: 1.2rem; }

.calc-field { display: flex; flex-direction: column; gap: .45rem; }
.calc-label {
  font-size: .82rem;
  font-weight: 600;
  color: var(--gray-800);
  display: flex;
  align-items: center;
  gap: .4rem;
}
.calc-hint { font-size: .75rem; font-weight: 400; color: var(--gray-400); }

.calc-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .4rem;
  background: var(--gray-100);
  border-radius: var(--radius-sm);
  padding: .3rem;
}
.calc-toggle-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .1rem;
  padding: .6rem .5rem;
  border-radius: calc(var(--radius-sm) - 2px);
  font-size: .88rem;
  font-weight: 700;
  color: var(--gray-600);
  transition: all var(--transition);
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}
.calc-toggle-btn span { font-size: .7rem; font-weight: 400; color: var(--gray-400); }
.calc-toggle-btn.active { background: var(--navy); color: var(--white); }
.calc-toggle-btn.active span { color: rgba(255,255,255,.7); }

.calc-input-wrap {
  display: flex;
  align-items: center;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-sm);
  background: var(--white);
  transition: border-color var(--transition);
  overflow: hidden;
}
.calc-input-wrap:focus-within { border-color: var(--gold); }
.calc-input-prefix {
  padding: .7rem .75rem .7rem 1rem;
  font-size: .85rem;
  font-weight: 600;
  color: var(--gray-400);
  background: var(--gray-50);
  border-right: 2px solid var(--gray-200);
  flex-shrink: 0;
}
.calc-input {
  flex: 1;
  padding: .7rem .85rem;
  border: none;
  outline: none;
  font-size: .95rem;
  font-weight: 600;
  color: var(--gray-800);
  font-family: inherit;
  background: transparent;
  min-width: 0;
}
.calc-input[readonly] { color: var(--navy); background: var(--gray-50); cursor: default; }

/* Slider */
.calc-slider-row { display: flex; flex-direction: column; gap: .5rem; }
.calc-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 5px;
  background: var(--gray-200);
  border-radius: 99px;
  outline: none;
  cursor: pointer;
  background-image: linear-gradient(var(--gold), var(--gold));
  background-size: 20% 100%;
  background-repeat: no-repeat;
}
.calc-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--gold);
  cursor: pointer;
  border: 3px solid var(--white);
  box-shadow: 0 1px 6px rgba(0,0,0,.25);
  transition: transform var(--transition);
}
.calc-slider::-webkit-slider-thumb:hover { transform: scale(1.15); }
.calc-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--gold);
  cursor: pointer;
  border: 3px solid var(--white);
  box-shadow: 0 1px 6px rgba(0,0,0,.25);
}
.calc-slider-values {
  display: flex;
  justify-content: space-between;
  font-size: .8rem;
  font-weight: 600;
  color: var(--navy);
}

.calc-financiado {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  padding: .65rem 1rem;
  font-size: .85rem;
  color: var(--gray-600);
}
.calc-financiado strong { color: var(--navy); font-size: .95rem; }

/* --- Resultados --- */
.calc-results { display: flex; flex-direction: column; gap: .85rem; }

.calc-taxa-badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  border-radius: 99px;
  padding: .35rem .85rem;
  font-size: .75rem;
  font-weight: 600;
  color: var(--gray-600);
  align-self: flex-start;
}

.calc-result-box {
  background: var(--gray-50);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 1.25rem;
  flex: 1;
}
.calc-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  padding: 1.5rem;
  text-align: center;
  color: var(--gray-400);
}
.calc-empty-state p { font-size: .85rem; }

.result-sistema-label {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--gold);
  margin-bottom: .85rem;
}
.result-rows { display: flex; flex-direction: column; gap: .5rem; }
.result-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .6rem .75rem;
  border-radius: var(--radius-sm);
  font-size: .88rem;
  background: var(--white);
  border: 1px solid var(--gray-200);
}
.result-row span { color: var(--gray-600); }
.result-row strong { color: var(--navy); font-weight: 700; }
.result-row.highlight {
  background: var(--navy);
  border-color: var(--navy);
}
.result-row.highlight span { color: rgba(255,255,255,.75); }
.result-row.highlight strong { color: var(--white); font-size: 1rem; }
.result-row.danger { border-color: #fde8e8; background: #fff5f5; }
.result-row.danger strong { color: var(--red-sold); }

.calc-disclaimer {
  font-size: .75rem;
  color: var(--gray-400);
  line-height: 1.5;
  font-style: italic;
}

.calc-ctas { display: flex; flex-direction: column; gap: .6rem; }
.calc-cta-wa {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  background: var(--green-wa);
  color: var(--white);
  padding: .8rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: .9rem;
  transition: all var(--transition);
  text-align: center;
}
.calc-cta-wa:hover { background: #1ebe57; transform: translateY(-1px); }
.calc-cta-caixa {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  border: 2px solid var(--gray-200);
  color: var(--gray-600);
  padding: .7rem;
  border-radius: var(--radius-sm);
  font-size: .82rem;
  font-weight: 600;
  transition: all var(--transition);
}
.calc-cta-caixa:hover { border-color: var(--charcoal); color: var(--charcoal); }

/* --- Calculadora responsive --- */
@media (max-width: 640px) {
  .modal-calc-box { max-height: 95vh; border-radius: var(--radius) var(--radius) 0 0; align-self: flex-end; overflow: hidden; }
  .modal-overlay:has(.modal-calc-box) { align-items: flex-end; padding: 0; }
  .modal-calc-header { padding: 1.1rem 1.25rem; border-radius: var(--radius) var(--radius) 0 0; }
  .modal-calc-subtitle { padding: .6rem 1.25rem 0; }
  .modal-calc-body { grid-template-columns: 1fr; padding: 1.25rem; }
}

/* ===== MODAIS DE FORMULÁRIO (Lead + Agendamento) ===== */
.modal-form-box {
  max-width: 440px;
  width: 100%;
  padding: 2rem;
  max-height: 92vh;
  overflow-y: auto;
}
.modal-form-wide { max-width: 560px; }

.modal-form-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--navy);
  margin: -2rem -2rem 1.75rem;
  padding: 1.4rem 2rem;
  border-radius: var(--radius) var(--radius) 0 0;
  border-bottom: 3px solid var(--gold);
}
.modal-form-header h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  margin: 0;
}
.modal-form-icon {
  flex-shrink: 0;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-form-icon svg { width: 26px; height: 26px; color: var(--gold); stroke: var(--gold); }
.modal-form-box .modal-close {
  background: transparent;
  color: var(--gold);
  top: .9rem;
  right: .9rem;
  z-index: 10;
}
.modal-form-box .modal-close svg { stroke: var(--gold); }
.modal-form-box .modal-close:hover { background: rgba(201,168,76,.15); }

/* Grupos e linhas de form */
.form-group { display: flex; flex-direction: column; gap: .3rem; margin-bottom: .9rem; }
.form-group label { font-size: .8rem; font-weight: 600; color: var(--gray-600); }
.form-group input,
.form-group select,
.form-group textarea {
  padding: .6rem .85rem;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: .88rem;
  font-family: inherit;
  color: var(--gray-800);
  background: var(--white);
  transition: border-color var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--gold); }
.form-group textarea { resize: vertical; min-height: 64px; }
.form-input-readonly {
  background: var(--gray-50);
  color: var(--gray-600);
  cursor: default;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem;
}

/* Botão de submit */
.form-submit {
  width: 100%;
  padding: .8rem;
  background: var(--navy);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  font-size: .92rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  margin-top: .25rem;
}
.form-submit:hover:not(:disabled) { background: var(--navy-dark); transform: translateY(-1px); }
.form-submit:disabled { opacity: .65; cursor: not-allowed; transform: none; }

/* Spinner inline no botão */
.spinner-inline {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,.35);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin .7s linear infinite;
  flex-shrink: 0;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Feedback sucesso/erro */
.form-feedback {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: .85rem;
  text-align: left;
}
.form-feedback svg { flex-shrink: 0; }
.form-feedback h4 { font-size: .95rem; font-weight: 700; margin: 0 0 .2rem; }
.form-feedback p { font-size: .82rem; margin: 0; line-height: 1.45; }

.form-feedback.sucesso {
  background: #f0faf4;
  border: 1px solid #a7e3bc;
  color: #1a6636;
}
.form-feedback.sucesso svg { color: #1a6636; stroke: #1a6636; }

.form-feedback.erro {
  background: #fff5f5;
  border: 1px solid #fca5a5;
  color: #b91c1c;
  font-size: .85rem;
  text-align: left;
  margin-bottom: .75rem;
  flex-direction: row;
  gap: .5rem;
  padding: .65rem .85rem;
}

/* Botão "Tenho Interesse" nos cards */
.card-footer { flex-direction: column; }
.card-footer-actions { display: flex; gap: .6rem; }
.btn-card.interesse {
  background: transparent;
  color: var(--gold);
  border: 2px solid var(--gold);
  font-size: .8rem;
  padding: .5rem;
}
.btn-card.interesse:hover { background: var(--gold); color: var(--charcoal); transform: translateY(-1px); }

/* Responsive modais de form */
@media (max-width: 640px) {
  .modal-form-box { padding: 1.25rem; max-height: 95vh; border-radius: var(--radius) var(--radius) 0 0; align-self: flex-end; }
  .modal-form-header { margin: -1.25rem -1.25rem 1.5rem; padding: 1.1rem 1.25rem; border-radius: var(--radius) var(--radius) 0 0; }
  .modal-overlay:has(.modal-form-box) { align-items: flex-end; padding: 0; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .modal-form-wide { max-width: 100%; }
}

/* ===== DATEPICKER CUSTOMIZADO ===== */
.datepicker-display {
  width: 100%;
  padding: .6rem .85rem;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  background: var(--white);
  font-family: inherit;
  font-size: .88rem;
  color: var(--gray-400);
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.datepicker-display:hover { border-color: var(--gray-400); }
.datepicker-display:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,168,76,.15); }
.datepicker-display.has-value { color: var(--navy); }
.datepicker-display svg { color: var(--gray-400); flex-shrink: 0; }
.datepicker-popup {
  position: fixed;
  z-index: 1200;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(0,0,0,.16);
  padding: 1rem;
  min-width: 268px;
  animation: dpFadeIn .15s ease;
}
@keyframes dpFadeIn { from { opacity:0; transform:translateY(-6px); } to { opacity:1; transform:translateY(0); } }
.dp-hd { display:flex; align-items:center; justify-content:space-between; margin-bottom:.75rem; }
.dp-title { font-size:.88rem; font-weight:700; color:var(--navy); }
.dp-nav {
  background:none; border:1px solid var(--gray-200);
  width:28px; height:28px; border-radius:var(--radius-sm);
  cursor:pointer; font-size:1.15rem; color:var(--navy);
  display:flex; align-items:center; justify-content:center;
  transition:background var(--transition); line-height:1;
}
.dp-nav:hover { background:var(--gray-100); }
.dp-grid { display:grid; grid-template-columns:repeat(7,1fr); gap:2px; }
.dp-weekday { text-align:center; font-size:.66rem; font-weight:700; color:var(--gray-400); padding:.3rem 0; }
.dp-day {
  background:none; border:none; padding:.42rem .1rem;
  text-align:center; font-size:.8rem; border-radius:var(--radius-sm);
  cursor:pointer; color:var(--navy); font-family:inherit;
  transition:background var(--transition), color var(--transition);
}
.dp-day:hover:not(.dp-dis):not(.dp-empty) { background:var(--gray-100); }
.dp-today { color:var(--gold); font-weight:700; }
.dp-sel { background:var(--gold) !important; color:#fff !important; font-weight:600; }
.dp-dis { color:var(--gray-300); cursor:not-allowed; }
.dp-empty { pointer-events:none; }

/* ===== GALERIA VÍDEO ===== */
.gallery-video { width:100%; height:100%; background:#000; display:flex; align-items:center; justify-content:center; }
.gallery-video iframe { width:100%; height:100%; border:none; }
.gallery-video video { width:100%; height:100%; object-fit:contain; }
.gallery-thumb-video {
  width:100%; height:100%; background:var(--navy-dark);
  display:flex; align-items:center; justify-content:center;
  border-radius:2px;
}
.gallery-thumb-video svg { color:#fff; opacity:.85; }
