/* Nexa - @font-face (pesos e itálicos) */
@font-face {
    font-family: 'Nexa';
    src: url('../fonts/nexa/Nexa-Thin.eot');
    src: url('../fonts/nexa/Nexa-Thin.eot?#iefix') format('embedded-opentype'),
         url('../fonts/nexa/Nexa-Thin.woff2') format('woff2'),
         url('../fonts/nexa/Nexa-Thin.woff') format('woff');
    font-weight: 100;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Nexa';
    src: url('../fonts/nexa/Nexa-ThinItalic.eot');
    src: url('../fonts/nexa/Nexa-ThinItalic.eot?#iefix') format('embedded-opentype'),
         url('../fonts/nexa/Nexa-ThinItalic.woff2') format('woff2'),
         url('../fonts/nexa/Nexa-ThinItalic.woff') format('woff');
    font-weight: 100;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Nexa';
    src: url('../fonts/nexa/Nexa-Light.eot');
    src: url('../fonts/nexa/Nexa-Light.eot?#iefix') format('embedded-opentype'),
         url('../fonts/nexa/Nexa-Light.woff2') format('woff2'),
         url('../fonts/nexa/Nexa-Light.woff') format('woff');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Nexa';
    src: url('../fonts/nexa/Nexa-LightItalic.eot');
    src: url('../fonts/nexa/Nexa-LightItalic.eot?#iefix') format('embedded-opentype'),
         url('../fonts/nexa/Nexa-LightItalic.woff2') format('woff2'),
         url('../fonts/nexa/Nexa-LightItalic.woff') format('woff');
    font-weight: 300;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Nexa';
    src: url('../fonts/nexa/Nexa-Book.eot');
    src: url('../fonts/nexa/Nexa-Book.eot?#iefix') format('embedded-opentype'),
         url('../fonts/nexa/Nexa-Book.woff2') format('woff2'),
         url('../fonts/nexa/Nexa-Book.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
/* Algumas packs incluem também “Nexa-Regular”. (mesmo weight 400 normal) */
@font-face {
    font-family: 'Nexa';
    src: url('../fonts/nexa/Nexa-Regular.eot');
    src: url('../fonts/nexa/Nexa-Regular.eot?#iefix') format('embedded-opentype'),
         url('../fonts/nexa/Nexa-Regular.woff2') format('woff2'),
         url('../fonts/nexa/Nexa-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Nexa';
    src: url('../fonts/nexa/Nexa-BookItalic.eot');
    src: url('../fonts/nexa/Nexa-BookItalic.eot?#iefix') format('embedded-opentype'),
         url('../fonts/nexa/Nexa-BookItalic.woff2') format('woff2'),
         url('../fonts/nexa/Nexa-BookItalic.woff') format('woff');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}
/* Algumas packs incluem também “Nexa-Italic” (mesmo weight 400 italic). */
@font-face {
    font-family: 'Nexa';
    src: url('../fonts/nexa/Nexa-Italic.eot');
    src: url('../fonts/nexa/Nexa-Italic.eot?#iefix') format('embedded-opentype'),
         url('../fonts/nexa/Nexa-Italic.woff2') format('woff2'),
         url('../fonts/nexa/Nexa-Italic.woff') format('woff');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Nexa';
    src: url('../fonts/nexa/Nexa-Bold.eot');
    src: url('../fonts/nexa/Nexa-Bold.eot?#iefix') format('embedded-opentype'),
         url('../fonts/nexa/Nexa-Bold.woff2') format('woff2'),
         url('../fonts/nexa/Nexa-Bold.woff') format('woff');
    /* O tema costuma usar 600/700; mapeamos Bold => 600 */
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Nexa';
    src: url('../fonts/nexa/Nexa-BoldItalic.eot');
    src: url('../fonts/nexa/Nexa-BoldItalic.eot?#iefix') format('embedded-opentype'),
         url('../fonts/nexa/Nexa-BoldItalic.woff2') format('woff2'),
         url('../fonts/nexa/Nexa-BoldItalic.woff') format('woff');
    font-weight: 600;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Nexa';
    src: url('../fonts/nexa/Nexa-Heavy.eot');
    src: url('../fonts/nexa/Nexa-Heavy.eot?#iefix') format('embedded-opentype'),
         url('../fonts/nexa/Nexa-Heavy.woff2') format('woff2'),
         url('../fonts/nexa/Nexa-Heavy.woff') format('woff');
    /* Mapeado para 700 */
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Nexa';
    src: url('../fonts/nexa/Nexa-HeavyItalic.eot');
    src: url('../fonts/nexa/Nexa-HeavyItalic.eot?#iefix') format('embedded-opentype'),
         url('../fonts/nexa/Nexa-HeavyItalic.woff2') format('woff2'),
         url('../fonts/nexa/Nexa-HeavyItalic.woff') format('woff');
    font-weight: 700;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Nexa';
    src: url('../fonts/nexa/Nexa-XBold.eot');
    src: url('../fonts/nexa/Nexa-XBold.eot?#iefix') format('embedded-opentype'),
         url('../fonts/nexa/Nexa-XBold.woff2') format('woff2'),
         url('../fonts/nexa/Nexa-XBold.woff') format('woff');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Nexa';
    src: url('../fonts/nexa/Nexa-XBoldItalic.eot');
    src: url('../fonts/nexa/Nexa-XBoldItalic.eot?#iefix') format('embedded-opentype'),
         url('../fonts/nexa/Nexa-XBoldItalic.woff2') format('woff2'),
         url('../fonts/nexa/Nexa-XBoldItalic.woff') format('woff');
    font-weight: 800;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Nexa';
    src: url('../fonts/nexa/Nexa-Black.eot');
    src: url('../fonts/nexa/Nexa-Black.eot?#iefix') format('embedded-opentype'),
         url('../fonts/nexa/Nexa-Black.woff2') format('woff2'),
         url('../fonts/nexa/Nexa-Black.woff') format('woff');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Nexa';
    src: url('../fonts/nexa/Nexa-BlackItalic.eot');
    src: url('../fonts/nexa/Nexa-BlackItalic.eot?#iefix') format('embedded-opentype'),
         url('../fonts/nexa/Nexa-BlackItalic.woff2') format('woff2'),
         url('../fonts/nexa/Nexa-BlackItalic.woff') format('woff');
    font-weight: 900;
    font-style: italic;
    font-display: swap;
}

.img-team {
    border-radius: 50% !important;
    background-color: #F0f0f0 !important;
    margin-left: 10px !important;
    margin-right: 10px !important;
}

/* Modal Agendar Visita (custom) */
.modal-agendar { 
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    visibility: hidden; 
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: none;
}
.modal-agendar.is-open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}
.modal-agendar__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    cursor: pointer;
}
.modal-agendar__box {
    position: relative;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    z-index: 1;
}
.modal-agendar__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #eee;
    flex-shrink: 0;
}
.modal-agendar__title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
}
.modal-agendar__close {
    background: none;
    border: none;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    transition: color 0.2s;
}
.modal-agendar__close:hover {
    color: #000;
}
.modal-agendar__body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
}
/* ========================================
   Formulários Morcode - uniformização
   ======================================== */

/* Base: inputs e botões */
.morcode-form .morcode-field {
    margin-bottom: 1rem;
}
.morcode-form .morcode-label {
    display: block;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.4rem;
}
.morcode-form .morcode-input,
.morcode-form .morcode-textarea {
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    outline: none;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.morcode-form .morcode-textarea {
    min-height: 100px;
    resize: vertical;
}
.morcode-form .morcode-btn {
    padding: 12px 22px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: opacity 0.2s, background 0.2s;
}
.morcode-form .morcode-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Formulário compacto - duas colunas */
.morcode-form--compact .morcode-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 1rem;
    margin-bottom: 1rem;
}
.morcode-form--compact .morcode-form__row .morcode-field {
    margin-bottom: 0;
}
@media (max-width: 480px) {
    .morcode-form--compact .morcode-form__row {
        grid-template-columns: 1fr;
        gap: 0;
        margin-bottom: 1rem;
    }
    .morcode-form--compact .morcode-form__row .morcode-field {
        margin-bottom: 1rem;
    }
    .morcode-form--compact .morcode-form__row .morcode-field:last-child {
        margin-bottom: 0;
    }
}

/* Botão pequeno (ex: na tabela Reservar) */
.morcode-btn {
    display: inline-block;
    padding: 12px 22px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    text-decoration: none;
    text-align: center;
    transition: opacity 0.2s, background 0.2s;
}
.morcode-btn--sm {
    padding: 8px 16px;
    font-size: 0.875rem;
}
.morcode-btn--primary {
    background: var(--bg-dark-1, #1a1a1a);
    color: #fff;
}
.morcode-btn--primary:hover {
    opacity: 0.92;
    color: #fff;
}

/* Variante LIGHT: fundo branco/claro (modal, contacto) */
.morcode-form--light .morcode-label {
    color: #333;
}
.morcode-form--light .morcode-input,
.morcode-form--light .morcode-textarea {
    background: #fff;
    border: 1px solid #d1d5db;
    color: #1a1a1a;
}
.morcode-form--light .morcode-input::placeholder,
.morcode-form--light .morcode-textarea::placeholder {
    color: #9ca3af;
}
.morcode-form--light .morcode-input:focus,
.morcode-form--light .morcode-textarea:focus {
    border-color: var(--primary-color, #333);
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.08);
}
.morcode-form--light .morcode-btn {
    background: var(--bg-dark-1, #1a1a1a);
    color: #fff;
}
.morcode-form--light .morcode-btn:hover:not(:disabled) {
    opacity: 0.92;
}

/* Variante DARK: fundo escuro/azul (brochura) */
.morcode-form--dark .morcode-label {
    color: #fff;
}
.morcode-form--dark .morcode-input,
.morcode-form--dark .morcode-textarea {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.75);
    color: #fff;
}
.morcode-form--dark .morcode-input::placeholder,
.morcode-form--dark .morcode-textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
}
.morcode-form--dark .morcode-input:focus,
.morcode-form--dark .morcode-textarea:focus {
    border-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.15);
}
.morcode-form--dark .morcode-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.85);
    color: #fff;
}
.morcode-form--dark .morcode-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.15);
}

/* Secção brochura */
.section-brochura {
    padding: 60px 0;
}
.section-brochura__title {
    color: #fff !important;
    margin-bottom: 18px;
}

.section-localizacao {
    padding-bottom: 0 !important;
}

.section-tipologias__title {
    color: var(--bg-dark-1, #1a1a1a) !important;
}
.section-tipologias__card-title {
    color: var(--bg-dark-1, #1a1a1a) !important;
}

.classe-energetica-box {
    width: 120px;
    height: 120px;
    min-width: 120px;
    min-height: 120px;
}
.classe-energetica-img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.banner-empreendimento-video {
    object-fit: cover;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.section-sobre__icone-item {
    margin: 0 20px;
}

.section-caracteristicas__icone-item {
    margin: 10px 20px;
}
.section-caracteristicas__icone-texto {
    opacity: 0.8;
}

/* Secção contacto - form inline */
.section-contato .morcode-form {
    max-width: 100%;
}

/* Modal Agendar / Reservar - form */
.modal-agendar__body .morcode-form {
    max-width: 100%;
}

/* Modal feedback - sucesso/erro (usa fontes e cores do site) */
.modal-feedback .modal-feedback__message {
    font-family: 'Nexa', Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.5;
    color: #333;
    margin: 0 0 1.5rem 0;
}
.modal-feedback__actions {
    margin-top: 1rem;
}
.modal-feedback__actions .morcode-btn {
    background: var(--bg-dark-1, #1a1a1a);
    color: #fff;
}
.modal-feedback--error .modal-feedback__title {
    color: #c0392b;
}

/* Isolar Fluent Form na modal: sem animações do tema, layout estável (legado) */
.modal-agendar__form-wrap {
    animation: none !important;
}
.modal-agendar__form-wrap .wow,
.modal-agendar__form-wrap [data-wow-delay] {
    visibility: visible !important;
    animation: none !important;
}
.modal-agendar__form-wrap .fluentform {
    max-width: 100%;
}

/* Popup vídeo (tour) */
.modal-video-popup__box {
    max-width: 90vw;
    max-width: min(900px, 90vw);
    background: #000;
}
.modal-video-popup__box .modal-agendar__close {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 2;
    color: #fff;
    background: rgba(0,0,0,0.5);
    border-radius: 4px;
}
.modal-video-popup__box .modal-agendar__close:hover {
    color: #fff;
    background: rgba(0,0,0,0.8);
}
.modal-video-popup__body {
    padding: 0;
    display: block;
}
.modal-video-popup__video {
    width: 100%;
    height: auto;
    max-height: 80vh;
    display: block;
}

div#logo img {
    max-width: 200px;
}

@media (max-width: 768px) {
    div#logo img {
        max-width: 60px;
    }
}

.img-more {
    height: 350px;
    object-fit: cover;
}

.subfooter {
    margin-top: 0px !important;
}

footer {
    padding: 0px !important;
}

/* ========================================
   CRM - Área privada
   ======================================== */ 
.crm-wrap {
    display: flex;
    min-height: 100vh;
    background: #f4f6f9;
}

/* Sidebar */
.crm-sidebar {
    width: 260px;
    flex-shrink: 0;
    background: #0c4573;
    color: #fff;
}

.crm-sidebar__logo {
    padding: 24px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.crm-sidebar__title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.crm-content {
    padding: 0px !important;
}
.crm-nav {
    padding: 16px 0;
}

.crm-nav__item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.crm-nav__item:hover {
    background: rgba(255,255,255,0.08);
    color: #fff;
}

.crm-nav__item--active {
    background: rgba(255,255,255,0.15);
    color: #fff;
    font-weight: 600;
}

.crm-nav__item--disabled {
    opacity: 0.7;
    cursor: not-allowed;
    pointer-events: none;
}

.crm-nav__icon {
    font-size: 1.1rem;
}

.crm-nav__badge {
    margin-left: auto;
    font-size: 0.7rem;
    padding: 2px 8px;
    background: rgba(255,255,255,0.2);
    border-radius: 10px;
}

/* Main content */
.crm-main {
    flex: 1;
    padding: 32px 40px;
    overflow-x: auto;
}

.crm-header {
    margin-bottom: 28px;
}

.crm-header__title {
    margin: 0 0 4px 0;
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a1d24;
}

.crm-header__subtitle {
    margin: 0;
    color: #6b7280;
    font-size: 0.95rem;
}

/* Cards */
.crm-dashboard {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.crm-dashboard-cols {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.crm-card--dashboard-block {
    padding: 0;
    overflow: hidden;
}

.crm-card--dashboard-block .crm-card__title {
    padding: 16px 20px;
    margin: 0;
    border-bottom: 1px solid #eee;
    font-size: 1rem;
}

.crm-card--dashboard-block .crm-table-responsive {
    max-height: 280px;
    overflow-y: auto;
}

.crm-dashboard-empty {
    padding: 24px 20px;
    margin: 0;
    color: #6b7280;
    font-size: 0.9rem;
}

@media (max-width: 1200px) {
    .crm-dashboard-cols {
        grid-template-columns: 1fr;
    }
}

.crm-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    overflow: hidden;
}

.crm-card--leads-summary {
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.crm-card__title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a1d24;
}

.crm-card__count {
    margin: 0;
    font-size: 0.9rem;
    color: #6b7280;
}

/* Table */
.crm-card--table-wrap {
    padding: 0;
}

.crm-table-responsive {
    overflow-x: auto;
}

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

.crm-table th,
.crm-table td {
    padding: 14px 20px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.crm-table th {
    background: #f9fafb;
    color: #374151;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.crm-table tbody tr:hover {
    background: #f9fafb;
}

.crm-empty-state {
    padding: 48px 24px;
    text-align: center;
    color: #6b7280;
}

.crm-empty-state__hint {
    font-size: 0.85rem;
    margin-top: 8px;
    opacity: 0.9;
}

@media (max-width: 992px) {
    .crm-wrap {
        flex-direction: column;
    }
    .crm-sidebar {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 16px;
    }
    .crm-sidebar__logo {
        border-bottom: none;
        padding: 16px 0;
    }
    .crm-nav {
        display: flex;
        flex-wrap: wrap;
        padding: 12px 0;
    }
    .crm-nav__item {
        padding: 8px 12px;
        font-size: 0.9rem;
    }
    .crm-nav__badge {
        display: none;
    }
}

@media (max-width: 768px) {
    .crm-main {
        padding: 20px 16px;
    }
    .crm-table th,
    .crm-table td {
        padding: 10px 12px;
        font-size: 0.85rem;
    }
}

/* CRM Empreendimentos - hierarquia Empreendimento > Tipologia > Imóveis */
.crm-empreendimentos {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.crm-emp-block {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    overflow: hidden;
}

.crm-emp-header {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    padding: 20px 24px;
    background: #f9fafb;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
}

.crm-accordion-item .crm-emp-header {
    border-bottom: 1px solid #eee;
}

.crm-accordion-icon {
    margin-left: auto;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 8px solid #374151;
    transition: transform 0.2s;
}

.crm-accordion-item.is-open .crm-accordion-icon {
    transform: rotate(180deg);
}

.crm-emp-body.crm-accordion-content {
    display: none;
}

.crm-accordion-item.is-open .crm-emp-body.crm-accordion-content {
    display: block;
}

.crm-emp-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    flex-shrink: 0;
}

.crm-emp-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a1d24;
}

.crm-tip-block {
    padding: 20px 24px;
    border-bottom: 1px solid #eee;
}

.crm-tip-block:last-child {
    border-bottom: none;
}

.crm-tip-title {
    margin: 0 0 12px 0;
    font-size: 1rem;
    font-weight: 600;
    color: #374151;
}

.crm-tip-empty {
    margin: 0;
    color: #6b7280;
    font-size: 0.9rem;
}

.crm-imoveis-table-wrap {
    overflow-x: auto;
}

.crm-table-imoveis th,
.crm-table-imoveis td {
    padding: 12px 16px;
}

.crm-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
}

.crm-lead-reserva {
    font-weight: 500;
}

.crm-lead-reserva small {
    color: #6b7280;
    font-weight: 400;
}

.crm-btn {
    display: inline-block;
    padding: 6px 14px;
    background: #0c4573;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.2s;
}

.crm-btn:hover {
    background: #0a3a5f;
    color: #fff;
}

.crm-btn--small {
    padding: 5px 12px;
    font-size: 0.8rem;
}

/* Modal histórico visitas CRM */
.crm-modal-visitas__box {
    max-width: 700px;
}

/* CRM Leads - Observações (acordeão por linha) */
.crm-lead-obs-row {
    display: none;
}

.crm-lead-obs-row.is-open {
    display: table-row;
}

.crm-obs-cell {
    padding: 0 !important;
    background: #f9fafb;
    border-bottom: 1px solid #eee;
    vertical-align: top;
}

.crm-obs-content {
    padding: 16px 20px;
    font-size: 0.9rem;
    color: #374151;
    line-height: 1.5;
}

.crm-obs-content p:first-child {
    margin-top: 0;
}

.crm-obs-content p:last-child {
    margin-bottom: 0;
}

.crm-btn--obs {
    background: #6b7280;
}

.crm-btn--obs:hover {
    background: #4b5563;
}

/* CRM Leads - Filtros */
.crm-card--filters {
    padding: 20px 24px;
    margin-bottom: 24px;
}

.crm-filters__row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: flex-end;
}

.crm-filters__field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.crm-filters__field label {
    font-size: 0.8rem;
    font-weight: 500;
    color: #374151;
}

.crm-filters__field input,
.crm-filter-select {
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.9rem;
    min-width: 140px;
}

.crm-filters__actions {
    display: flex;
    gap: 8px;
}

.crm-btn--secondary {
    background: #e5e7eb;
    color: #374151;
}

.crm-btn--secondary:hover {
    background: #d1d5db;
    color: #1f2937;
}

/* Token display */
.crm-token-display {
    display: inline-block;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: middle;
    margin-right: 8px;
    font-family: monospace;
    font-size: 0.85rem;
}

.crm-btn--token {
    margin-left: 4px;
}

/* Chat modal */
.crm-chat-msgs {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.crm-chat-msg {
    padding: 12px;
    background: #f3f4f6;
    border-radius: 8px;
    font-size: 0.9rem;
}

.crm-chat-msg p {
    margin: 0 0 4px 0;
}

.crm-chat-msg p:last-child {
    margin-bottom: 0;
}

/* ==========================================================================
   Single Imóvel
   ========================================================================== */
html,
body.single-imovel {
    height: auto !important;
    min-height: 0 !important;
    overflow-y: auto !important;
}

body.single-imovel {
    overflow-x: hidden !important;
}

.single-imovel main,
.single-imovel #main,
.single-imovel #content,
.single-imovel #page,
.single-imovel .page-content,
.single-imovel .content,
.single-imovel .content-wrap,
.single-imovel .wrapper {
    height: auto;
    max-height: none;
    overflow: visible;
}

/* Evitar "scroll dentro do scroll" causado por wrappers 100vh */
.single-imovel .swiper-container-wrapper {
    height: auto;
    width: auto;
}

.imovel-single-header .imovel-single-header__inner {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 0;
}

.imovel-single-header .imovel-single-header__logo {
    margin: 0 auto;
}

.imovel-single-header #logo img {
    padding: 10px 0;
    margin: 0 auto;
}

.imovel-single-hero {
    height: 100vh;
    height: 100dvh;
    max-height: 100vh;
    max-height: 100dvh;
    min-height: 0;
    display: flex;
    align-items: stretch;
    color: #fff;
    overflow: hidden;
}

.imovel-single-hero__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.imovel-single-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.35) 45%, rgba(0, 0, 0, 0.78) 100%);
    z-index: 1;
}

.imovel-single-hero__container {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    flex: 1 1 auto;
    height: 100%;
    min-height: 0;
    width: 100%;
    padding-top: 120px;
    padding-bottom: 40px;
    position: relative;
    box-sizing: border-box;
}

.imovel-single-hero__content {
    flex-shrink: 1;
    min-height: 0;
}

.imovel-single-hero__price {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: #AF8C68;
}

.imovel-single-hero__price-row {
    width: 100%;
}

.imovel-single-hero__price-labels {
    flex: 0 1 auto;
}

.imovel-single-hero__title-row {
    width: 100%;
}

.imovel-single-hero__title {
    font-size: clamp(1.5rem, 3.2vw, 2.25rem);
    font-weight: 500;
    line-height: 1.2;
    flex: 0 1 auto;
    min-width: 0;
    text-transform: uppercase;
}

.imovel-single-hero__badge {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    background: #AF8C68;
    border: 1px solid #AF8C68;
    color: #fff;
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.imovel-single-hero__badge--estado,
.imovel-single-hero__badge--meta {
    background: #fff;
    border-color: #fff;
    color: #1a1a1a;
    font-size: 0.7rem;
    padding: 0.28rem 0.7rem;
}

.imovel-single-hero__location {
    font-size: 1.05rem;
    opacity: 0.95;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.imovel-single-hero__ref {
    font-size: 0.9rem;
    opacity: 0.72;
}

.imovel-single-hero__bottom {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
}

.imovel-single-hero__bottom-inner {
    display: flex;
    align-items: flex-end;
    gap: 2rem;
    padding-right: 56px;
}

.imovel-single-hero__specs {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 1.75rem 2.5rem;
    flex: 1 1 auto;
    min-width: 0;
}

.imovel-single-hero__spec-item {
    min-width: 0;
}

.imovel-single-hero__spec-value {
    font-size: 1.35rem;
    font-weight: 600;
    line-height: 1.2;
    color: #fff;
}

.imovel-single-hero__spec-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.85);
}

.imovel-single-hero__scroll {
    position: absolute;
    top: 70%;
    right: 60px;
    bottom: auto;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: #fff;
    text-decoration: none;
    opacity: 0.9;
    transition: opacity 0.2s ease;
    z-index: 3;
}

.imovel-single-hero__scroll:hover {
    color: #fff;
    opacity: 1;
}

.imovel-single-hero__scroll-line {
    display: block;
    width: 1px;
    height: 48px;
    background: rgba(255, 255, 255, 0.55);
}

.imovel-single-hero__scroll-mouse {
    display: block;
    width: 22px;
    height: 34px;
    border: 2px solid #fff;
    border-radius: 12px;
    position: relative;
}

.imovel-single-hero__scroll-mouse::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 6px;
    background: #fff;
    border-radius: 2px;
    animation: imovel-hero-scroll-wheel 1.6s ease-in-out infinite;
}

@keyframes imovel-hero-scroll-wheel {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
    50% {
        transform: translateX(-50%) translateY(6px);
        opacity: 0.35;
    }
}

.imovel-single-hero__scroll-text {
    font-size: 0.65rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    white-space: nowrap;
}

.imovel-single-section-title {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 600;
    color: var(--bg-dark-1, #1a1a1a);
}

.imovel-single-content__body {
    font-size: 1.05rem;
    line-height: 1.75;
    color: #333;
}

.imovel-single-content__body p:last-child {
    margin-bottom: 0;
}

.imovel-single-gallery {
    background: #AF8C68 !important;
}

.imovel-single-gallery .imovel-single-section-title {
    color: #fff;
}

.imovel-gallery-wrapper {
    background: transparent;
}

.imovel-gallery-swiper {
    margin-left: auto;
    margin-right: auto;
    position: relative !important;
    overflow: hidden;
    list-style: none;
    padding: 0 0 0.5rem;
    z-index: 1;
    display: block;
    width: 100%;
    height: auto;
    left: auto !important;
    top: auto !important;
    background: transparent !important;
}

.imovel-gallery-swiper .swiper-wrapper {
    background: transparent !important;
}

.imovel-gallery-swiper .swiper-slide {
    background: transparent !important;
    background-color: transparent !important;
    position: relative;
    height: auto;
    line-height: 0;
}

.single-imovel .imovel-single-gallery .swiper-slide::before,
.single-imovel .imovel-single-gallery .swiper-slide::after,
.single-imovel .imovel-single-gallery .imovel-gallery-swiper::before,
.single-imovel .imovel-single-gallery .imovel-gallery-swiper::after {
    display: none !important;
    content: none !important;
}

.imovel-gallery-slide {
    cursor: zoom-in;
    display: block;
    width: 100%;
    -webkit-tap-highlight-color: transparent;
}

.imovel-gallery-slide:hover,
.imovel-gallery-slide:focus,
.imovel-gallery-slide:active,
.imovel-gallery-slide:focus-visible {
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
    border: 0 !important;
}

.imovel-gallery-swiper .swiper-slide:focus,
.imovel-gallery-swiper .swiper-slide:focus-visible {
    outline: none !important;
}

.imovel-gallery-slide__img {
    width: 100%;
    height: clamp(260px, 42vw, 480px);
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
    opacity: 1 !important;
}

.imovel-gallery-slide:hover .imovel-gallery-slide__img {
    transform: scale(1.03);
}

.imovel-gallery-swiper .swiper-button-next,
.imovel-gallery-swiper .swiper-button-prev {
    color: #fff;
}

.imovel-gallery-swiper .imovel-gallery-pagination,
.imovel-gallery-swiper .swiper-pagination {
    position: relative !important;
    left: 0 !important;
    right: 0 !important;
    bottom: auto !important;
    width: 100% !important;
    margin-top: 1.25rem;
    text-align: center;
    transform: none !important;
}

.imovel-gallery-swiper .swiper-pagination-bullet {
    background: rgba(255, 255, 255, 0.45);
    opacity: 1;
}

.imovel-gallery-swiper .swiper-pagination-bullet:focus,
.imovel-gallery-swiper .swiper-pagination-bullet:focus-visible {
    outline: none;
    box-shadow: none;
    background: rgba(255, 255, 255, 0.75);
}

.imovel-gallery-swiper .swiper-pagination-bullet-active {
    background: #fff;
}

.imovel-lightbox {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.94);
    padding: 24px;
}

.imovel-lightbox[hidden] {
    display: none !important;
}

.imovel-lightbox__content {
    max-width: min(1200px, 100%);
    max-height: 90vh;
}

.imovel-lightbox__content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.imovel-lightbox__close {
    position: absolute;
    top: 16px;
    right: 20px;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 2.5rem;
    line-height: 1;
    cursor: pointer;
}

.imovel-lightbox__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
}

.imovel-lightbox__nav--prev {
    left: 20px;
}

.imovel-lightbox__nav--next {
    right: 20px;
}

.imovel-single-planta__img {
    max-height: 720px;
    object-fit: contain;
}

.imovel-single-video {
    background: #AF8C68 !important;
}

.imovel-single-video .imovel-single-section-title {
    color: #fff;
}

.imovel-single-video__player {
    max-height: 70vh;
    border-radius: 8px;
    background: #000;
}

.imovel-single-form {
    background: #f7f7f7;
}

@media (max-width: 767px) {
    .imovel-single-hero__container {
        padding-top: 100px;
        padding-bottom: 32px;
    }

    .imovel-single-hero__title {
        font-size: 1.35rem;
    }

    .imovel-single-hero__bottom-inner {
        flex-direction: column;
        align-items: flex-start;
        padding-right: 0;
        gap: 1.5rem;
    }

    .imovel-single-hero__spec-value {
        font-size: 1.15rem;
    }

    .imovel-single-hero__scroll {
        top: 65%;
        right: 52px;
        transform: translateY(-50%);
    }
}