/* ====== INDEX.PHP - Busca, Financiamento, Coverflow, Carrossel ====== */

.imoveis-busca {
    margin-top: 25px;
}

.container-busca {
    display: flex;
    justify-content: center;
    margin-top: 50px;
    height: 152px;
}

.container-busca .container-opcoes-de-busca {
    display: flex;
    justify-content: center;
    margin-top: -10px;
}

.container-busca .busca {
    background-color: #FFFFFF;
    box-shadow: rgba(0, 0, 0, 0.4) -5px 5px, rgba(0, 0, 0, 0.3) -10px 10px, rgba(0, 0, 0, 0.2) -15px 15px, rgba(0, 0, 0, 0.1) -20px 20px, rgba(0, 0, 0, 0.05) -25px 25px;
    width: 85vw;
    height: 150px;
    padding: 20px 70px;
    border-radius: 20px;
}

.container-busca .busca .titulo-busca {
    text-align: center;
    font-size: 2.2rem;
}

.container-busca .busca .opcoes-busca {
    display: flex;
    justify-content: center;
    padding-top: 10px;
}

.container-busca .busca .opcoes-busca .opcoes {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.container-busca .busca .opcoes-busca select {
    background-color: #FFFFFF;
    width: 150px;
    height: 30px;
    font-size: 1.5rem;
    font-weight: 300;
    margin: 10px;
    text-align: center;
    border-radius: 20px;
}

.filtros-index {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 20px;
    margin-top: 10px;
}

.filtros-index .selecionar {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.filtros-index label {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: -10px;
}

.filtros-index .botao-buscar {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filtros-index .botao-buscar a {
    font-size: 1.4rem;
}

.filtros-index .botao-buscar button {
    width: 50px;
    height: 50px;
    border: none;
    cursor: pointer;
    border-radius: 50%;
}

.container-busca label {
    font-size: 1.5rem;
    font-weight: 600;
}

/* ====== FINANCIAMENTO ====== */

.financiamento {
    background: rgb(0, 0, 0);
    background: linear-gradient(90deg, rgba(0, 0, 0, 1) 0%, rgba(54, 128, 164, 1) 100%);
    margin-top: 20px;
    width: 100vw;
    height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 25px;
    margin: 50px 0;
}

.financiamento .titulo-financiameto {
    font-size: 2.8rem;
    color: var(--cor-branca);
    font-family: 'Open Sans', sans-serif;
    text-align: center;
}

.bancos {
    width: 100vw;
    height: 50px;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    display: none;
    margin-bottom: 40px;
}

.bancos a {
    background-color: white;
    padding: 0px 15px;
    transition: 0.5s ease;
    width: 170px;
    height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: "Archivo Black", sans-serif;
    font-style: normal;
    font-size: 1.6rem;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 3px 0px, rgba(0, 0, 0, 0.06) 0px 1px 2px 0px;
    text-align: center;
}

.bancos a:hover {
    transform: scale(1.03);
    box-shadow: rgba(0, 0, 0, 0.15) 0px 4px 10px;
}

.bancos a:nth-child(1) { border-top: 5px solid red; }
.bancos a:nth-child(2) { border-top: 5px solid blue; }
.bancos a:nth-child(3) { border-top: 5px solid rgb(204, 9, 47); }
.bancos a:nth-child(4) { border-top: 5px solid rgb(209, 209, 4); }

/* ====== BANNER MOBILE (slider na index em mobile) ====== */

.banner-mobile {
    display: none;
    width: 100%;
    overflow: hidden;
}

.container-imagens-mobile {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
}

.slider-mobile {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.slider-mobile.on {
    opacity: 1;
}

.slider-mobile img,
.slider-mobile video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.banner-mobile-link {
    display: block;
}

/* ====== COVERFLOW (Lançamentos) ====== */

.coverflow-wrapper {
    width: 100%;
    max-width: 1400px;
    margin: 2px auto 20px;
    position: relative;
    overflow: hidden;
}

.coverflow {
    position: relative;
    height: 520px;
    opacity: 0;
    transition: opacity .4s ease;
}

.coverflow.pronto {
    opacity: 1;
}

.coverflow-item {
    position: absolute;
    left: 50%;
    top: 0px;
    transition: .5s ease;
    cursor: pointer;
    background: #fff;
    padding: 12px 12px 40px 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
}

.coverflow-item img {
    width: 700px;
    height: 450px;
    object-fit: cover;
    display: block;
}

.coverflow-info {
    position: absolute;
    bottom: 8px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding-left: 15px;
    box-sizing: border-box;
}

.coverflow-contador {
    font-size: 1rem;
    font-weight: 600;
    color: #555;
}

.pos0 {
    transform: translateX(-50%) scale(1);
    z-index: 100;
}

.pos-1 {
    transform: translateX(-90%) scale(.82) rotateY(20deg);
    z-index: 80;
    opacity: .95;
}

.pos-2 {
    transform: translateX(-125%) scale(.65) rotateY(30deg);
    z-index: 60;
    opacity: .75;
}

.pos1 {
    transform: translateX(-10%) scale(.82) rotateY(-20deg);
    z-index: 80;
    opacity: .95;
}

.pos2 {
    transform: translateX(25%) scale(.65) rotateY(-30deg);
    z-index: 60;
    opacity: .75;
}

.oculta {
    opacity: 0;
    pointer-events: none;
}

.coverflow-seta {
    position: absolute;
    top: 45%;
    transform: translateY(-50%);
    z-index: 999;
    background: none;
    border: none;
    font-size: 50px;
    cursor: pointer;
}

.esquerda { left: 10px; }
.direita  { right: 10px; }

/* SKELETON do coverflow */

.coverflow-wrapper {
    position: relative;
}

.coverflow-wrapper::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    width: 780px;
    height: 540px;
    background: linear-gradient(90deg, #eeeeee 25%, #f5f5f5 50%, #eeeeee 75%);
    background-size: 200% 100%;
    animation: skeletonLoading 1.5s infinite;
    z-index: 1;
}

.coverflow-wrapper.pronto::before {
    display: none;
}

@keyframes skeletonLoading {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.coverflow-wrapper::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 45px;
    height: 45px;
    margin-left: -22.5px;
    margin-top: -22.5px;
    border: 4px solid #d0d0d0;
    border-top: 4px solid #888;
    border-radius: 50%;
    animation: girar 1s linear infinite;
    z-index: 2;
}

.coverflow-wrapper.pronto::after {
    display: none;
}

@keyframes girar {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* ====== CARROSSEL / LANÇAMENTOS ====== */

.carrossel-imoveis {
    width: 100%;
    margin-top: 35px;
    margin-bottom: 25px;
}

.slides {
    position: relative;
    width: 100%;
}

.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.slide.ativo {
    opacity: 1;
    pointer-events: auto;
    position: relative;
    display: block;
}

.slide img {
    width: 100%;
    aspect-ratio: 1920 / 500;
    object-fit: cover;
    display: block;
}

.seta {
    display: none;
}

.indicadores {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
}

.ponto {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #d9d9d9;
    cursor: pointer;
    transition: 0.3s;
}

.ponto:hover {
    transform: scale(1.1);
}

.ponto.ativo {
    background: var(--cor-principal);
}

/* ====== RESPONSIVO (max-width: 730px) ====== */

@media (max-width: 730px) {

    .container-busca {
        height: auto;
        margin-top: 30px;
        padding: 0 15px;
    }

    .container-busca .busca {
        width: 75%;
        height: auto;
        padding: 20px;
    }

    .container-busca .busca .titulo-busca {
        font-size: 1.8rem;
        margin-bottom: 20px;
    }

    .container-busca .busca .opcoes-busca {
        flex-direction: column;
        padding: 10px 10px;
    }

    .container-busca .busca .opcoes-busca select {
        width: 150px;
        font-size: 1.5rem;
    }

    .container-busca .busca .opcoes-busca option {
        font-size: 1rem;
    }

    .container-busca label {
        text-align: center;
        font-weight: normal;
        margin-top: 5px;
    }

    .filtros-index {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .filtros-index .selecionar {
        width: 100%;
    }

    .filtros-index .botao-buscar {
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 15px;
    }

    .filtros-index .botao-buscar a {
        font-size: 1.4rem;
    }

    .filtros-index .botao-buscar button {
        width: 55px;
        height: 55px;
    }

    .financiamento {
        width: 100%;
    }

    .container-slider {
        display: none;
    }

    .banner-mobile {
        display: block;
        width: 100%;
        overflow: hidden;
    }

    .bancos {
        transform: rotateZ(0deg);
        flex-direction: column;
        height: 300px;
    }

    .bancos a {
        width: 150px;
        height: 60px;
    }

    .coverflow-wrapper {
        margin: 0 auto 20px;
    }

    .coverflow {
        height: 240px;
    }

    .coverflow-item {
        padding: 8px 8px 30px 8px;
    }

    .coverflow-item img {
        width: 280px;
        height: 190px;
    }

    .coverflow-contador {
        font-size: .85rem;
    }

    .pos0 {
        transform: translateX(-50%) scale(1);
    }

    .pos-1 {
        transform: translateX(-82%) scale(.80);
        opacity: .8;
    }

    .pos1 {
        transform: translateX(-18%) scale(.80);
        opacity: .8;
    }

    .pos-2 {
        transform: translateX(-105%) scale(.60);
        opacity: .45;
    }

    .pos2 {
        transform: translateX(5%) scale(.60);
        opacity: .45;
    }

    .coverflow-seta {
        font-size: 52px;
        top: 40%;
    }

    .esquerda { left: 10px; }
    .direita  { right: 10px; }

    .coverflow-wrapper::before {
        width: 320px;
        height: 240px;
    }

}
