/* assets/css/style.css */

/* --------------------------------------------------------------
   Reset Básico, Tipografia e Configurações Globais
   -------------------------------------------------------------- */
:root {
    --cor-primaria: #D9232D; /* Vermelho do 62imoveis */
    --cor-secundaria: #2C3E50; /* Azul escuro (usado no rodapé) */
    --cor-texto: #333333;
    --cor-texto-claro: #777777;
    --cor-fundo: #f4f6f8;
    --cor-borda: #e0e0e0;
    --cor-card-fundo: #ffffff;
    --sombra-card: 0 2px 8px rgba(0,0,0,0.08);
    --sombra-card-hover: 0 5px 15px rgba(0,0,0,0.12);
    --fonte-principal: 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    --fonte-titulos: 'Montserrat', 'Roboto', sans-serif; /* Exemplo para títulos */
}

/* Importar fontes do Google Fonts (Exemplo) */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&family=Montserrat:wght@500;600;700&display=swap');

body {
    margin: 0;
    padding: 0;
    font-family: var(--fonte-principal);
    font-size: 15px;
    line-height: 1.65;
    color: var(--cor-texto);
    background-color: var(--cor-fundo);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

* {
    box-sizing: border-box;
}

a {
    color: var(--cor-primaria);
    text-decoration: none;
    transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
    color: #b01c25; /* darken(#D9232D, 10%) */
    opacity: 0.85;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    border-style: none;
}

.container {
    width: 100%;
    max-width: 1170px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px;
    padding-right: 15px;
}

/* --------------------------------------------------------------
   Cabeçalho (.site-header)
   -------------------------------------------------------------- */
.site-header {
    background-color: var(--cor-card-fundo);
    padding: 10px 0;
    border-bottom: 1px solid var(--cor-borda);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--sombra-card);
}

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

.site-header .logo img {
    max-height: 45px;
    width: auto;
}

.main-navigation .menu-toggle {
    display: none;
    background: transparent;
    border: 1px solid #ccc;
    color: var(--cor-texto);
    padding: 8px 10px;
    cursor: pointer;
    font-size: 1.2em;
    border-radius: 3px;
}
.main-navigation .menu-toggle .sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.main-navigation ul.nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
}

.main-navigation ul.nav-menu li {
    margin-left: 20px;
}

.main-navigation ul.nav-menu li a {
    color: #555;
    font-weight: 500;
    text-transform: none;
    font-size: 14px;
    padding: 15px 5px;
    border-bottom: 3px solid transparent;
    display: block;
}

.main-navigation ul.nav-menu li.active a,
.main-navigation ul.nav-menu li a:hover {
    color: var(--cor-primaria);
    border-bottom-color: var(--cor-primaria);
    text-decoration: none;
    opacity: 1;
}

.header-contact .whatsapp-button-header {
    background-color: #25D366;
    color: #fff;
    padding: 10px 18px;
    border-radius: 5px;
    font-weight: 500;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.header-contact .whatsapp-button-header i {
    margin-right: 8px;
    font-size: 1.1em;
}
.header-contact .whatsapp-button-header:hover {
    background-color: #1DAE52;
    text-decoration: none;
    opacity: 1;
}

/* --------------------------------------------------------------
   Conteúdo Principal (.site-main)
   -------------------------------------------------------------- */
.site-main {
    padding-top: 30px;
    padding-bottom: 40px;
    min-height: calc(100vh - 320px); /* Ajustado para um rodapé um pouco maior se necessário */
}

.page-container {
    margin-top: 20px;
    margin-bottom: 20px;
}

.page-title {
    font-family: var(--fonte-titulos);
    font-size: 26px;
    color: #3a3a3a;
    margin-bottom: 20px;
    text-align: left;
    font-weight: 600;
    border-bottom: 1px solid var(--cor-borda);
    padding-bottom: 15px;
}
.page-title small {
    font-size: 0.6em;
    color: var(--cor-texto-claro);
    font-weight: 400;
}

/* --------------------------------------------------------------
   Sidebar de Filtros (public/index.php)
   -------------------------------------------------------------- */
.main-content-area {
    display: flex;
    gap: 25px;
}

.content-column {
    flex: 1;
    min-width: 0;
}

.sidebar-filters {
    flex: 0 0 280px;
    background-color: var(--cor-card-fundo);
    padding: 20px 15px;
    border-radius: 4px;
    border: 1px solid var(--cor-borda);
    align-self: flex-start;
}

.filter-group {
    margin-bottom: 20px;
}

.filter-group .filter-title {
    font-family: var(--fonte-titulos);
    font-weight: 600;
    margin-bottom: 12px;
    font-size: 16px;
    color: var(--cor-texto);
}

.filter-group select,
.filter-group input[type="text"],
.filter-group input[type="number"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    margin-bottom: 8px;
    background-color: #fff;
}
.filter-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23333' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 12px;
    padding-right: 30px;
}

.filter-group .btn-filter {
    width: 100%;
    padding: 12px;
    background-color: var(--cor-primaria);
    color: #fff;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    font-size: 15px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}
.filter-group .btn-filter:hover {
    background-color: #b01c25; /* darken */
}
.filter-group .btn-clear-filter {
    width: 100%;
    padding: 10px;
    background-color: #f0f0f0;
    color: var(--cor-texto-claro);
    border: 1px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 10px;
    text-align: center;
    display: inline-block;
    font-size: 14px;
}
.filter-group .btn-clear-filter:hover {
    background-color: #e0e0e0;
    color: var(--cor-texto);
    text-decoration: none;
}

/* --------------------------------------------------------------
   Grid e Cards de Imóveis (public/index.php)
   -------------------------------------------------------------- */
.imoveis-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 20px;
}

.imovel-card {
    background-color: var(--cor-card-fundo);
    border-radius: 4px;
    border: 1px solid var(--cor-borda);
    box-shadow: none;
    overflow: hidden;
    transition: border-color 0.2s ease-in-out, transform 0.2s ease-in-out;
    display: flex;
    flex-direction: column;
    position: relative;
}

.imovel-card:hover {
    border-color: #bbb;
}
.imovel-card .card-link-wrapper {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
}
.imovel-card .card-link-wrapper:hover {
    text-decoration: none;
}

.imovel-card .card-image {
    position: relative;
    width: 100%;
    padding-top: 60%;
    overflow: hidden;
    background-color: #eee;
}
.imovel-card .card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.imovel-card:hover .card-image img {
    transform: scale(1.03);
}

.imovel-card .imovel-tags {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    display: flex;
    gap: 6px;
}
.imovel-card .imovel-tags .tag {
    background-color: rgba(0,0,0, 0.6);
    color: #fff;
    padding: 3px 7px;
    font-size: 11px;
    border-radius: 3px;
    text-transform: uppercase;
    font-weight: 500;
    line-height: 1.2;
}
.imovel-card .imovel-tags .tag-finalidade {
    background-color: var(--cor-primaria);
}
.imovel-card .imovel-tags .tag-destaque {
    background-color: #FFC107;
    color: #333;
}

.imovel-card .card-content {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.imovel-card .card-title {
    font-family: var(--fonte-titulos);
    font-size: 17px;
    font-weight: 600;
    color: #222;
    margin: 0 0 5px 0;
    line-height: 1.35;
    height: 2.7em;
    overflow: hidden;
}
.imovel-card .card-title a { color: inherit; }
.imovel-card .card-title a:hover { color: var(--cor-primaria); }

.imovel-card .card-location {
    font-size: 13px;
    color: var(--cor-texto-claro);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.imovel-card .card-location i { margin-right: 6px; font-size: 0.9em; }

.imovel-card .card-price {
    font-family: var(--fonte-titulos);
    font-size: 20px;
    font-weight: 700;
    color: var(--cor-primaria);
    margin-bottom: 12px;
}
.imovel-card .card-price .price-label {
    font-size: 11px;
    font-weight: 400;
    color: var(--cor-texto-claro);
    display: block;
    line-height: 1.3;
    margin-top: 2px;
}

.imovel-card .card-features {
    list-style: none;
    padding: 0;
    margin: 0 0 15px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 12px 15px;
    font-size: 13px;
    color: #555;
    border-top: 1px solid #f0f0f0;
    padding-top: 12px;
}
.imovel-card .card-features li { display: flex; align-items: center; }
.imovel-card .card-features li i { margin-right: 6px; color: #888; font-size: 1.1em; }

.imovel-card .card-actions { margin-top: auto; }
.imovel-card .btn-details {
    display: block;
    width: calc(100% + 30px);
    margin: 0 -15px -15px -15px;
    text-align: center;
    padding: 12px 15px;
    background-color: #f8f8f8;
    color: #444;
    border-top: 1px solid var(--cor-borda);
    font-weight: 500;
    font-size: 14px;
    transition: background-color 0.2s ease, color 0.2s ease;
}
.imovel-card .btn-details:hover {
    background-color: var(--cor-primaria);
    color: #fff;
    text-decoration: none;
    opacity: 1;
}

/* --------------------------------------------------------------
   Paginação
   -------------------------------------------------------------- */
.pagination-container { margin-top: 40px; margin-bottom: 20px; }
.pagination { display: flex; justify-content: center; list-style: none; padding: 0; }
.pagination .page-item { margin: 0 4px; }
.pagination .page-link {
    color: var(--cor-texto);
    padding: 10px 15px;
    border: 1px solid #ccc;
    border-radius: 3px;
    transition: all 0.2s ease;
    font-size: 14px;
    background-color: #fff;
}
.pagination .page-link:hover {
    background-color: #f0f0f0;
    border-color: #bbb;
    text-decoration: none;
    color: var(--cor-primaria);
}
.pagination .page-item.active .page-link {
    background-color: var(--cor-primaria);
    color: #fff;
    border-color: var(--cor-primaria);
    font-weight: 500;
}
.pagination .page-item.disabled .page-link {
    color: #aaa;
    background-color: #f9f9f9;
    border-color: #eee;
    cursor: not-allowed;
}

/* --------------------------------------------------------------
   Detalhes do Imóvel (public/imovel.php)
   -------------------------------------------------------------- */
.imovel-detail-container {
    background-color: var(--cor-card-fundo);
    padding: 20px;
    border-radius: 4px;
    border: 1px solid var(--cor-borda);
}
.imovel-main-info { display: flex; flex-wrap: wrap; gap: 25px; margin-bottom: 25px; }
.imovel-gallery-container { flex: 1 1 60%; min-width: 300px; }
.imovel-summary-sidebar {
    flex: 1 1 35%;
    min-width: 280px;
    background-color: #f9f9f9;
    padding: 20px;
    border: 1px solid #e7e7e7;
    border-radius: 4px;
}

.imovel-title-section h1 {
    font-family: var(--fonte-titulos);
    font-size: 28px;
    color: #111;
    margin: 0 0 8px 0;
    font-weight: 700;
    line-height: 1.2;
}
.imovel-location-header { font-size: 15px; color: var(--cor-texto-claro); margin-bottom: 20px; }
.imovel-location-header i { margin-right: 6px; }

.imovel-price-header {
    font-family: var(--fonte-titulos);
    font-size: 30px;
    font-weight: 700;
    color: var(--cor-primaria);
    margin-bottom: 20px;
    line-height: 1;
}
.imovel-price-header small {
    font-size: 13px;
    display: block;
    color: var(--cor-texto-claro);
    font-weight: 400;
    margin-top: 5px;
}

.imovel-quick-features { list-style: none; padding: 0; margin: 0 0 25px 0; display: flex; flex-wrap: wrap; gap: 10px; }
.imovel-quick-features li {
    font-size: 14px;
    color: #444;
    background-color: #f0f0f0;
    padding: 8px 12px;
    border-radius: 20px;
}
.imovel-quick-features li i { margin-right: 8px; color: var(--cor-primaria); }

/* --- AJUSTES/ADIÇÕES PARA SLIDESHOW --- */
.slideshow-container {
    position: relative;
    margin: auto;
    border-radius: 4px;
    overflow: hidden; 
    background-color: #f0f0f0; 
}
.slideshow-container .main-image-slide { display: none; text-align: center; }
.slideshow-container .main-image-slide.active { display: block; }
.slideshow-container .main-image-slide img {
    width: 100%; height: auto; max-height: 500px; object-fit: contain; 
    cursor: pointer; display: block; margin-left: auto; margin-right: auto;
}
.slideshow-container .prev, .slideshow-container .next {
    cursor: pointer; position: absolute; top: 50%; width: auto; padding: 14px 16px; 
    margin-top: -25px; color: white; font-weight: bold; font-size: 22px; 
    transition: 0.4s ease; border-radius: 0 3px 3px 0; user-select: none;
    background-color: rgba(0,0,0,0.35); z-index: 10; 
}
.slideshow-container .next { right: 0; border-radius: 3px 0 0 3px; }
.slideshow-container .prev:hover, .slideshow-container .next:hover { background-color: rgba(0,0,0,0.65); }
.thumbnail-row {
    display: flex; flex-wrap: nowrap; gap: 6px; margin-top: 12px; 
    padding-bottom: 8px; overflow-x: auto; -webkit-overflow-scrolling: touch; 
    scrollbar-width: thin; scrollbar-color: #bbb #e0e0e0; 
}
.thumbnail-row::-webkit-scrollbar { height: 6px; } 
.thumbnail-row::-webkit-scrollbar-track { background: #e0e0e0; border-radius: 3px; }
.thumbnail-row::-webkit-scrollbar-thumb { background-color: #bbb; border-radius: 3px; }
.thumbnail-row .thumb-img {
    width: 90px; height: 60px; object-fit: cover; opacity: 0.7; cursor: pointer;
    border: 2px solid transparent; border-radius: 3px;
    transition: opacity 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
    flex-shrink: 0; 
}
.thumbnail-row .thumb-img.active { opacity: 1; border-color: var(--cor-primaria); transform: scale(1.05); }
.thumbnail-row .thumb-img:hover:not(.active) { opacity: 0.9; border-color: #999; }
.image-modal {
    display: none; position: fixed; z-index: 1055; padding-top: 30px; 
    left: 0; top: 0; width: 100%; height: 100%; overflow: auto; 
    background-color: rgba(0,0,0,0.92); 
}
.image-modal-content { margin: auto; display: block; max-width: 90%; max-height: 90vh; }
.image-modal-close {
    position: absolute; top: 10px; right: 25px; color: #ccc; 
    font-size: 35px; font-weight: bold; transition: 0.3s; cursor: pointer; z-index: 1056; 
}
.image-modal-close:hover, .image-modal-close:focus { color: #fff; text-decoration: none; }


/* --- INÍCIO: CÓDIGO PARA VÍDEO DO YOUTUBE --- */
.video-container-wrapper {
    width: 100%;
    max-width: 850px; /* Ajuste a largura máxima conforme necessário */
    margin: 40px auto; /* Centraliza o bloco e adiciona espaçamento vertical */
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* Proporção de tela 16:9 para vídeos */
    height: 0;
    overflow: hidden;
    border-radius: 4px; /* Bordas arredondadas para combinar com o layout */
    background-color: #000; /* Fundo preto para o caso de o vídeo demorar a carregar */
    box-shadow: var(--sombra-card); /* Sombra consistente com outros elementos */
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0; /* Remove a borda padrão do iframe */
}
/* --- FIM: CÓDIGO PARA VÍDEO DO YOUTUBE --- */


.imovel-description-section,
.imovel-features-section,
.imovel-location-map-section {
    margin-bottom: 25px;
    padding-top: 25px;
    border-top: 1px solid var(--cor-borda);
}
.section-title {
    font-family: var(--fonte-titulos);
    font-size: 20px;
    color: #333;
    margin-bottom: 18px;
    font-weight: 600;
}

/* **** ALTERAÇÃO PRINCIPAL AQUI **** */
.imovel-description-section {
    text-align: justify;
}

.imovel-description-section p, .imovel-description-section div {
    margin-bottom: 1em;
    line-height: 1.7;
    color: #444;
}
.imovel-features-list { list-style: none; padding: 0; columns: 2; -webkit-columns: 2; -moz-columns: 2; gap: 20px; }
.imovel-features-list li { padding: 6px 0; display: flex; align-items: center; font-size: 14px; color: #444; margin-bottom: 4px; }
.imovel-features-list li i { margin-right: 10px; color: var(--cor-primaria); font-size: 0.9em; }

/* Formulário de Contato na Página do Imóvel */
.imovel-contact-form-section .section-title { text-align: center; margin-bottom: 20px; font-size: 18px; }
.imovel-contact-form-section .form-control,
.imovel-contact-form-section textarea {
    margin-bottom: 12px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 3px;
    width: 100%;
    font-size: 14px;
}
.imovel-contact-form-section .btn-submit-contact {
    background-color: var(--cor-primaria);
    color: #fff;
    padding: 12px 20px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-weight: 500;
    width: 100%;
    font-size: 15px;
}
.imovel-contact-form-section .btn-submit-contact:hover { background-color: #b01c25; /* darken */ }
.imovel-contact-form-section .whatsapp-contact-button {
    background-color: #25D366;
    color: #fff;
    padding: 12px 20px;
    border-radius: 3px;
    text-align: center;
    display: block;
    margin-top: 12px;
    font-weight: 500;
    font-size: 15px;
}
.imovel-contact-form-section .whatsapp-contact-button i { margin-right: 8px; }
.imovel-contact-form-section .whatsapp-contact-button:hover { background-color: #1DAE52; text-decoration: none; opacity: 1; }


/* --------------------------------------------------------------
   Formulário de Contato (public/contato.php) - Pode ser removido se a página não existe mais
   -------------------------------------------------------------- */
.contact-page-container {
    max-width: 750px;
    margin: 30px auto;
    background-color: var(--cor-card-fundo);
    padding: 25px 30px;
    border-radius: 4px;
    border: 1px solid var(--cor-borda);
}
.contact-form .form-group { margin-bottom: 18px; }
.contact-form label { display: block; margin-bottom: 6px; font-weight: 500; font-size: 14px; }
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 3px;
    font-size: 14px;
}
.contact-form textarea { min-height: 120px; resize: vertical; }
.contact-form .btn-submit {
    background-color: var(--cor-primaria);
    color: #fff;
    padding: 12px 25px;
    border: none;
    border-radius: 3px;
    font-size: 16px;
    cursor: pointer;
    font-weight: 500;
}
.contact-form .btn-submit:hover { background-color: #b01c25; /* darken */ }
.contact-info-block { margin-top: 35px; padding-top: 25px; border-top: 1px solid #eee; }
.contact-info-block h3 { font-family: var(--fonte-titulos); margin-bottom: 15px; font-size: 18px; }
.contact-info-block p { margin-bottom: 10px; font-size: 15px; color: #444; }
.contact-info-block p i { margin-right: 8px; color: var(--cor-primaria); width: 20px; text-align: center; }

/* --------------------------------------------------------------
   Utilitários de Alerta e Erro
   -------------------------------------------------------------- */
.alert-message { padding: 15px 20px; margin-bottom: 20px; border-radius: 4px; font-size: 14px; border-left-width: 4px; border-left-style: solid; }
.alert-message.error, .form-error-msg { background-color: #f8d7da; color: #721c24; border-left-color: #d9534f; }
.alert-message.success { background-color: #d4edda; color: #155724; border-left-color: #5cb85c; }
.alert-message.info { background-color: #cce5ff; color: #004085; border-left-color: #5bc0de; }
.text-danger { color: var(--cor-primaria) !important; }
.input-error { border-color: var(--cor-primaria) !important; }


/* --------------------------------------------------------------
   Rodapé (.site-footer) - ESTILOS ATUALIZADOS E SIMPLIFICADOS
   -------------------------------------------------------------- */
.site-footer {
    background-color: #133769; /* Nova cor de fundo solicitada */
    color: #FFFFFF; /* Cor padrão do texto no rodapé para branco */
    padding: 40px 0 0; /* Padding no topo, sem padding inferior aqui */
    font-size: 14px;
    line-height: 1.7;
}

.site-footer .container {
    /* Mantém as configurações do container */
}

.footer-widgets-area {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between; /* Para espaçar os widgets */
    gap: 30px; /* Espaço entre os widgets */
    padding-bottom: 30px; /* Espaço antes da linha de copyright */
}

.footer-widget {
    flex: 1;
    min-width: 250px; /* Largura mínima para cada widget antes de quebrar */
    margin-bottom: 20px; /* Espaçamento para quando quebrar em mobile */
}

.footer-links-uteis-centralizado { 
    /* text-align: center; */ /* Se quiser esta coluna especificamente centralizada */
}

.footer-widget .widget-title {
    font-family: var(--fonte-titulos);
    font-size: 16px; 
    font-weight: 600;
    color: #FFFFFF; 
    margin-bottom: 18px;
    padding-bottom: 8px;
    text-transform: uppercase; 
}

.footer-widget p {
    margin-bottom: 10px;
    color: #e0e0e0; 
}
.footer-widget p strong {
    color: #FFFFFF; 
}

.footer-widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-widget ul li {
    margin-bottom: 8px;
}

.footer-widget ul li a {
    color: #FFFFFF; 
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-widget ul li a:hover {
    color: #ffeb3b; /* Amarelo */ 
    text-decoration: underline;
    opacity: 1; 
}

/* ***** INÍCIO DA ALTERAÇÃO ***** */
.footer-widget p a {
    color: #FFFFFF; /* Cor branca para os links de contato */
}
.footer-widget p a:hover {
    color: #ffeb3b; /* Cor amarela ao passar o mouse */
    opacity: 1;
}
/* ***** FIM DA ALTERAÇÃO ***** */

.footer-widget .social-links-footer {
    margin-top: 20px; 
}

.footer-widget .social-links-footer a {
    display: inline-flex; 
    align-items: center;   
    justify-content: center; 
    width: 38px; 
    height: 38px; 
    margin-right: 8px; 
    margin-bottom: 8px; 
    color: #133769; 
    background-color: #FFFFFF; 
    border-radius: 50%; 
    font-size: 21px; /* TAMANHO DO ÍCONE AUMENTADO */
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1); 
}

.footer-widget .social-links-footer a:hover {
    background-color: #e0e0e0; 
    color: var(--cor-primaria);    
    transform: translateY(-2px); 
    opacity: 1; 
}

.footer-widget .social-links-footer a:last-child {
    margin-right: 0;
}

/* Ícones de contato (telefone, email, whatsapp) no rodapé */
.footer-widget p > i.fas, 
.footer-widget p > i.fab {
    color: #FFFFFF;
    margin-right: 8px;
}

.footer-bottom {
    text-align: center;
    padding: 20px 0;
    font-size: 13px;
    color: #bdc3c7; 
    background-color: #0c2c54; 
}
.footer-bottom p {
    margin: 5px 0;
}


/* --------------------------------------------------------------
   Responsividade
   -------------------------------------------------------------- */
@media (max-width: 991px) {
    .imoveis-grid { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
    .main-content-area { flex-direction: column; }
    .sidebar-filters { flex: 0 0 auto; width: 100%; margin-bottom: 25px; }
    .imovel-main-info { gap: 20px; }
    .footer-widget { flex-basis: calc(50% - 15px); min-width: auto; } /* Ajustado para o gap de 30px */
    .imovel-features-list { columns: 1; -webkit-columns: 1; -moz-columns: 1; }
}

@media (max-width: 767px) {
    body { font-size: 14px; }
    .page-title { font-size: 22px; }
    .header-container { flex-wrap: wrap; }
    .header-contact { order: 2; margin-left: auto; }
    .main-navigation { order: 3; width: 100%; margin-top: 10px; }
    .main-navigation .menu-toggle { display: block; margin-bottom: 8px; width: 100%; text-align: left; }
    .main-navigation ul.nav-menu { display: none; flex-direction: column; width: 100%; }
    .main-navigation ul.nav-menu.toggled { display: flex; }
    .main-navigation ul.nav-menu li { margin-left: 0; width: 100%; border-bottom: 1px solid #f0f0f0; }
    .main-navigation ul.nav-menu li:last-child { border-bottom: none; }
    .main-navigation ul.nav-menu li a { display: block; padding: 10px 0; border-bottom: none !important; }
    .main-navigation ul.nav-menu li.active a,
    .main-navigation ul.nav-menu li a:hover { background-color: #f8f9fa; color: var(--cor-primaria); }

    .imoveis-grid { grid-template-columns: 1fr; gap: 15px; }
    .imovel-card .card-title { font-size: 16px; }
    .imovel-card .card-price { font-size: 18px; }
    .imovel-card .card-features { font-size: 12px; }

    .imovel-title-section h1 { font-size: 24px; }
    .imovel-price-header { font-size: 26px; }

    .slideshow-container .main-image-slide img { max-height: 350px; }
    .thumbnail-row .thumb-img { width: 70px; height: 50px; }

    .footer-widget { 
        flex-basis: 100%; 
        text-align: center; 
        max-width: 350px; 
        margin-left: auto; 
        margin-right: auto;
    }
    .footer-widget ul {
        display: inline-block; 
        text-align: left; 
    }
     .footer-widget .social-links-footer {
        text-align: center; 
    }
}