/* CURYSP — Shell Visual, Responsividade & WCAG 2.2 AA (Parte 04/06) */
:root {
  --v-navy: #0F2544; --v-navy-mid: #1A374D; --v-blue: #1D3BF0; --v-blue-hover: #152DB8;
  --v-blue-soft: #2D719F; --v-blue-tint: #EEF3FA; --v-steel: #24538A;
  --v-green: #15803D; --v-green-hover: #166534; --v-border: #E2E8F0;
  --v-body: #334155; --v-muted: #526277; --v-radius: 10px; --v-radius-sm: 6px;
  --v-shadow: 0 2px 12px rgba(15, 37, 68, 0.07);
  --v-shadow-hover: 0 10px 26px rgba(15, 37, 68, 0.13);
  --v-font-h: "Montserrat", "Montserrat Fallback", -apple-system, BlinkMacSystemFont, sans-serif;
  --v-font-b: "Open Sans", "Open Sans Fallback", -apple-system, BlinkMacSystemFont, sans-serif;
}
html, body { overflow-x: clip; }
:focus-visible { outline: 3px solid var(--v-blue); outline-offset: 2px; }
body.cs-lb-lock, body.cs-drawer-open { overflow: hidden; }
body.cs-lb-lock .wa-fixed, body.cs-lb-lock .wa-float, body.cs-drawer-open .wa-fixed, body.cs-drawer-open .wa-float { display: none !important; }

/* Header compacto padronizado sem caixa CRECI */
.cs-brand-tag { display: none !important; }
.cs-header { height: 60px !important; background: #FFFFFF !important; border-bottom: 1px solid var(--v-border) !important; box-shadow: 0 1px 8px rgba(15,37,68,.06) !important; }
.cs-header-inner { max-width: 1220px !important; height: 100% !important; padding: 0 24px !important; }
.cs-brand img { height: 32px !important; width: auto !important; }
.cs-btn-wa-nav { background: var(--v-green) !important; color: #FFFFFF !important; border-radius: 6px !important; min-height: 40px; }
.cs-btn-wa-nav:hover { background: var(--v-green-hover) !important; }
.cs-menu-toggle { min-width: 44px; min-height: 44px; }

/* Cards comerciais unificados para /bairros/* */
.vp-cards-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.v-card { display: flex; flex-direction: column; background: #FFFFFF; border: 1px solid var(--v-border); border-radius: var(--v-radius); overflow: hidden; box-shadow: var(--v-shadow); transition: transform .2s ease, box-shadow .2s ease; }
.v-card:hover { transform: translateY(-3px); box-shadow: var(--v-shadow-hover); }
.v-card-media { position: relative; display: block; width: 100%; aspect-ratio: 16 / 10; overflow: hidden; background: #E2E8F0; }
.v-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.v-status-bar { display: block; width: 100%; padding: 6px 14px; font-family: var(--v-font-h); font-size: 11px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; color: #FFFFFF; background: var(--v-navy-mid); }
.v-status-bar.is-obras { background: var(--v-steel); }
.v-status-bar.is-pronto { background: var(--v-green); }
.v-card-body { display: flex; flex-direction: column; flex: 1 1 auto; padding: 16px 16px 18px; gap: 6px; }
.v-card-title { margin: 0; font-family: var(--v-font-h); font-size: 16.5px; font-weight: 700; line-height: 1.28; color: var(--v-navy); }
.v-card-title a { color: var(--v-navy); text-decoration: none; }
.v-card-title a:hover { color: var(--v-blue); }
.v-card-loc { margin: 0; font-family: var(--v-font-h); font-size: 12.5px; font-weight: 600; color: var(--v-blue-soft); }
.v-card-specs { margin: 2px 0 4px; font-size: 13.5px; line-height: 1.45; color: var(--v-body); }
.v-card-price { margin: 0 0 12px; font-size: 12.5px; color: var(--v-muted); }
.v-card-cta { margin-top: auto; display: inline-flex; align-items: center; justify-content: center; width: 100%; min-height: 44px; padding: 10px 14px; border-radius: 6px; background: var(--v-blue); color: #FFFFFF !important; font-family: var(--v-font-h); font-size: 13px; font-weight: 700; text-decoration: none; }
.v-card-cta:hover { background: var(--v-blue-hover); }

/* Rodape compacto com escudo COFECI/CRECI-SP */
.cs-footer { background: #0F2544 !important; color: #E2E8F0 !important; padding: 40px 24px calc(24px + env(safe-area-inset-bottom, 0px)) !important; text-align: left !important; border-top: none !important; }
.v-footer-grid { max-width: 1220px; margin: 0 auto 28px; display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 28px; }
.v-creci-badge { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 10px; color: #FFFFFF; font-family: var(--v-font-h); font-size: 14px; font-weight: 700; }
.v-creci-badge svg { width: 18px; height: 18px; flex-shrink: 0; color: #93C5FD; }
.v-footer-legal { margin: 0 0 8px; font-size: 13px; line-height: 1.5; color: #CBD5E1; }
.v-footer-legal strong { color: #FFFFFF; }
.v-footer-col h3 { margin: 0 0 12px; font-family: var(--v-font-h); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; color: #FFFFFF; }
.v-footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.v-footer-col a { font-size: 13px; color: #CBD5E1; text-decoration: none; }
.v-footer-col a:hover { color: #FFFFFF; text-decoration: underline; }
.v-footer-bottom { max-width: 1220px; margin: 0 auto; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.14); display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 12px; color: #94A3B8; }

/* Contraste WCAG AA em breadcrumbs escuros (ex.: /simular) */
nav.curysp-bc.curysp-bc-dark { background: #0F2544 !important; }
nav.curysp-bc.curysp-bc-dark li { color: #E2E8F0 !important; }
nav.curysp-bc.curysp-bc-dark a { color: #93C5FD !important; }

/* Safe-area WhatsApp & Lightbox */
.cs-lb-btn { min-width: 44px; min-height: 44px; }
.wa-fixed, .wa-float { bottom: calc(14px + var(--cs-banner-h, 0px) + env(safe-area-inset-bottom, 0px)) !important; right: calc(14px + env(safe-area-inset-right, 0px)) !important; }
body.cs-banner-open .wa-fixed, body.cs-banner-open .wa-float,
body:has(#curyspLgpdBanner[style*="flex"]) .wa-fixed, body:has(#curyspLgpdBanner[style*="flex"]) .wa-float {
  bottom: calc(14px + var(--cs-banner-h, 70px) + env(safe-area-inset-bottom, 0px)) !important;
}

@media (max-width: 960px) {
  .vp-cards-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .v-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .cs-header { height: 56px !important; }
  .cs-header-inner { padding: 0 14px !important; }
  .cs-brand img { height: 28px !important; }
  input[type="text"], input[type="tel"], input[type="email"], input[type="search"], select, .cury-phone-shell input.cury-shell-input { font-size: 16px !important; }
  .vp-cards-grid { grid-template-columns: 1fr; gap: 16px; }
  .v-footer-grid { grid-template-columns: 1fr; gap: 22px; }
  .cs-footer { padding: 32px 16px calc(24px + env(safe-area-inset-bottom, 0px)) !important; }
  body.cs-banner-open .wa-fixed, body.cs-banner-open .wa-float,
  body:has(#curyspLgpdBanner[style*="flex"]) .wa-fixed, body:has(#curyspLgpdBanner[style*="flex"]) .wa-float {
    bottom: calc(14px + var(--cs-banner-h, 138px) + env(safe-area-inset-bottom, 0px)) !important;
  }
}
@media (max-height: 500px) and (orientation: landscape) {
  .cs-lb-overlay img, #lightboxModal img, #lbModal img { max-height: 62vh !important; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}


/* === RODAPE ULTRA-COMPACTO (SIMPLIFICACAO VISUAL 2026) === */
.cs-footer,
.cs-footer.cs-footer-compact {
  background: #F8FAFC !important;
  color: #334155 !important;
  border-top: 1px solid #E2E8F0 !important;
  padding: 18px 24px calc(18px + env(safe-area-inset-bottom, 0px)) !important;
  text-align: left !important;
}
.v-footer-bar {
  max-width: 1260px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px 24px;
  flex-wrap: wrap;
}
.v-footer-id {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.v-creci-shield {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 7px;
  background: #EAF1FB;
  color: #1E40AF;
  flex-shrink: 0;
}
.v-creci-shield svg {
  width: 15px;
  height: 15px;
  display: block;
}
.v-footer-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.v-footer-title {
  margin: 0;
  font-family: "Montserrat", "Montserrat Fallback", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 12.5px;
  line-height: 1.35;
  color: #0F2544;
}
.v-footer-role {
  font-weight: 600;
  color: #334155;
}
.v-footer-title strong {
  font-weight: 700;
  color: #0F2544;
}
.v-footer-dot {
  color: #94A3B8;
  margin: 0 2px;
}
.v-footer-note {
  margin: 0;
  font-size: 11.5px;
  line-height: 1.4;
  color: #64748B;
}
.v-footer-links {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  flex-shrink: 0;
}
.v-footer-links a,
.v-footer-cookie-btn {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 4px 2px;
  background: transparent;
  border: none;
  font-family: "Open Sans", "Open Sans Fallback", Arial, sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: #475569;
  text-decoration: none;
  cursor: pointer;
  transition: color .16s;
}
.v-footer-links a:hover,
.v-footer-cookie-btn:hover {
  color: #1D3BF0;
  text-decoration: underline;
}
.v-footer-sep {
  color: #CBD5E1;
  user-select: none;
}
@media (max-width: 768px) {
  .cs-footer,
  .cs-footer.cs-footer-compact {
    padding: 18px 16px calc(78px + env(safe-area-inset-bottom, 0px)) !important;
  }
  .v-footer-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .v-footer-id {
    align-items: flex-start;
  }
  .v-footer-title {
    font-size: 12px;
  }
  .v-footer-links a,
  .v-footer-cookie-btn {
    min-height: 40px;
    font-size: 12.5px;
  }
}


/* === FIX: ZERO SOBREPOSICAO WHATSAPP DESKTOP + CONTENT-VISIBILITY COMPACTO === */
.cs-footer,
.cs-footer.cs-footer-compact {
  content-visibility: visible !important;
  contain-intrinsic-size: auto !important;
}
@media (min-width: 769px) {
  .cs-footer,
  .cs-footer.cs-footer-compact {
    padding: 18px 168px 18px 24px !important;
  }
}

/* === CURYSP UNIFIED WHATSAPP BUTTONS (MATCHING HOME #25D366) === */
.cs-btn-wa-nav {
  background: #25D366 !important;
  color: #FFFFFF !important;
  padding: 10px 20px !important;
  border-radius: 6px !important;
  font-family: 'Montserrat', Arial, sans-serif !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  min-height: 40px !important;
  text-decoration: none !important;
  box-shadow: 0 2px 10px rgba(37, 211, 102, 0.28) !important;
  transition: background .2s ease, transform .2s ease, box-shadow .2s ease !important;
}
.cs-btn-wa-nav:hover {
  background: #20BA59 !important;
  color: #FFFFFF !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.42) !important;
}
.wa-fixed, .wa-float {
  position: fixed !important;
  right: 24px !important;
  z-index: 9999 !important;
  background: #25D366 !important;
  color: #FFFFFF !important;
  border-radius: 50px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 14px 20px !important;
  text-decoration: none !important;
  font-family: 'Montserrat', Arial, sans-serif !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4) !important;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease !important;
}
.wa-fixed:hover, .wa-float:hover {
  background: #20BA59 !important;
  color: #FFFFFF !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.55) !important;
}
@media (max-width: 768px) {
  .wa-fixed, .wa-float {
    padding: 12px 16px !important;
    right: 16px !important;
  }
  .wa-fixed span, .wa-float span {
    display: inline !important;
  }
}
