/*
Theme Name: Gabriela Caldas Imóveis
Description: Tema personalizado para sistema de corretores de imóveis com filtros avançados, painel administrativo e galeria de fotos. Desenvolvido especialmente para Gabriela Caldas.
Author: Gabriela Caldas
Version: 1.0
Text Domain: gabriela-caldas-imoveis
Domain Path: /languages
*/

/* Reset e configurações básicas */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Estilizando o formulário inteiro */
.wpcf7-form {
    display: flex;
    flex-direction: column;
    gap: 15px; /* Espaço entre os campos */
}

/* Estilizando os campos de texto e email */
.wpcf7-form-control:not(.wpcf7-submit) {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
}

/* Estilizando o botão de Enviar */
.wpcf7-submit {
    background-color: #3f6089; /* Cor do botão */
    color: #fff;
    border: none;
    padding: 12px 20px;
    cursor: pointer;
    font-size: 16px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.wpcf7-submit:hover {
    background-color: #2e4d6a; /* Cor do botão ao passar o mouse */
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

/* Container principal */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.site-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.site-title {
    font-size: 2rem;
    font-weight: bold;
    text-decoration: none;
    color: white;
 & a {
    text-decoration: none;
    letter-spacing: 2px;
 }
}


.site-description {
    font-size: 1rem;
    opacity: 0.9;
    margin-top: 0.5rem;
}

/* Navegação */
.main-navigation {
    display: none;
    background: rgba(255,255,255,0.1);
    padding: 1rem 0;
    margin-top: 1rem;
}
/* Mostra o menu quando a classe "active" é adicionada */
.main-navigation.active {
    display: block;
}
.nav-menu {
    list-style: none;
    display: flex;
    gap: 2rem;
}
/* Botão hambúrguer */
.menu-toggle {
    font-size: 24px;
    background: none;
    border: none;
    cursor: pointer;
}
.nav-menu a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.nav-menu a:hover {
    background-color: rgba(255,255,255,0.2);
}

/* Formulário de busca principal */
.search-form-main {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    margin: 2rem 0;
}

.search-form-main h3 {
    color: #333;
    margin-bottom: 1.5rem;
    text-align: center;
}

.search-filters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-group label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #555;
}

.filter-group select,
.filter-group input {
    padding: 0.75rem;
    border: 2px solid #e1e5e9;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.filter-group select:focus,
.filter-group input:focus {
    outline: none;
    border-color: #667eea;
}

.search-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease;
    width: 100%;
}

.search-button:hover {
    transform: translateY(-2px);
}

/* Grid de imóveis */
.imoveis-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

/* Card de imóvel */
.imovel-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.imovel-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.imovel-card.vendido::before {
    content: 'VENDIDO';
    position: absolute;
    top: 15px;
    right: -30px;
    background: #e74c3c;
    color: white;
    padding: 5px 40px;
    font-weight: bold;
    font-size: 0.9rem;
    transform: rotate(45deg);
    z-index: 10;
}

.imovel-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.imovel-card:hover .imovel-image {
    transform: scale(1.05);
}

.imovel-content {
    padding: 1.5rem;
}

.imovel-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.imovel-price {
    font-size: 1.5rem;
    font-weight: bold;
    color: #27ae60;
    margin-bottom: 1rem;
}

.imovel-details {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #666;
}

.imovel-location {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.ver-mais-btn {
    background: #667eea;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s ease;
    font-weight: 600;
}

.ver-mais-btn:hover {
    background: #5a6fd8;
    color: white;
    text-decoration: none;
}

/* Footer */
.site-footer {
    background: #2c3e50;
    color: white;
    padding: 2rem 0;
    margin-top: 3rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: #ecf0f1;
}

.footer-section p,
.footer-section a {
    color: #bdc3c7;
    text-decoration: none;
    line-height: 1.6;
}

.footer-section a:hover {
    color: white;
}

/* Animações */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in-left {
    animation: slideInLeft 0.8s ease-out;
}

/* Responsividade */
@media (max-width: 768px) {
    .nav-menu {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .search-filters {
        grid-template-columns: 1fr;
    }
    
    .imoveis-grid {
        grid-template-columns: 1fr;
    }
    
    .site-title {
        font-size: 1.5rem;
    }
    
    .container {
        padding: 0 15px;
    }
}

/* Utilitários */
.text-center {
    text-align: center;
}

.mb-2 {
    margin-bottom: 1rem;
}

.mb-3 {
    margin-bottom: 1.5rem;
}

.mt-2 {
    margin-top: 1rem;
}

.mt-3 {
    margin-top: 1.5rem;
}

/* No desktop (largura acima de 768px), sempre mostrar menu */
@media (min-width: 768px) {
    .main-navigation {
        display: block;
    }
    .menu-toggle {
        display: none;
    }
}