/* Estilos Gerais */
body {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.9)), url('/assets/imagens/back.png'); /* Overlay com opacidade + imagem */
    background-color: #f4f4f4; /* Fallback */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed; /* Mantém a imagem fixa */
    color: #333;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.site-header {
    background-color: #3d3d3d;
    border-bottom: 1px solid #ddd;
    padding: 20px 0;
    margin-bottom: 20px;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
    text-decoration: none;
}

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.main-nav li {
    margin-left: 20px;

}

.main-nav a {
    text-decoration: none;
    color: #ffcb99;
    
}

/* Carrossel Básico (Base para futura animação) */
.carousel-container {
    overflow: hidden;
    position: relative;
    width: 100%;
    margin-bottom: 40px;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    min-width: 100%; /* Cada slide ocupa a largura total do contêiner */
    position: relative;
}

.carousel-slide img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    padding: 10px;
}

.carousel-caption h3 {
    margin: 0;
    font-size: 1.2rem;
}

.carousel-caption p {
    margin: 5px 0 0;
}
/* Página de Imóveis */
.imoveis-page {
    display: flex;
    gap: 20px;
}

.filtro-sidebar {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    height: fit-content;
    width: 250px;
}

.filtro-sidebar h3 {
    margin-top: 0;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    font-size: 0.8rem;
}

.form-group input {
    width: 100%;
    padding: 8px;
    box-sizing: border-box;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 10px 15px;
    text-align: center;
    text-decoration: none;
    border-radius: 4px;
    cursor: pointer;
    border: none;
    min-width: 100px;
}

.btn-primary {
    background-color: #3d3d3d;
    color: #ffcb99;
}

.btn-secondary {
    background-color: #6c757d;
    color: #fff;
}

.imoveis-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    flex-grow: 1;
}

.imovel-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}

.imovel-card:hover {
    transform: translateY(-5px);
}

.imovel-card a {
    text-decoration: none;
    color: inherit;
}

.imovel-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-content {
    padding: 15px;
}

.card-content h3 {
    margin: 0 0 10px 0;
    font-size: 1.2rem;
}

.card-content .preco {
    font-size: 1.1rem;
    font-weight: bold;
    color: #007bff;
    margin: 0 0 5px 0;
}

.card-content .localizacao, .card-content .quartos {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
}

.nenhum-imovel {
    text-align: center;
    grid-column: 1 / -1; /* Ocupa toda a largura da grade */
}
/* Página de Detalhes do Imóvel */
.detalhes-imovel-container {
    max-width: 900px;
    margin: 20px auto;
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.detalhes-imovel-header h1 {
    font-size: 1.5rem;
    margin-bottom: 5px;
    color: #3d3d3d;
}

.preco-detalhes {
    font-size: 1.3rem;
    font-weight: bold;
    color: #594a3d;
    margin: 0;
}

.localizacao-detalhes {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 20px;
}

.carousel-full {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 500px;
    margin-bottom: 20px;
    border-radius: 8px;
}

.carousel-full-track {
    display: flex;
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

.carousel-full-slide {
    min-width: 100%;
    height: 100%;
    position: relative;
}

.carousel-full-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-prev, .carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    padding: 10px;
    cursor: pointer;
    font-size: 1.5rem;
    z-index: 10;
}

.carousel-prev {
    left: 10px;
}

.carousel-next {
    right: 10px;
}

.detalhes-imovel-body {
    display: flex;
    gap: 40px;
}

.detalhes-info {
    flex: 2;
}

.detalhes-info h3 {
    border-bottom: 2px solid #594a3d;
    padding-bottom: 5px;
}

.descricao-texto {
    text-align: justify; /* Justifica o texto */
}

.detalhes-tecnicos {
    flex: 1;
}

.detalhes-tecnicos h3 {
    border-bottom: 2px solid #594a3d;
    padding-bottom: 5px;
}

.detalhes-tecnicos ul {
    list-style: none;
    padding: 0;
}

.detalhes-tecnicos li {
    background-color: #f8f9fa;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 10px;
}
/* Estilos do Painel Admin */
.admin-section {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.admin-section h3 {
    border-bottom: 2px solid #007bff;
    padding-bottom: 5px;
    margin-top: 0;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.admin-table thead {
    background-color: #007bff;
    color: #fff;
}

.admin-table th, .admin-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.admin-table tbody tr:last-child td {
    border-bottom: none;
}

.admin-table tbody tr:hover {
    background-color: #f1f1f1;
}

.admin-table a {
    color: #007bff;
    text-decoration: none;
    font-weight: bold;
}

.admin-table a:hover {
    text-decoration: underline;
}

.admin-table button {
    color: #dc3545;
    background: none;
    border: none;
    cursor: pointer;
    font-weight: bold;
    padding: 0;
    text-decoration: none;
}

.admin-table button:hover {
    text-decoration: underline;
}
/* Layout da Página Inicial */
.main-content {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.search-form-container {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    width: 350px;
    flex-shrink: 0;
}

.search-form-container .tabs {
    display: flex;
    margin-bottom: 20px;
}

.search-form-container .tab-button {
    flex: 1;
    border: none;
    background-color: #e9ecef;
    padding: 8px;
    font-size: 0.9rem;
    cursor: pointer;
    border-radius: 5px 5px 0 0;
}

.search-form-container .tab-button.active {
    background-color: #3d3d3d;
    color: #ffcb99;
}

.form-group-row {
    display: flex;
    gap: 15px;
}

.form-group-row .form-group {
    flex: 1;
}

.btn-primary-form {
    width: 100%;
    padding: 15px;
    font-size: 0.9rem;
    background-color: #3d3d3d;
    color: #ffcb99;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 10px;
}

.right-content {
    flex-grow: 1;
}
.logo img {
    height: 24px; /* Ajuste este valor conforme o tamanho da fonte que você usava */
    vertical-align: middle;
}
/* Seção de Imóveis Selecionados */
.imoveis-selecionados {
    margin-top: 40px;
}

.imoveis-selecionados h2 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 2rem;
    color: #333;
}

.imoveis-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

/* Estilo do Card de Imóvel */
.imovel-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.imovel-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

.imovel-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.imovel-card .card-content {
    padding: 15px;
}

.imovel-card .card-content h3 {
    font-size: 1.25rem;
    margin-top: 0;
    margin-bottom: 5px;
}

.imovel-card .card-content .tipo-transacao {
    font-size: 0.8rem;
    color: #007bff;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.imovel-card .card-content .preco {
    font-size: 1.2rem;
    font-weight: bold;
    color: #007bff;
    margin-bottom: 5px;
}

.imovel-card .card-content .localizacao,
.imovel-card .card-content .quartos {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 0;
}
/* Botão Flutuante de WhatsApp */
.whatsapp-btn {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 20px;
    right: 20px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transition: transform 0.3s ease;
}

.whatsapp-btn img {
width: 50px; 
height: 50px;
margin-top: 5px;
display: block;
margin-left: auto;
margin-right: auto;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
}
/* Estilo do Pop-up (Modal) de Contato */
.modal {
    display: none; /* Escondido por padrão */
    position: fixed; /* Posição fixa na tela */
    z-index: 2000; /* Fica acima de todo o conteúdo */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.6); /* Fundo semi-transparente escuro */
}

.modal-content {
    background-color: #fefefe;
    margin: 10% auto; /* 10% do topo e centralizado */
    padding: 20px;
    border: 1px solid #888;
    width: 80%; /* Largura padrão */
    max-width: 500px; /* Largura máxima para telas maiores */
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    position: relative;
}

.modal-content h2 {
    text-align: center;
    margin-bottom: 20px;
}

.close-btn {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    top: 10px;
    right: 15px;
}

.close-btn:hover,
.close-btn:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

.modal .form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.modal .form-group input {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box; /* Garante que o padding não aumente a largura */
}
/* Carrossel de Imóveis em Destaque */
.right-content {
    position: relative;
    width: 65%;
    max-width: 900px;
}

.carousel-container {
    overflow: hidden;
    position: relative;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    min-width: 100%;
    box-sizing: border-box;
}

.carousel-slide img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    display: block;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    z-index: 100;
    font-size: 2rem;
    line-height: 1;
}

.prev-btn {
    left: 10px;
    border-radius: 50%;
}

.next-btn {
    right: 10px;
    border-radius: 50%;
}
.imovel-caracteristicas p {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    font-size: 1rem;
}

.imovel-caracteristicas p i {
    margin-right: 10px;
    color: #594a3d; /* Cor do ícone, ajuste se preferir */
}
/* Estilo para a seção do mapa */
.map-container {
    margin-top: 30px;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.map-container h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
    text-align: center;
}
.carousel-full {
overflow: hidden;
position: relative;
border-radius: 8px;
box-shadow: 0 4px 10px rgba(0,0,0,0.1);
margin-bottom: 20px;
}

.carousel-full-track {
display: flex;
transition: transform 0.5s ease-in-out;
}

.carousel-full-slide {
min-width: 100%;
box-sizing: border-box;
}

.carousel-full-slide img {
width: 100%;
height: auto; /* Ajusta a altura proporcionalmente */
display: block;
}

.carousel-full-btn {
position: absolute;
top: 50%;
transform: translateY(-50%);
background: rgba(0,0,0,0.5);
color: white;
border: none;
padding: 10px 15px;
cursor: pointer;
z-index: 100;
font-size: 2rem;
line-height: 1;
border-radius: 50%;
}

.carousel-full-prev {
left: 10px;
}

.carousel-full-next { right: 10px; }

/* === REGRAS DE RESPONSIVIDADE (MOBILE) === */
@media (max-width: 768px) {
    /* Responsividade para o layout principal da página inicial */
    .main-content {
        flex-direction: column;
    }

    .search-form-container,
    .right-content {
        width: 100%;
    }

    .imoveis-grid {
        grid-template-columns: 1fr;
    }

    /* Outros ajustes que podem ser necessários para a tela mobile */
    .filtro-sidebar {
        width: 100%;
    }

    .imoveis-page {
        flex-direction: column;
    }
}

/* Correção para o carrossel de detalhes do imóvel */
.detalhes-imovel-container .carousel-full-track .carousel-full-slide img {
    height: 100%; 
    width: auto; 
    object-fit: contain; 
}
.radio-group {
    display: flex; /* Cria um contêiner flexível */
    gap: 15px; /* Adiciona espaço entre os botões de rádio */
}

.radio-group label {
    display: flex; /* Torna o rótulo um contêiner flexível */
    align-items: center; /* Alinha o texto e o input no centro verticalmente */
    gap: 5px; /* Adiciona um pequeno espaço entre o input e o texto */
}