/* RESET */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    color: #333;
    background: #f7f8fa;
    line-height: 1.6;
}

/* HERO */

.hero {
    height: 90vh;
    background:
        linear-gradient(
            rgba(0, 0, 0, 0.55),
            rgba(0, 0, 0, 0.55)
        ),
        #f7f8fa;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("../images/plenaxni_logo.jpg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 45%;
    opacity: 0.15;
    z-index: 0;
}

.overlay {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    width: 100%;
    padding: 20px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 40px;
}

/* FILTROS */

.search-box {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.95);
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.search-box select {
    min-width: 180px;
    padding: 15px;
    border-radius: 10px;
    border: 1px solid #ddd;
    font-size: 1rem;
}

.search-box button {
    min-width: 170px;
    padding: 15px;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

#btnBuscar,
#btnLimpar {
    background: #0f4c81;
    color: white;
}

#btnBuscar:hover,
#btnLimpar:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* DESTAQUES */

.destaques {
    padding: 70px 20px;
}

.destaques h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.5rem;
    color: #222;
}

/* CARDS */

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 380px));
    justify-content: center;
    gap: 30px;
    max-width: 1300px;
    margin: auto;
}

.card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.10);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

.card img {
    width: 100%;
    height: 260px;
    object-fit: cover;
}

.info {
    padding: 25px;
}

.codigo {
    display: inline-block;
    background: #0f4c81;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.info h3 {
    margin-bottom: 10px;
    font-size: 1.6rem;
    color: #222;
}

.info p {
    color: #777;
    margin-bottom: 20px;
}

.detalhes {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.valor {
    font-size: 1.5rem;
    font-weight: bold;
    color: #0f4c81;
    margin-bottom: 20px;
}

/* BOTÕES DOS CARDS */

.acoes {
    display: flex;
    gap: 10px;
}

.btn,
.btn-detalhes {
    flex: 1;
    display: inline-block;
    text-align: center;
    color: white;
    text-decoration: none;
    padding: 15px;
    border-radius: 10px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn {
    background: #25D366;
}

.btn-detalhes {
    background: #0f4c81;
}

.btn:hover,
.btn-detalhes:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* SEM RESULTADOS */

#nenhumResultado {
    max-width: 700px;
    margin: 50px auto 0;
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.10);
}

#nenhumResultado h3 {
    margin-bottom: 15px;
    color: #0f4c81;
}

#nenhumResultado p {
    color: #666;
}

/* WHATSAPP */

.whatsapp {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #25D366;
    color: white;
    padding: 15px 22px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
    z-index: 999;
}

.whatsapp:hover {
    opacity: 0.9;
}

/* RODAPÉ */

.rodape-imovel {
    background: #0f4c81;
    color: white;
    text-align: center;
    padding: 60px 20px;
    margin-top: 80px;
}

.logo-rodape {
    width: 100px;
    height: auto;
    margin-bottom: 20px;
    border-radius: 12px;
    background: white;
    padding: 6px;
}

.rodape-imovel p {
    margin-top: 10px;
    font-size: 1rem;
    line-height: 1.6;
}

.contatos-rodape {
    margin-top: 25px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 25px;
    font-size: 0.95rem;
}

.contatos-rodape span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.contatos-rodape a {
    color: white;
    text-decoration: none;
}

.contatos-rodape a:hover {
    text-decoration: underline;
}

/* DETALHE DO IMÓVEL */

.detalhe-header {
    padding: 30px 20px;
}

.btn-voltar {
    display: inline-block;
    background: #0f4c81;
    color: white;
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 10px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn-voltar:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.imovel-hero,
.resumo-imovel,
.ambientes,
.descricao-imovel,
.galeria-imovel,
.cta-final {
    max-width: 1200px;
    margin: auto;
    padding: 60px 20px;
}

.hero-info {
    text-align: center;
}

.localizacao {
    margin: 15px 0;
}

.btn-whatsapp {
    display: inline-block;
    margin-top: 25px;
    background: #25D366;
    color: white;
    text-decoration: none;
    padding: 16px 28px;
    border-radius: 12px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn-whatsapp:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.btn-whatsapp-grande {
    font-size: 1.1rem;
    padding: 18px 35px;
}

/* DIFERENCIAIS */

.diferenciais-grid,
.ambientes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    margin-top: 35px;
}

.diferencial-card,
.ambiente-item {
    background: white;
    padding: 18px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.10);
}

.icone {
    display: block;
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.diferencial-card h3 {
    font-size: 1rem;
    margin-bottom: 5px;
}

.diferencial-card p {
    font-size: 0.95rem;
    color: #666;
}

/* DESCRIÇÃO */

.descricao-imovel p {
    margin-top: 20px;
    line-height: 1.8;
    color: #555;
}

/* GALERIA */

.galeria-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.foto-galeria {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 15px;
    transition: all 0.4s ease;
    cursor: pointer;
}

.foto-galeria:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.20);
}

/* LIGHTBOX */

.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    padding: 30px;
}

.lightbox-img {
    max-width: 95%;
    max-height: 95%;
    border-radius: 15px;
    animation: zoom 0.3s ease;
}

.fechar {
    position: absolute;
    top: 25px;
    right: 35px;
    color: white;
    font-size: 45px;
    cursor: pointer;
}

@keyframes zoom {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* CTA */

.cta-final {
    text-align: center;
}

/* RESPONSIVO */

@media (max-width: 992px) {
    .search-box {
        flex-wrap: wrap;
    }

    .search-box select,
    .search-box button {
        min-width: 220px;
    }
}

@media (max-width: 768px) {

    .hero {
        height: auto;
        padding: 100px 20px;
    }

    .hero::before {
        background-size: 75%;
        background-position: center 2%;
    }

    .hero h1 {
        font-size: 2.4rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .search-box {
        flex-direction: column;
    }

    .search-box select,
    .search-box button {
        width: 100%;
    }

    .cards {
        grid-template-columns: 1fr;
    }

    .card {
        width: 100%;
    }

    .card img,
    .foto-galeria {
        height: 220px;
    }

    .valor {
        font-size: 1.2rem;
    }

    .acoes {
        flex-direction: column;
    }

    .btn-whatsapp-grande {
        width: 100%;
    }

    .contatos-rodape {
        flex-direction: column;
        gap: 15px;
    }
}