@charset "utf-8";
/* CSS Document */
/* -------------------------------------------
* BASE & TYPOGRAPHY
* ------------------------------------------- */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f0f2f5;
    margin: 0;
    padding: 0 0 20px 0; /* Ajuste para evitar empurrar o cabeçalho sticky */
    color: #333;
}

h1 {
    text-align: center;
    margin: 10px 0 35px 0;
    font-size: 32px;
    /* COR AJUSTADA PARA FICAR CONSISTENTE COM A NOVA PALETA */
    color: #2c3e50; 
    border-bottom: 2px solid #ddd;
    padding-bottom: 10px;
}

/* -------------------------------------------
* HEADER / NAVBAR - DESKTOP PADRÃO
* ------------------------------------------- */
.header-top {
    /* MUDANÇA CRÍTICA: Cor do cabeçalho igual à cor do rodapé */
    background: #2c3e50; 
    padding: 0 20px;
    height: 60px;
    display: flex;
    justify-content: space-between; 
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    
    position: sticky;
    top: 0; 
    z-index: 900; 
}

.logo a {
    color: white;
    font-size: 24px;
    font-weight: bold;
    text-decoration: none;
}

.nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links > li {
    position: relative;
}

.nav-links > li > a {
    color: white;
    text-decoration: none;
    padding: 0 15px;
    height: 60px;
    display: flex;
    align-items: center;
    font-weight: 500;
    transition: background 0.3s;
}

.nav-links > li > a:hover {
    /* COR AJUSTADA: Um tom mais claro/diferente para o hover */
    background: #4a6078; 
}

/* Sub-menus (Dropdown Desktop) */
.dropdown {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    background: white;
    min-width: 220px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 500;
    list-style: none;
    padding: 10px 0;
    margin: 0;
    border-radius: 4px;
}

.dropdown a {
    color: #333;
    padding: 10px 20px;
    text-decoration: none;
    display: block;
    font-weight: normal;
}

.dropdown a:hover {
    background: #f0f2f5;
    /* COR AJUSTADA: Novo destaque para o hover do dropdown */
    color: #2c3e50; 
}

.nav-links > li:hover > .dropdown {
    display: block;
}

/* Botões de Conta (Desktop) */
.account-buttons {
    display: flex;
    gap: 10px;
}

.account-buttons a {
    padding: 12px 18px; 
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    transition: all 0.3s;
}

.btn-login {
    background: transparent;
    border: 2px solid white;
    color: white;
}

.btn-login:hover {
    background: white;
    /* COR AJUSTADA: Usa a nova cor do cabeçalho */
    color: #2c3e50;
}

.btn-signup {
    background: #ff5722; 
    color: white;
    border: 2px solid #ff5722;
}

.btn-signup:hover {
    background: #e64a19;
    border-color: #e64a19;
}

/* Botão de Menu Hambúrguer (Apenas para Mobile - Inicia escondido) */
.menu-toggle {
    display: none; 
    background: transparent;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    padding: 0 10px;
    line-height: 1;
}
/* -------------------------------------------
* NOVO: BOTÃO WHATSAPP FLUTUANTE
* ------------------------------------------- */
.whatsapp-float {
    /* Posição fixa na tela */
    position: fixed;
    bottom: 30px; 
    right: 30px;
    
    /* Estilização do botão */
    width: 60px; 
    height: 60px;
    background-color: #25d366; /* Verde do WhatsApp */
    border-radius: 50%; /* Transforma em círculo */
    text-align: center;
    box-shadow: 2px 2px 8px rgba(0,0,0,0.3);
    z-index: 999; /* Garante que fique acima de tudo */
    display: flex;
    justify-content: center;
    align-items: center;
    
    /* Animação */
    transition: transform 0.3s ease-in-out;
}

.whatsapp-float:hover {
    transform: scale(1.1); /* Efeito de "zoom" ao passar o mouse */
}

.whatsapp-float img {
    width: 35px; /* Tamanho do ícone */
    height: 35px;
    filter: invert(0); /* Garante que a imagem tenha cor normal (se for PNG) */
}


/* Ajuste para telas menores */
@media (max-width: 600px) {
    .whatsapp-float {
        width: 50px; 
        height: 50px;
        bottom: 20px; 
        right: 20px;
    }
    .whatsapp-float img {
        width: 30px; 
        height: 30px;
    }
}
/* -------------------------------------------
* FILTROS (FORMS)
* ------------------------------------------- */
.filtros {
    background: white;
    padding: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    
    position: sticky;
    top: 60px; 
    z-index: 890; 
    border-radius: 0; 
}

.container-all {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.container {
    margin-top: 30px;
}


.filtros input,
.filtros select {
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #ccc;
    min-width: 160px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.filtros input:focus,
.filtros select:focus {
    /* COR AJUSTADA: Usa a nova cor principal */
    border-color: #2c3e50;
    outline: none;
}

.filtros button {
    padding: 12px 25px;
    /* COR AJUSTADA: Usa a nova cor principal */
    background: #2c3e50;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s, transform 0.1s;
}

.filtros button:hover {
    /* COR AJUSTADA: Usa um tom mais escuro da nova cor */
    background: #243340;
}

/* -------------------------------------------
* GRID & CARD
* ------------------------------------------- */
.container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* Tag de status */
.card-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    /* COR AJUSTADA: Usa a nova cor principal */
    background: #2c3e50; 
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    z-index: 10; 
    text-transform: uppercase;
}
.card-tag.aluguel {
    background: #ff5722; 
}


/* -------------------------------------------
* CARROSSEL & FOTOS
* ------------------------------------------- */
.carousel {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    border-bottom: 1px solid #eee;
}

.carousel-inner {
    position: relative; 
    width: 100%;
    height: 100%;
}

.carousel-item {
    position: absolute; 
    width: 100%;
    height: 100%;
    opacity: 0; 
    transition: opacity 0.5s ease-in-out; 
    cursor: pointer; 
}

.carousel-item.active {
    opacity: 1; 
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Setas de Navegação do Carrossel (vitrine) */
.carousel-control {
    position: absolute;
    top: 0;
    bottom: 0;
    margin: auto;
    width: 25%; 
    height: 100%;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 20;
    color: white;
    font-size: 30px;
    opacity: 0.7; 
    transition: opacity 0.3s;
}

.carousel:hover .carousel-control {
    opacity: 1; 
}

.carousel-control.prev {
    left: 0;
    text-align: left;
}

.carousel-control.next {
    right: 0;
    text-align: right;
}

.carousel-control-icon {
    display: inline-block;
    background: rgba(0, 0, 0, 0.6);
    padding: 10px 15px;
    border-radius: 50%;
    margin: 0 5px;
    line-height: 1;
    font-family: sans-serif;
    font-weight: bold;
}

.carousel-dots {
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
    text-align: center;
    z-index: 10; 
}

.carousel-dots span {
    width: 10px;
    height: 10px;
    display: inline-block;
    margin: 0 4px;
    background: rgba(255, 255, 255, 0.8); 
    border-radius: 50%;
    cursor: pointer;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.carousel-dots .active {
    /* COR AJUSTADA: Usa a nova cor principal */
    background: #2c3e50;
    border: 1px solid #2c3e50;
}

/* ---------------------------------
* MODAL (JANELA POP-UP)
* --------------------------------- */
.modal {
    display: none; 
    position: fixed; 
    z-index: 1000; 
    padding-top: 50px; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgb(0,0,0); 
    background-color: rgba(0,0,0,0.9); 
}

.modal-content-wrapper {
    position: relative;
    margin: auto;
    width: 80%;
    max-width: 900px;
    height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

#modalImage {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Setas de Navegação do Modal */
.modal-control {
    position: absolute;
    top: 0;
    bottom: 0;
    margin: auto 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    padding: 15px;
    font-size: 30px;
    cursor: pointer;
    z-index: 1010;
    height: 50px;
    line-height: 20px;
    border-radius: 50%;
    transition: background 0.3s;
}

.modal-control:hover {
    background: rgba(0, 0, 0, 0.8);
}

.modal-control.prev {
    left: 20px;
}

.modal-control.next {
    right: 20px;
}

.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 50px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    z-index: 1020;
}

.close:hover,
.close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}


/* -------------------------------------------
* INFO TEXTO (CARD)
* ------------------------------------------- */
.info {
    padding: 20px;
}

.info .titulo {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 5px;
    color: #333;
}

.info .valor {
    /* COR AJUSTADA: Usa a nova cor principal */
    color: #2c3e50; 
    font-size: 24px;
    margin: 10px 0;
    font-weight: 800;
    padding-bottom: 5px;
    border-bottom: none;
}

/* Nova seção de Metricas no Card */
.card-metrics {
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
    border-top: 1px solid #eee;
    margin-top: 10px;
    color: #555;
    text-align: center;
}

.metric-item {
    font-size: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-grow: 1;
    border-right: 1px solid #eee;
}

.metric-item:last-child {
    border-right: none;
}

.metric-value {
    font-weight: bold;
    color: #333;
    font-size: 16px;
    line-height: 1.2;
}
.metric-label {
    font-size: 11px;
    text-transform: uppercase;
    color: #999;
}

/* Esconde as informações duplicadas (do HTML original) */
.info div:not(.titulo, .valor, .botao, .card-metrics, [style]) {
    display: none; 
}


/* -------------------------------------------
* BOTÕES
* ------------------------------------------- */
.botao {
    display: block;
    background: #ff5722; 
    text-align: center;
    color: white;
    padding: 14px;
    margin-top: 20px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    transition: background 0.3s;
}

.botao:hover {
    background: #e64a19;
}

/* -------------------------------------------
* PAGINAÇÃO
* ------------------------------------------- */
.paginacao {
    text-align: center;
    margin: 30px 0;
}

.paginacao a {
    padding: 10px 16px;
    background: #e9ecef;
    margin: 0 4px;
    text-decoration: none;
    border-radius: 8px;
    color: #333;
    font-weight: 500;
    transition: background 0.3s, color 0.3s;
}

.paginacao a:hover {
    background: #ccc;
}

.paginacao .current {
    /* COR AJUSTADA: Usa a nova cor principal */
    background: #2c3e50;
    color: white;
    font-weight: bold;
    /* COR AJUSTADA: Novo box-shadow */
    box-shadow: 0 2px 5px rgba(44, 62, 80, 0.5); 
}

/* -------------------------------------------
* ALERTAS
* ------------------------------------------- */
p[style*="text-align: center"] {
    background: #fff3cd; 
    color: #856404 !important; 
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #ffeeba;
    margin: 20px auto;
    max-width: 600px;
}


/* -------------------------------------------
* RESPONSIVIDADE (MOBILE E TABLET)
* ------------------------------------------- */

/* DESKTOP E TELAS GRANDES (901px e acima) - NOVO AJUSTE */
@media (min-width: 901px) {
    
    .menu-toggle { 
        display: none; 
    }
    
    .header-top {
        justify-content: flex-start;
        gap: 20px;
    }

    .nav-mobile-container {
        display: flex !important;
        flex-direction: row;
        flex-grow: 1; 
        justify-content: space-between; 
        position: static;
        background: transparent;
        box-shadow: none;
        padding: 0;
        max-height: none;
        overflow-y: visible;
        width: auto;
    }

    .nav-links {
        display: flex !important;
        border-bottom: none;
        margin-right: auto; 
        margin-left: auto;
    }
    
    .account-buttons {
        display: flex !important;
        flex-direction: row;
        padding: 0;
        border-top: none;
    }
}

/* MOBILE E TABLET (900px e abaixo) - COM AJUSTES PARA STICKY */
@media (max-width: 900px) {
    
    .header-top {
        justify-content: space-between; 
        padding: 0 15px;
    }
    
    .nav-links,
    .account-buttons {
        display: none; 
    }

    .menu-toggle {
        display: block; 
    }

    .nav-mobile-container {
        display: none;
        position: absolute; 
        top: 60px; 
        left: 0;
        width: 100%;
        max-height: calc(100vh - 60px); 
        overflow-y: auto; 
        background: white; 
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
        z-index: 400;
        padding: 10px 0;
    }
    
    .nav-mobile-container.open {
        display: flex;
        flex-direction: column;
    }
    
    .nav-links {
        display: block; 
        width: 100%;
        list-style: none;
        padding: 0;
        margin: 0;
        border-bottom: 1px solid #eee;
    }
    
    .nav-links > li {
        position: static; 
        border-bottom: 1px solid #f0f2f5;
    }

    .nav-links > li > a {
        color: #333; 
        padding: 15px 20px;
        height: auto;
        justify-content: space-between;
    }
    
    .nav-links > li > a:hover {
        background: #f0f2f5;
    }

    .dropdown {
        position: static; 
        display: none;
        background: #f8f8f8; 
        box-shadow: none;
        border-radius: 0;
        padding: 0;
        min-width: 100%;
    }
    
    .nav-links > li.active > .dropdown {
        display: block;
    }
    
    .dropdown a {
        padding: 10px 30px; 
        color: #555;
    }

    .account-buttons {
        display: flex;
        flex-direction: column;
        gap: 10px;
        padding: 20px;
        border-top: 1px solid #eee;
        width: auto;
    }
    
    .account-buttons a {
        text-align: center;
        width: 100%;
        box-sizing: border-box; 
    }
    
    .btn-login {
        /* COR AJUSTADA: Usa a nova cor principal */
        border-color: #2c3e50;
        color: #2c3e50;
    }
    
    .btn-login:hover {
        background: #f0f2f5;
    }

    .container {
        grid-template-columns: 1fr; 
        gap: 20px;
    }
    
    .filtros {
        flex-direction: column; 
        align-items: stretch;
        padding: 15px;
        gap: 10px;
    }
    
    .filtros input,
    .filtros select,
    .filtros button {
        min-width: 100%;
        padding: 10px;
        font-size: 14px;
    }
    
    .container-all {
        padding: 0 15px;
    }
}

/* -------------------------------------------
* ESTILOS DO RODAPÉ (FOOTER)
* ------------------------------------------- */
.main-footer {
    background-color: #2c3e50; 
    color: #ecf0f1; 
    padding: 40px 20px 10px;
    margin-top: 50px; 
    font-family: Arial, sans-serif;
    width: 100%;
    box-sizing: border-box; 
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-section {
    flex: 1;
    min-width: 250px;
    margin: 20px;
}

.footer-section h3 {
    color: #f1c40f; 
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: bold;
}

.footer-section p {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 10px;
}

.footer-section.links ul {
    list-style: none;
    padding: 0;
}

.footer-section.links a {
    color: #ecf0f1;
    text-decoration: none;
    display: block;
    padding: 5px 0;
    transition: color 0.3s;
}

.footer-section.links a:hover {
    color: #f1c40f;
    text-decoration: underline;
}

.social-links {
    margin-top: 20px;
}

.social-links a {
    display: inline-block;
    margin-right: 10px;
}

.social-links img {
    width: 24px;
    height: 24px;
    filter: invert(1); 
    transition: opacity 0.3s;
}

.social-links img:hover {
    opacity: 0.7;
}

.footer-bottom {
    text-align: center;
    padding: 15px 0;
    font-size: 12px;
}

.footer-bottom p {
    margin: 5px 0;
}

.footer-bottom a {
    color: #ecf0f1;
    text-decoration: none;
    margin: 0 5px;
    transition: color 0.3s;
}

.footer-bottom a:hover {
    color: #f1c40f;
    text-decoration: underline;
}

/* Responsividade do Rodapé */
@media (max-width: 768px) {
    .main-footer {
        padding: 30px 15px 10px;
    }
    
    .footer-container {
        flex-direction: column;
        align-items: center;
    }

    .footer-section {
        margin: 15px 0;
        text-align: center;
        min-width: 90%;
    }

    .footer-section.links ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
    }

    .footer-section.links li {
        margin: 5px 10px;
    }
    
    .footer-section.links a {
        display: inline;
    }
    
    .social-links {
        margin-top: 15px;
    }
    
    .footer-section.creci {
        margin-top: 0;
    }
}