/* ===================================================================
   IMOBPRIME — Design System
   =================================================================== */

:root {
    --navy: #1a2744;
    --navy-dark: #121b30;
    --navy-light: #2a3a5c;
    --gold: #c9a15e;
    --gold-dark: #ad8848;
    --btn-primary-bg: var(--navy);
    --cream: #f7f5f1;
    --white: #ffffff;
    --text: #1f2937;
    --text-muted: #6b7280;
    --border: #e5e2da;
    --success: #2e7d32;
    --danger: #c0392b;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 10px 30px rgba(26, 39, 68, 0.08);
    --shadow-sm: 0 2px 10px rgba(26, 39, 68, 0.06);
    --serif: Georgia, 'Times New Roman', serif;
    --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    font-family: var(--sans);
    color: var(--text);
    background: var(--cream);
    line-height: 1.5;
}
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; margin: 0 0 .5em; color: var(--navy); }
p { margin: 0 0 1em; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.accent { color: var(--gold); }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 24px; border-radius: var(--radius-sm); border: 1px solid transparent;
    font-size: 15px; font-weight: 600; cursor: pointer; transition: all .15s ease;
}
.btn-primary { background: var(--btn-primary-bg); color: var(--white); }
.btn-primary:hover { filter: brightness(1.15); }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: var(--gold-dark); }
.btn-outline { background: transparent; border-color: var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--white); }
.btn-outline-light { background: transparent; border-color: rgba(255,255,255,.5); color: var(--white); }
.btn-outline-light:hover { background: rgba(255,255,255,.15); }
.btn-outline-gold { background: transparent; border-color: var(--gold); color: var(--navy); }
.btn-outline-gold:hover { background: var(--gold); color: var(--navy); }
.btn-danger { background: var(--danger); color: var(--white); }
.btn-sm { padding: 8px 16px; font-size: 14px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .6; cursor: not-allowed; }

/* Flash messages */
.flash { padding: 14px 24px; text-align: center; font-weight: 600; position: relative; }
.flash-success { background: #e6f4ea; color: var(--success); }
.flash-error { background: #fdecea; color: var(--danger); }

.seo-help { background: var(--cream); border-radius: 8px; padding: 14px 16px; margin-top: 10px; font-size: 13px; color: var(--text-muted); }
.seo-help strong { color: var(--text); }
.seo-help ol { margin: 8px 0 0; padding-left: 18px; }
.seo-help li { margin-bottom: 6px; }
.seo-help li:last-child { margin-bottom: 0; }
.seo-help code { background: var(--white); border-radius: 4px; padding: 1px 5px; font-size: 12px; }
.seo-help a { color: var(--gold); font-weight: 600; }

.doc-list { list-style: none; padding: 0; margin: 10px 0 0; display: flex; flex-direction: column; gap: 8px; }

.manual-content h2 { font-size: 20px; margin-top: 0; }
.manual-content h3 { font-size: 16px; margin-top: 0; }
.manual-content p { line-height: 1.65; }
.manual-content ul, .manual-content ol { padding-left: 22px; margin: 0 0 1em; }
.manual-content ul { list-style: disc; }
.manual-content ol { list-style: decimal; }
.manual-content li { margin-bottom: 6px; line-height: 1.6; }
.manual-content li:last-child { margin-bottom: 0; }
.manual-content .manual-note { background: var(--cream); border-left: 3px solid var(--gold); border-radius: 6px; padding: 12px 16px; font-size: 14px; color: var(--text-muted); margin: 0 0 1em; }
.manual-content section { margin-bottom: 20px; }
.manual-content section:last-child { margin-bottom: 0; }
.doc-list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--cream); border-radius: 8px; padding: 8px 12px; font-size: 13px; }
.doc-list a { color: var(--text); font-weight: 600; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.doc-list a:hover { color: var(--gold); }
.doc-list .btn { flex-shrink: 0; padding: 2px 9px; line-height: 1.6; }
.flash-close { position: absolute; right: 20px; top: 50%; transform: translateY(-50%); background: none; border: none; font-size: 20px; color: inherit; }

/* Header */
.site-header { background: var(--white); box-shadow: var(--shadow-sm); position: sticky; top: 0; z-index: 100; }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 24px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
    width: 42px; height: 42px; background: var(--navy); color: var(--gold);
    display: flex; align-items: center; justify-content: center; border-radius: 6px;
    font-family: var(--serif); font-weight: 700; font-size: 18px;
}
.brand-mark-light { background: var(--gold); color: var(--navy); margin-bottom: 12px; }
.site-logo { max-height: 46px; width: auto; display: block; }
.footer-brand .site-logo { max-height: 40px; margin-bottom: 12px; background: var(--white); padding: 6px 10px; border-radius: 8px; }
.brand-text strong { display: block; font-family: var(--serif); font-size: 18px; color: var(--navy); letter-spacing: .5px; }
.brand-text small { display: block; font-size: 10px; letter-spacing: 1.5px; color: var(--text-muted); text-transform: uppercase; }
.main-nav { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.main-nav > a {
    font-size: 14.5px; font-weight: 500; color: var(--text); padding: 8px 14px; border-radius: 999px;
    border-bottom: 2px solid transparent; transition: background .18s ease, color .18s ease;
}
.main-nav > a:hover { color: var(--navy); background: var(--cream); }
.main-nav > a.active { color: var(--navy); background: var(--gold); border-color: transparent; }

.nav-dropdown { position: relative; }
.nav-dropdown-toggle {
    display: flex; align-items: center; gap: 5px; font-size: 14.5px; font-weight: 500; color: var(--text);
    padding: 8px 14px; border-radius: 999px; border-bottom: 2px solid transparent; transition: background .18s ease, color .18s ease;
}
.nav-dropdown-toggle:hover { color: var(--navy); background: var(--cream); }
.nav-dropdown-toggle.active { color: var(--navy); background: var(--gold); border-color: transparent; }
.nav-caret { transition: transform .15s ease; }
.nav-dropdown:hover .nav-caret { transform: rotate(180deg); }
.nav-dropdown-menu {
    position: absolute; top: 100%; left: 0; margin-top: 8px; background: var(--white); border-radius: var(--radius-sm);
    box-shadow: var(--shadow); min-width: 200px; padding: 8px; opacity: 0; visibility: hidden; transform: translateY(-6px);
    transition: opacity .15s ease, transform .15s ease, visibility .15s ease; z-index: 50;
}
.nav-dropdown:hover .nav-dropdown-menu, .nav-dropdown:focus-within .nav-dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-dropdown-menu a {
    display: block; padding: 9px 12px; border-radius: 6px; font-size: 14px; font-weight: 500; color: var(--text);
    transition: background .15s ease, color .15s ease;
}
.nav-dropdown-menu a:hover { background: var(--cream); color: var(--navy); }
.nav-dropdown-menu a.active { background: var(--gold); color: var(--navy); }

.header-whatsapp {
    display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%;
    background: #25d366; color: var(--white);
}
.header-whatsapp:hover { background: #1ebc59; }

.site-header.is-scrolled { box-shadow: 0 4px 16px rgba(0,0,0,.1); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; background: none; border: none; font-size: 24px; color: var(--navy); }

/* Hero */
.hero {
    position: relative; min-height: 620px; display: flex; align-items: center;
    background-size: cover; background-position: center; color: var(--white);
}
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(18,27,48,.82) 0%, rgba(18,27,48,.55) 55%, rgba(18,27,48,.25) 100%); }
.hero-inner { position: relative; z-index: 2; padding: 80px 0 160px; }
.hero-eyebrow { text-transform: uppercase; letter-spacing: 2px; color: var(--gold); font-weight: 700; font-size: 13px; margin-bottom: 16px; }
.hero h1 { font-size: 48px; color: var(--white); line-height: 1.2; max-width: 720px; }
.hero h1 em { font-style: italic; color: var(--gold); }
.hero p.lead { font-size: 17px; max-width: 560px; color: rgba(255,255,255,.85); }

/* Banner de topo das páginas internas (tamanho padrão via cover, não distorce) */
.page-banner {
    position: relative; min-height: 240px; display: flex; align-items: center;
    background-size: cover; background-position: center; color: var(--white);
}
.page-banner-lg { min-height: 360px; }
.page-banner::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(18,27,48,.82) 0%, rgba(18,27,48,.55) 55%, rgba(18,27,48,.25) 100%); }
.page-banner-inner { position: relative; z-index: 2; }
.page-banner h1 { color: var(--white); font-size: 34px; margin: 0; }
.page-banner-lg h1 { font-size: 40px; }

/* Search widget */
.search-widget {
    background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
    max-width: 900px; margin-top: 32px; overflow: hidden;
}
.search-tabs { display: flex; }
.search-tabs button {
    flex: 1; border: none; background: var(--white); padding: 16px; font-weight: 600; color: var(--text-muted);
    border-bottom: 3px solid var(--border);
}
.search-tabs button.active { color: var(--navy); border-color: var(--navy); }
.search-fields { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding: 24px 24px 0; }
.field label { display: block; font-size: 12px; color: var(--text-muted); margin-bottom: 6px; font-weight: 600; text-transform: uppercase; letter-spacing: .4px; }
.field select, .field input {
    width: 100%; padding: 11px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm);
    font-size: 14px; background: var(--white); color: var(--text);
}
.search-submit { padding: 24px; }

/* Sections */
.section { padding: 72px 0; }
.section-cream { background: var(--cream); }
.section-navy { background: var(--navy); color: var(--white); }
.section-navy h2 { color: var(--white); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-eyebrow { text-transform: uppercase; letter-spacing: 2px; color: var(--gold); font-weight: 700; font-size: 13px; margin-bottom: 12px; }
.section h2 { font-size: 34px; }
.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Property cards */
.property-card {
    background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm);
    transition: transform .2s ease, box-shadow .2s ease; display: flex; flex-direction: column;
}
.property-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.property-media { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.property-media img { width: 100%; height: 100%; object-fit: cover; }
.badges { position: absolute; top: 14px; left: 14px; display: flex; gap: 8px; }
.badge { padding: 5px 12px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: .4px; }
.badge-venda { background: var(--navy); color: var(--white); }
.badge-aluguel { background: var(--navy-light); color: var(--white); }
.badge-destaque { background: var(--gold); color: var(--navy); }
.badge-lancamento { background: var(--success); color: var(--white); }
.badge-novo { background: #2e7d32; color: var(--white); }
.fav-btn {
    position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border-radius: 50%;
    background: rgba(255,255,255,.9); border: none; display: flex; align-items: center; justify-content: center; font-size: 16px;
}
.fav-btn.active { color: var(--danger); }
.property-body { padding: 18px 20px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.property-price { font-family: var(--serif); font-size: 20px; color: var(--navy); }
.property-price small { font-family: var(--sans); font-size: 12px; color: var(--text-muted); font-weight: 400; }
.property-price-label { font-size: 11px; color: var(--text-muted); margin-bottom: 2px; }
.property-title { font-size: 16px; font-weight: 600; color: var(--text); }
.property-location { font-size: 13px; color: var(--text-muted); }
.property-specs { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 8px; margin-top: auto; }
.spec-box { background: var(--cream); border-radius: var(--radius-sm); padding: 8px 4px; text-align: center; }
.spec-icon { display: block; font-size: 14px; margin-bottom: 2px; opacity: .7; }
.spec-box strong { display: block; font-size: 14px; color: var(--text); }
.spec-box small { font-size: 10.5px; color: var(--text-muted); }
.property-footer { display: flex; align-items: flex-end; justify-content: space-between; padding-top: 12px; border-top: 1px solid var(--border); }
.property-link { font-size: 13px; font-weight: 600; color: var(--gold-dark); }
.property-link:hover { text-decoration: underline; }

/* Broker card */
.broker-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 24px; text-align: center; }
.broker-card img { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; margin: 0 auto 14px; }
.broker-card h3 { font-size: 18px; margin-bottom: 4px; }
.broker-card .creci { font-size: 12px; color: var(--text-muted); margin-bottom: 12px; }

/* Blog: layout com sidebar, mini-cards e newsletter */
.blog-layout { display: grid; grid-template-columns: 1fr 340px; gap: 32px; align-items: start; }
.blog-layout aside { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 20px; }
.post-mini { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--border); }
.post-mini:last-child { border-bottom: none; padding-bottom: 0; }
.post-mini:first-of-type { padding-top: 14px; }
.post-mini img { width: 56px; height: 56px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.post-mini-category { display: block; font-size: 11px; font-weight: 700; text-transform: uppercase; color: var(--gold-dark); margin-bottom: 2px; }
.post-mini-title { display: block; font-size: 13.5px; font-weight: 600; color: var(--text); line-height: 1.35; }
.newsletter-box { background: var(--navy); color: rgba(255,255,255,.85); border-radius: var(--radius); padding: 24px; }
.newsletter-box h3 { color: var(--white); font-size: 17px; margin-bottom: 8px; }
.newsletter-box p { font-size: 13.5px; margin-bottom: 16px; }
.newsletter-box input[type="email"] {
    width: 100%; padding: 11px 12px; border-radius: var(--radius-sm); border: 1px solid rgba(255,255,255,.25);
    background: rgba(255,255,255,.08); color: var(--white); margin-bottom: 10px; font-size: 14px;
}
.newsletter-box input[type="email"]::placeholder { color: rgba(255,255,255,.5); }
.newsletter-msg { font-size: 13px; margin-bottom: 10px; padding: 8px 10px; border-radius: 6px; }
.newsletter-msg-success { background: rgba(46,125,50,.25); color: #a5d6a7; }
.newsletter-msg-error { background: rgba(192,57,43,.25); color: #ef9a9a; }
.post-author { display: flex; align-items: center; gap: 12px; margin: 16px 0 28px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.post-author img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.post-author-name { font-weight: 700; font-size: 14px; color: var(--text); }
.post-author-meta { font-size: 13px; color: var(--text-muted); }

/* Sobre: linha do tempo */
.timeline { position: relative; max-width: 900px; margin: 0 auto; padding: 20px 0; }
.timeline-line { position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; background: var(--border); transform: translateX(-50%); }
.timeline-row { position: relative; display: flex; margin-bottom: 32px; }
.timeline-row.left { justify-content: flex-start; }
.timeline-row.right { justify-content: flex-end; }
.timeline-card { width: 44%; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 20px 24px; }
.timeline-row.left .timeline-card { text-align: right; margin-right: 6%; }
.timeline-row.right .timeline-card { text-align: left; margin-left: 6%; }
.timeline-year { display: block; font-family: var(--serif); font-size: 22px; color: var(--gold-dark); font-weight: 700; margin-bottom: 6px; }
.timeline-dot { position: absolute; left: 50%; top: 24px; width: 14px; height: 14px; border-radius: 50%; background: var(--gold); transform: translateX(-50%); box-shadow: 0 0 0 4px var(--cream); }

/* Sobre: liderança / corretores em destaque */
.leader-card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.leader-photo { position: relative; aspect-ratio: 1; }
.leader-photo img { width: 100%; height: 100%; object-fit: cover; }
.leader-badge { position: absolute; bottom: 12px; left: 12px; background: var(--gold); color: var(--navy); padding: 5px 12px; border-radius: 999px; font-size: 11px; font-weight: 700; }
.leader-body { padding: 16px 18px; }
.leader-name { font-size: 16px; font-weight: 700; color: var(--navy); }
.leader-creci { font-size: 12px; color: var(--text-muted); margin-bottom: 10px; }
.leader-stats { display: flex; gap: 14px; font-size: 13px; color: var(--text-muted); margin-bottom: 14px; }
.leader-actions { display: flex; gap: 8px; }
.star-rating { display: flex; align-items: center; justify-content: center; gap: 2px; color: var(--border); font-size: 16px; }
.star-rating .filled { color: var(--gold); }
.star-rating strong { margin-left: 6px; color: var(--text); font-size: 14px; }
.leader-actions .btn { flex: 1; padding: 9px 10px; font-size: 13px; }
.btn-whatsapp { background: #25d366; color: var(--white); }
.btn-whatsapp:hover { background: #1ebc59; }

/* Breadcrumbs */
.breadcrumb { padding: 18px 0; font-size: 13px; color: var(--text-muted); }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--navy); }
.breadcrumb .current { color: var(--navy); font-weight: 600; }

.detail-layout { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 32px; align-items: start; margin-top: 32px; }

/* Gallery: mosaico de fotos + visualização ampliada (lightbox) */
.gallery { position: relative; display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 220px 220px; gap: 12px; border-radius: var(--radius); overflow: hidden; }
.gallery__item { position: relative; display: block; padding: 0; border: 0; background: var(--border); cursor: zoom-in; overflow: hidden; }
.gallery__item:first-child { grid-row: span 2; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.gallery__item:hover img { transform: scale(1.03); }
.gallery__item.is-extra { display: none; }
.gallery__more { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(18, 27, 48, .55); color: var(--white); font: 700 22px var(--sans); }
.gallery--1 { grid-template-columns: 1fr; grid-template-rows: 452px; }
.gallery--1 .gallery__item:first-child { grid-row: auto; }
.gallery--2 { grid-template-columns: 2fr 1fr; grid-template-rows: 452px; }
.gallery--2 .gallery__item:first-child { grid-row: auto; }
.gallery--3 { grid-template-columns: 2fr 1fr; }
.gallery--4 .gallery__item:nth-child(4) { grid-column: span 2; }
.gallery .badges { top: 16px; left: 16px; z-index: 2; }
.gallery__count {
    position: absolute; right: 16px; bottom: 16px; z-index: 2; display: inline-flex; align-items: center; gap: 8px;
    height: 38px; padding: 0 16px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .94); color: var(--navy);
    font: 700 12px/1 var(--sans); letter-spacing: .02em; box-shadow: 0 6px 18px rgba(26, 39, 68, .22); cursor: pointer;
    transition: background-color .2s, color .2s, transform .2s;
}
.gallery__count:hover { background: var(--navy); color: var(--white); transform: translateY(-1px); }
.gallery__count svg { color: var(--gold); }

.lightbox { position: fixed; inset: 0; z-index: 1100; display: none; place-items: center; background: rgba(18, 27, 48, .94); }
.lightbox.is-open { display: grid; }
.lightbox img { max-width: 92vw; max-height: 86vh; border-radius: var(--radius-sm); }
.lightbox button { position: absolute; border: 0; background: none; color: var(--white); cursor: pointer; font-size: 40px; line-height: 1; padding: 16px; }
.lightbox__close { top: 12px; right: 12px; }
.lightbox__prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 12px; top: 50%; transform: translateY(-50%); }
.lightbox__count {
    position: absolute; top: 22px; left: 50%; transform: translateX(-50%); padding: 7px 14px; border-radius: 999px;
    background: rgba(255, 255, 255, .12); color: var(--white); font: 600 13px/1 var(--sans); letter-spacing: .03em;
}

/* Forms */
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.form-control {
    width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm);
    font-size: 14px; font-family: inherit; background: var(--white);
}
textarea.form-control { min-height: 120px; resize: vertical; }
.form-row { display: grid; gap: 16px; }
.form-row-2 { grid-template-columns: 1fr 1fr; }
.form-row-3 { grid-template-columns: 1fr 1fr 1fr; }

.step-indicator { display: flex; align-items: center; justify-content: center; gap: 10px; }
.step-dot {
    width: 32px; height: 32px; border-radius: 50%; background: var(--border); color: var(--text-muted);
    display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; flex-shrink: 0;
}
.step-dot.active { background: var(--navy); color: var(--white); }
.step-dot.done { background: var(--gold); color: var(--navy); }
.step-line { width: 60px; height: 2px; background: var(--border); }
.form-step { display: none; }
.form-step.active { display: block; }
.card-box { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 32px; }
.contact-map { width: 100%; height: 280px; border: 0; border-radius: var(--radius); margin-top: 20px; box-shadow: var(--shadow-sm); }
.auth-page { min-height: 70vh; display: flex; align-items: center; justify-content: center; padding: 60px 20px; }
.auth-box { max-width: 440px; width: 100%; }
.auth-box .card-box { }
.auth-links { text-align: center; margin-top: 18px; font-size: 14px; }

/* Login / Cadastro / Recuperar senha: layout split-screen */
.auth-split { display: flex; min-height: 100vh; }
.auth-split-image { flex: 1; background-size: cover; background-position: center; }
.auth-split-form { flex: 1; display: flex; align-items: center; justify-content: center; padding: 48px 24px; background: var(--cream); overflow-y: auto; }
.auth-split-inner { max-width: 420px; width: 100%; }
.auth-split-inner h1 { font-size: 30px; margin-bottom: 6px; }
.auth-split-inner .subtitle { font-size: 14px; color: var(--text-muted); margin-bottom: 28px; }
.auth-split-inner .subtitle a { color: var(--gold-dark); font-weight: 600; }
.remember-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; font-size: 13.5px; }
.remember-row label { display: flex; align-items: center; gap: 8px; font-weight: 400; color: var(--text-muted); }
@media (max-width: 900px) {
    .auth-split-image { display: none; }
}

/* Tables (admin) */
.table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius); overflow: hidden; }
.table th, .table td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--border); font-size: 14px; }
.table th { background: var(--cream); font-weight: 700; color: var(--navy); text-transform: uppercase; font-size: 11px; letter-spacing: .5px; }
.table tr:last-child td { border-bottom: none; }
.size-hint { font-size: 12px; color: var(--text-muted); margin-top: 4px; }

/* Abas usadas em telas admin (Configurações, Leads & Solicitações, ...) */
.settings-tabs { display: flex; gap: 8px; margin-bottom: 24px; flex-wrap: wrap; }
.settings-tab-btn {
    padding: 10px 18px; border-radius: 999px; border: 1px solid var(--border); background: var(--white);
    font-weight: 600; font-size: 13.5px; color: var(--text-muted); cursor: pointer;
}
.settings-tab-btn .tab-count { background: var(--border); color: var(--text); border-radius: 999px; padding: 1px 7px; font-size: 11px; margin-left: 6px; }
.settings-tab-btn.active { background: var(--navy); color: var(--white); border-color: var(--navy); }
.settings-tab-btn.active .tab-count { background: rgba(255,255,255,.2); color: var(--white); }
.settings-panel { display: none; }
.settings-panel.active { display: block; }

.status-pill { padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; background: var(--border); }
.status-disponivel, .status-publicado, .status-confirmada, .status-aceita, .status-concluido, .status-contatado { background: #e6f4ea; color: var(--success); }
.status-pendente, .status-rascunho, .status-aberta, .status-novo, .status-em_contato, .status-em_andamento, .status-em_analise { background: #fff4de; color: #b8860b; }
.status-vendido, .status-alugado, .status-cancelada, .status-recusada, .status-descartado { background: #fdecea; color: var(--danger); }

/* Admin / Client layout */
.dash-layout { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; }
.dash-sidebar { background: var(--navy); color: var(--white); padding: 28px 20px; }
.dash-sidebar .brand { color: var(--white); margin-bottom: 32px; }
.dash-sidebar .brand-text strong { color: var(--white); }
.dash-nav a { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: var(--radius-sm); color: rgba(255,255,255,.75); font-size: 14px; margin-bottom: 4px; }
.dash-nav a:hover, .dash-nav a.active { background: rgba(255,255,255,.1); color: var(--white); }
.dash-nav .section-label { text-transform: uppercase; font-size: 11px; letter-spacing: 1px; color: rgba(255,255,255,.4); margin: 20px 0 8px; padding: 0 14px; }
.dash-main { padding: 32px 40px; }
.dash-topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; }
.dash-topbar h1 { font-size: 26px; margin: 0; }
.stat-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 32px; }
.stat-card { background: var(--white); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); }
.stat-card .value { font-family: var(--serif); font-size: 30px; color: var(--navy); }
.stat-card .label { font-size: 13px; color: var(--text-muted); }
.admin-avatar {
    width: 38px; height: 38px; border-radius: 50%; background: var(--navy); color: var(--gold);
    display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; font-family: var(--serif);
}
.stat-card-gold { background: var(--gold); }
.stat-card-gold .value, .stat-card-gold .label { color: var(--navy); }
.stat-card-navy { background: var(--navy); }
.stat-card-navy .value, .stat-card-navy .label { color: var(--white); }
.stat-card-green { background: #e6f4ea; }
.stat-card-green .value { color: var(--success); }
.stat-card-green .label { color: #2e7d32; }
.bar-chart { display: flex; align-items: flex-end; gap: 18px; height: 220px; padding-top: 20px; }
.bar-chart-col { flex: 1; display: flex; flex-direction: column; align-items: center; height: 100%; }
.bar-chart-value { font-size: 13px; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.bar-chart-bar { width: 100%; max-width: 56px; background: var(--navy); border-radius: 6px 6px 0 0; margin-top: auto; transition: height .3s ease; }
.bar-chart-label { font-size: 12px; color: var(--text-muted); margin-top: 8px; text-transform: capitalize; }

/* Área do cliente: mantém o header público + sidebar de conta abaixo */
.account-layout { display: grid; grid-template-columns: 260px 1fr; gap: 28px; padding: 32px 0 64px; align-items: start; }
.account-sidebar { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 24px 20px; position: sticky; top: 90px; }
.account-avatar {
    width: 52px; height: 52px; border-radius: 50%; background: var(--navy); color: var(--gold);
    display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 17px; font-family: var(--serif);
}
.account-user { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.account-user-name { font-weight: 700; font-size: 14.5px; color: var(--text); }
.account-user-email { font-size: 12.5px; color: var(--text-muted); }
.account-nav a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--radius-sm); color: var(--text-muted); font-size: 14px; margin-bottom: 2px; }
.account-nav a:hover { background: var(--cream); color: var(--text); }
.account-nav a.active { background: var(--navy); color: var(--white); }
.account-nav a.account-logout { color: var(--danger); margin-top: 12px; }
.account-nav a.account-logout:hover { background: #fdecea; }
.account-title { font-size: 26px; margin-bottom: 24px; }
.activity-feed .activity-item { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.activity-feed .activity-item:last-child { border-bottom: none; }
.activity-icon { width: 36px; height: 36px; border-radius: 50%; background: var(--cream); display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 15px; }
.activity-text { font-size: 14.5px; color: var(--text); }
.activity-time { font-size: 12.5px; color: var(--text-muted); margin-top: 2px; }

/* Pagination */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 40px; }
.pagination a, .pagination span { padding: 8px 14px; border-radius: var(--radius-sm); border: 1px solid var(--border); font-size: 14px; }
.pagination a:hover { border-color: var(--navy); }
.pagination .current { background: var(--navy); color: var(--white); border-color: var(--navy); }

/* Filters sidebar (listagem) */
.listing-layout { display: grid; grid-template-columns: 280px 1fr; gap: 32px; align-items: start; }
.listing-layout > div { min-width: 0; }
.filters-box { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 22px; position: sticky; top: 90px; z-index: 5; max-height: calc(100vh - 110px); overflow-y: auto; }
.filters-box h3 { font-size: 15px; margin-bottom: 0; }
.btn-group-filter { display: flex; gap: 6px; flex-wrap: wrap; }
.btn-group-filter input { position: absolute; opacity: 0; width: 0; height: 0; }
.btn-group-filter label { padding: 7px 13px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 13px; cursor: pointer; color: var(--text); }
.btn-group-filter input:checked + label { background: var(--navy); border-color: var(--navy); color: var(--white); }
.listing-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; flex-wrap: wrap; gap: 12px; }
.listing-count { font-size: 15px; color: var(--text-muted); margin: 0; }
.listing-sort { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.listing-sort select { padding: 9px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--white); font-size: 14px; }

.service-checklist { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); }
.service-checklist li { font-size: 13.5px; color: var(--text-muted); margin-bottom: 8px; }
.cta-box { background: var(--navy); border-radius: var(--radius); padding: 56px; text-align: center; }
.cta-box p { color: rgba(255,255,255,.8); max-width: 480px; margin: 0 auto 24px; }

.sim-result { margin-top: 24px; padding: 24px; background: var(--cream); border-radius: var(--radius); text-align: center; }
.sim-result-value { font-family: var(--serif); font-size: 34px; color: var(--navy); font-weight: 700; }
.sim-result-value small { font-size: 15px; font-weight: 500; color: var(--text-muted); margin-left: 6px; }
.sim-result-details { display: flex; justify-content: center; gap: 32px; margin-top: 16px; flex-wrap: wrap; }
.sim-result-details div { display: flex; flex-direction: column; gap: 2px; }
.sim-result-details span { font-size: 12px; color: var(--text-muted); }
.sim-result-details strong { font-size: 15px; color: var(--navy); }

/* Empty state */
.empty-state { text-align: center; padding: 60px 20px; color: var(--text-muted); }

/* Editable content styles */
body.is-admin .ec { outline: 1px dashed transparent; border-radius: 4px; transition: outline-color .15s; cursor: text; }
body.is-admin.edit-mode .ec { outline-color: rgba(201,161,94,.6); background: rgba(201,161,94,.06); }
body.is-admin.edit-mode .ec:focus { outline: 2px solid var(--gold); background: rgba(201,161,94,.12); }
.edit-mode-toggle {
    position: fixed; bottom: 24px; left: 24px; z-index: 999; background: var(--navy); color: var(--white);
    border: none; padding: 14px 20px; border-radius: 999px; font-weight: 600; font-size: 14px;
    box-shadow: 0 8px 24px rgba(0,0,0,.25); display: flex; align-items: center; gap: 10px;
}
.edit-mode-toggle .dot { width: 9px; height: 9px; border-radius: 50%; background: #888; }
body.edit-mode .edit-mode-toggle .dot { background: #4caf50; }
body.edit-mode .edit-mode-toggle { background: var(--gold-dark); }
.ec-saving { opacity: .6; }

/* Widget de chat / atendimento online (WhatsApp) */
.chat-widget { position: fixed; bottom: 24px; right: 24px; z-index: 998; display: flex; flex-direction: column; align-items: flex-end; gap: 14px; }
.chat-widget-toggle {
    width: 60px; height: 60px; border-radius: 50%; background: #25d366; color: var(--white); border: none;
    box-shadow: 0 8px 24px rgba(0,0,0,.25); display: flex; align-items: center; justify-content: center; cursor: pointer;
    animation: chat-pulse 2.4s infinite;
}
.chat-widget-toggle:hover { background: #1ebc59; }
@keyframes chat-pulse {
    0% { box-shadow: 0 8px 24px rgba(0,0,0,.25), 0 0 0 0 rgba(37,211,102,.5); }
    70% { box-shadow: 0 8px 24px rgba(0,0,0,.25), 0 0 0 14px rgba(37,211,102,0); }
    100% { box-shadow: 0 8px 24px rgba(0,0,0,.25), 0 0 0 0 rgba(37,211,102,0); }
}
.chat-widget-box {
    display: none; width: 320px; max-width: calc(100vw - 48px); background: var(--white); border-radius: var(--radius);
    box-shadow: 0 16px 48px rgba(0,0,0,.22); overflow: hidden;
}
.chat-widget.open .chat-widget-box { display: block; }
.chat-widget.open .chat-widget-toggle { display: none; }
.chat-widget-header { background: #25d366; color: var(--white); padding: 16px 18px; display: flex; align-items: center; gap: 12px; }
.chat-widget-avatar { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.2); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.chat-widget-header strong { font-size: 14.5px; display: block; }
.chat-widget-status { font-size: 12px; opacity: .9; display: flex; align-items: center; gap: 5px; }
.chat-widget-dot { width: 7px; height: 7px; border-radius: 50%; background: #b6ffcf; display: inline-block; }
.chat-widget-close { margin-left: auto; background: none; border: none; color: var(--white); font-size: 22px; cursor: pointer; line-height: 1; opacity: .85; }
.chat-widget-close:hover { opacity: 1; }
.chat-widget-body { padding: 16px; background: #ece5dd; }
.chat-widget-bubble { background: var(--white); border-radius: 10px; padding: 10px 14px; font-size: 13.5px; color: var(--text); margin-bottom: 12px; box-shadow: var(--shadow-sm); }
.chat-widget-input { width: 100%; border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; font-family: inherit; font-size: 14px; resize: none; margin-bottom: 10px; }
.chat-widget-send { background: #25d366; color: var(--white); border: none; }
.chat-widget-send:hover { background: #1ebc59; }
@media (max-width: 600px) {
    .chat-widget { right: 16px; bottom: 16px; }
    .edit-mode-toggle { left: 16px; bottom: 16px; padding: 12px 16px; font-size: 13px; }
}

/* Footer */
.site-footer { background: var(--navy); color: rgba(255,255,255,.8); margin-top: 80px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; padding: 60px 24px 40px; }
.footer-name { font-family: var(--serif); font-size: 20px; color: var(--white); margin: 0 0 12px; }
.footer-text { font-size: 14px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a { width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.8); transition: all .15s ease; }
.footer-social a:hover { border-color: var(--gold); color: var(--gold); background: rgba(201,161,94,.1); }
.footer-social svg { display: block; }
.footer-col h4 { color: var(--white); font-size: 15px; margin-bottom: 16px; }
.footer-col a, .footer-col p { display: block; font-size: 14px; margin-bottom: 10px; color: rgba(255,255,255,.7); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 18px 0; text-align: center; font-size: 13px; }

/* Modais de cadastro/edição */
.modal-overlay {
    display: none; position: fixed; inset: 0; background: rgba(18,27,48,.55);
    z-index: 1000; align-items: flex-start; justify-content: center; padding: 40px 20px; overflow-y: auto;
}
.modal-overlay.active { display: flex; }
.modal-box { background: var(--white); border-radius: var(--radius); width: 100%; max-width: 760px; max-height: calc(100vh - 80px); display: flex; flex-direction: column; box-shadow: 0 20px 60px rgba(0,0,0,.35); }
.modal-header { display: flex; justify-content: space-between; align-items: center; padding: 20px 26px; border-bottom: 1px solid var(--border); flex-shrink: 0; }
.modal-header h3 { margin: 0; font-size: 18px; }
.modal-close { background: none; border: none; font-size: 22px; line-height: 1; color: var(--text-muted); cursor: pointer; padding: 4px 10px; border-radius: 6px; }
.modal-close:hover { background: var(--cream); color: var(--text); }
.modal-body { padding: 26px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--border) transparent; }
.modal-body::-webkit-scrollbar { width: 10px; }
.modal-body::-webkit-scrollbar-track { background: transparent; }
.modal-body::-webkit-scrollbar-thumb { background: var(--border); border-radius: 999px; border: 2px solid transparent; background-clip: content-box; }
.modal-body::-webkit-scrollbar-thumb:hover { background: var(--gold); background-clip: content-box; }
body.modal-open { overflow: hidden; }

/* Utilities */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.mt-2 { margin-top: 16px; } .mb-2 { margin-bottom: 16px; }
.mt-4 { margin-top: 32px; } .mb-4 { margin-bottom: 32px; }
.flex { display: flex; } .items-center { align-items: center; } .justify-between { justify-content: space-between; }
.gap-2 { gap: 12px; }
.w-full { width: 100%; }

/* Responsive */
@media (max-width: 960px) {
    .header-inner { padding: 10px 16px; gap: 12px; }
    .brand { flex-shrink: 0; }
    .site-logo { max-height: 38px; }
    .header-actions { gap: 10px; margin-left: auto; }
    .header-actions .btn { white-space: nowrap; padding: 8px 12px; font-size: 13px; }
    .nav-toggle { display: block; padding: 4px 6px; line-height: 1; flex-shrink: 0; }
    .main-nav {
        display: none; position: absolute; top: 100%; left: 0; right: 0;
        flex-direction: column; align-items: stretch; flex-wrap: nowrap; gap: 2px;
        background: var(--white); padding: 8px 16px 16px; border-top: 1px solid var(--border);
        box-shadow: 0 14px 24px rgba(26, 39, 68, 0.14);
        max-height: calc(100vh - 64px); overflow-y: auto;
    }
    .main-nav.open { display: flex; }
    .main-nav > a, .nav-dropdown-toggle { padding: 12px 14px; border-radius: 8px; font-size: 15px; }
    .nav-dropdown { width: 100%; }
    .nav-dropdown-toggle { justify-content: space-between; }
    .nav-dropdown-menu {
        display: none; position: static; margin: 2px 0 6px; padding: 0 0 0 14px; min-width: 0;
        opacity: 1; visibility: visible; transform: none; box-shadow: none; background: transparent;
    }
    .nav-dropdown-menu a { padding: 11px 12px; }
    .nav-dropdown.open .nav-dropdown-menu { display: block; }
    .nav-dropdown:hover .nav-caret { transform: none; }
    .nav-dropdown.open .nav-caret { transform: rotate(180deg); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .listing-layout { grid-template-columns: 1fr; }
    .detail-layout { grid-template-columns: minmax(0, 1fr); }
    .filters-box { position: static; max-height: none; overflow: visible; }
    .blog-layout { grid-template-columns: 1fr; }
    .blog-layout aside { position: static; }
    .timeline-line { left: 8px; }
    .timeline-row.left, .timeline-row.right { justify-content: flex-start; }
    .timeline-card, .timeline-row.left .timeline-card, .timeline-row.right .timeline-card { width: calc(100% - 40px); margin-left: 32px; margin-right: 0; text-align: left; }
    .timeline-dot { left: 8px; }
    .dash-layout { grid-template-columns: 1fr; }
    .dash-sidebar { display: none; }
    .account-layout { grid-template-columns: 1fr; }
    .account-sidebar { position: static; }
    .search-fields { grid-template-columns: repeat(2, 1fr); }
    .stat-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
    .gallery { grid-template-columns: 1fr 1fr; grid-template-rows: 240px 120px; gap: 8px; }
    .gallery__item:first-child { grid-column: span 2; grid-row: auto; }
    .gallery__item:nth-child(n+4) { display: none; }
    .gallery--1, .gallery--2 { grid-template-columns: 1fr; grid-template-rows: 260px; }
    .gallery--1 .gallery__item:first-child, .gallery--2 .gallery__item:first-child { grid-column: auto; }
    .gallery--4 .gallery__item:nth-child(4) { grid-column: auto; }
    .gallery__count { right: 10px; bottom: 10px; height: 34px; padding: 0 12px; font-size: 11px; }
    .lightbox button { font-size: 34px; padding: 12px; }
}
@media (max-width: 600px) {
    .header-inner { gap: 8px; }
    .header-actions { gap: 8px; }
    .site-logo { max-height: 34px; }
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .hero h1 { font-size: 32px; }
    .search-fields { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .form-row-2, .form-row-3 { grid-template-columns: 1fr; }
    .stat-cards { grid-template-columns: 1fr; }
}
@media (max-width: 400px) {
    .header-whatsapp { display: none; }
}
@media (max-width: 360px) {
    .site-logo { max-height: 30px; }
    .header-actions .btn { padding: 8px 10px; font-size: 12px; }
}
