
/* ========== GALERIA — VALORES DO SITE ANTIGO (css/personalizados/detalhes.css: .gallery-*, .thumbnail-item, .action-button) ========== */

/* O .container DO ANTIGO (GALERIA E ÁREA DE TEXTO): LARGURAS DO BOOTSTRAP E, A PARTIR DE 1400PX, 1400PX SEM RECUO (responsive.css). */
.galeria,
.ltn__shop-details-area {
    width: 100%;
    margin: 0 auto;
    padding: 0 15px;
}

@media (min-width: 576px) { .galeria, .ltn__shop-details-area { max-width: 540px; } }
@media (min-width: 768px) { .galeria, .ltn__shop-details-area { max-width: 720px; } }
@media (min-width: 992px) { .galeria, .ltn__shop-details-area { max-width: 960px; } }
@media (min-width: 1200px) { .galeria, .ltn__shop-details-area { max-width: 1140px; } }
@media (min-width: 1400px) { .galeria, .ltn__shop-details-area { max-width: 1400px; padding: 0; } }

.gallery-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    height: 500px;
    margin-bottom: 15px;
    border-radius: 4px;
    overflow: hidden;
}

.gallery-main-image {
    position: relative;
    display: block;
    height: 100%;
    border-radius: 4px;
    overflow: hidden;
    background: #f8f9fa;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .1);
    transition: all .3s ease;
}

.gallery-main-image:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, .15);
    transform: translateY(-2px);
}

.main-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}

.gallery-main-image:hover .main-image { transform: scale(1.02); }

.image-counter {
    position: absolute;
    bottom: 15px;
    left: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 30px;
    background: rgba(0, 0, 0, .7);
    color: #fff;
    font-size: 14px;
    font-weight: 500;
}

.gallery-thumbnails {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 243px 243px;
    gap: 15px;
    height: 500px;
}

.thumbnail-item {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 4px;
    overflow: hidden;
    background: #f8f9fa;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .1);
    cursor: pointer;
    transition: all .3s ease;
}

.thumbnail-item:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, .15);
    transform: translateY(-3px);
}

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

.more-photos-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .6);
    color: #fff;
    font-size: 24px;
    font-weight: 700;
    transition: all .3s ease;
}

.thumbnail-item:hover .more-photos-overlay { background: rgba(0, 0, 0, .8); }

/* MENOS DE 4 MINIATURAS (gallery-thumbnails--N, NO COMPUTADOR): O LADO DIREITO NUNCA FICA COM BURACO. 3 = DUAS
   EMPILHADAS À ESQUERDA E A ÚLTIMA COM A ALTURA TODA; 2 = UMA EM CIMA DA OUTRA NA LARGURA TODA; 1 = GRANDE COMO A
   PRINCIPAL; 0 = BLOCO CINZA "MAIS IMAGENS EM BREVE". NO CELULAR FICA A FILEIRA DE MINIATURAS (SEM O BLOCO CINZA). */
.gallery-em-breve {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    height: 100%;
    border-radius: 4px;
    background: #e9ecef;
    color: #6c757d;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
}

.gallery-em-breve svg {
    width: 56px;
    height: 56px;
    fill: #adb5bd;
}

@media (min-width: 769px) {
    .gallery-thumbnails.gallery-thumbnails--3 {
        grid-auto-flow: column;
        grid-template-rows: 1fr 1fr;
    }

    .gallery-thumbnails--3 .thumbnail-item:last-child { grid-row: span 2; }

    .gallery-thumbnails.gallery-thumbnails--2 {
        grid-template-columns: 1fr;
        grid-template-rows: 1fr 1fr;
    }

    .gallery-thumbnails.gallery-thumbnails--1,
    .gallery-thumbnails.gallery-thumbnails--0 {
        grid-template-columns: 1fr;
        grid-template-rows: 1fr;
    }
}

@media (max-width: 768px) {
    .gallery-thumbnails--0 { display: none; }
}

/* NO ANTIGO OS BOTÕES FICAM NUM .gallery-nav-buttons (FLEX, QUEBRA LINHA, 15PX ENTRE ELES E 15PX EMBAIXO). */
.gallery-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 15px 0;
}

.action-button {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    background: var(--cor-site-1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, .1);
    color: #fff;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.5;
    cursor: pointer;
    transition: all .3s ease;
}

.action-button .ic { font-size: 16px; }

.action-button:hover {
    background: var(--cor-site-2);
    box-shadow: 0 6px 16px rgba(0, 0, 0, .2);
    transform: translateY(-2px);
}

.view-all-button {
    border: 2px solid var(--cor-site-1);
    background: transparent;
    color: var(--cor-site-1);
}

.view-all-button:hover {
    background: var(--cor-site-1);
    color: #fff;
}

.gallery-codigo {
    align-self: center;
    margin: 0;
    color: #272727;
}

/* GALERIA EM TELA CHEIA (LIGHTGALLERY): MINIATURAS DE 100X80 COM BORDA ROSA NA ATIVA, COMO NO ANTIGO. */
.lg-thumb-outer { background: rgba(0, 0, 0, .9); }

.lg-thumb-item {
    width: 100px !important;
    height: 80px !important;
    border: 2px solid transparent;
    transition: all .3s ease;
}

.lg-thumb-item.active,
.lg-thumb-item:hover { border-color: var(--cor-site-2) !important; }

@media (max-width: 992px) {
    .gallery-grid { height: 400px; }

    .gallery-thumbnails {
        grid-template-rows: 192px 192px;
        height: 400px;
    }
}

/* CELULAR: FOTO GRANDE EM CIMA E AS 4 MINIATURAS NUMA FILEIRA (120PX DE ALTURA; 80PX ATÉ 576PX). */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        height: auto;
    }

    .gallery-main-image { height: 350px; }

    .gallery-thumbnails {
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: 1fr;
        height: max-content;
    }

    .thumbnail-item { height: 120px; }

    .action-button { justify-content: center; }
}

@media (max-width: 576px) {
    .gallery-main-image { height: 250px; }

    .thumbnail-item { height: 80px; }

    .action-button {
        padding: 10px 15px;
        font-size: 14px;
    }
}

/* ========== LAYOUT, CAIXAS, TÍTULOS, GRADE DA CAIXA DO TÍTULO E DESCRIÇÃO — VALORES DO SITE ANTIGO (css/personalizados/detalhes.css) ========== */

/* .ltn__shop-details-area pt-30 DO ANTIGO; AS LARGURAS DO .container ESTÃO NA REGRA DA .galeria, ACIMA. */
.ltn__shop-details-area { padding-top: 30px; }

/* .row DO ANTIGO: COLUNA DO TEXTO SEM RECUO (col-xl-8 col-lg-7 p-0) E LATERAL COM 15PX DOS DOIS LADOS (col-xl-4 col-lg-5).
   ATÉ 991PX A LATERAL SOME (d-none d-lg-block) E O TEXTO OCUPA TUDO. minmax(0, …): A COLUNA ENCOLHE MESMO COM PALAVRA
   GRANDE OU VALOR EM nowrap, EM VEZ DE ALARGAR A PÁGINA NO CELULAR. */
.grid-detalhes {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
}

@media (min-width: 992px) {
    .grid-detalhes { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
    .grid-detalhes > .ltn__shop-sidebar { padding: 0 15px; }
}

@media (min-width: 1200px) {
    .grid-detalhes { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); }
}

/* ATÉ 991PX: UM QUADRO DE VALORES E UM FORMULÁRIO SÓ, OS MESMOS DO COMPUTADOR. A LATERAL SE DESFAZ (display: contents) E AS
   CAIXAS DELA ENTRAM NA COLUNA ÚNICA: O QUADRO DE VALORES E, LOGO ABAIXO, O FALE CONOSCO (SEMPRE ABERTO, PEDIDO DO MESSIAS)
   SOBEM PARA O TOPO, NO LUGAR DA CAIXA DO CELULAR DO ANTIGO; O COMPARTILHAR FICA DEPOIS DO MAPA. */
@media (max-width: 991px) {
    .grid-detalhes { row-gap: 15px; }
    .grid-detalhes > .ltn__shop-sidebar { display: contents; }
    .detalhes-valores,
    #formulario { order: -1; }
}

/* overflow-wrap: PALAVRA SEM ESPAÇO MAIOR QUE A CAIXA (LINK NA DESCRIÇÃO) QUEBRA EM VEZ DE ALARGAR A PÁGINA NO CELULAR. */
.box-detalhes {
    overflow-wrap: anywhere;
    padding: 22px;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 16px 32px 0 rgba(7, 28, 31, .1);
}

.box-detalhes:last-child { margin-bottom: 20px; }

.ltn__page-details-inner {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* p DO TEMA DO ANTIGO. */
.box-detalhes p {
    margin: 0;
    color: #272727;
}

/* TÍTULOS: MARGEM DE 15PX E ALTURA DE LINHA 1.1 DOS TÍTULOS DO TEMA, BARRINHA ROSA DE 50PX. O h1 FICA COM 30PX/#333 (O
   .ltn__page-details-inner h1 DO ANTIGO VENCE O .page-title); O h4 COM 1.3REM/#202020. */
.page-title {
    position: relative;
    margin: 0 0 15px;
    padding-bottom: 5px;
    color: var(--cor-site-1-3, #202020);
    font-size: 2rem;
    font-weight: 600;
    line-height: 1.1;
}

.page-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 50px;
    height: 3px;
    border-radius: 3px;
    background: var(--cor-site-1);
}

h4.page-title { font-size: 1.3rem; }
h4.page-title::after { bottom: -6px; }

.ltn__page-details-inner h1 {
    color: #333;
    font-size: 30px;
}

/* GRADE DA CAIXA DO TÍTULO: CAIXINHAS CINZA COM O ÍCONE NUM QUADRADO BRANCO, NÚMERO EM CIMA E RÓTULO EMBAIXO. */
.property-details-container {
    margin: 0;
    padding: 0;
}

.property-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .75rem;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    background-color: #f8f9fa;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
    transition: all .2s ease;
}

.feature-item:hover {
    background-color: #f1f3f5;
    box-shadow: 0 4px 6px rgba(0, 0, 0, .05);
    transform: translateY(-2px);
}

.feature-icon {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, .05);
}

.feature-icon svg {
    width: 20px;
    height: 20px;
    fill: var(--cor-site-5);
}

.feature-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.feature-value {
    overflow: hidden;
    color: #212529;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.feature-label {
    overflow: hidden;
    color: #6c757d;
    font-size: .8rem;
    font-weight: 400;
    line-height: 1.4;
    white-space: nowrap;
    text-overflow: ellipsis;
}

@media (max-width: 992px) {
    .property-features-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
}

@media (max-width: 768px) {
    .property-features-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: .75rem; }
    .feature-item { gap: .6rem; padding: .6rem; }
    .feature-icon { width: 32px; height: 32px; }
    .feature-icon svg { width: 16px; height: 16px; }
    .feature-value { font-size: .95rem; }
}

@media (max-width: 576px) {
    .property-features-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
    .feature-item { gap: .5rem; padding: .5rem; }
    .feature-icon { width: 30px; height: 30px; }
    .feature-value { font-size: .9rem; }
    .feature-label { font-size: .75rem; }
}

@media (max-width: 480px) {
    .property-features-grid { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: .6rem; }
}

/* DESCRIÇÃO: O <p class="color-site-5" style="line-height: 1"> DO ANTIGO, NO TAMANHO DO CORPO (16PX). */
.box-detalhes .descricao-imovel {
    color: var(--cor-site-5);
    font-size: 16px;
    line-height: 1;
}

/* CARACTERÍSTICAS EM ABAS (detalhes-imovel.css §11). */
.carac-tabs__header {
    display: flex;
    gap: 0;
    margin-bottom: 14px;
    border-bottom: 2px solid #eef0f4;
}

.carac-tab__btn {
    position: relative;
    flex: 1;
    min-width: 80px;
    padding: 11px 8px;
    border: 0;
    background: transparent;
    color: var(--cor-site-6);
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
    cursor: pointer;
    transition: color .2s;
    appearance: none;
}

/* NO ANTIGO O HOVER ERA O BRANCO DO SITE (O NOME SUMIA) E A ABA ABERTA IA PARA A ESQUERDA — CORRIGIDO A PEDIDO DO MESSIAS. */
.carac-tab__btn:hover { color: var(--cor-site-1); }

/* CONTORNO DE FOCO SÓ PELO TECLADO, COMO O BOOTSTRAP DO ANTIGO FAZIA. */
.carac-tab__btn:focus:not(:focus-visible) { outline: 0; }

.carac-tab__btn.is-active { color: var(--cor-site-5); }

.carac-tab__btn.is-active::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -2px;
    left: 0;
    height: 3px;
    border-radius: 3px 3px 0 0;
    background: var(--cor-site-1);
}

.carac-tab__panel { display: none; }
.carac-tab__panel.is-active { display: block; }

/* COLUNAS DE CARACTERÍSTICAS DO ANTIGO: DUAS COLUNAS FLEXÍVEIS (MÍNIMO 200PX; SEM ESPAÇO, UMA VAI PARA BAIXO DA OUTRA), LINHAS
   DE 6PX 12PX COM CANTOS DE 10PX E, NA LOCAÇÃO, BRANCA E CINZA ALTERNADAS. O TIQUE TEM 32PX DE ALTURA E 24PX DE LARGURA. */
.caracteristicas-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.caracteristicas-col {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 4px;
    min-width: 200px;
}

.caracteristica-item {
    display: flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 10px;
    font-size: 16px;
}

.item-branco { background: #fff; }
.item-cinza { background: #fafafa; }

.caracteristica-item svg {
    flex-shrink: 0;
    width: 24px;
}

/* VÍDEO, TOUR E MAPA: A CAIXA DE 400PX DO TEMA (.ltn__video-bg-img), SEM CORTAR OS CANTOS DO IFRAME, COMO NO ANTIGO. O z-index: 99
   DO TEMA FICOU DE FORA: AQUI ELE PASSARIA POR CIMA DOS BOTÕES FLUTUANTES (WHATSAPP E VOLTAR AO TOPO). */
.ltn__video-bg-img {
    position: relative;
    display: flex;
    flex-flow: column;
    align-items: center;
    justify-content: center;
    min-height: 350px;
}

.ltn__video-popup-height-400 { height: 400px; }

.ltn__video-bg-img iframe,
.ltn__video-bg-img video {
    display: block;
    border: 0;
}

.ltn__video-bg-img video {
    width: 100%;
    height: 100%;
    background: #000;
    object-fit: contain;
}

/* "IMÓVEIS SEMELHANTES" DO ANTIGO: .ltn__page-details-inner.my-4 > .box-detalhes > h4 + .row.justify-content-center COM
   col-xxl-3 col-xl-3 col-lg-4 col-md-6 col-12 E O .padding-card DO card.css (7PX; 8PX ATÉ 768PX). */
.semelhantes { margin: 24px 0; }

.semelhantes-cartoes {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.semelhantes-cartoes .property-card-container {
    width: 100%;
    padding: 7px;
}

@media (min-width: 768px) {
    .semelhantes-cartoes .property-card-container { width: 50%; }
}

@media (min-width: 992px) {
    .semelhantes-cartoes .property-card-container { width: 33.3333%; }
}

@media (min-width: 1200px) {
    .semelhantes-cartoes .property-card-container { width: 25%; }
}

@media (max-width: 768px) {
    .semelhantes-cartoes .property-card-container { padding: 8px; }
}

/* LATERAL: FALE CONOSCO E COMPARTILHAR (detalhes-imovel.css §9, §10, §12 E §14; CAMPO COM A ALTURA DO TEMA, 47PX). */
/* SEM sticky: COMO NO ANTIGO, A LATERAL FICA NO ALTO E ROLA JUNTO COM A PÁGINA (PEDIDO DO MESSIAS). */

/* FORMULÁRIO DO ANTIGO (form#detalhes + #form-detalhes + .form-button): CAMPOS COLADOS (5PX), BRANCOS COM BORDA #DDD E CANTOS
   DE 4PX, 47PX DE ALTURA, TEXTO DE 16PX E EXEMPLO DE 14PX; A MENSAGEM COM 150PX. O FOCO NÃO MUDA A BORDA (O #ddd !important
   DO ANTIGO VENCIA O ROSA DO TEMA). OS 16PX EMBAIXO DO BOTÃO SÃO OS DO PRINT DO ANTIGO. */
.form-fale-conosco {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 16px;
}

.form-detalhes {
    width: 100%;
    height: 47px;
    margin: 0;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    box-shadow: none;
    color: #333;
    font-family: inherit;
    font-size: 16px;
}

textarea.form-detalhes {
    min-height: 150px;
    line-height: 1.5;
    resize: vertical;
}

.form-detalhes::placeholder {
    color: #9f9f9f;
    font-size: 14px;
}

.form-detalhes:focus { outline: none; }

.form-lead__armadilha {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.form-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    margin: 0;
    padding: 14px;
    border: none;
    border-radius: 4px;
    background: var(--cor-site-1);
    color: #fff;
    font-family: inherit;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.5;
    cursor: pointer;
    transition: all .2s ease;
}

.form-button:hover {
    background: var(--cor-site-0);
    box-shadow: 0 4px 12px rgba(191, 37, 211, .2);
    color: #fff;
    transform: translateY(-2px);
}

.form-button:disabled { opacity: .7; cursor: wait; }

/* "PREENCHER FICHA LOCATÁRIO" (SÓ NA LOCAÇÃO, COM A FICHA ATIVA NO PAINEL): O ENVIAR CONTATO EM CONTORNO, LOGO ABAIXO, COM
   OS CANTOS DE 4PX E O RECUO DOS BOTÕES DO FALE CONOSCO. */
.ficha-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-top: 10px;
    padding: 14px;
    border: 1px solid var(--cor-site-1);
    border-radius: 4px;
    background: #fff;
    color: var(--cor-site-1);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all .2s ease;
}

.ficha-button:hover {
    background: var(--cor-site-1);
    color: #fff;
    transform: translateY(-2px);
}

/* NO ANTIGO O "CONSULTAR NO WHATSAPP" TEM 16PX EM CIMA, QUE SE JUNTAM AOS 20PX DO .values-details (FICAM 20PX). AQUI O
   .values-footer É FLEX (BOTÕES DO CRM NO CELULAR) E AS MARGENS NÃO SE JUNTAM: POR ISSO O BOTÃO FICA SEM MARGEM. */
.values-footer {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.whatsapp-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px;
    border-radius: 4px;
    background: #25d366;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    transition: all .2s ease;
}

.whatsapp-button:hover {
    background: #128c7e;
    box-shadow: 0 4px 12px rgba(37, 211, 102, .2);
    color: #fff;
    transform: translateY(-2px);
}

/* BOTÕES DO IMOBIFORCE, COMO NO ANTIGO (O WIDGET DESENHA O BOTÃO; O CSS REPINTA PELOS IDS): 10PX ENTRE ELES, CANTOS DE 4PX
   IGUAIS AOS DO ENVIAR CONTATO, "ALUGUE ONLINE" ROSA E "AGENDAR VISITA"/"PROPOSTA" NA --cor-site-5. A BASE DA SÉRGIO PINTAVA
   ESSES DOIS COM A --cor-site-3 (QUASE BRANCA): O TEXTO BRANCO SUMIA. UM CONJUNTO SÓ, NO COMPUTADOR E NO CELULAR. */
#alugue-online,
#visit,
#proposal {
    margin-top: 10px;
}

#alugue-online > *,
#visit > *,
#proposal > * {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    width: 100% !important;
    padding: 14px !important;
    border: none !important;
    border-radius: 4px !important;
    box-shadow: none !important;
    color: #fff !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    cursor: pointer !important;
    transition: transform .2s ease !important;
}

#alugue-online > * {
    background-color: var(--cor-site-1) !important;
}

#visit > *,
#proposal > * {
    background-color: var(--cor-site-5) !important;
}

#alugue-online > *:hover,
#visit > *:hover,
#proposal > *:hover {
    box-shadow: none !important;
    color: #fff !important;
    transform: translateY(-3px) !important;
}

#alugue-online > *:focus,
#visit > *:focus,
#proposal > *:focus {
    outline: none !important;
    box-shadow: none !important;
    color: #fff !important;
}

.values-header {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f5f5f5;
    text-align: center;
}

.values-label {
    display: block;
    margin-bottom: 8px;
    color: #6b7280;
    font-size: 14px;
    letter-spacing: .5px;
    text-transform: uppercase;
}

.main-value {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 4px;
}

.currency { margin-top: 4px; color: var(--cor-site-2); font-size: 20px; font-weight: 500; }
.amount { color: #111827; font-size: 32px; font-weight: 600; line-height: 1; }
.period { align-self: flex-end; margin-bottom: 4px; color: #6b7280; font-size: 14px; }

.values-details { margin: 20px 0; }

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
}

.detail-item:not(:last-child) { border-bottom: 1px solid #f5f5f5; }

.detail-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #4b5563;
    font-size: 14px;
}

/* O <i> DO ANTIGO: 18PX DE LARGURA COM O ÍCONE CENTRALIZADO, NA COR --cor-site-2. */
.detail-label .ic { width: 18px !important; color: var(--cor-site-2); }

.detail-value { color: #111827; font-weight: 500; }

.total-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid #f5f5f5;
}

.total-item .detail-label { color: #111827; font-weight: 600; }
.total-item .detail-label .ic { color: var(--cor-site-1); }

.total-value {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #10b981;
    font-size: 18px;
    font-weight: 700;
}

.total-value .currency { font-size: 16px; }
.total-value .amount { font-size: 20px; }

.ltn__widget-title {
    color: var(--cor-site-5);
    font-size: 16px;
    font-weight: 600;
}

/* "COMPARTILHAR ESTE LINK" DO ANTIGO: QUADRADOS DE 40PX COM CANTOS DE 10PX, FUNDO --section-bg-1 E ÍCONE --cor-site-2. NO
   ANTIGO ERAM inline-block COM 10PX DE MARGEM + O ESPAÇO ENTRE ELES (UNS 4PX): 14PX. */
.ltn__social-media-2 ul {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ltn__social-media-2 ul li a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #f2f6f7;
    color: var(--cor-site-2);
    font-size: 16px;
    text-decoration: none;
}

.ltn__social-media-2 ul li:hover a {
    background: var(--cor-site-1);
    color: #fff;
}

/* DICA DO "i" DO IPTU (detalhes-imovel.css §13). */
.tooltip-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin-left: 3px;
    cursor: pointer;
}

.tooltip-icon {
    display: block;
    color: var(--cor-site-6);
}

.tooltip-text {
    position: absolute;
    bottom: 130%;
    left: 50%;
    z-index: 30;
    max-width: 240px;
    padding: 8px 10px;
    border-radius: 6px;
    background: #1e293b;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .3);
    color: #fff;
    font-size: 12px;
    line-height: 1.45;
    white-space: normal;
    opacity: 0;
    pointer-events: none;
    transform: translateX(-50%) translateY(4px);
    transition: opacity .15s ease, transform .15s ease;
}

.tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    border: 6px solid transparent;
    border-top-color: #1e293b;
    transform: translateX(-50%);
}

.tooltip-wrapper:hover .tooltip-text,
.tooltip-wrapper:focus-within .tooltip-text {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ========== JANELA "COMPARTILHE COMO PREFERIR" E AVISO "LINK COPIADO!" — O MODAL E O ALERTA DO BOOTSTRAP 5.0 DO
   ANTIGO, COM OS AJUSTES DO detalhes-imovel.css §15 ========== */

body.modal-aberto { overflow: hidden; }

.modal {
    position: fixed;
    inset: 0;
    z-index: 1055;
    overflow-x: hidden;
    overflow-y: auto;
    outline: 0;
}

.modal-fundo {
    position: fixed;
    inset: 0;
    z-index: 1050;
    background: #000;
    opacity: 0;
    transition: opacity .15s linear;
}

.modal-fundo.show { opacity: .5; }

.modal.fade { opacity: 0; transition: opacity .15s linear; }
.modal.fade.show { opacity: 1; }

.modal-dialog {
    position: relative;
    width: auto;
    margin: .5rem;
    pointer-events: none;
    transform: translate(0, -50px);
    transition: transform .3s ease-out;
}

.modal.show .modal-dialog { transform: none; }

@media (min-width: 576px) {
    .modal-dialog { max-width: 500px; margin: 1.75rem auto; }
}

.modal-content {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    border: 1px solid rgba(0, 0, 0, .12);
    border-radius: 12px;
    outline: 0;
    background-color: #fff;
    background-clip: padding-box;
    pointer-events: auto;
}

.modal-header {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    border-bottom: 1px solid #e8edf2;
}

.modal-title {
    margin-bottom: 0;
    font-size: 18px;
    line-height: 1.5;
}

.btn-close {
    box-sizing: content-box;
    width: 1em;
    height: 1em;
    margin: -.5rem -.5rem -.5rem auto;
    padding: .5rem;
    border: 0;
    border-radius: .25rem;
    background: transparent url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000'%3e%3cpath d='M.293.293a1 1 0 011.414 0L8 6.586 14.293.293a1 1 0 111.414 1.414L9.414 8l6.293 6.293a1 1 0 01-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 01-1.414-1.414L6.586 8 .293 1.707a1 1 0 010-1.414z'/%3e%3c/svg%3e") center / 1em auto no-repeat;
    color: #000;
    opacity: .5;
    cursor: pointer;
}

.btn-close:hover { opacity: .75; }

.modal-body {
    position: relative;
    flex: 1 1 auto;
    padding: 1rem;
}

.d-grid { display: grid; }
.gap-2 { gap: .5rem; }

.botao-acao {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0;
    padding: 13px 16px;
    border: 1px solid #dce3ef;
    border-radius: 8px;
    background: #fff;
    color: var(--cor-site-5);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background .2s, color .2s;
}

.botao-acao:hover {
    border-color: var(--cor-site-1);
    background: var(--cor-site-1);
    color: #fff;
}

.botao-acao .ic { margin-right: .5rem; }

.alerta-copiado {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 1050;
    width: 250px;
    margin: 1rem;
    padding: 1rem;
    border: 1px solid #badbcc;
    border-radius: .25rem;
    background: #d1e7dd;
    color: #0f5132;
}

.alerta-copiado__barra {
    width: 100%;
    height: 4px;
    background: #28a745;
    transition: width 2s linear;
}


