/* Garante que o conteúdo do admin ocupe toda a largura disponível ao lado do menu */
.admin-content {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}
@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@500;600;700&display=swap');

:root {
    --bg: #f4f6fb;
    --surface: #ffffff;
    --ink: #16233a;
    --muted: #6b768a;
    --brand: #0f766e;
    --brand-2: #0ea5e9;
    --accent: #3B4F96;
    --danger: #dc2626;
    --shadow: 0 10px 30px rgba(13, 31, 67, 0.08);
    --radius: 16px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; font-family: "Segoe UI", Tahoma, sans-serif; background: radial-gradient(circle at 20% -10%, #d9f9f4, transparent 40%), var(--bg); color: var(--ink); scrollbar-color: #f5b800 #e8eaf0; scrollbar-width: thin; }
body.no-scroll { overflow: hidden; }
/* Barra de rolagem – cor da logo Fraga */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: #e8eaf0; }
::-webkit-scrollbar-thumb { background: #f5b800; border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: #d4a000; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
.container { width: min(1180px, 92%); margin: 0 auto; }
.section { padding: 2rem 0; }

.buscar-page__title {
    margin: 0 0 0.5rem;
    text-align: center;
    font-size: clamp(1.35rem, 2.5vw, 1.85rem);
    font-weight: 700;
    color: #1e293b;
}
.buscar-page__lead {
    margin: 0 auto 1.5rem;
    max-width: 36rem;
    text-align: center;
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.45;
}
.buscar-page .imoveis-filters-inner {
    position: static;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

.home-section-heading {
    margin: 0 0 1.25rem;
    text-align: center;
    font-weight: 400;
    font-size: clamp(1.35rem, 3vw, 1.65rem);
    color: #1e293b;
}

.home-carousel-section {
    padding-bottom: 1.5rem;
}
.home-carousel {
    position: relative;
    margin: 0 -0.25rem;
}
.home-carousel__track {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 0.35rem 2.65rem 0.85rem;
    margin: 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-color: #cbd5e1 #f1f5f9;
}
.home-carousel__track:focus-visible {
    outline: 2px solid #3B4F96;
    outline-offset: 2px;
}
/* Celular e tablet: 1 card por vez */
.home-carousel__slide {
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
    scroll-snap-align: start;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-self: stretch;
}
/* Igualar altura da linha: o bloco azul (.property-base) estica e some a "barra branca" sob o texto */
.home-carousel__slide .property-card {
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
}
.home-carousel__slide .property-card-modern .property-media {
    flex-shrink: 0;
}
.home-carousel__slide .property-card-modern .property-base {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
}
/* Desktop largo: 4 cards visíveis (gap 1rem × 3 entre os 4) */
@media (min-width: 1200px) {
    .home-carousel__slide {
        flex: 0 0 calc((100% - 3rem) / 4);
        width: auto;
        max-width: none;
    }
}
.home-carousel__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 999px;
    border: 1px solid #cbd5e1;
    background: #fff;
    color: #334155;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.08);
    transition: background 0.15s ease, color 0.15s ease;
}
.home-carousel__nav:hover {
    background: #3B4F96;
    color: #fff;
    border-color: #3B4F96;
}
.home-carousel__nav--prev {
    left: 0;
}
.home-carousel__nav--next {
    right: 0;
}
.home-carousel__more {
    margin: 0.85rem 0 0;
    text-align: center;
}
.home-carousel__more-link {
    display: inline-block;
    font-size: 0.92rem;
    font-weight: 600;
    color: #3B4F96;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.home-carousel__more-link:hover {
    color: #2e3f7a;
}
@media (max-width: 640px) {
    .home-carousel__nav {
        width: 2rem;
        height: 2rem;
        font-size: 1.2rem;
    }
    .home-carousel__track {
        padding-left: 2.25rem;
        padding-right: 2.25rem;
    }
}

.btn { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; border: 0; padding: 0.75rem 1rem; border-radius: 12px; cursor: pointer; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; }
.btn:hover { filter: brightness(1.05); }
.btn-secondary { background: #1e293b; }
.btn-ghost { background: #e2e8f0; color: #334155; }
.btn-danger { background: var(--danger); }
.btn-sm { padding: 0.5rem 0.75rem; font-size: 0.85rem; }

.card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1rem; margin-bottom: 1rem; animation: rise 0.45s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.login-body { min-height: 100vh; display: grid; place-items: center; }
.login-card { width: min(440px, 92%); padding: 2rem; border-radius: 20px; background: #fff; box-shadow: var(--shadow); }
.login-card h1 { margin-top: 0; }
label { display: block; font-size: 0.9rem; color: var(--muted); margin-bottom: 0.75rem; }
input, select, textarea, button { font: inherit; }
input, select, textarea { width: 100%; padding: 0.7rem 0.8rem; border: 1px solid #d7deea; border-radius: 10px; margin-top: 0.35rem; }
.hint { color: var(--muted); font-size: 0.8rem; }
.alert.error { background: #fee2e2; color: #991b1b; padding: 0.7rem; border-radius: 10px; margin-bottom: 1rem; }
.alert.success { background: #dcfce7; color: #166534; padding: 0.7rem; border-radius: 10px; margin-bottom: 1rem; }
.site-toast {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 1200;
    min-width: min(320px, calc(100vw - 2rem));
    max-width: 420px;
    padding: 0.9rem 1rem;
    border-radius: 14px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
    color: #fff;
    font-weight: 700;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.22s ease, transform 0.22s ease;
}
.site-toast.is-visible { opacity: 1; transform: translateY(0); }
.site-toast.success { background: linear-gradient(135deg, #16a34a, #15803d); }
.site-toast.error { background: linear-gradient(135deg, #dc2626, #b91c1c); }

@media (max-width: 680px) {
    .site-toast {
        left: 1rem;
        right: 1rem;
        min-width: auto;
    }
}

.admin-body { background: radial-gradient(circle at top right, rgba(14, 165, 233, 0.18), transparent 28%), linear-gradient(180deg, #eef4ff 0%, #f7f9fc 100%); }
/* minmax(0,1fr) evita que a coluna principal estoure a largura no grid (tabelas, kanban, etc.) */
.admin-shell { min-height: 100vh; display: grid; grid-template-columns: 264px minmax(0, 1fr); }
.admin-sidebar {
    background: linear-gradient(165deg, #0c1222 0%, #0f172a 38%, #1a2332 100%);
    color: #cbd5e1;
    padding: 0.75rem 0.6rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    box-shadow: 12px 0 36px rgba(15, 23, 42, 0.22);
    min-height: 100vh;
    border-right: 1px solid rgba(148, 163, 184, 0.1);
}
.admin-sidebar__brand {
    position: relative;
    text-align: center;
    padding: 0.4rem 0.35rem 0.65rem;
    margin-bottom: 0;
    border-bottom: 1px solid rgba(100, 116, 139, 0.22);
    flex-shrink: 0;
}
.admin-sidebar__close {
    display: none;
    position: absolute;
    top: 0.35rem;
    right: 0.35rem;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
    cursor: pointer;
}
.admin-sidebar__close:hover {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
}
.admin-sidebar__close .bi {
    font-size: 1.15rem;
    line-height: 1;
}
.admin-sidebar__logo {
    height: 52px;
    width: auto;
    max-width: 100%;
    display: inline-block;
    vertical-align: middle;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.35));
    object-fit: contain;
}
.admin-sidebar__nav {
    display: flex;
    flex-direction: column;
    gap: 0;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0.2rem 0.1rem 0;
    scrollbar-width: thin;
    scrollbar-color: rgba(148, 163, 184, 0.35) transparent;
}
.admin-sidebar__group {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    position: relative;
    padding-bottom: 0.15rem;
}
.admin-sidebar__group + .admin-sidebar__group {
    margin-top: 0.5rem;
    padding-top: 0.55rem;
    border-top: 1px solid rgba(71, 85, 105, 0.45);
}
.admin-sidebar__label {
    display: block;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #94a3b8;
    margin: 0 0 0.35rem 0.4rem;
    line-height: 1.3;
    flex-shrink: 0;
}
.admin-sidebar__nav a {
    display: block;
    padding: 0.45rem 0.55rem 0.45rem 0.6rem;
    border-radius: 9px;
    font-size: 0.8125rem;
    line-height: 1.25;
    font-weight: 500;
    color: #cbd5e1;
    text-decoration: none;
    border-left: 3px solid transparent;
    position: relative;
    z-index: 0;
    transition:
        background 0.15s ease,
        color 0.15s ease,
        border-color 0.15s ease;
}
.admin-sidebar__nav a:hover {
    background: rgba(255, 255, 255, 0.07);
    color: #f1f5f9;
}
.admin-sidebar__nav a.active {
    background: linear-gradient(90deg, rgba(56, 189, 248, 0.28), rgba(14, 165, 233, 0.12));
    border-left-color: #38bdf8;
    color: #fff;
    font-weight: 600;
    box-shadow: none;
}
.admin-sidebar__nav a.admin-sidebar__link--external {
    color: #94a3b8;
    font-size: 0.78rem;
}
.admin-sidebar__nav a.admin-sidebar__link--external:hover {
    color: #e2e8f0;
}
.admin-sidebar__nav a.admin-sidebar__link--external::after {
    content: ' \2197';
    font-size: 0.72em;
    opacity: 0.75;
}
.admin-sidebar__nav a:focus-visible {
    outline: 2px solid rgba(56, 189, 248, 0.55);
    outline-offset: 1px;
}
.brand { font-size: 1.4rem; font-weight: 800; color: #fff; }
.brand span { color: #38bdf8; }
/* Topo do conteúdo: usuário + frase + Sair (faixa azul) */
.admin-top-strip {
    display: grid;
    grid-template-columns: minmax(0, auto) minmax(12rem, 1fr) auto;
    align-items: center;
    gap: 0.75rem 1.25rem;
    margin: -1.4rem -1.6rem 1.35rem;
    padding: 0.95rem 1.6rem;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5a 52%, #1e293b 100%);
    color: #e2e8f0;
    box-shadow: 0 4px 22px rgba(15, 23, 42, 0.2);
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}
.admin-top-strip__lead {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}
.admin-menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: #f8fafc;
    cursor: pointer;
    flex-shrink: 0;
}
.admin-menu-toggle:hover {
    background: rgba(255, 255, 255, 0.18);
}
.admin-menu-toggle .bi {
    font-size: 1.5rem;
    line-height: 1;
}
.admin-sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    z-index: 1040;
}
.admin-sidebar-backdrop.is-open {
    display: block;
}
.admin-top-strip__user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
    min-width: 0;
}
.admin-top-strip__avatar {
    width: 56px;
    height: 56px;
    border-radius: 999px;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid rgba(56, 189, 248, 0.5);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}
.admin-top-strip__avatar--placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 999px;
    flex-shrink: 0;
    border: 2px solid rgba(56, 189, 248, 0.5);
    background: linear-gradient(135deg, #38bdf8, #0ea5e9);
    color: #0f172a;
    font-weight: 700;
    font-size: 1.2rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}
.admin-top-strip__meta {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
}
.admin-top-strip__name {
    font-weight: 700;
    color: #f8fafc;
    font-size: 0.98rem;
    line-height: 1.25;
    max-width: min(280px, 36vw);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.admin-top-strip__role {
    font-size: 0.68rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}
.admin-top-strip__quote {
    margin: 0;
    min-width: 0;
    font-size: 0.88rem;
    line-height: 1.45;
    font-style: italic;
    color: #cbd5e1;
    padding: 0.15rem 0 0.15rem 0.9rem;
    border-left: 3px solid rgba(56, 189, 248, 0.55);
}
.admin-top-strip__logout {
    margin: 0;
    flex-shrink: 0;
    justify-self: end;
}
.admin-top-strip__btn-sair {
    border: 1px solid rgba(248, 250, 252, 0.45);
    color: #f8fafc;
    background: rgba(15, 23, 42, 0.5);
    font-weight: 600;
    padding: 0.45rem 1rem;
    border-radius: 10px;
    white-space: nowrap;
}
.admin-top-strip__btn-sair:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(248, 250, 252, 0.7);
    color: #fff;
}
@media (max-width: 960px) {
    .admin-top-strip {
        grid-template-columns: 1fr;
        gap: 0.85rem;
    }
    .admin-top-strip__logout {
        justify-self: stretch;
    }
    .admin-top-strip__btn-sair {
        width: 100%;
    }
    .admin-top-strip__quote {
        border-left: none;
        border-top: 1px solid rgba(148, 163, 184, 0.22);
        padding: 0.65rem 0 0;
    }
}
@media (max-width: 520px) {
    .admin-top-strip__avatar,
    .admin-top-strip__avatar--placeholder {
        width: 44px;
        height: 44px;
        font-size: 1rem;
    }
    .admin-top-strip__lead {
        flex-wrap: wrap;
        row-gap: 0.45rem;
    }
    .admin-top-strip__name {
        max-width: 100%;
    }
}
.admin-main { padding: 1.4rem 1.6rem 2rem; min-width: 0; box-sizing: border-box; }
@media (max-width: 1199px) {
    .admin-shell {
        grid-template-columns: 1fr;
    }
    .admin-sidebar {
        position: fixed;
        left: 0;
        top: 0;
        bottom: 0;
        width: min(264px, 92vw);
        z-index: 1050;
        transform: translateX(-102%);
        transition: transform 0.28s ease;
        min-height: 100vh;
        min-height: 100dvh;
        height: 100%;
        padding-top: max(0.75rem, env(safe-area-inset-top, 0px));
        padding-bottom: max(0.75rem, env(safe-area-inset-bottom, 0px));
        border-right: 1px solid rgba(148, 163, 184, 0.15);
    }
    .admin-sidebar.open {
        transform: translateX(0);
    }
    .admin-menu-toggle {
        display: inline-flex;
    }
    .admin-sidebar__close {
        display: inline-flex;
    }
    .admin-sidebar__brand {
        padding-right: 2.5rem;
    }
    .admin-main {
        padding: 1rem max(1rem, env(safe-area-inset-left, 0px)) 1.5rem max(1rem, env(safe-area-inset-right, 0px));
    }
    .admin-top-strip {
        margin: -1rem -1rem 1rem;
        padding: 0.85rem 1rem;
        padding-left: max(1rem, env(safe-area-inset-left, 0px));
        padding-right: max(1rem, env(safe-area-inset-right, 0px));
    }
}
body.admin-sidebar-open {
    overflow: hidden;
}

/* Admin: tablet e celular (≤1199px). Desktop ≥1200px mantém layout anterior. */
@media (max-width: 1199px) {
    body.admin-body .admin-main .admin-imoveis-actions {
        display: grid;
        grid-template-columns: 1fr;
        gap: 0.65rem;
        margin-bottom: 0.75rem;
    }
    body.admin-body .admin-main .admin-imoveis-actions .btn {
        width: 100%;
        min-height: 44px;
        box-sizing: border-box;
    }
    body.admin-body .admin-main section.admin-imoveis-filters {
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }
    body.admin-body .admin-main .admin-imoveis-filters__intro {
        margin: 0 0 1rem !important;
    }
    body.admin-body .admin-main .admin-imoveis-quick-links {
        display: flex;
        flex-direction: column;
        gap: 0.55rem;
        align-items: stretch;
        margin-bottom: 1rem;
    }
    body.admin-body .admin-main .admin-imoveis-quick-links .btn {
        width: 100%;
        justify-content: center;
        min-height: 44px;
        box-sizing: border-box;
    }
    /* Filtros em coluna (flex evita bug de grid em alguns mobiles) */
    body.admin-body .admin-main .admin-imoveis-filters form.filters,
    body.admin-body .admin-main section.card.admin-imoveis-filters form.filters {
        display: flex !important;
        flex-direction: column !important;
        grid-template-columns: unset !important;
        gap: 0.65rem !important;
        width: 100% !important;
        max-width: 100% !important;
        align-items: stretch !important;
        min-width: 0 !important;
    }
    body.admin-body .admin-main .filters,
    body.admin-body .admin-main form.filters {
        grid-template-columns: 1fr !important;
        gap: 0.65rem !important;
        align-items: stretch !important;
    }
    body.admin-body .admin-main .filters input,
    body.admin-body .admin-main .filters select {
        width: 100%;
        min-height: 44px;
        box-sizing: border-box;
        font-size: 16px;
    }
    body.admin-body .admin-main .filters .btn,
    body.admin-body .admin-main .filters a.btn {
        width: 100%;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        box-sizing: border-box;
    }
    body.admin-body .admin-main .grid-form {
        grid-template-columns: 1fr;
    }
    body.admin-body .admin-main .property-form.grid-form {
        grid-template-columns: 1fr;
    }
    body.admin-body .admin-main input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
    body.admin-body .admin-main select,
    body.admin-body .admin-main textarea {
        min-height: 44px;
        font-size: 16px;
        box-sizing: border-box;
    }
    body.admin-body .admin-main textarea {
        min-height: 6.5rem;
    }
    body.admin-body .admin-main .pagination {
        gap: 0.5rem;
        justify-content: center;
    }
    body.admin-body .admin-main .pagination a {
        min-width: 44px;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0.45rem 0.7rem;
        box-sizing: border-box;
    }
    body.admin-body .admin-main .table-card .actions {
        gap: 0.45rem;
    }
    body.admin-body .admin-main .table-card .actions .btn,
    body.admin-body .admin-main .table-card .actions button {
        min-height: 44px;
    }
    body.admin-body .admin-main .btn-sm {
        min-height: 44px;
        padding-left: 0.85rem;
        padding-right: 0.85rem;
    }
    body.admin-body .admin-main .property-form > .full:has(> button[type="submit"]) {
        display: flex;
        flex-direction: column;
        gap: 0.65rem;
    }
    body.admin-body .admin-main .property-form > .full:has(> button[type="submit"]) .btn {
        width: 100%;
        min-height: 48px;
        justify-content: center;
    }

    /* Tabelas largas: rolagem horizontal só no card, não em toda a página */
    body.admin-body .admin-main .table-card {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        max-width: 100%;
    }
    body.admin-body .admin-main .table-card > table {
        min-width: 640px;
    }
    body.admin-body .admin-main .admin-table-scroll {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        max-width: 100%;
    }

}

@media (min-width: 1200px) {
    body.admin-body .admin-main .admin-imoveis-actions {
        display: flex;
        align-items: center;
        gap: 0.6rem;
        margin-bottom: 0.8rem;
    }
    body.admin-body .admin-main .filters--pdf-report {
        margin-top: 0.9rem;
        grid-template-columns: 1fr 1fr auto !important;
        align-items: end;
    }
}

.admin-topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.2rem; gap: 1rem; }
.admin-topbar h1 { margin: 0; font-size: clamp(1.7rem, 3vw, 2.4rem); }
.user-chip { background: rgba(255, 255, 255, 0.88); border-radius: 999px; padding: 0.55rem 0.95rem; box-shadow: var(--shadow); backdrop-filter: blur(8px); }

.cards-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.stat strong { font-size: 2rem; color: var(--brand); }
.chart-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.activity-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.8rem; }
.activity-list li { border: 1px solid #ebeff6; border-radius: 12px; padding: 0.8rem; }
.dashboard-hero { display: flex; justify-content: space-between; align-items: flex-start; gap: 1.5rem; padding: 1.5rem; background: linear-gradient(135deg, #102a56, #1e3a8a 58%, #0f766e 100%); color: #fff; overflow: hidden; position: relative; }
.dashboard-hero-welcome { display: flex; align-items: center; gap: 1.1rem; position: relative; z-index: 1; min-width: 0; }
.dashboard-hero-welcome-text { min-width: 0; }
.dashboard-hero-avatar {
    width: 72px;
    height: 72px;
    border-radius: 999px;
    object-fit: cover;
    flex-shrink: 0;
    border: 3px solid rgba(255, 255, 255, 0.38);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
}
.dashboard-hero-avatar--placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    border-radius: 999px;
    flex-shrink: 0;
    border: 3px solid rgba(255, 255, 255, 0.38);
    background: linear-gradient(145deg, #f5b800, #d97706);
    color: #0f172a;
    font-weight: 800;
    font-size: 1.55rem;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
}
.dashboard-hero::after { content: ''; position: absolute; inset: auto -40px -40px auto; width: 180px; height: 180px; border-radius: 50%; background: rgba(255, 255, 255, 0.08); }
.dashboard-eyebrow { display: inline-block; margin-bottom: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.75rem; opacity: 0.82; }
.dashboard-hero h2 { margin: 0 0 0.75rem; font-size: clamp(1.8rem, 3vw, 2.5rem); max-width: 720px; }
.dashboard-hero p { margin: 0; max-width: 720px; color: rgba(255, 255, 255, 0.82); line-height: 1.6; }
.dashboard-hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: flex-end; position: relative; z-index: 1; }
.dashboard-hero .btn-ghost { background: rgba(255, 255, 255, 0.16); color: #fff; }
.dashboard-stats-grid { margin-top: 1rem; }
.dashboard-stat-card { padding: 1.2rem; border: 1px solid rgba(148, 163, 184, 0.16); position: relative; overflow: hidden; }
.dashboard-stat-card::before { content: ''; position: absolute; top: -25px; right: -25px; width: 90px; height: 90px; border-radius: 50%; opacity: 0.12; }
.dashboard-stat-card p { margin: 0.4rem 0 0; color: #526077; line-height: 1.45; }
.stat-label { display: inline-block; margin-bottom: 0.8rem; color: #64748b; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; }
.tone-teal::before { background: #0f766e; }
.tone-blue::before { background: #2563eb; }
.tone-amber::before { background: #3B4F96; }
.tone-green::before { background: #16a34a; }
.dashboard-overview-grid { display: grid; grid-template-columns: 1.7fr 1fr; gap: 1rem; margin-bottom: 1rem; }
.dashboard-access-grid { grid-template-columns: 1.7fr 1fr; }
.dashboard-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.dashboard-card-head h3 { margin: 0.2rem 0 0; font-size: 1.2rem; }
.dashboard-section-label { display: inline-block; color: #64748b; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; }
.dashboard-tag { display: inline-flex; align-items: center; padding: 0.35rem 0.7rem; border-radius: 999px; background: #ecfeff; color: #0f766e; font-size: 0.8rem; font-weight: 700; }
.dashboard-summary-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.8rem; }
.dashboard-summary-list div { padding: 1rem; border-radius: 14px; background: linear-gradient(180deg, #f8fbff, #f1f5f9); border: 1px solid #e2e8f0; }
.dashboard-summary-list span, .dashboard-summary-list small { display: block; }
.dashboard-summary-list span { color: #64748b; margin-bottom: 0.55rem; }
.dashboard-summary-list strong { display: block; margin-bottom: 0.35rem; font-size: 1.05rem; }
.dashboard-summary-list small { color: #526077; line-height: 1.5; }
.dashboard-shortcuts { display: grid; gap: 0.7rem; }
.dashboard-shortcuts a { display: flex; align-items: center; justify-content: space-between; padding: 0.9rem 1rem; border-radius: 14px; background: linear-gradient(180deg, #f8fafc, #eef2ff); border: 1px solid #dbe4f3; font-weight: 700; color: #1e293b; }
.dashboard-shortcuts a:hover { background: linear-gradient(180deg, #eff6ff, #e0f2fe); }
.dashboard-filter-pills { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.dashboard-filter-pills button { border: 1px solid #d9e2f1; background: #f8fafc; color: #475569; border-radius: 999px; padding: 0.48rem 0.85rem; cursor: pointer; font-weight: 700; }
.dashboard-filter-pills button.active { background: linear-gradient(135deg, #0f766e, #0ea5e9); color: #fff; border-color: transparent; }
.dashboard-filter-pills button:hover { background: #eef6ff; }
.dashboard-access-card { min-height: 100%; }
.dashboard-access-toolbar { margin-top: -0.4rem; margin-bottom: 0.5rem; }
.dashboard-access-metrics { margin-top: 0.4rem; }
.dashboard-access-split { margin-top: 0.85rem; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.8rem; }
.dashboard-access-split article { padding: 1rem; border-radius: 14px; border: 1px solid #e2e8f0; background: linear-gradient(180deg, #f8fbff, #eef6ff); }
.dashboard-access-split span, .dashboard-access-split small { display: block; }
.dashboard-access-split span { color: #64748b; margin-bottom: 0.4rem; }
.dashboard-access-split strong { display: block; margin-bottom: 0.25rem; font-size: 1.3rem; color: #0f766e; }
.dashboard-access-split small { color: #526077; line-height: 1.5; }
.dashboard-top-properties-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.7rem; }
.dashboard-top-properties-list li { display: flex; justify-content: space-between; gap: 1rem; align-items: center; padding: 0.9rem 1rem; border: 1px solid #e2e8f0; border-radius: 14px; background: linear-gradient(180deg, #fbfdff, #f3f7fb); }
.dashboard-top-properties-list strong { display: block; margin-bottom: 0.25rem; }
.dashboard-top-properties-list small { color: #64748b; }
.dashboard-top-properties-list span { white-space: nowrap; font-weight: 800; color: #0f766e; }
.dashboard-empty-state { margin: 0; color: #64748b; line-height: 1.6; }
.dashboard-segmentation-grid { grid-template-columns: 1fr 1fr; }
.dashboard-chart-grid { margin-bottom: 1rem; }
.dashboard-chart-card { min-height: 340px; }
.dashboard-inline-link { color: #0f766e; font-weight: 700; }
.dashboard-activity-card { padding: 1.2rem; }
.dashboard-activity-list li { display: grid; grid-template-columns: 44px 1fr auto; gap: 0.9rem; align-items: start; padding: 0.95rem; }
.activity-avatar { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font-weight: 800; background: linear-gradient(135deg, #dbeafe, #e0f2fe); color: #1d4ed8; }
.activity-content span { display: block; font-weight: 700; margin-bottom: 0.2rem; }
.activity-content p { margin: 0; color: #526077; }
.dashboard-activity-list small { color: #64748b; white-space: nowrap; }

.filters { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0.6rem; align-items: end; }
.table-card table { width: 100%; border-collapse: collapse; }
.table-card th, .table-card td { border-bottom: 1px solid #edf1f8; text-align: left; padding: 0.7rem 0.5rem; }
.badge-top-destaque {
    display: inline-block;
    margin-left: 0.45rem;
    padding: 0.18rem 0.5rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    color: #166534;
    background: #dcfce7;
    border: 1px solid #86efac;
    vertical-align: middle;
}
.brokers-table .broker-email-cell {
    max-width: 230px;
    overflow-wrap: anywhere;
    word-break: break-word;
}
.property-price-prefix {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: #64748b;
    line-height: 1.2;
    margin-bottom: 0.1rem;
}
.actions { display: flex; gap: 0.4rem; }
.pagination { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 1rem 0; }
.pagination a { padding: 0.45rem 0.65rem; border-radius: 8px; background: #e2e8f0; }
.pagination a.active { background: #0f766e; color: #fff; }

/* Paginação — Destaques (home), tema azul */
.home-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.65rem 0.85rem;
    margin: 1.75rem 0 0;
    padding: 0;
}
.home-pagination--carousel {
    margin: 1rem 0 0;
}
.home-pagination__pages {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.35rem 0.5rem;
}
.home-pagination__page {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.35rem;
    padding: 0.45rem 0.55rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: #3B4F96;
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.15s ease, color 0.15s ease;
}
.home-pagination__page:hover:not(.is-active) {
    background: rgba(59, 79, 150, 0.1);
}
.home-pagination__page.is-active {
    font-weight: 800;
    color: #fff;
    background: linear-gradient(145deg, #3d5a9e 0%, #3B4F96 45%, #2f4a8a 100%);
    padding: 0.45rem 0.75rem 0.45rem 0.6rem;
    clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 100%, 12px 100%);
    box-shadow: 0 4px 14px rgba(59, 79, 150, 0.35);
}
.home-pagination__arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    font-size: 1.35rem;
    line-height: 1;
    font-weight: 700;
    text-decoration: none;
    flex-shrink: 0;
    transition: background 0.15s ease, color 0.15s ease, opacity 0.15s ease, transform 0.15s ease;
}
.home-pagination__arrow--prev {
    background: #eef2f8;
    color: #3B4F96;
    border: 1px solid rgba(59, 79, 150, 0.18);
}
.home-pagination__arrow--prev:hover:not(.is-disabled) {
    background: #e2e8f0;
}
.home-pagination__arrow--next {
    background: linear-gradient(145deg, #3d5a9e, #3B4F96);
    color: #fff;
    border: 1px solid rgba(31, 47, 99, 0.25);
    box-shadow: 0 4px 12px rgba(59, 79, 150, 0.35);
}
.home-pagination__arrow--next:hover:not(.is-disabled) {
    filter: brightness(1.06);
    transform: translateY(-1px);
}
.home-pagination__arrow.is-disabled {
    opacity: 0.42;
    cursor: not-allowed;
    pointer-events: none;
}
.home-pagination__arrow--next.is-disabled {
    background: #cbd5e1;
    color: #64748b;
    border-color: #94a3b8;
    box-shadow: none;
}

/* Página 404 */
.error-404 {
    padding: 2.5rem 0 3rem;
    text-align: center;
}
.error-404-inner {
    max-width: 28rem;
    margin: 0 auto;
}
.error-404-code {
    margin: 0 0 0.5rem;
    font-size: clamp(3.5rem, 12vw, 5rem);
    font-weight: 800;
    line-height: 1;
    color: #3B4F96;
    letter-spacing: -0.04em;
}
.error-404-title {
    margin: 0 0 0.75rem;
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    color: #1e293b;
}
.error-404-text {
    margin: 0 0 1.5rem;
    color: #64748b;
    font-size: 1rem;
    line-height: 1.5;
}
.error-404-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    justify-content: center;
    margin: 0;
}

/* Home: TOPO02 — encostado ao rodapé; lazy load no HTML reduz trabalho inicial */
.topo2-banner {
    margin: 0;
    padding: 0;
    line-height: 0;
    background: #f0f0f2;
}
.topo2-banner picture {
    display: block;
}
.topo2-banner .topo2-banner__img {
    display: block;
    width: 100%;
    height: auto;
}

.grid-form { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.7rem 1rem; }
.grid-form .full { grid-column: 1 / -1; }

.about-admin-form {
    grid-template-columns: minmax(220px, 0.68fr) minmax(460px, 1.32fr);
}

.about-admin-form .about-admin-text {
    grid-column: 1;
}

.about-admin-form .about-admin-photo-current,
.about-admin-form .about-admin-photo-upload {
    grid-column: 2;
}

.about-admin-photo-preview {
    width: 100%;
    max-width: 620px;
    border-radius: 12px;
    border: 1px solid #d7deea;
    margin-top: 0.5rem;
}

.about-admin-photo-empty {
    margin-top: 0.5rem;
    padding: 0.7rem 0.8rem;
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    color: #64748b;
    max-width: 620px;
}
.property-form-card .property-form { align-items: start; }
.property-fieldset {
    margin: 0;
    padding: 0.85rem 1rem 1rem;
    border: 1px solid #dbe4f3;
    border-radius: 12px;
    background: linear-gradient(180deg, #fbfdff, #f5f8fc);
}
.property-fieldset legend {
    padding: 0 0.35rem;
    font-weight: 800;
    font-size: 0.95rem;
    color: #1e3a5f;
}
.property-fieldset label { margin-bottom: 0; }
.property-fieldset--interno {
    border-color: #c7d2fe;
    background: linear-gradient(180deg, #fafbff, #eef2ff);
}
.property-checkbox-label { display: flex !important; align-items: center; gap: 0.5rem; flex-direction: row !important; }
.text-muted { color: #64748b; font-size: 0.82rem; line-height: 1.45; }

.about-page {
    display: grid;
    gap: 1.5rem;
}
.about-story-card {
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}
.about-story-layout {
    display: grid;
    grid-template-columns: minmax(300px, 0.95fr) minmax(340px, 1.05fr);
    gap: 1.15rem;
    align-items: start;
}
/* Ordem no HTML: foto | texto (foto à esquerda no desktop) */
.about-story-text {
    max-width: 760px;
    margin-inline: auto;
    padding-inline: 0.45rem;
}
.about-owner-photo-wrap {
    display: flex;
    justify-content: flex-start;
    margin-top: -10px;
    position: sticky;
    top: 110px;
    align-self: start;
}
.about-story-title {
    margin: 0 0 1.1rem;
    font-size: 2rem;
    line-height: 1.2;
    color: #1f2f63;
    text-align: left;
}
.about-owner-photo {
    width: 100%;
    max-width: 520px;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: 14px;
    border: 1px solid #dbe4f0;
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.09);
    background: #eef3f8;
}
.about-owner-photo--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-weight: 500;
}
.about-story-text p {
    margin: 0 0 1rem;
    color: #334155;
    line-height: 1.72;
    text-align: justify;
}
.about-story-text p:last-child {
    margin-bottom: 0;
}

.about-story-text p.about-signature {
    color: #3B4F96;
    font-family: "Dancing Script", "Segoe Script", cursive;
    font-size: 2rem;
    line-height: 1.3;
    font-weight: 500;
    margin-top: 1.2rem;
    text-align: left;
}

/* Página pública — corretores */
.brokers-page__head {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 1.75rem;
}
.brokers-page__head h1 {
    margin: 0 0 0.5rem;
    font-size: clamp(1.75rem, 4vw, 2.1rem);
    color: #1f2f63;
    font-weight: 700;
}
.brokers-page__lead {
    margin: 0;
    color: #475569;
    line-height: 1.55;
    font-size: 1.05rem;
}
.brokers-empty {
    max-width: 520px;
    margin: 0 auto;
    text-align: center;
    padding: 1.5rem;
}
.brokers-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.25rem;
}
.broker-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #dbe4f0;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.06);
}
.broker-card__media {
    aspect-ratio: 1;
    background: #eef3f8;
    overflow: hidden;
}
.broker-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.broker-card__body {
    padding: 1rem 1.1rem 1.15rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    flex: 1;
    min-width: 0;
}
.broker-card__name {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
    color: #1f2f63;
    line-height: 1.25;
}
.broker-card__creci {
    margin: 0;
    font-size: 0.88rem;
    color: #64748b;
}
.broker-card__creci span {
    font-weight: 600;
    color: #475569;
    margin-right: 0.25rem;
}
.broker-card__row {
    margin: 0;
    font-size: 0.95rem;
}
.broker-card__link {
    color: #3B4F96;
    text-decoration: underline;
    text-underline-offset: 2px;
    word-break: break-word;
}
.broker-card__link:hover {
    color: #2e3f7a;
}
.broker-card__actions {
    margin: 0.5rem 0 0;
}
.broker-card__wa {
    background: #25d366;
    border: 0;
    color: #fff;
}
.broker-card__wa:hover {
    filter: brightness(1.05);
    color: #fff;
}
@media (max-width: 640px) {
    .brokers-page__head {
        text-align: left;
    }
}

/* Página corretores — cards (faixa azul + foto + ícones) */
.brokers-card-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 300px));
    justify-content: center;
    justify-items: stretch;
    gap: 1.5rem 1.25rem;
    width: 100%;
    max-width: 1100px;
}
.broker-card-v2 {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: visible;
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.08);
}
.broker-card-v2__header-band {
    height: 88px;
    flex-shrink: 0;
    border-radius: 15px 15px 0 0;
    background: linear-gradient(165deg, #3B4F96 0%, #2a3d7a 55%, #1f2f63 100%);
}
.broker-card-v2__body {
    position: relative;
    padding: 0 1.15rem 1.35rem;
    text-align: center;
    margin-top: 0;
}
.broker-card-v2__avatar-wrap {
    width: 118px;
    height: 118px;
    margin: -56px auto 0;
    border-radius: 50%;
    border: 4px solid #fff;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.12);
    overflow: hidden;
    background: #eef3f8;
}
.broker-card-v2__avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.broker-card-v2__name {
    margin: 0.85rem 0 0.25rem;
    font-size: 1.15rem;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.3;
}
.broker-card-v2__creci {
    margin: 0;
    font-size: 0.9rem;
    color: #64748b;
    font-weight: 500;
}
.broker-card-v2__rule {
    height: 1px;
    margin: 1rem 0 1rem;
    background: linear-gradient(90deg, transparent, #e2e8f0 15%, #e2e8f0 85%, transparent);
    border: 0;
}
.broker-card-v2__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
}
.broker-card-v2__icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    background: #fff;
    color: #3B4F96;
    text-decoration: none;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.broker-card-v2__icon-btn:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
    color: #1f2f63;
    transform: translateY(-1px);
}
.broker-card-v2__icon-btn--wa {
    color: #16a34a;
    border-color: #bbf7d0;
}
.broker-card-v2__icon-btn--wa:hover {
    background: #f0fdf4;
    border-color: #86efac;
    color: #15803d;
}
.broker-card-v2__icon-btn--home {
    color: #3B4F96;
    border-color: #c7d2fe;
}
.broker-card-v2__icon-btn--home:hover {
    background: #eef2ff;
    border-color: #a5b4fc;
}
@media (max-width: 640px) {
    .brokers-card-grid {
        grid-template-columns: minmax(0, 380px);
        justify-content: center;
        max-width: 380px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* Ficha corretor + carrossel de imóveis */
.broker-breadcrumb {
    font-size: 0.92rem;
    color: #64748b;
    margin-bottom: 1rem;
}
.broker-breadcrumb a {
    color: #3B4F96;
    text-decoration: none;
}
.broker-breadcrumb a:hover {
    text-decoration: underline;
}
.broker-breadcrumb__sep {
    margin: 0 0.35rem;
    color: #94a3b8;
}
.broker-profile-hero {
    display: flex;
    align-items: center;
    gap: 1.25rem 1.5rem;
    padding: 1.25rem 1.35rem;
    background: #fff;
    border: 1px solid #dbe4f0;
    border-radius: 14px;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.06);
    max-width: 920px;
    margin: 0 auto 2rem;
}
.broker-profile-hero__photo {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
    border-radius: 12px;
    overflow: hidden;
    background: #eef3f8;
}
.broker-profile-hero__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.broker-profile-hero__body {
    min-width: 0;
}
.broker-profile-hero__name {
    margin: 0 0 0.35rem;
    font-size: clamp(1.35rem, 3vw, 1.75rem);
    font-weight: 700;
    color: #1f2f63;
}
.broker-profile-hero__creci {
    margin: 0 0 0.5rem;
    font-size: 0.95rem;
    color: #64748b;
}
.broker-profile-hero__wa {
    margin: 0;
}
.broker-profile-hero__wa-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: #16a34a;
    font-weight: 600;
    text-decoration: none;
    font-size: 1rem;
}
.broker-profile-hero__wa-link:hover {
    text-decoration: underline;
}
.broker-imovel-section__title {
    margin: 0 auto 1rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2f63;
    max-width: 960px;
}
.broker-corretor-toolbar {
    margin: 0 auto 1rem;
    max-width: 1200px;
    font-size: 0.95rem;
    color: #475569;
}
.broker-corretor-toolbar__sep {
    margin: 0 0.4rem;
    color: #94a3b8;
}
/* Grade 4 colunas no desktop (20 imóveis = 5 linhas × 4); responsivo */
.broker-corretor-imoveis-grid.property-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}
@media (max-width: 1100px) {
    .broker-corretor-imoveis-grid.property-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
@media (max-width: 720px) {
    .broker-corretor-imoveis-grid.property-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
.broker-corretor-pagination.pagination {
    margin-top: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}
.broker-imovel-empty {
    max-width: 520px;
    margin: 0 auto;
    text-align: center;
    padding: 1.5rem;
}
.broker-imovel-carousel {
    position: relative;
    display: flex;
    align-items: stretch;
    gap: 0.35rem;
    max-width: 100%;
}
.broker-imovel-carousel__track {
    display: flex;
    gap: 1.25rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    flex: 1;
    padding: 0.25rem 0 0.75rem;
    -webkit-overflow-scrolling: touch;
}
.broker-imovel-carousel__track::-webkit-scrollbar {
    height: 8px;
}
.broker-imovel-carousel__track::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 999px;
}
.broker-carousel-arrow {
    flex-shrink: 0;
    align-self: center;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: 1px solid #dbe4f0;
    background: #fff;
    color: #1f2f63;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}
.broker-carousel-arrow:hover {
    background: #f1f5f9;
}
@media (min-width: 720px) {
    .broker-carousel-arrow {
        display: inline-flex;
    }
}
.broker-imovel-card-wide {
    flex: 0 0 min(100%, 920px);
    scroll-snap-align: start;
    background: #fff;
    border: 1px solid #dbe4f0;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 22px rgba(15, 23, 42, 0.07);
}
.broker-imovel-card-wide__accent {
    height: 4px;
    background: linear-gradient(90deg, #1f2f63, #3B4F96);
}
.broker-imovel-card-wide__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    gap: 0;
    align-items: stretch;
}
@media (max-width: 768px) {
    .broker-imovel-card-wide__inner {
        grid-template-columns: 1fr;
    }
}
.broker-imovel-card-wide__media {
    position: relative;
    min-height: 200px;
    background: #eef3f8;
}
.broker-imovel-card-wide__media:hover .card-carousel-nav {
    opacity: 1;
}
.broker-imovel-card-wide__media-link {
    display: block;
    height: 100%;
    min-height: 200px;
}
.broker-imovel-card-wide__media img {
    width: 100%;
    height: 100%;
    min-height: 200px;
    object-fit: cover;
    display: block;
}
.broker-imovel-card-wide__fav {
    z-index: 2;
}
.broker-imovel-card-wide__body {
    padding: 1.1rem 1.2rem 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}
.broker-imovel-card-wide__title {
    margin: 0;
    font-size: 1.15rem;
    line-height: 1.3;
    font-weight: 700;
}
.broker-imovel-card-wide__title a {
    color: #1f2f63;
    text-decoration: none;
}
.broker-imovel-card-wide__title a:hover {
    text-decoration: underline;
}
.broker-imovel-card-wide__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}
.broker-imovel-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: #475569;
    background: #f1f5f9;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}
.broker-imovel-badge__icon {
    opacity: 0.7;
    font-weight: 800;
}
.broker-imovel-card-wide__features {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    font-size: 0.88rem;
    color: #64748b;
}
.broker-imovel-card-wide__features .bf-ic {
    opacity: 0.65;
    margin-right: 0.15rem;
}
.broker-imovel-card-wide__excerpt {
    margin: 0.25rem 0 0;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #64748b;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.broker-imovel-card-wide__footer {
    margin-top: auto;
    padding-top: 0.75rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}
.broker-imovel-card-wide__price {
    font-size: 1.45rem;
    font-weight: 800;
    color: #1f2f63;
}
.broker-imovel-card-wide__price-box {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}
.broker-imovel-card-wide__price-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #64748b;
}
.broker-imovel-card-wide__actions {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}
.broker-imovel-card-wide__more {
    background: #1f2f63 !important;
    color: #fff !important;
    border: 0 !important;
    font-weight: 700;
    font-size: 0.82rem;
    letter-spacing: 0.04em;
    padding: 0.55rem 1rem !important;
    border-radius: 6px;
}
.broker-imovel-card-wide__more:hover {
    filter: brightness(1.08);
    color: #fff !important;
}
.broker-imovel-card-wide__wa {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    background: #25d366;
    color: #fff !important;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.45);
}
.broker-imovel-card-wide__wa:hover {
    filter: brightness(1.06);
    color: #fff !important;
}

/* Webmail (admin) */
.webmail-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    margin: 0 0 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e5ebf5;
}
.webmail-nav a {
    color: var(--brand-2, #3B4F96);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.92rem;
}
.webmail-nav a:hover { text-decoration: underline; }
.webmail-nav a.is-active {
    color: #0f172a;
    text-decoration: underline;
    text-underline-offset: 4px;
}
.webmail-hint { font-size: 0.88rem; color: var(--muted); margin: 0.5rem 0 1rem; line-height: 1.5; }
.webmail-subtitle { margin: 1.25rem 0 0.65rem; font-size: 1.05rem; color: #1e293b; }
.webmail-toolbar { margin-bottom: 1rem; }
.webmail-toolbar select { min-width: 280px; }
.webmail-sync { margin: 0.75rem 0 1rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; }
.webmail-sync .webmail-hint { margin: 0; }
.webmail-table-wrap { overflow-x: auto; }
.webmail-table td { vertical-align: top; }
.webmail-unread { font-weight: 600; background: #f0f7ff; }
.webmail-empty { color: var(--muted); padding: 1rem !important; text-align: center; }
.webmail-form label.inline-check { display: flex; align-items: center; gap: 0.45rem; }
.webmail-form input[type="checkbox"] { width: auto; }
.webmail-meta { display: grid; grid-template-columns: auto 1fr; gap: 0.35rem 1rem; font-size: 0.9rem; margin: 0 0 1rem; }
.webmail-meta dt { color: var(--muted); margin: 0; }
.webmail-meta dd { margin: 0; }
.webmail-body { border-top: 1px solid #e5ebf5; padding-top: 1rem; line-height: 1.65; color: #334155; }
.webmail-html { max-width: 100%; overflow-x: auto; }
.webmail-html img { max-width: 100%; height: auto; }
.webmail-text { white-space: pre-wrap; word-break: break-word; }
.btn-link {
    background: none;
    border: 0;
    padding: 0;
    color: var(--brand-2, #3B4F96);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
}
.btn-link:hover { color: #1e3a5f; }

/* Webmail layout (app shell) */
.admin-main .webmail-app {
    margin: 0 -1.6rem -2rem;
    width: calc(100% + 3.2rem);
    box-sizing: border-box;
    min-height: calc(100vh - 5.5rem);
    display: grid;
    grid-template-columns: minmax(220px, 280px) 1fr;
    background: linear-gradient(165deg, #f0f4fb 0%, #eef2f7 45%, #e8edf5 100%);
    border-radius: 0;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}
@media (max-width: 960px) {
    .admin-main .webmail-app {
        grid-template-columns: 1fr;
        margin: 0 -1rem -1rem;
        width: calc(100% + 2rem);
        min-height: auto;
    }
    .webmail-sidebar { border-right: none !important; border-bottom: 1px solid rgba(15, 23, 42, 0.08); }
}
.webmail-app--read,
.webmail-app--simple {
    grid-template-columns: minmax(200px, 240px) 1fr;
}
.webmail-sidebar {
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(10px);
    border-right: 1px solid rgba(15, 23, 42, 0.08);
    padding: 1.25rem 1rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.webmail-sidebar--slim {
    padding-top: 0.75rem;
}
.webmail-sidebar__brand {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding-bottom: 0.25rem;
}
.webmail-sidebar__brand strong {
    display: block;
    font-size: 1.05rem;
    color: #0f172a;
    letter-spacing: -0.02em;
}
.webmail-sidebar__brand small {
    display: block;
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 500;
}
.webmail-sidebar__logo {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(145deg, #3b4f96, #2e3f7a);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    box-shadow: 0 4px 14px rgba(59, 79, 150, 0.35);
}
.webmail-account-pick__label {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #64748b;
    margin-bottom: 0.35rem;
}
.webmail-account-pick__select {
    width: 100%;
    border-radius: 10px;
    border: 1px solid #cbd5e1;
    padding: 0.45rem 0.6rem;
    font-size: 0.92rem;
    background: #fff;
}
.webmail-folders {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}
.webmail-folder {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 0.65rem;
    border-radius: 10px;
    color: #334155;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.92rem;
    transition: background 0.15s ease, color 0.15s ease;
}
.webmail-folder:hover {
    background: rgba(59, 79, 150, 0.08);
    color: #1e293b;
}
.webmail-folder.is-active {
    background: linear-gradient(90deg, rgba(59, 79, 150, 0.18), rgba(59, 79, 150, 0.06));
    color: #1e3a5f;
    box-shadow: inset 0 0 0 1px rgba(59, 79, 150, 0.15);
}
.webmail-folder__ico {
    width: 1.5rem;
    display: inline-flex;
    justify-content: center;
    font-size: 1rem;
    line-height: 1;
    opacity: 0.88;
}
.webmail-folder__ico[data-ico="inbox"]::before { content: "📥"; }
.webmail-folder__ico[data-ico="send"]::before { content: "📤"; }
.webmail-folder__ico[data-ico="delete"]::before { content: "🗑"; }
.webmail-folder__ico[data-ico="spam"]::before { content: "⚠"; }
.webmail-sidebar__footer {
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(15, 23, 42, 0.07);
}
/* Webmail: menu lateral de atalhos (pills + ícones) */
.webmail-topnav {
    display: block;
    width: 100%;
}
.webmail-topnav__heading {
    margin: 0 0 0.5rem;
    padding: 0 0.15rem;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #94a3b8;
}
.webmail-topnav__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}
.webmail-topnav__link {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.52rem 0.65rem;
    border-radius: 11px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #475569;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid transparent;
    transition:
        background 0.18s ease,
        color 0.18s ease,
        border-color 0.18s ease,
        box-shadow 0.18s ease,
        transform 0.12s ease;
}
.webmail-topnav__link:hover {
    color: #1e3a5f;
    background: rgba(59, 79, 150, 0.1);
    border-color: rgba(59, 79, 150, 0.12);
}
.webmail-topnav__link:active {
    transform: scale(0.98);
}
.webmail-topnav__ico {
    display: inline-flex;
    flex-shrink: 0;
    width: 1.35rem;
    height: 1.35rem;
    align-items: center;
    justify-content: center;
    color: #64748b;
    transition: color 0.18s ease;
}
.webmail-topnav__ico svg {
    display: block;
}
.webmail-topnav__text {
    flex: 1;
    min-width: 0;
    line-height: 1.25;
}
.webmail-topnav__link:hover .webmail-topnav__ico {
    color: var(--brand-2, #3b4f96);
}
.webmail-topnav__link.is-active {
    color: #fff;
    background: linear-gradient(135deg, #3b4f96 0%, #2e3f7a 100%);
    border-color: rgba(15, 23, 42, 0.12);
    box-shadow: 0 4px 14px rgba(59, 79, 150, 0.35);
}
.webmail-topnav__link.is-active .webmail-topnav__ico {
    color: rgba(255, 255, 255, 0.95);
}
.webmail-back {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 0.65rem;
    padding: 0.45rem 0.65rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.86rem;
    color: #475569;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.65);
    border: 1px solid rgba(148, 163, 184, 0.35);
    transition:
        background 0.18s ease,
        color 0.18s ease,
        border-color 0.18s ease;
}
.webmail-back:hover {
    color: var(--brand-2, #3b4f96);
    background: #fff;
    border-color: rgba(59, 79, 150, 0.25);
}
.webmail-topnav__link:focus-visible {
    outline: 2px solid rgba(59, 79, 150, 0.55);
    outline-offset: 2px;
}
.webmail-topnav__link.is-active:focus-visible {
    outline-color: rgba(255, 255, 255, 0.85);
}
.webmail-back:focus-visible {
    outline: 2px solid rgba(59, 79, 150, 0.45);
    outline-offset: 2px;
}
.webmail-main {
    padding: 1.25rem 1.35rem 1.75rem;
    min-width: 0;
}
.webmail-main__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
}
.webmail-main__title {
    margin: 0;
    font-size: 1.45rem;
    font-weight: 600;
    color: #0f172a;
    letter-spacing: -0.03em;
}
.webmail-main__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}
.webmail-sync-inline {
    margin: 0;
    display: inline-flex;
    align-items: center;
}
.webmail-sync-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.webmail-sync-indicator {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: linear-gradient(145deg, #22c55e, #16a34a);
    box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.35);
    flex-shrink: 0;
    animation: webmail-sync-pulse 2.2s ease-in-out infinite;
}
@keyframes webmail-sync-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.75; transform: scale(0.92); }
}
.webmail-flash {
    margin: 0 0 1rem;
    padding: 0.65rem 0.85rem;
    border-radius: 10px;
}
.webmail-flash--ok {
    color: #166534;
    background: #e7f8ee;
    border: 1px solid #b7ebca;
    font-weight: 600;
}
.webmail-flash--err {
    color: #991b1b;
    background: #fee2e2;
    border: 1px solid #fecaca;
    font-weight: 600;
}

/* Painel Webmail (estilo cartões EDK) */
.admin-page.webmail-painel {
    max-width: 980px;
    margin: 0 auto;
}
.webmail-painel__topbar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.25rem;
}
.webmail-painel__title { margin: 0; font-size: 1.45rem; color: #0f172a; }
.webmail-painel__subtitle { margin: 0.35rem 0 0; font-size: 0.9rem; color: #64748b; max-width: 52ch; }
.webmail-painel__top-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.65rem; }
.webmail-painel__warn { font-size: 0.85rem; color: #b45309; }
.webmail-painel__add {
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 14px;
    padding: 1rem 1.15rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
}
.webmail-painel__add-title { margin: 0 0 0.75rem; font-size: 1.05rem; }
.webmail-painel__fields {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.65rem;
    align-items: end;
    margin-bottom: 0.75rem;
}
.webmail-painel__field { display: grid; gap: 0.25rem; font-size: 0.8rem; color: #64748b; font-weight: 600; }
.webmail-painel__field--grow { grid-column: span 2; }
@media (max-width: 640px) {
    .webmail-painel__field--grow { grid-column: span 1; }
}
.webmail-painel__field input,
.webmail-painel__field select {
    font-weight: 400;
    padding: 0.5rem 0.6rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.95rem;
}
.webmail-painel__hint { margin: 0.65rem 0 0; font-size: 0.82rem; }
.webmail-painel__section {
    border-radius: 14px;
    padding: 1rem 1.1rem;
    margin-bottom: 1rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
}
.webmail-painel__section.section-contact {
    background: #eef6ff;
    border-color: #bfdbfe;
}
.webmail-painel__section.section-personal {
    background: #f6f5ff;
    border-color: #d9d6fe;
}
.webmail-painel__section.section-finance {
    background: #ecfdf5;
    border-color: #a7f3d0;
}
.webmail-painel__section.section-compras {
    background: #fff7ed;
    border-color: #fed7aa;
}
.webmail-painel__section-title {
    margin: 0 0 0.85rem;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    color: #0f172a;
}
.webmail-painel__section.section-contact .webmail-painel__section-title { color: #1e3a8a; }
.webmail-painel__section.section-personal .webmail-painel__section-title { color: #4c1d95; }
.webmail-painel__section.section-finance .webmail-painel__section-title { color: #065f46; }
.webmail-painel__section.section-compras .webmail-painel__section-title { color: #9a3412; }
.webmail-painel__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 0.75rem;
}
.webmail-painel__card {
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 12px;
    padding: 1rem 1.1rem;
    display: grid;
    gap: 0.5rem;
}
.webmail-painel__card-email { margin: 0; font-size: 1rem; word-break: break-all; }
.webmail-painel__card-desc { margin: 0; font-size: 0.88rem; color: #64748b; }
.webmail-painel__card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    margin-top: 0.35rem;
}
.webmail-painel__inline-form { display: inline; margin: 0; }
.webmail-painel__empty { color: #64748b; padding: 1rem 0; }

.webmail-empty-state {
    text-align: center;
    padding: 2.5rem 1rem;
    color: #475569;
}
.webmail-empty-state .btn { margin-top: 0.75rem; }
.webmail-list {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
    border: 1px solid rgba(15, 23, 42, 0.06);
    overflow: hidden;
}
.webmail-list__head {
    display: grid;
    grid-template-columns: 118px 1fr 88px;
    gap: 0.5rem;
    padding: 0.65rem 1rem;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}
.webmail-list__body {
    list-style: none;
    margin: 0;
    padding: 0;
}
.webmail-row {
    display: grid;
    grid-template-columns: 118px 1fr 88px;
    gap: 0.5rem;
    align-items: center;
    padding: 0.55rem 1rem;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.9rem;
}
.webmail-row:last-child { border-bottom: none; }
.webmail-row.is-unread {
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.07), transparent);
}
.webmail-row--empty {
    display: block;
    padding: 2rem 1rem;
    text-align: center;
    color: #64748b;
    grid-column: 1 / -1;
}
.webmail-col--main {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
    color: inherit;
    text-decoration: none;
}
.webmail-col--main:hover .webmail-row__subj { color: var(--brand-2, #3b4f96); }
.webmail-row__who {
    font-weight: 600;
    color: #0f172a;
    font-size: 0.92rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.webmail-row__subj {
    font-size: 0.86rem;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.webmail-col--date {
    font-size: 0.82rem;
    color: #64748b;
    white-space: nowrap;
}
.webmail-row-actions {
    display: inline-flex;
    gap: 0.35rem;
    justify-content: flex-end;
}
.webmail-row-actions .btn-link { font-size: 1rem; text-decoration: none; }
.webmail-danger { color: #b91c1c !important; }
.webmail-read__head {
    margin-bottom: 1.25rem;
}
.webmail-read__title {
    margin: 0 0 0.75rem;
    font-size: 1.35rem;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.35;
}
.webmail-read__meta {
    font-size: 0.92rem;
    color: #475569;
    line-height: 1.55;
}
.webmail-read__meta p { margin: 0.2rem 0; }
.webmail-read__date { color: #64748b; font-size: 0.88rem; }
.webmail-read__article {
    background: #fff;
    border-radius: 14px;
    padding: 1.25rem 1.35rem;
    border: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
}
.webmail-app--simple .card-like,
.webmail-app--simple section.card {
    background: #fff;
    border-radius: 14px;
    padding: 1.25rem 1.35rem;
    border: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
}

.inline { display: flex; align-items: center; gap: 0.5rem; }
.richtext-editor {
    border: 1px solid #d8e0ec;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}
.richtext-editor__toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    padding: 0.65rem;
    border-bottom: 1px solid #e5ebf5;
    background: #f8fafc;
}
.richtext-editor__surface {
    min-height: 220px;
    padding: 0.9rem 1rem;
    outline: none;
    line-height: 1.6;
}
.richtext-editor__color {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0 0.2rem;
    font-size: 0.9rem;
    color: #334155;
}
.richtext-editor__color input[type="color"] {
    width: 34px;
    height: 34px;
    padding: 0;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
}
.richtext-editor__surface p {
    margin: 0 0 0.8rem;
}
.richtext-editor__surface h2,
.property-description h2 {
    margin: 0 0 0.85rem;
    font-size: 1.35rem;
    line-height: 1.3;
}
.richtext-editor__surface h3,
.property-description h3 {
    margin: 0 0 0.75rem;
    font-size: 1.15rem;
    line-height: 1.35;
}
.richtext-editor__surface ul,
.richtext-editor__surface ol {
    margin: 0 0 0.8rem 1.2rem;
}
.richtext-editor__surface a,
.property-description a {
    color: #1d4ed8;
    text-decoration: underline;
}
.property-description p:last-child,
.richtext-editor__surface p:last-child {
    margin-bottom: 0;
}
.gallery-existing { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0.5rem; }
.gallery-existing figure { margin: 0; }
.gallery-existing figcaption { font-size: 0.8rem; color: var(--muted); text-align: center; }
.gallery-existing figure video { width: 100%; height: 140px; object-fit: cover; border-radius: 10px; background: #0f172a; display: block; }
.gallery-upload-preview { display: contents; }
.gallery-upload-preview figure { margin: 0; border: 1px solid #e5ebf5; border-radius: 10px; padding: 0.4rem; background: #f8fafc; }
.gallery-upload-preview button { width: 100%; margin-top: 0.4rem; border: 0; background: #0ea5e9; color: #fff; border-radius: 8px; padding: 0.4rem; cursor: pointer; }
.gallery-set-main { width: auto; margin-top: 0.3rem; background: #16a34a; color: #fff; padding: 0.24rem 0.42rem; font-size: 0.7rem; border-radius: 7px; }
.gallery-set-main:hover { filter: brightness(1.06); }
.gallery-delete { width: auto; margin-top: 0.3rem; padding: 0.24rem 0.42rem; font-size: 0.7rem; border-radius: 7px; }

/* Funil: colunas com largura mínima + rolagem horizontal no celular (grid 1fr encolhia demais) */
.kanban {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: flex-start;
    gap: 0.8rem;
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    padding-bottom: 0.35rem;
    max-width: 100%;
}
.kanban--pipeline .kanban-col,
.kanban--full .kanban-col {
    flex: 0 0 clamp(200px, 72vw, 280px);
    width: clamp(200px, 72vw, 280px);
    max-width: min(280px, 85vw);
    scroll-snap-align: start;
}
.kanban-col { background: #fff; border-radius: 14px; padding: 0.7rem; box-shadow: var(--shadow); min-height: 240px; }
.kanban-list { min-height: 150px; }
.kanban-card { border: 1px solid #e5ebf5; border-radius: 10px; padding: 0.6rem; background: #f8fafc; margin-bottom: 0.5rem; cursor: grab; }
.kanban-card__actions { display: flex; gap: 0.35rem; flex-wrap: wrap; margin-top: 0.5rem; }
.kanban-card__actions .btn-sm { padding: 0.28rem 0.5rem; font-size: 0.72rem; line-height: 1.2; }
.kanban-card__del { margin-top: 0.45rem; }
@media (min-width: 1200px) {
    .kanban {
        display: grid;
        grid-template-columns: repeat(6, minmax(0, 1fr));
        gap: 0.8rem;
        overflow-x: visible;
        scroll-snap-type: none;
        padding-bottom: 0;
    }
    .kanban--pipeline {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
    .kanban--pipeline .kanban-col,
    .kanban--full .kanban-col {
        flex: unset;
        width: auto;
        max-width: none;
        scroll-snap-align: unset;
    }
}

.leads-toolbar { margin: 0 0 0.85rem; font-size: 0.9rem; color: var(--muted); display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem 0.5rem; }
.leads-toolbar a { color: var(--brand-2); font-weight: 600; text-decoration: none; }
.leads-toolbar a:hover { text-decoration: underline; }
.leads-toolbar__hint { font-weight: 400; color: var(--muted); }

.site-header { position: relative; z-index: 20; box-shadow: 0 2px 14px rgba(15, 23, 42, 0.08); }
.header-brand { background: #171a1f; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.brand-contact-row { min-height: 38px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; color: #f8fafc; font-size: 0.8rem; }
.contact-left, .contact-right, .contact-middle { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }
.contact-middle { justify-content: center; flex: 1; text-transform: lowercase; }
.contact-left a, .contact-right a, .contact-middle a { opacity: 0.92; font-weight: 500; color: #f8fafc; }
.contact-left a:hover, .contact-right a:hover, .contact-middle a:hover { opacity: 1; color: #ffffff; text-decoration: none; }
.contact-right { gap: 0.45rem; }
.contact-middle a.active { color: #ffd84d; }

.header-favoritos-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.header-favoritos-star {
    display: inline-flex;
    align-items: center;
    color: #f5b800;
    flex-shrink: 0;
}

.header-favoritos-star svg {
    display: block;
}

.header-favoritos-link.active .header-favoritos-star {
    color: #ffd84d;
}
.social-icon { width: 24px; height: 24px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; border: 1px solid rgba(248, 250, 252, 0.35); color: #f8fafc; text-decoration: none; }
.social-icon svg { width: 16px; height: 16px; display: block; }
.social-icon:hover { background: #f8fafc; color: #171a1f; text-decoration: none; }
.icon { margin-right: 0.35rem; font-size: 0.9rem; }

.header-brand-row { height: 100px; min-height: 100px; display: flex; align-items: center; justify-content: center; overflow: visible; }

.header-divider {
    height: 1px;
    background: rgba(248, 250, 252, 0.3);
}

.header-nav { background: #3B4F96; border-bottom: 1px solid #2e3f7a; box-shadow: 0 2px 10px rgba(15, 23, 42, 0.16); }
.header-nav .container.nav-row {
    padding-left: clamp(1.1rem, 3.5vw, 2.25rem);
    padding-right: calc(clamp(1.1rem, 3.5vw, 2.25rem) + 52px);
}
.header-nav.is-fixed {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 80;
    padding: 0;
    overflow: hidden;
    display: block;
}

.nav-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.35rem;
    height: 76px;
    padding: 0;
    position: relative;
}

.menu-toggle {
    display: inline-flex;
    position: absolute;
    right: clamp(1.1rem, 3.5vw, 2.25rem);
    top: 50%;
    transform: translateY(-50%);
    z-index: 35;
    width: 46px;
    height: 38px;
    border-radius: 12px;
    border: none;
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.12);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 0;
}
.menu-toggle span {
    width: 20px;
    height: 2.5px;
    border-radius: 999px;
    background: #4a90e2;
    display: block;
    transition: transform 0.22s ease, opacity 0.22s ease;
}

.site-drawer-open .menu-toggle span:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
}

.site-drawer-open .menu-toggle span:nth-child(2) {
    opacity: 0;
}

.site-drawer-open .menu-toggle span:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
}

.main-nav {
    display: flex;
    align-items: stretch;
    margin-left: 0;
    gap: 0.25rem;
    flex-wrap: nowrap;
    height: 76px;
    flex: none;
    min-width: 0;
}

.main-nav > a,
.main-nav .nav-dropdown > a {
    color: #f8fafc;
    text-transform: uppercase;
    font-size: 0.92rem;
    font-weight: 500;
    letter-spacing: 0.035em;
    padding: 0 0.55rem;
    border-radius: 0;
    transition: color 0.2s ease, background-color 0.2s ease;
    display: inline-flex;
    align-items: center;
    height: 76px;
    min-height: 0;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
    box-sizing: border-box;
}

.main-nav > a:hover,
.main-nav .nav-dropdown > a:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    border-bottom-color: rgba(255, 255, 255, 0.55);
}

.main-nav > a.active,
.main-nav .nav-dropdown > a.active {
    color: #ffffff;
    background: transparent;
    border-bottom-color: #ffd84d;
}

.nav-dropdown {
    position: relative;
    display: flex;
    align-items: stretch;
    height: 100%;
}

.nav-dropdown > a::after {
    content: '\25BE';
    margin-left: 0.3rem;
    font-size: 0.56rem;
    opacity: 0.65;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 0.3rem);
    left: 0;
    min-width: 190px;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    padding: 0.35rem;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    box-shadow: 0 16px 30px rgba(2, 6, 23, 0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    z-index: 22;
}

.dropdown-menu a {
    color: #374151;
    padding: 0.45rem 0.65rem;
    border-radius: 7px;
    font-weight: 400;
    transition: background-color 0.2s ease, color 0.2s ease, padding-left 0.2s ease;
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu:not(.dropdown-menu--contato) a:hover { background: #f3f4f6; color: #111827; padding-left: 1.3rem; }

.dropdown-menu--contato {
    min-width: 268px;
    padding: 0;
    gap: 0;
    border-radius: 4px;
    border: 1px solid #374151;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.14);
}

.dropdown-menu--contato .dropdown-contact-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.72rem 1rem;
    border-radius: 0;
    border-bottom: 1px solid #e8e8e8;
    color: #6b7280;
    font-weight: 400;
    font-size: 0.9rem;
    line-height: 1.35;
    text-decoration: none;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.dropdown-menu--contato .dropdown-contact-link:last-child {
    border-bottom: 0;
}

.dropdown-menu--contato .dropdown-contact-link:hover {
    background: #f3f4f6;
    color: #4b5563;
    padding-left: 1rem;
}

.dropdown-contact-icon {
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    color: #6b7280;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.dropdown-contact-icon svg {
    width: 22px;
    height: 22px;
    display: block;
}

.dropdown-contact-icon--whatsapp {
    color: #6b7280;
}

.dropdown-contact-icon--whatsapp svg {
    width: 22px;
    height: 22px;
}

.dropdown-contact-text {
    flex: 1;
    min-width: 0;
    color: inherit;
}

.dropdown-menu--imoveis .dropdown-contact-link {
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}

.dropdown-link-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #9ca3af;
}

.dropdown-link-arrow svg {
    width: 16px;
    height: 16px;
    display: block;
}

.dropdown-menu--imoveis .dropdown-contact-link:hover .dropdown-link-arrow {
    color: #6b7280;
}

/* Hover style like reference menu: highlighted parent tab */
.nav-dropdown:hover > a,
.nav-dropdown:focus-within > a {
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
    border-bottom-color: rgba(255, 255, 255, 0.55);
}

.logo { display: inline-flex; align-items: center; transform: none; transform-origin: center center; }
.logo img { height: 72px !important; width: auto; display: block; max-height: none; transform: none; }

.site-drawer-backdrop {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(15, 23, 42, 0.45);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.28s ease, visibility 0.28s ease;
    pointer-events: none;
}

.site-drawer-backdrop.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.site-drawer {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 210;
    width: min(100%, 380px);
    height: 100%;
    max-height: 100dvh;
    background: #ffffff;
    box-shadow: -8px 0 32px rgba(15, 23, 42, 0.18);
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.22, 0.61, 0.36, 1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.site-drawer.is-open {
    transform: translateX(0);
}

.site-drawer-inner {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 1.15rem 1.5rem;
    -webkit-overflow-scrolling: touch;
}

.site-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e8ecf4;
}

.site-drawer-logo img {
    height: auto;
    max-height: 52px;
    width: auto;
    max-width: min(200px, 58vw);
    display: block;
    object-fit: contain;
}

.site-drawer-close {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: none;
    background: #3B4F96;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    transition: background 0.15s ease, transform 0.15s ease;
}

.site-drawer-close:hover {
    background: #2f407d;
}

.site-drawer-search {
    display: flex;
    align-items: stretch;
    gap: 0;
    margin-bottom: 1.25rem;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #d7deea;
    background: #f1f5f9;
}

.site-drawer-search input {
    flex: 1;
    border: 0;
    background: transparent;
    padding: 0.65rem 0.85rem;
    font: inherit;
    font-size: 0.95rem;
    color: #334155;
    min-width: 0;
}

.site-drawer-search input::placeholder {
    color: #94a3b8;
}

.site-drawer-search-btn {
    flex-shrink: 0;
    width: 48px;
    border: 0;
    background: #3B4F96;
    color: #ffffff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease;
}

.site-drawer-search-btn:hover {
    background: #2f407d;
}

.site-drawer-section-title {
    margin: 0 0 0.65rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: #3B4F96;
    letter-spacing: 0.02em;
}

.site-drawer-nav {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    margin-bottom: 1.5rem;
}

.site-drawer-nav > a {
    display: block;
    padding: 0.55rem 0;
    color: #475569;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    border-bottom: 1px solid transparent;
}

.site-drawer-nav > a:hover,
.site-drawer-nav > a.is-active {
    color: #3B4F96;
}

.site-drawer-dropdown {
    border-bottom: 1px solid #eef2f7;
    padding-bottom: 0.35rem;
    margin-bottom: 0.25rem;
}

.site-drawer-dropdown:last-of-type {
    border-bottom: 0;
}

.site-drawer-dropdown-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.55rem 0;
    border: 0;
    background: none;
    font: inherit;
    font-size: 1rem;
    font-weight: 500;
    color: #475569;
    text-align: left;
    cursor: pointer;
}

.site-drawer-dropdown-trigger::after {
    content: '\25BE';
    font-size: 0.65rem;
    opacity: 0.7;
    display: inline-block;
    transition: transform 0.2s ease;
}

.site-drawer-dropdown-trigger[aria-expanded="true"]::after {
    transform: rotate(180deg);
}

.site-drawer-dropdown-panel {
    display: flex;
    flex-direction: column;
    padding: 0.15rem 0 0.5rem 0.65rem;
    gap: 0.2rem;
}

.site-drawer-dropdown-panel a {
    color: #64748b;
    font-size: 0.92rem;
    padding: 0.35rem 0;
    text-decoration: none;
}

.site-drawer-dropdown-panel a:hover {
    color: #3B4F96;
}

.site-drawer-social {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    padding-top: 0.25rem;
}

.site-drawer-social-link {
    color: #3B4F96;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    opacity: 0.9;
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.site-drawer-social-link:hover {
    opacity: 1;
    transform: translateY(-1px);
}

body.site-drawer-open {
    overflow: hidden;
}

.header-cta {
    border-radius: 999px;
    background: linear-gradient(135deg, #ffd84d, #f5b800);
    color: #1f2f63;
    padding: 0.55rem 1rem;
    font-weight: 700;
    font-size: 0.9rem;
    border: 1px solid rgba(31, 47, 99, 0.18);
    box-shadow: 0 8px 20px rgba(12, 19, 44, 0.22);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}
.header-cta:hover {
    color: #1f2f63;
    filter: brightness(1.04);
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(12, 19, 44, 0.28);
}
.header-cta.active {
    background: #f8fafc;
    color: #1f2f63;
}

@media (min-width: 681px) {
    .header-cta {
        position: absolute;
        right: 0;
    }
}
.hero { width: 100%; padding: 0; background: #091b2a; }
.hero-search-bar { padding: 1.1rem 0 1.35rem; }
.hero-slideshow {
    position: relative;
    width: 100%;
    aspect-ratio: 2148 / 731;
    overflow: hidden;
    background: #091b2a;
}
.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
}
.hero-slide.active {
    opacity: 1;
    pointer-events: auto;
}
.hero-inner { text-align: center; margin-top: -0.4rem; }
.hero h1 { font-size: clamp(1.8rem, 4vw, 3rem); max-width: 860px; margin: 0 auto 1rem; }
.hero p { color: #334155; }
.hero-topo-sonhos {
    width: 100%;
    height: 100%;
    margin: 0;
    object-fit: contain;
    object-position: center top;
    display: block;
}
.hero-search { margin-top: 0.85rem; }

/* Home: busca — azul do topo (#3B4F96); largura do bloco limitada; altura dos campos confortável */
.home-search-section {
    padding: 0.75rem 0 0;
    background: #f0f0f2;
    border-bottom: 4px solid #3B4F96;
}
.home-search-form {
    padding-bottom: 0.85rem;
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
}
.home-search-head {
    margin-bottom: 0.55rem;
}
.home-search-title {
    margin: 0;
    text-align: center;
    font-size: clamp(1.15rem, 2.6vw, 1.5rem);
    font-weight: 700;
    color: #3B4F96;
    line-height: 1.25;
}
.home-search-tabs {
    display: flex;
    align-items: center;
    gap: 1.15rem;
    margin: 0 0 0.7rem;
    padding: 0 0 0.2rem;
    border-bottom: 1px solid #d4d7de;
}
.home-search-tab {
    appearance: none;
    border: 0;
    background: transparent;
    color: #5a6885;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.2;
    padding: 0.15rem 0;
    cursor: pointer;
}
.home-search-tab.is-active {
    color: #3B4F96;
}
.home-search-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.45rem 0.65rem;
    align-items: start;
}
.home-search-grid.is-codigo {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.home-search-grid.is-codigo .home-search-field:not(.home-search-field--codigo) {
    display: none;
}
.home-search-field--codigo {
    grid-column: 1 / -1;
}
.home-search-field label {
    display: block;
    margin-bottom: 0.2rem;
    font-size: 0.78rem;
    font-weight: 700;
    color: #3B4F96;
}
.home-search-field input,
.home-search-select-wrap select {
    width: 100%;
    margin: 0;
    padding: 0.38rem 1.65rem 0.38rem 2rem;
    font-size: 0.8rem;
    line-height: 1.35;
    color: #374151;
    background: #fff;
    border: 1px solid #c9cdd4;
    border-radius: 2px;
    box-sizing: border-box;
}
.home-search-field input::placeholder {
    color: #9ca3af;
    font-size: 0.78rem;
}
.home-search-select-wrap {
    position: relative;
}
.home-search-input-wrap {
    position: relative;
}
.home-search-icon {
    position: absolute;
    left: 0.58rem;
    top: 50%;
    transform: translateY(-50%);
    color: #3B4F96;
    line-height: 1;
    pointer-events: none;
    width: 1rem;
    height: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.home-search-icon svg {
    width: 1rem;
    height: 1rem;
    display: block;
}
.home-search-icon svg path,
.home-search-icon svg circle {
    stroke: currentColor;
    stroke-width: 1.8;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.home-search-select-wrap select {
    appearance: none;
    cursor: pointer;
    color: #5f6368;
    font-size: 0.8rem;
}
.home-search-field input:focus,
.home-search-select-wrap select:focus {
    outline: none;
    border-color: #3B4F96;
    box-shadow: 0 0 0 1px rgba(59, 79, 150, 0.35);
}
.home-search-select-wrap::after {
    content: "";
    position: absolute;
    right: 0.45rem;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid #6b7280;
    pointer-events: none;
}
.home-search-submit-wrap {
    grid-column: 1;
    grid-row: 2;
    margin-top: 0.05rem;
}
.home-search-submit {
    display: inline-block;
    min-width: 104px;
    padding: 0.45rem 0.95rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: #ffffff;
    background: #3B4F96;
    border: 1px solid #2e3f7a;
    border-radius: 2px;
    cursor: pointer;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.12) inset;
}
.home-search-submit:hover {
    background: #2f407d;
    filter: none;
}
.home-search-submit:active {
    transform: translateY(1px);
}

@media (max-width: 900px) {
    .home-search-tabs {
        gap: 0.9rem;
        overflow-x: auto;
        white-space: nowrap;
    }
    .home-search-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .home-search-submit-wrap {
        grid-column: 1 / -1;
        grid-row: auto;
    }
}

/* Catálogo /imoveis: grid + sidebar de filtros */
.imoveis-catalog-section {
    padding-top: 1rem;
}
.imoveis-catalog-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
}
.imoveis-catalog-h1 {
    margin: 0;
    flex: 1;
    min-width: 0;
}
.imoveis-filters-toggle {
    display: none;
    flex-shrink: 0;
    width: 46px;
    height: 38px;
    border-radius: 12px;
    border: none;
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.12);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 0;
}
.imoveis-filters-toggle span {
    width: 20px;
    height: 2.5px;
    border-radius: 999px;
    background: #3b4f96;
    display: block;
    transition: transform 0.22s ease, opacity 0.22s ease;
}
body.imoveis-filters-open .imoveis-filters-toggle span:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
}
body.imoveis-filters-open .imoveis-filters-toggle span:nth-child(2) {
    opacity: 0;
}
body.imoveis-filters-open .imoveis-filters-toggle span:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
}
.imoveis-filters-shell {
    min-width: 0;
}
.imoveis-filters-backdrop {
    display: none;
}
.imoveis-filters-panel-head {
    display: none;
}
.imoveis-filters-close {
    display: none;
}
.imoveis-catalog-form.smart-search {
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 0;
}
.imoveis-layout {
    display: grid;
    grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
    gap: 1.5rem;
    align-items: start;
}
.imoveis-filters-inner {
    background: #fff;
    border: 1px solid #e3e3e6;
    border-radius: 10px;
    padding: 1rem 0.9rem 1.1rem;
    position: sticky;
    top: 0.75rem;
}
.imoveis-filters-title {
    margin: 0 0 0.75rem;
    font-size: 1.05rem;
    color: #1e293b;
}
.imoveis-filter-block {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e8e8ec;
}
.imoveis-filter-mcmv {
    border-bottom: 1px solid #e8e8ec;
}
.imoveis-filter-label {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 0.35rem;
}
.imoveis-filter-op {
    margin-top: 0.25rem;
}
.imoveis-filter-op select {
    width: 100%;
    padding: 0.35rem 0.5rem;
    font-size: 0.82rem;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    color: #3B4F96;
    font-weight: 600;
    background: #fff;
}
.imoveis-filter-op--full {
    margin-top: 0.35rem;
}
.imoveis-filter-nums {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.5rem;
}
.imoveis-num-chip {
    position: relative;
    cursor: pointer;
}
.imoveis-num-chip input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}
.imoveis-num-chip span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    border: 1px solid #cbd5e1;
    font-size: 0.85rem;
    color: #475569;
}
.imoveis-num-chip input:checked + span,
.imoveis-num-chip input:focus-visible + span {
    border-color: #3B4F96;
    background: #3B4F96;
    color: #fff;
}
.imoveis-seg2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-top: 0.35rem;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    overflow: hidden;
}
.imoveis-seg2-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.45rem;
    font-size: 0.88rem;
    cursor: pointer;
    border-right: 1px solid #cbd5e1;
}
.imoveis-seg2-item:last-child {
    border-right: 0;
}
.imoveis-seg2-item input {
    margin: 0;
}
.imoveis-filters-subtitle {
    margin: 1rem 0 0.5rem;
    font-size: 0.95rem;
    color: #1e293b;
}
.imoveis-check-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.45rem;
}
.imoveis-check-list li {
    margin: 0;
    width: 100%;
}
.imoveis-check {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.5rem;
    font-size: 0.86rem;
    cursor: pointer;
    width: 100%;
    text-align: left;
}
.imoveis-check input[type="checkbox"] {
    margin: 0;
    flex-shrink: 0;
    width: 1rem;
    height: 1rem;
    align-self: center;
}
.imoveis-check span {
    line-height: 1.35;
}
.imoveis-filter-row2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}
.imoveis-mini-field span {
    display: block;
    font-size: 0.78rem;
    color: #64748b;
    margin-bottom: 0.2rem;
}
.imoveis-mini-field input {
    width: 100%;
    padding: 0.4rem 0.45rem;
    font-size: 0.86rem;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    box-sizing: border-box;
}
.imoveis-filters-submit {
    width: 100%;
    margin-top: 1rem;
}
.imoveis-main {
    min-width: 0;
}
.imoveis-toolbar {
    margin: 0 0 1rem;
    font-size: 0.95rem;
    color: #334155;
}
.imoveis-toolbar-sep {
    margin: 0 0.35rem;
    color: #94a3b8;
}
@media (max-width: 900px) {
    .imoveis-filters-toggle {
        display: inline-flex;
    }
    .imoveis-layout {
        grid-template-columns: 1fr;
    }
    .imoveis-filters-shell {
        width: 0;
        height: 0;
        min-height: 0;
        padding: 0;
        margin: 0;
        overflow: visible;
        position: relative;
        z-index: 220;
        pointer-events: none;
    }
    .imoveis-filters-shell.is-open {
        pointer-events: auto;
    }
    .imoveis-filters-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(15, 23, 42, 0.45);
        z-index: 220;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.22s ease, visibility 0.22s ease;
    }
    .imoveis-filters-shell.is-open .imoveis-filters-backdrop {
        opacity: 1;
        visibility: visible;
    }
    .imoveis-filters-panel-inner {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: min(100%, 400px);
        max-width: 100vw;
        background: #f8fafc;
        z-index: 225;
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        transform: translateX(100%);
        transition: transform 0.26s ease;
        box-shadow: -6px 0 28px rgba(15, 23, 42, 0.14);
        display: flex;
        flex-direction: column;
    }
    .imoveis-filters-shell.is-open .imoveis-filters-panel-inner {
        transform: translateX(0);
    }
    .imoveis-filters-panel-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.75rem;
        padding: 0.85rem 1rem;
        background: #fff;
        border-bottom: 1px solid #e3e3e6;
        position: sticky;
        top: 0;
        z-index: 2;
    }
    .imoveis-filters-panel-title {
        font-size: 1.1rem;
        font-weight: 700;
        color: #1e293b;
    }
    .imoveis-filters-close {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        margin: 0;
        padding: 0;
        border: none;
        border-radius: 10px;
        background: #f1f5f9;
        color: #334155;
        font-size: 1.5rem;
        line-height: 1;
        cursor: pointer;
    }
    .imoveis-filters-close:hover {
        background: #e2e8f0;
    }
    .imoveis-filters {
        flex: 1;
        min-height: 0;
    }
    .imoveis-filters-inner {
        position: static;
        border-radius: 0;
        border: 0;
        background: transparent;
        padding: 1rem 0.9rem 1.5rem;
    }
}
body.imoveis-filters-open {
    overflow: hidden;
}
@media (min-width: 901px) {
    body.imoveis-filters-open {
        overflow: auto;
    }
}

.smart-search {
    background: #f3f3f4;
    border: 1px solid #e3e3e6;
    border-radius: 10px;
    padding: 1.05rem 1rem 0.95rem;
}
.smart-search-card {
    display: grid;
    gap: 0.9rem;
}
.smart-search-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
}
.smart-search-head h2 {
    margin: 0;
    font-size: 1.9rem;
    color: #3B4F96;
    font-weight: 700;
}
.smart-search-head a {
    color: #3B4F96;
    font-weight: 500;
    text-decoration: underline;
}
.smart-search-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.8rem;
}
.smart-search-row--reference {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
}
.smart-search-row--reference .smart-search-field {
    margin: 0;
}
.smart-search-row--reference .smart-search-field input {
    margin-top: 0;
    border-radius: 0;
    background: #fff;
    border-color: #dbdde2;
    color: #5f6368;
}
.smart-search-field {
    margin: 0;
}
.smart-search-field span {
    display: block;
    margin-bottom: 0.28rem;
    color: #3B4F96;
    font-weight: 700;
    font-size: 1rem;
}
.smart-search-field select {
    margin-top: 0;
    border-radius: 0;
    background: #fff;
    border-color: #dbdde2;
    color: #5f6368;
}
.smart-search-submit {
    justify-self: end;
    min-width: 124px;
    border-radius: 2px;
    padding: 0.68rem 1.25rem;
    background: #3B4F96;
    color: #ffffff;
    font-weight: 500;
}
.smart-search-submit:hover {
    filter: none;
    background: #2f407d;
}
.property-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.1rem;
}
.property-card { background: #fff; border-radius: 6px; overflow: hidden; border: 1px solid #d8dee8; box-shadow: none; display: flex; flex-direction: column; height: 100%; }
.property-card[data-url] { cursor: pointer; }
.property-media { position: relative; }
.property-card img { height: 190px; width: 100%; object-fit: cover; }
.property-media[data-card-carousel] img[data-card-image] { cursor: pointer; }
.card-carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 999px;
    background: rgba(17, 24, 39, 0.55);
    color: #fff;
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s ease;
}
.card-carousel-nav.prev { left: 0.45rem; }
.card-carousel-nav.next { right: 0.45rem; }
.property-media:hover .card-carousel-nav { opacity: 1; }
.property-destaque-tag {
    position: absolute;
    left: 0.7rem;
    top: 0.7rem;
    z-index: 1;
    background: linear-gradient(135deg, #e11d48, #be123c);
    color: #fff;
    padding: 0.22rem 0.55rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(190, 18, 60, 0.35);
}
.property-purpose-tag {
    position: absolute;
    right: 0.7rem;
    bottom: 0.7rem;
    background: #3B4F96;
    color: #fff;
    padding: 0.2rem 0.48rem;
    border-radius: 3px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    max-width: calc(100% - 1.4rem);
    text-align: center;
}
.favorite-overlay {
    position: absolute;
    right: 0.7rem;
    top: 0.7rem;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    border: 0;
    background: rgba(17, 24, 39, 0.55);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    cursor: pointer;
}
.favorite-overlay.favorite-btn.active { background: #3B4F96; color: #fff; }
.favorite-overlay:hover { background: rgba(17, 24, 39, 0.78); }
.property-card .content { padding: 0.85rem 0.85rem 0.9rem; display: flex; flex-direction: column; gap: 0.4rem; flex: 1; }
.property-card .content h3 {
    margin: 0;
    line-height: 1.3;
    min-height: 1.35rem;
    font-size: 1.02rem;
    font-weight: 700;
    color: #374151;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}
.property-card .content > p {
    margin: 0;
    color: #5b6778;
    min-height: 1.45rem;
    font-size: 0.9rem;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.property-card ul { margin: 0.45rem 0; padding-left: 1rem; color: #5b6778; font-size: 0.92rem; }
.property-card strong { display: block; margin-top: auto; color: #3B4F96; font-size: 1.45rem; font-weight: 800; }
.property-features { list-style: none; margin: 0.4rem 0; padding: 0; display: grid; gap: 0.25rem; color: #5b6778; font-size: 0.95rem; }
.property-features li { display: flex; align-items: center; gap: 0.4rem; }
.feature-icon {
    width: 14px;
    height: 14px;
    display: inline-block;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    opacity: 0.9;
}
.feature-bed {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234b5563' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 10h18v7H3z'/%3E%3Cpath d='M7 10V7h4a2 2 0 0 1 2 2v1'/%3E%3Cpath d='M3 17v2M21 17v2'/%3E%3C/svg%3E");
}
.feature-car {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234b5563' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='10' width='18' height='6' rx='1'/%3E%3Cpath d='M6 10l2-3h8l2 3'/%3E%3Ccircle cx='8' cy='17' r='1.5'/%3E%3Ccircle cx='16' cy='17' r='1.5'/%3E%3C/svg%3E");
}
.feature-suite {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234b5563' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 13h14v6H5z'/%3E%3Cpath d='M7 13V9a2 2 0 0 1 2-2h6a2 2 0 0 1 2 2v4'/%3E%3Cpath d='M9 17h.01M15 17h.01'/%3E%3C/svg%3E");
}
.feature-bath {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234b5563' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 11h16v2a4 4 0 0 1-4 4H8a4 4 0 0 1-4-4z'/%3E%3Cpath d='M7 11V7a2 2 0 0 1 4 0v1'/%3E%3C/svg%3E");
}
.feature-area {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234b5563' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 21L21 3'/%3E%3Cpath d='M9 3H3v6'/%3E%3Cpath d='M15 21h6v-6'/%3E%3C/svg%3E");
}
.feature-elevator {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234b5563' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='3' width='16' height='18' rx='1'/%3E%3Cpath d='M12 7v10M9 9l3-3 3 3M9 15l3 3 3-3'/%3E%3C/svg%3E");
}
.feature-furniture {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234b5563' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='13' rx='2'/%3E%3Cpath d='M8 20h8'/%3E%3Cpath d='M12 17v3'/%3E%3C/svg%3E");
}
.actions-row { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.property-card .actions-row { margin-top: 0.55rem; }
.property-card .content > .btn.btn-sm { margin-top: 0.55rem; align-self: flex-start; }
.favorite-btn.active { background: #3B4F96; color: #fff; }
.property-card .btn.btn-sm {
    background: linear-gradient(135deg, #ffd24f, #f5b800);
    color: #2a2f3a;
    border: 1px solid #d39b00;
}
.property-card .btn.btn-sm:hover {
    background: linear-gradient(135deg, #ffec96, #ffc923);
}

.property-card-modern {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 0;
    border: 1px solid #d8dee8;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}
.property-card-modern .property-media {
    min-height: 220px;
}
.property-card-modern img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}
.property-card-modern .property-base {
    background: #3B4F96;
    color: #fff;
    padding: 0.72rem 1rem 0.8rem;
    min-height: 0;
    min-width: 0;
    overflow: hidden;
}
.property-card-modern .property-base h3,
.property-card-modern .property-base .property-price-label,
.property-card-modern .property-base .property-price-lg,
.property-card-modern .property-base .property-location-text {
    color: #fff;
}
.property-card-modern .property-base h3 {
    margin: 0 0 0.25rem;
    font-size: 1.2rem;
    font-weight: 400;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}
.property-card-modern .property-base .property-price-label {
    font-size: 0.84rem;
    font-weight: 400;
    min-height: 1.1rem;
}
.property-card-modern .property-base .property-price-lg {
    font-size: 1.65rem;
    font-weight: 400;
}
.property-card-modern .property-base .property-location-text {
    font-size: 1rem;
    font-weight: 400;
}
.property-price-label {
    display: block;
    font-size: 0.84rem;
    color: rgba(255, 255, 255, 0.86);
    margin-bottom: 0.15rem;
    font-weight: 400;
}
.property-price-label--placeholder {
    visibility: hidden;
}
.property-card-modern .property-price-lg {
    display: block;
    margin: 0;
    font-size: 1.75rem;
    line-height: 1.1;
    font-weight: 600;
}
.property-location-text {
    margin: 0.45rem 0 0;
    font-weight: 400;
    line-height: 1.28;
    font-size: 1rem;
}
.property-card-modern .property-base .property-location-text {
    color: rgba(255, 255, 255, 0.92);
}
.property-card-modern .property-ref-tag {
    background: rgba(9, 20, 36, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.22);
}
.property-card-modern .property-purpose-tag {
    background: #c9ad83;
    color: #1f2937;
}
.property-card-modern .property-purpose-tag--venda {
    background: #ffd54f;
    color: #1a1a1a;
}

.detail-page { display: grid; grid-template-columns: 1.2fr 1fr; gap: 1rem; }
.slider { position: relative; overflow: hidden; border-radius: 18px; box-shadow: var(--shadow); min-height: 320px; }
.slider img { width: 100%; height: 420px; object-fit: cover; display: none; }
.slider img:first-child { display: block; }
.detail-content .price-lg { font-size: 2rem; color: var(--brand); }
.quick-specs { display: flex; gap: 0.6rem; flex-wrap: wrap; margin: 0.8rem 0; }
.quick-specs span { background: #ecfeff; color: #155e75; border-radius: 999px; padding: 0.35rem 0.7rem; }

/* Imóveis similares: markup em section própria após .property-page (imovel.php), para o aside sticky não sobrepor o carrossel ao rolar */
.property-page { display: grid; grid-template-columns: 2fr 1fr; gap: 1rem; align-items: start; }
.property-main-col { display: grid; gap: 1rem; }
.property-gallery { padding: 0.7rem; }
.gallery-stage { position: relative; border-radius: 14px; overflow: hidden; }
.gallery-main { width: 100%; height: 460px; border-radius: 14px; object-fit: contain; object-position: center; background: #f8fafc; cursor: zoom-in; }
.gallery-main-video { width: 100%; height: 460px; border-radius: 14px; object-fit: contain; background: #0f172a; display: block; }
.is-hidden { display: none !important; }
.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.45);
    color: #fff;
    font-size: 1.9rem;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
}
.gallery-nav.prev { left: 0.7rem; }
.gallery-nav.next { right: 0.7rem; }
.gallery-nav:hover { background: rgba(15, 23, 42, 0.68); }
.gallery-counter {
    position: absolute;
    right: 0.7rem;
    bottom: 0.7rem;
    z-index: 2;
    background: rgba(15, 23, 42, 0.58);
    color: #fff;
    border-radius: 999px;
    padding: 0.32rem 0.62rem;
    font-size: 0.84rem;
    font-weight: 700;
}
.gallery-thumbs { margin-top: 0.55rem; display: grid; grid-template-columns: repeat(6, 1fr); gap: 0.45rem; }
.thumb { border: 2px solid transparent; border-radius: 10px; padding: 0; background: transparent; cursor: pointer; overflow: hidden; }
.thumb { position: relative; }
.thumb img { width: 100%; height: 76px; object-fit: contain; object-position: center; background: #f8fafc; display: block; }
.thumb-video-badge { position: absolute; top: 6px; right: 6px; z-index: 1; background: rgba(15, 23, 42, 0.82); color: #fff; font-size: 0.62rem; font-weight: 700; letter-spacing: 0.04em; padding: 0.18rem 0.3rem; border-radius: 6px; }
.thumb.active { border-color: #f5b800; }

.gallery-existing figure img,
.gallery-upload-preview figure img {
    width: 100%;
    height: 120px;
    object-fit: contain;
    object-position: center;
    background: #f8fafc;
}

.gallery-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(8, 15, 30, 0.9);
    z-index: 110;
    display: block;
    padding: 0.75rem;
}
.gallery-lightbox[hidden] { display: none; }
.lightbox-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 0;
    height: calc(100vh - 1.5rem);
    border-radius: 12px;
    overflow: hidden;
}
.lightbox-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0.75rem;
    background: rgba(4, 10, 20, 0.75);
    backdrop-filter: blur(6px);
    flex-shrink: 0;
    gap: 0.5rem;
}
.lightbox-topbar-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.lightbox-mais-fotos {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.75rem;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 999px;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s;
}
.lightbox-mais-fotos:hover { background: rgba(255, 255, 255, 0.25); }
.lightbox-gallery-area {
    position: relative;
    background: rgba(4, 10, 20, 0.92);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.lightbox-frame {
    position: relative;
    flex: 1 1 0;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 3.75rem;
    background: #10192a;
    overflow: hidden;
}
.lightbox-frame img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center;
    display: block;
}
.lightbox-close {
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    flex-shrink: 0;
}
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    z-index: 3;
    transition: background 0.15s;
}
.lightbox-nav:hover { background: rgba(255, 255, 255, 0.32); }
.lightbox-nav.prev { left: 0.75rem; }
.lightbox-nav.next { right: 0.75rem; }
.lightbox-counter {
    background: rgba(15, 23, 42, 0.58);
    color: #fff;
    border-radius: 999px;
    padding: 0.28rem 0.65rem;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    white-space: nowrap;
}
.lightbox-contact-panel {
    background: #fff;
    padding: 1rem 1.1rem;
    overflow-y: auto;
    border-left: 1px solid #e2e8f0;
}
.lightbox-broker-head {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}
.lightbox-broker-photo {
    width: 60px;
    height: 60px;
    border-radius: 999px;
    object-fit: cover;
    border: 1px solid #dbe4f3;
}
.lightbox-broker-name {
    display: block;
    color: #1f2937;
    font-size: 0.68rem;
    line-height: 1.2;
}
.lightbox-broker-creci {
    display: block;
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.03em;
}
.lightbox-broker-link {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: #334155;
    margin-bottom: 0.25rem;
}
.lightbox-contact-panel h4 {
    margin: 0.7rem 0 0.55rem;
    color: #0f355f;
    font-size: 1.45rem;
}
.lightbox-contact-form label { margin-bottom: 0.45rem; }
.lightbox-contact-form input,
.lightbox-contact-form textarea {
    width: 100%;
    border: 1px solid #d7deea;
    border-radius: 8px;
    padding: 0.62rem 0.7rem;
}
.lightbox-contact-actions {
    margin-top: 0.55rem;
    display: flex;
    gap: 0.5rem;
}
.lightbox-contact-actions .btn { flex: 1; }

.lightbox-close-inline {
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 999px;
    background: #e2e8f0;
    color: #1f2937;
    font-size: 1.3rem;
    line-height: 1;
    cursor: pointer;
}

.lightbox-contact-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.55rem;
}
.lightbox-thumbs-strip {
    flex: 0 0 0px;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0 0.75rem;
    background: rgba(5, 14, 28, 0.75);
    transition: flex-basis 0.25s ease, padding 0.25s ease;
    scrollbar-width: thin;
}
.lightbox-frame video { width: 100%; max-height: 78vh; object-fit: contain; background: #000; }
.lightbox-gallery-area.show-thumbs .lightbox-thumbs-strip {
    flex-basis: 92px;
    padding: 0.4rem 0.75rem;
    overflow-x: auto;
}
.lightbox-thumb {
    flex: 0 0 auto;
    border: 2px solid transparent;
    border-radius: 9px;
    padding: 0;
    background: transparent;
    cursor: pointer;
    overflow: hidden;
    transition: border-color 0.12s;
}
.lightbox-thumb img { width: 96px; height: 62px; object-fit: cover; display: block; }
.lightbox-thumb.active { border-color: #f5b800; }

@media (max-width: 980px) {
    .lightbox-shell {
        grid-template-columns: 1fr;
        height: calc(100vh - 1.5rem);
    }
    .lightbox-contact-panel {
        display: none;
    }
}

.property-cod { display: block; color: #64748b; font-size: 0.85rem; margin-bottom: 0.3rem; }
.property-heading-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.8rem; margin-bottom: 0.45rem; }
.property-heading-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 0.4rem; }
.property-heading-cta { display: flex; align-items: center; gap: 0.45rem; flex-wrap: wrap; justify-content: flex-end; }
.property-heading-price { text-align: right; }
.property-heading-price .price-purpose { display: block; margin-bottom: 0.15rem; }
.property-heading-price .price-lg { display: block; line-height: 1.05; }
.property-heading-actions .btn { padding: 0.35rem 0.72rem; border-radius: 8px; font-size: 0.8rem; }
.property-heading h1 { margin: 0; }
.property-location { margin: 0; color: #475569; font-size: 1.05rem; }
.property-kpis-card { padding: 0.9rem 1rem; }
.property-kpis-icons {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0.45rem;
    text-align: center;
}
.property-kpi-item {
    padding: 0.3rem 0.2rem;
    color: #1f2937;
}
.kpi-icon {
    width: 34px;
    height: 34px;
    margin: 0 auto 0.35rem;
    display: block;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}
.kpi-area {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233B4F96' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='7' y='7' width='10' height='10' rx='1.2'/%3E%3Cpath d='M3.5 3.5h4v4h-4zM16.5 3.5h4v4h-4zM3.5 16.5h4v4h-4zM16.5 16.5h4v4h-4z'/%3E%3Cpath d='M7.5 5.5h9M7.5 18.5h9M5.5 7.5v9M18.5 7.5v9'/%3E%3C/svg%3E");
}
.kpi-bed {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233B4F96' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 10h18v7H3z'/%3E%3Cpath d='M3 10V6.8A1.8 1.8 0 0 1 4.8 5h2.6A1.6 1.6 0 0 1 9 6.6V10'/%3E%3Cpath d='M10 10V7.8A1.8 1.8 0 0 1 11.8 6h7.4A1.8 1.8 0 0 1 21 7.8V10'/%3E%3Ccircle cx='6.3' cy='7.2' r='0.8'/%3E%3Cpath d='M4.6 17v2M19.4 17v2'/%3E%3C/svg%3E");
}
.kpi-bath {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233B4F96' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 11h16v2a4 4 0 0 1-4 4H8a4 4 0 0 1-4-4z'/%3E%3Cpath d='M7 11V7a2 2 0 0 1 4 0v1'/%3E%3Cpath d='M4 14h16'/%3E%3C/svg%3E");
}
.kpi-car {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233B4F96' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 13l1.8-4.5h12.4L20 13'/%3E%3Crect x='3' y='13' width='18' height='5' rx='1.6'/%3E%3Ccircle cx='7' cy='18' r='1.2'/%3E%3Ccircle cx='17' cy='18' r='1.2'/%3E%3C/svg%3E");
}
.kpi-furniture {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233B4F96' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='12' rx='2'/%3E%3Cpath d='M8 19h8'/%3E%3C/svg%3E");
}
.kpi-elevator {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233B4F96' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='6' y='3' width='12' height='18' rx='1.6'/%3E%3Cpath d='M12 3v18M9.2 7.2l1.8-1.8 1.8 1.8M14.8 16.8l-1.8 1.8-1.8-1.8'/%3E%3C/svg%3E");
}
.kpi-calendar {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233B4F96' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M16 3v4M8 3v4M3 10h18'/%3E%3Cpath d='M8 14h3M8 17h6'/%3E%3C/svg%3E");
}
.property-kpi-item strong {
    display: block;
    margin: 0;
    font-size: 1.01rem;
    font-weight: 400;
    color: #334155;
}
.property-kpi-item small {
    display: block;
    margin-top: 0.15rem;
    color: #334155;
    font-size: 0.9rem;
    min-height: 1.1em;
}

.property-detail-section {
    padding: 1rem 1.1rem;
}
.property-detail-title {
    margin: 0 0 0.85rem;
    font-size: 1.15rem;
    font-weight: 800;
    color: #111827;
}
.property-comodos-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
}
.property-comodo-cell {
    padding: 0.85rem 0.65rem;
    text-align: center;
    border-right: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
    font-size: 0.92rem;
    color: #374151;
}
.property-comodo-cell:nth-child(3n) {
    border-right: 0;
}
.property-comodo-cell:nth-child(n + 4) {
    border-bottom: 0;
}
.property-comodo-cell strong {
    display: block;
    font-size: 1.25rem;
    font-weight: 800;
    color: #111827;
    margin-bottom: 0.2rem;
}
.property-areas-box {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1rem 1.1rem;
}
.property-area-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
}
.property-area-label {
    color: #6b7280;
    font-size: 0.95rem;
}
.property-area-val {
    font-size: 1.15rem;
    color: #111827;
}
.property-carac-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
}
.property-carac-cell {
    padding: 0.75rem 0.5rem;
    text-align: center;
    border-right: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
    font-size: 0.9rem;
    color: #374151;
}
.property-carac-cell:nth-child(3n) {
    border-right: 0;
}
.property-valores-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
}
.property-valores-cell {
    padding: 0.85rem 0.65rem;
    border-right: 1px solid #e5e7eb;
    text-align: center;
}
.property-valores-cell:last-child {
    border-right: 0;
}
.property-valores-label {
    display: block;
    font-size: 0.82rem;
    color: #6b7280;
    margin-bottom: 0.35rem;
}
.property-outras-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
}
.property-outras-cell {
    padding: 0.75rem 0.6rem;
    border-right: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
    text-align: center;
}
.property-outras-cell:nth-child(3n) {
    border-right: 0;
}
/* 5 campos: linha 1 com 3 colunas, linha 2 com 2 metades (sem célula vazia) */
.property-outras-grid--count-5 {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}
.property-outras-grid--count-5 .property-outras-cell:nth-child(-n + 3) {
    grid-column: span 2;
}
.property-outras-grid--count-5 .property-outras-cell:nth-child(4),
.property-outras-grid--count-5 .property-outras-cell:nth-child(5) {
    grid-column: span 3;
}
.property-outras-grid--count-5 .property-outras-cell:nth-child(n + 4) {
    border-bottom: 0;
}
.property-outras-grid--count-5 .property-outras-cell:nth-child(4) {
    border-right: 1px solid #e5e7eb;
}
.property-outras-grid--count-5 .property-outras-cell:nth-child(5) {
    border-right: 0;
}
/* 4 campos (ex.: terreno): grade 2x2 */
.property-outras-grid--count-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.property-outras-grid--count-4 .property-outras-cell:nth-child(2n) {
    border-right: 0;
}
.property-outras-grid--count-4 .property-outras-cell:nth-child(n + 3) {
    border-bottom: 0;
}
.property-outras-grid--count-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.property-outras-grid--count-3 .property-outras-cell {
    border-bottom: 0;
}
.property-kpis-card--terreno .property-kpis-icons {
    grid-template-columns: repeat(auto-fit, minmax(168px, 1fr));
    max-width: 520px;
    margin: 0 auto;
}
.property-outras-label {
    display: block;
    font-size: 0.78rem;
    color: #6b7280;
    margin-bottom: 0.25rem;
}
.property-outras-grid .property-outras-label,
.property-outras-grid .property-outras-value,
.property-outras-extra-grid .property-outras-label,
.property-outras-extra-grid .property-outras-value {
    text-transform: uppercase;
    font-weight: 400;
    letter-spacing: 0.04em;
}
.property-outras-value {
    display: block;
    font-size: 0.95rem;
    color: #111827;
}
.property-outras-extra-grid .property-outras-value {
    font-size: 0.92rem;
}
.property-outras-extra-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(158px, 1fr));
    gap: 1px;
    margin-top: 0.85rem;
    background: #e5e7eb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
}
.property-outras-extra-grid .property-outras-cell {
    background: #fff;
    margin: 0;
}
.property-outras-extra-grid .property-outras-label {
    font-size: 0.78rem;
}
.property-proximidades-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.5rem;
    padding: 0.75rem 0.65rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}
.property-prox-sep {
    width: 1px;
    height: 1rem;
    background: #d1d5db;
    flex: 0 0 1px;
}
.property-prox-item {
    font-size: 0.92rem;
    color: #374151;
}
@media (max-width: 680px) {
    .property-comodos-grid,
    .property-valores-row,
    .property-outras-grid {
        grid-template-columns: 1fr;
    }
    .property-outras-grid--count-5 > .property-outras-cell {
        grid-column: 1 / -1;
    }
    .property-outras-grid--count-5 .property-outras-cell:nth-child(n + 4) {
        border-bottom: 1px solid #e5e7eb;
    }
    .property-outras-grid--count-5 .property-outras-cell:last-child {
        border-bottom: 0;
    }
    .property-outras-grid--count-4 > .property-outras-cell {
        grid-column: 1 / -1;
    }
    .property-comodo-cell,
    .property-valores-cell,
    .property-outras-cell {
        border-right: 0;
    }
    .property-comodo-cell:nth-child(n + 4) {
        border-bottom: 1px solid #e5e7eb;
    }
    .property-comodo-cell:last-child {
        border-bottom: 0;
    }
    .property-carac-grid {
        grid-template-columns: 1fr;
    }
    .property-carac-cell {
        border-right: 0;
    }
}

.property-description { text-align: justify; text-justify: inter-word; line-height: 1.7; }
.property-description ul,
.property-description ol { margin: 0 0 1rem 1.2rem; }

.property-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.info-list { margin: 0; padding-left: 1.1rem; color: #334155; }
.info-list li { margin-bottom: 0.4rem; }

.about-list {
    list-style: disc;
    margin: 0;
    padding-left: 1.1rem;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem 1.2rem;
    color: #334155;
}
.about-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.about-list .feature-icon {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
}


.property-side-col {
    display: grid;
    gap: 1rem;
    align-content: start;
    position: sticky;
    top: 112px;
    align-self: start;
    height: fit-content;
}
.property-contact-card {
    position: static;
    max-height: none;
    overflow: visible;
    padding: 0.85rem;
}
.property-contact-card .contact-intro {
    margin: 0 0 0.5rem;
    color: #334155;
    line-height: 1.35;
    font-size: 0.9rem;
}
.property-contact-card form label {
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
}
.property-contact-card input,
.property-contact-card textarea {
    padding: 0.55rem 0.7rem;
}
.property-contact-card textarea[name="mensagem"] {
    min-height: 64px;
}
.price-purpose { display: block; font-size: 1.05rem; font-weight: 700; color: #1f2f63; margin-bottom: 0.2rem; text-transform: capitalize; }
.property-ref { display: block; color: #64748b; margin-bottom: 0.35rem; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
iframe { width: 100%; height: 420px; min-height: 420px; border: 0; border-radius: 10px; display: block; }

/* Contato: mapa + Street View lado a lado (Google Maps Embed API) */
.location-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    align-items: stretch;
}
.location-split iframe {
    height: 380px;
    min-height: 280px;
}
.location-card .location-address {
    margin: 0.9rem 0 0;
    font-size: 1.05rem;
    color: #374151;
    line-height: 1.45;
}
.compare-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.site-footer { margin-top: 0; }
.footer-main { background: #3B4F96; color: #fff; padding: 2.4rem 0; }
.footer-grid { display: grid; grid-template-columns: 1fr 1.6fr 1fr; gap: 2rem; text-align: center; }
.footer-grid h4 { margin: 0 0 0.9rem; font-size: 1.45rem; font-weight: 500; }
.footer-grid p { margin: 0 0 0.7rem; font-size: 1.15rem; line-height: 1.35; }
.footer-grid a { color: #fff; }
.footer-grid section { display: flex; flex-direction: column; align-items: center; }
.footer-logo { margin: 0; font-size: 3.6rem; font-weight: 800; line-height: 1; }
.footer-logo-image {
    width: min(300px, 100%);
    height: auto;
    display: block;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.28)) contrast(1.08) saturate(1.05);
}
.footer-menu { display: grid; gap: 0.55rem; }
.footer-social { display: flex; gap: 0.6rem; align-items: center; justify-content: center; }
.footer-social-icon { width: 34px; height: 34px; border-radius: 50%; background: rgba(255, 255, 255, 0.2); display: inline-flex; align-items: center; justify-content: center; color: #fff; }
.footer-social-icon svg { width: 18px; height: 18px; }
.footer-social-icon:hover { background: rgba(255, 255, 255, 0.36); }

.footer-bottom { background: #2E3F7A; color: #fff; }
.footer-bottom-row {
    min-height: 56px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 0.75rem 1rem;
}
.footer-bottom-copy {
    margin: 0;
    font-size: 1.02rem;
    justify-self: start;
    text-align: left;
}
.footer-bottom-painel {
    justify-self: center;
}
.footer-bottom-row .footer-dev {
    margin: 0;
    font-size: 1.02rem;
    justify-self: end;
    text-align: right;
}
.footer-bottom-row p { margin: 0; font-size: 1.02rem; }
.footer-bottom a { color: #f5b800; text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom a:hover { color: #fff; }
.footer-bottom .corretor-area-link {
    color: #f5b800;
    text-decoration: none;
}
.footer-bottom .corretor-area-link:hover {
    color: #fff;
}

.corretor-area-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: transparent;
    padding: 0;
    border: 0;
    border-radius: 0;
    font-size: inherit;
    font-weight: 400;
    vertical-align: baseline;
    text-decoration: none;
    transition: color 0.15s ease, opacity 0.15s ease;
}
.corretor-area-link:hover {
    background: transparent;
    border: 0;
}
.corretor-area-link__icon {
    display: inline-flex;
    color: #22d3ee;
    flex-shrink: 0;
}
.corretor-area-link__icon svg {
    display: block;
}
.corretor-area-link__text {
    line-height: 1.25;
    letter-spacing: 0.01em;
}
.corretor-area-link--drawer {
    width: 100%;
    justify-content: flex-start;
    box-sizing: border-box;
    margin: 0.35rem 0 1rem;
    padding: 0.55rem 0;
    color: #475569;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    font-size: 1rem;
    font-weight: 400;
}
.corretor-area-link--drawer:hover {
    color: #3B4F96;
}
.corretor-area-link--drawer .corretor-area-link__icon {
    color: #22d3ee;
}
.footer-dev { display: inline-flex; align-items: center; gap: 0.55rem; }
.footer-dev-signature {
    display: inline-flex;
    align-items: baseline;
    gap: 0;
    font-family: "Segoe Script", "Brush Script MT", "Monotype Corsiva", cursive;
    font-size: 1.7rem;
    line-height: 1;
    color: #bcc3cf;
    font-weight: 400;
    letter-spacing: 0.01em;
    font-variant-ligatures: none;
    font-feature-settings: "liga" 0, "calt" 0;
    text-shadow: 0 2px 10px rgba(15, 23, 42, 0.28), 0 0 6px rgba(226, 232, 240, 0.28);
}
.footer-dev-signature-accent {
    color: #a855f7;
    text-shadow: 0 2px 10px rgba(168, 85, 247, 0.5), 0 0 8px rgba(192, 132, 252, 0.45);
}
a.footer-dev-link.footer-dev-signature {
    text-decoration: none;
    color: #bcc3cf;
}
a.footer-dev-link.footer-dev-signature:hover {
    opacity: 0.92;
}

@media (max-width: 1024px) {
    .cards-grid { grid-template-columns: repeat(2, 1fr); }
    .chart-grid { grid-template-columns: 1fr; }
    .dashboard-hero { flex-direction: column; }
    .dashboard-hero-actions { justify-content: flex-start; }
    .dashboard-overview-grid { grid-template-columns: 1fr; }
    .dashboard-access-grid { grid-template-columns: 1fr; }
    .dashboard-segmentation-grid { grid-template-columns: 1fr; }
    .dashboard-summary-list { grid-template-columns: 1fr; }
    .dashboard-access-split { grid-template-columns: 1fr; }
    /* .filters só existe no admin de imóveis; coluna única vem de .admin-main .filters (≤1199px) */
    .property-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
    .property-card-modern .property-media,
    .property-card-modern img { min-height: 200px; height: 200px; }
    .detail-page { grid-template-columns: 1fr; }
    .property-page { grid-template-columns: 1fr; }
    .property-side-col {
        position: static;
        right: auto;
        width: auto;
    }
    .property-contact-card {
        position: static;
        top: auto;
        max-height: none;
        overflow: visible;
    }
    .gallery-main, .gallery-main-video { height: 380px; }
    .gallery-thumbs { grid-template-columns: repeat(5, 1fr); }
    .compare-grid { grid-template-columns: 1fr; }
    .main-nav { gap: 1rem; font-size: 1.1rem; flex-wrap: wrap; }
    .logo { transform: none; }
    .logo img { height: 64px !important; transform: none; }
    .nav-row { height: 68px; }
    .main-nav { height: 68px; }
    .main-nav > a,
    .main-nav .nav-dropdown > a { height: 68px; }
}

@media (max-width: 680px) {
    html, body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }
    body {
        position: relative;
    }
    /* No celular, contatos ficam no rodape: remove faixa preta do topo */
    .header-brand {
        display: none !important;
    }
    /* Primeira pagina sem carrossel lateral: cards em coluna */
    .home-carousel {
        margin: 0;
    }
    .home-carousel__nav {
        display: none;
    }
    .home-carousel__track {
        display: grid;
        grid-template-columns: 1fr;
        gap: 0.95rem;
        overflow: visible;
        scroll-snap-type: none;
        padding: 0;
    }
    .home-carousel__slide {
        flex: 1 1 auto;
        width: 100%;
        max-width: 100%;
        scroll-snap-align: none;
    }
    .site-header,
    .hero,
    .hero-slideshow,
    .hero-search-bar,
    .home-search-section,
    .container,
    .main-nav,
    .dropdown-menu {
        max-width: 100vw;
    }
    .cards-grid, .property-grid, .two-col, .grid-form { grid-template-columns: 1fr; }
    .about-admin-form .about-admin-text,
    .about-admin-form .about-admin-photo-current,
    .about-admin-form .about-admin-photo-upload {
        grid-column: 1;
    }
    .smart-search {
        padding: 0.9rem 0.8rem;
    }
    .smart-search-head {
        flex-direction: column;
        align-items: flex-start;
    }
    .smart-search-head h2 {
        font-size: 1.45rem;
    }
    .smart-search-row {
        grid-template-columns: 1fr;
    }
    .smart-search-row--reference {
        grid-template-columns: 1fr;
    }
    .smart-search-submit {
        justify-self: start;
    }
    .home-search-form {
        max-width: 350px;
        margin-left: auto;
        margin-right: auto;
        padding-bottom: 1rem;
    }
    .home-search-title {
        font-size: 1.55rem;
    }
    .home-search-tab {
        font-size: 1.02rem;
    }
    .home-search-field label {
        font-size: 0.95rem;
        margin-bottom: 0.28rem;
    }
    .home-search-field input,
    .home-search-select-wrap select {
        font-size: 1.02rem;
        padding-top: 0.6rem;
        padding-bottom: 0.6rem;
        padding-left: 2.05rem;
    }
    .home-search-icon {
        width: 1.08rem;
        height: 1.08rem;
        left: 0.62rem;
    }
    .home-search-icon svg {
        width: 1.08rem;
        height: 1.08rem;
    }
    .home-search-grid {
        grid-template-columns: 1fr;
    }
    .home-search-grid.is-codigo {
        grid-template-columns: 1fr;
    }
    .home-search-submit-wrap {
        grid-column: 1;
    }
    .home-carousel-section {
        display: block !important;
        margin-top: 0.85rem;
        padding-top: 0.2rem;
    }
    .home-section-heading {
        display: block !important;
        text-align: center;
        font-size: 1.42rem;
        margin: 0 0 0.95rem;
        color: #3B4F96;
        font-weight: 700;
    }
    .hero-slideshow {
        height: auto;
        aspect-ratio: 2 / 1;
        background: transparent;
    }
    .hero-slide picture {
        display: block;
        width: 100%;
        height: 100%;
    }
    .hero-topo-sonhos {
        width: 100%;
        height: 100%;
        object-fit: contain;
        object-position: center top;
    }
    .topo2-banner .topo2-banner__img {
        width: 100%;
        aspect-ratio: 1000 / 465;
        height: auto;
        object-fit: cover;
        object-position: center;
    }
    .admin-main { padding: 1rem max(1rem, env(safe-area-inset-left, 0px)) 1rem max(1rem, env(safe-area-inset-right, 0px)); }
    .admin-top-strip {
        margin: -1rem -1rem 1rem;
        padding: 0.75rem 1rem;
        padding-left: max(1rem, env(safe-area-inset-left, 0px));
        padding-right: max(1rem, env(safe-area-inset-right, 0px));
    }
    .admin-topbar { flex-direction: column; align-items: flex-start; }
    .dashboard-card-head { flex-direction: column; }
    .dashboard-filter-pills { width: 100%; }
    .dashboard-activity-list li { grid-template-columns: 1fr; }
    .dashboard-activity-list small {
        white-space: normal;
        justify-self: start;
    }
    .dashboard-top-properties-list li {
        flex-wrap: wrap;
        align-items: flex-start;
    }
    .dashboard-top-properties-list span {
        white-space: normal;
        margin-left: auto;
        text-align: right;
    }
    .brand-contact-row {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        min-height: 0;
        padding: 0.4rem 0;
        gap: 0.35rem;
    }
    .contact-left {
        display: flex;
        align-items: center;
        gap: 0.45rem;
    }
    .contact-middle { order: 3; width: 100%; justify-content: center; gap: 0.85rem; }
    .contact-right { gap: 0.4rem; }
    .logo { transform: none; }
    .logo img { height: 52px !important; transform: none; }
    .nav-row {
        align-items: stretch;
        padding: 0.6rem 0;
        height: auto;
        min-height: 56px;
        justify-content: flex-start;
        gap: 0.65rem;
        flex-wrap: wrap;
    }
    .menu-toggle { display: inline-flex; align-self: center; margin-left: auto; }
    .main-nav {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.15rem;
        font-size: 0.9rem;
        padding: 0.45rem 0 0.2rem;
        margin-left: 0;
        flex: none;
        height: auto !important;
    }
    .main-nav > a,
    .main-nav .nav-dropdown > a {
        width: 100%;
        padding: 0.55rem 0.1rem;
        min-height: 0;
        height: auto !important;
    }
    .nav-dropdown { width: 100%; }
    .nav-dropdown > a::after { float: right; margin-right: 0.2rem; }
    .dropdown-menu {
        position: static;
        transform: none;
        min-width: 0;
        width: 100%;
        margin-top: 0;
        border-radius: 8px;
        opacity: 1;
        visibility: visible;
        display: none;
        box-shadow: none;
        background: #f8fafc;
        padding: 0.1rem 0 0.35rem 0.65rem;
    }
    .nav-dropdown:hover .dropdown-menu { transform: none; }
    .nav-dropdown.open .dropdown-menu { display: flex; }
    .dropdown-menu.dropdown-menu--contato {
        background: #ffffff;
        padding: 0;
        border: 1px solid #374151;
        border-radius: 4px;
    }
    .gallery-main, .gallery-main-video { height: 280px; }
    .gallery-thumbs { grid-template-columns: repeat(4, 1fr); }
    .thumb img { height: 60px; }
    .property-kpis-icons { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.55rem 0.35rem; }
    .kpi-icon { width: 24px; height: 24px; }
    .property-kpi-item strong { font-size: 0.92rem; }
    .property-kpi-item small { font-size: 0.78rem; }
    .property-info-grid { grid-template-columns: 1fr; }
    .about-list { grid-template-columns: 1fr; }
    .about-story-layout { grid-template-columns: 1fr; }
    .about-story-text {
        grid-column: 1;
        order: 1;
    }
    .about-owner-photo-wrap {
        grid-column: 1;
        order: 2;
        margin-top: 0;
        justify-content: center;
        position: static;
        top: auto;
    }
    .about-owner-photo { max-width: 220px; }
    .about-story-title { font-size: 1.65rem; }
    .about-story-text p.about-signature { font-size: 1.7rem; }
    .property-card-modern .property-media,
    .property-card-modern img { min-height: 230px; height: 230px; }
    .property-card-modern .property-price-lg {
        font-size: 1.7rem;
    }
    .property-location-text {
        font-size: 1.06rem;
    }
    iframe { height: 320px; min-height: 320px; }
    .location-split { grid-template-columns: 1fr; }
    .location-split iframe { height: 300px; min-height: 260px; }
    .footer-grid { display: flex; flex-direction: column; align-items: center; gap: 0.6rem; text-align: center; }
    .footer-grid section { align-items: center; width: 100%; display: flex; flex-direction: column; gap: 0.2rem; }
    .footer-logo { font-size: 2.5rem; }
    .footer-grid h4 { font-size: 1.15rem; margin: 0.4rem 0 0.2rem; }
    .footer-grid p { font-size: 1rem; margin: 0; }
    .footer-logo-image { width: min(200px, 65%); margin: 0 auto 0.4rem; display: block !important; }
    .footer-social { justify-content: center; margin-top: 0.5rem; }
    .footer-bottom-row {
        grid-template-columns: 1fr;
        justify-items: center;
        padding: 0.7rem 1rem;
        gap: 0.65rem;
    }
    .footer-bottom-copy,
    .footer-bottom-painel,
    .footer-bottom-row .footer-dev {
        justify-self: center;
        text-align: center;
    }
    .footer-bottom-row p { padding: 0; font-size: 0.88rem; line-height: 1.4; }
    .footer-dev { font-size: 0.82rem; }
    .footer-dev-signature { font-size: 1.5rem; }
    .footer-direitos { display: block; font-size: 0.82rem; }
    .footer-traco { display: none; }
}

@media (min-width: 681px) and (max-width: 1024px) {
    .footer-grid { grid-template-columns: 1fr 1.4fr 1fr; }
}

.property-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.property-actions .btn { flex: 1 1 180px; }
.btn-favorite { position: relative; background: linear-gradient(135deg, #5b7fd4, #3B4F96); color: #fff; }
.btn-favorite.active { background: linear-gradient(135deg, #22c55e, #16a34a); color: #fff; }
.btn-favorite-remove { background: #e5e7eb; color: #111827; }
.btn-favorite-remove:hover { background: #ef4444; color: #fff; }

.empty-state { text-align: center; padding: 3rem 2rem; }
.empty-state h2 { color: var(--muted); margin-bottom: 1rem; }
.empty-state p { color: var(--muted); margin-bottom: 1.5rem; }
.page-header { text-align: center; margin-bottom: 2rem; }
.page-header h1 { font-size: 2rem; margin-bottom: 0.5rem; }
.page-header p { color: var(--muted); }

.finance-page { display: grid; gap: 1.5rem; }
.finance-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
    gap: 1.2rem;
    align-items: stretch;
}
.finance-hero-card {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at top right, rgba(249, 115, 22, 0.18), transparent 28%),
        linear-gradient(135deg, #0f172a, #164e63 55%, #0f766e 100%);
    color: #fff;
    padding: 2rem;
}
.finance-hero-card::after {
    content: '';
    position: absolute;
    inset: auto -40px -54px auto;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
}
.finance-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.38rem 0.7rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    font-size: 0.76rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.finance-hero-card h1 {
    margin: 1rem 0 0.85rem;
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.08;
    max-width: 12ch;
}
.finance-hero-card p {
    max-width: 58ch;
    color: rgba(255, 255, 255, 0.84);
    line-height: 1.7;
    margin-bottom: 1.2rem;
}
.finance-hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.finance-hero-actions .btn-ghost {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.16);
}
.finance-kpis {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.8rem;
    margin-top: 1.5rem;
    position: relative;
    z-index: 1;
}
.finance-kpis article {
    padding: 0.95rem 1rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.finance-kpis strong { display: block; font-size: 1.2rem; margin-bottom: 0.2rem; }
.finance-kpis span { color: rgba(255, 255, 255, 0.78); font-size: 0.88rem; }
.finance-aside-card {
    background: linear-gradient(180deg, #ffffff, #f8fbff);
    border: 1px solid #d9e5f4;
    padding: 1.5rem;
}
.finance-aside-card h2 { margin-top: 0; margin-bottom: 0.45rem; font-size: 1.35rem; }
.finance-aside-card p { color: var(--muted); line-height: 1.65; margin-bottom: 1rem; }
.finance-checklist { list-style: none; padding: 0; margin: 0 0 1.2rem; display: grid; gap: 0.7rem; }
.finance-checklist li {
    display: grid;
    grid-template-columns: 24px 1fr;
    gap: 0.7rem;
    align-items: start;
    color: #243449;
}
.finance-checklist li::before {
    content: '•';
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #dcfce7;
    color: #166534;
    font-weight: 800;
}
.finance-mini-note {
    padding: 0.85rem 1rem;
    border-radius: 14px;
    background: #ecfeff;
    color: #155e75;
    font-size: 0.92rem;
    line-height: 1.55;
}
.finance-bank-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.7rem;
}
.finance-bank-card {
    padding: 0;
    overflow: hidden;
    border: 1px solid #dbe4f0;
    background: #eef3f8;
    border-radius: 12px;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
}
.finance-bank-logo-panel {
    min-height: 84px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: #ffffff;
}
.finance-bank-logo {
    width: 100%;
    height: 84px;
    object-fit: cover;
    display: block;
}
.finance-bank-logo-fallback {
    font-size: 0.92rem;
    font-weight: 700;
    color: #1e293b;
}
.finance-bank-actions {
    display: flex;
    justify-content: center;
    padding: 0.65rem 0.8rem 0.75rem;
    background: #eef3f8;
}
.finance-bank-btn {
    min-width: 76px;
    padding: 0.45rem 0.8rem;
    border-radius: 4px;
    background: #1d4ed8;
    color: #fff;
    font-weight: 500;
    font-size: 0.92rem;
    box-shadow: none;
}
.finance-bank-btn:hover {
    background: #1e40af;
    color: #fff;
    filter: none;
}
.finance-process {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}
.finance-step {
    position: relative;
    padding: 1.2rem;
    border: 1px solid #e2e8f0;
    background: linear-gradient(180deg, #fbfdff, #f3f7fb);
}
.finance-step strong {
    display: inline-grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    color: #fff;
    margin-bottom: 0.9rem;
}
.finance-step h3 { margin: 0 0 0.45rem; font-size: 1.05rem; }
.finance-step p { margin: 0; color: var(--muted); line-height: 1.6; }
.finance-dual-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
    gap: 1rem;
}
.finance-docs-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.9rem; }
.finance-docs-grid article {
    padding: 1rem;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    background: linear-gradient(180deg, #ffffff, #f8fbff);
}
.finance-docs-grid h3 { margin-top: 0; margin-bottom: 0.45rem; font-size: 1rem; }
.finance-docs-grid p { margin: 0; color: var(--muted); line-height: 1.6; }
.finance-form-card form { display: grid; gap: 0.9rem; }
.finance-grid-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.9rem; }
.finance-form-card textarea { min-height: 150px; resize: vertical; }
.finance-faq {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}
.finance-faq article {
    padding: 1.1rem;
    border-radius: 18px;
    border: 1px solid #e2e8f0;
    background: linear-gradient(180deg, #ffffff, #f9fbfd);
}
.finance-faq h3 { margin-top: 0; margin-bottom: 0.55rem; font-size: 1rem; }
.finance-faq p { margin: 0; color: var(--muted); line-height: 1.65; }

.finance-bank-logo-wrap {
    min-height: 58px;
    display: flex;
    align-items: center;
}
.finance-bank-logo {
    max-width: 170px;
    max-height: 52px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(15, 23, 42, 0.08));
}
.finance-bank-logo-fallback {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1e293b;
}
.property-image-wrapper { position: relative; height: 220px; overflow: hidden; }
.property-image { width: 100%; height: 100%; object-fit: cover; display: block; background: #e5e7eb; }
.property-badge { position: absolute; top: 12px; right: 12px; background: rgba(0, 0, 0, 0.7); color: white; font-size: 0.75rem; font-weight: 600; padding: 0.4rem 0.8rem; border-radius: 20px; text-transform: uppercase; }

/* ── Print button ───────────────────────────────────── */
.price-print-row { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.btn-print { display: inline-flex; align-items: center; background: none; border: 1.5px solid #3B4F96; color: #3B4F96; padding: 0.35rem 0.72rem; border-radius: 8px; font-size: 0.8rem; font-weight: 600; cursor: pointer; white-space: nowrap; transition: background 0.15s, color 0.15s; }
.btn-print:hover { background: #3B4F96; color: #fff; }

.property-actions .btn::before,
.property-heading-actions .btn::before,
.property-heading-actions .btn-print::before {
    content: none !important;
}

@media (max-width: 680px) {
    .property-heading-top { flex-direction: column; align-items: flex-start; gap: 0.45rem; }
    .property-heading-actions { align-items: flex-start; }
    .property-heading-cta { justify-content: flex-start; }
    .property-heading-price { text-align: left; }
    .finance-hero,
    .finance-dual-grid,
    .finance-bank-grid,
    .finance-process,
    .finance-faq,
    .finance-grid-form,
    .finance-docs-grid,
    .finance-kpis {
        grid-template-columns: 1fr;
    }
    .finance-hero-card { padding: 1.35rem; }
}

/* ── Print sheet (hidden on screen) ────────────────── */
#print-sheet { display: none; }

/* ── @media print ───────────────────────────────────── */
@media print {
    @page {
        size: A4;
        margin: 12mm;
    }
    body > *:not(#print-sheet) { display: none !important; }
    #print-sheet {
        display: block !important;
        width: 100%;
        max-width: 190mm;
        margin: 0 auto;
        padding: 0;
        font-family: Arial, sans-serif;
        color: #1e293b;
        background: #fff;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    .ps-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 2px solid #3B4F96; padding-bottom: 0.55rem; margin-bottom: 0.75rem; }
    .ps-logo { font-size: 1.3rem; font-weight: 700; color: #3B4F96; }
    .ps-cod { font-size: 0.8rem; color: #64748b; }
    .ps-title { font-size: 1.2rem; font-weight: 700; margin: 0 0 0.2rem; color: #1e293b; line-height: 1.25; }
    .ps-location { margin: 0 0 0.55rem; color: #475569; font-size: 0.82rem; }
    .ps-photo { width: 100%; max-height: 300px; object-fit: cover; border-radius: 6px; margin-bottom: 0.6rem; display: block; }
    .ps-price-label { font-size: 0.82rem; color: #64748b; margin: 0.15rem 0 0; }
    .ps-price { font-size: 1.35rem; font-weight: 700; color: #3B4F96; margin: 0.2rem 0 0.1rem; }
    .ps-type { font-size: 0.8rem; color: #64748b; margin: 0 0 0.6rem; }
    .ps-kpis { display: flex; gap: 0.9rem 1rem; flex-wrap: wrap; border: 1px solid #e2e8f0; border-radius: 6px; padding: 0.45rem 0.75rem; margin-bottom: 0.7rem; page-break-inside: avoid; }
    .ps-kpi { display: flex; flex-direction: column; align-items: center; min-width: 70px; }
    .ps-kpi span { font-weight: 600; font-size: 0.76rem; color: #1e293b; }
    .ps-kpi small { font-size: 0.66rem; color: #64748b; }
    .ps-desc { page-break-inside: avoid; margin-bottom: 0.45rem; }
    .ps-desc h3 { font-size: 0.88rem; font-weight: 700; margin: 0 0 0.25rem; border-bottom: 1px solid #e2e8f0; padding-bottom: 0.17rem; color: #1e293b; }
    .ps-desc > div,
    .ps-desc p,
    .ps-desc li {
        font-size: 0.76rem;
        line-height: 1.45;
        color: #334155;
        text-align: justify;
        text-justify: inter-word;
    }
    .ps-desc p { margin: 0 0 0.45rem; }
    .ps-desc ul,
    .ps-desc ol {
        margin: 0.25rem 0 0.55rem 1rem;
        padding-left: 0.75rem;
    }
    .ps-desc li { margin: 0 0 0.18rem; }
    .ps-broker { display: flex; gap: 0.9rem; align-items: center; border-top: 1.5px solid #3B4F96; padding-top: 0.55rem; margin-top: 0.25rem; page-break-inside: avoid; }
    .ps-broker-photo { width: 58px; height: 58px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
    .ps-broker-info { display: flex; flex-direction: column; gap: 0.12rem; font-size: 0.8rem; color: #334155; }
    .ps-broker-info strong { font-size: 0.95rem; color: #1e293b; }
}

/* Admin — modelos de contrato (lista) */
.contratos-admin-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}
.contratos-admin-head h1 {
    margin: 0;
    min-width: 0;
    flex: 1 1 12rem;
    font-size: clamp(1.1rem, 4vw, 1.75rem);
    line-height: 1.25;
    overflow-wrap: anywhere;
}
.contratos-admin-head__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.contrato-modelo-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.contrato-modelo-linha {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
    padding: 0.95rem 1rem;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.28);
}
.contrato-modelo-linha:nth-child(odd) {
    background: linear-gradient(135deg, #3B4F96 0%, #324483 100%);
    color: #f8fafc;
}
.contrato-modelo-linha:nth-child(even) {
    background: #f1f5f9;
    color: #0f172a;
}
.contrato-modelo-linha__info {
    min-width: 0;
}
.contrato-modelo-linha__info h2 {
    margin: 0 0 0.22rem;
    font-size: 1rem;
    line-height: 1.32;
    text-transform: uppercase;
    letter-spacing: 0.015em;
}
.contrato-modelo-linha__info p {
    margin: 0;
    font-size: 0.84rem;
    opacity: 0.92;
}
.contrato-modelo-linha:nth-child(odd) .btn {
    background: #ffffff;
    border-color: #ffffff;
    color: #1e293b;
}
.contrato-modelo-linha:nth-child(odd) .btn:hover {
    background: #e2e8f0;
    border-color: #e2e8f0;
}
@media (max-width: 720px) {
    .contrato-modelo-linha {
        flex-direction: column;
        align-items: flex-start;
    }
    .contrato-modelo-linha .btn {
        width: 100%;
    }
}
.contratos-registros-table__assinado {
    min-width: 200px;
    vertical-align: top;
}
.contrato-assinado-badge {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 0.45rem;
}
.contrato-assinado-badge .inline-form {
    display: inline;
}
.contrato-assinado-upload {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.25rem;
}
.contrato-assinado-upload input[type="file"] {
    max-width: 180px;
    font-size: 0.78rem;
}
.contratos-registros-table__acoes {
    min-width: 220px;
}
.contratos-registros-table__acoes .btn .bi {
    margin-right: 0.35rem;
    vertical-align: -0.12em;
}
.contratos-registros-table__acoes .btn {
    display: inline-flex;
    align-items: center;
}

/*
 * Lista admin imóveis: só tabela OU só cartões conforme largura (evita mostrar os dois ao mesmo tempo).
 */
body.admin-body .admin-imoveis-mobile-wrap {
    display: none !important;
}
body.admin-body .admin-imoveis-desktop-wrap {
    display: block !important;
}
@media (max-width: 1199px) {
    body.admin-body main.admin-main section.table-card.card .admin-imoveis-desktop-wrap,
    body.admin-body .admin-shell .admin-main .admin-imoveis-desktop-wrap {
        display: none !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
        height: 0 !important;
        visibility: hidden !important;
        position: absolute !important;
        width: 1px !important;
        clip: rect(0, 0, 0, 0) !important;
        clip-path: inset(50%) !important;
        white-space: nowrap !important;
        border: 0 !important;
        pointer-events: none !important;
    }
    body.admin-body main.admin-main section.table-card.card .admin-imoveis-mobile-wrap,
    body.admin-body .admin-shell .admin-main .admin-imoveis-mobile-wrap {
        display: block !important;
        width: 100% !important;
        position: relative !important;
        visibility: visible !important;
        clip: auto !important;
        clip-path: none !important;
        height: auto !important;
        overflow: visible !important;
        pointer-events: auto !important;
    }
}
@media (min-width: 1200px) {
    body.admin-body main.admin-main section.table-card.card .admin-imoveis-desktop-wrap,
    body.admin-body .admin-shell .admin-main .admin-imoveis-desktop-wrap {
        display: block !important;
        position: relative !important;
        visibility: visible !important;
        height: auto !important;
        width: auto !important;
        overflow: visible !important;
        clip: auto !important;
        clip-path: none !important;
        pointer-events: auto !important;
    }
    body.admin-body main.admin-main section.table-card.card .admin-imoveis-mobile-wrap,
    body.admin-body .admin-shell .admin-main .admin-imoveis-mobile-wrap {
        display: none !important;
        height: 0 !important;
        overflow: hidden !important;
        margin: 0 !important;
        padding: 0 !important;
        visibility: hidden !important;
        position: absolute !important;
        width: 1px !important;
        clip: rect(0, 0, 0, 0) !important;
        pointer-events: none !important;
    }
}

.admin-imoveis-mobile-cards {
    display: flex;
    flex-direction: column;
    gap: 0;
    border-top: 1px solid #cbd5e1;
}
.admin-imoveis-mobile-empty {
    margin: 0;
    padding: 1.25rem 0.5rem;
    text-align: center;
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.45;
    border-bottom: 1px solid #e2e8f0;
}
.admin-imovel-mobile-card {
    margin: 0;
    padding: 1.05rem 0;
    border: 0;
    border-bottom: 1px solid #94a3b8;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}
.admin-imovel-mobile-card:last-child {
    border-bottom: 0;
    padding-bottom: 0.25rem;
}
.admin-imovel-mobile-card:first-child {
    padding-top: 0.65rem;
}
.admin-imovel-mobile-card__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem 1rem;
    margin-bottom: 0.85rem;
}
.admin-imovel-mobile-card__field--full {
    grid-column: 1 / -1;
}
.admin-imovel-mobile-card__label {
    display: block;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: 0.2rem;
}
.admin-imovel-mobile-card__value {
    display: block;
    font-size: 0.92rem;
    color: #0f172a;
    line-height: 1.35;
    word-break: break-word;
}
.admin-imovel-mobile-card__actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-top: 0.65rem;
    margin-top: 0.15rem;
    border-top: 1px solid #e2e8f0;
}
.admin-imovel-mobile-card__actions .btn,
.admin-imovel-mobile-card__actions button {
    width: 100%;
    min-height: 46px;
    justify-content: center;
    box-sizing: border-box;
}
.admin-imovel-mobile-card__actions form {
    margin: 0;
    width: 100%;
}
