/* Casa pra Vender — scoped imobiliária UI (does not affect courses/ML) */
:root {
  --cpv-navy: #0B2A4A;
  --cpv-navy-2: #0B2A4A;
  --cpv-blue: #1F5FA8;
  --cpv-accent: #1F5FA8;
  --cpv-gold: #C9A227;
  --cpv-gold-2: #D8B53A;
  --cpv-black: #0D0F12;
  --cpv-red: #D62828;
  --cpv-soft: #F5F2EA;
  --cpv-border: #E4DFD2;
  --cpv-muted: #5b6b7c;
  --cpv-price: #0B2A4A;
  --cpv-wa: #C9A227;
  --cpv-radius: 14px;
  --cpv-shadow: 0 10px 30px rgba(11, 42, 74, 0.09);
}

body.casapravender {
  margin: 0;
  background: #fff;
  color: #0D0F12;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.5;
}

.casapravender a { color: var(--cpv-blue); text-decoration: none; }
.casapravender a:hover { text-decoration: underline; }

.cpv-wrap { max-width: 1120px; margin: 0 auto; padding: 0 1rem; }

/* Slim header */
.cpv-topbar {
  background: var(--cpv-navy);
  color: #fff;
  border-bottom: 3px solid var(--cpv-gold);
  position: sticky;
  top: 0;
  z-index: 50;
}
.cpv-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 64px;
}
.cpv-brand {
  color: #fff !important;
  font-weight: 700;
  letter-spacing: .01em;
  text-decoration: none !important;
  font-size: 1.05rem;
}
.cpv-brand span { font-weight: 500; opacity: .75; margin-left: .35rem; font-size: .92rem; }
.cpv-nav { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.cpv-nav a {
  color: rgba(255,255,255,.88) !important;
  text-decoration: none !important;
  font-size: .92rem;
  padding: .35rem .55rem;
  border-radius: 8px;
}
.cpv-nav a:hover { background: rgba(255,255,255,.08); }
.cpv-nav .cpv-btn-sm {
  background: var(--cpv-gold);
  color: var(--cpv-navy) !important;
  padding: .45rem .85rem;
  border-radius: 999px;
  font-weight: 600;
}

/* Hero */
.cpv-hero {
  background: linear-gradient(135deg, #0B2A4A 0%, #0E3359 65%, #1F5FA8 140%);
  color: #fff;
  padding: 3.2rem 0 3.4rem;
  margin-bottom: 2rem;
}
.cpv-hero h1 {
  margin: 0 0 .75rem;
  font-size: clamp(1.7rem, 4vw, 2.55rem);
  line-height: 1.15;
  font-weight: 800;
}
.cpv-hero p {
  margin: 0 0 1.4rem;
  max-width: 36rem;
  opacity: .92;
  font-size: 1.05rem;
}
.cpv-hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.cpv-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  border: 0;
  border-radius: 999px;
  padding: .75rem 1.25rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none !important;
  font-size: .98rem;
}
.cpv-btn-primary { background: var(--cpv-gold); color: var(--cpv-navy) !important; }
.cpv-btn-primary:hover { background: var(--cpv-gold-2); }
.cpv-btn-ghost {
  background: rgba(255,255,255,.12);
  color: #fff !important;
  border: 1px solid rgba(255,255,255,.28);
}
.cpv-btn-ghost:hover { background: rgba(255,255,255,.2); }
.cpv-btn-outline {
  background: #fff;
  color: var(--cpv-navy) !important;
  border: 1px solid var(--cpv-border);
}
.cpv-btn-outline:hover { border-color: var(--cpv-blue); color: var(--cpv-blue) !important; }
.cpv-btn-wa {
  background: var(--cpv-gold);
  color: var(--cpv-navy) !important;
  box-shadow: 0 8px 20px rgba(201, 162, 39, .30);
}
.cpv-btn-wa:hover { background: var(--cpv-gold-2); }
.cpv-btn-block { width: 100%; }

/* Sections */
.cpv-section { padding: 0 0 2.5rem; }
.cpv-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.1rem;
  flex-wrap: wrap;
}
.cpv-section-head h2 {
  margin: 0;
  font-size: 1.35rem;
  color: var(--cpv-navy);
}
.cpv-muted { color: var(--cpv-muted); }
.cpv-crumb {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  font-size: .88rem;
  color: var(--cpv-muted);
  margin: 1.25rem 0 1rem;
}
.cpv-crumb a { color: var(--cpv-blue); }
.cpv-page-title {
  margin: 0 0 .35rem;
  color: var(--cpv-navy);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
}

/* Cards grid */
.cpv-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.15rem;
}
@media (min-width: 640px) {
  .cpv-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 980px) {
  .cpv-grid { grid-template-columns: repeat(3, 1fr); }
}

.cpv-card {
  background: #fff;
  border: 1px solid var(--cpv-border);
  border-radius: var(--cpv-radius);
  overflow: hidden;
  box-shadow: var(--cpv-shadow);
  display: flex;
  flex-direction: column;
  transition: transform .15s ease, box-shadow .15s ease;
}
.cpv-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(11, 42, 74, 0.14);
}
.cpv-card-media {
  display: block;
  position: relative;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #DCE5F1, #F5F2EA);
  overflow: hidden;
}
.cpv-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cpv-ph {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cpv-blue);
  font-weight: 700;
  letter-spacing: .04em;
  font-size: .95rem;
  background:
    linear-gradient(135deg, rgba(30,77,140,.08), rgba(11,31,58,.12)),
    repeating-linear-gradient(45deg, transparent, transparent 12px, rgba(255,255,255,.35) 12px, rgba(255,255,255,.35) 24px);
}
.cpv-badge {
  position: absolute;
  top: .7rem;
  left: .7rem;
  background: rgba(11,42,74,.9);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  padding: .28rem .55rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: .03em;
}
.cpv-badge.sold { background: var(--cpv-gold); color: var(--cpv-navy); }
.cpv-card-body {
  padding: 1rem 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: .45rem;
  flex: 1;
}
.cpv-card-body h3 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.3;
  color: var(--cpv-navy);
}
.cpv-card-body h3 a { color: inherit !important; text-decoration: none !important; }
.cpv-loc { color: var(--cpv-muted); font-size: .9rem; margin: 0; }
.cpv-price {
  margin: .15rem 0;
  color: var(--cpv-price);
  font-weight: 800;
  font-size: 1.2rem;
}
.cpv-specs {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem .9rem;
  color: var(--cpv-muted);
  font-size: .88rem;
  margin: .15rem 0 .35rem;
}
.cpv-specs span { display: inline-flex; align-items: center; gap: .3rem; }
.cpv-card-actions { margin-top: auto; padding-top: .35rem; }

/* Articles on hub stay quieter */
.cpv-article-card .cpv-card-media { aspect-ratio: 16 / 9; }
.cpv-article-card .cpv-price { font-size: 1rem; color: var(--cpv-navy); }

/* Detail */
.cpv-detail {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 2rem;
}
@media (min-width: 900px) {
  .cpv-detail { grid-template-columns: 1.35fr .9fr; align-items: start; }
}
.cpv-gallery {
  background: #fff;
  border: 1px solid var(--cpv-border);
  border-radius: var(--cpv-radius);
  overflow: hidden;
  box-shadow: var(--cpv-shadow);
}
.cpv-gallery-main {
  aspect-ratio: 16 / 11;
  background: #eef2f7;
}
.cpv-gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cpv-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  gap: .5rem;
  padding: .65rem;
  background: #fff;
}
.cpv-thumbs button {
  border: 2px solid transparent;
  padding: 0;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  background: #eef2f7;
  aspect-ratio: 1;
}
.cpv-thumbs button.active,
.cpv-thumbs button:hover { border-color: var(--cpv-accent); }
.cpv-thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }

.cpv-side {
  background: #fff;
  border: 1px solid var(--cpv-border);
  border-radius: var(--cpv-radius);
  box-shadow: var(--cpv-shadow);
  padding: 1.25rem;
  position: sticky;
  top: 80px;
}
.cpv-side .cpv-status {
  display: inline-block;
  background: #E4ECF7;
  color: var(--cpv-blue);
  font-size: .75rem;
  font-weight: 700;
  padding: .28rem .6rem;
  border-radius: 999px;
  margin-bottom: .65rem;
  text-transform: uppercase;
}
.cpv-side .cpv-status.sold { background: #F3E7B5; color: #0B2A4A; }
.cpv-side h1 {
  margin: 0 0 .5rem;
  font-size: clamp(1.35rem, 2.5vw, 1.8rem);
  color: var(--cpv-navy);
  line-height: 1.2;
}
.cpv-side .cpv-price { font-size: 1.7rem; margin: .55rem 0 1rem; }
.cpv-side .cpv-specs {
  padding: .85rem 0;
  border-top: 1px solid var(--cpv-border);
  border-bottom: 1px solid var(--cpv-border);
  margin-bottom: 1rem;
  font-size: .95rem;
  color: var(--cpv-navy);
}
.cpv-desc {
  background: var(--cpv-soft);
  border-radius: var(--cpv-radius);
  padding: 1.25rem 1.35rem;
  margin: 0 0 5rem;
  border: 1px solid var(--cpv-border);
}
.cpv-desc h2 {
  margin: 0 0 .75rem;
  font-size: 1.15rem;
  color: var(--cpv-navy);
}
.cpv-desc p { margin: 0 0 .85rem; color: #1c2430; }
.cpv-desc p:last-child { margin-bottom: 0; }

.cpv-sticky-cta {
  position: sticky;
  bottom: 0;
  z-index: 40;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--cpv-border);
  padding: .75rem 0;
}
.cpv-empty {
  background: var(--cpv-soft);
  border: 1px dashed var(--cpv-border);
  border-radius: var(--cpv-radius);
  padding: 1.5rem;
  color: var(--cpv-muted);
}

/* Footer */
.cpv-footer {
  background: var(--cpv-navy);
  border-top: 4px solid var(--cpv-gold);
  color: rgba(255,255,255,.82);
  padding: 1.75rem 0;
  margin-top: 1rem;
  font-size: .9rem;
}
.cpv-footer a { color: #fff !important; }
.cpv-footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

/* SOUFR_IMOVEL_CONTATO_20261126 — formulário "Pedir informações" */
.cpv-contact {
  background: #fff;
  border: 1px solid var(--cpv-border);
  border-radius: var(--cpv-radius);
  box-shadow: var(--cpv-shadow);
  padding: 1.25rem 1.35rem;
  margin: 1.5rem 0;
  scroll-margin-top: 80px;
  max-width: 760px;
}
.cpv-contact h2 { margin: 0 0 .4rem; font-size: 1.15rem; color: var(--cpv-navy); }
.cpv-contact-sub { margin: 0 0 1rem; font-size: .95rem; }
.cpv-contact-lgpd { font-size: .82rem; margin: .5rem 0 1rem; color: var(--cpv-muted); }
.cpv-form { position: relative; }
.cpv-form[hidden], .cpv-form-msg[hidden] { display: none !important; }
.cpv-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem 1rem; }
.cpv-field { display: block; margin: 0 0 .75rem; }
.cpv-field > span { display: block; font-size: .85rem; font-weight: 700; color: var(--cpv-navy); margin-bottom: .25rem; }
.cpv-field input, .cpv-field select, .cpv-field textarea {
  width: 100%;
  border: 1px solid var(--cpv-border);
  border-radius: 10px;
  padding: .65rem .8rem;
  font-size: 1rem;
  font-family: inherit;
  background: #fff;
  color: #1e293b;
}
.cpv-field input:focus, .cpv-field select:focus, .cpv-field textarea:focus { outline: 2px solid var(--cpv-accent); outline-offset: 0; border-color: var(--cpv-accent); }
.cpv-code-input { font-size: 1.6rem !important; letter-spacing: .5rem; text-align: center; max-width: 14rem; }
.cpv-btn-primary-solid { background: var(--cpv-navy); color: #fff !important; }
.cpv-btn-primary-solid:hover { filter: brightness(.95); }
.cpv-btn-primary-solid:disabled { opacity: .6; cursor: wait; }
.cpv-form-msg { border-radius: 10px; padding: .65rem .9rem; margin: 0 0 .85rem; font-size: .95rem; }
.cpv-form-msg-err { background: #fdecec; color: #9b1c1c; border: 1px solid #f5c2c2; }
.cpv-form-msg-ok { background: #FBF5DC; color: #4d3d05; border: 1px solid #E7D48A; }
.cpv-form-done { font-size: 1.05rem; padding: 1rem; }
.cpv-link-btn { background: none; border: 0; padding: 0; color: var(--cpv-blue); text-decoration: underline; cursor: pointer; font: inherit; }
.cpv-cta-dual { display: flex; gap: .6rem; }
.cpv-cta-dual .cpv-btn { flex: 1; }
@media (max-width: 640px) {
  .cpv-form-grid { grid-template-columns: 1fr; }
  .cpv-contact { padding: 1rem; }
}

/* AREA_CORRETOR_20261126 — tipo do pedido (informações ou visita) */
.cpv-tipo { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; }
.cpv-tipo > span { width: 100%; margin-bottom: 0 !important; }
.cpv-tipo-op { display: inline-flex; align-items: center; gap: .4rem; border: 1px solid var(--cpv-border); border-radius: 999px; padding: .45rem .9rem; cursor: pointer; font-weight: 600; color: var(--cpv-navy); background: #fff; }
.cpv-tipo-op input { accent-color: var(--cpv-accent); width: auto !important; margin: 0; }
.cpv-tipo-op:has(input:checked) { border-color: var(--cpv-navy); background: #E4ECF7; }

/* ANUNCIANTE_20261126 — página /casapravender/anunciar */
.cpv-anc-hero { padding-bottom: 3rem; }
.cpv-anc-crumb { color: rgba(255,255,255,.75); margin-bottom: 1rem; font-size: .88rem; }
.cpv-anc-crumb a { color: #fff; }
.cpv-anc-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
.cpv-anc-card { background: #fff; border: 1px solid var(--cpv-border); border-radius: var(--cpv-radius); padding: 1.25rem; box-shadow: var(--cpv-shadow); }
.cpv-anc-card h3 { margin: .6rem 0 .35rem; font-size: 1.08rem; color: var(--cpv-navy); }
.cpv-anc-card p { margin: 0; color: var(--cpv-muted); font-size: .96rem; }
.cpv-anc-ico { width: 46px; height: 46px; border-radius: 12px; background: #E4ECF7; color: var(--cpv-blue); display: flex; align-items: center; justify-content: center; font-size: 1.4rem; }
.cpv-anc-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: 1fr; counter-reset: none; }
.cpv-anc-steps li { background: var(--cpv-soft); border-radius: var(--cpv-radius); padding: 1.1rem 1.2rem; }
.cpv-anc-steps h3 { margin: .5rem 0 .3rem; font-size: 1.02rem; color: var(--cpv-navy); }
.cpv-anc-steps p { margin: 0; color: var(--cpv-muted); font-size: .94rem; }
.cpv-anc-n { display: inline-flex; width: 30px; height: 30px; border-radius: 50%; background: var(--cpv-navy); color: var(--cpv-gold); font-weight: 800; align-items: center; justify-content: center; }
.cpv-anc-note { background: #fff; border: 1px solid var(--cpv-border); border-left: 5px solid var(--cpv-gold); border-radius: var(--cpv-radius); padding: 1.3rem 1.4rem; box-shadow: var(--cpv-shadow); }
.cpv-anc-note h2 { margin: 0 0 .6rem; font-size: 1.25rem; color: var(--cpv-navy); }
.cpv-anc-note ul { margin: 0 0 1.1rem; padding-left: 1.2rem; color: var(--cpv-muted); }
.cpv-anc-note li { margin-bottom: .35rem; }
.cpv-nav a.cpv-nav-anunciar { border: 1px solid rgba(255,255,255,.35); }
@media (min-width: 720px) { .cpv-anc-grid { grid-template-columns: repeat(3, 1fr); } .cpv-anc-steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .cpv-anc-steps { grid-template-columns: repeat(4, 1fr); } }

/* CARD_ORDEM_20261127 — "Pedir informações" abaixo de "Sobre o imóvel" (o espaço para a barra fixa fica no último card) */
.cpv-desc.cpv-desc-antes { margin-bottom: 1.5rem; }
.cpv-desc-antes + .cpv-contact { margin: 0 0 5rem; }

/* BAIRRO_FILTRO_20261130 */
.cpv-filtro { display: grid; gap: .6rem; grid-template-columns: 1fr; background: var(--cpv-soft); border: 1px solid var(--cpv-border); border-radius: var(--cpv-radius); padding: 1rem; margin: 1rem 0 1.5rem; }
.cpv-filtro label { display: block; font-size: .8rem; font-weight: 600; color: var(--cpv-muted); margin-bottom: .2rem; }
.cpv-filtro select, .cpv-filtro input[type=text] { width: 100%; padding: .6rem .7rem; border: 1px solid var(--cpv-border); border-radius: 10px; background: #fff; font-size: 1rem; }
.cpv-filtro input:disabled { background: #eef0f3; cursor: not-allowed; }
.cpv-filtro .cpv-filtro-acoes { display: flex; gap: .5rem; align-items: end; flex-wrap: wrap; }
.cpv-filtro button.cpv-btn { cursor: pointer; border: 0; background: var(--cpv-navy); color: #fff !important; }
@media (min-width: 820px) { .cpv-filtro { grid-template-columns: 1fr 1fr 1.6fr auto; align-items: end; } }
#cpv-bairros-dlg { border: 0; border-radius: var(--cpv-radius); padding: 0; width: min(560px, 92vw); max-height: 85vh; box-shadow: var(--cpv-shadow); }
#cpv-bairros-dlg::backdrop { background: rgba(11,42,74,.58); }
.cpv-dlg-head { display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.2rem; border-bottom: 1px solid var(--cpv-border); }
.cpv-dlg-head h2 { margin: 0; font-size: 1.15rem; }
.cpv-dlg-close { background: none; border: 0; font-size: 1.6rem; line-height: 1; cursor: pointer; }
.cpv-bairro-list { list-style: none; margin: 0; padding: .5rem; overflow: auto; max-height: 65vh; }
.cpv-bairro-list a { display: flex; justify-content: space-between; gap: .8rem; padding: .75rem .8rem; border-radius: 10px; color: var(--cpv-navy); font-weight: 600; }
.cpv-bairro-list a:hover { background: var(--cpv-soft); }
.cpv-bairro-list small { color: var(--cpv-muted); font-weight: 400; }
.cpv-bairro-chips { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 1rem; }
.cpv-bairro-chips a { padding: .3rem .7rem; border: 1px solid var(--cpv-border); border-radius: 999px; font-size: .88rem; }
.cpv-bairro-chips a.on { background: var(--cpv-navy); color: #fff !important; border-color: var(--cpv-navy); }
