/* ---- BOTÃO VOLTAR AO TOPO ---- */
/* Desktop — WhatsApp fica em bottom:30px. Botão topo fica acima */
.floating-whatsapp {
    bottom: 20px !important;
    right: 20px !important;
}

#btn-topo {
    position: fixed;
    bottom: 115px; /* 20 + 80 + 15px de folga */
    right: 36px;   /* centralizado sobre o WhatsApp (80px / 2 - 46px / 2 + 20px) */
    z-index: 999;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: none;
    background: var(--cor-site-2, #b6975b);
    color: #fff;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity 0.3s, transform 0.3s, visibility 0.3s, background 0.2s;
}

#btn-topo.visivel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#btn-topo:hover {
    background: var(--cor-site-1, #333);
}

/* Mobile — WhatsApp mais baixo + botão topo acima dele */
@media (max-width: 768px) {
    .floating-whatsapp {
        bottom: 20px !important;
        right: 13px !important;
    }

    #btn-topo {
        bottom: 105px; /* 20 + 70 + 15px de folga */
        right: 28px;
        width: 40px;
        height: 40px;
        font-size: 0.95rem;
    }
}

/* ---- FOOTER ---- */
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 2rem;
    padding: 3rem 0;
}

@media (max-width: 991px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 575px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-address li {
        justify-content: center;
    }
}

.footer-bottom {
    padding: 1rem 1.5rem;
}

/* Itens extras do footer — ocultos por padrão */
.more-imoveis-extra {
    display: none;
    list-style: none;
    padding: 0;
    margin: 0;
}

.more-imoveis-extra.show {
    display: block;
}

/* ---- CARDS SERVIÇOS (index) ---- */
.servicos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 1rem;
}

@media (max-width: 991px) {
    .servicos-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575px) {
    .servicos-grid {
        grid-template-columns: 1fr;
    }
}

/* ---- TOPBAR ---- */
.header-topbar {
    font-size: 0.85rem;
}

.header-topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 0;
    gap: 1rem;
}

.header-contact-list,
.header-social-list {
    display: flex;
    align-items: center;
    gap: 15px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.header-topbar .infos-header {
    color: #fff;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    text-decoration: none;
    transition: opacity 0.2s;
}

.header-topbar .infos-header:hover {
    opacity: 0.8;
}

.header-topbar i {
    color: #fff;
}

/* Ícones de redes sociais no topbar */
.header-topbar .button-redes {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    padding: 0;
    flex-shrink: 0;
}

.header-topbar .button-redes a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #fff;
    text-decoration: none;
}

.header-topbar .button-redes i {
    font-size: 0.8rem;
    line-height: 1;
}

.header-topbar .button-redes .kwai {
    width: 14px;
    height: 14px;
    object-fit: contain;
}

/* ---- TÍTULOS DE SEÇÃO ---- */
/* Override do estilo legado que colocava fundo pill nas seções */
.section-title {
    background-color: transparent !important;
    border-radius: 0 !important;
    padding: 0 !important;
    width: auto !important;
}

.section-title-area {
    margin-bottom: 5rem;
}

/* ================================================================
   BUSCA DO BANNER — REDESIGN MODERNO
   ================================================================ */

/* Container externo: vidro fosco flutuando sobre o banner */
.hero-busca-wrapper {
    max-width: 800px;
    margin: 2rem auto 0;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
}

/* Toggle COMPRAR / ALUGAR — pill moderno */
.busca-toggle {
    display: inline-flex;
    background: rgba(0, 0, 0, 0.35);
    border-radius: 50px;
    padding: 4px;
    margin-bottom: 1.25rem;
    gap: 5px;
}

/* override forte para neutralizar o style.css (.ltn__tab-menu a) */
.busca-toggle a,
.busca-toggle a:last-child {
    display: inline-block;
    margin: 0;
    padding: 0.45rem 1.75rem;
    border-radius: 50px !important;
    font-weight: 700;
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.75);
    background-color: transparent !important;
    text-decoration: none;
    transition: background 0.25s, color 0.25s, box-shadow 0.25s;
    white-space: nowrap;
}

.busca-toggle a.active,
.busca-toggle a:hover {
    background: var(--cor-site-2) !important;
    color: #fff !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

/* Painéis do toggle — JS puro, sem Bootstrap tab */
.busca-pane {
    display: none;
}

.busca-pane.active {
    display: block;
}

/* Linha de busca: input + botão */
.busca-form {
    display: flex;
    gap: 0;
    align-items: stretch;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.busca-input-wrap {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
}

.busca-icon {
    position: absolute;
    left: 18px;
    color: #b0b0b0;
    font-size: 1rem;
    pointer-events: none;
    z-index: 1;
}

.busca-input-wrap input[type="text"] {
    width: 100%;
    height: 58px !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 1rem 0 48px !important;
    font-size: 1rem !important;
    color: #333;
    background: transparent !important;
    outline: none;
    box-shadow: none !important;
    margin-bottom: 0px;
}

.busca-input-wrap input[type="text"]::placeholder {
    color: #b0b0b0;
    font-weight: 400;
}

/* Divisor visual entre input e botão */
.busca-form::before {
    content: none;
}

.busca-btn {
    height: 58px;
    padding: 0 2.25rem;
    border-radius: 0 14px 14px 0 !important;
    font-weight: 800;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    white-space: nowrap;
    flex-shrink: 0;
    border: none;
    background: var(--cor-site-2, #b6975b);
    color: #fff;
    cursor: pointer;
    transition: filter 0.2s;
}

.busca-btn:hover {
    filter: brightness(1.1);
    color: #fff;
}

@media (max-width: 575px) {
    .hero-busca-wrapper {
        margin: 1.25rem 0.75rem 0;
        padding: 1.1rem;
    }

    .busca-toggle a {
        padding: 0.4rem 1.1rem;
        font-size: 0.78rem;
    }

    .busca-form {
        flex-direction: column;
        border-radius: 12px;
        overflow: visible;
        background: transparent;
        box-shadow: none;
        gap: 0.5rem;
    }

    .busca-input-wrap {
        background: #fff;
        border-radius: 12px;
        overflow: hidden;
    }

    .busca-btn {
        width: 100%;
        border-radius: 12px !important;
        height: 52px;
    }

    .header-contact-list {
        display: none;
    }
}

/* ---- HEADER PRINCIPAL ---- */
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.site-logo-wrap {
    flex-shrink: 0;
}

.header-menu {
    align-items: center;
}

/* ---- HEADER MOBILE ---- */
.menu-responsivo {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 8px 0;
}

.menu-responsivo .site-logo {
    flex: 1;
    display: flex;
    align-items: center;
}

.menu-responsivo .site-logo img {
    width: auto;
}

.menu-responsivo .mobile-menu-toggle {
    margin-right: 0;
    display: flex;
    align-items: center;
}

.menu-responsivo .mobile-menu-toggle > a {
    color: #fff;
}

.menu-responsivo .mobile-menu-toggle svg path {
    stroke: #fff;
}

@media (min-width: 1200px) {
    .menu-responsivo {
        justify-content: flex-start;
    }
}
