/* =============================================
   RESET & BASE
   ============================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
a[href^="tel"] { color: inherit; text-decoration: none; }

:root {
    --navy-900:  #08172e;
    --navy-800:  #0d2140;
    --navy-700:  #122b52;
    --navy-600:  #1a3a6b;
    --navy-400:  #2d5fa8;
    --navy-200:  #b8cce8;
    --navy-50:   #f0f4fa;

    --gold-700:  #8a6a14;
    --gold-500:  #b8932a;
    --gold-400:  #cfa83c;
    --gold-300:  #d4aa4a;
    --gold-200:  #e8d190;
    --gold-50:   #fdf8ec;

    --text-900:  #0c1a2e;
    --text-600:  #374151;
    --text-400:  #6b7280;
    --text-200:  #9ca3af;

    --green-700: #14532d;
    --green-500: #16a34a;
    --green-100: #dcfce7;
    --green-50:  #f0fdf4;

    --amber-700: #78350f;
    --amber-500: #d97706;
    --amber-100: #fef3c7;
    --amber-50:  #fffbeb;

    --red-700:   #7f1d1d;
    --red-500:   #b91c1c;
    --red-100:   #fee2e2;
    --red-50:    #fff5f5;

    --white:     #ffffff;
    --gray-50:   #f9fafb;
    --gray-100:  #f3f4f6;
    --gray-200:  #e5e7eb;
    --gray-300:  #d1d5db;

    --shadow-sm: 0 1px 3px rgba(8,23,46,.07), 0 1px 2px rgba(8,23,46,.04);
    --shadow-md: 0 4px 16px rgba(8,23,46,.08), 0 2px 6px rgba(8,23,46,.05);
    --shadow-lg: 0 10px 40px rgba(8,23,46,.12), 0 4px 12px rgba(8,23,46,.07);

    --radius:    12px;
    --radius-sm: 6px;
    --radius-xs: 4px;
}

html { font-size: 16px; -webkit-font-smoothing: antialiased; }

body {
    font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
    color: var(--text-900);
    background: #f0ece2;
    line-height: 1.6;
}


/* =============================================
   LOGIN — SPLIT SCREEN COM FOTO
   ============================================= */
.login-page {
    min-height: 100vh;
    display: flex;
    background: var(--navy-900);
}

.login-split {
    display: flex;
    width: 100%;
    min-height: 100vh;
}

/* ——— PAINEL ESQUERDO — FOTO ——— */
.login-left {
    flex: 0 0 46%;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.ll-photo {
    position: absolute;
    inset: 0;
    background: url('/static/building.jpg') center center / cover no-repeat;
}

.ll-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(8, 23, 46, 0.30) 0%,
        rgba(8, 23, 46, 0.05) 20%,
        rgba(8, 23, 46, 0.05) 60%,
        rgba(8, 23, 46, 0.25) 100%
    );
    z-index: 1;
}

.ll-gradient::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, transparent 65%, rgba(8,23,46,.35) 100%);
}

.ll-gold-edge {
    position: absolute;
    top: 0; right: 0;
    width: 3px; height: 100%;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        var(--gold-700) 20%,
        var(--gold-400) 50%,
        var(--gold-700) 80%,
        transparent 100%
    );
    z-index: 3;
}

.ll-content {
    position: relative;
    z-index: 2;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem 2.25rem;
}

.ll-card {
    display: flex;
    flex-direction: column;
    background: rgba(8, 23, 46, 0.72);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(184, 147, 42, 0.3);
    border-radius: var(--radius);
    padding: 1.75rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.ll-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}

.ll-monogram {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 130px;
    height: 130px;
    border: none;
    border-radius: 50%;
    background: none;
    overflow: hidden;
    -webkit-backdrop-filter: blur(6px);
}

.ll-badge-pronto {
    display: flex;
    align-items: center;
    gap: .4rem;
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--gold-200);
    background: rgba(8,23,46,.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(184,147,42,.35);
    padding: .3rem .8rem;
    border-radius: 20px;
}

.ll-badge-pronto svg { color: var(--gold-400); }

.ll-divider-gold {
    width: 36px;
    height: 2px;
    background: linear-gradient(to right, var(--gold-400), var(--gold-700));
    margin-bottom: .875rem;
    border-radius: 2px;
}

.ll-eyebrow {
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .14em;
    color: var(--gold-400);
    margin-bottom: .35rem;
}

.ll-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.875rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.15;
    margin-bottom: .75rem;
}

.ll-address {
    display: flex;
    align-items: center;
    gap: .4rem;
    font-size: .78rem;
    color: var(--navy-200);
    margin-bottom: 1.25rem;
}

.ll-address svg { color: var(--gold-400); flex-shrink: 0; }

.ll-stats {
    display: flex;
    align-items: stretch;
    background: rgba(8,23,46,.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(184,147,42,.22);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.ll-stat {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: .75rem .5rem;
    gap: .15rem;
}

.ll-stat-sep {
    width: 1px;
    background: rgba(184,147,42,.18);
    align-self: stretch;
}

.ll-stat-val {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gold-300);
    line-height: 1;
}

.ll-stat-lbl {
    font-size: .62rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: rgba(184,204,232,.7);
}

/* ——— PAINEL DIREITO — FORMULÁRIO ——— */
.login-right {
    flex: 1;
    background: #fdfbf6;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 2.5rem;
    position: relative;
}

.login-right::before {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 120px; height: 120px;
    background: radial-gradient(circle at top right, var(--gold-50) 0%, transparent 70%);
    pointer-events: none;
}

.login-form-wrap {
    width: 100%;
    max-width: 380px;
    position: relative;
    z-index: 1;
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255,255,255,.9);
    border-radius: var(--radius);
    padding: 2.25rem;
    box-shadow: 0 8px 40px rgba(8,23,46,.08);
}

.lf-header {
    margin-bottom: 2.25rem;
}

.lf-eyebrow {
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .14em;
    color: var(--gold-500);
    margin-bottom: .5rem;
    display: flex;
    align-items: center;
    gap: .5rem;
}

.lf-eyebrow::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 1.5px;
    background: var(--gold-500);
    border-radius: 1px;
}

.lf-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--navy-900);
    margin-bottom: .625rem;
    line-height: 1.15;
}

.lf-sub {
    font-size: .875rem;
    color: var(--text-400);
    line-height: 1.65;
}

.lf-erro {
    display: flex;
    align-items: center;
    gap: .5rem;
    background: var(--red-50);
    color: var(--red-700);
    border: 1px solid #fca5a5;
    border-left: 3px solid var(--red-500);
    border-radius: var(--radius-xs);
    padding: .75rem 1rem;
    font-size: .84rem;
    font-weight: 500;
    margin-bottom: 1.25rem;
}

.lf-form { margin-bottom: 2rem; }

.lf-group {
    margin-bottom: 1.25rem;
}

.lf-group label {
    display: block;
    font-size: .7rem;
    font-weight: 700;
    color: var(--text-600);
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: .5rem;
}

.lf-input-wrap { position: relative; }

.btn-toggle-senha {
    position: absolute;
    right: .75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-200);
    padding: 0;
    display: flex;
    align-items: center;
    transition: color .2s;
}
.btn-toggle-senha:hover { color: var(--text-600); }

.lf-icon {
    position: absolute;
    left: .9rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-200);
    pointer-events: none;
}

.lf-input-wrap input {
    width: 100%;
    padding: .8rem 1rem .8rem 2.8rem;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-sm);
    font-size: .95rem;
    font-family: inherit;
    color: var(--text-900);
    background: var(--gray-50);
    outline: none;
    transition: border-color .2s, box-shadow .2s, background .2s;
}

.lf-input-wrap input:focus {
    border-color: var(--navy-600);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(26,58,107,.1);
}

.lf-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .625rem;
    padding: .9rem 1.25rem;
    background: linear-gradient(135deg, var(--gold-400) 0%, var(--gold-700) 100%);
    color: var(--navy-900);
    border: none;
    border-radius: var(--radius-sm);
    font-size: .95rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    letter-spacing: .03em;
    transition: filter .2s, transform .15s, box-shadow .2s;
    box-shadow: 0 4px 18px rgba(184,147,42,.4);
    margin-top: .375rem;
    position: relative;
    overflow: hidden;
}

/* Shimmer claro no hover */
.lf-btn::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.25), transparent);
    transition: left .5s ease;
}

.lf-btn:hover::before { left: 160%; }

.lf-btn:hover {
    filter: brightness(1.08);
    box-shadow: 0 8px 26px rgba(184,147,42,.55);
    transform: translateY(-1px);
}

.lf-btn:active { transform: translateY(0); box-shadow: 0 4px 12px rgba(184,147,42,.35); }

.lf-btn svg { transition: transform .2s; flex-shrink: 0; }
.lf-btn:hover svg { transform: translateX(4px); }

/* Rodapé do formulário — info rápida */
.lf-footer-info {
    display: flex;
    align-items: center;
    gap: 0;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--gray-50);
}

.lf-fi-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: .75rem .5rem;
    gap: .15rem;
}

.lf-fi-sep {
    width: 1px;
    align-self: stretch;
    background: var(--gray-200);
}

.lf-fi-label {
    font-size: .62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--text-200);
}

.lf-fi-val {
    font-size: .82rem;
    font-weight: 600;
    color: var(--text-600);
}


/* =============================================
   DASHBOARD — HEADER
   ============================================= */
.dashboard-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-header {
    background: var(--navy-800);
    position: relative;
    z-index: 100;
    box-shadow: 0 2px 12px rgba(8,23,46,.25);
}

.header-gold-bar {
    height: 3px;
    background: linear-gradient(90deg, var(--gold-700) 0%, var(--gold-400) 50%, var(--gold-700) 100%);
}

.header-inner {
    max-width: 1440px;
    margin: 0 auto;
    padding: .875rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: .875rem;
}

.brand-monogram {
    width: 75px;
    height: 75px;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: none;
    overflow: hidden;
}
@media (min-width: 641px) {
    .brand-monogram {
        width: 130px;
        height: 130px;
    }
}

.brand-info h1 {
    font-family: 'Playfair Display', serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1.2;
}

.brand-info span {
    font-size: .75rem;
    color: var(--navy-200);
    font-weight: 400;
    opacity: .8;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

.header-pronto {
    display: flex;
    align-items: center;
    gap: .375rem;
    font-size: .75rem;
    font-weight: 600;
    color: var(--gold-200);
    letter-spacing: .05em;
    text-transform: uppercase;
}

.header-pronto svg { color: var(--gold-500); }

.btn-sair {
    display: flex;
    align-items: center;
    gap: .375rem;
    background: rgba(255,255,255,.07);
    color: var(--navy-200);
    text-decoration: none;
    padding: .4rem .875rem;
    border-radius: var(--radius-sm);
    font-size: .8rem;
    font-weight: 500;
    transition: background .2s, color .2s;
    border: 1px solid rgba(255,255,255,.1);
}

.btn-sair:hover { background: rgba(255,255,255,.14); color: var(--white); }


/* =============================================
   MAIN CONTENT
   ============================================= */
.main-content {
    flex: 1;
    max-width: 1440px;
    width: 100%;
    margin: 0 auto;
    padding: 2rem 2rem 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* ——— HERO ——— */
.hero-section {
    background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-800) 100%);
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-md);
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(184,147,42,.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(184,147,42,.03) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold-700), var(--gold-400), var(--gold-700));
}

.hero-inner {
    position: relative;
    z-index: 1;
    padding: 2rem 2.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.hero-eyebrow {
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--gold-500);
    margin-bottom: .4rem;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.625rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: .625rem;
    line-height: 1.2;
}

.hero-address {
    display: flex;
    align-items: center;
    gap: .4rem;
    font-size: .82rem;
    color: var(--navy-200);
}

.hero-address svg { color: var(--gold-500); flex-shrink: 0; }

.hero-meta {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
}

.hero-meta-item {
    display: flex;
    flex-direction: column;
    padding: .875rem 1.5rem;
    gap: .2rem;
}

.hero-meta-sep {
    width: 1px;
    align-self: stretch;
    background: rgba(255,255,255,.08);
}

.hm-label {
    font-size: .68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: var(--text-400);
}

.hm-value {
    font-size: .92rem;
    font-weight: 600;
    color: var(--white);
}

.decorado-hero-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: .85rem;
}
.btn-decorado-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}
.btn-decorado-text small {
    font-size: .6rem;
    font-weight: 600;
    opacity: .85;
    letter-spacing: .02em;
    text-transform: none;
}
.btn-decorado-hero {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 0;
    padding: .45rem 1.1rem;
    background: linear-gradient(135deg, #fff, #f5f0e0);
    color: var(--navy-900);
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .4px;
    text-transform: uppercase;
    border-radius: 8px;
    border: 2px solid var(--gold-400);
    text-decoration: none;
    transition: transform .2s, box-shadow .2s, background .2s;
    box-shadow: 0 3px 16px rgba(184,147,42,.35);
    animation: decoradoPulse 2.5s ease-in-out 3;
}
.btn-decorado-hero:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, var(--gold-400), var(--gold-500));
    color: var(--white);
    box-shadow: 0 6px 24px rgba(184,147,42,.5);
}
@keyframes decoradoPulse {
    0%, 100% { box-shadow: 0 3px 16px rgba(184,147,42,.35); }
    50% { box-shadow: 0 0 24px 6px rgba(212,175,55,.55); }
}

.hm-gold { color: var(--gold-400); font-size: 1.05rem; }
.hm-mono { font-family: 'Courier New', monospace; letter-spacing: .1em; }


/* ——— TIPOLOGIA + STATS LINHA ——— */
.tipologia-stats-row {
    display: flex;
    align-items: stretch;
    gap: 1.5rem;
}

.tipologia-section {
    flex: 1;
}

/* ——— STATS ——— */
.stats-section {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: .75rem;
    flex-shrink: 0;
}

.stat-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 1.375rem 1.5rem 1.125rem;
    position: relative;
    overflow: hidden;
    transition: box-shadow .2s, transform .2s;
}

.stat-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.stat-num {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: .375rem;
    font-family: 'Playfair Display', serif;
}

.stat-label {
    display: block;
    font-size: .72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: var(--text-400);
}

.stat-bar {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 3px;
}

.stat-col-total  { color: var(--navy-600); }
.stat-col-disp   { color: var(--green-500); }
.stat-col-res    { color: var(--amber-500); }
.stat-col-vend   { color: var(--red-500); }

.stat-bar-total  { background: var(--navy-600); }
.stat-bar-disp   { background: var(--green-500); }
.stat-bar-res    { background: var(--amber-500); }
.stat-bar-vend   { background: var(--red-500); }


/* ——— CARD SECTION ——— */
.card-section {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 1.5rem;
}

.section-head {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-bottom: 1.25rem;
}

.section-head-flex { justify-content: space-between; }

.section-head-line {
    width: 3px;
    height: 18px;
    background: linear-gradient(to bottom, var(--gold-500), var(--gold-700));
    border-radius: 2px;
    flex-shrink: 0;
}

.section-head h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--navy-800);
}

.data-atualizacao-badge {
    font-size: .7rem;
    color: var(--gold-600);
    font-weight: 600;
    background: rgba(207,168,60,.12);
    padding: .2rem .65rem;
    border-radius: 20px;
    white-space: nowrap;
}

.contador-linhas {
    font-size: .78rem;
    color: var(--text-400);
    font-weight: 500;
    background: var(--gray-100);
    padding: .25rem .75rem;
    border-radius: 20px;
}


/* ——— INFO SECTIONS ——— */
.info-section {
    margin-top: 1.25rem;
}

.info-grid {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
}

.info-grid-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .4rem;
    max-width: 780px;
}

.info-card {
    display: flex;
    align-items: center;
    gap: .5rem;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    padding: .6rem 1rem;
    font-size: .82rem;
    color: var(--text-500);
    transition: border-color .2s, background .2s;
}

.info-card:hover {
    border-color: var(--gold-400);
    background: var(--gold-50);
}

.info-icon {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
    color: var(--gold-600);
}

.info-card-sm {
    padding: .5rem .6rem;
    font-size: .72rem;
    gap: .3rem;
}

.info-card-sm::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--gold-500);
    border-radius: 50%;
    flex-shrink: 0;
}

.info-grid-2col.info-col {
    gap: .4rem;
}

.info-row {
    display: flex;
    gap: 1.5rem;
    align-items: stretch;
}

.info-col {
    flex: 1;
}

.info-img {
    flex: 0 0 300px;
    max-height: 280px;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.info-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ——— CARACTERÍSTICAS REDESIGN ——— */
.caract-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 1rem;
    align-items: start;
}

.caract-img {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,.1);
    border: 1px solid var(--gray-200);
}

.caract-img img {
    width: 100%;
    height: 360px;
    object-fit: cover;
    display: block;
}

.caract-img-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: .6rem;
    background: linear-gradient(transparent, rgba(0,0,0,.6));
    display: flex;
    justify-content: center;
}

.caract-img-badge {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    background: rgba(207,168,60,.9);
    color: #fff;
    font-size: .6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    padding: .25rem .6rem;
    border-radius: 20px;
}

.caract-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .35rem;
    align-content: stretch;
}

.caract-card {
    display: flex;
    align-items: center;
    gap: .625rem;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    padding: 1.1rem .7rem;
    font-size: .72rem;
    color: var(--text-600);
    transition: all .2s ease;
}

.caract-card::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--gold-500);
    border-radius: 50%;
    flex-shrink: 0;
}

.caract-card:hover {
    border-color: var(--gold-400);
    background: var(--gold-50);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(207,168,60,.1);
}

.caract-icon {
    display: none;
}

@media (max-width: 768px) {
    .caract-layout {
        grid-template-columns: 1fr;
    }
    .caract-img img {
        height: 200px;
    }
}


/* ——— TIPOLOGIA ——— */
.tipologia-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 1.25rem;
    justify-content: space-evenly;
}

.tipo-card {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    padding: 1.1rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .35rem;
    flex: 1;
    text-align: center;
    transition: border-color .2s, background .2s;
}

.tipo-card-btns {
    margin-top: auto;
    padding-top: .5rem;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: .4rem;
}

.tipo-card:hover { border-color: var(--gold-400); background: var(--gold-50); }

.tipo-final {
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--gold-700);
}

.tipo-desc {
    font-size: .72rem;
    color: var(--text-400);
    white-space: nowrap;
}

.tipo-card strong { font-size: 1.2rem; font-weight: 700; color: var(--navy-800); }

.tipo-vaga {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .3rem;
    font-size: .82rem;
    color: var(--text-400);
    min-height: 2.5em;
    width: 100%;
    text-align: center;
}

.tipo-vaga svg {
    width: .82rem;
    height: .82rem;
    flex-shrink: 0;
    color: var(--text-400);
}


/* ——— FILTROS ——— */
.filter-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 1rem;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: .3rem;
    min-width: 150px;
}

.filter-group label {
    font-size: .7rem;
    font-weight: 700;
    color: var(--text-400);
    text-transform: uppercase;
    letter-spacing: .08em;
}

.filter-group select,
.filter-group input {
    padding: .5rem .75rem;
    border: 1.5px solid var(--gray-300);
    border-radius: var(--radius-sm);
    font-size: .875rem;
    font-family: inherit;
    color: var(--text-900);
    background: var(--white);
    outline: none;
    transition: border-color .2s, box-shadow .2s;
}

.filter-group select:focus,
.filter-group input:focus {
    border-color: var(--navy-600);
    box-shadow: 0 0 0 3px rgba(26,58,107,.08);
}

.btn-limpar {
    display: flex;
    align-items: center;
    gap: .375rem;
    padding: .5rem 1rem;
    background: transparent;
    border: 1.5px solid var(--gray-300);
    border-radius: var(--radius-sm);
    font-size: .8rem;
    font-weight: 600;
    font-family: inherit;
    color: var(--text-400);
    cursor: pointer;
    transition: all .2s;
    align-self: flex-end;
}

.btn-limpar:hover {
    border-color: var(--navy-600);
    color: var(--navy-600);
    background: var(--navy-50);
}


/* ——— TABELA ——— */
.table-wrapper {
    overflow-x: auto;
    margin: 0 -1.5rem -1.5rem;
    border-top: 1px solid var(--gray-200);
}

table { width: 100%; border-collapse: collapse; font-size: .86rem; }

thead tr { background: var(--navy-900); }

thead th {
    padding: .875rem 1.125rem;
    text-align: left;
    font-weight: 600;
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--navy-200);
    white-space: nowrap;
    border-bottom: 2px solid var(--navy-700);
}

thead th:first-child { padding-left: 1.5rem; }
thead th:last-child  { padding-right: 1.5rem; }

tbody tr {
    border-bottom: 1px solid var(--gray-200);
    transition: background .12s;
}

tbody tr:last-child { border-bottom: none; }

tbody td {
    padding: .75rem 1.125rem;
    color: var(--text-600);
    vertical-align: middle;
}

tbody td:first-child { padding-left: 1.5rem; }
tbody td:last-child  { padding-right: 1.5rem; }

.row-disponivel            { background: var(--white); }
.row-disponivel:hover      { background: var(--green-50); }
.row-reservado             { background: var(--white); }
.row-reservado:hover       { background: var(--amber-50); }
.row-vendido               { background: var(--gray-50); }
.row-vendido td            { color: var(--text-200); }
.row-vendido:hover         { background: var(--gray-100); }

.apto-num {
    font-size: .95rem;
    font-weight: 700;
    color: var(--navy-800);
    font-family: 'Playfair Display', serif;
}

.row-vendido .apto-num { color: var(--text-200); }

.tag-decorado {
    display: inline-block;
    background: var(--gold-50);
    color: var(--gold-700);
    font-size: .65rem;
    font-weight: 700;
    padding: .1rem .45rem;
    border-radius: var(--radius-xs);
    text-transform: uppercase;
    letter-spacing: .06em;
    border: 1px solid var(--gold-200);
    margin-left: .35rem;
    vertical-align: middle;
    text-decoration: none;
    cursor: pointer;
}
.tag-decorado:hover {
    background: var(--gold-200);
    color: var(--gold-900);
}

.td-apto    { white-space: nowrap; }
.td-andar   { color: var(--text-400); font-size: .82rem; white-space: nowrap; }
.td-desc    { font-weight: 500; color: var(--text-600); }
.td-garagem { font-size: .8rem; color: var(--text-400); white-space: nowrap; }
.td-money   { font-size: .82rem; color: var(--text-400); white-space: nowrap; }
.td-valor   { font-weight: 600; color: var(--navy-700); white-space: nowrap; }
.td-status-cell { text-align: center; }

.badge {
    display: inline-flex;
    align-items: center;
    padding: .22rem .7rem;
    border-radius: var(--radius-xs);
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    white-space: nowrap;
}

.badge-disponivel { background: var(--green-100); color: var(--green-700); }
.badge-reservado  { background: var(--amber-100); color: var(--amber-700); }
.badge-vendido    { background: var(--red-100);   color: var(--red-700);   }


/* ——— DIFERENCIAIS ——— */
.diferenciais-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: .6rem;
    margin-bottom: 1.25rem;
}

.diferenciais-grid-3col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .5rem;
}

.diff-item {
    display: flex;
    align-items: center;
    gap: .625rem;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    padding: .55rem .875rem;
    font-size: .84rem;
    color: var(--text-600);
    font-weight: 500;
    transition: border-color .2s;
}

.diff-item:hover { border-color: var(--gold-300); }

.diff-item::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--gold-500);
    border-radius: 50%;
    flex-shrink: 0;
}

.obs-box {
    background: var(--navy-50);
    border: 1px solid var(--navy-200);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: .35rem;
    text-align: center;
    align-items: center;
}

.obs-box-text {
    display: flex;
    flex-direction: column;
    gap: .35rem;
}

.obs-box p { font-size: .8rem; color: var(--text-400); line-height: 1.5; margin: 0; }


/* ——— FOOTER ——— */
.site-footer {
    background: var(--navy-900);
    border-top: 3px solid var(--navy-700);
    padding: 1.125rem 2rem;
    margin-top: auto;
}

.footer-inner {
    max-width: 1440px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: .875rem;
    flex-wrap: wrap;
    font-size: .78rem;
    color: var(--text-400);
}

.footer-brand {
    font-family: 'Playfair Display', serif;
    color: var(--navy-200);
    font-weight: 600;
}

.footer-sep { color: var(--navy-600); }


/* =============================================
   RESPONSIVO
   ============================================= */
@media (max-width: 1100px) {
    .stats-section { grid-template-columns: repeat(2, 1fr); }
    .tipologia-stats-row { flex-direction: column; }
    .stats-section { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 900px) {
    /* Login */
    .login-left { display: none; }
    .login-right { flex: 1; padding: 2.5rem 2rem; }

    /* Hero */
    .hero-inner { flex-direction: column; align-items: flex-start; }
    .hero-meta { width: 100%; flex-wrap: wrap; }
    .hero-meta-item { flex: 1 1 140px; }
    .hero-meta-sep { display: none; }

    /* Layout */
    .tipologia-stats-row { flex-direction: column; }
    .stats-section { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 640px) {
    /* Evita scroll horizontal */
    body { overflow-x: hidden; }

    /* Header */
    .header-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: .5rem;
        padding: .75rem 1rem;
    }
    .header-pronto { display: none; }
    .brand-info span { display: none; }
    .brand-info h1 { font-size: .9rem; }
    .header-actions { width: 100%; flex-wrap: wrap; gap: .4rem; }
    .btn-sair { padding: .35rem .6rem; font-size: .75rem; }
    .btn-sair svg { width: 12px; height: 12px; }

    /* Main */
    .main-content { padding: .875rem 1rem 2rem; gap: 1rem; overflow-x: hidden; }

    /* Section head */
    .section-head-flex { flex-direction: column; align-items: flex-start; gap: .3rem; }

    /* Hero info */
    .hero-section { border-radius: 10px; }
    .hero-inner { padding: 1.25rem; gap: 1rem; }
    .hero-title { font-size: 1.2rem; }
    .hero-meta { border-radius: 6px; }
    .hero-meta-item { flex: 1 1 45%; padding: .625rem .75rem; }
    .hm-label { font-size: .6rem; }
    .hm-value { font-size: .82rem; }

    /* Stats */
    .stats-section { grid-template-columns: repeat(2, 1fr); gap: .625rem; }
    .stat-num { font-size: 1.875rem; }

    /* Tipologia */
    .tipologia-grid {
        flex-wrap: wrap;
        justify-content: center;
        gap: .75rem;
    }
    .tipo-card {
        flex: 1 1 calc(50% - .75rem);
        min-width: 140px;
        max-width: calc(50% - .75rem);
        padding: .875rem 1rem;
    }

    /* Filtros */
    .filter-row { flex-direction: column; gap: .75rem; }
    .filter-group { min-width: 100%; }
    .filter-group select,
    .filter-group input { padding: .6rem .75rem; font-size: .875rem; }
    .btn-limpar { width: 100%; justify-content: center; }

    /* Tabela — scroll horizontal com indicador */
    .table-section { padding: 1.25rem 0 0; overflow: hidden; }
    .table-section .section-head { padding: 0 1.25rem; margin-bottom: 1rem; }
    .table-section .section-head-flex { padding: 0 1.25rem; }
    .table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: 0;
        border-top: 1px solid var(--gray-200);
        scrollbar-width: thin;
        scrollbar-color: var(--gray-300) transparent;
    }
    table { font-size: .78rem; }
    #tabelaApts { min-width: 640px; }
    #tabelaAdmin, .audit-table { min-width: 400px; }
    .table-wrapper { width: 100%; max-width: 100%; }
    thead th { padding: .65rem .75rem; font-size: .6rem; }
    tbody td { padding: .6rem .75rem; }
    thead th:first-child,
    tbody td:first-child { padding-left: 1rem; }
    thead th:last-child,
    tbody td:last-child { padding-right: 1rem; }

    /* Esconde colunas menos importantes no mobile */
    .col-cond, .col-iptu { display: none; }

    /* Diferenciais */
    .diferenciais-grid { grid-template-columns: repeat(2, 1fr); }
    .diferenciais-grid-3col { grid-template-columns: 1fr; }
    .obs-box { border-radius: 6px; }

    /* Footer */
    .footer-inner { justify-content: center; text-align: center; gap: .5rem; }
    .footer-sep { display: none; }

    /* Card section */
    .card-section { padding: 1.25rem; border-radius: 10px; }

}


/* =============================================
   BOTÃO VER PLANTA
   ============================================= */
.btn-planta {
    display: block;
    width: 100%;
    margin-top: 0;
    padding: .25rem .5rem;
    background: transparent;
    border: 1px solid var(--navy-600);
    border-radius: var(--radius-sm);
    font-size: .65rem;
    font-weight: 600;
    font-family: inherit;
    color: var(--navy-700);
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: .05em;
    transition: background .2s, color .2s, border-color .2s;
}

.btn-planta:hover {
    background: var(--navy-800);
    border-color: var(--navy-800);
    color: var(--gold-300);
}

.btn-fotos {
    display: block;
    width: 100%;
    margin-top: 0;
    padding: .25rem .5rem;
    background: transparent;
    border: 1px solid var(--gold-500, #c9a84c);
    border-radius: var(--radius-sm);
    font-size: .65rem;
    font-weight: 600;
    font-family: inherit;
    color: var(--gold-600, #a07820);
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: .05em;
    text-align: center;
    text-decoration: none;
    transition: background .2s, color .2s, border-color .2s;
    box-sizing: border-box;
}

.btn-fotos:hover {
    background: var(--gold-500, #c9a84c);
    border-color: var(--gold-500, #c9a84c);
    color: #fff;
}
.section-head .btn-fotos {
    display: inline-block;
    width: auto;
    margin-top: 0;
}

.tipo-card-indisponivel {
}

.badge-indisponivel {
    display: block;
    width: 100%;
    margin-top: 0;
    padding: .25rem .5rem;
    background: transparent;
    border: 1px solid var(--gold-500, #c9a84c);
    border-radius: var(--radius-sm);
    font-size: .65rem;
    font-weight: 600;
    font-family: inherit;
    color: var(--gold-600, #a07820);
    text-transform: uppercase;
    letter-spacing: .05em;
    text-align: center;
    box-sizing: border-box;
}


/* =============================================
   CHATBOT WIDGET
   ============================================= */
.chat-widget {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 1100;
}

.chat-toggle {
    height: 48px;
    padding: 0 18px;
    border-radius: 24px;
    background: var(--navy-900);
    border: 2px solid var(--gold-500);
    color: var(--gold-400);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,.3);
    transition: transform .2s, box-shadow .2s;
    animation: chatPulse 2s ease-in-out 3;
}
.chat-toggle-label {
    font-size: .875rem;
    font-weight: 600;
    white-space: nowrap;
    letter-spacing: .3px;
}
.chat-toggle:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 28px rgba(0,0,0,.4);
}
.chat-toggle-open { display: none !important; }

/* Balão de boas-vindas */
.chat-bubble-hint {
    position: absolute;
    bottom: 60px;
    right: 0;
    background: var(--white);
    color: var(--navy-900);
    padding: 10px 14px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,.2);
    font-size: .85rem;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
    animation: hintFadeIn .5s ease-out;
}
.chat-bubble-hint::after {
    content: '';
    position: absolute;
    bottom: -6px;
    right: 20px;
    width: 12px;
    height: 12px;
    background: var(--white);
    transform: rotate(45deg);
    box-shadow: 2px 2px 4px rgba(0,0,0,.1);
}
.chat-bubble-hint-close {
    margin-left: 8px;
    opacity: .5;
    cursor: pointer;
    font-size: .75rem;
}
.chat-bubble-hint-close:hover { opacity: 1; }

@keyframes chatPulse {
    0%, 100% { box-shadow: 0 4px 20px rgba(0,0,0,.3); }
    50% { box-shadow: 0 0 20px 4px rgba(212,175,55,.5); }
}
@keyframes hintFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.chat-panel {
    display: none;
    flex-direction: column;
    width: 380px;
    height: 520px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: 0 8px 40px rgba(0,0,0,.25);
    overflow: hidden;
    position: absolute;
    bottom: 70px;
    right: 0;
}
.chat-panel.chat-open {
    display: flex;
}

.chat-header {
    background: var(--navy-900);
    padding: .85rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 2px solid var(--gold-500);
    flex-shrink: 0;
}
.chat-header-info {
    display: flex;
    align-items: center;
    gap: .65rem;
}
.chat-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
}
.chat-header-title {
    color: var(--white);
    font-weight: 600;
    font-size: .85rem;
}
.chat-header-sub {
    color: var(--navy-200);
    font-size: .65rem;
}
.chat-close {
    background: none;
    border: none;
    color: var(--navy-200);
    cursor: pointer;
    padding: .25rem;
    display: flex;
    transition: color .2s;
}
.chat-close:hover { color: var(--white); }

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: .75rem;
    background: var(--gray-50);
}

.chat-msg {
    display: flex;
}
.chat-msg-user {
    justify-content: flex-end;
}

.chat-bubble {
    max-width: 85%;
    padding: .6rem .85rem;
    border-radius: var(--radius-sm);
    font-size: .8rem;
    line-height: 1.5;
    word-wrap: break-word;
}
.chat-bubble-bot {
    background: var(--white);
    border: 1px solid var(--gray-200);
    color: var(--text-600);
}
.chat-bubble-user {
    background: var(--navy-800);
    color: var(--white);
}

.chat-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    padding: 0 .2rem;
}
.chat-suggestions-title {
    width: 100%;
    font-size: .75rem;
    color: var(--text-400);
    margin-bottom: .1rem;
}
.chat-chip {
    background: var(--white);
    border: 1px solid var(--gold-400);
    color: var(--navy-800);
    border-radius: 1rem;
    padding: .35rem .75rem;
    font-size: .78rem;
    cursor: pointer;
    transition: background .2s, color .2s;
    text-align: left;
    line-height: 1.3;
}
.chat-chip:hover {
    background: var(--gold-400);
    color: var(--white);
}

.chat-input-area {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .75rem 1rem;
    border-top: 1px solid var(--gray-200);
    background: var(--white);
    flex-shrink: 0;
}
.chat-input-area input {
    flex: 1;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-sm);
    padding: .55rem .75rem;
    font-size: .8rem;
    font-family: inherit;
    outline: none;
    transition: border-color .2s;
}
.chat-input-area input:focus {
    border-color: var(--gold-400);
}
.chat-input-area button {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--gold-500);
    color: var(--navy-900);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background .2s;
}
.chat-input-area button:hover {
    background: var(--gold-400);
}

.chat-typing {
    display: flex;
    gap: .25rem;
    padding: .6rem .85rem;
}
.chat-typing span {
    width: 6px;
    height: 6px;
    background: var(--gold-500);
    border-radius: 50%;
    animation: chatBounce .6s infinite alternate;
}
.chat-typing span:nth-child(2) { animation-delay: .15s; }
.chat-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes chatBounce {
    to { opacity: .3; transform: translateY(-4px); }
}

@media (max-width: 480px) {
    .chat-widget {
        bottom: 0;
        right: 0;
        left: 0;
    }
    .chat-panel {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        height: 65dvh;
        border-radius: 16px 16px 0 0;
    }
    .chat-toggle {
        position: fixed;
        bottom: 1.25rem;
        right: 1.25rem;
    }
    .chat-bubble-hint {
        position: fixed;
        bottom: 4.5rem;
        right: 1.25rem;
    }
    .chat-input-area input {
        font-size: 1rem;
    }
}

/* =============================================
   MOBILE CARDS
   ============================================= */
.mobile-cards-list {
    display: none;
    flex-direction: column;
    gap: .75rem;
    padding: 0 1.25rem 1.25rem;
}

.mobile-cards-empty {
    text-align: center;
    padding: 2.5rem 1rem;
    color: var(--text-400);
    font-size: .9rem;
}

@media (max-width: 640px) {
    .mobile-cards-list { display: flex; }
    .table-section .table-wrapper { display: none; }
}

.apto-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    padding: 1rem 1.125rem;
    display: flex;
    flex-direction: column;
    gap: .5rem;
    cursor: pointer;
    transition: border-color .15s, box-shadow .15s;
}

.apto-card:hover {
    border-color: var(--navy-200);
    box-shadow: 0 2px 8px rgba(8,23,46,.08);
}

.apto-card-vendido {
    background: var(--gray-50);
    opacity: .65;
}

.apto-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.apto-card-left {
    display: flex;
    flex-direction: column;
    gap: .1rem;
}

.apto-card-num {
    font-size: 1rem;
    font-weight: 700;
    color: var(--navy-800);
}

.apto-card-andar {
    font-size: .75rem;
    color: var(--text-400);
}

.apto-card-mid {
    display: flex;
    align-items: center;
    gap: .5rem;
}

.apto-card-desc {
    font-size: .82rem;
    color: var(--text-600);
}

.apto-card-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: .25rem;
}

.apto-card-valor {
    font-size: .95rem;
    font-weight: 700;
    color: var(--navy-900);
}

.apto-card-btn {
    background: var(--navy-800);
    color: var(--white);
    border: none;
    border-radius: var(--radius-xs);
    padding: .4rem .85rem;
    font-size: .78rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background .2s;
}

.apto-card-btn:hover {
    background: var(--navy-700);
}

/* =============================================
   MODAL DETALHES (bottom sheet)
   ============================================= */
.modal-detalhes-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(8, 23, 46, .55);
    backdrop-filter: blur(3px);
    z-index: 1200;
    align-items: flex-end;
    justify-content: center;
}

.modal-detalhes-overlay.aberto {
    display: flex;
}

.modal-detalhes-panel {
    background: var(--white);
    border-radius: 20px 20px 0 0;
    width: 100%;
    max-width: 480px;
    max-height: 88dvh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateY(100%);
    transition: transform .28s cubic-bezier(.32,.72,0,1);
}

.modal-detalhes-panel::before {
    content: '';
    display: block;
    width: 40px;
    height: 4px;
    background: var(--gray-300);
    border-radius: 2px;
    margin: .75rem auto .25rem;
    flex-shrink: 0;
}

.modal-detalhes-overlay.aberto .modal-detalhes-panel {
    transform: translateY(0);
}

.modal-detalhes-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.25rem .75rem;
    border-bottom: 1px solid var(--gray-200);
}

.modal-detalhes-titulo {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--navy-800);
    margin-right: .6rem;
}

.modal-detalhes-close {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-400);
    padding: .25rem;
    border-radius: 50%;
    transition: background .15s;
}

.modal-detalhes-close:hover {
    background: var(--gray-100);
}

.modal-detalhes-body {
    flex: 1;
    overflow-y: auto;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: .75rem;
}

.md-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: .85rem;
}

.md-row-label {
    color: var(--text-400);
}

.md-row-value {
    font-weight: 600;
    color: var(--text-900);
}

.md-valor-destaque {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--navy-800);
    text-align: center;
    padding: .5rem 0;
}

.md-separator {
    border: none;
    border-top: 1px solid var(--gold-300);
    margin: .25rem 0;
}

.md-separator-light {
    border: none;
    border-top: 1px solid var(--gray-200);
    margin: .25rem 0;
}

.md-status-center {
    text-align: center;
    padding: 1rem 0;
}


.modal-detalhes-footer {
    padding: .75rem 1.25rem;
    border-top: 1px solid var(--gray-200);
    text-align: center;
    font-size: .7rem;
    color: var(--text-400);
}

/* =============================================
   MODAL PLANTA
   ============================================= */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(8, 23, 46, .75);
    backdrop-filter: blur(4px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.modal-overlay.modal-aberto {
    display: flex;
}

.modal-box {
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .875rem 1.25rem;
    border-bottom: 1px solid var(--gray-200);
    background: var(--navy-900);
    flex-shrink: 0;
}

.modal-titulo {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: .02em;
}

.modal-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.15);
    border-radius: var(--radius-sm);
    color: var(--navy-200);
    cursor: pointer;
    transition: background .2s, color .2s;
    flex-shrink: 0;
}

.modal-close:hover { background: rgba(255,255,255,.18); color: var(--white); }

.modal-body {
    overflow: auto;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-50);
}

.modal-body img {
    max-width: 100%;
    max-height: calc(90vh - 80px);
    object-fit: contain;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
}
