/* assets/css/ver_lote.css */

body { 
    background-color: #e5e7eb !important; 
    margin: 0;
    padding: 0;
}

.main-app-container {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto; 
    background-color: #f5f6f8; 
    min-height: 100vh;
    position: relative;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
    overflow-x: hidden;
    padding-bottom: 150px; 
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

/* BARRA DO WHATSAPP INLINE */
.bottom-action-bar {
    position: fixed;
    bottom: 70px; /* acima da bottom-nav-footer */
    left: 0;
    right: 0;
    max-width: 1000px;
    margin: 0 auto;
    padding: 10px 20px;
    box-sizing: border-box;
    z-index: 999;
    pointer-events: none; /* permite clicar nos elementos abaixo */
}
.bottom-action-bar button,
.bottom-action-bar a {
    pointer-events: auto;
    box-shadow: 0 4px 20px rgba(0,0,0,0.25);
}

/* --- MENU NAV INFERIOR TOTALMENTE COLADO E FIXADO NA BASE --- */
.bottom-nav-footer {
    position: fixed;
    bottom: 0;
    left: 0 !important;
    right: 0 !important;
    margin: 0 auto !important;
    max-width: 1000px; 
    width: 100%;
    background: #fff;
    display: flex;
    justify-content: space-around;
    padding: 12px 0;
    border-top: 1px solid #eee;
    z-index: 1000;
    box-sizing: border-box;
}

.bottom-nav-footer a {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #666;
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 600;
    gap: 4px;
    flex: 1;
    text-align: center;
}

.bottom-nav-footer a i { font-size: 1.2rem; }
.bottom-nav-footer a.active { color: #1c4316; }

/* BARRA SUPERIOR EXCLUSIVA DO DESKTOP */
.lote-desktop-top-bar {
    display: none; 
    background: #ffffff;
    padding: 12px 20px;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e5e7eb;
}

.desktop-bar-left {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    color: #111827;
    text-decoration: none;
    font-size: 1rem;
}

.desktop-bar-left i {
    color: #1c4316;
    font-size: 1.1rem;
}

/* CABEÇALHO MOBILE FLUTUANTE ADAPTADO */
.lote-header { 
    position: absolute; 
    top: 15px; 
    left: 0; 
    width: 100%; 
    display: flex; 
    justify-content: space-between; 
    padding: 0 20px; 
    z-index: 20; 
    box-sizing: border-box; 
    pointer-events: none; 
}

.lote-btn-icon { 
    width: 45px; 
    height: 45px; 
    border-radius: 50%; 
    background: rgba(0,0,0,0.6); 
    color: #ffffff; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-size: 1.2rem; 
    text-decoration: none; 
    box-shadow: 0 2px 5px rgba(0,0,0,0.5); 
    cursor: pointer; 
    border: none; 
    backdrop-filter: blur(4px); 
    pointer-events: auto;
}

.lote-btn-icon i { color: #ffffff; }

/* Breakpoint legado de 650px DESATIVADO — substituído pelo sistema
   completo dt-vl-* / body.is-iframe definido inline em ver_lote.php.
   Mantemos .lote-desktop-top-bar sempre oculta para não duplicar a topbar. */
.lote-desktop-top-bar { display: none !important; }

/* ÁREA DE VÍDEO COMPACTA */
.lote-media-container { 
    width: 100%; 
    aspect-ratio: 16 / 9; 
    background: #000; 
    position: relative; 
}

.lote-media-container video { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
}

.lote-badge-id { 
    position: absolute; 
    bottom: 20px; 
    left: 15px; 
    background: rgba(0,0,0,0.7); 
    color: #fff; 
    padding: 5px 12px; 
    border-radius: 8px; 
    font-weight: bold; 
    font-size: 0.85rem; 
    border: 1px solid rgba(255,255,255,0.2); 
    z-index: 10; 
    pointer-events: none;
}

/* ESTILO DO BOTÃO DE VIABILIDADE AVANÇADA */
.btn-calcular {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    text-align: center;
    background: #1c4316; 
    color: #fff !important; 
    font-weight: 700;
    padding: 14px 20px;
    border-radius: 12px;
    transition: background 0.2s, transform 0.1s;
    box-shadow: 0 4px 6px -1px rgba(28, 67, 22, 0.2);
    width: 100%;
    box-sizing: border-box;
}

.btn-calcular:hover { background: #5EBA81; }
.btn-calcular:active { transform: scale(0.99); }

/* Modificador discreto/secundário — usado no botão de viabilidade,
   que não deve competir visualmente com o CTA principal de negociação. */
.btn-calcular-secundario {
    width: auto;
    display: inline-flex;
    background: #f0fdf4;
    color: #1c4316 !important;
    border: 1px solid #bbf7d0;
    padding: 9px 18px;
    font-size: .85rem;
    box-shadow: none;
}
.btn-calcular-secundario:hover { background: #dcfce7; }

/* AJUSTE DO CONTEÚDO PRINCIPAL CINZA */
.lote-content { 
    padding: 20px; 
    margin-top: -20px; 
    position: relative; 
    z-index: 5; 
    background: #f5f6f8; 
    border-radius: 25px 25px 0 0; 
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-main { background: #fff; border-radius: 16px; padding: 20px; box-shadow: 0 4px 10px rgba(0,0,0,0.03); margin-bottom: 15px; }
.lote-title { font-size: 1.4rem; font-weight: 900; color: #111; margin: 0 0 5px 0; line-height: 1.2; }
.lote-location { color: #666; font-size: 0.9rem; margin-bottom: 15px; display: flex; align-items: center; gap: 6px; font-weight: 500;}
.lote-location i { color: #1c4316; }

.price-highlight { font-size: 2rem; font-weight: 900; color: #1c4316; display: flex; align-items: baseline; gap: 5px; margin-bottom: 5px;}
.price-highlight small { font-size: 1rem; color: #666; font-weight: 600; text-transform: lowercase; }
.payment-info { font-size: 0.85rem; color: #555; background: #f9f9f9; padding: 8px 12px; border-radius: 8px; display: inline-flex; align-items: center; gap: 8px; font-weight: bold; border: 1px solid #eee;}

/* --- LINHA DE AÇÕES UNIFICADA DENTRO DO CARD --- */
.card-actions-row {
    display: flex;
    gap: 12px;
    margin-top: 15px;
    border-top: 1px solid #f1f5f9;
    padding-top: 15px;
}

.btn-card-action {
    flex: 1;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 700;
    color: #475569;
    cursor: pointer;
    transition: 0.15s ease;
}

.btn-card-action:active { transform: scale(0.98); }
.btn-card-action.active-fav {
    background: #f0fdf4;
    border-color: #bbf7d0;
    color: #1c4316;
}

.btn-card-action.active-fav i {
    color: #1c4316 !important;
}

.section-title { font-size: 1.1rem; font-weight: 800; color: #333; margin: 25px 0 15px 0; display: flex; align-items: center; gap: 8px;}

.specs-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-bottom: 15px; }
.spec-item { background: #fff; padding: 8px 6px; border-radius: 10px; border: 1px solid #eee; display: flex; flex-direction: column; gap: 4px; align-items: center; text-align: center; }
.spec-item i { color: #1c4316; font-size: 0.85rem;}
.spec-label { font-size: 0.56rem; color: #888; font-weight: 700; text-transform: uppercase; white-space: nowrap; }
.spec-value { font-size: 0.72rem; color: #333; font-weight: 800; display: flex; flex-direction: column; align-items: center; gap: 2px;}

.info-list { background: #fff; border-radius: 16px; border: 1px solid #eee; overflow: hidden; }
.info-list-item { display: flex; align-items: center; justify-content: space-between; padding: 15px 20px; border-bottom: 1px solid #f9f9f9; }
.info-list-item:last-child { border-bottom: none; }
.info-left { display: flex; align-items: center; gap: 12px; font-size: 0.95rem; font-weight: 600; color: #444; }
.info-left i { width: 20px; text-align: center; color: #999; font-size: 1.1rem;}
.info-right { font-weight: 800; color: #111; font-size: 0.95rem;}
.status-check { color: #10b981; font-size: 1.2rem; }
.status-times { color: #d1d5db; font-size: 1.2rem; }

.seller-card { background: #fff; border-radius: 16px; padding: 20px; border: 1px solid #eee; display: flex; align-items: center; gap: 15px; margin-bottom: 5px;}
.seller-avatar { width: 60px; height: 60px; border-radius: 50%; background: #f0fdf4; border: 2px solid #bbf7d0; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; color: #1c4316; font-weight: bold;}
.seller-info { flex: 1; }
.seller-name { font-size: 1.1rem; font-weight: 800; color: #333; margin: 0 0 3px 0; }
.seller-type { font-size: 0.8rem; color: #10b981; font-weight: 700; display: flex; align-items: center; gap: 4px; }

.map-card { background: #fff; border-radius: 16px; padding: 15px; border: 1px solid #eee; margin-top: 15px; margin-bottom: 20px; box-shadow: 0 4px 10px rgba(0,0,0,0.03); }
#mapa-lote { width: 100%; height: 220px; border-radius: 12px; border: 1px solid #e5e7eb; position: relative; z-index: 1; margin-bottom: 12px; }
.map-footer-row { display: flex; justify-content: space-between; align-items: center; padding: 4px 5px 0 5px; }
.map-footer-item { display: flex; align-items: center; gap: 6px; font-size: 0.88rem; font-weight: 700; color: #333; }
.map-footer-item i { color: #1c4316; font-size: 1rem; width: 16px; text-align: center; }

.btn-whatsapp { 
    width: 100%; 
    padding: 16px; 
    border-radius: 12px; 
    border: none; 
    background: #25D366; 
    color: #fff; 
    font-size: 1.1rem; 
    font-weight: 800; 
    cursor: pointer; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    gap: 10px; 
    transition: 0.2s; 
    box-shadow: 0 4px 10px rgba(37,211,102,0.3);
    text-decoration: none;
    box-sizing: border-box; 
    margin-top: 5px;
    margin-bottom: 5px; 
}

.btn-whatsapp:active { transform: scale(0.98); }

/* LOTES DE DIVULGAÇÃO CORRIGIDOS */
.divulgacao-section { padding: 10px 0 15px; margin-top: auto; } 
.divulgacao-title { font-size: 1.1rem; font-weight: 800; color: #333; margin: 0 0 14px 0; display: flex; align-items: center; gap: 8px; padding: 0 20px; }
.divulgacao-scroll { display: flex; gap: 12px; overflow-x: auto; padding: 0 20px 8px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.divulgacao-scroll::-webkit-scrollbar { display: none; }
.divulgacao-card { flex: 0 0 85%; background: #fff; border-radius: 14px; border: 1px solid #eee; overflow: hidden; text-decoration: none; color: inherit; box-shadow: 0 2px 8px rgba(0,0,0,0.05); transition: transform 0.15s; display: block; }
.divulgacao-card:active { transform: scale(0.97); }

@media (min-width: 650px) {
    .divulgacao-card { flex: 0 0 calc(33.333% - 12px); }
}

.divulgacao-thumb { width: 100%; height: 160px; background: #2c2c2c; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.divulgacao-thumb video { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.divulgacao-thumb .no-video { color: #555; font-size: 2rem; }
.divulgacao-thumb .badge-lote { position: absolute; top: 8px; left: 8px; background: rgba(0,0,0,0.65); color: #fff; font-size: 0.7rem; font-weight: 700; padding: 3px 8px; border-radius: 6px; }
.divulgacao-body { padding: 12px; }
.divulgacao-body .d-titulo { font-size: 1rem; font-weight: 800; color: #222; margin: 0 0 4px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.divulgacao-body .d-raca { font-size: 0.8rem; color: #888; margin: 0 0 8px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.divulgacao-body .d-preco { font-size: 1rem; font-weight: 900; color: #1c4316; }
.divulgacao-body .d-local { font-size: 0.8rem; color: #999; margin-top: 6px; display: flex; align-items: center; gap: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* --- ESTILOS DO MODAL DE COMPARTILHAR ELEGANTE --- */
.share-modal-backdrop {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5); z-index: 9999;
    display: none; opacity: 0; transition: opacity 0.25s ease;
}

.share-modal-sheet {
    position: fixed; bottom: -100%; left: 0; right: 0; margin: 0 auto;
    max-width: 1000px; width: 100%; background: #fff;
    border-radius: 20px 20px 0 0; padding: 20px 20px 35px 20px;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.15); z-index: 10000;
    box-sizing: border-box; transition: bottom 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.share-modal-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 20px; border-bottom: 1px solid #eee; padding-bottom: 10px;
}

.share-modal-title { font-size: 1.05rem; font-weight: 800; color: #333; margin: 0; }
.share-modal-close { background: none; border: none; font-size: 1.2rem; color: #94a3b8; cursor: pointer; }
.share-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; text-align: center; }
.share-option {
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    text-decoration: none; color: #475569; font-size: 0.75rem; font-weight: 600; cursor: pointer;
}

.share-icon-circle {
    width: 50px; height: 50px; border-radius: 50%; display: flex;
    align-items: center; justify-content: center; font-size: 1.4rem; color: #fff;
    transition: 0.15s ease;
}

.share-icon-circle:active { transform: scale(0.92); }

@media (min-width: 650px) {
    .divulgacao-scroll { padding-bottom: 15px; }
    .divulgacao-scroll::-webkit-scrollbar { display: block !important; height: 6px; }
    .divulgacao-scroll::-webkit-scrollbar-track { background: #f1f1f1; border-radius: 10px; }
    .divulgacao-scroll::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 10px; }
    .divulgacao-scroll::-webkit-scrollbar-thumb:hover { background: #1c4316; }
}
/* ══════════════════════════════════════════════════════════════
   DESKTOP — bloco consolidado (movido do <style> inline do PHP
   para eliminar duplicação/conflito de CSS entre dois arquivos)
═══════════════════════════════════════════════════════════════ */
        /* ══════════════════════════════════════════════
           DESKTOP — oculto no mobile
           Mesmo padrão usado em todos os outros arquivos:
           topbar + hero + sidebar + footer institucional
        ══════════════════════════════════════════════ */
        .dt-vl { display: none; }

        @media (min-width: 1024px) {
            body:not(.is-iframe) .main-app-container { display: none !important; }
            body:not(.is-iframe) { background: #f0f2f5 !important; padding: 0 !important; margin: 0 !important; }
            body:not(.is-iframe) .dt-vl { display: flex; flex-direction: column; min-height: 100vh; background: #f0f2f5; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; width: 100%; }
        }
        body.is-iframe .main-app-container { display: none !important; }
        body.is-iframe { background: #f0f2f5 !important; padding: 0 !important; margin: 0 !important; }
        body.is-iframe .dt-vl { display: flex; flex-direction: column; min-height: 100vh; background: #f0f2f5; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; width: 100%; }

        /* — TOPBAR — */
        @media (min-width: 1024px) { body:not(.is-iframe) .dt-vl-topbar { background: #fff; border-bottom: 1px solid #e5e7eb; position: sticky; top: 0; z-index: 5000; box-shadow: 0 1px 4px rgba(0,0,0,.04); width: 100%; box-sizing: border-box; } }
        body.is-iframe .dt-vl-topbar { background: #fff; border-bottom: 1px solid #e5e7eb; position: sticky; top: 0; z-index: 5000; box-shadow: 0 1px 4px rgba(0,0,0,.04); width: 100%; box-sizing: border-box; }

        @media (min-width: 1024px) { body:not(.is-iframe) .dt-vl-topbar-inner { max-width: 1400px; margin: 0 auto; padding: 0 28px; height: 64px; display: flex; align-items: center; gap: 16px; } }
        body.is-iframe .dt-vl-topbar-inner { max-width: 1400px; margin: 0 auto; padding: 0 20px; height: 56px; display: flex; align-items: center; gap: 16px; }

        @media (min-width: 1024px) { body:not(.is-iframe) .dt-vl-logo { display: flex; align-items: center; text-decoration: none; } body:not(.is-iframe) .dt-vl-logo img { height: 42px; width: auto; object-fit: contain; } }
        body.is-iframe .dt-vl-logo { display: flex; align-items: center; text-decoration: none; }
        body.is-iframe .dt-vl-logo img { height: 36px; width: auto; object-fit: contain; }

        @media (min-width: 1024px) { body:not(.is-iframe) .dt-vl-back { display: flex; align-items: center; gap: 6px; color: #64748b; background: none; border: none; font-size: .84rem; font-weight: 500; padding: 8px 12px; border-radius: 8px; transition: .15s; cursor: pointer; text-decoration: none; } body:not(.is-iframe) .dt-vl-back:hover { background: #f1f5f9; color: #1e293b; } }
        body.is-iframe .dt-vl-back { display: flex; align-items: center; gap: 6px; color: #64748b; background: none; border: none; font-size: .84rem; font-weight: 500; padding: 8px 12px; border-radius: 8px; transition: .15s; cursor: pointer; text-decoration: none; }
        body.is-iframe .dt-vl-back:hover { background: #f1f5f9; color: #1e293b; }

        @media (min-width: 1024px) { body:not(.is-iframe) .dt-vl-title { font-size: 1rem; font-weight: 700; color: #1e293b; } body:not(.is-iframe) .dt-vl-topbar-right { margin-left: auto; display: flex; gap: 10px; } }
        body.is-iframe .dt-vl-title { font-size: 1rem; font-weight: 700; color: #1e293b; }
        body.is-iframe .dt-vl-topbar-right { margin-left: auto; display: flex; gap: 8px; }

        @media (min-width: 1024px) { body:not(.is-iframe) .dt-vl-btn-fav { display: inline-flex; align-items: center; gap: 6px; background: #fff; color: #475569; text-decoration: none; padding: 9px 16px; border: 1px solid #e2e8f0; border-radius: 9px; font-size: .82rem; font-weight: 600; transition: .15s; cursor: pointer; } body:not(.is-iframe) .dt-vl-btn-fav:hover { background: #f8fafc; } body:not(.is-iframe) .dt-vl-btn-fav.active-fav { background: #f0fdf4; border-color: #bbf7d0; color: #1c4316; } }
        body.is-iframe .dt-vl-btn-fav { display: inline-flex; align-items: center; gap: 6px; background: #fff; color: #475569; text-decoration: none; padding: 8px 14px; border: 1px solid #e2e8f0; border-radius: 9px; font-size: .80rem; font-weight: 600; transition: .15s; cursor: pointer; }
        body.is-iframe .dt-vl-btn-fav:hover { background: #f8fafc; }
        body.is-iframe .dt-vl-btn-fav.active-fav { background: #f0fdf4; border-color: #bbf7d0; color: #1c4316; }

        @media (min-width: 1024px) { body:not(.is-iframe) .dt-vl-btn-share { display: inline-flex; align-items: center; gap: 6px; background: #fff; color: #475569; border: 1px solid #e2e8f0; padding: 9px 16px; border-radius: 9px; font-size: .82rem; font-weight: 600; transition: .15s; cursor: pointer; } body:not(.is-iframe) .dt-vl-btn-share:hover { background: #f8fafc; } }
        body.is-iframe .dt-vl-btn-share { display: inline-flex; align-items: center; gap: 6px; background: #fff; color: #475569; border: 1px solid #e2e8f0; padding: 8px 14px; border-radius: 9px; font-size: .80rem; font-weight: 600; transition: .15s; cursor: pointer; }
        body.is-iframe .dt-vl-btn-share:hover { background: #f8fafc; }

        /* — HERO — */
        @media (min-width: 1024px) { body:not(.is-iframe) .dt-vl-hero { background: linear-gradient(135deg, #1c4316 0%, #2d6b24 60%, #3a8a2e 100%); padding: 28px 28px 24px 48px; color: #fff; position: relative; overflow: hidden; } body:not(.is-iframe) .dt-vl-hero::after { content: ''; position: absolute; right: -80px; top: -80px; width: 340px; height: 340px; border-radius: 50%; background: rgba(255,255,255,0.04); pointer-events: none; } }
        body.is-iframe .dt-vl-hero { background: linear-gradient(135deg, #1c4316 0%, #2d6b24 60%, #3a8a2e 100%); padding: 22px 20px 18px 36px; color: #fff; position: relative; overflow: hidden; }
        body.is-iframe .dt-vl-hero::after { content: ''; position: absolute; right: -80px; top: -80px; width: 340px; height: 340px; border-radius: 50%; background: rgba(255,255,255,0.04); pointer-events: none; }

        @media (min-width: 1024px) { body:not(.is-iframe) .dt-vl-hero-inner { max-width: 1400px; margin: 0 auto; display: flex; align-items: center; gap: 20px; } }
        body.is-iframe .dt-vl-hero-inner { max-width: 1400px; margin: 0 auto; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }

        @media (min-width: 1024px) { body:not(.is-iframe) .dt-vl-hero-icon { width: 64px; height: 64px; border-radius: 50%; background: rgba(255,255,255,0.15); border: 2.5px solid rgba(255,255,255,0.3); display: flex; align-items: center; justify-content: center; font-size: 1.7rem; flex-shrink: 0; color: #fff; } }
        body.is-iframe .dt-vl-hero-icon { width: 52px; height: 52px; border-radius: 50%; background: rgba(255,255,255,0.15); border: 2.5px solid rgba(255,255,255,0.3); display: flex; align-items: center; justify-content: center; font-size: 1.4rem; flex-shrink: 0; color: #fff; }
        .dt-vl-hero-icon i { font-family: "Font Awesome 6 Free" !important; font-weight: 900 !important; color: #fff !important; }

        @media (min-width: 1024px) { body:not(.is-iframe) .dt-vl-hero-text h2 { font-size: 1.4rem; font-weight: 800; margin: 0 0 4px; } body:not(.is-iframe) .dt-vl-hero-text p { font-size: .85rem; color: rgba(255,255,255,.65); margin: 0; } }
        body.is-iframe .dt-vl-hero-text h2 { font-size: 1.2rem; font-weight: 800; margin: 0 0 3px; }
        body.is-iframe .dt-vl-hero-text p { font-size: .8rem; color: rgba(255,255,255,.65); margin: 0; }

        @media (min-width: 1024px) { body:not(.is-iframe) .dt-vl-hero-kpis { margin-left: auto; display: flex; gap: 20px; flex-shrink: 0; } body:not(.is-iframe) .dt-vl-hero-kpi { text-align: center; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); border-radius: 12px; padding: 12px 22px; min-width: 90px; } body:not(.is-iframe) .dt-vl-hero-kpi-val { font-size: 1.5rem; font-weight: 900; line-height: 1; } body:not(.is-iframe) .dt-vl-hero-kpi-lbl { font-size: .68rem; color: rgba(255,255,255,.6); margin-top: 4px; text-transform: uppercase; letter-spacing: .4px; } }
        body.is-iframe .dt-vl-hero-kpis { margin-left: auto; display: flex; gap: 10px; flex-shrink: 0; flex-wrap: wrap; }
        body.is-iframe .dt-vl-hero-kpi { text-align: center; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); border-radius: 10px; padding: 9px 16px; min-width: 70px; }
        body.is-iframe .dt-vl-hero-kpi-val { font-size: 1.25rem; font-weight: 900; line-height: 1; }
        body.is-iframe .dt-vl-hero-kpi-lbl { font-size: .64rem; color: rgba(255,255,255,.6); margin-top: 3px; text-transform: uppercase; letter-spacing: .4px; }

        /* — MAIN LAYOUT — */
        @media (min-width: 1024px) { body:not(.is-iframe) .dt-vl-main { max-width: 1400px; margin: 0 auto; padding: 24px 28px 48px; flex: 1; width: 100%; box-sizing: border-box; display: grid; grid-template-columns: 1fr 380px; gap: 24px; align-items: start; } }
        body.is-iframe .dt-vl-main { max-width: 1400px; margin: 0 auto; padding: 14px 14px 32px; flex: 1; width: 100%; box-sizing: border-box; display: grid; grid-template-columns: 1fr 320px; gap: 16px; align-items: start; }

        /* — CONTEÚDO (esquerda) — */
        @media (min-width: 1024px) { body:not(.is-iframe) .dt-vl-content { display: flex; flex-direction: column; gap: 18px; } }
        body.is-iframe .dt-vl-content { display: flex; flex-direction: column; gap: 14px; }

        @media (min-width: 1024px) { body:not(.is-iframe) .dt-vl-video-card { border-radius: 16px; overflow: hidden; box-shadow: 0 1px 4px rgba(0,0,0,.06); aspect-ratio: 16/9; background: #000; position: relative; } }
        body.is-iframe .dt-vl-video-card { border-radius: 14px; overflow: hidden; box-shadow: 0 1px 4px rgba(0,0,0,.06); aspect-ratio: 16/9; background: #000; position: relative; }

        @media (min-width: 1024px) { body:not(.is-iframe) .dt-vl-video-card video, body:not(.is-iframe) .dt-vl-video-card body:not(.is-iframe) .dt-vl-no-video { width: 100%; height: 100%; object-fit: cover; } body:not(.is-iframe) .dt-vl-no-video { display: flex; flex-direction: column; align-items: center; justify-content: center; background: #2c2c2c; color: #666; } }
        body.is-iframe .dt-vl-video-card video, body.is-iframe .dt-vl-video-card .dt-vl-no-video { width: 100%; height: 100%; object-fit: cover; }
        body.is-iframe .dt-vl-no-video { display: flex; flex-direction: column; align-items: center; justify-content: center; background: #2c2c2c; color: #666; }

        @media (min-width: 1024px) { body:not(.is-iframe) .dt-vl-badge-id { position: absolute; bottom: 16px; left: 16px; background: rgba(0,0,0,.7); color: #fff; padding: 6px 14px; border-radius: 8px; font-weight: 800; font-size: .85rem; border: 1px solid rgba(255,255,255,.2); } }
        body.is-iframe .dt-vl-badge-id { position: absolute; bottom: 14px; left: 14px; background: rgba(0,0,0,.7); color: #fff; padding: 5px 12px; border-radius: 8px; font-weight: 800; font-size: .8rem; border: 1px solid rgba(255,255,255,.2); }

        @media (min-width: 1024px) { body:not(.is-iframe) .dt-vl-sec { background: #fff; border-radius: 16px; border: 1px solid #e5e7eb; box-shadow: 0 1px 4px rgba(0,0,0,.04); overflow: hidden; } }
        body.is-iframe .dt-vl-sec { background: #fff; border-radius: 14px; border: 1px solid #e5e7eb; box-shadow: 0 1px 4px rgba(0,0,0,.04); overflow: hidden; }

        @media (min-width: 1024px) { body:not(.is-iframe) .dt-vl-sec-head { padding: 16px 22px; border-bottom: 1px solid #f1f5f9; display: flex; align-items: center; gap: 10px; } body:not(.is-iframe) .dt-vl-sec-head h3 { margin: 0; font-size: .92rem; font-weight: 700; color: #1e293b; } }
        body.is-iframe .dt-vl-sec-head { padding: 13px 16px; border-bottom: 1px solid #f1f5f9; display: flex; align-items: center; gap: 8px; }
        body.is-iframe .dt-vl-sec-head h3 { margin: 0; font-size: .86rem; font-weight: 700; color: #1e293b; }

        @media (min-width: 1024px) { body:not(.is-iframe) .dt-vl-sec-body { padding: 20px 22px; } }
        body.is-iframe .dt-vl-sec-body { padding: 15px 16px; }

        /* Specs grid */
        @media (min-width: 1024px) { body:not(.is-iframe) .dt-vl-specs-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; } }
        body.is-iframe .dt-vl-specs-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }

        @media (min-width: 1024px) { body:not(.is-iframe) .dt-vl-spec { background: #f8fafc; padding: 14px; border-radius: 12px; border: 1px solid #f1f5f9; display: flex; flex-direction: column; gap: 5px; } body:not(.is-iframe) .dt-vl-spec i { color: #1c4316; font-size: 1.05rem; } body:not(.is-iframe) .dt-vl-spec-lbl { font-size: .7rem; color: #94a3b8; font-weight: 700; text-transform: uppercase; } body:not(.is-iframe) .dt-vl-spec-val { font-size: .92rem; color: #1e293b; font-weight: 800; display: flex; align-items: center; gap: 7px; } }
        body.is-iframe .dt-vl-spec { background: #f8fafc; padding: 12px; border-radius: 11px; border: 1px solid #f1f5f9; display: flex; flex-direction: column; gap: 4px; }
        body.is-iframe .dt-vl-spec i { color: #1c4316; font-size: 1rem; }
        body.is-iframe .dt-vl-spec-lbl { font-size: .66rem; color: #94a3b8; font-weight: 700; text-transform: uppercase; }
        body.is-iframe .dt-vl-spec-val { font-size: .86rem; color: #1e293b; font-weight: 800; display: flex; align-items: center; gap: 6px; }

        /* Info list (manejo/sanidade) */
        @media (min-width: 1024px) { body:not(.is-iframe) .dt-vl-info-row { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid #f8fafc; } body:not(.is-iframe) .dt-vl-info-row:last-child { border-bottom: none; } body:not(.is-iframe) .dt-vl-info-left { display: flex; align-items: center; gap: 10px; font-size: .88rem; font-weight: 600; color: #475569; } body:not(.is-iframe) .dt-vl-info-left i { width: 18px; text-align: center; color: #94a3b8; } body:not(.is-iframe) .dt-vl-info-right { font-weight: 800; color: #1e293b; font-size: .88rem; } }
        body.is-iframe .dt-vl-info-row { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid #f8fafc; }
        body.is-iframe .dt-vl-info-row:last-child { border-bottom: none; }
        body.is-iframe .dt-vl-info-left { display: flex; align-items: center; gap: 8px; font-size: .82rem; font-weight: 600; color: #475569; }
        body.is-iframe .dt-vl-info-left i { width: 16px; text-align: center; color: #94a3b8; }
        body.is-iframe .dt-vl-info-right { font-weight: 800; color: #1e293b; font-size: .82rem; }

        /* Vendedor card */
        @media (min-width: 1024px) { body:not(.is-iframe) .dt-vl-seller { display: flex; align-items: center; gap: 14px; text-decoration: none; color: inherit; cursor: pointer; transition: background .15s; padding: 4px; border-radius: 12px; } body:not(.is-iframe) .dt-vl-seller:hover { background: #f8fafc; } body:not(.is-iframe) .dt-vl-seller-avatar { width: 56px; height: 56px; border-radius: 50%; background: #f0fdf4; border: 2px solid #bbf7d0; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; color: #1c4316; font-weight: 800; flex-shrink: 0; } body:not(.is-iframe) .dt-vl-seller-name { font-size: 1rem; font-weight: 800; color: #1e293b; margin: 0 0 3px; } body:not(.is-iframe) .dt-vl-seller-type { font-size: .78rem; color: #10b981; font-weight: 700; display: flex; align-items: center; gap: 5px; } }
        body.is-iframe .dt-vl-seller { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; cursor: pointer; transition: background .15s; padding: 3px; border-radius: 11px; }
        body.is-iframe .dt-vl-seller:hover { background: #f8fafc; }
        body.is-iframe .dt-vl-seller-avatar { width: 48px; height: 48px; border-radius: 50%; background: #f0fdf4; border: 2px solid #bbf7d0; display: flex; align-items: center; justify-content: center; font-size: 1.15rem; color: #1c4316; font-weight: 800; flex-shrink: 0; }
        body.is-iframe .dt-vl-seller-name { font-size: .92rem; font-weight: 800; color: #1e293b; margin: 0 0 2px; }
        body.is-iframe .dt-vl-seller-type { font-size: .74rem; color: #10b981; font-weight: 700; display: flex; align-items: center; gap: 4px; }

        /* Mapa */
        @media (min-width: 1024px) { body:not(.is-iframe) #dt-mapa-lote { width: 100%; height: 280px; border-radius: 12px; border: 1px solid #e5e7eb; position: relative; z-index: 1; } body:not(.is-iframe) .dt-vl-map-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; } body:not(.is-iframe) .dt-vl-map-item { display: flex; align-items: center; gap: 6px; font-size: .85rem; font-weight: 700; color: #1e293b; } body:not(.is-iframe) .dt-vl-map-item i { color: #1c4316; } }
        body.is-iframe #dt-mapa-lote { width: 100%; height: 220px; border-radius: 11px; border: 1px solid #e5e7eb; position: relative; z-index: 1; }
        body.is-iframe .dt-vl-map-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; }
        body.is-iframe .dt-vl-map-item { display: flex; align-items: center; gap: 5px; font-size: .8rem; font-weight: 700; color: #1e293b; }
        body.is-iframe .dt-vl-map-item i { color: #1c4316; }

        /* — SIDEBAR (direita, sticky) — */
        @media (min-width: 1024px) { body:not(.is-iframe) .dt-vl-sidebar { position: sticky; top: 88px; display: flex; flex-direction: column; gap: 16px; } }
        body.is-iframe .dt-vl-sidebar { position: sticky; top: 70px; display: flex; flex-direction: column; gap: 12px; }

        /* Card de compra */
        @media (min-width: 1024px) { body:not(.is-iframe) .dt-vl-buy-card { background: #fff; border-radius: 16px; border: 1px solid #e5e7eb; box-shadow: 0 1px 4px rgba(0,0,0,.04); padding: 22px; position: relative; z-index: 10; } }
        body.is-iframe .dt-vl-buy-card { background: #fff; border-radius: 14px; border: 1px solid #e5e7eb; box-shadow: 0 1px 4px rgba(0,0,0,.04); padding: 16px; position: relative; z-index: 10; }

        @media (min-width: 1024px) { body:not(.is-iframe) .dt-vl-buy-lbl { font-size: .72rem; font-weight: 700; color: #64748b; text-transform: uppercase; letter-spacing: .4px; } body:not(.is-iframe) .dt-vl-buy-price { font-size: 2rem; font-weight: 900; color: #1c4316; display: flex; align-items: baseline; gap: 6px; margin: 4px 0 14px; } body:not(.is-iframe) .dt-vl-buy-price small { font-size: 1rem; color: #94a3b8; font-weight: 600; } }
        body.is-iframe .dt-vl-buy-lbl { font-size: .68rem; font-weight: 700; color: #64748b; text-transform: uppercase; letter-spacing: .4px; }
        body.is-iframe .dt-vl-buy-price { font-size: 1.7rem; font-weight: 900; color: #1c4316; display: flex; align-items: baseline; gap: 5px; margin: 3px 0 12px; }
        body.is-iframe .dt-vl-buy-price small { font-size: .9rem; color: #94a3b8; font-weight: 600; }

        @media (min-width: 1024px) { body:not(.is-iframe) .dt-vl-buy-extra { border-top: 1px solid #f1f5f9; padding-top: 14px; margin-bottom: 14px; } body:not(.is-iframe) .dt-vl-buy-extra-val { font-size: 1.05rem; font-weight: 800; color: #1e293b; margin-top: 4px; } }
        body.is-iframe .dt-vl-buy-extra { border-top: 1px solid #f1f5f9; padding-top: 12px; margin-bottom: 12px; }
        body.is-iframe .dt-vl-buy-extra-val { font-size: .9rem; font-weight: 800; color: #1e293b; margin-top: 3px; }

        @media (min-width: 1024px) { body:not(.is-iframe) .dt-vl-payment-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; } body:not(.is-iframe) .dt-vl-payment-info { font-size: .8rem; color: #475569; background: #f8fafc; padding: 7px 11px; border-radius: 8px; display: inline-flex; align-items: center; gap: 7px; font-weight: 700; border: 1px solid #f1f5f9; } }
        body.is-iframe .dt-vl-payment-row { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 14px; }
        body.is-iframe .dt-vl-payment-info { font-size: .74rem; color: #475569; background: #f8fafc; padding: 6px 10px; border-radius: 8px; display: inline-flex; align-items: center; gap: 6px; font-weight: 700; border: 1px solid #f1f5f9; }

        @media (min-width: 1024px) { body:not(.is-iframe) .dt-vl-btn-negociar { width: 100%; box-sizing: border-box; background: #1c4316; color: #fff; border: none; padding: 15px; border-radius: 12px; font-weight: 800; font-size: .95rem; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 9px; transition: .15s; box-shadow: 0 4px 12px rgba(28,67,22,.2); position: relative; z-index: 11; pointer-events: auto; } body:not(.is-iframe) .dt-vl-btn-negociar:hover { background: #15532a; } }
        body.is-iframe .dt-vl-btn-negociar { width: 100%; box-sizing: border-box; background: #1c4316; color: #fff; border: none; padding: 13px; border-radius: 11px; font-weight: 800; font-size: .88rem; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; transition: .15s; box-shadow: 0 3px 10px rgba(28,67,22,.2); position: relative; z-index: 11; pointer-events: auto; }

        /* Botão secundário/discreto — "Simular Viabilidade Avançada".
           Não reutiliza dt-vl-btn-negociar (esse é o CTA principal da
           sidebar). Largura automática, sem preenchimento sólido. */
        .dt-vl-btn-viabilidade {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 7px;
            width: auto;
            background: #f0fdf4;
            color: #1c4316;
            border: 1px solid #bbf7d0;
            padding: 9px 18px;
            border-radius: 9px;
            font-weight: 700;
            font-size: .82rem;
            cursor: pointer;
            transition: .15s;
        }
        .dt-vl-btn-viabilidade:hover { background: #dcfce7; border-color: #86efac; }
        body.is-iframe .dt-vl-btn-negociar:hover { background: #15532a; }

        @media (min-width: 1024px) { body:not(.is-iframe) .dt-vl-btn-owner { width: 100%; box-sizing: border-box; background: #e2e8f0; color: #94a3b8; border: none; padding: 15px; border-radius: 12px; font-weight: 800; font-size: .95rem; display: flex; align-items: center; justify-content: center; gap: 9px; cursor: not-allowed; opacity: .8; } body:not(.is-iframe) .dt-vl-btn-entrar { width: 100%; box-sizing: border-box; background: #00bf63; color: #fff; border: none; padding: 15px; border-radius: 12px; font-weight: 800; font-size: .95rem; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 9px; text-decoration: none; box-shadow: 0 4px 12px rgba(0,191,99,.25); } }
        body.is-iframe .dt-vl-btn-owner { width: 100%; box-sizing: border-box; background: #e2e8f0; color: #94a3b8; border: none; padding: 13px; border-radius: 11px; font-weight: 800; font-size: .88rem; display: flex; align-items: center; justify-content: center; gap: 8px; cursor: not-allowed; opacity: .8; }
        body.is-iframe .dt-vl-btn-entrar { width: 100%; box-sizing: border-box; background: #00bf63; color: #fff; border: none; padding: 13px; border-radius: 11px; font-weight: 800; font-size: .88rem; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; box-shadow: 0 3px 10px rgba(0,191,99,.25); }

        /* Card de frete */
        @media (min-width: 1024px) { body:not(.is-iframe) .dt-vl-frete-card { background: #fff; border-radius: 16px; border: 1px solid #e5e7eb; box-shadow: 0 1px 4px rgba(0,0,0,.04); padding: 20px; } body:not(.is-iframe) .dt-vl-frete-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; border-bottom: 1px solid #f1f5f9; padding-bottom: 11px; } body:not(.is-iframe) .dt-vl-frete-head span { font-size: .8rem; font-weight: 700; color: #1e293b; text-transform: uppercase; letter-spacing: .4px; } }
        body.is-iframe .dt-vl-frete-card { background: #fff; border-radius: 14px; border: 1px solid #e5e7eb; box-shadow: 0 1px 4px rgba(0,0,0,.04); padding: 16px; }
        body.is-iframe .dt-vl-frete-head { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; border-bottom: 1px solid #f1f5f9; padding-bottom: 10px; }
        body.is-iframe .dt-vl-frete-head span { font-size: .76rem; font-weight: 700; color: #1e293b; text-transform: uppercase; letter-spacing: .4px; }

        /* Segurança / insight */
        @media (min-width: 1024px) { body:not(.is-iframe) .dt-vl-insight { background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 14px; padding: 14px 16px; display: flex; gap: 12px; align-items: flex-start; } body:not(.is-iframe) .dt-vl-insight i { color: #1c4316; font-size: 1rem; margin-top: 2px; flex-shrink: 0; } body:not(.is-iframe) .dt-vl-insight strong { display: block; margin-bottom: 3px; color: #14532d; font-size: .84rem; } body:not(.is-iframe) .dt-vl-insight p { margin: 0; font-size: .76rem; color: #475569; line-height: 1.45; } }
        body.is-iframe .dt-vl-insight { background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 12px; padding: 12px 14px; display: flex; gap: 10px; align-items: flex-start; }
        body.is-iframe .dt-vl-insight i { color: #1c4316; font-size: .9rem; margin-top: 2px; flex-shrink: 0; }
        body.is-iframe .dt-vl-insight strong { display: block; margin-bottom: 2px; color: #14532d; font-size: .78rem; }
        body.is-iframe .dt-vl-insight p { margin: 0; font-size: .72rem; color: #475569; line-height: 1.4; }

        /* Outros lotes desktop — grid 4 colunas */
        /* ── Outros Lotes em Destaque — grid único e simplificado ──
           Funciona igual em @media desktop e dentro do iframe,
           sem depender de duas variantes paralelas conflitantes. */
        .dt-vl-divulgacao {
            max-width: 1400px;
            margin: 0 auto;
            padding: 0 28px 48px;
            box-sizing: border-box;
            width: 100%;
        }
        .dt-vl-divulgacao h3 {
            font-size: 1.05rem;
            font-weight: 800;
            color: #1e293b;
            margin: 0 0 16px;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        .dt-vl-divulgacao-grid {
            display: grid !important;
            grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
            gap: 16px;
            width: 100%;
        }
        .dt-vl-d-card {
            background: #fff;
            border-radius: 14px;
            border: 1px solid #e5e7eb;
            overflow: hidden;
            text-decoration: none;
            color: inherit;
            box-shadow: 0 1px 4px rgba(0,0,0,.04);
            transition: transform .15s, box-shadow .15s;
            display: block;
            min-width: 0;
        }
        .dt-vl-d-card:hover {
            transform: translateY(-3px);
            box-shadow: 0 8px 20px rgba(28,67,22,.12);
        }
        .dt-vl-d-thumb {
            width: 100%;
            height: 150px;
            background: #2c2c2c;
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
            overflow: hidden;
        }
        .dt-vl-d-thumb video {
            width: 100%;
            height: 100%;
            object-fit: cover;
            pointer-events: none;
        }
        .dt-vl-d-thumb .dt-no-video {
            color: #555;
            font-size: 1.8rem;
        }
        .dt-vl-d-badge {
            position: absolute;
            top: 8px;
            left: 8px;
            background: rgba(0,0,0,.65);
            color: #fff;
            font-size: .68rem;
            font-weight: 700;
            padding: 3px 8px;
            border-radius: 6px;
        }
        .dt-vl-d-body { padding: 13px; }
        .dt-vl-d-titulo {
            font-size: .92rem;
            font-weight: 800;
            color: #222;
            margin: 0 0 4px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        .dt-vl-d-raca {
            font-size: .76rem;
            color: #888;
            margin: 0 0 7px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        .dt-vl-d-preco {
            font-size: .92rem;
            font-weight: 900;
            color: #1c4316;
        }
        .dt-vl-d-local {
            font-size: .76rem;
            color: #999;
            margin-top: 6px;
            display: flex;
            align-items: center;
            gap: 4px;
        }

        /* Ajustes finos só quando dentro do iframe estreito */
        body.is-iframe .dt-vl-divulgacao { padding: 0 14px 32px; }
        body.is-iframe .dt-vl-divulgacao h3 { font-size: .94rem; margin-bottom: 13px; gap: 7px; }
        body.is-iframe .dt-vl-divulgacao-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 12px; }
        body.is-iframe .dt-vl-d-card { border-radius: 13px; }
        body.is-iframe .dt-vl-d-thumb { height: 120px; }
        body.is-iframe .dt-vl-d-thumb .dt-no-video { font-size: 1.5rem; }
        body.is-iframe .dt-vl-d-badge { top: 6px; left: 6px; font-size: .62rem; padding: 2px 7px; }
        body.is-iframe .dt-vl-d-body { padding: 10px; }
        body.is-iframe .dt-vl-d-titulo { font-size: .82rem; margin-bottom: 3px; }
        body.is-iframe .dt-vl-d-raca { font-size: .7rem; margin-bottom: 6px; }
        body.is-iframe .dt-vl-d-preco { font-size: .82rem; }
        body.is-iframe .dt-vl-d-local { font-size: .7rem; margin-top: 5px; }

        /* — FOOTER — */
        @media (min-width: 1024px) { body:not(.is-iframe) .dt-vl-footer { background: #fff; border-top: 1px solid #e5e7eb; padding: 24px 28px; width: 100%; box-sizing: border-box; margin-top: auto; } body:not(.is-iframe) .dt-vl-footer-inner { max-width: 1400px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; font-size: .76rem; color: #94a3b8; flex-wrap: wrap; gap: 12px; } body:not(.is-iframe) .dt-vl-footer-links { display: flex; gap: 16px; } body:not(.is-iframe) .dt-vl-footer-links a { color: #94a3b8; text-decoration: none; transition: .15s; } body:not(.is-iframe) .dt-vl-footer-links a:hover { color: #1c4316; } body:not(.is-iframe) .dt-vl-footer-social { display: flex; gap: 8px; } body:not(.is-iframe) .dt-vl-footer-social a { width: 28px; height: 28px; border-radius: 50%; background: #f1f5f9; display: flex; align-items: center; justify-content: center; color: #64748b; font-size: .8rem; text-decoration: none; transition: .15s; border: 1px solid #e2e8f0; } body:not(.is-iframe) .dt-vl-footer-social a:hover { background: #1c4316; color: #fff; border-color: #1c4316; } }
        body.is-iframe .dt-vl-footer { background: #fff; border-top: 1px solid #e5e7eb; padding: 16px 20px; width: 100%; box-sizing: border-box; margin-top: auto; }
        body.is-iframe .dt-vl-footer-inner { max-width: 1400px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; font-size: .74rem; color: #94a3b8; flex-wrap: wrap; gap: 10px; }
        body.is-iframe .dt-vl-footer-links { display: flex; gap: 14px; }
        body.is-iframe .dt-vl-footer-links a { color: #94a3b8; text-decoration: none; transition: .15s; }
        body.is-iframe .dt-vl-footer-links a:hover { color: #1c4316; }
        body.is-iframe .dt-vl-footer-social { display: flex; gap: 8px; }
        body.is-iframe .dt-vl-footer-social a { width: 26px; height: 26px; border-radius: 50%; background: #f1f5f9; display: flex; align-items: center; justify-content: center; color: #64748b; font-size: .76rem; text-decoration: none; transition: .15s; border: 1px solid #e2e8f0; }
        body.is-iframe .dt-vl-footer-social a:hover { background: #1c4316; color: #fff; border-color: #1c4316; }

        /* ══════════════════════════════════════════════════════════
           PAINEL DE NEGOCIAÇÃO — intermediado via WhatsApp/Z-API
           Substitui o antigo chat-modal flutuante (position:fixed +
           overlay + z-index alto, que brigava com a navegação fixa
           do mobile e com a topbar/sidebar do desktop). Agora é uma
           seção normal da página: abre/fecha como um card inline,
           sem overlay e sem posicionamento fixo. Funciona idêntico
           em mobile, desktop e dentro do iframe do modal de perfil.
        ═══════════════════════════════════════════════════════════ */
        .chat-painel-card {
            background: #fff;
            border: 1px solid #e2e8f0;
            border-radius: 16px;
            overflow: hidden;
            box-shadow: 0 4px 18px rgba(15,23,42,.06);
            margin: 14px 0 0;
            flex-direction: column;
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
        }
        .chat-painel-card.chat-aberto { display: flex !important; }

        /* Quando o painel é movido para dentro do card de compra do
           desktop (sidebar), reduz um pouco o respiro lateral já que
           o card-pai já tem padding próprio. */
        #chat-slot-desktop .chat-painel-card { margin: 16px -22px -22px; border-radius: 0 0 16px 16px; border-left: none; border-right: none; border-bottom: none; }
        body.is-iframe #chat-slot-desktop .chat-painel-card { margin: 14px -16px -16px; border-radius: 0 0 14px 14px; }

        .chat-painel-head {
            background: #1e293b;
            color: #fff;
            padding: 14px 18px;
            display: flex;
            align-items: center;
            gap: 12px;
        }
        .chat-painel-avatar {
            width: 40px; height: 40px;
            border-radius: 50%;
            background: #1c4316;
            display: flex; align-items: center; justify-content: center;
            font-weight: 800; font-size: 1.1rem;
            flex-shrink: 0;
        }
        .chat-painel-info { flex: 1; min-width: 0; }
        .chat-painel-nome {
            font-weight: 700; font-size: .95rem;
            white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
        }
        .chat-painel-sub { font-size: .75rem; color: #94a3b8; }
        .chat-painel-fechar {
            background: none; border: none; color: #94a3b8;
            font-size: 1.4rem; cursor: pointer; padding: 0; line-height: 1;
        }
        .chat-painel-fechar:hover { color: #fff; }

        .chat-painel-aviso {
            background: #f0fdf4;
            border-bottom: 1px solid #bbf7d0;
            color: #14532d;
            font-size: .76rem;
            line-height: 1.45;
            padding: 10px 16px;
            display: flex;
            align-items: flex-start;
            gap: 8px;
        }
        .chat-painel-aviso i { color: #25d366; margin-top: 2px; flex-shrink: 0; }

        .chat-painel-msgs {
            min-height: 280px;
            max-height: 420px;
            overflow-y: auto;
            padding: 16px 14px;
            background: #f0f2f5;
            display: flex;
            flex-direction: column;
            gap: 8px;
        }
        .chat-painel-loading {
            text-align: center; color: #94a3b8; font-size: .85rem; padding: 20px;
        }
        .chat-painel-vazio {
            text-align: center; color: #94a3b8; font-size: .85rem; padding: 30px 20px;
        }
        .chat-painel-vazio i {
            font-size: 1.8rem; display: block; margin-bottom: 8px; color: #cbd5e1;
        }

        .chat-msg-row { display: flex; flex-direction: column; }
        .chat-msg-row.chat-msg-minha { align-items: flex-end; }
        .chat-msg-row.chat-msg-outro { align-items: flex-start; }
        .chat-msg-bolha {
            max-width: 78%;
            padding: 8px 12px;
            box-shadow: 0 1px 2px rgba(0,0,0,.08);
            font-size: .88rem;
            color: #1e293b;
            line-height: 1.45;
        }
        .chat-msg-minha .chat-msg-bolha { background: #dcf8c6; border-radius: 12px 12px 2px 12px; }
        .chat-msg-outro .chat-msg-bolha { background: #fff; border-radius: 12px 12px 12px 2px; }
        .chat-msg-autor {
            font-size: .72rem; font-weight: 700; color: #1c4316;
            display: block; margin-bottom: 2px;
        }
        .chat-msg-hora {
            font-size: .68rem; color: #94a3b8; display: block;
            text-align: right; margin-top: 3px;
        }

        .chat-painel-input-row {
            padding: 10px 12px;
            background: #fff;
            border-top: 1px solid #f1f5f9;
            display: flex;
            gap: 8px;
            align-items: flex-end;
        }
        .chat-painel-textarea {
            flex: 1;
            border: 1px solid #e2e8f0;
            border-radius: 20px;
            padding: 10px 16px;
            font-size: .9rem;
            resize: none;
            outline: none;
            max-height: 100px;
            font-family: inherit;
            line-height: 1.4;
            text-align: left;
            vertical-align: top;
            display: block;
        }
        .chat-painel-textarea:focus { border-color: #1c4316; }
        .chat-painel-enviar {
            width: 42px; height: 42px;
            border-radius: 50%;
            border: none;
            background: #1c4316;
            color: #fff;
            font-size: 1.1rem;
            cursor: pointer;
            flex-shrink: 0;
            display: flex; align-items: center; justify-content: center;
            transition: background .15s;
        }
        .chat-painel-enviar:hover { background: #15532a; }

        /* No desktop, dá um respiro maior na área de mensagens */
        @media (min-width: 1024px) {
            .chat-painel-msgs { min-height: 340px; max-height: 480px; }
        }