/* ========== TOKENS ========== */
:root {
  --mr-red: #E20A13;        /* oficial, extraído do vetor do logo */
  --mr-red-hover: #BC080F;
  --mr-red-soft: #FDEAEB;
  --mr-gray: #666666;       /* oficial */
  --gray-950: #1A1A1A;
  --gray-900: #232323;
  --gray-800: #2E2E2E;
  --gray-700: #404040;
  --gray-600: #6C6C6C;
  --gray-500: #8A8A8A;
  --gray-400: #A8A8A8;
  --gray-300: #CFCFCF;
  --gray-200: #E5E5E5;
  --gray-100: #F4F4F4;
  --gray-50: #FAFAFA;
  --white: #FFFFFF;
  --container: 1280px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 20px 50px rgba(0,0,0,0.15);
}

/* ========== RESET ========== */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Manrope', system-ui, sans-serif;
  color: var(--gray-950);
  background: var(--white);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
img { max-width: 100%; display: block; }
input, select, textarea { font-family: inherit; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ========== PREVIEW BANNER ========== */
.preview-banner {
  background: linear-gradient(135deg, #1A1A1A, #2E2E2E);
  color: white;
  padding: 12px 24px;
  text-align: center;
  font-size: 13px;
  font-weight: 500;
}
.preview-banner strong { color: var(--mr-red); }

/* ========== TOP INFO BAR ========== */
.top-info-bar {
  background: var(--gray-950);
  color: rgba(255,255,255,0.78);
  padding: 9px 0;
  font-size: 13px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.top-info-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.top-info-group {
  display: flex;
  gap: 22px;
  align-items: center;
}
.top-info-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: rgba(255,255,255,0.78);
  font-weight: 500;
  transition: color .15s;
  line-height: 1;
}
.top-info-item:hover {
  color: var(--mr-red);
}
.top-info-item.static { cursor: default; }
.top-info-item.static:hover { color: rgba(255,255,255,0.78); }
.top-info-item svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}
.top-info-item strong {
  color: white;
  font-weight: 700;
}
.top-info-divider {
  width: 1px;
  height: 14px;
  background: rgba(255,255,255,0.12);
}

/* ========== HEADER ========== */
.header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gray-200);
  z-index: 100;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  max-width: var(--container);
  margin: 0 auto;
}
.logo { display: inline-flex; align-items: center; }
.logo-img { height: 52px; width: auto; display: block; }
.footer-brand .logo-img { height: 64px; }

nav ul { display: flex; gap: 32px; list-style: none; }
nav a { font-size: 15px; font-weight: 500; color: var(--gray-800); transition: color .2s; }
nav a:hover, nav a.nav-active { color: var(--mr-red); }
nav .mobile-cta { display: none; }
nav .mobile-only { display: none; }

.menu-toggle {
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  cursor: pointer;
  flex-direction: column; gap: 5px;
  background: transparent; border: none; padding: 0;
  z-index: 110;
  transition: background .2s;
}
.menu-toggle:hover { background: var(--gray-100); }
.menu-toggle span {
  width: 22px; height: 2px;
  background: var(--gray-950);
  border-radius: 2px;
  transition: all .25s ease;
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.4); z-index: 95;
  opacity: 0; pointer-events: none;
  transition: opacity .3s;
}
.mobile-overlay.is-open { opacity: 1; pointer-events: auto; }

.header-actions { display: flex; align-items: center; gap: 10px; }

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14px;
  transition: all .2s;
}
.btn-primary { background: var(--mr-red); color: white; }
.btn-primary:hover { background: var(--mr-red-hover); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-ghost { color: var(--gray-800); border: 1px solid var(--gray-200); }
.btn-ghost:hover { border-color: var(--mr-red); color: var(--mr-red); }
.btn-secondary { background: var(--gray-100); color: var(--gray-800); }
.btn-secondary:hover { background: var(--gray-200); }
.btn-outline { background: transparent; color: var(--gray-700); border: 1px solid var(--gray-300); }
.btn-outline:hover { border-color: var(--gray-950); color: var(--gray-950); }
.btn-white { background: white; color: var(--gray-950); }
.btn-white:hover { background: var(--gray-100); }
.btn-team { padding: 10px 16px; font-size: 13px; gap: 6px; }
.btn-team svg { stroke-width: 2.2; }

/* ========== PAGE HERO ========== */
.listing-hero {
  background: var(--gray-50);
  padding: 36px 0 28px;
  border-bottom: 1px solid var(--gray-200);
}
.breadcrumb {
  display: flex; gap: 8px; align-items: center;
  font-size: 13px;
  color: var(--gray-600);
  margin-bottom: 12px;
}
.breadcrumb a { color: var(--gray-600); }
.breadcrumb a:hover { color: var(--mr-red); }
.breadcrumb span { color: var(--gray-400); }
.listing-title {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin-bottom: 6px;
}
.listing-subtitle { font-size: 15px; color: var(--gray-600); }

/* ========== LISTING ========== */
.listing-page { padding: 28px 0 80px; }
.listing-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  gap: 12px;
  flex-wrap: wrap;
}
.filter-toggle {
  display: none;
  align-items: center; gap: 8px;
  padding: 10px 16px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-sm);
  background: white;
  font-size: 14px; font-weight: 600;
  color: var(--gray-800);
  cursor: pointer;
}
.filter-toggle:hover { border-color: var(--mr-red); color: var(--mr-red); }
.filter-count {
  background: var(--mr-red); color: white;
  font-size: 10px; font-weight: 700;
  padding: 2px 7px; border-radius: 100px;
  min-width: 20px; text-align: center;
}
.sort-wrap { display: flex; align-items: center; gap: 10px; }
.sort-wrap label { font-size: 13px; color: var(--gray-600); }
.sort-wrap select {
  padding: 8px 12px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  background: white;
  font-size: 14px;
  cursor: pointer;
}
.sort-wrap select:focus { outline: none; border-color: var(--mr-red); }

.listing-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 28px;
  align-items: flex-start;
}

.listing-filters {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 22px;
  position: sticky;
  top: 90px;
}
.filter-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--gray-200); }
.filter-head h3 { font-size: 15px; font-weight: 700; flex: 1; }
.filter-clear { font-size: 12px; color: var(--mr-red); font-weight: 600; }
.filter-clear:hover { text-decoration: underline; }
.filter-close { display: none; width: 32px; height: 32px; border-radius: var(--radius-sm); color: var(--gray-600); font-size: 18px; }
.filter-block { margin-bottom: 18px; }
.filter-block:last-of-type { margin-bottom: 16px; }
.filter-label {
  display: block;
  font-size: 11px; font-weight: 700;
  color: var(--gray-700);
  text-transform: uppercase; letter-spacing: 0.06em;
  margin-bottom: 8px;
}
.filter-input {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  background: white;
  font-size: 13px;
  color: var(--gray-950);
  transition: border-color .2s;
}
.filter-input:focus { outline: none; border-color: var(--mr-red); }
.range-wrap {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 6px;
  align-items: center;
}
.range-wrap span { color: var(--gray-400); }
.chip-group { display: flex; flex-wrap: wrap; gap: 6px; }
/* Subrótulo que quebra a linha e separa residencial de comercial */
.chip-subgroup {
  flex-basis: 100%;
  margin-top: 8px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-500);
}
.chip {
  padding: 7px 12px;
  border-radius: 100px;
  border: 1px solid var(--gray-200);
  background: white;
  font-size: 12px;
  color: var(--gray-700);
  cursor: pointer;
  transition: all .15s;
  font-weight: 500;
}
.chip:hover { border-color: var(--gray-400); }
.chip.is-active {
  background: var(--gray-950); color: white;
  border-color: var(--gray-950);
}
.check-line {
  display: flex; gap: 8px; align-items: center;
  padding: 6px 0;
  font-size: 13px;
  color: var(--gray-800);
  cursor: pointer;
}
.check-line input { accent-color: var(--mr-red); }
.filter-apply { width: 100%; justify-content: center; padding: 12px; font-size: 13px; }

.listing-main { min-width: 0; }
.imoveis-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 28px;
}

/* Property card (compartilhado com Home) */
.property-card {
  background: white;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  transition: all .3s;
  cursor: pointer;
}
.property-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--gray-400);
}
.property-image {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  background: var(--gray-100);
}
.property-image img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s;
}
.property-card:hover .property-image img { transform: scale(1.05); }
.property-badge {
  position: absolute; top: 12px; left: 12px;
  padding: 6px 12px;
  background: var(--gray-950); color: white;
  border-radius: var(--radius-sm);
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.05em; text-transform: uppercase;
}
.property-badge.red { background: var(--mr-red); }
.property-heart {
  position: absolute; top: 12px; right: 12px;
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; color: var(--gray-600);
  transition: all .2s;
  border: none; cursor: pointer;
}
.property-heart:hover { color: var(--mr-red); transform: scale(1.1); }
.property-info { padding: 20px; }
.property-location {
  font-size: 12px; font-weight: 600;
  color: var(--mr-red);
  letter-spacing: 0.08em; text-transform: uppercase;
  margin-bottom: 8px;
}
.property-title {
  font-size: 17px; font-weight: 700;
  color: var(--gray-950);
  letter-spacing: -0.01em;
  margin-bottom: 16px;
  line-height: 1.3;
}
.property-features {
  display: flex; gap: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--gray-200);
  font-size: 13px; color: var(--gray-600);
  font-weight: 500;
}
.property-features span { display: flex; align-items: center; gap: 4px; }
.property-price {
  padding-top: 16px;
  border-top: 1px solid var(--gray-200);
}
.property-price-label { font-size: 11px; color: var(--gray-600); font-weight: 500; letter-spacing: 0.05em; text-transform: uppercase; }
.property-price-value { font-size: 22px; font-weight: 800; color: var(--gray-950); letter-spacing: -0.02em; }
.property-price-extra { font-size: 12px; color: var(--gray-600); margin-top: 2px; }

/* Empty state */
.empty-state {
  text-align: center;
  padding: 80px 20px;
  background: var(--gray-50);
  border-radius: var(--radius-md);
  border: 2px dashed var(--gray-200);
}
.empty-state .icon { font-size: 48px; margin-bottom: 16px; opacity: 0.6; }
.empty-state h3 { font-size: 19px; font-weight: 700; margin-bottom: 8px; }
.empty-state p { font-size: 14px; color: var(--gray-600); margin-bottom: 20px; }

/* Paginação */
.pagination {
  display: flex; justify-content: center; gap: 6px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.pagination button {
  min-width: 38px; height: 38px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--gray-200);
  background: white;
  color: var(--gray-800);
  font-weight: 600; font-size: 13px;
  cursor: pointer;
  transition: all .15s;
  padding: 0 12px;
}
.pagination button:hover { border-color: var(--gray-400); }
.pagination button.is-active {
  background: var(--mr-red); color: white;
  border-color: var(--mr-red);
}
.pagination button:disabled { opacity: 0.4; cursor: not-allowed; }

/* ========== FOOTER ========== */
footer {
  background: var(--gray-950);
  color: rgba(255,255,255,0.7);
  padding: 80px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand p { font-size: 14px; line-height: 1.6; margin: 24px 0; max-width: 320px; }
.footer-franere {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 100px;
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.05em;
}
.footer-col h4 {
  color: white;
  font-size: 13px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  margin-bottom: 20px;
}
.footer-col ul { list-style: none; }
.footer-col li { padding: 6px 0; font-size: 14px; }
.footer-col a:hover { color: var(--mr-red); }
.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: rgba(255,255,255,0.5);
}
.footer-bottom strong { color: white; font-weight: 600; }
.footer-credit {
  padding-top: 32px;
  margin-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex; justify-content: center; align-items: center;
}
.footer-credit a {
  display: inline-flex; align-items: center;
  opacity: 0.95;
  transition: all .25s ease;
}
.footer-credit a:hover { opacity: 1; transform: scale(1.03); }
.footer-credit img { height: 145px; width: auto; display: block; }

/* ========== WHATSAPP FLOAT ========== */
.whatsapp-float {
  position: fixed;
  bottom: 24px; right: 24px;
  width: 60px; height: 60px;
  background: #25D366;
  border-radius: 50%;
  box-shadow: 0 8px 24px rgba(37,211,102,0.4);
  display: flex; align-items: center; justify-content: center;
  z-index: 99;
  transition: transform .2s;
  cursor: pointer;
}
.whatsapp-float:hover { transform: scale(1.1); }
.whatsapp-float svg { width: 30px; height: 30px; fill: white; }

/* ========== LEAD MODAL (shared) ========== */
.lead-modal-bg {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.65);
  z-index: 200;
  display: none;
  align-items: center; justify-content: center;
  padding: 20px;
  backdrop-filter: blur(4px);
}
.lead-modal-bg.show { display: flex; animation: lmFadeIn .25s ease; }
@keyframes lmFadeIn { from { opacity: 0; } to { opacity: 1; } }
.lead-modal {
  background: white;
  border-radius: var(--radius-lg);
  width: 100%; max-width: 480px;
  max-height: 92vh; overflow-y: auto;
  animation: lmSlideUp .3s ease;
  box-shadow: 0 30px 80px rgba(0,0,0,0.4);
}
@keyframes lmSlideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.lead-modal-head {
  padding: 24px 28px 18px;
  border-bottom: 1px solid var(--gray-200);
  display: flex; justify-content: space-between; align-items: flex-start; gap: 16px;
}
.lead-modal-head h3 { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; color: var(--gray-950); }
.lead-modal-head p { font-size: 13px; color: var(--gray-600); margin-top: 4px; }
.lead-modal-close {
  width: 34px; height: 34px;
  border-radius: var(--radius-sm);
  color: var(--gray-600);
  display: flex; align-items: center; justify-content: center;
  transition: all .15s; flex-shrink: 0;
  font-size: 18px;
  background: transparent; border: none; cursor: pointer;
}
.lead-modal-close:hover { background: var(--gray-100); color: var(--gray-950); }
.lead-modal-body { padding: 22px 28px; }
.lead-modal-ref {
  background: var(--gray-50);
  border-left: 3px solid var(--mr-red);
  padding: 12px 14px;
  border-radius: 0 6px 6px 0;
  margin-bottom: 18px;
  font-size: 13px;
  color: var(--gray-700);
}
.lead-modal-ref strong { color: var(--gray-950); }
.lead-modal-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.lead-modal-field label { font-size: 12px; font-weight: 600; color: var(--gray-700); }
.lead-modal-field label .req { color: var(--mr-red); }
.lead-modal-input {
  padding: 12px 14px;
  font-size: 15px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  background: white;
  color: var(--gray-950);
  transition: all .2s;
  font-family: inherit;
  width: 100%;
}
.lead-modal-input:focus {
  outline: none;
  border-color: var(--mr-red);
  box-shadow: 0 0 0 3px rgba(226,10,19,0.12);
}
textarea.lead-modal-input { min-height: 90px; resize: vertical; line-height: 1.5; }
.lead-modal-consent {
  display: flex; gap: 10px;
  font-size: 12px; color: var(--gray-600);
  line-height: 1.4; margin-top: 4px;
}
.lead-modal-consent input { accent-color: var(--mr-red); margin-top: 2px; flex-shrink: 0; }
.lead-modal-footer {
  padding: 16px 28px 24px;
  display: flex; gap: 10px;
  flex-direction: column;
}
.lead-modal-submit {
  background: var(--mr-red); color: white;
  padding: 14px; border-radius: var(--radius-sm);
  font-weight: 700; font-size: 15px;
  transition: all .2s;
  width: 100%;
  border: none; cursor: pointer;
  font-family: inherit;
}
.lead-modal-submit:hover { background: var(--mr-red-hover); }
.lead-modal-secondary {
  padding: 11px;
  background: transparent;
  color: var(--gray-700);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 600;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  display: block;
  transition: all .15s;
  font-family: inherit;
}
.lead-modal-secondary:hover { border-color: var(--mr-red); color: var(--mr-red); }
.lead-modal-success {
  padding: 50px 28px;
  text-align: center;
}
.lead-modal-success .check {
  width: 64px; height: 64px;
  margin: 0 auto 18px;
  background: var(--mr-red-soft); color: var(--mr-red);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 32px;
}
.lead-modal-success h3 { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 10px; }
.lead-modal-success p { font-size: 14px; color: var(--gray-600); line-height: 1.5; margin-bottom: 22px; }

/* Site toast */
.site-toast {
  position: fixed; top: 24px; right: 24px;
  background: var(--gray-950); color: white;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  box-shadow: 0 12px 40px rgba(0,0,0,0.25);
  font-size: 14px; font-weight: 500;
  z-index: 300;
  display: none;
  animation: toastIn .3s ease;
}
@keyframes toastIn { from { transform: translateX(20px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
.site-toast.show { display: block; }
.site-toast.success { background: #2D7A4F; }

/* Foco */
a:focus-visible, button:focus-visible, select:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--mr-red);
  outline-offset: 2px;
}
body.menu-open { overflow: hidden; }

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .imoveis-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .container { padding: 0 18px; }
  .preview-banner { font-size: 11px; padding: 10px 16px; }
  .top-info-bar { padding: 8px 0; font-size: 12px; }
  .top-info-inner { padding: 0 16px; flex-direction: column; gap: 6px; }
  .top-info-group { gap: 14px; }
  .top-info-item .label-hide-mobile { display: none; }
}
@media (max-width: 480px) {
  .top-info-group:last-child { display: none; }
  .top-info-inner { justify-content: center; }
}
@media (max-width: 768px) {
  .header-inner { padding: 14px 18px; gap: 12px; }
  .menu-toggle { display: flex; }
  .logo-img { height: 42px; }
  /* Só o menu principal vira gaveta. Antes o seletor era `nav`, que pegava
     também o <nav class="breadcrumb"> das páginas internas e o jogava
     fora da tela. */
  #primary-nav {
    position: fixed; top: 0; right: -100%;
    width: 80%; max-width: 320px;
    height: 100vh; height: 100dvh;
    background: white; z-index: 100;
    padding: 84px 28px 32px;
    transition: right .35s cubic-bezier(.16,.84,.36,1);
    box-shadow: -10px 0 40px rgba(0,0,0,0.15);
    overflow-y: auto;
  }
  #primary-nav.is-open { right: 0; }
  #primary-nav ul { flex-direction: column; gap: 0; }
  #primary-nav li { border-bottom: 1px solid var(--gray-200); }
  #primary-nav a { display: block; padding: 18px 4px; font-size: 17px; font-weight: 600; color: var(--gray-950); }
  /* o id subiu a especificidade, então o item ativo precisa ser reafirmado */
  #primary-nav a:hover, #primary-nav a.nav-active { color: var(--mr-red); }
  #primary-nav .mobile-only { display: block; }
  #primary-nav .mobile-cta { display: block; margin-top: 24px; padding: 0; border: none; }
  #primary-nav .mobile-cta a { background: var(--mr-red); color: white; text-align: center; border-radius: var(--radius-sm); padding: 16px 20px; font-size: 15px; }
  .header-inner > .header-actions { display: none; }

  .listing-hero { padding: 24px 0 22px; }
  .listing-title { font-size: 24px; }
  .listing-subtitle { font-size: 13px; }
  .listing-page { padding: 22px 0 60px; }

  .listing-toolbar { gap: 8px; }
  .filter-toggle { display: inline-flex; flex: 1; justify-content: center; padding: 11px 12px; font-size: 13px; }
  .sort-wrap label { display: none; }
  .sort-wrap select { padding: 10px 12px; font-size: 13px; }

  .listing-layout { grid-template-columns: 1fr; gap: 18px; }
  .listing-filters {
    position: fixed; top: 0; left: -100%;
    width: 88%; max-width: 360px;
    height: 100vh; height: 100dvh;
    z-index: 150;
    border-radius: 0;
    border-right: 1px solid var(--gray-200);
    overflow-y: auto;
    transition: left .35s ease;
    box-shadow: 8px 0 32px rgba(0,0,0,0.15);
  }
  .listing-filters.is-open { left: 0; }
  .filter-close { display: flex; }
  .imoveis-grid-3 { grid-template-columns: 1fr; gap: 14px; }
  .property-info { padding: 16px; }
  .property-title { font-size: 16px; }
  .property-features { gap: 12px; font-size: 12px; flex-wrap: wrap; }
  .property-price-value { font-size: 20px; }

  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; font-size: 11px; }
  .footer-credit img { height: 90px; }
  footer { padding: 56px 0 28px; }

  .whatsapp-float {
    width: 56px; height: 56px;
    bottom: max(20px, env(safe-area-inset-bottom));
    right: 20px;
  }
  .whatsapp-float svg { width: 28px; height: 28px; }

  /* Lead modal mobile */
  .lead-modal-bg { padding: 0; align-items: flex-end; }
  .lead-modal { max-width: 100%; max-height: 95vh; max-height: 95dvh; border-radius: 18px 18px 0 0; }
  .lead-modal-head { padding: 20px 22px 16px; }
  .lead-modal-head h3 { font-size: 18px; }
  .lead-modal-body { padding: 18px 22px; }
  .lead-modal-footer { padding: 14px 22px 22px; }
  .lead-modal-input { font-size: 16px; padding: 13px 14px; }
  textarea.lead-modal-input { min-height: 70px; }
  .lead-modal-submit { padding: 16px; font-size: 15px; }
  .site-toast {
    top: auto; bottom: 96px;
    left: 16px; right: 16px;
    text-align: center;
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .listing-title { font-size: 22px; }
}


/* ========== PÁGINAS LEGAIS ========== */
.legal-hero {
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
  padding: 48px 0 40px;
}
.legal-hero h1 {
  font-size: 40px; font-weight: 800; letter-spacing: -0.03em;
  line-height: 1.1; margin: 14px 0 10px; max-width: 760px;
}
.legal-hero .atualizado {
  font-size: 13px; color: var(--gray-500); font-weight: 500;
}
.legal-page { padding: 56px 0 88px; }
.legal-grid {
  display: grid; grid-template-columns: 240px 1fr;
  gap: 56px; align-items: start;
}
.legal-index { position: sticky; top: 100px; }
.legal-index .title {
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--gray-500); margin-bottom: 14px;
}
.legal-index a {
  display: block; padding: 7px 0 7px 14px;
  border-left: 2px solid var(--gray-200);
  font-size: 13px; color: var(--gray-600); font-weight: 500;
  transition: all .18s;
}
.legal-index a:hover { color: var(--gray-950); border-left-color: var(--mr-red); }

.legal-resumo {
  border: 1px solid var(--gray-200);
  border-left: 3px solid var(--mr-red);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  background: var(--gray-50);
  padding: 24px 26px; margin-bottom: 40px;
}
.legal-resumo h2 {
  font-size: 13px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--mr-red); margin-bottom: 12px;
}
.legal-resumo ul { margin: 0; padding-left: 18px; }
.legal-resumo li {
  font-size: 15px; line-height: 1.6; color: var(--gray-800); margin-bottom: 8px;
}
.legal-resumo li:last-child { margin-bottom: 0; }

.legal-conteudo h2 {
  font-size: 22px; font-weight: 800; letter-spacing: -0.02em;
  color: var(--gray-950); margin: 40px 0 14px; scroll-margin-top: 96px;
}
.legal-conteudo h2:first-of-type { margin-top: 0; }
.legal-conteudo h3 {
  font-size: 16px; font-weight: 700; color: var(--gray-950); margin: 24px 0 8px;
}
.legal-conteudo p {
  font-size: 15.5px; line-height: 1.72; color: var(--gray-700); margin-bottom: 14px;
}
.legal-conteudo ul, .legal-conteudo ol { margin: 0 0 16px; padding-left: 20px; }
.legal-conteudo li {
  font-size: 15.5px; line-height: 1.7; color: var(--gray-700); margin-bottom: 7px;
}
.legal-conteudo strong { color: var(--gray-950); font-weight: 700; }
.legal-conteudo a { color: var(--mr-red); font-weight: 600; }
.legal-conteudo a:hover { text-decoration: underline; }

.legal-tabela { width: 100%; border-collapse: collapse; margin: 16px 0 22px; }
.legal-tabela th, .legal-tabela td {
  text-align: left; padding: 12px 14px;
  border-bottom: 1px solid var(--gray-200);
  font-size: 14px; line-height: 1.55; vertical-align: top;
}
.legal-tabela th {
  font-size: 11px; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--gray-600);
  background: var(--gray-50);
}
.legal-tabela td { color: var(--gray-700); }

.legal-aviso {
  border: 1px dashed var(--gray-300); border-radius: var(--radius-md);
  background: white; padding: 18px 20px; margin: 22px 0;
  font-size: 14px; line-height: 1.6; color: var(--gray-600);
}
.legal-aviso strong { color: var(--gray-950); }

@media (max-width: 1024px) {
  .legal-grid { grid-template-columns: 1fr; gap: 28px; }
  .legal-index { position: static; }
  .legal-index a {
    display: inline-block; border-left: none;
    border-bottom: 2px solid var(--gray-200);
    padding: 5px 0; margin-right: 16px;
  }
}
@media (max-width: 768px) {
  .legal-hero { padding: 32px 0 28px; }
  .legal-hero h1 { font-size: 27px; }
  .legal-page { padding: 36px 0 56px; }
  .legal-conteudo h2 { font-size: 19px; margin-top: 30px; }
  .legal-conteudo p, .legal-conteudo li { font-size: 15px; }
  .legal-tabela th, .legal-tabela td { padding: 10px; font-size: 13px; }
}


/* ========== MOLDURA DE FOTO (vertical ou horizontal) ==========
   Foto de celular vem em pé; a moldura do site é deitada. Cortar
   (object-fit: cover) decepava a foto. Aqui a imagem aparece INTEIRA
   e o espaço que sobra é preenchido por uma cópia borrada dela mesma,
   então a moldura fica cheia e a foto fica completa.
   Uso: <div class="foto-moldura" style="--foto:url('...')"><img ...></div>
*/
.foto-moldura {
  position: relative;
  overflow: hidden;
  background: #101114;
  isolation: isolate;
}
.foto-moldura::before {
  content: '';
  position: absolute;
  inset: -8%;                     /* sangra para o desfoque não mostrar borda */
  background-image: var(--foto);
  background-size: cover;
  background-position: center;
  filter: blur(22px) saturate(1.25) brightness(0.72);
  transform: scale(1.06);
  z-index: 0;
}
.foto-moldura > img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;            /* mostra a foto inteira */
  transition: transform .5s;
}
/* Sem a variável (imagem local de apoio), volta ao preenchimento simples */
.foto-moldura:not([style*="--foto"]) > img { object-fit: cover; }
