:root {
  --bg: #f3f6f2;
  --panel: #ffffff;
  --panel-soft: #f7faf6;
  --line: #d9e3dc;
  --text: #15241f;
  --muted: #5f7067;
  --deep: #082b24;
  --deep-soft: #113a32;
  --brand: #d3b36e;
  --brand-strong: #a07b34;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "IBM Plex Sans", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.4;
}

.site-wrap {
  width: min(1220px, 94vw);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(211, 179, 110, 0.2);
  background: rgba(15, 22, 19, 0.9);
  backdrop-filter: blur(8px);
}

.header-row {
  min-height: 84px;
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  align-items: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}

.brand img {
  width: 50px;
  height: 50px;
  border-radius: 8px;
}

.brand h1 {
  margin: 0;
  font-size: 20px;
  font-family: "Space Grotesk", sans-serif;
}

.brand p {
  margin: 2px 0 0;
  font-size: 12px;
  color: var(--muted);
}

.main-nav {
  display: flex;
  gap: 12px;
  align-items: center;
}

.main-nav a {
  color: var(--text);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  opacity: 0.9;
}

.main-nav a:hover {
  opacity: 1;
}

.header-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-sync-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 700;
  border: 1px solid var(--line);
  background: var(--panel-soft);
  color: var(--muted);
}

.site-sync-pill.site-sync-ok {
  color: #d7f0e4;
  border-color: rgba(105, 189, 145, 0.6);
  background: rgba(28, 71, 54, 0.85);
}

.site-sync-pill.site-sync-warn {
  color: #ffeec2;
  border-color: rgba(219, 184, 108, 0.65);
  background: rgba(79, 58, 18, 0.85);
}

.site-sync-pill.site-sync-off {
  color: #d0d8d3;
  border-color: rgba(123, 136, 127, 0.55);
  background: rgba(25, 35, 30, 0.8);
}

.hero {
  padding: 28px 0 20px;
  border-bottom: 1px solid rgba(47, 61, 52, 0.7);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 14px;
  align-items: stretch;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--brand);
  font-size: 12px;
  font-weight: 700;
}

.hero h2 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 34px;
}

.hero-copy {
  margin: 8px 0 0;
  color: var(--muted);
  max-width: 70ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.hero-metrics {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 12px;
  display: grid;
  gap: 8px;
}

.metric {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
  padding: 10px;
}

.metric-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.metric-value {
  margin-top: 4px;
  font-size: 20px;
  font-weight: 700;
}

.trust-band {
  border-bottom: 1px solid rgba(47, 61, 52, 0.7);
}

.trust-grid {
  padding: 16px 0;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.trust-grid div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 10px;
}

.trust-grid strong {
  font-size: 14px;
}

.trust-grid p {
  margin: 5px 0 0;
  font-size: 12px;
  color: var(--muted);
}

.section {
  padding: 22px 0;
  border-bottom: 1px solid rgba(47, 61, 52, 0.6);
}

.top-gap {
  margin-top: 12px;
}

.section-head h3 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 26px;
}

.section-head p {
  margin: 6px 0 0;
  color: var(--muted);
}

.controls {
  margin-top: 12px;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

label {
  display: grid;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #111a16;
  color: var(--text);
  padding: 10px 11px;
  font-size: 14px;
  font-family: inherit;
}

textarea {
  resize: vertical;
}

.layout {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 14px;
  align-items: start;
}

.property-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.property-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  overflow: hidden;
}

.property-photo-button,
.property-thumb-sub-button {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  width: 100%;
  display: block;
  cursor: pointer;
  font: inherit;
  color: inherit;
}

.property-photo-button {
  position: relative;
}

.property-thumb {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
  display: block;
  transition: transform 160ms ease;
}

.property-photo-button:hover .property-thumb,
.property-thumb-sub-button:hover .property-thumb-sub {
  transform: scale(1.025);
}

.property-photo-count {
  position: absolute;
  right: 10px;
  bottom: 10px;
  border-radius: 999px;
  background: rgba(13, 51, 39, 0.92);
  color: #fff7e7;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 9px;
}

.property-gallery-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  padding: 6px;
  border-bottom: 1px solid var(--line);
  background: #111a16;
}

.property-thumb-sub {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 6px;
  display: block;
  transition: transform 160ms ease;
}

.property-lightbox[hidden] {
  display: none;
}

.whatsapp-capture[hidden] {
  display: none;
}

.whatsapp-capture {
  position: fixed;
  inset: 0;
  z-index: 2200;
  display: grid;
  place-items: center;
  padding: 18px;
}

.whatsapp-capture-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: rgba(3, 25, 19, 0.72);
  cursor: pointer;
}

.whatsapp-capture-dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 470px);
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.32);
}

.whatsapp-capture-dialog h3 {
  margin: 5px 35px 8px 0;
  color: var(--green-900);
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(22px, 4vw, 30px);
}

.whatsapp-capture-dialog > p:not(.eyebrow) {
  margin: 0 0 17px;
  color: var(--muted);
}

.whatsapp-capture-dialog form {
  display: grid;
  gap: 12px;
}

.whatsapp-capture-dialog form > label:not(.whatsapp-capture-consent) {
  display: grid;
  gap: 6px;
  color: var(--green-900);
  font-weight: 700;
}

.whatsapp-capture-dialog input[type="text"],
.whatsapp-capture-dialog input[type="tel"],
.whatsapp-capture-dialog input:not([type]) {
  width: 100%;
}

.whatsapp-capture-consent {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.whatsapp-capture-consent input {
  width: auto;
  margin-top: 3px;
  flex: 0 0 auto;
}

.whatsapp-capture-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: #edf2ef;
  color: var(--green-900);
  font-size: 25px;
  line-height: 1;
  cursor: pointer;
}

body.whatsapp-capture-open {
  overflow: hidden;
}

.property-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 18px;
}

.property-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 18, 14, 0.82);
}

.property-lightbox-dialog {
  position: relative;
  width: min(1040px, 100%);
  max-height: min(92vh, 860px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  gap: 10px;
  border: 1px solid rgba(211, 179, 110, 0.32);
  border-radius: 8px;
  background: #07110e;
  color: #fff;
  padding: 12px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.34);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.property-lightbox-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.property-lightbox-head > div {
  min-width: 0;
}

.property-lightbox-head h3 {
  margin: 0;
  font-size: 18px;
  color: #fff7e7;
  overflow-wrap: anywhere;
}

.property-lightbox-head p {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
}

.property-lightbox-close,
.property-lightbox-nav {
  border: 1px solid rgba(211, 179, 110, 0.38);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff7e7;
  font-weight: 700;
  cursor: pointer;
}

.property-lightbox-close {
  padding: 8px 10px;
  flex: 0 0 auto;
}

.property-lightbox-frame {
  min-height: 260px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.property-lightbox-frame img {
  width: 100%;
  max-height: 66vh;
  object-fit: contain;
  border-radius: 8px;
  background: #020806;
}

.property-lightbox-nav {
  min-width: 92px;
  padding: 10px;
}

.property-lightbox-thumbs {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 92px;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.property-lightbox-details {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 14px;
  border: 1px solid rgba(211, 179, 110, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  padding: 12px;
}

.property-lightbox-kicker {
  color: var(--gold);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.property-lightbox-details h4 {
  margin: 6px 0 0;
  color: #fff7e7;
  font-size: 18px;
  overflow-wrap: anywhere;
}

.property-lightbox-details p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.property-lightbox-summary {
  display: grid;
  gap: 7px;
  align-content: start;
}

.property-lightbox-summary strong {
  color: var(--gold);
  font-size: 20px;
}

.property-lightbox-summary span {
  color: rgba(255, 255, 255, 0.74);
  font-size: 12px;
}

.property-lightbox-thumbs button {
  border: 2px solid transparent;
  border-radius: 8px;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.property-lightbox-thumbs button.is-active {
  border-color: var(--gold);
}

.property-lightbox-thumbs img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 6px;
  display: block;
}

body.gallery-open {
  overflow: hidden;
}

.property-body {
  padding: 10px;
}

.property-title {
  margin: 0;
  font-size: 16px;
}

.property-meta {
  color: var(--muted);
  font-size: 12px;
  margin-top: 5px;
}

.property-price {
  margin-top: 8px;
  color: var(--brand);
  font-weight: 700;
  font-size: 17px;
}

.row-actions {
  margin-top: 10px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.lead-box {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 12px;
}

.lead-box h3 {
  margin: 0;
}

.lead-box p {
  margin-top: 6px;
  font-size: 13px;
  color: var(--muted);
}

.small {
  font-size: 12px;
}

.tips-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.tools-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.tool-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 10px;
}

.tool-card h4 {
  margin: 0;
  font-size: 15px;
}

.tool-card p {
  margin: 6px 0 0;
  font-size: 12px;
  color: var(--muted);
}

.buyer-demand-card {
  position: relative;
  overflow: hidden;
  border-color: rgba(211, 179, 110, 0.38);
  background:
    linear-gradient(135deg, rgba(8, 43, 36, 0.96), rgba(17, 58, 50, 0.9)),
    var(--deep);
  color: #fffaf0;
}

.buyer-demand-card h4 {
  color: #fffaf0;
}

.buyer-demand-card p {
  color: rgba(255, 250, 240, 0.75);
}

.buyer-demand-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.buyer-demand-head span {
  display: inline-flex;
  border-radius: 999px;
  padding: 5px 9px;
  background: linear-gradient(120deg, var(--brand), var(--brand-strong));
  color: #1d1a12;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.buyer-demand-head small {
  color: rgba(255, 250, 240, 0.62);
  font-size: 11px;
  text-align: right;
}

.buyer-demand-grid {
  margin-top: 12px;
  display: grid;
  gap: 8px;
}

.buyer-demand-item {
  border: 1px solid rgba(255, 250, 240, 0.12);
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.06);
  padding: 10px;
}

.buyer-demand-item strong,
.buyer-demand-item span,
.buyer-demand-item b,
.buyer-demand-item small {
  display: block;
}

.buyer-demand-item strong {
  color: #fffaf0;
  font-size: 13px;
}

.buyer-demand-item span {
  margin-top: 3px;
  color: rgba(255, 250, 240, 0.7);
  font-size: 12px;
}

.buyer-demand-item b {
  margin-top: 6px;
  color: var(--brand);
  font-size: 15px;
}

.buyer-demand-item p {
  margin-top: 6px;
  color: rgba(255, 250, 240, 0.82);
}

.buyer-demand-item small {
  margin-top: 6px;
  color: rgba(255, 250, 240, 0.58);
  font-size: 11px;
}

.mini-form {
  margin-top: 10px;
  display: grid;
  gap: 8px;
}

.tool-result {
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
  padding: 8px;
  font-size: 12px;
  color: var(--muted);
}

.is-hidden {
  display: none !important;
}

.broker-panel .tips-grid {
  margin-top: 8px;
}

.broker-panel .tip-card h4 {
  font-size: 13px;
}

.broker-panel .tip-card p {
  font-size: 12px;
}

.broker-property-grid {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  max-height: 420px;
  overflow: auto;
  padding-right: 2px;
}

.broker-mini-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
  padding: 8px;
}

.broker-mini-card h5 {
  margin: 0;
  font-size: 13px;
}

.broker-mini-meta {
  margin-top: 4px;
  font-size: 11px;
  color: var(--muted);
}

.broker-mini-actions {
  margin-top: 8px;
}

.broker-mini-actions .btn {
  width: 100%;
  justify-content: center;
}

.swot-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.swot-summary {
  grid-column: 1 / -1;
}

.chat-online-wrap {
  margin-top: 8px;
  display: grid;
  gap: 6px;
}

.chat-online-wrap strong {
  font-size: 12px;
}

.chat-online-list {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.chat-pill {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11px;
  color: var(--text);
  background: var(--panel-soft);
}

.chat-list {
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
  min-height: 170px;
  max-height: 260px;
  overflow: auto;
  padding: 8px;
  display: grid;
  gap: 6px;
}

.chat-msg {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #101815;
  padding: 7px 8px;
}

.chat-msg.self {
  border-color: rgba(211, 179, 110, 0.5);
}

.chat-head {
  font-size: 11px;
  color: var(--muted);
}

.chat-body {
  margin-top: 4px;
  font-size: 12px;
  color: var(--text);
  white-space: pre-wrap;
  word-break: break-word;
}

#brokerPropertyForm {
  margin-top: 8px;
}

#brokerPropertyStatus {
  margin-top: 10px;
}

.broker-photo-preview {
  grid-column: 1 / -1;
  display: grid;
  gap: 10px;
  margin-top: -2px;
}

.broker-photo-preview.is-empty {
  display: none;
}

.broker-photo-preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--text);
}

.broker-photo-preview-head strong {
  font-size: 13px;
}

.broker-photo-preview-head span {
  color: var(--muted);
  font-size: 12px;
}

.broker-photo-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.broker-photo-preview-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
  padding: 8px;
  display: grid;
  gap: 7px;
}

.broker-photo-preview-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 7px;
  border: 1px solid rgba(211, 179, 110, 0.22);
  background: #081f1a;
}

.broker-photo-preview-card div {
  min-width: 0;
}

.broker-photo-preview-card strong,
.broker-photo-preview-card span {
  display: block;
}

.broker-photo-preview-card strong {
  color: var(--text);
  font-size: 12px;
}

.broker-photo-preview-card span {
  color: var(--muted);
  font-size: 11px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.broker-photo-preview-card .btn {
  width: 100%;
  justify-content: center;
}

.table-card {
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 10px;
}

.table-card h4 {
  margin: 0 0 8px;
  font-size: 15px;
}

.table-wrap-public {
  width: 100%;
  overflow: auto;
}

.table-wrap-public table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
}

.table-wrap-public th,
.table-wrap-public td {
  border-bottom: 1px solid var(--line);
  text-align: left;
  padding: 8px;
  font-size: 12px;
}

.table-wrap-public th {
  color: var(--muted);
  font-weight: 700;
}

.table-wrap-public td {
  color: var(--text);
}

.tip-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 10px;
}

.tip-card h4 {
  margin: 0;
  font-size: 15px;
}

.tip-card p {
  margin: 6px 0 0;
  font-size: 12px;
  color: var(--muted);
}

.faq details {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: var(--panel);
  margin-top: 8px;
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
}

.faq p {
  margin: 8px 0 0;
  color: var(--muted);
}

.site-footer {
  padding: 16px 0 22px;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.footer-row strong {
  display: block;
}

.footer-row p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.footer-row .footer-legal {
  max-width: 620px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.legal-page {
  min-height: 100vh;
  padding: 48px 0;
}

.legal-page .tool-card {
  max-width: 860px;
  margin: 0 auto;
}

.legal-page h1,
.legal-page h2 {
  margin-top: 0;
}

.legal-page h2 {
  margin-top: 24px;
  font-size: 18px;
}

.legal-page p,
.legal-page li {
  line-height: 1.65;
}

.legal-page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.footer-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.btn {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 12px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  color: inherit;
}

.btn-primary {
  background: linear-gradient(120deg, var(--brand) 0%, var(--brand-strong) 100%);
  color: #1d1a12;
}

.btn-soft {
  background: #111a16;
  color: var(--text);
}

.wa-float {
  position: fixed;
  right: 14px;
  bottom: 14px;
  z-index: 50;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  background: linear-gradient(120deg, var(--brand) 0%, var(--brand-strong) 100%);
  color: #1d1a12;
}

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

  .layout {
    grid-template-columns: 1fr;
  }

  .property-grid {
    grid-template-columns: 1fr;
  }

  .tips-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tools-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .header-row {
    grid-template-columns: 1fr;
    padding: 10px 0;
  }

  .main-nav {
    flex-wrap: wrap;
  }

  .controls {
    grid-template-columns: 1fr;
  }

  .trust-grid {
    grid-template-columns: 1fr;
  }

  .tips-grid {
    grid-template-columns: 1fr;
  }

  .tools-grid {
    grid-template-columns: 1fr;
  }

  .broker-property-grid {
    grid-template-columns: 1fr;
  }

  .hero h2 {
    font-size: 28px;
  }

  .footer-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-actions {
    justify-content: flex-start;
  }
}

/* Premium public redesign - keeps existing CRM/site IDs intact */
:root {
  --bg: #f5f3ef;
  --panel: #ffffff;
  --panel-soft: #f7f6f1;
  --line: #e0ded5;
  --text: #17231f;
  --muted: #657169;
  --deep: #061d18;
  --deep-soft: #0a3028;
  --brand: #d6a852;
  --brand-strong: #a87525;
  --cream: #fffaf0;
}

body {
  background: var(--bg);
}

main {
  display: flex;
  flex-direction: column;
}

.hero {
  order: 1;
}

.trust-band {
  order: 2;
}

#imoveis {
  order: 3;
}

#ferramentas {
  order: 4;
}

#bairros {
  order: 5;
}

#servicos {
  order: 6;
}

#sobre {
  order: 7;
}

#compra {
  order: 8;
}

#venda {
  order: 9;
}

.faq {
  order: 10;
}

#area-corretor {
  order: 11;
}

#politicas {
  order: 12;
}

.site-header {
  background: rgba(5, 22, 18, 0.96);
  border-bottom: 1px solid rgba(214, 168, 82, 0.18);
  box-shadow: 0 16px 36px rgba(3, 14, 11, 0.22);
}

.header-row {
  min-height: 72px;
  grid-template-columns: auto minmax(0, 1fr) auto;
}

.brand {
  color: var(--cream);
}

.brand img {
  width: 58px;
  height: 58px;
  object-fit: cover;
  border: 1px solid rgba(214, 168, 82, 0.28);
}

.brand h1 {
  color: var(--cream);
  max-width: 280px;
  font-size: 18px;
}

.brand p {
  color: rgba(255, 250, 240, 0.66);
}

.main-nav {
  justify-content: center;
  gap: clamp(10px, 1.4vw, 22px);
}

.main-nav a {
  color: rgba(255, 250, 240, 0.82);
  white-space: nowrap;
}

.main-nav a:hover {
  color: var(--brand);
}

.header-actions .btn-soft {
  border-color: rgba(255, 250, 240, 0.24);
  background: transparent;
  color: var(--cream);
}

.site-sync-pill {
  border-color: rgba(214, 168, 82, 0.24);
  background: rgba(255, 250, 240, 0.08);
  color: rgba(255, 250, 240, 0.78);
}

.hero {
  min-height: 720px;
  align-items: center;
  padding: 118px 0 64px;
  color: var(--cream);
  position: relative;
  background-image:
    linear-gradient(90deg, rgba(4, 20, 16, 0.92) 0%, rgba(4, 20, 16, 0.78) 42%, rgba(4, 20, 16, 0.22) 100%),
    var(--hero-bg-image, url("logo-carneiro.png"));
  background-size: cover, cover;
  background-position: center, center;
  background-repeat: no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 190px;
  background: linear-gradient(180deg, rgba(5, 22, 18, 0) 0%, rgba(5, 22, 18, 0.92) 100%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  gap: 18px;
}

.eyebrow {
  color: var(--brand);
  text-transform: uppercase;
  font-size: 13px;
}

.hero h2 {
  max-width: 800px;
  font-size: clamp(40px, 5.4vw, 76px);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 660px;
  color: rgba(255, 250, 240, 0.86);
  font-size: clamp(16px, 1.7vw, 21px);
}

.hero-actions {
  gap: 12px;
}

.hero-actions .btn {
  min-width: 158px;
}

.hero-search-panel {
  width: min(1100px, 100%);
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(160px, 1fr)) auto;
  gap: 10px;
  align-items: end;
  padding: 16px;
  border: 1px solid rgba(255, 250, 240, 0.18);
  border-radius: 8px;
  background: rgba(7, 18, 15, 0.82);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(12px);
}

.hero-search-panel label {
  color: rgba(255, 250, 240, 0.7);
}

.hero-search-panel select,
.hero-search-panel input {
  border-color: rgba(255, 250, 240, 0.18);
  background: rgba(255, 250, 240, 0.08);
  color: var(--cream);
}

.hero-search-panel option {
  color: #111;
}

.hero-search-btn {
  height: 42px;
  min-width: 162px;
}

.hero-feature-row {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  padding-top: 4px;
}

.hero-feature-filter {
  min-height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 250, 240, 0.14);
  border-radius: 8px;
  color: rgba(255, 250, 240, 0.82);
  font-size: 12px;
  font-weight: 700;
}

.hero-metrics {
  width: min(940px, 100%);
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-color: rgba(214, 168, 82, 0.22);
  background: rgba(7, 18, 15, 0.56);
}

.trust-band {
  background: #fffaf4;
}

.trust-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 28px 0;
}

.trust-grid div {
  text-align: center;
  border: 0;
  box-shadow: none;
  background: transparent;
}

.trust-grid div::before {
  content: "◇";
  display: block;
  color: var(--brand-strong);
  font-size: 26px;
  line-height: 1;
  margin-bottom: 10px;
}

.centered {
  margin: 0 auto;
  text-align: center;
}

.section-head-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  max-width: none;
}

.section-link {
  color: var(--brand);
  text-decoration: none;
  font-weight: 800;
  white-space: nowrap;
}

#imoveis {
  color: var(--cream);
  background:
    radial-gradient(circle at 20% 10%, rgba(214, 168, 82, 0.08), transparent 34%),
    linear-gradient(180deg, #061d18 0%, #08241e 100%);
}

#imoveis .section-head h3,
#imoveis .section-head p {
  color: var(--cream);
}

#imoveis .section-head p {
  color: rgba(255, 250, 240, 0.72);
}

#imoveis .layout {
  grid-template-columns: minmax(0, 2.4fr) minmax(320px, 0.9fr);
  gap: 18px;
}

#imoveis .property-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

#imoveis .property-card {
  overflow: hidden;
  border-color: rgba(255, 250, 240, 0.1);
  background: #08251f;
  color: var(--cream);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.28);
}

#imoveis .property-card:hover {
  box-shadow: 0 28px 64px rgba(0, 0, 0, 0.36);
}

#imoveis .property-title {
  color: #fffaf0;
}

#imoveis .property-meta {
  color: rgba(255, 250, 240, 0.66);
}

#imoveis .property-price {
  color: #f0c979;
}

#imoveis .property-gallery-strip {
  background: rgba(255, 250, 240, 0.06);
  border-bottom-color: rgba(255, 250, 240, 0.09);
}

.property-thumb {
  aspect-ratio: 16 / 11;
}

.property-badge {
  position: absolute;
  left: 10px;
  top: 10px;
  border-radius: 999px;
  padding: 5px 9px;
  color: #1d1a12;
  background: linear-gradient(120deg, var(--brand), var(--brand-strong));
  font-size: 11px;
  font-weight: 800;
}

#imoveis .lead-box {
  position: sticky;
  top: 92px;
  background: #fffaf4;
  color: var(--text);
}

#ferramentas .tools-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

#ferramentas .tool-card {
  min-height: 260px;
  padding: 24px;
  position: relative;
  overflow: hidden;
}

#ferramentas .tool-card::after {
  content: "";
  position: absolute;
  right: -46px;
  bottom: -58px;
  width: 180px;
  height: 180px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(214, 168, 82, 0.22), rgba(214, 168, 82, 0));
  pointer-events: none;
}

#ferramentas .ai-card {
  background:
    linear-gradient(135deg, #fff 0%, #f4efe3 58%, #e4d4b5 100%);
}

.neighborhood-strip {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.neighborhood-strip .tip-card {
  min-height: 150px;
  color: var(--cream);
  background:
    linear-gradient(180deg, rgba(5, 22, 18, 0.18), rgba(5, 22, 18, 0.92)),
    var(--hero-bg-image, url("logo-carneiro.png"));
  background-size: cover;
  background-position: center;
  border-color: rgba(6, 29, 24, 0.12);
  display: flex;
  flex-direction: column;
  justify-content: end;
}

.neighborhood-strip .tip-card h4 {
  color: var(--cream);
}

.neighborhood-strip .tip-card p {
  color: rgba(255, 250, 240, 0.78);
}

.site-footer {
  background:
    radial-gradient(circle at 10% 0%, rgba(214, 168, 82, 0.16), transparent 28%),
    #061d18;
  padding: 46px 0;
}

.property-lightbox-thumbs button.is-active {
  border-color: var(--brand);
}

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

  .main-nav {
    grid-column: 1 / -1;
    order: 3;
    justify-content: flex-start;
  }

  .hero-search-panel {
    grid-template-columns: repeat(2, minmax(160px, 1fr));
  }

  .hero-search-btn {
    width: 100%;
  }

  #imoveis .layout {
    grid-template-columns: 1fr;
  }

  #imoveis .lead-box {
    position: static;
  }

  .neighborhood-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  #imoveis .property-grid,
  #ferramentas .tools-grid,
  .trust-grid,
  .hero-metrics {
    grid-template-columns: 1fr 1fr;
  }

  .hero-feature-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .site-wrap {
    width: min(100% - 24px, 1220px);
  }

  .header-actions {
    justify-content: flex-start;
  }

  .site-sync-pill {
    display: none;
  }

  .hero {
    min-height: 760px;
    padding: 104px 0 34px;
    background-image:
      linear-gradient(180deg, rgba(4, 20, 16, 0.96) 0%, rgba(4, 20, 16, 0.78) 62%, rgba(4, 20, 16, 0.96) 100%),
      var(--hero-bg-image, url("logo-carneiro.png"));
  }

  .hero h2 {
    font-size: 42px;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-search-panel,
  #imoveis .property-grid,
  #ferramentas .tools-grid,
  .trust-grid,
  .hero-metrics,
  .neighborhood-strip {
    grid-template-columns: 1fr;
  }

  .section-head-row {
    display: grid;
    align-items: start;
  }
}

/* Public-site polish */
.site-header {
  background: rgba(255, 255, 255, 0.94);
  border-bottom-color: rgba(8, 43, 36, 0.12);
  box-shadow: 0 8px 28px rgba(8, 43, 36, 0.06);
}

.header-row {
  min-height: 78px;
}

.brand h1 {
  max-width: 310px;
  font-size: 18px;
  line-height: 1.05;
  color: var(--deep);
}

.brand p,
.main-nav a {
  color: var(--muted);
}

.main-nav a:hover {
  color: var(--deep);
}

.hero {
  min-height: 560px;
  display: grid;
  align-items: end;
  padding: 96px 0 34px;
  color: #f7f2e7;
  background:
    linear-gradient(90deg, rgba(4, 25, 20, 0.95) 0%, rgba(8, 43, 36, 0.86) 48%, rgba(8, 43, 36, 0.52) 100%),
    url("logo-carneiro.png") right 10% center / min(520px, 70vw) no-repeat,
    var(--deep);
  border-bottom: 0;
}

.hero-content {
  display: grid;
  gap: 16px;
}

.hero h2 {
  max-width: 820px;
  font-size: clamp(38px, 6vw, 74px);
  line-height: 0.96;
  color: #fffaf0;
}

.hero-copy {
  max-width: 760px;
  margin: 0;
  font-size: 18px;
  color: #dce8df;
}

.eyebrow {
  margin: 0;
  letter-spacing: 0;
  color: var(--brand);
}

.hero-actions {
  margin-top: 2px;
}

.hero-metrics {
  width: min(780px, 100%);
  margin-top: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(211, 179, 110, 0.35);
  backdrop-filter: blur(8px);
}

.metric {
  background: rgba(5, 26, 21, 0.54);
  border-color: rgba(211, 179, 110, 0.2);
}

.metric-label {
  color: #cbd9d1;
}

.metric-value {
  color: #fff7e7;
}

.trust-band {
  background: #fff;
  border-bottom-color: var(--line);
}

.trust-grid div,
.property-card,
.lead-box,
.tool-card,
.table-card,
.tip-card,
.faq details,
.broker-mini-card {
  background: var(--panel);
  border-color: var(--line);
  box-shadow: 0 10px 30px rgba(8, 43, 36, 0.05);
}

.section {
  padding: 56px 0;
  border-bottom-color: var(--line);
}

.section:nth-of-type(even) {
  background: #fff;
}

.section-head {
  max-width: 820px;
}

.section-head h3 {
  color: var(--deep);
}

.service-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.service-card {
  min-height: 190px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #fff 0%, #f8faf6 100%);
  padding: 16px;
  box-shadow: 0 12px 32px rgba(8, 43, 36, 0.05);
}

.service-card span {
  display: inline-flex;
  color: var(--brand-strong);
  font-weight: 800;
  font-size: 12px;
  margin-bottom: 18px;
}

.service-card h4 {
  margin: 0;
  color: var(--deep);
  font-size: 17px;
}

.service-card p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
}

input,
textarea,
select {
  background: #fff;
  color: var(--text);
}

.property-card {
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.property-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(8, 43, 36, 0.11);
}

.property-gallery-strip {
  background: #f5f8f4;
}

.property-title,
.tool-card h4,
.table-card h4,
.tip-card h4,
.lead-box h3 {
  color: var(--deep);
}

.btn {
  min-height: 40px;
}

.btn-primary {
  border-color: rgba(160, 123, 52, 0.45);
  background: linear-gradient(120deg, var(--brand) 0%, var(--brand-strong) 100%);
  color: #1f1a10;
}

.btn-soft {
  background: #fff;
  color: var(--deep);
}

.btn-ghost {
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.1);
  color: #fff7e7;
}

.tool-result,
.chat-list,
.chat-msg {
  background: var(--panel-soft);
  color: var(--muted);
}

.site-footer {
  color: #eef6f0;
  background: var(--deep);
}

.site-footer .btn-soft {
  border-color: rgba(211, 179, 110, 0.34);
  background: rgba(255, 255, 255, 0.08);
  color: #fff7e7;
}

.wa-float {
  box-shadow: 0 14px 35px rgba(8, 43, 36, 0.22);
}

.carneiros-ai {
  position: fixed;
  right: 16px;
  bottom: 70px;
  z-index: 70;
  font-family: inherit;
}

.carneiros-ai-panel {
  width: min(380px, calc(100vw - 28px));
  max-height: min(640px, calc(100vh - 100px));
  display: none;
  grid-template-rows: auto auto minmax(190px, 1fr) auto auto auto;
  overflow: hidden;
  border: 1px solid rgba(214, 168, 82, 0.32);
  border-radius: 12px;
  background: #061d18;
  color: #fffaf0;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.34);
}

.carneiros-ai.is-open .carneiros-ai-panel {
  display: grid;
}

.carneiros-ai-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 14px 10px;
  border-bottom: 1px solid rgba(255, 250, 240, 0.1);
}

.carneiros-ai-head strong {
  display: block;
  color: #fffaf0;
  font-size: 18px;
  line-height: 1;
}

.carneiros-ai-kicker {
  display: block;
  margin-bottom: 4px;
  color: var(--brand);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.carneiros-ai-head button,
.carneiros-ai-mini {
  border: 1px solid rgba(214, 168, 82, 0.36);
  border-radius: 999px;
  background: rgba(255, 250, 240, 0.08);
  color: #fffaf0;
  cursor: pointer;
  font-weight: 800;
}

.carneiros-ai-head button {
  width: 30px;
  height: 30px;
}

.carneiros-ai-status {
  padding: 10px 14px;
  background: rgba(255, 250, 240, 0.06);
  color: rgba(255, 250, 240, 0.76);
  font-size: 12px;
  line-height: 1.35;
}

.carneiros-ai-messages {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 14px;
  overflow-y: auto;
}

.carneiros-ai-msg {
  max-width: 92%;
  border: 1px solid rgba(255, 250, 240, 0.1);
  border-radius: 10px;
  padding: 9px 10px;
  background: rgba(255, 250, 240, 0.08);
}

.carneiros-ai-msg.is-user {
  justify-self: end;
  background: linear-gradient(120deg, var(--brand), var(--brand-strong));
  color: #1d1a12;
}

.carneiros-ai-msg span {
  display: block;
  margin-bottom: 4px;
  font-size: 11px;
  font-weight: 800;
}

.carneiros-ai-msg p {
  margin: 0;
  white-space: pre-line;
  font-size: 13px;
  line-height: 1.42;
}

.carneiros-ai-quick {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  padding: 0 14px 12px;
}

.carneiros-ai-quick button {
  min-width: 0;
  border: 1px solid rgba(214, 168, 82, 0.26);
  border-radius: 999px;
  padding: 7px 6px;
  background: rgba(255, 250, 240, 0.06);
  color: #fffaf0;
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
}

.carneiros-ai-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  padding: 12px 14px;
  border-top: 1px solid rgba(255, 250, 240, 0.1);
}

.carneiros-ai-form input {
  min-width: 0;
  height: 40px;
  border-color: rgba(255, 250, 240, 0.18);
  background: rgba(255, 250, 240, 0.08);
  color: #fffaf0;
}

.carneiros-ai-form input::placeholder {
  color: rgba(255, 250, 240, 0.54);
}

.carneiros-ai-form button,
.carneiros-ai-wa {
  border: 1px solid rgba(214, 168, 82, 0.4);
  border-radius: 8px;
  background: linear-gradient(120deg, var(--brand), var(--brand-strong));
  color: #1d1a12;
  cursor: pointer;
  font-weight: 900;
  text-decoration: none;
}

.carneiros-ai-form button {
  min-height: 40px;
  padding: 0 12px;
}

.carneiros-ai-wa {
  display: block;
  margin: 0 14px 14px;
  padding: 10px;
  text-align: center;
}

.carneiros-ai-mini {
  display: block;
  padding: 12px 16px;
  background: #061d18;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.24);
}

.carneiros-ai.is-open .carneiros-ai-mini {
  display: none;
}

@media (max-width: 1120px) {
  .header-row {
    grid-template-columns: 1fr auto;
  }

  .main-nav {
    grid-column: 1 / -1;
    order: 3;
    overflow-x: auto;
    padding-bottom: 8px;
  }

  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .hero {
    min-height: 620px;
    padding: 74px 0 28px;
    background:
      linear-gradient(180deg, rgba(4, 25, 20, 0.96) 0%, rgba(8, 43, 36, 0.86) 72%, rgba(8, 43, 36, 0.8) 100%),
      url("logo-carneiro.png") center 34% / min(330px, 78vw) no-repeat,
      var(--deep);
  }

  .hero h2 {
    font-size: 42px;
  }

  .hero-copy {
    font-size: 16px;
  }

  .service-grid,
  .hero-metrics {
    grid-template-columns: 1fr;
  }

  .property-lightbox {
    align-items: start;
    padding: 8px;
  }

  .property-lightbox-dialog {
    width: 100%;
    max-height: calc(100dvh - 16px);
    grid-template-rows: auto auto auto auto;
    gap: 8px;
    padding: 10px;
    border-radius: 10px;
  }

  .property-lightbox-head {
    align-items: flex-start;
    gap: 8px;
  }

  .property-lightbox-head h3 {
    font-size: 17px;
    line-height: 1.24;
    text-shadow: none;
  }

  .property-lightbox-head p {
    font-size: 12px;
  }

  .property-lightbox-close {
    padding: 7px 9px;
    font-size: 12px;
  }

  .property-lightbox-frame {
    min-height: 0;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .property-lightbox-frame img {
    grid-column: 1 / -1;
    grid-row: 1;
    max-height: min(40dvh, 360px);
    aspect-ratio: 4 / 3;
    object-fit: contain;
  }

  .property-lightbox-prev,
  .property-lightbox-next {
    grid-row: 2;
    min-width: 0;
    padding: 9px 8px;
    font-size: 12px;
  }

  .property-lightbox-details {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 10px;
  }

  .property-lightbox-kicker {
    font-size: 10px;
    line-height: 1.35;
    letter-spacing: 0.02em;
  }

  .property-lightbox-details h4 {
    font-size: 17px;
    line-height: 1.25;
  }

  .property-lightbox-details p {
    font-size: 13px;
    line-height: 1.45;
  }

  .property-lightbox-summary strong {
    font-size: 18px;
  }

  .property-lightbox-summary .btn {
    width: 100%;
    justify-content: center;
    min-height: 44px;
  }

  .property-lightbox-thumbs {
    grid-auto-columns: 72px;
  }
}

/* Final visual lock - reference layout */
:root {
  --hero-bg-image: url("hero-premium-carneiro.png");
}

.site-header {
  background: rgba(5, 22, 18, 0.98) !important;
  border-bottom: 1px solid rgba(214, 168, 82, 0.22) !important;
  box-shadow: 0 12px 38px rgba(0, 0, 0, 0.28) !important;
}

.header-row {
  min-height: 72px !important;
  grid-template-columns: minmax(270px, 340px) minmax(420px, 1fr) auto !important;
  gap: 16px !important;
}

.brand {
  color: #fffaf0 !important;
  min-width: 0 !important;
}

.brand img {
  width: 54px !important;
  height: 54px !important;
  border-radius: 0 !important;
  border: 0 !important;
  object-fit: cover !important;
}

.brand h1 {
  color: #fffaf0 !important;
  font-size: 18px !important;
  line-height: 1 !important;
  max-width: 260px !important;
}

.brand p {
  color: rgba(255, 250, 240, 0.68) !important;
}

.main-nav {
  justify-content: flex-start !important;
  gap: clamp(12px, 1.25vw, 20px) !important;
  min-width: 0 !important;
  overflow: visible !important;
  scrollbar-width: none !important;
}

.main-nav::-webkit-scrollbar {
  display: none !important;
}

.main-nav a {
  color: rgba(255, 250, 240, 0.82) !important;
  font-size: 12px !important;
  white-space: nowrap !important;
}

.main-nav a:hover {
  color: var(--brand) !important;
}

.header-actions {
  flex-wrap: nowrap !important;
}

.header-actions .btn {
  min-height: 40px !important;
  padding-inline: 16px !important;
  white-space: nowrap !important;
}

.header-actions .btn-soft {
  border-color: rgba(214, 168, 82, 0.42) !important;
  background: linear-gradient(120deg, var(--brand), var(--brand-strong)) !important;
  color: #1d1a12 !important;
}

.btn-outline-light {
  border-color: rgba(255, 250, 240, 0.32) !important;
  background: transparent !important;
  color: #fffaf0 !important;
}

.site-sync-pill {
  display: none !important;
}

.hero {
  min-height: 640px !important;
  display: grid !important;
  align-items: center !important;
  padding: 112px 0 32px !important;
  color: #fffaf0 !important;
  background-image:
    linear-gradient(90deg, rgba(5, 22, 18, 0.94) 0%, rgba(5, 22, 18, 0.78) 36%, rgba(5, 22, 18, 0.16) 100%),
    url("hero-premium-carneiro.png") !important;
  background-size: cover !important;
  background-position: center center !important;
  border-bottom: 0 !important;
}

.hero::after {
  height: 170px !important;
  background: linear-gradient(180deg, rgba(5, 22, 18, 0), rgba(5, 22, 18, 0.72)) !important;
}

.hero-content {
  width: min(1220px, 90vw) !important;
  display: grid !important;
  gap: 16px !important;
}

.eyebrow {
  margin: 0 !important;
  color: var(--brand) !important;
  text-transform: uppercase !important;
  font-weight: 800 !important;
  font-size: 13px !important;
}

.hero h2 {
  max-width: 650px !important;
  margin: 0 !important;
  color: #fffaf0 !important;
  font-size: clamp(34px, 4.4vw, 60px) !important;
  line-height: 1.04 !important;
}

.hero-highlight {
  color: var(--brand) !important;
}

.hero-copy {
  max-width: 520px !important;
  color: rgba(255, 250, 240, 0.88) !important;
  font-size: 16px !important;
}

.hero-actions {
  margin-top: 8px !important;
  display: flex !important;
  gap: 14px !important;
}

.hero-actions .btn {
  min-width: 156px !important;
}

.hero-search-panel {
  width: min(1080px, 100%) !important;
  margin-top: 24px !important;
  display: grid !important;
  grid-template-columns: repeat(3, minmax(150px, 1fr)) 180px !important;
  gap: 10px !important;
  padding: 14px !important;
  border: 1px solid rgba(255, 250, 240, 0.16) !important;
  border-radius: 8px !important;
  background: rgba(6, 13, 11, 0.84) !important;
  box-shadow: 0 22px 58px rgba(0, 0, 0, 0.28) !important;
}

.hero-search-panel label {
  color: rgba(255, 250, 240, 0.75) !important;
}

.hero-search-panel select {
  height: 44px !important;
  border-color: rgba(255, 250, 240, 0.18) !important;
  background: rgba(255, 250, 240, 0.08) !important;
  color: #fffaf0 !important;
}

.hero-feature-row {
  grid-column: 1 / -1 !important;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
}

.hero-feature-filter {
  min-height: 34px !important;
  color: rgba(255, 250, 240, 0.78) !important;
  background: rgba(255, 250, 240, 0.04) !important;
}

.hero-metrics {
  display: none !important;
}

.trust-band {
  background: #fffaf4 !important;
}

#imoveis {
  background: #061d18 !important;
}

#imoveis .property-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

#imoveis .property-card {
  background: #08251f !important;
  color: #fffaf0 !important;
  border-color: rgba(255, 250, 240, 0.1) !important;
}

#imoveis .property-thumb {
  aspect-ratio: 16 / 10 !important;
}

#imoveis .property-title {
  color: #fffaf0 !important;
}

#imoveis .property-meta {
  color: rgba(255, 250, 240, 0.68) !important;
}

#imoveis .lead-box {
  background: #fffaf4 !important;
}

@media (max-width: 1180px) {
  .header-row {
    grid-template-columns: 1fr !important;
    padding: 10px 0 !important;
  }

  .brand {
    max-width: 100% !important;
  }

  .main-nav {
    justify-content: flex-start !important;
  }

  .header-actions {
    justify-content: flex-start !important;
  }

  .hero-search-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  #imoveis .property-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 640px) {
  .site-header {
    position: relative !important;
  }

  .header-row {
    min-height: 0 !important;
    gap: 10px !important;
  }

  .brand {
    display: grid !important;
    grid-template-columns: 64px minmax(0, 1fr) !important;
    align-items: center !important;
  }

  .brand img {
    width: 64px !important;
    height: 64px !important;
  }

  .brand h1 {
    font-size: 21px !important;
    max-width: 240px !important;
  }

  .brand p {
    font-size: 13px !important;
  }

  .header-actions {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
  }

  .header-actions .btn {
    width: 100% !important;
    min-height: 42px !important;
  }

  .header-actions #headerWhatsappBtn {
    grid-column: 1 / -1 !important;
  }

  .main-nav {
    display: flex !important;
    gap: 18px !important;
    padding: 2px 0 8px !important;
  }

  .main-nav a {
    font-size: 14px !important;
  }

  .hero {
    min-height: 690px !important;
    padding: 42px 0 28px !important;
    align-items: start !important;
    background-image:
      linear-gradient(180deg, rgba(5, 22, 18, 0.9) 0%, rgba(5, 22, 18, 0.7) 44%, rgba(5, 22, 18, 0.94) 100%),
      url("hero-premium-carneiro.png") !important;
    background-position: center top !important;
  }

  .hero h2 {
    max-width: 100% !important;
    font-size: 39px !important;
    line-height: 1.04 !important;
  }

  .hero-copy {
    font-size: 16px !important;
  }

  .hero-actions {
    display: grid !important;
    grid-template-columns: 1fr !important;
  }

  .hero-actions .btn {
    width: 100% !important;
  }

  .hero-search-panel {
    grid-template-columns: 1fr !important;
    margin-top: 16px !important;
    padding: 12px !important;
  }

  .hero-feature-row {
    grid-template-columns: 1fr 1fr !important;
  }

  #imoveis .property-grid {
    grid-template-columns: 1fr !important;
  }

  .property-lightbox-details {
    grid-template-columns: 1fr !important;
  }

  .carneiros-ai {
    right: 10px !important;
    bottom: 64px !important;
    left: 10px !important;
  }

  .carneiros-ai-panel {
    width: 100% !important;
    max-height: min(560px, calc(100vh - 86px)) !important;
    grid-template-rows: auto auto minmax(150px, 1fr) auto auto auto !important;
  }

  .carneiros-ai-quick {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .carneiros-ai-mini {
    margin-left: auto !important;
    width: max-content !important;
  }
}

/* Contraste final - fundo verde da paleta Carneiro */
body,
main {
  background: #061d18 !important;
}

.trust-band,
.section:not(#imoveis),
.faq {
  color: #fffaf0 !important;
  background:
    radial-gradient(circle at 12% 0%, rgba(214, 168, 82, 0.12), transparent 30%),
    linear-gradient(180deg, #082b24 0%, #061d18 100%) !important;
  border-bottom-color: rgba(211, 179, 110, 0.18) !important;
}

.trust-grid div,
.service-card,
.table-card,
.tool-card:not(.buyer-demand-card),
details,
.broker-panel,
.broker-property-sync-card,
.chat-online-wrap {
  color: #fffaf0 !important;
  border-color: rgba(211, 179, 110, 0.26) !important;
  background:
    linear-gradient(180deg, rgba(17, 58, 50, 0.96), rgba(8, 43, 36, 0.96)) !important;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.18) !important;
}

.section-head h3,
.service-card h4,
.table-card h4,
.tool-card h4,
.trust-grid strong,
details summary,
.broker-panel h4,
.broker-panel h5 {
  color: #fffaf0 !important;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.16) !important;
}

.section-head p,
.service-card p,
.table-card p,
.tool-card p,
.trust-grid p,
details p,
.broker-panel p,
.small,
.property-lightbox-details p {
  color: rgba(255, 250, 240, 0.82) !important;
}

.service-card span,
.section-link,
.tip-card h4,
.buyer-demand-item b {
  color: #d3b36e !important;
}

.tip-card {
  color: #fffaf0 !important;
  border-color: rgba(211, 179, 110, 0.22) !important;
  background:
    linear-gradient(180deg, rgba(12, 49, 42, 0.98), rgba(8, 43, 36, 0.94)) !important;
}

.tip-card p,
.tip-card .list-meta {
  color: rgba(255, 250, 240, 0.78) !important;
}

.table-card table {
  color: #fffaf0 !important;
}

.table-card th {
  color: #d3b36e !important;
  background: rgba(255, 250, 240, 0.06) !important;
}

/* Ajuste final da janela de imóvel no celular */
@media (max-width: 640px) {
  .property-lightbox {
    align-items: flex-start !important;
    padding: 8px !important;
  }

  .property-lightbox-dialog {
    width: 100% !important;
    max-height: calc(100dvh - 16px) !important;
    overflow-y: auto !important;
    display: grid !important;
    grid-template-rows: auto auto auto auto !important;
    gap: 8px !important;
    padding: 10px !important;
  }

  .property-lightbox-head h3 {
    font-size: 17px !important;
    line-height: 1.24 !important;
    overflow-wrap: anywhere !important;
  }

  .property-lightbox-frame {
    min-height: 0 !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
  }

  .property-lightbox-frame img {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    max-height: min(40dvh, 360px) !important;
    aspect-ratio: 4 / 3 !important;
    object-fit: contain !important;
  }

  .property-lightbox-prev,
  .property-lightbox-next {
    min-width: 0 !important;
    padding: 9px 8px !important;
    font-size: 12px !important;
  }

  .property-lightbox-details {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    padding: 10px !important;
  }

  .property-lightbox-kicker,
  .property-lightbox-details h4,
  .property-lightbox-details p,
  .property-lightbox-summary span {
    overflow-wrap: anywhere !important;
  }

  .property-lightbox-details h4 {
    font-size: 17px !important;
    line-height: 1.25 !important;
  }

  .property-lightbox-summary .btn {
    width: 100% !important;
    justify-content: center !important;
    min-height: 44px !important;
  }
}

/* Mobile premium: aproxima o telefone do layout desktop */
@media (max-width: 760px) {
  .site-wrap {
    width: min(100% - 20px, 1220px) !important;
  }

  .site-header {
    position: sticky !important;
    top: 0 !important;
    background: rgba(5, 22, 18, 0.98) !important;
  }

  .header-row {
    min-height: 70px !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 8px 10px !important;
    align-items: center !important;
    padding: 8px 0 9px !important;
  }

  .brand {
    display: grid !important;
    grid-template-columns: 44px minmax(0, 1fr) !important;
    gap: 9px !important;
    align-items: center !important;
  }

  .brand img {
    width: 44px !important;
    height: 44px !important;
  }

  .brand h1 {
    max-width: none !important;
    font-size: 14px !important;
    line-height: 1.08 !important;
  }

  .brand p {
    font-size: 10px !important;
    line-height: 1.2 !important;
  }

  .main-nav {
    grid-column: 1 / -1 !important;
    order: 2 !important;
    display: flex !important;
    gap: 14px !important;
    overflow-x: auto !important;
    padding: 4px 0 2px !important;
    -webkit-overflow-scrolling: touch !important;
  }

  .main-nav a {
    flex: 0 0 auto !important;
    font-size: 12px !important;
  }

  .header-actions {
    grid-column: 1 / -1 !important;
    order: 3 !important;
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 6px !important;
    justify-content: flex-start !important;
    overflow-x: auto !important;
    max-width: 100% !important;
    width: 100% !important;
    padding-bottom: 1px !important;
    scrollbar-width: none !important;
  }

  .header-actions::-webkit-scrollbar {
    display: none !important;
  }

  .header-actions .btn {
    flex: 0 0 auto !important;
    width: auto !important;
    min-height: 36px !important;
    padding: 9px 11px !important;
    font-size: 11px !important;
  }

  .header-actions #headerWhatsappBtn {
    grid-column: auto !important;
  }

  .btn-outline-light {
    display: inline-flex !important;
  }

  .hero {
    min-height: 640px !important;
    align-items: center !important;
    padding: 58px 0 24px !important;
    background-image:
      linear-gradient(90deg, rgba(5, 22, 18, 0.96) 0%, rgba(5, 22, 18, 0.82) 42%, rgba(5, 22, 18, 0.22) 100%),
      url("hero-premium-carneiro.png") !important;
    background-size: cover !important;
    background-position: 60% center !important;
  }

  .hero-content {
    width: min(100% - 20px, 1220px) !important;
    gap: 13px !important;
  }

  .eyebrow {
    font-size: 11px !important;
    letter-spacing: 0.04em !important;
  }

  .hero h2 {
    max-width: 360px !important;
    font-size: clamp(31px, 9.2vw, 39px) !important;
    line-height: 1.03 !important;
  }

  .hero-copy {
    max-width: 330px !important;
    font-size: 14px !important;
    line-height: 1.46 !important;
  }

  .hero-actions {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 9px !important;
    max-width: 360px !important;
  }

  .hero-actions .btn {
    min-width: 0 !important;
    width: 100% !important;
    min-height: 42px !important;
    padding: 10px 12px !important;
    font-size: 13px !important;
  }

  .hero-actions .btn-ghost {
    grid-column: 1 / -1 !important;
  }

  .hero-search-panel {
    width: 100% !important;
    margin-top: 10px !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
    padding: 10px !important;
    background: rgba(6, 13, 11, 0.86) !important;
    backdrop-filter: blur(8px) !important;
  }

  .hero-search-panel label {
    font-size: 11px !important;
  }

  .hero-search-panel select {
    height: 42px !important;
    font-size: 12px !important;
  }

  .hero-search-btn {
    width: 100% !important;
    grid-column: 1 / -1 !important;
    min-height: 42px !important;
  }

  .hero-feature-row {
    grid-column: 1 / -1 !important;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 7px !important;
  }

  .hero-feature-filter {
    min-height: 32px !important;
    padding: 7px 8px !important;
    font-size: 11px !important;
  }

  .trust-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 6px !important;
  }

  .trust-grid div {
    padding: 8px 6px !important;
  }

  .trust-grid strong {
    font-size: 11px !important;
    line-height: 1.2 !important;
  }

  .trust-grid p {
    font-size: 10px !important;
    line-height: 1.25 !important;
  }

  #imoveis .layout {
    display: grid !important;
    grid-template-columns: 1fr !important;
  }

  #imoveis .property-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  #imoveis .property-body {
    padding: 9px !important;
  }

  #imoveis .property-title {
    font-size: 13px !important;
    line-height: 1.22 !important;
  }

  #imoveis .property-meta {
    font-size: 10px !important;
    line-height: 1.32 !important;
  }

  #imoveis .property-price {
    font-size: 15px !important;
  }

  #imoveis .row-actions {
    display: grid !important;
    grid-template-columns: 1fr !important;
  }

  #imoveis .row-actions .btn {
    width: 100% !important;
    min-height: 38px !important;
    padding: 9px 8px !important;
    font-size: 11px !important;
  }
}

@media (max-width: 374px) {
  .header-actions {
    max-width: 100% !important;
  }

  .hero h2 {
    font-size: 30px !important;
  }

  #imoveis .property-grid {
    grid-template-columns: 1fr !important;
  }
}

.table-card td {
  color: rgba(255, 250, 240, 0.84) !important;
  border-color: rgba(211, 179, 110, 0.18) !important;
}

.tool-result {
  border-color: rgba(211, 179, 110, 0.24) !important;
  background: rgba(255, 250, 240, 0.08) !important;
  color: rgba(255, 250, 240, 0.82) !important;
}

.section:not(#imoveis) label {
  color: rgba(255, 250, 240, 0.86) !important;
}

.section:not(#imoveis) input,
.section:not(#imoveis) select,
.section:not(#imoveis) textarea {
  border-color: rgba(211, 179, 110, 0.32) !important;
  background: #fffaf4 !important;
  color: #10241e !important;
}

.section:not(#imoveis) input::placeholder,
.section:not(#imoveis) textarea::placeholder {
  color: rgba(16, 36, 30, 0.48) !important;
}

.section:not(#imoveis) .btn-soft,
.section:not(#imoveis) .btn-ghost {
  border-color: rgba(255, 250, 240, 0.34) !important;
  color: #fffaf0 !important;
  background: rgba(255, 250, 240, 0.08) !important;
}

#imoveis .lead-box {
  color: #fffaf0 !important;
  border-color: rgba(211, 179, 110, 0.28) !important;
  background:
    linear-gradient(180deg, rgba(17, 58, 50, 0.98), rgba(8, 43, 36, 0.98)) !important;
}

#imoveis .lead-box h3 {
  color: #fffaf0 !important;
}

#imoveis .lead-box p,
#imoveis .lead-box label {
  color: rgba(255, 250, 240, 0.82) !important;
}

#imoveis .lead-box input,
#imoveis .lead-box select,
#imoveis .lead-box textarea {
  border-color: rgba(211, 179, 110, 0.32) !important;
  background: #fffaf4 !important;
  color: #10241e !important;
}

/* Reforco de leitura em textos dentro das caixas */
.trust-grid p,
.service-card p,
.table-card p,
.tool-card p,
.tip-card p,
.buyer-demand-card p,
.buyer-demand-item p,
.lead-box p,
details p,
.property-meta,
.property-specs,
.small {
  color: #f4efe3 !important;
  opacity: 1 !important;
  font-weight: 500 !important;
}

.buyer-demand-item span,
.buyer-demand-item small,
.tool-result,
.list-meta,
.broker-panel p,
.broker-panel .small,
.section-head p {
  color: #e8dfcc !important;
  opacity: 1 !important;
}

.trust-grid strong,
.service-card h4,
.table-card h4,
.tool-card h4,
.tip-card h4,
.buyer-demand-card h4,
.buyer-demand-item strong,
.lead-box h3,
details summary,
.property-title {
  color: #ffffff !important;
  opacity: 1 !important;
  font-weight: 800 !important;
}

.buyer-demand-head small {
  color: #fff3d2 !important;
  opacity: 1 !important;
}

.buyer-demand-item {
  background: rgba(255, 250, 240, 0.1) !important;
  border-color: rgba(211, 179, 110, 0.34) !important;
}

/* Portfolio do corretor - leitura em fundo claro */
.broker-property-grid .broker-mini-card {
  background: #fffaf4 !important;
  border-color: rgba(8, 43, 36, 0.18) !important;
  color: #111111 !important;
}

.broker-property-grid .broker-mini-card h5,
.broker-property-grid .broker-mini-card .broker-mini-meta,
.broker-property-grid .broker-mini-card p,
.broker-property-grid .broker-mini-card span,
.broker-property-grid .broker-mini-card strong,
.broker-property-grid .broker-mini-card b {
  color: #111111 !important;
  opacity: 1 !important;
  text-shadow: none !important;
}

.broker-property-grid .broker-mini-card h5 {
  font-weight: 800 !important;
}

.broker-property-grid .broker-mini-card .broker-mini-meta {
  color: #333333 !important;
  font-weight: 600 !important;
}

.broker-lead-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  max-height: 640px;
  overflow: auto;
  padding-right: 3px;
}

.broker-commission-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0;
}

.broker-commission-summary article,
.broker-commission-card {
  border: 1px solid rgba(211, 179, 110, 0.34);
  border-radius: 10px;
  background: #fffaf0;
  color: #111111;
  padding: 12px;
  min-width: 0;
  box-sizing: border-box;
}

.broker-commission-summary span,
.broker-commission-data span {
  display: block;
  color: #5d625f !important;
  font-size: 11px;
  font-weight: 700;
}

.broker-commission-summary strong {
  display: block;
  margin-top: 5px;
  color: #111111 !important;
  font-size: 18px;
}

.broker-commission-grid {
  display: grid;
  gap: 10px;
}

.broker-commission-card strong,
.broker-commission-card p,
.broker-commission-card b {
  color: #111111 !important;
}

.broker-commission-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.broker-commission-head span {
  color: #5d625f !important;
  font-size: 12px;
  font-weight: 800;
}

.broker-commission-head strong {
  display: block;
  margin-top: 3px;
  font-size: 20px;
}

.broker-commission-head b {
  border: 1px solid rgba(32, 122, 74, 0.35);
  border-radius: 999px;
  background: rgba(32, 122, 74, 0.14);
  padding: 4px 8px;
  font-size: 11px;
  white-space: nowrap;
}

.broker-commission-data {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.broker-commission-data div {
  border: 1px solid rgba(6, 43, 36, 0.12);
  border-radius: 8px;
  background: #ffffff;
  padding: 8px;
  min-width: 0;
}

.broker-commission-data strong {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.broker-commission-empty p {
  margin: 5px 0 0;
}

.broker-lead-card {
  border: 1px solid rgba(211, 179, 110, 0.34);
  border-radius: 10px;
  background: #fffaf0;
  color: #111111;
  padding: 12px;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.12);
}

.broker-lead-card h5,
.broker-lead-card p,
.broker-lead-card span,
.broker-lead-card strong,
.broker-lead-card b,
.broker-lead-card small {
  color: #111111 !important;
}

.broker-lead-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
}

.broker-lead-top h5 {
  margin: 0 0 4px;
  font-size: 15px;
}

.broker-lead-top b {
  border: 1px solid rgba(201, 150, 62, 0.48);
  border-radius: 999px;
  background: rgba(201, 150, 62, 0.16);
  padding: 4px 8px;
  font-size: 11px;
  white-space: nowrap;
}

.broker-lead-data {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
}

.broker-lead-data div {
  border: 1px solid rgba(6, 43, 36, 0.12);
  border-radius: 8px;
  background: #ffffff;
  padding: 8px;
}

.broker-lead-data span {
  display: block;
  margin-bottom: 3px;
  color: #5d625f !important;
  font-size: 11px;
  font-weight: 700;
}

.broker-lead-data strong {
  display: block;
  font-size: 12px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.broker-lead-notes {
  margin-top: 10px;
  border-left: 3px solid #c9963e;
  background: rgba(201, 150, 62, 0.1);
  padding: 8px 10px;
}

.broker-lead-notes p {
  margin: 4px 0 0;
  font-size: 12px;
  line-height: 1.45;
}

.broker-disabled-action {
  justify-content: center;
  pointer-events: none;
  opacity: 0.75;
}

.broker-pipeline-board {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 10px;
  align-items: stretch;
}

.broker-pipeline-stage {
  border: 1px solid rgba(211, 179, 110, 0.28);
  border-radius: 10px;
  background: rgba(255, 250, 240, 0.08);
  padding: 10px;
  min-height: 136px;
}

.broker-pipeline-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
}

.broker-pipeline-head strong,
.broker-pipeline-head span {
  color: #fffaf0 !important;
}

.broker-pipeline-head span {
  border-radius: 999px;
  background: #c9963e;
  color: #111111 !important;
  padding: 2px 8px;
  font-size: 12px;
  font-weight: 800;
}

.broker-pipeline-lead {
  border: 1px solid rgba(255, 250, 240, 0.12);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.14);
  padding: 8px;
  margin-top: 6px;
  min-width: 0;
  overflow-wrap: anywhere;
}

.broker-pipeline-lead b,
.broker-pipeline-lead small,
.broker-pipeline-stage p {
  color: #fffaf0 !important;
}

.broker-pipeline-lead small {
  display: block;
  margin-top: 3px;
  opacity: 0.82;
}

.broker-search-field {
  display: grid;
  gap: 6px;
  margin: 12px 0;
  color: #fffaf0;
  font-weight: 800;
}

.broker-search-field input {
  width: 100%;
  border: 1px solid rgba(211, 179, 110, 0.36);
  border-radius: 10px;
  background: #fffaf4;
  color: #111111;
  padding: 12px 14px;
  font: inherit;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.broker-search-field input::placeholder {
  color: #5d625f;
}

@media (max-width: 860px) {
  .broker-lead-grid,
  .broker-pipeline-board {
    grid-template-columns: 1fr;
  }

  .broker-lead-data,
  .broker-commission-summary,
  .broker-commission-data {
    grid-template-columns: 1fr;
  }
}

/* Fundo premium em movimento */
.hero {
  position: relative !important;
  overflow: hidden !important;
  isolation: isolate !important;
  background: #051612 !important;
}

.hero::before {
  content: "" !important;
  position: absolute !important;
  inset: -5% !important;
  z-index: 0 !important;
  pointer-events: none !important;
  background-image: url("hero-premium-carneiro.png") !important;
  background-size: cover !important;
  background-position: 58% center;
  background-repeat: no-repeat !important;
  transform: scale(1.07) translate3d(0, 0, 0);
  transform-origin: center center !important;
  animation: carneiroHeroMotion 9s ease-in-out infinite alternate;
  will-change: transform, background-position !important;
}

.hero::after {
  z-index: 0 !important;
  height: 100% !important;
  inset: 0 !important;
  background:
    linear-gradient(90deg, rgba(5, 22, 18, 0.96) 0%, rgba(5, 22, 18, 0.82) 38%, rgba(5, 22, 18, 0.22) 100%),
    linear-gradient(180deg, rgba(5, 22, 18, 0) 58%, rgba(5, 22, 18, 0.78) 100%) !important;
}

.hero-content {
  position: relative !important;
  z-index: 1 !important;
}

@keyframes carneiroHeroMotion {
  0% {
    transform: scale(1.07) translate3d(-4.2%, -1.8%, 0);
    background-position: 50% center;
  }

  50% {
    transform: scale(1.15) translate3d(2.6%, 1.6%, 0);
    background-position: 66% center;
  }

  100% {
    transform: scale(1.11) translate3d(5.2%, -1.4%, 0);
    background-position: 76% center;
  }
}

@media (max-width: 760px) {
  .hero::before {
    inset: -9% !important;
    background-position: 62% center;
    animation-duration: 8s;
  }

  .hero::after {
    background:
      linear-gradient(90deg, rgba(5, 22, 18, 0.97) 0%, rgba(5, 22, 18, 0.84) 44%, rgba(5, 22, 18, 0.26) 100%),
      linear-gradient(180deg, rgba(5, 22, 18, 0.08) 0%, rgba(5, 22, 18, 0.18) 42%, rgba(5, 22, 18, 0.86) 100%) !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero::before {
    animation: none !important;
    transform: scale(1.07) !important;
  }
}

/* Filtros rapidos selecionaveis da busca de imoveis */
.hero-feature-filter {
  appearance: none;
  width: 100%;
  font-family: inherit;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease, transform 160ms ease;
}

.hero-feature-filter:hover {
  border-color: rgba(214, 168, 82, 0.72) !important;
  transform: translateY(-1px);
}

.hero-feature-filter.is-active,
.hero-feature-filter[aria-pressed="true"] {
  border-color: #d6a852 !important;
  background: linear-gradient(120deg, #d6a852 0%, #bd8736 100%) !important;
  color: #17130c !important;
  box-shadow: 0 0 0 2px rgba(214, 168, 82, 0.18);
}

.hero-feature-filter:focus-visible {
  outline: 3px solid rgba(255, 250, 240, 0.92);
  outline-offset: 2px;
}
/* Opcoes do filtro de quantidade de quartos */
.hero-bedroom-filter {
  appearance: auto !important;
  display: block !important;
  text-align: center;
  text-align-last: center;
}

.hero-bedroom-filter option {
  color: #17130c;
  background: #fffaf0;
}
