html {
    scrollbar-color: #f8bf03 #333333;
    scrollbar-width: thin;
}

body {
    min-height: 100vh;
    margin: 0;
    background: #111;
    color: #fff;
    font-family: "Montserrat", Arial, sans-serif;
}

::-webkit-scrollbar {
    width: 5px;
    height: 3px;
}

::-webkit-scrollbar:vertical { width: 5px; }
::-webkit-scrollbar:horizontal { height: 3px; }

::-webkit-scrollbar-track { background: #333333; }
::-webkit-scrollbar-thumb { background: #f8bf03; }
::-webkit-scrollbar-thumb:hover { background: #ffd84d; }

.cabecalho-site-detalhe {
    display: none;
    width: min(calc(100% - 32px), 1180px);
    margin: 0 auto;
    padding: 10px 0 10px;
}
.voltar-home { box-sizing: border-box; height: 40px; display: inline-flex; align-items: center; gap: 5px; padding: 6px 9px; border: 1px solid #f8bf03; border-radius: 6px; background: #000; color: #f8bf03; font-size: .82rem; font-weight: 800; text-decoration: none; }
.voltar-home img { width: 16px; height: auto; transform: scaleX(-1); }
.voltar-home:hover { color: #fff; }

.pagina-publica-imovel {
    box-sizing: border-box;
    width: min(calc(100% - 32px), 1180px);
    min-height: calc(100vh - 70px);
    margin: 0 auto 60px;
    background: #111;
}
.cabecalho-publico-imovel { padding: 0px 0; }
.cabecalho-publico-imovel h1 { margin: 7px 0 5px; color: #fff; font-size: clamp(1.65rem, 4vw, 2.7rem); }
.cabecalho-publico-imovel p { margin: 0; color: #d1d5db; }
.linha-subtitulo-imovel { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.tag-publica-imovel { display: inline-block; padding: 5px 9px; border-radius: 999px; background: #f8bf03; color: #111; font-size: .67rem; font-weight: 900; text-transform: uppercase; }

.galeria-publica-imovel {
    width: 100%;
}
.visor-principal-imovel {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 9px;
    background: #000;
}
.visor-principal-imovel iframe,
.visor-principal-imovel > img {
    width: 100%;
    height: 100%;
    display: block;
    border: 0;
}
.visor-principal-imovel > img { object-fit: contain; background: #111; }
.visor-principal-imovel > .capa-roll-visor:not([hidden]) {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 50%;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    transform: translate(-50%, -50%);
    object-fit: contain;
    background: transparent;
    pointer-events: none;
}
.visor-principal-imovel > img:not([hidden]) { cursor: zoom-in; }
.visor-principal-imovel iframe[hidden],
.visor-principal-imovel > img[hidden],
.midia-publica-vazia[hidden] { display: none; }
.midia-publica-vazia { width: 100%; height: 100%; display: grid; place-items: center; background: #4b4b4b; color: #e5e7eb; }

.miniaturas-publicas-imovel {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    padding: 2px 1px 6px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
}
.miniatura-publica-imovel {
    position: relative;
    width: 132px;
    aspect-ratio: 4 / 3;
    flex: 0 0 132px;
    overflow: hidden;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 7px;
    background: #1f1f1f;
    cursor: pointer;
    opacity: .72;
    transition: border-color .16s ease, opacity .16s ease, transform .16s ease;
}
.miniatura-publica-imovel:hover,
.miniatura-publica-imovel:focus-visible { opacity: 1; transform: translateY(-1px); outline: none; }
.miniatura-publica-imovel.ativo { border-color: #f8bf03; opacity: 1; }
.miniatura-publica-imovel img { width: 100%; height: 100%; display: block; object-fit: cover; }
.miniatura-publica-imovel .capa-roll-miniatura {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 50%;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    transform: translate(-50%, -50%);
    object-fit: contain;
    pointer-events: none;
}
.icone-play-miniatura {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    padding-left: 3px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: #f8bf03;
    color: #111;
    font-size: 1rem;
    box-shadow: 0 3px 12px rgba(0, 0, 0, .45);
}

.conteudo-publico-imovel { display: grid; min-width: 0; gap: 16px; margin-top: 22px; }
.bloco-publico-imovel { box-sizing: border-box; min-width: 0; padding: clamp(18px, 3vw, 28px); border: 1px solid #555; border-radius: 9px; background: #171717; }
.bloco-publico-imovel h2 { display: flex; align-items: center; gap: 9px; margin: 0 0 16px; color: #f8bf03; font-size: 1.15rem; }
.carrossel-recomendacoes-imovel {
    display: grid;
    width: 100%;
    min-width: 0;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
}
.card-recomendacao-imovel {
    min-width: 0;
    overflow: hidden;
    border: 1px solid #555;
    border-radius: 8px;
    background: #111;
    color: #fff;
    text-decoration: none;
    transition: transform .18s ease, border-color .18s ease;
}
.card-recomendacao-imovel:hover,
.card-recomendacao-imovel:focus-visible {
    transform: translateY(-2px);
    border-color: #f8bf03;
    outline: none;
}
.card-recomendacao-imovel h3.titulo-card-imovel--venda,
.card-recomendacao-imovel h3.titulo-card-imovel--locacao {
    display: block;
    flex: 0 0 auto;
    height: auto;
    margin: 0;
    padding: 0 12px;
    overflow: hidden;
    text-align: center;
}
.card-recomendacao-imovel .titulo-card-imovel__texto {
    display: -webkit-box;
    max-height: 28px;
    overflow: hidden;
    line-height: 14px;
    text-align: center;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: normal;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
}
.card-recomendacao-imovel .valor-card-destaque {
    margin: 0 12px 5px;
    padding-top: 5px;
    border-top: 1px solid #f8bf03;
    color: #f8bf03;
    font-size: 18px;
    font-weight: 800;
}
.card-recomendacao-imovel .valor-card-destaque--venda,
.card-recomendacao-imovel .valor-card-destaque--locacao { text-align: center; }
.card-recomendacao-imovel .valor-card-destaque--promocional {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.2;
}
.card-recomendacao-imovel .valor-promocional-card {
    color: #f8bf03;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: .5px;
}
.card-recomendacao-imovel .valor-original-promocional-card {
    color: #d1d5db;
    font-size: 12px;
    font-weight: 600;
    text-decoration: line-through;
}
.icone-titulo-bloco { width: 24px; height: 24px; max-width: 24px; max-height: 24px; flex: 0 0 24px; object-fit: contain; }
.descricao-publica-imovel p { margin: 0 0 10px; color: #e5e7eb; line-height: 1.65; }
.descricao-publica-imovel p:last-child { margin-bottom: 0; }
.grade-dados-publicos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0; }
.grade-dados-publicos div{
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-width: 0;
    padding: 12px;
    border: 0;
    border-radius: 0;
    background: transparent;
}
.grade-dados-publicos dt { display: flex; align-items: center; justify-content: flex-start; gap: 7px; margin-bottom: 5px; color: #d1d5db; font-size: .69rem; font-weight: 800; text-transform: uppercase; }
.icone-dado-publico { width: 24px; height: 24px; max-width: 24px; max-height: 24px; flex: 0 0 24px; object-fit: contain; }
.icone-dado-mascara {
    display: block;
    background-color: #ffc000;
    mask: var(--icone-mascara) center / contain no-repeat;
    -webkit-mask: var(--icone-mascara) center / contain no-repeat;
}
.grade-dados-publicos dd { margin: 0; overflow-wrap: anywhere; color: #fff; font-size: .86rem; text-align: left; }
.endereco-publico-imovel { margin: 0; color: #fff; font-size: .92rem; line-height: 1.6; }
.endereco-publico-imovel strong { color: #f8bf03; }
.mapa-publico-imovel {
    box-sizing: border-box;
    width: 100%;
    min-height: 320px;
    margin-top: 16px;
    overflow: hidden;
    border: 2px solid #f8bf03;
    border-radius: 8px;
    background: #292929;
}
.mapa-publico-imovel iframe { width: 100%; height: 360px; display: block; border: 0; }
.link-google-maps {
    display: inline-flex;
    margin-top: 12px;
    color: #f8bf03;
    font-size: .8rem;
    font-weight: 800;
    text-decoration: none;
}
.link-google-maps:hover { color: #fff; }

.popup-foto-imovel {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: grid;
    place-items: center;
    padding: 48px 24px 24px;
    background: rgba(0, 0, 0, .88);
}
.popup-foto-imovel[hidden] { display: none; }
.popup-foto-imovel img { max-width: 94vw; max-height: 90vh; display: block; object-fit: contain; }
.navegar-popup-foto {
    position: absolute;
    top: 50%;
    z-index: 1;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, .5);
    border-radius: 50%;
    background: rgba(0, 0, 0, .45);
    transform: translateY(-50%);
    cursor: pointer;
}
.navegar-popup-foto.anterior { left: 16px; }
.navegar-popup-foto.proxima { right: 16px; }
.navegar-popup-foto img { width: 100%; height: 100%; filter: brightness(0) invert(1); }
.navegar-popup-foto.anterior img { transform: rotate(180deg); }
.navegar-popup-foto:hover,
.navegar-popup-foto:focus-visible { border-color: #f8bf03; background: rgba(0, 0, 0, .8); outline: 2px solid #f8bf03; outline-offset: 3px; }
.fechar-popup-foto {
    position: absolute;
    top: 14px;
    right: 20px;
    z-index: 1;
    padding: 2px 8px;
    border: 0;
    background: transparent;
    color: #fff;
    font: inherit;
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
}
.fechar-popup-foto:hover,
.fechar-popup-foto:focus-visible { color: #f8bf03; outline: 2px solid #f8bf03; outline-offset: 4px; }
body.popup-foto-aberto { overflow: hidden; }

.contato-whatsapp-flutuante {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 10;
    width: 58px;
    height: 58px;
}
.botao-compartilhar-imovel {
    position: absolute;
    right: 5px;
    bottom: 68px;
    z-index: 2;
    box-sizing: border-box;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border: 1px solid #25d366;
    border-radius: 50%;
    background: #25d366;
    transition: transform .18s ease, background-color .18s ease;
}
.botao-compartilhar-imovel img { width: 24px; height: 24px; object-fit: contain; filter: brightness(0) invert(1); }
.botao-compartilhar-imovel:hover { transform: scale(1.08); background: #20bd5a; }
.botao-compartilhar-imovel:focus-visible { transform: scale(1.08); background: #20bd5a; outline: 2px solid #f8bf03; outline-offset: 3px; }
.mensagem-whatsapp-flutuante {
    position: absolute;
    right: 68px;
    top: 50%;
    z-index: 1;
    box-sizing: border-box;
    width: max-content;
    max-width: 0;
    overflow: hidden;
    padding: 0;
    border-radius: 24px;
    background: #25d366;
    color: #fff;
    font-size: .88rem;
    font-weight: 700;
    line-height: 1.35;
    text-align: center;
    white-space: nowrap;
    opacity: 0;
    transform: translate(68px, -50%);
    visibility: hidden;
    transition: max-width 1s ease-in-out, padding 1s ease-in-out, opacity 1s ease-in-out,
        transform 1s ease-in-out, visibility 0s linear 1s;
}
.contato-whatsapp-flutuante.mensagem-visivel .mensagem-whatsapp-flutuante {
    max-width: 370px;
    padding: 11px 16px;
    opacity: 1;
    transform: translate(0, -50%);
    visibility: visible;
    transition-delay: 0s;
}
.botao-whatsapp-flutuante {
    position: absolute;
    right: 0;
    bottom: 0;
    z-index: 2;
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    transition: transform .18s ease;
}
.botao-whatsapp-flutuante:hover,
.botao-whatsapp-flutuante:focus-visible { transform: scale(1.08); outline: none; }
.botao-whatsapp-flutuante:focus-visible { outline: 2px solid #f8bf03; outline-offset: 4px; }
.botao-whatsapp-flutuante img { width: 100%; height: 100%; display: block; object-fit: contain; }

@media (max-width: 820px) {
    .pagina-publica-imovel,
    .conteudo-publico-imovel,
    .bloco-publico-imovel {
        min-width: 0;
        max-width: 100%;
    }
    .contato-whatsapp-flutuante { right: 10px; }
    .cabecalho-site-detalhe {
        position: fixed;
        right: auto;
        left: 10px;
        bottom: 34px;
        z-index: 11;
        display: block;
        width: auto;
        margin: 0;
        padding: 0;
    }
    .grade-dados-publicos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .carrossel-recomendacoes-imovel {
        display: flex;
        gap: 12px;
        overflow-x: auto;
        padding: 2px 1px 8px;
        scroll-snap-type: x mandatory;
        overscroll-behavior-inline: contain;
        -webkit-overflow-scrolling: touch;
        touch-action: pan-x;
    }
    .card-recomendacao-imovel {
        flex: 0 0 min(72vw, 260px);
        scroll-snap-align: start;
    }
    .card-recomendacao-imovel h3 { padding: 0 10px; font-size: 12pt; }
    .card-recomendacao-imovel .titulo-card-imovel__texto { max-height: 26pt; line-height: 13pt; }
}

@media (max-width: 520px) {
    .pagina-publica-imovel { width: calc(100% - 20px); }
    .cabecalho-site-detalhe { left: 10px; }
    .miniatura-publica-imovel { width: 104px; flex-basis: 104px; }
    .mapa-publico-imovel { min-height: 260px; }
    .mapa-publico-imovel iframe { height: 280px; }
    .grade-dados-publicos {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 6px;
    }
    .grade-dados-publicos div {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        justify-content: center;
        padding: 8px 2px;
    }
    .grade-dados-publicos dt {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: nowrap;
        gap: 4px;
        font-size: .62rem;
        text-align: left;
    }
    .grade-dados-publicos dt > span:last-child {
        min-width: 0;
        width: auto;
        max-width: calc(100% - 25px);
        flex: 0 1 auto;
        overflow-wrap: anywhere;
        text-align: left;
    }
    .grade-dados-publicos dd {
        width: 100%;
        text-align: left;
    }
    .icone-dado-publico {
        width: 21px;
        height: 21px;
        max-width: 21px;
        max-height: 21px;
        flex-basis: 21px;
    }
    .botao-whatsapp-flutuante {
        width: 52px;
        height: 52px;
    }
    .contato-whatsapp-flutuante {
        width: 52px;
        height: 52px;
    }
    .mensagem-whatsapp-flutuante {
        font-size: .78rem;
        white-space: normal;
        right: 62px;
        transform: translate(62px, -50%);
    }
    .contato-whatsapp-flutuante.mensagem-visivel .mensagem-whatsapp-flutuante {
        max-width: min(280px, calc(100vw - 82px));
    }
}

@media (prefers-reduced-motion: reduce) {
    .mensagem-whatsapp-flutuante,
    .botao-whatsapp-flutuante {
        transition: none;
    }
}
