:root {
  --bg: #eef2f5;
  --bg-soft: #f7f9fb;
  --paper: rgba(255, 255, 255, 0.92);
  --paper-strong: #ffffff;
  --ink: #081b2e;
  --muted: #66717d;
  --line: #d8e0e7;
  --brand: #081b2e;
  --brand-dark: #04101c;
  --brand-soft: #edf2f6;
  --accent: #d5a20a;
  --accent-soft: #f6ecc7;
  --wine: #a2282f;
  --wine-soft: #f8e6e7;
  --slate: #656973;
  --green: #275d43;
  --danger: #a2282f;
  --shadow: 0 18px 60px rgba(8, 27, 46, 0.12);
  font-family: "Urbanist", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; background: linear-gradient(180deg, var(--bg) 0%, #f9fbfc 100%); color: var(--ink); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }

.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at top left, rgba(162, 40, 47, 0.14), transparent 34%),
    radial-gradient(circle at bottom right, rgba(213, 162, 10, 0.12), transparent 28%),
    linear-gradient(135deg, #eff4f7 0%, #f9fbfd 100%);
}
.login-card {
  width: min(440px, 100%);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: 34px;
}
.login-card.wide { width: min(720px, 100%); }
.login-card h1 { margin: 10px 0 8px; font-size: clamp(2rem, 4vw, 3.2rem); letter-spacing: -0.06em; line-height: 0.95; }
.login-card p { color: var(--muted); line-height: 1.6; }
.login-card pre { background: #211713; color: #fff4e7; border-radius: 16px; padding: 18px; white-space: pre-wrap; }
.brand-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  background: var(--accent-soft);
  color: var(--brand);
  border: 1px solid rgba(213, 162, 10, 0.35);
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}
.brand-lockup { display: grid; gap: 16px; margin-bottom: 8px; }
.brand-wordmark { width: min(100%, 360px); height: auto; }
.brand-lockup p { margin: 0; }
.form-stack { display: grid; gap: 16px; }
.form-error { color: var(--danger) !important; font-weight: 700; }

label { display: grid; gap: 7px; color: var(--muted); font-size: 0.9rem; font-weight: 700; }
input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  background: #ffffff;
  color: var(--ink);
  outline: none;
}
textarea { min-height: 96px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(213, 162, 10, 0.16); }

.primary-btn, .secondary-btn, .ghost-btn, .ghost-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 14px;
  padding: 12px 16px;
  font-weight: 800;
  transition: 0.2s ease;
}
.primary-btn { background: var(--brand); color: #f5f6f8; box-shadow: 0 10px 22px rgba(8, 27, 46, 0.18); }
.primary-btn:hover { background: var(--brand-dark); transform: translateY(-1px); }
.primary-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.secondary-btn { background: var(--paper-strong); color: var(--brand); border: 1px solid var(--line); }
.secondary-btn:hover { background: #f6f8fa; }
.ghost-btn { background: transparent; color: var(--muted); }
.ghost-btn:hover { color: var(--brand); }
.ghost-danger { color: var(--danger); background: var(--wine-soft); border: 1px solid rgba(162, 40, 47, 0.18); }
.compact { padding: 9px 11px; font-size: 0.86rem; border-radius: 12px; }
.icon-btn { border: 0; background: var(--brand-soft); color: var(--brand); border-radius: 12px; width: 42px; height: 42px; display: grid; place-items: center; }
.button-row { display: flex; align-items: center; gap: 10px; }
.button-row.wrap { flex-wrap: wrap; }
.align-end { justify-content: flex-end; }

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 280px 1fr;
}
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  background: linear-gradient(180deg, #071a2d 0%, #0b243c 100%);
  color: #f5f6f8;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}
.sidebar-brand { display: grid; gap: 14px; align-items: start; }
.sidebar-logo { width: 100%; max-width: 210px; height: auto; }
.sidebar-brand-copy strong { display: block; letter-spacing: -0.03em; }
.sidebar-brand-copy span { display: block; color: rgba(245, 246, 248, 0.7); font-size: 0.86rem; }

.sidebar nav { display: grid; gap: 8px; }
.sidebar nav button, .logout {
  border: 0;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 14px;
  border-radius: 14px;
  background: transparent;
  color: rgba(245, 246, 248, 0.76);
  text-align: left;
  font-weight: 750;
}
.sidebar nav button.active { background: rgba(255, 255, 255, 0.12); color: #ffffff; border: 1px solid rgba(213, 162, 10, 0.3); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04); }
.sidebar nav button:hover { background: rgba(255, 255, 255, 0.06); color: #ffffff; }
.logout { margin-top: auto; }

.content { padding: 26px; overflow-x: hidden; }
.topbar {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin-bottom: 24px;
}
.topbar h1 { margin: 4px 0 0; font-size: clamp(2rem, 4vw, 3.3rem); letter-spacing: -0.07em; line-height: 0.9; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.12em; color: var(--wine); font-size: 0.76rem; font-weight: 900; }
.user-pill { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,0.88); border: 1px solid var(--line); border-radius: 999px; padding: 10px 14px; color: var(--muted); font-size: 0.9rem; }
.toast { position: fixed; top: 18px; right: 18px; z-index: 20; max-width: 380px; background: linear-gradient(180deg, #071a2d 0%, #0b243c 100%); color: #fff4e7; border-radius: 16px; padding: 14px 18px; box-shadow: var(--shadow); }
.full-loader { min-height: 280px; display: grid; place-items: center; color: var(--muted); font-weight: 800; }

.grid-page { display: grid; gap: 18px; }
.hero-panel {
  background: linear-gradient(135deg, rgba(255,255,255,0.96), rgba(241, 245, 248, 0.98)); border-top: 4px solid var(--accent);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 28px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}
.hero-panel h2 { margin: 8px 0; font-size: clamp(1.8rem, 4vw, 3.4rem); line-height: 0.95; letter-spacing: -0.07em; }
.hero-panel p { max-width: 620px; color: var(--muted); line-height: 1.55; margin: 0; }
.compact-hero { align-items: center; }
.compact-hero h2 { font-size: clamp(1.5rem, 3vw, 2.5rem); }
.metrics-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.metric { background: rgba(255,255,255,0.88); border: 1px solid var(--line); border-radius: 22px; padding: 18px; display: grid; gap: 8px; box-shadow: 0 10px 30px rgba(58, 36, 22, 0.06); }
.metric svg { color: var(--brand); }
.metric span { color: var(--muted); font-size: 0.88rem; font-weight: 700; }
.metric strong { font-size: 2rem; letter-spacing: -0.04em; }
.metric.danger strong, .metric.danger svg { color: var(--danger); }
.two-columns { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }
.two-columns.narrow { grid-template-columns: 420px 1fr; }
.card { background: rgba(255,255,255,0.88); border: 1px solid var(--line); border-radius: 24px; padding: 18px; box-shadow: 0 10px 34px rgba(58, 36, 22, 0.07); }
.card > header { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 12px; }
.card h3 { margin: 0; letter-spacing: -0.03em; }
.card p { color: var(--muted); line-height: 1.5; }
.card header button { border: 0; background: transparent; color: var(--brand); font-weight: 800; display: inline-flex; align-items: center; gap: 6px; }
.clean-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.list-item { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px; border-radius: 16px; background: #ffffff; border: 1px solid #efe2d4; }
.list-item strong, .task-item strong { display: block; }
.list-item span, .task-item span, .task-item small { color: var(--muted); font-size: 0.88rem; display: block; line-height: 1.35; }
.empty-text { color: var(--muted); margin: 0; }
.property-row-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.property-mini { background: #ffffff; border: 1px solid #efe2d4; border-radius: 16px; padding: 14px; display: grid; gap: 5px; }
.property-mini span:last-child { color: var(--muted); font-size: 0.88rem; }

.split-layout { display: grid; grid-template-columns: 360px 1fr; gap: 18px; align-items: start; }
.panel-list, .detail-panel { background: rgba(255,255,255,0.88); border: 1px solid var(--line); border-radius: 26px; padding: 16px; box-shadow: 0 12px 40px rgba(58, 36, 22, 0.08); }
.panel-list { position: sticky; top: 24px; max-height: calc(100vh - 52px); display: flex; flex-direction: column; }
.list-toolbar { display: flex; gap: 10px; align-items: center; margin-bottom: 14px; }
.sticky-toolbar { position: sticky; top: 0; z-index: 3; background: rgba(238, 242, 245, 0.9); backdrop-filter: blur(10px); padding: 8px; border-radius: 18px; }
.search-box { flex: 1; display: flex; align-items: center; gap: 8px; background: #ffffff; border: 1px solid var(--line); border-radius: 15px; padding: 0 12px; }
.search-box input { border: 0; background: transparent; box-shadow: none; padding: 12px 0; }
.search-box input:focus { box-shadow: none; }
.scroll-list { overflow: auto; display: grid; gap: 10px; padding-right: 3px; }
.client-card { width: 100%; border: 1px solid #efe2d4; background: #ffffff; border-radius: 18px; padding: 14px; text-align: left; display: grid; gap: 11px; }
.client-card.selected { outline: 3px solid rgba(213, 162, 10, 0.18); border-color: var(--accent); }
.client-card strong { display: block; }
.client-card span { color: var(--muted); font-size: 0.88rem; }
.card-bottom { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.detail-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; border-bottom: 1px solid var(--line); padding-bottom: 18px; margin-bottom: 18px; }
.detail-header h2 { margin: 5px 0; font-size: clamp(1.8rem, 4vw, 2.8rem); letter-spacing: -0.06em; line-height: 0.95; }
.detail-header p { color: var(--muted); margin: 0; }
.info-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 18px; }
.info-box { background: #ffffff; border: 1px solid #efe2d4; border-radius: 16px; padding: 13px; display: grid; gap: 5px; }
.info-box span { color: var(--muted); font-size: 0.78rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; }
.info-box strong { line-height: 1.25; }
.match-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.match-card, .match-row { background: #ffffff; border: 1px solid #efe2d4; border-radius: 18px; padding: 14px; position: relative; }
.match-card { display: grid; gap: 7px; }
.match-card strong, .match-row h3 { letter-spacing: -0.03em; }
.match-card span, .match-card p, .match-row p, .match-row small { color: var(--muted); line-height: 1.4; margin: 0; }
.match-score { width: 48px; height: 48px; border-radius: 16px; background: linear-gradient(180deg, #071a2d 0%, #0b243c 100%); color: #fff4e7; display: grid; place-items: center; font-weight: 900; font-size: 0.9rem; }
.match-score.large { width: 60px; height: 60px; font-size: 1rem; flex-shrink: 0; }
.match-list { display: grid; gap: 12px; }
.match-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; }
.match-row h3 { margin: 6px 0 4px; }

.property-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.property-card { background: rgba(255,255,255,0.88); border: 1px solid var(--line); border-radius: 24px; padding: 18px; box-shadow: 0 10px 34px rgba(58, 36, 22, 0.07); display: grid; gap: 14px; }
.property-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.property-top h3 { margin: 8px 0 4px; letter-spacing: -0.05em; line-height: 1.05; font-size: 1.35rem; }
.property-top p, .muted-text, .created-by { color: var(--muted); margin: 0; line-height: 1.45; }
.property-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.property-facts .info-box { padding: 10px; }
.property-facts .info-box strong { font-size: 0.93rem; }
.code-badge { display: inline-flex; align-items: center; width: fit-content; border-radius: 999px; background: linear-gradient(180deg, #071a2d 0%, #0b243c 100%); color: #fff4e7; padding: 5px 9px; font-size: 0.76rem; font-weight: 900; letter-spacing: 0.02em; }
.status-pill { width: fit-content; display: inline-flex; align-items: center; border-radius: 999px; padding: 6px 10px; background: var(--brand-soft); color: var(--brand); font-weight: 900; font-size: 0.75rem; }
.status-pill.quente, .status-pill.urgente, .status-pill.alta { background: var(--wine-soft); color: var(--wine); }
.status-pill.disponivel, .status-pill.gostou, .status-pill.concluida { background: #e4f0e8; color: #275d43; }
.status-pill.recusou, .status-pill.vendido { background: var(--wine-soft); color: var(--wine); }

.task-item { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 12px; border: 1px solid #efe2d4; border-radius: 16px; background: #ffffff; }
.task-item.done { opacity: 0.66; }
.check-btn { border: 0; background: var(--brand-soft); color: var(--brand); border-radius: 12px; width: 42px; height: 42px; display: grid; place-items: center; }

.chips-list { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid #dcc3ad; background: var(--brand-soft); color: var(--brand); border-radius: 999px; padding: 8px 11px; font-weight: 800; font-size: 0.85rem; }
.selectable .chip { cursor: pointer; }
.chip.active { background: linear-gradient(180deg, #071a2d 0%, #0b243c 100%); color: #fff4e7; border-color: #1f1712; }

.modal-backdrop { position: fixed; inset: 0; background: rgba(22, 15, 11, 0.45); backdrop-filter: blur(7px); z-index: 30; display: grid; place-items: center; padding: 18px; }
.modal-card { width: min(980px, 100%); max-height: 92vh; overflow: auto; background: rgba(255,255,255,0.88); border: 1px solid var(--line); border-radius: 28px; box-shadow: 0 28px 90px rgba(0,0,0,0.22); padding: 22px; }
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.modal-header h2 { margin: 0; letter-spacing: -0.05em; }
.modal-form { display: grid; gap: 15px; }
.form-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
fieldset { border: 1px solid var(--line); border-radius: 18px; padding: 14px; }
legend { color: var(--muted); font-weight: 900; padding: 0 6px; }
.check-label { display: flex; flex-direction: row; align-items: center; gap: 10px; padding-top: 28px; }
.check-label input { width: auto; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; position: sticky; bottom: -22px; background: linear-gradient(transparent, var(--paper) 25%); padding-top: 20px; }
.empty-state { min-height: 360px; display: grid; place-items: center; align-content: center; text-align: center; color: var(--muted); gap: 8px; }
.empty-state h3 { margin: 0; color: var(--ink); }

@media (max-width: 1180px) {
  .metrics-grid, .property-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .match-grid, .property-row-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split-layout { grid-template-columns: 320px 1fr; }
  .info-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .app-shell { display: block; }
  .sidebar { position: sticky; bottom: auto; top: 0; height: auto; z-index: 10; padding: 12px; border-bottom: 1px solid #34251d; }
  .sidebar-brand { display: none; }
  .sidebar nav { display: flex; overflow-x: auto; gap: 8px; padding-bottom: 2px; }
  .sidebar nav button { white-space: nowrap; width: auto; }
  .logout { display: none; }
  .content { padding: 16px; }
  .topbar { align-items: flex-start; flex-direction: column; }
  .user-pill { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
  .hero-panel { flex-direction: column; align-items: flex-start; border-radius: 22px; padding: 20px; }
  .metrics-grid, .two-columns, .two-columns.narrow, .split-layout, .property-grid, .match-grid, .property-row-grid { grid-template-columns: 1fr; }
  .panel-list { position: relative; max-height: unset; }
  .detail-header { flex-direction: column; }
  .match-row { grid-template-columns: 1fr; }
  .form-grid, .info-grid, .property-facts { grid-template-columns: 1fr; }
  .modal-card { padding: 16px; border-radius: 22px; }
  .list-toolbar { flex-direction: column; align-items: stretch; }
}


.login-card {
  backdrop-filter: blur(14px);
}

.login-card::before {
  content: '';
  display: block;
  width: 72px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--wine) 0%, var(--accent) 100%);
  margin-bottom: 18px;
}

.user-pill strong { color: var(--brand); }
.metric svg { color: var(--wine); }
.metric:nth-child(2) svg, .metric:nth-child(4) svg { color: var(--accent); }
.icon-btn { background: var(--brand-soft); color: var(--brand); }
.icon-btn:hover { background: #e4ebf1; }
.property-card, .card, .panel-list, .detail-panel { backdrop-filter: blur(12px); }
.code-badge { border: 1px solid rgba(255,255,255,0.08); }
.hero-panel p { max-width: 700px; }
.hero-panel::after {
  content: '';
  width: 110px;
  height: 110px;
  border-radius: 28px;
  background: radial-gradient(circle at center, rgba(213, 162, 10, 0.18) 0%, rgba(213, 162, 10, 0.04) 60%, transparent 72%);
  flex-shrink: 0;
}
.sidebar { border-right: 1px solid rgba(255,255,255,0.08); }

@media (max-width: 980px) {
  .sidebar-logo { max-width: 170px; }
}

/* Catálogo público de imóveis | Helton Dantas */
.public-site {
  min-height: 100vh;
  background:
    radial-gradient(circle at 10% 0%, rgba(162, 40, 47, 0.12), transparent 34%),
    radial-gradient(circle at 90% 20%, rgba(213, 162, 10, 0.14), transparent 28%),
    linear-gradient(180deg, #f7f4ef 0%, #ffffff 62%, #f2eee7 100%);
  color: #102020;
  padding: 0 24px 32px;
}
.public-header {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.public-logo-link img { width: min(260px, 58vw); height: auto; display: block; }
.public-header nav { display: flex; align-items: center; gap: 18px; font-weight: 800; color: #505060; }
.public-header nav > a:not(.public-contact-btn):hover { color: #802030; }
.public-contact-btn, .public-whatsapp, .public-card-link, .public-back-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: fit-content;
  border-radius: 999px;
  font-weight: 900;
}
.public-contact-btn, .public-whatsapp {
  background: #802030;
  color: #fff7ea;
  padding: 12px 16px;
  box-shadow: 0 12px 28px rgba(128, 32, 48, 0.2);
}
.public-contact-btn:hover, .public-whatsapp:hover { transform: translateY(-1px); background: #6e1b2a; }
.public-hero {
  width: min(1180px, 100%);
  margin: 0 auto;
  min-height: 420px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  align-items: end;
  gap: 28px;
  padding: 54px 0 34px;
}
.public-eyebrow {
  color: #802030;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 950;
}
.public-hero h1 {
  max-width: 880px;
  margin: 12px 0 18px;
  font-size: clamp(3rem, 8vw, 6.8rem);
  line-height: 0.86;
  letter-spacing: -0.09em;
  color: #102020;
}
.public-hero p {
  max-width: 720px;
  margin: 0;
  color: #505060;
  line-height: 1.65;
  font-size: 1.07rem;
}
.public-hero-card {
  border-radius: 30px;
  background: linear-gradient(160deg, #102020 0%, #24302e 100%);
  color: #fff7ea;
  padding: 28px;
  min-height: 220px;
  display: grid;
  align-content: end;
  border: 1px solid rgba(192, 144, 16, 0.35);
  box-shadow: 0 26px 70px rgba(16, 32, 32, 0.2);
}
.public-hero-card strong { font-size: 4.5rem; line-height: 0.9; letter-spacing: -0.08em; color: #d09010; }
.public-hero-card span { color: rgba(255, 247, 234, 0.78); font-weight: 800; line-height: 1.3; }
.public-filter-card {
  width: min(1180px, 100%);
  margin: 0 auto 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px 220px;
  gap: 12px;
  padding: 14px;
  border-radius: 24px;
  border: 1px solid rgba(16, 32, 32, 0.08);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 54px rgba(16, 32, 32, 0.08);
  backdrop-filter: blur(12px);
}
.public-search {
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid #e1d9cf;
  border-radius: 17px;
  background: #fff;
  padding: 0 14px;
}
.public-search input { border: 0; box-shadow: none; background: transparent; }
.public-search input:focus { box-shadow: none; }
.public-filter-card select { border-color: #e1d9cf; background: #fff; }
.public-property-grid {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.public-property-card {
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(16, 32, 32, 0.08);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 18px 48px rgba(16, 32, 32, 0.09);
  display: grid;
}
.public-card-image {
  position: relative;
  aspect-ratio: 4 / 3;
  background: #102020;
  overflow: hidden;
}
.public-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}
.public-property-card:hover .public-card-image img { transform: scale(1.04); }
.public-card-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(16, 32, 32, 0.74) 100%);
}
.public-card-image span {
  position: absolute;
  left: 16px;
  bottom: 14px;
  z-index: 2;
  color: #fff7ea;
  background: rgba(128, 32, 48, 0.9);
  border-radius: 999px;
  padding: 7px 11px;
  font-size: 0.78rem;
  font-weight: 950;
}
.public-image-placeholder { height: 100%; display: grid; place-items: center; color: #fff7ea; font-weight: 900; }
.public-card-body { padding: 18px; display: grid; gap: 12px; }
.public-card-heading { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.public-card-heading strong { color: #802030; font-size: 1.12rem; }
.public-code { display: inline-flex; width: fit-content; border-radius: 999px; background: #f3e7d4; color: #802030; padding: 6px 10px; font-size: 0.76rem; font-weight: 950; }
.public-card-body h2 { margin: 0; font-size: 1.32rem; line-height: 1.05; letter-spacing: -0.045em; color: #102020; }
.public-card-body p { margin: 0; display: flex; align-items: center; gap: 7px; color: #505060; }
.public-facts, .public-specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}
.public-facts span, .public-specs span {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #efe2d4;
  background: #fffaf3;
  border-radius: 14px;
  padding: 10px;
  color: #505060;
  font-weight: 800;
  font-size: 0.88rem;
}
.public-card-link, .public-back-link {
  color: #102020;
  border: 1px solid #d7c6ad;
  background: #fffaf3;
  padding: 11px 14px;
}
.public-card-link:hover, .public-back-link:hover { border-color: #d09010; color: #802030; }
.public-state {
  width: min(1180px, 100%);
  margin: 24px auto;
  padding: 28px;
  border-radius: 24px;
  background: rgba(255,255,255,0.82);
  border: 1px solid #e1d9cf;
  color: #505060;
  font-weight: 800;
}
.public-state.error { color: #802030; background: #fff0f1; border-color: rgba(128,32,48,0.22); }
.public-detail {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 24px 0 8px;
}
.public-detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  align-items: stretch;
  margin-top: 18px;
}
.public-detail-hero > div, .public-detail-hero aside, .public-detail-card {
  border: 1px solid rgba(16,32,32,0.08);
  background: rgba(255,255,255,0.88);
  border-radius: 30px;
  box-shadow: 0 18px 54px rgba(16,32,32,0.08);
}
.public-detail-hero > div { padding: 30px; }
.public-detail-hero h1 { margin: 14px 0; font-size: clamp(2.2rem, 5vw, 4.8rem); line-height: 0.9; letter-spacing: -0.08em; }
.public-detail-hero p { margin: 0; display: flex; align-items: center; gap: 8px; color: #505060; line-height: 1.5; }
.public-detail-hero aside { padding: 24px; display: grid; gap: 14px; align-content: center; }
.public-detail-hero aside > span { color: #802030; font-weight: 950; text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.78rem; }
.public-detail-hero aside strong { font-size: 2rem; letter-spacing: -0.05em; }
.public-gallery {
  margin: 22px 0;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-auto-rows: 180px;
  gap: 12px;
}
.public-gallery img { width: 100%; height: 100%; object-fit: cover; border-radius: 22px; }
.public-gallery img:first-child { grid-row: span 2; }
.public-detail-grid { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 18px; margin-bottom: 18px; }
.public-detail-card { padding: 24px; }
.public-detail-card h2 { margin: 0 0 12px; letter-spacing: -0.04em; }
.public-detail-card p { color: #505060; line-height: 1.7; margin: 0 0 18px; }
.public-values { display: grid; gap: 12px; margin: 0; }
.public-values div { display: flex; justify-content: space-between; gap: 18px; border-bottom: 1px solid #efe2d4; padding-bottom: 10px; }
.public-values dt { color: #505060; font-weight: 800; }
.public-values dd { margin: 0; font-weight: 950; color: #102020; }
.public-feature-list { display: flex; flex-wrap: wrap; gap: 10px; }
.public-feature-list span { border-radius: 999px; background: #f3e7d4; color: #102020; padding: 9px 12px; font-weight: 850; }
.public-footer {
  width: min(1180px, 100%);
  margin: 42px auto 0;
  border-radius: 28px;
  background: #102020;
  color: rgba(255,247,234,0.78);
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.public-footer img { width: min(260px, 56vw); height: auto; }
.public-footer p { max-width: 560px; margin: 0; line-height: 1.5; }

@media (max-width: 960px) {
  .public-site { padding: 0 14px 20px; }
  .public-header { align-items: flex-start; flex-direction: column; }
  .public-header nav { width: 100%; justify-content: space-between; }
  .public-hero { min-height: auto; grid-template-columns: 1fr; padding: 32px 0 24px; }
  .public-hero h1 { font-size: clamp(2.8rem, 16vw, 4.6rem); }
  .public-hero-card { min-height: auto; }
  .public-filter-card, .public-property-grid, .public-detail-hero, .public-detail-grid { grid-template-columns: 1fr; }
  .public-property-grid { gap: 16px; }
  .public-gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 150px; }
  .public-gallery img:first-child { grid-column: span 2; grid-row: span 2; }
  .public-footer { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 560px) {
  .public-contact-btn { width: 100%; }
  .public-header nav { flex-direction: column; align-items: stretch; }
  .public-facts, .public-specs, .public-gallery { grid-template-columns: 1fr; }
  .public-gallery img:first-child { grid-column: auto; grid-row: auto; }
  .public-gallery { grid-auto-rows: 230px; }
  .public-detail-hero > div, .public-detail-hero aside, .public-detail-card { border-radius: 24px; padding: 20px; }
}

/* Otimizações de acervo, agenda e ADS */
.property-card-cover {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 18px;
  margin-bottom: 14px;
  border: 1px solid #efe2d4;
  background: #fffaf3;
}
.mini-note {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  gap: 6px;
  color: var(--muted);
  background: #fffaf3;
  border: 1px solid #efe2d4;
  border-radius: 999px;
  padding: 8px 11px;
  font-size: 0.8rem;
  font-weight: 800;
}
.media-upload-box {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(255,250,243,0.96), rgba(248,230,231,0.72));
  border: 1px solid #efe2d4;
}
.media-upload-box h3 { margin: 4px 0 6px; letter-spacing: -0.04em; }
.media-upload-box p { margin: 0; color: var(--muted); line-height: 1.5; }
.media-upload-box label { background: rgba(255,255,255,0.74); padding: 12px; border-radius: 16px; border: 1px dashed rgba(162,40,47,0.22); }
.calendar-shell {
  background: rgba(255,255,255,0.88);
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 18px;
  box-shadow: 0 12px 40px rgba(58, 36, 22, 0.08);
}
.calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}
.calendar-header strong {
  font-size: 1.3rem;
  text-transform: capitalize;
  letter-spacing: -0.03em;
}
.calendar-weekdays, .calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}
.calendar-weekdays span {
  color: var(--muted);
  font-weight: 900;
  text-align: center;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.calendar-day {
  min-height: 124px;
  background: #fff;
  border: 1px solid #efe2d4;
  border-radius: 18px;
  padding: 10px;
  display: grid;
  align-content: start;
  gap: 8px;
}
.calendar-day.muted { opacity: 0.45; background: #f6f8fa; }
.calendar-day.today { outline: 3px solid rgba(213,162,10,0.18); border-color: var(--accent); }
.calendar-day > strong { color: var(--brand); }
.calendar-events { display: grid; gap: 6px; }
.calendar-event {
  width: 100%;
  border: 0;
  border-radius: 12px;
  padding: 8px;
  text-align: left;
  color: #fff;
  background: var(--brand);
  font-size: 0.76rem;
  line-height: 1.25;
  display: grid;
  gap: 2px;
}
.calendar-event span { color: rgba(255,255,255,0.75); font-weight: 900; }
.calendar-event.cancelada { background: var(--danger); }
.calendar-event.remarcada { background: var(--accent); color: var(--brand); }
.calendar-event.realizada { background: var(--green); }
@media (max-width: 900px) {
  .calendar-weekdays { display: none; }
  .calendar-grid { grid-template-columns: 1fr; }
  .calendar-day { min-height: auto; }
}

/* Ajustes finais operação Helton */
.central-hero-clean::after { display: none; }
.central-hero-clean h2 { margin-bottom: 0; }
.metric { text-align: left; border: 1px solid var(--line); }
button.metric { border: 1px solid var(--line); }
.metric-clickable { cursor: pointer; }
.metric-clickable:hover {
  transform: translateY(-2px);
  border-color: rgba(213, 162, 10, 0.45);
  box-shadow: 0 16px 44px rgba(58, 36, 22, 0.11);
}
.subtle-reminder { background: linear-gradient(135deg, #ffffff 0%, #fffaf3 100%); border-color: rgba(213, 162, 10, 0.28); }
.field-gap { display: grid; gap: 10px; margin-top: 12px; }
.fieldset-subtitle { color: var(--muted); font-size: 0.84rem; text-transform: uppercase; letter-spacing: 0.08em; }
.ads-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.campaign-card { border-top: 4px solid var(--accent); }
.property-card { min-width: 0; }
.property-card .button-row { min-width: 0; }
.property-top { min-width: 0; }
.property-top h3, .property-top p, .muted-text { overflow-wrap: anywhere; }
.list-toolbar select { min-width: 160px; }
.card > header .button-row { flex-wrap: wrap; justify-content: flex-end; }

/* Catálogo público mais próximo da identidade: grafite, vinho e dourado com respiro */
.public-site {
  background:
    linear-gradient(180deg, rgba(16,32,32,0.04) 0%, rgba(255,255,255,0.92) 34%, rgba(247,244,239,1) 100%),
    radial-gradient(circle at 8% 0%, rgba(128,32,48,0.12), transparent 32%),
    radial-gradient(circle at 92% 12%, rgba(208,144,16,0.16), transparent 30%);
}
.public-header { border-bottom: 1px solid rgba(16,32,32,0.08); }
.public-hero { min-height: 360px; align-items: center; }
.public-hero h1 { max-width: 940px; }
.public-hero-card { background: linear-gradient(160deg, #081b2e 0%, #102020 100%); }
.public-property-card, .public-filter-card, .public-detail-hero > div, .public-detail-hero aside, .public-detail-card {
  border-color: rgba(16,32,32,0.10);
}
.public-card-link, .public-back-link { background: #f7f4ef; }

@media (max-width: 1180px) {
  .ads-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   SITE PÚBLICO — HELTON DANTAS IMÓVEIS
   ========================================================= */
.portal-site {
  --portal-navy: #071a2d;
  --portal-navy-soft: #102b45;
  --portal-wine: #8c2431;
  --portal-gold: #cf9b2f;
  --portal-cream: #f4efe8;
  --portal-paper: #fbfaf7;
  --portal-ink: #101b25;
  --portal-muted: #687079;
  --portal-line: rgba(7, 26, 45, 0.13);
  min-height: 100vh;
  background: var(--portal-paper);
  color: var(--portal-ink);
  font-family: "Urbanist", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.portal-site h1,
.portal-site h2,
.portal-site h3 {
  font-family: "Urbanist", ui-sans-serif, system-ui, sans-serif;
  font-weight: 850;
}
.portal-site button,
.portal-site input,
.portal-site select,
.portal-site textarea { font-family: inherit; }
.site-container { width: min(1240px, calc(100% - 48px)); margin-inline: auto; }
.demo-banner { min-height: 42px; padding: 8px 24px; display: flex; align-items: center; justify-content: center; gap: 12px; background: #f0dfac; color: #3b2c08; font-size: .78rem; }
.demo-banner span { font-weight: 900; text-transform: uppercase; letter-spacing: .1em; }
.demo-banner p { margin: 0; }
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(251, 250, 247, .94); border-bottom: 1px solid var(--portal-line); backdrop-filter: blur(18px); }
.site-header-inner { width: min(1320px, calc(100% - 48px)); min-height: 86px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.site-brand img { display: block; width: 196px; height: auto; }
.site-nav { display: flex; align-items: center; gap: 24px; font-size: .83rem; font-weight: 780; color: #263341; }
.site-nav > a { position: relative; }
.site-nav > a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -8px; height: 1px; background: var(--portal-wine); transition: right .2s ease; }
.site-nav > a:hover::after { right: 0; }
.favorites-link { display: inline-flex; align-items: center; gap: 6px; }
.favorites-link b { display: grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--portal-wine); color: #fff; font-size: .68rem; }
.header-contact { border: 0; border-radius: 999px; padding: 13px 18px; background: var(--portal-navy); color: #fff; font-weight: 850; transition: transform .2s ease, background .2s ease; }
.header-contact:hover { transform: translateY(-2px); background: var(--portal-wine); }
.mobile-menu-button { display: none; width: 44px; height: 44px; border: 1px solid var(--portal-line); border-radius: 50%; background: transparent; color: var(--portal-navy); place-items: center; }
.section-kicker { display: inline-block; color: var(--portal-wine); text-transform: uppercase; letter-spacing: .16em; font-size: .7rem; line-height: 1.3; font-weight: 900; }
.section-kicker.light { color: #e9c26a; }
.home-hero { position: relative; min-height: 760px; overflow: hidden; display: grid; align-items: end; }
.home-hero-media, .home-hero-overlay { position: absolute; inset: 0; }
.home-hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 54%; }
.home-hero-overlay { background: linear-gradient(90deg, rgba(4, 17, 29, .91) 0%, rgba(4, 17, 29, .65) 47%, rgba(4, 17, 29, .18) 76%, rgba(4, 17, 29, .28) 100%), linear-gradient(0deg, rgba(4, 17, 29, .48), transparent 42%); }
.home-hero-content { position: relative; z-index: 2; padding: 110px 0 66px; color: #fff; }
.home-hero-content > h1 { max-width: 860px; margin: 14px 0 20px; font-size: clamp(3.4rem, 7.4vw, 7.3rem); line-height: .88; letter-spacing: -.065em; }
.home-hero-content > p { max-width: 670px; margin: 0 0 34px; color: rgba(255,255,255,.8); font-size: 1.03rem; line-height: 1.65; }
.hero-side-note { position: absolute; right: 34px; bottom: 70px; z-index: 2; color: rgba(255,255,255,.82); writing-mode: vertical-rl; transform: rotate(180deg); text-transform: uppercase; letter-spacing: .15em; font-size: .63rem; display: flex; gap: 12px; }
.hero-side-note strong { color: #fff; }
.hero-search { width: min(1020px, 100%); border-radius: 18px; background: rgba(251, 250, 247, .97); color: var(--portal-ink); box-shadow: 0 28px 80px rgba(0,0,0,.28); overflow: hidden; }
.purpose-tabs { display: flex; padding: 0 22px; border-bottom: 1px solid var(--portal-line); }
.purpose-tabs button { border: 0; border-bottom: 2px solid transparent; padding: 15px 20px 13px; background: transparent; color: var(--portal-muted); font-weight: 850; }
.purpose-tabs button.active { color: var(--portal-wine); border-bottom-color: var(--portal-wine); }
.hero-search-fields { display: grid; grid-template-columns: 1fr 1.4fr .9fr auto; align-items: stretch; }
.hero-search-fields label { position: relative; min-width: 0; padding: 17px 22px; border-right: 1px solid var(--portal-line); display: grid; align-content: center; gap: 5px; }
.hero-search-fields label > span { color: var(--portal-muted); text-transform: uppercase; letter-spacing: .11em; font-size: .61rem; font-weight: 900; }
.hero-search-fields label input,
.hero-search-fields label select { padding: 0 24px 0 0; border: 0; border-radius: 0; background: transparent; color: var(--portal-ink); box-shadow: none; font-size: .92rem; font-weight: 750; appearance: none; }
.hero-search-fields label svg { position: absolute; right: 18px; bottom: 20px; color: var(--portal-wine); pointer-events: none; }
.search-submit { min-width: 172px; border: 0; padding: 16px 22px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--portal-wine); color: #fff; font-weight: 900; }
.search-submit:hover { background: #6f1b26; }
.intro-strip { padding: 84px 0; background: #fff; border-bottom: 1px solid var(--portal-line); }
.intro-strip-grid { display: grid; grid-template-columns: .5fr 1.4fr .9fr; gap: 50px; align-items: start; }
.intro-strip h2 { margin: -8px 0 0; font-size: clamp(2.2rem, 4.2vw, 4.15rem); line-height: .98; letter-spacing: -.045em; }
.intro-strip p { margin: 0; color: var(--portal-muted); line-height: 1.72; }
.site-section { padding: 104px 0; }
.featured-section { background: var(--portal-paper); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 42px; }
.section-heading h2 { max-width: 760px; margin: 8px 0 0; font-size: clamp(2.5rem, 4.8vw, 4.5rem); line-height: .96; letter-spacing: -.05em; }
.section-heading > a { display: inline-flex; align-items: center; gap: 8px; padding-bottom: 7px; border-bottom: 1px solid var(--portal-navy); font-size: .84rem; font-weight: 850; }
.property-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.portal-property-card { position: relative; min-width: 0; background: #fff; border: 1px solid var(--portal-line); transition: transform .22s ease, box-shadow .22s ease; overflow: hidden; }
.portal-property-card:hover { transform: translateY(-6px); box-shadow: 0 24px 62px rgba(7, 26, 45, .12); }
.property-card-media { position: relative; display: block; aspect-ratio: 1.23 / 1; overflow: hidden; background: var(--portal-navy); }
.property-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.portal-property-card:hover .property-card-media img { transform: scale(1.045); }
.property-image-empty { width: 100%; height: 100%; display: grid; place-items: center; color: #fff; font-family: "Urbanist", ui-sans-serif, system-ui, sans-serif; font-size: 1.5rem; }
.property-purpose { position: absolute; left: 16px; top: 16px; padding: 8px 10px; background: rgba(251,250,247,.92); color: var(--portal-wine); text-transform: uppercase; letter-spacing: .12em; font-size: .59rem; font-weight: 950; }
.favorite-button { position: absolute; right: 14px; top: 14px; z-index: 3; width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(255,255,255,.94); color: var(--portal-navy); box-shadow: 0 8px 20px rgba(0,0,0,.13); }
.favorite-button.active { color: var(--portal-wine); }
.property-card-content { padding: 22px; }
.property-card-price { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.property-card-price strong { color: var(--portal-wine); font-size: 1.08rem; }
.property-card-price span { color: var(--portal-muted); font-size: .67rem; letter-spacing: .09em; font-weight: 900; }
.property-card-content h2 { min-height: 59px; margin: 13px 0 9px; font-family: "Urbanist", ui-sans-serif, system-ui, sans-serif; font-size: 1.13rem; line-height: 1.28; font-weight: 760; letter-spacing: -.025em; }
.property-location { min-height: 22px; margin: 0; display: flex; align-items: center; gap: 6px; color: var(--portal-muted); font-size: .82rem; }
.property-card-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 18px 0; margin-top: 16px; border-top: 1px solid var(--portal-line); border-bottom: 1px solid var(--portal-line); }
.property-card-facts span { display: flex; align-items: center; justify-content: center; gap: 5px; color: #35414d; font-size: .73rem; }
.property-card-facts span + span { border-left: 1px solid var(--portal-line); }
.property-card-cta { margin-top: 18px; display: inline-flex; align-items: center; gap: 8px; color: var(--portal-navy); font-size: .8rem; font-weight: 900; }
.editorial-grid .card-1 { transform: translateY(34px); }
.editorial-grid .card-1:hover { transform: translateY(28px); }
.moments-section { padding-top: 128px; background: #fff; }
.moments-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--portal-line); border-left: 1px solid var(--portal-line); }
.moment-card { min-height: 310px; padding: 30px; border: 0; border-right: 1px solid var(--portal-line); border-bottom: 1px solid var(--portal-line); background: transparent; color: var(--portal-ink); text-align: left; display: grid; grid-template-rows: auto auto 1fr auto; gap: 18px; transition: background .2s ease, color .2s ease; }
.moment-card:hover { background: var(--portal-navy); color: #fff; }
.moment-icon { width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid currentColor; border-radius: 50%; color: var(--portal-wine); }
.moment-card:hover .moment-icon { color: #e9c26a; }
.moment-card strong { font-family: "Urbanist", ui-sans-serif, system-ui, sans-serif; font-size: 1.55rem; font-weight: 500; }
.moment-card p { margin: 0; color: var(--portal-muted); line-height: 1.6; font-size: .86rem; }
.moment-card:hover p { color: rgba(255,255,255,.72); }
.curation-story { display: grid; grid-template-columns: 1.1fr .9fr; min-height: 650px; background: var(--portal-navy); color: #fff; }
.curation-story-media { min-height: 650px; }
.curation-story-media img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.76) contrast(1.02); }
.curation-story-copy { padding: clamp(60px, 8vw, 128px); display: grid; align-content: center; }
.curation-story-copy h2 { margin: 14px 0 24px; font-size: clamp(2.8rem, 5vw, 5.5rem); line-height: .93; letter-spacing: -.055em; }
.curation-story-copy p { max-width: 600px; margin: 0 0 32px; color: rgba(255,255,255,.72); line-height: 1.75; }
.light-button { width: fit-content; display: inline-flex; align-items: center; gap: 9px; border: 1px solid rgba(255,255,255,.42); border-radius: 999px; padding: 14px 20px; background: transparent; color: #fff; font-weight: 850; }
.light-button:hover { background: #fff; color: var(--portal-navy); }
.neighborhood-section { background: var(--portal-cream); }
.neighborhood-grid { display: grid; grid-template-columns: 1.15fr .85fr .85fr; gap: 18px; }
.neighborhood-card { position: relative; min-height: 450px; overflow: hidden; color: #fff; }
.neighborhood-card img, .neighborhood-shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.neighborhood-card img { object-fit: cover; transition: transform .45s ease; }
.neighborhood-card:hover img { transform: scale(1.045); }
.neighborhood-shade { background: linear-gradient(0deg, rgba(5,17,29,.82), rgba(5,17,29,.02) 68%); }
.neighborhood-card > div { position: absolute; inset: auto 28px 28px; }
.neighborhood-card strong { font-family: "Urbanist", ui-sans-serif, system-ui, sans-serif; font-size: 2rem; font-weight: 500; }
.neighborhood-card p { max-width: 360px; margin: 10px 0 18px; color: rgba(255,255,255,.72); line-height: 1.5; font-size: .86rem; }
.neighborhood-card > div > span { display: inline-flex; align-items: center; gap: 8px; font-size: .77rem; font-weight: 900; }
.sell-band { padding: 72px 0; background: var(--portal-wine); color: #fff; }
.sell-band-inner { display: grid; grid-template-columns: 1fr .9fr auto; gap: 44px; align-items: center; }
.sell-band h2 { margin: 8px 0 0; font-size: clamp(2.5rem, 4vw, 4.3rem); line-height: .93; }
.sell-band p { margin: 0; color: rgba(255,255,255,.75); line-height: 1.65; }
.site-footer { padding: 74px 0 22px; background: #04111d; color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.35fr .7fr .85fr .7fr; gap: 56px; }
.footer-brand img { width: 240px; height: auto; }
.footer-brand p { max-width: 420px; margin: 22px 0 0; color: rgba(255,255,255,.62); line-height: 1.65; }
.footer-grid > div:not(.footer-brand) { display: grid; align-content: start; gap: 12px; }
.footer-grid > div > span { margin-bottom: 8px; color: #e7bd5e; text-transform: uppercase; letter-spacing: .13em; font-size: .65rem; font-weight: 900; }
.footer-grid a, .footer-grid p, .footer-grid button { margin: 0; color: rgba(255,255,255,.65); font-size: .83rem; line-height: 1.45; }
.footer-grid button { width: fit-content; border: 0; padding: 0; background: none; text-align: left; }
.footer-grid a:hover, .footer-grid button:hover { color: #fff; }
.footer-bottom { margin-top: 58px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); display: flex; justify-content: space-between; color: rgba(255,255,255,.4); font-size: .71rem; }
.footer-bottom-links { display: flex; align-items: center; gap: 20px; }
.footer-credit { display: inline-flex; align-items: center; opacity: .58; transition: opacity .2s ease, transform .2s ease; }
.footer-credit img { display: block; width: 72px; height: auto; }
.footer-credit:hover { opacity: 1; transform: translateY(-1px); }
.floating-whatsapp { position: fixed; right: 24px; bottom: 24px; z-index: 35; width: 58px; height: 58px; display: grid; place-items: center; border-radius: 50%; background: #1ea952; color: #fff; box-shadow: 0 16px 34px rgba(0,0,0,.22); }
.floating-whatsapp:hover { transform: translateY(-3px); }
.catalog-page { padding: 72px 0 110px; }
.catalog-intro { display: grid; grid-template-columns: 1.2fr .8fr; gap: 50px; align-items: end; padding-bottom: 58px; }
.catalog-intro h1, .simple-page h1, .not-found h1 { max-width: 850px; margin: 10px 0 0; font-size: clamp(3.2rem, 7vw, 6.3rem); line-height: .91; letter-spacing: -.06em; }
.catalog-intro p { max-width: 520px; margin: 0; color: var(--portal-muted); line-height: 1.7; }
.catalog-shell { display: grid; grid-template-columns: 272px 1fr; gap: 38px; align-items: start; }
.catalog-filters { position: sticky; top: 112px; padding: 24px; background: #fff; border: 1px solid var(--portal-line); }
.filter-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 25px; }
.filter-heading strong { display: inline-flex; align-items: center; gap: 8px; }
.filter-close { display: none; border: 0; background: transparent; }
.filter-fields { display: grid; gap: 17px; }
.filter-fields label { gap: 7px; color: #36414c; font-size: .72rem; }
.filter-fields label > span { font-weight: 850; }
.filter-fields input, .filter-fields select { border-radius: 0; border-color: var(--portal-line); background: var(--portal-paper); font-size: .82rem; }
.filter-two-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.check-filter { display: block !important; }
.check-filter input { display: none; }
.check-filter span { display: flex; align-items: center; gap: 7px; padding: 12px; border: 1px solid var(--portal-line); color: var(--portal-muted); cursor: pointer; }
.check-filter input:checked + span { border-color: var(--portal-wine); color: var(--portal-wine); background: #fcf1f2; }
.clear-filters { width: 100%; margin-top: 20px; border: 0; border-bottom: 1px solid currentColor; padding: 9px 0; background: transparent; color: var(--portal-wine); font-size: .76rem; font-weight: 850; }
.catalog-toolbar { min-height: 54px; margin-bottom: 22px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--portal-line); }
.catalog-toolbar strong { font-size: .88rem; }
.catalog-toolbar span { color: var(--portal-muted); font-size: .8rem; }
.catalog-toolbar-actions { display: flex; gap: 10px; align-items: center; }
.catalog-toolbar select { width: auto; border: 0; border-radius: 0; background: transparent; color: var(--portal-muted); font-size: .77rem; }
.mobile-filter-trigger { display: none; border: 1px solid var(--portal-line); padding: 9px 12px; background: #fff; color: var(--portal-navy); align-items: center; gap: 7px; font-weight: 800; }
.catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.empty-catalog { min-height: 430px; padding: 50px; display: grid; place-items: center; align-content: center; text-align: center; background: #fff; border: 1px solid var(--portal-line); }
.empty-catalog svg { color: var(--portal-wine); }
.empty-catalog h2 { max-width: 520px; margin: 15px 0 8px; font-size: 2.1rem; }
.empty-catalog p { max-width: 530px; margin: 0 0 24px; color: var(--portal-muted); line-height: 1.6; }
.empty-catalog button, .empty-catalog a { display: inline-flex; align-items: center; justify-content: center; border: 0; margin: 4px; padding: 13px 17px; background: var(--portal-navy); color: #fff; font-weight: 850; }
.loading-card { min-height: 440px; padding: 14px; background: #fff; border: 1px solid var(--portal-line); display: grid; gap: 14px; }
.loading-card span, .loading-card i { display: block; background: linear-gradient(90deg, #ececec 25%, #f6f6f6 45%, #ececec 65%); background-size: 200% 100%; animation: portal-shimmer 1.3s infinite; }
.loading-card span { height: 265px; }
.loading-card i { height: 16px; }
.loading-card i:nth-child(3) { width: 80%; }
.loading-card i:nth-child(4) { width: 55%; }
@keyframes portal-shimmer { to { background-position: -200% 0; } }
.property-page { padding: 28px 0 0; }
.property-breadcrumb { min-height: 54px; display: flex; align-items: center; justify-content: space-between; color: var(--portal-muted); font-size: .75rem; }
.property-breadcrumb a { display: inline-flex; align-items: center; gap: 7px; font-weight: 850; }
.property-title-row { padding: 34px 0 30px; display: flex; align-items: end; justify-content: space-between; gap: 32px; }
.property-title-row h1 { max-width: 900px; margin: 9px 0 12px; font-size: clamp(2.8rem, 5.8vw, 5.8rem); line-height: .9; letter-spacing: -.055em; }
.property-title-row p { margin: 0; display: flex; align-items: center; gap: 7px; color: var(--portal-muted); }
.property-share-actions { display: flex; gap: 8px; flex-shrink: 0; }
.property-share-actions button { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--portal-line); padding: 11px 13px; background: #fff; color: var(--portal-navy); font-size: .76rem; font-weight: 850; }
.property-share-actions button.active { color: var(--portal-wine); border-color: var(--portal-wine); }
.property-gallery { display: grid; grid-template-columns: 1.5fr .75fr .75fr; grid-template-rows: 250px 250px; gap: 8px; overflow: hidden; }
.property-gallery img { width: 100%; height: 100%; object-fit: cover; }
.property-gallery > img:first-child, .property-gallery > .property-gallery-item:first-child { grid-row: 1 / span 2; }
.property-gallery.gallery-1 { grid-template-columns: 1fr; grid-template-rows: 560px; }
.property-gallery.gallery-2 { grid-template-columns: 1.4fr .6fr; }
.property-gallery.gallery-2 > img:first-child, .property-gallery.gallery-2 > .property-gallery-item:first-child { grid-row: 1 / span 2; }
.property-gallery.gallery-3 > img:nth-child(2), .property-gallery.gallery-3 > .property-gallery-item:nth-child(2) { grid-column: 2 / span 2; }
.property-gallery.gallery-3 > img:nth-child(3), .property-gallery.gallery-3 > .property-gallery-item:nth-child(3) { grid-column: 2 / span 2; }
.property-layout { display: grid; grid-template-columns: 1fr 380px; gap: 54px; padding-top: 52px; padding-bottom: 100px; align-items: start; }
.property-main-content { min-width: 0; }
.property-facts-large { display: grid; grid-template-columns: repeat(4, 1fr); padding: 0 0 34px; border-bottom: 1px solid var(--portal-line); }
.property-facts-large span { display: grid; grid-template-columns: auto auto 1fr; gap: 8px; align-items: center; padding-right: 20px; }
.property-facts-large span + span { padding-left: 20px; border-left: 1px solid var(--portal-line); }
.property-facts-large svg { color: var(--portal-wine); }
.property-facts-large b { font-size: 1rem; }
.property-facts-large small { grid-column: 2 / span 2; color: var(--portal-muted); font-size: .68rem; }
.property-copy-block { padding: 42px 0; border-bottom: 1px solid var(--portal-line); }
.property-copy-block h2 { margin: 9px 0 18px; font-size: clamp(2.2rem, 4vw, 3.7rem); line-height: .98; }
.property-copy-block > p { margin: 0; color: var(--portal-muted); line-height: 1.8; font-size: .96rem; }
.features-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 30px; margin-top: 18px; }
.features-grid span { display: flex; align-items: center; gap: 9px; color: #3b4650; font-size: .87rem; }
.features-grid svg { color: var(--portal-wine); }
.finance-note { display: flex; gap: 18px; align-items: flex-start; border: 0; }
.finance-note > svg { color: var(--portal-gold); flex-shrink: 0; }
.finance-note strong { font-family: "Urbanist", ui-sans-serif, system-ui, sans-serif; font-size: 1.35rem; font-weight: 500; }
.finance-note p { margin: 7px 0 0; color: var(--portal-muted); line-height: 1.6; }
.property-contact-card { position: sticky; top: 112px; padding: 30px; background: #fff; border: 1px solid var(--portal-line); box-shadow: 0 22px 60px rgba(7, 26, 45, .09); }
.property-contact-card > span { color: var(--portal-wine); text-transform: uppercase; letter-spacing: .12em; font-size: .64rem; font-weight: 950; }
.property-contact-card > strong { display: block; margin: 8px 0 24px; font-family: "Urbanist", ui-sans-serif, system-ui, sans-serif; font-size: 2.5rem; font-weight: 500; }
.property-contact-card dl { margin: 0 0 24px; }
.property-contact-card dl div { padding: 10px 0; display: flex; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--portal-line); }
.property-contact-card dt { color: var(--portal-muted); font-size: .76rem; }
.property-contact-card dd { margin: 0; font-size: .78rem; font-weight: 850; }
.property-contact-card > button { width: 100%; border: 0; padding: 15px; background: var(--portal-wine); color: #fff; font-weight: 900; }
.property-contact-card > a { width: 100%; margin-top: 9px; padding: 13px; display: flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--portal-navy); color: var(--portal-navy); font-size: .8rem; font-weight: 850; }
.property-contact-card > small { display: block; margin-top: 14px; color: var(--portal-muted); line-height: 1.5; font-size: .67rem; text-align: center; }
.related-section { background: var(--portal-cream); }
.simple-page { min-height: 650px; padding-top: 90px; padding-bottom: 110px; }
.simple-page > p { max-width: 600px; margin: 18px 0 42px; color: var(--portal-muted); line-height: 1.65; }
.editorial-lead-page { min-height: calc(100vh - 86px); display: grid; grid-template-columns: 1.05fr .95fr; background: var(--portal-navy); color: #fff; }
.editorial-lead-media img { width: 100%; height: 100%; object-fit: cover; }
.editorial-lead-copy { padding: clamp(55px, 8vw, 120px); display: grid; align-content: center; }
.editorial-lead-copy h1 { margin: 14px 0 24px; font-size: clamp(3.1rem, 6vw, 6.4rem); line-height: .89; letter-spacing: -.06em; }
.editorial-lead-copy p { max-width: 630px; margin: 0 0 34px; color: rgba(255,255,255,.72); line-height: 1.75; }
.editorial-lead-copy button { width: fit-content; display: inline-flex; align-items: center; gap: 9px; border: 1px solid rgba(255,255,255,.45); padding: 14px 18px; background: transparent; color: #fff; font-weight: 850; }
.editorial-lead-copy button:hover { background: #fff; color: var(--portal-navy); }
.not-found { min-height: 650px; padding-top: 120px; padding-bottom: 120px; }
.not-found p { color: var(--portal-muted); }
.not-found a { margin-top: 25px; display: inline-flex; align-items: center; gap: 8px; padding: 13px 17px; background: var(--portal-navy); color: #fff; font-weight: 850; }
.page-state { min-height: 600px; display: grid; place-items: center; color: var(--portal-muted); }
.lead-modal-backdrop { position: fixed; inset: 0; z-index: 100; padding: 24px; display: grid; place-items: center; background: rgba(3, 13, 23, .72); backdrop-filter: blur(10px); }
.lead-modal-card { position: relative; width: min(780px, 100%); max-height: calc(100vh - 48px); overflow: auto; padding: 38px; background: var(--portal-paper); border-radius: 0; box-shadow: 0 34px 110px rgba(0,0,0,.35); }
.lead-modal-close { position: absolute; right: 20px; top: 20px; width: 39px; height: 39px; display: grid; place-items: center; border: 1px solid var(--portal-line); border-radius: 50%; background: transparent; color: var(--portal-navy); }
.lead-modal-card h2 { max-width: 620px; margin: 9px 48px 10px 0; font-size: clamp(2.4rem, 5vw, 4rem); line-height: .98; }
.lead-modal-intro { margin: 0 0 26px; color: var(--portal-muted); line-height: 1.6; }
.lead-form { display: grid; gap: 15px; }
.lead-form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 13px; }
.lead-form label { color: #35414b; font-size: .72rem; }
.lead-form label > span { font-weight: 850; }
.lead-form input, .lead-form select, .lead-form textarea { border-radius: 0; border-color: var(--portal-line); background: #fff; }
.lead-check { align-content: end; }
.lead-check input { display: none; }
.lead-check span { min-height: 46px; display: flex; align-items: center; gap: 8px; padding: 12px; border: 1px solid var(--portal-line); cursor: pointer; }
.lead-check input:checked + span { border-color: var(--portal-wine); color: var(--portal-wine); background: #fcf1f2; }
.lead-error { padding: 11px; background: #fbe9eb; color: var(--portal-wine); font-size: .78rem; font-weight: 800; }
.lead-submit { justify-self: start; display: inline-flex; align-items: center; gap: 8px; border: 0; padding: 14px 19px; background: var(--portal-wine); color: #fff; font-weight: 900; }
.lead-submit:disabled { opacity: .55; }
.lead-form > small { color: var(--portal-muted); font-size: .66rem; }
.lead-success { min-height: 420px; display: grid; place-items: center; align-content: center; text-align: center; }
.lead-success > span { width: 72px; height: 72px; display: grid; place-items: center; border-radius: 50%; background: #e7f2ea; color: #2c6a45; }
.lead-success h2 { margin: 20px 0 10px; }
.lead-success p { max-width: 520px; margin: 0 0 24px; color: var(--portal-muted); line-height: 1.6; }
.lead-success a { display: inline-flex; align-items: center; gap: 8px; padding: 14px 18px; background: #1ea952; color: #fff; font-weight: 850; }

@media (max-width: 1120px) {
  .site-nav { gap: 15px; font-size: .76rem; }
  .header-contact { padding-inline: 13px; }
  .hero-side-note { display: none; }
  .intro-strip-grid { grid-template-columns: .4fr 1.3fr 1fr; gap: 30px; }
  .moments-grid { grid-template-columns: repeat(2, 1fr); }
  .sell-band-inner { grid-template-columns: 1fr 1fr; }
  .sell-band-inner .light-button { grid-column: 1 / span 2; }
  .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; }
  .footer-grid > div:last-child { grid-column: 2; }
}

@media (max-width: 900px) {
  .site-container, .site-header-inner { width: min(100% - 28px, 1240px); }
  .site-header-inner { min-height: 74px; }
  .site-brand img { width: 168px; }
  .mobile-menu-button { display: grid; }
  .site-nav { position: absolute; left: 0; right: 0; top: 100%; padding: 20px 24px 28px; display: none; align-items: stretch; flex-direction: column; gap: 18px; background: var(--portal-paper); border-bottom: 1px solid var(--portal-line); box-shadow: 0 24px 40px rgba(7,26,45,.1); }
  .site-nav.open { display: flex; }
  .site-nav > a::after { display: none; }
  .header-contact { width: 100%; }
  .home-hero { min-height: 790px; }
  .home-hero-content { padding-top: 92px; }
  .home-hero-content > h1 { font-size: clamp(3.3rem, 11vw, 6rem); }
  .hero-search-fields { grid-template-columns: 1fr 1fr; }
  .hero-search-fields label { border-bottom: 1px solid var(--portal-line); }
  .search-submit { min-height: 64px; grid-column: 1 / span 2; }
  .intro-strip-grid { grid-template-columns: 1fr; gap: 22px; }
  .property-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .editorial-grid .card-1, .editorial-grid .card-1:hover { transform: none; }
  .curation-story { grid-template-columns: 1fr; }
  .curation-story-media { min-height: 430px; }
  .neighborhood-grid { grid-template-columns: 1fr 1fr; }
  .neighborhood-card:first-child { grid-column: 1 / span 2; }
  .sell-band-inner { grid-template-columns: 1fr; gap: 25px; }
  .sell-band-inner .light-button { grid-column: auto; }
  .catalog-intro { grid-template-columns: 1fr; gap: 25px; }
  .catalog-shell { grid-template-columns: 1fr; }
  .catalog-filters { position: fixed; z-index: 80; inset: 0 auto 0 0; width: min(360px, 92vw); top: 0; overflow: auto; transform: translateX(-102%); transition: transform .25s ease; box-shadow: 30px 0 70px rgba(0,0,0,.24); }
  .catalog-filters.open { transform: translateX(0); }
  .filter-close, .mobile-filter-trigger { display: inline-flex; }
  .property-title-row { align-items: flex-start; flex-direction: column; }
  .property-gallery { grid-template-columns: 1.4fr .6fr; grid-template-rows: 240px 240px; }
  .property-gallery > img:nth-child(n+4), .property-gallery > .property-gallery-item:nth-child(n+4) { display: none; }
  .property-gallery > img:nth-child(2), .property-gallery > img:nth-child(3), .property-gallery > .property-gallery-item:nth-child(2), .property-gallery > .property-gallery-item:nth-child(3) { grid-column: 2; }
  .property-gallery > img:nth-child(2), .property-gallery > .property-gallery-item:nth-child(2) { grid-row: 1; }
  .property-gallery > img:nth-child(3), .property-gallery > .property-gallery-item:nth-child(3) { grid-row: 2; }
  .property-layout { grid-template-columns: 1fr; }
  .property-contact-card { position: static; order: -1; }
  .editorial-lead-page { grid-template-columns: 1fr; }
  .editorial-lead-media { max-height: 480px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:last-child { grid-column: auto; }
}

@media (max-width: 640px) {
  .demo-banner { align-items: flex-start; flex-direction: column; gap: 2px; padding: 9px 14px; }
  .home-hero { min-height: 820px; }
  .home-hero-content { padding-bottom: 28px; }
  .home-hero-content > h1 { font-size: clamp(3rem, 15vw, 4.6rem); }
  .home-hero-content > p { font-size: .91rem; }
  .hero-search-fields { grid-template-columns: 1fr; }
  .hero-search-fields label, .search-submit { grid-column: auto; }
  .purpose-tabs { padding-inline: 10px; }
  .intro-strip { padding: 64px 0; }
  .site-section { padding: 78px 0; }
  .section-heading { align-items: flex-start; flex-direction: column; margin-bottom: 30px; }
  .section-heading h2 { font-size: 2.65rem; }
  .property-grid, .catalog-grid { grid-template-columns: 1fr; }
  .property-card-media { aspect-ratio: 1.35 / 1; }
  .moments-grid { grid-template-columns: 1fr; }
  .moment-card { min-height: 245px; }
  .curation-story-media { min-height: 340px; }
  .curation-story-copy { padding: 60px 24px; }
  .curation-story-copy h2 { font-size: 3rem; }
  .neighborhood-grid { grid-template-columns: 1fr; }
  .neighborhood-card:first-child { grid-column: auto; }
  .neighborhood-card { min-height: 390px; }
  .sell-band { padding: 58px 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 38px; }
  .footer-bottom { align-items: flex-start; flex-direction: column; gap: 9px; }
  .footer-bottom-links { width: 100%; justify-content: space-between; }
  .footer-credit img { width: 68px; }
  .catalog-page { padding-top: 50px; }
  .catalog-intro h1, .simple-page h1, .not-found h1 { font-size: 3.7rem; }
  .catalog-toolbar { align-items: flex-start; flex-direction: column; padding-bottom: 14px; }
  .catalog-toolbar-actions { width: 100%; justify-content: space-between; }
  .property-title-row h1 { font-size: 3.5rem; }
  .property-share-actions { width: 100%; }
  .property-share-actions button { flex: 1; justify-content: center; }
  .property-gallery, .property-gallery.gallery-1, .property-gallery.gallery-2, .property-gallery.gallery-3 { width: 100%; grid-template-columns: 1fr; grid-template-rows: 360px; }
  .property-gallery > img:first-child, .property-gallery > .property-gallery-item:first-child { grid-row: auto; }
  .property-gallery > img:nth-child(n+2), .property-gallery > .property-gallery-item:nth-child(n+2) { display: none; }
  .property-layout { padding-top: 28px; gap: 34px; }
  .property-facts-large { grid-template-columns: repeat(2, 1fr); gap: 0; }
  .property-facts-large span { padding: 16px 12px; border-bottom: 1px solid var(--portal-line); }
  .property-facts-large span + span { padding-left: 12px; border-left: 0; }
  .property-facts-large span:nth-child(even) { border-left: 1px solid var(--portal-line); }
  .features-grid { grid-template-columns: 1fr; }
  .property-contact-card { padding: 24px; }
  .editorial-lead-media { max-height: 340px; }
  .editorial-lead-copy { padding: 55px 24px 70px; }
  .editorial-lead-copy h1 { font-size: 3.6rem; }
  .lead-modal-backdrop { padding: 0; align-items: end; }
  .lead-modal-card { width: 100%; max-height: 94vh; padding: 30px 20px; }
  .lead-form-grid { grid-template-columns: 1fr; }
  .lead-modal-card h2 { font-size: 2.55rem; }
  .floating-whatsapp { right: 15px; bottom: 15px; width: 54px; height: 54px; }
}

/* Caixa de entrada de leads no CRM */
.leads-layout .panel-list { min-height: calc(100vh - 150px); }
.lead-count-strip { display: flex; align-items: baseline; gap: 8px; padding: 5px 8px 14px; color: var(--muted); }
.lead-count-strip strong { color: var(--wine); font-size: 1.45rem; }
.lead-count-strip span { font-size: .78rem; }
.lead-card { position: relative; }
.lead-card::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 0 4px 4px 0; background: var(--accent); opacity: .45; }
.lead-card.selected::before { background: var(--wine); opacity: 1; }
.lead-status-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: -2px 0 18px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.lead-status-actions button { border: 1px solid var(--line); border-radius: 999px; padding: 8px 12px; background: #fff; color: var(--muted); font-size: .75rem; font-weight: 850; }
.lead-status-actions button.active { border-color: var(--wine); background: var(--wine-soft); color: var(--wine); }
.lead-property-link { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.lead-property-link h3 { margin: 9px 0 4px; }
.lead-property-link p { margin: 0; }
.status-pill.em_contato { background: #e5edf6; color: #245178; }
.status-pill.qualificado { background: #fff0c9; color: #7a5700; }
.status-pill.convertido { background: #e4f0e8; color: #275d43; }

@media (max-width: 820px) {
  .leads-layout .panel-list { min-height: auto; }
  .lead-property-link { align-items: flex-start; flex-direction: column; }
}

/* Capture flow — same identity/authentication as the Central */
.capture-shell {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(162, 40, 47, 0.10), transparent 30%),
    radial-gradient(circle at bottom right, rgba(213, 162, 10, 0.10), transparent 26%),
    linear-gradient(135deg, #eff4f7 0%, #fbfcfd 100%);
  padding-bottom: 130px;
}
.capture-topbar {
  min-height: 74px;
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px max(20px, calc((100vw - 1040px) / 2));
  border-bottom: 1px solid rgba(8,27,46,.08);
  background: rgba(249, 251, 253, .90);
  backdrop-filter: blur(16px);
}
.capture-brand-mini img { display: block; width: 170px; height: auto; }
.capture-top-actions { display: flex; align-items: center; gap: 10px; }
.capture-back { display: inline-flex; align-items: center; gap: 8px; font-weight: 850; color: var(--brand); }
.capture-hero,
.capture-form,
.capture-alert,
.capture-success-card { width: min(100% - 32px, 1040px); margin-left: auto; margin-right: auto; }
.capture-hero { padding: 54px 0 26px; }
.capture-hero h1,
.capture-success-card h1 { margin: 7px 0 12px; font-size: clamp(2.6rem, 7vw, 5.4rem); line-height: .92; letter-spacing: -.065em; }
.capture-hero > p,
.capture-success-card > p { max-width: 780px; margin: 0; color: var(--muted); font-size: 1.04rem; line-height: 1.65; }
.capture-safety { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; padding: 10px 13px; border: 1px solid rgba(39,93,67,.16); border-radius: 999px; background: rgba(255,255,255,.8); color: var(--green); font-size: .82rem; font-weight: 800; }
.capture-alert { margin-bottom: 16px; padding: 14px 16px; border-radius: 14px; background: #fff1f1; border: 1px solid rgba(162,40,47,.18); color: var(--danger); font-weight: 750; }
.capture-form { display: grid; gap: 16px; }
.capture-section { overflow: hidden; background: rgba(255,255,255,.94); border: 1px solid var(--line); border-radius: 24px; box-shadow: 0 14px 44px rgba(8,27,46,.055); }
.capture-section > header { display: grid; grid-template-columns: 42px 1fr; align-items: start; gap: 13px; padding: 20px 22px; border-bottom: 1px solid var(--line); background: rgba(247,249,251,.8); }
.capture-section > header > span { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--brand); color: #fff; font-size: .76rem; font-weight: 900; }
.capture-section h2 { margin: 0 0 4px; letter-spacing: -.025em; }
.capture-section header p { margin: 0; color: var(--muted); line-height: 1.45; font-size: .86rem; }
.capture-section-body { display: grid; gap: 16px; padding: 22px; }
.capture-section .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.capture-checkbox { display: flex; align-items: center; grid-auto-flow: column; justify-content: start; gap: 9px; width: fit-content; color: var(--brand); }
.capture-checkbox input { width: 20px; height: 20px; margin: 0; accent-color: var(--wine); }
.capture-media-later { display: flex; align-items: center; gap: 14px; min-height: 110px; padding: 20px; border: 1px dashed #bdc8d1; border-radius: 18px; background: var(--bg-soft); color: var(--brand); }
.capture-media-later svg { color: var(--wine); flex: 0 0 auto; }
.capture-media-later p { margin: 4px 0 0; color: var(--muted); line-height: 1.5; }
.capture-submit-bar { position: sticky; bottom: 14px; z-index: 20; display: grid; grid-template-columns: 1fr minmax(210px, 330px); gap: 18px; align-items: center; padding: 15px 16px 15px 20px; border-radius: 20px; background: var(--brand); color: white; box-shadow: 0 22px 60px rgba(8,27,46,.28); }
.capture-submit-bar strong, .capture-submit-bar span { display: block; }
.capture-submit-bar span { margin-top: 3px; color: rgba(255,255,255,.68); font-size: .78rem; }
.capture-success-card { margin-top: 70px; padding: clamp(28px, 5vw, 54px); border: 1px solid var(--line); border-radius: 28px; background: rgba(255,255,255,.94); box-shadow: var(--shadow); }
.capture-safe-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 26px; }
.capture-safe-grid > div { padding: 17px; border: 1px solid var(--line); border-radius: 16px; background: var(--bg-soft); }
.capture-safe-grid strong, .capture-safe-grid span { display: block; }
.capture-safe-grid strong { font-size: 1.05rem; }
.capture-safe-grid span { margin-top: 4px; color: var(--muted); font-size: .78rem; }
.capture-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 20px; }

@media (max-width: 720px) {
  .capture-topbar { min-height: 66px; padding: 10px 14px; }
  .capture-brand-mini img { width: 128px; }
  .capture-top-actions .user-pill { display: none; }
  .capture-hero, .capture-form, .capture-alert, .capture-success-card { width: min(100% - 20px, 1040px); }
  .capture-hero { padding: 34px 0 18px; }
  .capture-hero h1, .capture-success-card h1 { font-size: clamp(2.4rem, 14vw, 4rem); }
  .capture-section { border-radius: 19px; }
  .capture-section > header { padding: 16px; }
  .capture-section-body { padding: 16px; }
  .capture-section .form-grid { grid-template-columns: 1fr; }
  .capture-submit-bar { bottom: 8px; grid-template-columns: 1fr; gap: 10px; padding: 14px; border-radius: 17px; }
  .capture-submit-bar > div { display: none; }
  .capture-safe-grid, .capture-actions { grid-template-columns: 1fr; }
  .capture-success-card { margin-top: 28px; }
}

/* Acervo interno — lista compacta e clicável */
.property-admin-list {
  display: grid;
  gap: 10px;
}
.property-admin-row {
  display: grid;
  grid-template-columns: minmax(300px, 1.6fr) minmax(310px, .95fr) auto;
  align-items: center;
  gap: 24px;
  min-width: 0;
  padding: 17px 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,.88);
  box-shadow: 0 8px 26px rgba(58,36,22,.045);
  cursor: pointer;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease, background .18s ease;
  outline: none;
}
.property-admin-row:hover,
.property-admin-row:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(7,26,45,.22);
  background: #fff;
  box-shadow: 0 12px 34px rgba(7,26,45,.08);
}
.property-admin-main {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0,1fr);
  gap: 14px;
  align-items: center;
}
.property-admin-main h3 {
  margin: 0 0 4px;
  font-size: 1.02rem;
  line-height: 1.15;
  letter-spacing: -.025em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.property-admin-main p {
  margin: 0;
  color: var(--muted);
  font-size: .79rem;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.property-admin-code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 76px;
  padding: 7px 9px;
  border-radius: 999px;
  background: var(--navy, #071a2d);
  color: #fff;
  font-size: .69rem;
  font-weight: 900;
  letter-spacing: .025em;
}
.property-admin-meta {
  min-width: 0;
  display: grid;
  grid-template-columns: 1.45fr .55fr .85fr .55fr;
  align-items: center;
  gap: 0;
}
.property-admin-stat {
  min-width: 0;
  padding: 0 13px;
  border-left: 1px solid var(--line);
  display: grid;
  gap: 3px;
}
.property-admin-stat:first-child { border-left: 0; }
.property-admin-stat span {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .56rem;
  font-weight: 900;
}
.property-admin-stat strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: .8rem;
}
.property-admin-end {
  min-width: 116px;
  display: grid;
  justify-items: end;
  gap: 7px;
}
.property-admin-open {
  color: var(--muted);
  font-size: .69rem;
  font-weight: 800;
}
.property-admin-row:hover .property-admin-open { color: var(--ink, #071a2d); }
.property-modal-actions .modal-delete { margin-right: auto; }

@media (max-width: 1180px) {
  .property-admin-row { grid-template-columns: minmax(280px, 1.5fr) minmax(210px, .8fr) auto; gap: 16px; }
  .property-admin-meta { grid-template-columns: 1.4fr .6fr; }
  .property-admin-stat.hide-medium { display: none; }
}

@media (max-width: 760px) {
  .property-admin-list { gap: 8px; }
  .property-admin-row {
    grid-template-columns: minmax(0,1fr) auto;
    gap: 12px;
    padding: 15px;
    border-radius: 16px;
  }
  .property-admin-main { grid-column: 1; grid-template-columns: 1fr; gap: 8px; }
  .property-admin-code { width: fit-content; min-width: 0; padding: 5px 8px; }
  .property-admin-main h3 { font-size: .98rem; white-space: normal; }
  .property-admin-main p { white-space: normal; font-size: .75rem; }
  .property-admin-meta { grid-column: 1; display: block; }
  .property-admin-stat { padding: 0; border: 0; }
  .property-admin-stat.hide-small, .property-admin-stat.hide-medium { display: none; }
  .property-admin-stat span { display: none; }
  .property-admin-stat strong { font-size: .82rem; }
  .property-admin-end { grid-column: 2; grid-row: 1 / span 2; min-width: 0; align-self: stretch; align-content: space-between; }
  .property-admin-open { font-size: 0; }
  .property-admin-open span { font-size: 1rem; }
  .property-modal-actions { flex-wrap: wrap; }
  .property-modal-actions .modal-delete { width: 100%; margin: 0 0 6px; }
}

/* =========================================================
   ETAPA 2 — FICHA PROFISSIONAL, MÍDIA E CONTEÚDO
   ========================================================= */
.capture-feature-block { display: grid; gap: 9px; padding: 17px; border: 1px solid var(--line); border-radius: 18px; background: var(--bg-soft); }
.capture-feature-block > strong { color: var(--brand); font-size: .95rem; }
.capture-feature-block > p { margin: 0; color: var(--muted); font-size: .82rem; line-height: 1.4; }
.feature-chips .chip { background: #fff; border-color: var(--line); color: var(--brand); }
.feature-chips .chip.active { background: var(--brand); color: #fff; border-color: var(--brand); box-shadow: 0 7px 16px rgba(8,27,46,.12); }

.property-sheet-backdrop { place-items: stretch; padding: 10px; }
.property-sheet { width: min(1460px, 100%); height: calc(100vh - 20px); margin: 0 auto; overflow: hidden; display: grid; grid-template-rows: auto auto 1fr; background: #f8fafb; border: 1px solid var(--line); border-radius: 26px; box-shadow: 0 28px 90px rgba(0,0,0,.28); }
.property-sheet-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 24px 26px 18px; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); }
.property-sheet-header h2 { margin: 9px 0 5px; font-size: clamp(1.8rem, 4vw, 3rem); line-height: .95; letter-spacing: -.055em; }
.property-sheet-header p { margin: 0; color: var(--muted); }
.property-sheet-kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.completion-pill { display: inline-flex; align-items: center; min-height: 28px; padding: 5px 10px; border-radius: 999px; background: var(--accent-soft); color: #6a4b00; font-size: .74rem; font-weight: 900; }
.property-sheet-tools { display: flex; align-items: center; gap: 9px; }
.property-sheet-tabs { display: flex; gap: 3px; overflow-x: auto; padding: 0 18px; background: #fff; border-bottom: 1px solid var(--line); }
.property-sheet-tabs button { flex: 0 0 auto; border: 0; border-bottom: 3px solid transparent; padding: 15px 16px 12px; background: transparent; color: var(--muted); font-weight: 850; }
.property-sheet-tabs button.active { color: var(--brand); border-bottom-color: var(--wine); }
.property-sheet-body { min-height: 0; overflow-y: auto; display: grid; align-content: start; gap: 16px; padding: 24px 26px 100px; }
.property-sheet-section { display: grid; gap: 18px; max-width: 1180px; width: 100%; margin: 0 auto; }
.property-section-intro { padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.property-section-intro h3 { margin: 0 0 5px; font-size: 1.45rem; letter-spacing: -.035em; }
.property-section-intro p { max-width: 800px; margin: 0; color: var(--muted); line-height: 1.55; }
.inline-check { padding-top: 0; }
.feature-selector { display: grid; gap: 12px; padding: 18px; border: 1px solid var(--line); border-radius: 20px; background: #fff; }
.feature-selector > div:first-child { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.feature-selector > div:first-child span { color: var(--muted); font-size: .8rem; font-weight: 750; }
.address-visibility { display: flex; gap: 12px; flex-wrap: wrap; }
.address-visibility label { display: flex; flex-direction: row; align-items: center; gap: 8px; min-width: 190px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 14px; background: #fff; color: var(--brand); }
.address-visibility input { width: auto; }

.inline-warning { display: flex; align-items: center; gap: 10px; padding: 13px 15px; border: 1px solid rgba(213,162,10,.35); border-radius: 15px; background: #fff7df; color: #654b09; font-weight: 750; }
.media-manager-upload-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.media-upload-card { display: grid; gap: 12px; align-content: start; padding: 18px; border: 1px solid var(--line); border-radius: 20px; background: #fff; }
.media-upload-card > div { display: flex; align-items: center; gap: 9px; color: var(--brand); }
.media-upload-card > p { margin: 0; color: var(--muted); line-height: 1.5; font-size: .85rem; }
.media-upload-card input[type="file"] { padding: 10px; background: var(--bg-soft); }
.media-manager-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 4px; }
.media-manager-head > div strong, .media-manager-head > div span { display: block; }
.media-manager-head > div span { margin-top: 2px; color: var(--muted); font-size: .8rem; }
.portal-ready-badge, .portal-pending-badge { display: inline-flex; align-items: center; width: fit-content; border-radius: 999px; padding: 6px 10px; font-size: .73rem; font-weight: 900; }
.portal-ready-badge { background: #e4f0e8; color: var(--green); }
.portal-pending-badge { background: #fff1df; color: #7f5800; }
.media-manager-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.media-manager-item { overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.media-manager-item.primary { box-shadow: inset 0 0 0 2px var(--accent); }
.media-preview { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--brand-soft); }
.media-preview img, .media-preview video { width: 100%; height: 100%; object-fit: cover; display: block; }
.media-preview > span { position: absolute; left: 9px; top: 9px; display: inline-flex; gap: 5px; align-items: center; padding: 6px 9px; border-radius: 999px; background: var(--brand); color: #fff; font-size: .68rem; font-weight: 900; }
.media-item-actions { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px; }
.media-item-actions button, .media-replace { min-height: 34px; display: inline-flex; align-items: center; justify-content: center; gap: 5px; padding: 7px 9px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--brand); font-size: .74rem; font-weight: 800; cursor: pointer; }
.media-item-actions button:hover, .media-replace:hover { background: var(--brand-soft); }
.media-item-actions .danger-link { color: var(--danger); }
.media-replace input { display: none; }
.media-empty { grid-column: 1 / -1; min-height: 150px; display: grid; place-items: center; color: var(--muted); border: 1px dashed var(--line); border-radius: 18px; background: rgba(255,255,255,.6); }
.large-textarea { min-height: 240px; }
.field-counter { display: block; text-align: right; color: var(--muted); font-size: .72rem; font-weight: 700; }

.readiness-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.readiness-card { padding: 17px; border: 1px solid var(--line); border-radius: 19px; background: #fff; }
.readiness-card.ready { border-color: rgba(39,93,67,.25); background: #f6fbf8; }
.readiness-card header { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.readiness-card header span { color: var(--muted); font-size: .8rem; font-weight: 800; }
.readiness-card ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 7px; }
.readiness-card li { display: flex; align-items: center; gap: 7px; color: #9a5c36; font-size: .82rem; }
.readiness-card li svg { opacity: .35; }
.readiness-card li.ok { color: var(--green); }
.readiness-card li.ok svg { opacity: 1; }
.publication-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.publication-card { display: grid; gap: 15px; align-content: start; min-height: 210px; padding: 18px; border: 1px solid var(--line); border-radius: 20px; background: #fff; }
.publication-card > div:first-child { display: flex; gap: 10px; align-items: flex-start; }
.publication-card strong, .publication-card span { display: block; }
.publication-card span { margin-top: 3px; color: var(--muted); font-size: .8rem; }
.publication-card small { color: var(--muted); line-height: 1.45; }
.disabled-card { background: #f3f5f6; }
.switch-line { display: flex; flex-direction: row; align-items: center; gap: 9px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; color: var(--brand); background: var(--bg-soft); }
.switch-line input { width: 20px; height: 20px; accent-color: var(--wine); }
.property-sheet-savebar { position: fixed; left: max(10px, calc((100vw - min(1460px, 100vw - 20px)) / 2)); right: max(10px, calc((100vw - min(1460px, 100vw - 20px)) / 2)); bottom: 10px; z-index: 3; min-height: 72px; display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 12px 16px 12px 20px; background: rgba(7,26,45,.97); color: #fff; border-radius: 0 0 24px 24px; box-shadow: 0 -12px 35px rgba(8,27,46,.14); }
.property-sheet-savebar > div:first-child strong, .property-sheet-savebar > div:first-child span { display: block; }
.property-sheet-savebar > div:first-child span { margin-top: 3px; color: rgba(255,255,255,.65); font-size: .76rem; }
.property-sheet-save-actions { display: flex; gap: 8px; align-items: center; }

.site-content-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.site-content-card { overflow: hidden; display: grid; border: 1px solid var(--line); border-radius: 22px; background: #fff; box-shadow: 0 10px 34px rgba(8,27,46,.06); }
.site-content-preview { min-height: 210px; background: var(--brand-soft); overflow: hidden; }
.site-content-preview img { width: 100%; height: 100%; min-height: 210px; max-height: 310px; object-fit: cover; display: block; }
.site-content-preview > div { min-height: 210px; display: grid; place-items: center; align-content: center; gap: 8px; color: var(--muted); }
.site-content-card-body { display: grid; gap: 12px; padding: 17px; }
.site-content-card-body p { margin: 0; color: var(--muted); line-height: 1.45; }
.site-image-button { display: inline-flex; flex-direction: row; align-items: center; justify-content: center; gap: 7px; width: fit-content; padding: 10px 13px; border-radius: 12px; background: var(--brand); color: #fff; cursor: pointer; }
.site-image-button input { display: none; }
.neighborhood-admin-list { display: grid; gap: 8px; }
.neighborhood-admin-row { width: 100%; display: grid; grid-template-columns: 58px 1fr auto; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 14px; padding: 8px; background: #fff; text-align: left; }
.neighborhood-admin-row > div { width: 58px; height: 48px; overflow: hidden; border-radius: 10px; background: var(--brand-soft); }
.neighborhood-admin-row img { width: 100%; height: 100%; object-fit: cover; }
.neighborhood-placeholder { width: 100%; height: 100%; display: grid; place-items: center; color: var(--brand); font-weight: 900; }
.neighborhood-admin-row strong, .neighborhood-admin-row small { display: block; }
.neighborhood-admin-row small { margin-top: 3px; color: var(--muted); }
.neighborhood-edit-preview { border-radius: 18px; }

.property-video-block { margin-top: 18px; }
.property-video-block video { display: block; width: 100%; max-height: 720px; border-radius: 22px; background: #071a2d; }

@media (max-width: 980px) {
  .property-sheet-backdrop { padding: 0; }
  .property-sheet { height: 100vh; border-radius: 0; border: 0; }
  .property-sheet-header { padding: 16px; }
  .property-sheet-header { flex-direction: column; }
  .property-sheet-tools { width: 100%; justify-content: space-between; }
  .property-sheet-body { padding: 18px 14px 110px; }
  .media-manager-upload-grid, .readiness-columns, .publication-grid, .site-content-grid { grid-template-columns: 1fr; }
  .media-manager-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .property-sheet-savebar { left: 0; right: 0; bottom: 0; border-radius: 0; padding: 10px; }
  .property-sheet-savebar > div:first-child { display: none; }
  .property-sheet-save-actions { width: 100%; display: grid; grid-template-columns: auto 1fr 1.4fr; }
}

@media (max-width: 560px) {
  .media-manager-grid { grid-template-columns: 1fr; }
  .property-sheet-header h2 { font-size: 1.8rem; }
  .property-sheet-tools .secondary-btn { font-size: .78rem; padding: 10px 12px; }
  .property-sheet-save-actions { grid-template-columns: 1fr 1fr; }
  .property-sheet-save-actions .ghost-danger { display: none; }
}

/* Portais — modo sombra antes da migração do Imoalert */
.portal-dashboard { gap: 22px; }
.portal-intro { align-items: flex-end; }
.shadow-mode-pill { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border: 1px solid rgba(18, 45, 68, .12); border-radius: 999px; background: #fff; color: #17324a; font-weight: 800; white-space: nowrap; }
.portal-provider-grid, .portal-stats-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.portal-provider-card, .portal-inventory-card { background: #fff; border: 1px solid rgba(18, 45, 68, .12); border-radius: 24px; padding: 22px; box-shadow: 0 18px 50px rgba(16, 40, 60, .05); }
.portal-provider-kicker { display: block; color: #9f2431; font-size: .72rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 8px; }
.portal-provider-card h3, .portal-inventory-card h3 { margin: 0 0 8px; }
.portal-provider-card p { margin: 0 0 16px; color: #657180; line-height: 1.55; }
.provider-status { display: inline-flex; padding: 7px 11px; border-radius: 999px; font-size: .76rem; font-weight: 850; }
.provider-status.waiting { background: #f5efe3; color: #785c20; }
.portal-stats-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.portal-stats-grid article { background: #0c2740; color: #fff; border-radius: 18px; padding: 18px; display: grid; gap: 4px; }
.portal-stats-grid strong { font-size: 1.7rem; line-height: 1; }
.portal-stats-grid span { color: rgba(255,255,255,.7); font-size: .78rem; }
.portal-inventory-card > header { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 14px; }
.portal-inventory-list { display: grid; gap: 10px; }
.portal-inventory-row { display: grid; grid-template-columns: minmax(280px, 1.2fr) minmax(170px, .55fr); gap: 8px 18px; padding: 16px; border: 1px solid rgba(18,45,68,.1); border-radius: 16px; }
.portal-inventory-main { display: flex; align-items: center; gap: 12px; min-width: 0; }
.portal-inventory-main > div { display: grid; min-width: 0; }
.portal-inventory-main strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.portal-inventory-main span:not(.property-code) { color: #6d7885; font-size: .8rem; }
.portal-inventory-state { display: flex; justify-content: flex-end; align-items: center; gap: 7px; flex-wrap: wrap; }
.mini-status { padding: 6px 9px; border-radius: 999px; font-size: .7rem; font-weight: 900; }
.mini-status.ok { background: #e4f4e9; color: #24663b; }
.mini-status.warn { background: #fff2d6; color: #82601a; }
.mini-status.selected { background: #e9eff8; color: #173b5c; }
.portal-issue-copy { grid-column: 1 / -1; color: #7a8591; font-size: .78rem; border-top: 1px dashed rgba(18,45,68,.12); padding-top: 8px; }
@media (max-width: 820px) {
  .portal-intro { align-items: flex-start; }
  .portal-provider-grid, .portal-stats-grid { grid-template-columns: 1fr 1fr; }
  .portal-inventory-row { grid-template-columns: 1fr; }
  .portal-inventory-state { justify-content: flex-start; }
}
@media (max-width: 560px) {
  .portal-provider-grid, .portal-stats-grid { grid-template-columns: 1fr; }
  .portal-inventory-card { padding: 16px; }
  .portal-inventory-card > header { align-items: flex-start; flex-direction: column; }
}

/* Etapa 4 — PDF, seleção de fotos e mapa público */
.pdf-export-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.compact-btn { padding: 10px 12px; }
.compact-btn.subtle { background: #f3f6f8; color: #0b2239; box-shadow: none; }
.pdf-photo-toggle.active { background: #0b2239; color: #fff; border-color: #0b2239; }

.property-map-section { margin-top: 24px; }
.property-map-frame { overflow: hidden; border-radius: 24px; border: 1px solid #d9e1e7; background: #eef3f6; min-height: 340px; }
.property-map-frame iframe { display: block; width: 100%; min-height: 340px; border: 0; }
.property-map-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 12px; }
.property-map-footer small { color: #687480; line-height: 1.45; max-width: 58%; }
.property-map-footer a { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 800; color: #0b2239; }
.property-map-footer a:hover { color: #9f2630; }

@media (max-width: 760px) {
  .pdf-export-actions { width: 100%; }
  .pdf-export-actions .compact-btn { flex: 1; min-width: 0; }
  .property-map-footer { align-items: flex-start; flex-direction: column; }
  .property-map-footer small { max-width: 100%; }
  .property-map-frame, .property-map-frame iframe { min-height: 280px; }
}

/* Galeria ampliável — página pública do imóvel */
.property-gallery-item {
  position: relative;
  width: 100%;
  height: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  overflow: hidden;
  background: #e9ecef;
  cursor: zoom-in;
}
.property-gallery-item:first-child { grid-row: 1 / span 2; }
.property-gallery-item img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform .28s ease, filter .28s ease;
}
.property-gallery-item:hover img { transform: scale(1.025); filter: brightness(.92); }
.property-gallery-zoom {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.94);
  color: var(--portal-navy);
  font-size: .78rem;
  font-weight: 900;
  box-shadow: 0 7px 24px rgba(3,13,23,.14);
  opacity: 0;
  transform: translateY(5px);
  transition: opacity .2s ease, transform .2s ease;
}
.property-gallery-item:hover .property-gallery-zoom,
.property-gallery-item:focus-visible .property-gallery-zoom { opacity: 1; transform: translateY(0); }
.property-gallery-all {
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  width: max-content;
  max-width: calc(100% - 24px);
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(3, 23, 41, .9);
  color: #fff;
  font-size: .78rem;
  font-weight: 900;
  box-shadow: 0 10px 30px rgba(3,13,23,.24);
}
.property-gallery-item:focus-visible { outline: 3px solid var(--portal-wine); outline-offset: -3px; }

.property-lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(2, 10, 18, .94);
  backdrop-filter: blur(10px);
}
.property-lightbox-shell {
  width: min(1500px, 100%);
  height: min(94vh, 980px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 12px;
}
.property-lightbox-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff;
  font-weight: 900;
}
.property-lightbox-topbar button,
.property-lightbox-nav {
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.1);
  color: #fff;
  backdrop-filter: blur(8px);
}
.property-lightbox-topbar button {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  cursor: pointer;
}
.property-lightbox-stage {
  position: relative;
  min-height: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.property-lightbox-stage > img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 24px 90px rgba(0,0,0,.34);
}
.property-lightbox-nav {
  position: absolute;
  z-index: 2;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  cursor: pointer;
}
.property-lightbox-nav.prev { left: 12px; }
.property-lightbox-nav.next { right: 12px; }
.property-lightbox-nav:hover,
.property-lightbox-topbar button:hover { background: rgba(255,255,255,.2); }
.property-lightbox-thumbs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 3px 2px 5px;
  scrollbar-width: thin;
}
.property-lightbox-thumbs button {
  flex: 0 0 82px;
  width: 82px;
  height: 58px;
  padding: 0;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 7px;
  background: transparent;
  opacity: .58;
  cursor: pointer;
}
.property-lightbox-thumbs button.active { border-color: #fff; opacity: 1; }
.property-lightbox-thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }

@media (max-width: 720px) {
  .property-gallery-zoom { opacity: 1; transform: none; font-size: 0; width: 38px; height: 38px; justify-content: center; padding: 0; }
  .property-gallery-all { bottom: 14px; }
  .property-lightbox { padding: 10px; }
  .property-lightbox-shell { height: 96vh; gap: 8px; }
  .property-lightbox-nav { width: 44px; height: 44px; }
  .property-lightbox-nav.prev { left: 4px; }
  .property-lightbox-nav.next { right: 4px; }
  .property-lightbox-thumbs button { flex-basis: 68px; width: 68px; height: 48px; }
}


/* ETAPA 5 — perfis de compra / atalhos da home */
.moment-profile-selector{border-color:rgba(162,40,47,.22);background:linear-gradient(180deg,#fff 0%,#fffaf7 100%)}
.moment-profile-help{margin:8px 0 14px;color:#66717d;font-size:.9rem;line-height:1.45}
.catalog-moment-context{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:-12px;margin-bottom:28px;padding:14px 18px;border:1px solid #e4d7c5;border-radius:18px;background:#fffaf0}
.catalog-moment-context>div{display:flex;align-items:center;gap:8px;color:#6d5b3f}
.catalog-moment-context strong{color:#081b2e}
.catalog-moment-context button{display:inline-flex;align-items:center;gap:6px;border:0;background:transparent;color:#8e282f;font-weight:700;cursor:pointer}
@media(max-width:700px){.catalog-moment-context{align-items:flex-start;flex-direction:column;margin-top:0}.catalog-moment-context button{padding:0}}

/* ETAPA 6 · Home mais compacta + bairros vivos pelo acervo */
.home-hero {
  min-height: clamp(590px, 72vh, 690px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.home-hero-content {
  width: min(1320px, calc(100% - 48px));
  padding: clamp(64px, 8vh, 92px) 0 28px;
}
.home-hero-content > h1 {
  max-width: 790px;
  font-size: clamp(3.15rem, 6.2vw, 6rem);
}
.home-hero-content > p { margin-bottom: 24px; }
.home-hero-guide {
  position: relative;
  z-index: 2;
  width: 100%;
  background: rgba(251, 250, 247, .97);
  color: var(--portal-ink);
  border-top: 1px solid rgba(255,255,255,.28);
}
.home-hero-guide-grid {
  padding: 22px 0 24px;
  display: grid;
  grid-template-columns: .38fr 1.15fr .72fr;
  gap: 34px;
  align-items: center;
}
.home-hero-guide-grid h2 {
  margin: 0;
  max-width: 650px;
  font-size: clamp(1.35rem, 2.25vw, 2.2rem);
  line-height: 1.02;
  letter-spacing: -.035em;
}
.home-hero-guide-grid p {
  margin: 0;
  color: var(--portal-muted);
  line-height: 1.55;
  font-size: .84rem;
}
.intro-strip { display: none; }

/* Curadoria: mantém presença sem virar um painel gigante em telas largas/zoom reduzido */
.curation-story {
  width: min(1320px, calc(100% - 48px));
  margin: 72px auto 0;
  min-height: clamp(440px, 52vh, 540px);
}
.curation-story-media { min-height: 0; height: clamp(440px, 52vh, 540px); }
.curation-story-copy { padding: clamp(44px, 5vw, 76px); }
.curation-story-copy h2 { font-size: clamp(2.55rem, 4.2vw, 4.6rem); }

/* Bairros são derivados exclusivamente dos imóveis públicos; sem imóvel, sem card. */
.neighborhood-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
.neighborhood-card,
.neighborhood-card:first-child {
  grid-column: auto;
  min-height: 340px;
  border-radius: 2px;
}
.neighborhood-card > div { inset: auto 24px 24px; }
.neighborhood-card strong { display: block; font-size: 1.72rem; }
.neighborhood-count {
  width: fit-content;
  margin-bottom: 9px;
  padding: 6px 9px;
  background: rgba(251,250,247,.9);
  color: var(--portal-wine);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .57rem !important;
  font-weight: 950 !important;
}
.neighborhood-fallback {
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, #071a2d 0%, #17354f 62%, #802030 150%);
}
.catalog-neighborhood-context {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin-top:-12px;
  margin-bottom:28px;
  padding:14px 18px;
  border:1px solid #d9e0e7;
  border-radius:18px;
  background:#f4f7fa;
}
.catalog-neighborhood-context > div { display:flex; align-items:center; gap:8px; color:#52606d; }
.catalog-neighborhood-context strong { color:#081b2e; }
.catalog-neighborhood-context button { display:inline-flex; align-items:center; gap:6px; border:0; background:transparent; color:#8e282f; font-weight:700; cursor:pointer; }

@media (min-width: 1500px) {
  .home-hero { min-height: 620px; }
  .home-hero-content { padding-top: 64px; }
  .curation-story { min-height: 460px; }
  .curation-story-media { height: 460px; }
}

@media (max-width: 1120px) {
  .home-hero-guide-grid { grid-template-columns: .45fr 1.2fr; }
  .home-hero-guide-grid p { grid-column: 2; }
}

@media (max-width: 900px) {
  .home-hero { min-height: 720px; }
  .home-hero-content { width: min(100% - 28px, 1240px); padding-top: 72px; }
  .home-hero-guide-grid { grid-template-columns: 1fr; gap: 10px; padding: 18px 0 20px; }
  .home-hero-guide-grid p { grid-column: auto; }
  .curation-story { width: min(100% - 28px, 1240px); margin-top: 52px; }
  .curation-story-media { height: 380px; }
}

@media (max-width: 640px) {
  .home-hero { min-height: 760px; }
  .home-hero-content > h1 { font-size: clamp(2.8rem, 14vw, 4.35rem); }
  .home-hero-guide { margin-top: 8px; }
  .curation-story { width: 100%; margin-top: 0; }
  .curation-story-media { height: 320px; }
  .neighborhood-card { min-height: 320px; }
  .catalog-neighborhood-context { align-items:flex-start; flex-direction:column; margin-top:0; }
  .catalog-neighborhood-context button { padding:0; }
}

/* ETAPA 7 · home integrada + curadoria estável no zoom + bairros em carrossel */
.home-hero {
  min-height: clamp(520px, 62vh, 620px);
}
.home-hero-content {
  padding: clamp(54px, 6.8vh, 76px) 0 30px;
}
.home-hero-content > h1 {
  max-width: 760px;
  font-size: clamp(3rem, 5.7vw, 5.55rem);
}
.home-hero-content > p {
  max-width: 640px;
  margin-bottom: 20px;
}
.home-search-explainer {
  width: min(1020px, 100%);
  margin-top: 10px;
  padding: 13px 18px 14px;
  display: grid;
  grid-template-columns: auto minmax(250px, .95fr) minmax(280px, 1.15fr);
  align-items: center;
  gap: 18px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 14px;
  background: rgba(4,17,29,.42);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #fff;
}
.home-search-explainer .section-kicker { margin: 0; white-space: nowrap; }
.home-search-explainer strong {
  font-family: "Urbanist", ui-sans-serif, system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.2;
  letter-spacing: -.02em;
}
.home-search-explainer p {
  margin: 0;
  color: rgba(255,255,255,.72);
  font-size: .78rem;
  line-height: 1.45;
}
.home-hero-guide { display: none !important; }

/* Mantém a foto do Helton estável mesmo com zoom muito reduzido.
   O tamanho deixa de depender do vh, que era o que fazia a imagem mudar de enquadramento. */
.curation-story {
  width: min(1220px, calc(100% - 48px));
  margin: 68px auto 0;
  min-height: 0;
  grid-template-columns: .92fr 1.08fr;
  align-items: stretch;
  overflow: hidden;
  border-radius: 22px;
}
.curation-story-media {
  min-height: 420px;
  height: auto;
  overflow: hidden;
  background: var(--portal-navy);
}
.curation-story-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 64%;
  display: block;
}
.curation-story-copy {
  min-height: 420px;
  padding: clamp(38px, 4.3vw, 62px);
}
.curation-story-copy h2 {
  font-size: clamp(2.35rem, 3.55vw, 3.95rem);
}
.curation-story-copy p {
  margin-bottom: 24px;
  line-height: 1.62;
}

/* Bairros: o acervo continua definindo quais aparecem, mas a navegação deixa de crescer verticalmente. */
.neighborhood-section { overflow: hidden; }
.neighborhood-carousel-shell { position: relative; }
.neighborhood-carousel-controls {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin: -10px 0 14px;
}
.neighborhood-carousel-controls button {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--portal-line);
  border-radius: 50%;
  background: rgba(255,255,255,.76);
  color: var(--portal-navy);
  cursor: pointer;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.neighborhood-carousel-controls button:hover {
  background: var(--portal-navy);
  color: #fff;
  transform: translateY(-1px);
}
.neighborhood-carousel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(260px, 27vw, 335px);
  gap: 16px;
  overflow-x: auto;
  padding: 0 2px 12px;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  overscroll-behavior-inline: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(8,27,46,.25) transparent;
}
.neighborhood-carousel::-webkit-scrollbar { height: 7px; }
.neighborhood-carousel::-webkit-scrollbar-thumb { background: rgba(8,27,46,.22); border-radius: 99px; }
.neighborhood-carousel .neighborhood-card {
  width: 100%;
  min-height: 355px;
  scroll-snap-align: start;
  border-radius: 4px;
}
.neighborhood-carousel .neighborhood-card:first-child { grid-column: auto; }

@media (min-width: 1500px) {
  .home-hero { min-height: 560px; }
  .home-hero-content { padding-top: 54px; }
  .curation-story,
  .curation-story-media,
  .curation-story-copy { min-height: 420px; }
}

@media (max-width: 1120px) {
  .home-search-explainer {
    grid-template-columns: auto 1fr;
  }
  .home-search-explainer p { grid-column: 2; }
  .curation-story { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .home-hero { min-height: 650px; }
  .home-hero-content { padding-top: 62px; }
  .curation-story {
    width: min(100% - 28px, 760px);
    grid-template-columns: 1fr;
    margin-top: 48px;
  }
  .curation-story-media { min-height: 0; height: 360px; }
  .curation-story-media img { object-position: center 58%; }
  .curation-story-copy { min-height: 0; }
  .neighborhood-carousel { grid-auto-columns: minmax(260px, 44vw); }
}

@media (max-width: 640px) {
  .home-hero { min-height: 690px; }
  .home-search-explainer {
    grid-template-columns: 1fr;
    gap: 7px;
    padding: 13px 15px;
  }
  .home-search-explainer p { grid-column: auto; }
  .home-search-explainer .section-kicker { white-space: normal; }
  .curation-story { width: 100%; margin-top: 0; border-radius: 0; }
  .curation-story-media { height: 330px; }
  .curation-story-copy { padding: 44px 24px; }
  .neighborhood-carousel-controls { display: none; }
  .neighborhood-carousel {
    grid-auto-columns: 82vw;
    margin-right: -24px;
    padding-right: 24px;
  }
  .neighborhood-carousel .neighborhood-card { min-height: 330px; }
}

/* =========================================================
   ETAPA 8 · dark mode coerente + curadoria compacta 1:1
   ========================================================= */
.site-brand { position: relative; display: inline-grid; align-items: center; }
.site-brand-logo { grid-area: 1 / 1; transition: opacity .18s ease; }
.site-brand-logo-darkmode { opacity: 0; pointer-events: none; }

/* Curadoria: foto quadrada à esquerda e conteúdo à direita, sem ocupar uma tela inteira. */
.curation-story {
  width: min(1160px, calc(100% - 48px));
  margin: 64px auto 0;
  grid-template-columns: minmax(300px, 390px) minmax(0, 1fr);
  align-items: stretch;
  min-height: 0;
  border-radius: 22px;
}
.curation-story-media {
  min-height: 0;
  height: auto;
  aspect-ratio: 1 / 1;
  align-self: center;
}
.curation-story-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 50%;
}
.curation-story-copy {
  min-height: 0;
  padding: clamp(34px, 4vw, 58px);
}
.curation-story-copy h2 {
  margin: 12px 0 18px;
  font-size: clamp(2.15rem, 3.25vw, 3.55rem);
  line-height: .96;
}
.curation-story-copy p { margin-bottom: 22px; }

@media (max-width: 900px) {
  .curation-story {
    width: min(100% - 28px, 760px);
    grid-template-columns: minmax(240px, 42%) minmax(0, 1fr);
    margin-top: 44px;
  }
  .curation-story-media { height: auto; aspect-ratio: 1 / 1; }
  .curation-story-copy { padding: 30px; }
  .curation-story-copy h2 { font-size: clamp(1.9rem, 5vw, 2.75rem); }
}

@media (max-width: 640px) {
  .curation-story {
    width: calc(100% - 28px);
    grid-template-columns: 1fr;
    margin: 36px auto 0;
    border-radius: 20px;
  }
  .curation-story-media {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
  }
  .curation-story-copy { padding: 32px 24px 36px; }
  .curation-story-copy h2 { font-size: 2.35rem; }
}

/* Site público: as cores do layout são fixas, sem acompanhar o tema do aparelho. */




/* =========================================================
   ETAPA 9 · proteção contra dark mode forçado em navegadores móveis
   ========================================================= */
/* O navegador não deve inverter as cores do site. O esquema é fixo e
   não depende das preferências de cor do aparelho. */
html { color-scheme: only light; }
body { background: #fbfaf7; }
.portal-site { color-scheme: only light; }

/* A troca do logo usa display, não apenas opacity. Isso evita que alguns
   navegadores móveis auto-escureçam a versão errada que ainda estava na pilha. */
.site-brand-logo-lightmode {
  display: block;
  opacity: 1;
  forced-color-adjust: none;
  filter: none !important;
}
.site-brand-logo-darkmode {
  display: none;
  opacity: 1;
  forced-color-adjust: none;
  filter: none !important;
}



/* Ajuste específico do cabeçalho móvel: mais enxuto e com contraste previsível. */
@media (max-width: 900px) {
  .site-header-inner { min-height: 68px; }
  .site-brand img { width: 150px; }
  .mobile-menu-button { width: 42px; height: 42px; }
}

/* ETAPA 10 — evita que o crédito its art mand fique atrás do WhatsApp flutuante no mobile */
@media (max-width: 640px) {
  .footer-bottom-links {
    box-sizing: border-box;
    padding-right: 78px;
  }

  .footer-credit {
    margin-left: auto;
    flex: 0 0 auto;
  }
}

@media (max-width: 390px) {
  .footer-bottom-links {
    gap: 12px;
    padding-right: 74px;
  }
  .footer-credit img { width: 62px; }
}


/* =========================================================
   ETAPA 12 · isolamento definitivo de tema
   =========================================================
   Regra de arquitetura:
   - Site público e Captação: cores fixas, independentes do SO/navegador.
   - Central: escolha manual em admin-layout.css, sem tema automático.
   Cada área controla seu próprio esquema de cores.
*/

html.hd-internal {
  color-scheme: only light !important;
  background: #eef2f5 !important;
}
html.hd-internal body {
  background: linear-gradient(180deg, #eef2f5 0%, #f9fbfc 100%) !important;
  color: #081b2e !important;
}
html.hd-internal #root,
html.hd-internal .app-shell {
  min-height: 100vh;
  color-scheme: only light !important;
  background: linear-gradient(180deg, #eef2f5 0%, #f9fbfc 100%);
  color: var(--ink);
}
html.hd-internal .content,
html.hd-internal .grid-page,
html.hd-internal .split-layout {
  color: var(--ink);
}
html.hd-internal input,
html.hd-internal select,
html.hd-internal textarea,
html.hd-internal button {
  color-scheme: only light;
}

/* A base da Central é clara; o tema manual autenticado é aplicado depois desta folha. */


/* O site público mantém seu esquema fixo em qualquer preferência do aparelho. */
html.hd-public { color-scheme: only light; }



/* =========================================================
   ETAPA 13 · MODO ESTÁVEL PARA USO REAL
   =========================================================
   Decisão operacional: toda a plataforma usa cores controladas pela marca.
   O navegador/SO NÃO pode auto-inverter a interface.
   Isso vale para site público, Central e Captação.
*/
html,
html.hd-public,
html.hd-internal {
  color-scheme: only light !important;
  background: #fbfaf7;
}
html body {
  color-scheme: only light !important;
}

/* SITE PÚBLICO — sempre sob a paleta desenhada, mesmo com o aparelho em dark. */
html.hd-public body,
html.hd-public .portal-site {
  color-scheme: only light !important;
  background: #fbfaf7 !important;
  color: #071a2d;
}
html.hd-public .portal-site {
  --portal-navy: #071a2d;
  --portal-navy-soft: #102b45;
  --portal-wine: #a2282f;
  --portal-gold: #d5a20a;
  --portal-cream: #f6f1e9;
  --portal-paper: #fbfaf7;
  --portal-ink: #071a2d;
  --portal-muted: #66717d;
  --portal-line: #d8e0e7;
}
html.hd-public .site-brand-logo-lightmode { display: block !important; opacity: 1 !important; }
html.hd-public .site-brand-logo-darkmode { display: none !important; opacity: 0 !important; }
html.hd-public .site-header { background: rgba(251,250,247,.96); border-bottom-color: #d8e0e7; }
html.hd-public .site-nav,
html.hd-public .site-nav a,
html.hd-public .favorites-link { color: #071a2d; }
html.hd-public .mobile-menu-button { color: #071a2d; border-color: #d8e0e7; background: #fff; }
html.hd-public .site-nav.open { background: #fbfaf7; border-bottom-color: #d8e0e7; box-shadow: 0 24px 45px rgba(7,26,45,.12); }
html.hd-public .header-contact { background: #071a2d; color: #fff; }
html.hd-public .featured-section,
html.hd-public .moments-section,
html.hd-public .neighborhood-section,
html.hd-public .related-section { background: #fbfaf7; }
html.hd-public .portal-property-card,
html.hd-public .catalog-filters,
html.hd-public .empty-catalog,
html.hd-public .loading-card,
html.hd-public .public-detail-card,
html.hd-public .public-detail-hero > div,
html.hd-public .public-detail-hero aside,
html.hd-public .lead-modal-card,
html.hd-public .property-contact-card { background: #fff; border-color: #d8e0e7; color: #071a2d; }
html.hd-public .catalog-filters input,
html.hd-public .catalog-filters select,
html.hd-public .lead-form input,
html.hd-public .lead-form select,
html.hd-public .lead-form textarea { background: #fff; color: #071a2d; border-color: #cbd5dd; }
html.hd-public .catalog-filters input::placeholder,
html.hd-public .lead-form input::placeholder,
html.hd-public .lead-form textarea::placeholder { color: #7a858f; opacity: 1; }

/* CENTRAL — camada de segurança de contraste. */
html.hd-internal,
html.hd-internal body,
html.hd-internal #root,
html.hd-internal .app-shell,
html.hd-internal .content,
html.hd-internal .grid-page,
html.hd-internal .split-layout {
  color-scheme: only light !important;
  color: #081b2e !important;
}
html.hd-internal body,
html.hd-internal #root,
html.hd-internal .app-shell {
  background: linear-gradient(180deg, #eef2f5 0%, #f9fbfc 100%) !important;
}
html.hd-internal .login-shell {
  background:
    radial-gradient(circle at top left, rgba(162,40,47,.12), transparent 34%),
    radial-gradient(circle at bottom right, rgba(213,162,10,.10), transparent 28%),
    linear-gradient(135deg, #eff4f7 0%, #f9fbfd 100%) !important;
}
html.hd-internal .login-card,
html.hd-internal .panel-list,
html.hd-internal .detail-panel,
html.hd-internal .card,
html.hd-internal .client-card,
html.hd-internal .info-box,
html.hd-internal .property-card,
html.hd-internal .modal-card,
html.hd-internal .search-box,
html.hd-internal .metric,
html.hd-internal .list-item,
html.hd-internal .task-item,
html.hd-internal .property-mini,
html.hd-internal .match-card,
html.hd-internal .match-row {
  background: #fff !important;
  color: #081b2e !important;
}
html.hd-internal h1,
html.hd-internal h2,
html.hd-internal h3,
html.hd-internal h4,
html.hd-internal strong { color: #081b2e; }
html.hd-internal p,
html.hd-internal label,
html.hd-internal .muted-text,
html.hd-internal .created-by,
html.hd-internal .client-card span,
html.hd-internal .detail-header p,
html.hd-internal .info-box span { color: #596775; }
html.hd-internal input,
html.hd-internal select,
html.hd-internal textarea {
  color-scheme: only light !important;
  background: #fff !important;
  color: #081b2e !important;
  border-color: #cbd5dd !important;
  -webkit-text-fill-color: #081b2e;
}
html.hd-internal input::placeholder,
html.hd-internal textarea::placeholder { color: #7b8791 !important; opacity: 1; }
html.hd-internal input:-webkit-autofill,
html.hd-internal input:-webkit-autofill:hover,
html.hd-internal input:-webkit-autofill:focus {
  -webkit-text-fill-color: #081b2e !important;
  -webkit-box-shadow: 0 0 0 1000px #fff inset !important;
  box-shadow: 0 0 0 1000px #fff inset !important;
  caret-color: #081b2e;
}
html.hd-internal .primary-btn { background: #081b2e !important; color: #fff !important; }
html.hd-internal .secondary-btn { background: #fff !important; color: #081b2e !important; border-color: #cbd5dd !important; }
html.hd-internal .brand-wordmark { filter: none !important; opacity: 1 !important; }

/* Samsung Internet / Android: proíbe ajustes automáticos de cor. */
html img,
html svg,
html button,
html input,
html select,
html textarea { forced-color-adjust: none; }

@media (max-width: 640px) {
  html.hd-internal .login-shell { padding: 16px !important; align-items: center; }
  html.hd-internal .login-card { padding: 26px 22px !important; border-radius: 24px; }
  html.hd-internal .brand-wordmark { width: min(100%, 300px); }
  html.hd-internal .login-card h1 { font-size: clamp(2rem, 10vw, 2.8rem); }
}
