/*
Theme Name: M.FLORES
Theme URI: http://mflores.com.br
Author: Victor Guimarães
Author URI: http://victor.com.br
Description: Tema personalizado para M.FLORES Corretora de Imóveis
Version: 1.0
Requires at least: 5.0
Tested up to: 6.3
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mflores
*/

/* Base */
:root {
    --dark-color: #353F43;
    --white-color: #FFFFFF;
    --glass-white: rgba(255, 255, 255, 0.1);
    --glass-black: rgba(53, 63, 67, 0.8);
    --light-gray: #F5F5F5;
    --medium-gray: #E0E0E0;
    --dark-gray: #AAAAAA;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--dark-color);
    line-height: 1.6;
}

.nav-link {    
    text-shadow: 0px -12px var(--dark-color);
}

.btn-primary {
    background: var(--dark-color);
    transition: all 0.3s ease;
    padding: 0.5em;
    border-radius: 0.5em;
    padding-left: 2em;
    padding-right: 2em;
    color: var(--white-color);
}

.btn-primary:hover {
    background: #455358;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(53, 63, 67, 0.3);
}

.font-sans {
    font-family: 'Inter', sans-serif;
    font-feature-settings: "liga" 1;
}

/* Header e Menu */
.header-scrolled {
    background-color: rgba(53, 63, 67, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Efeitos de vidro */
.glass-light {
    background: var(--glass-white);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-dark {
    background: var(--glass-black);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Animações e Transições */
.fade-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Hover Effects */
.hover-underline {
    position: relative;
    display: inline-block;
}

.hover-underline::after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 1px;
    bottom: -2px;
    left: 0;
    background: linear-gradient(135deg, #353F43 0%, #556269 100%);
    transform-origin: bottom right;
    transition: transform 0.4s cubic-bezier(0.86, 0, 0.07, 1);
}

.hover-underline:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

/* Cards */
.property-card {
    background: var(--white-color);
    border-radius: 8px;
    padding: 0;
    transition: all 0.3s ease;
    border: 1px solid #eee;
    overflow: hidden;
}

.property-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(53, 63, 67, 0.1);
    border-color: var(--dark-color);
}

.property-card .image {
    height: 240px;
    overflow: hidden;
}

.property-card .image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.property-card:hover .image img {
    transform: scale(1.1);
}

.property-card .content {
    padding: 1.5rem;
}

.property-card .icon {
    color: var(--dark-color);
    font-size: 1.25rem;
    margin-right: 0.5rem;
}

.property-card h3 {
    color: var(--dark-color);
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.property-card .price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-top: 1rem;
}

.property-card .features {
    display: flex;
    margin-top: 1rem;
    border-top: 1px solid var(--medium-gray);
    padding-top: 1rem;
}

.property-card .feature {
    display: flex;
    align-items: center;
    margin-right: 1rem;
    font-size: 0.875rem;
}

/* Blog Posts */
.blog-card {
    background: var(--white-color);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(53, 63, 67, 0.1);
}

.blog-card .image {
    height: 200px;
    overflow: hidden;
}

.blog-card .image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-card:hover .image img {
    transform: scale(1.1);
}

/* Footer */
.footer {
    background: var(--dark-color);
    color: var(--white-color);
}

.footer a {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s ease;
}

.footer a:hover {
    color: var(--white-color);
}

/* Forms */
.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    border-color: var(--dark-color);
    outline: none;
    box-shadow: 0 0 0 2px rgba(53, 63, 67, 0.2);
}

.contact-form button {
    background: var(--dark-color);
    color: var(--white-color);
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.contact-form button:hover {
    background: #455358;
    transform: translateY(-2px);
}

/* Propriedades Single */
.property-gallery {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.property-features {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.property-feature {
    background: var(--light-gray);
    padding: 1rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
}

.property-feature i {
    font-size: 1.5rem;
    color: var(--dark-color);
    margin-right: 0.75rem;
}

.property-meta {
    background: var(--light-gray);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.property-meta .price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.property-description {
    margin-bottom: 2rem;
}

.property-location {
    margin-bottom: 2rem;
}

.property-agent {
    background: var(--light-gray);
    padding: 1.5rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
}

.property-agent img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 50%;
    margin-right: 1rem;
}

/* Filtro de Busca */
.property-filter {
    background: var(--light-gray);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.filter-row {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

/* Whatsapp Flutuante */
.whatsapp-float {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    background: #25D366;
    color: white;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    z-index: 999;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

/* Responsividade */
@media (max-width: 768px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .property-card {
        margin-bottom: 1.5rem;
    }

    .property-features {
        grid-template-columns: repeat(2, 1fr);
    }

    .filter-row {
        grid-template-columns: 1fr;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--dark-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #455358;
}

/* Utility Classes */
.text-dark {
    color: var(--dark-color);
}

.text-white {
    color: var(--white-color);
}

.bg-dark {
    background-color: var(--dark-color);
}

.bg-white {
    background-color: var(--white-color);
}

.bg-light-gray {
    background-color: var(--light-gray);
}

.border-dark {
    border-color: var(--dark-color);
}

.border-white {
    border-color: var(--white-color);
}

.border-light-gray {
    border-color: var(--light-gray);
}

/* Estilos adicionais para o tema M.FLORES */

/* Esconder mensagem de erro do WordPress */
.notice, .error, .updated, .error-message {
    display: none !important;
}

/* Correção para cards de imóveis */
.property-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid #eee;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.property-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(53, 63, 67, 0.1);
    border-color: #353F43;
}

.property-card .image {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.property-card .image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.property-card:hover .image img {
    transform: scale(1.1);
}

.property-card .content {
    flex: 1;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
}

.property-card .price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #353F43;
    margin-top: auto;
    margin-bottom: 1rem;
}

/* Corrigir estilo para filtros */
.filter-row {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

/* Arrumar formatação da tabela de propriedades do imóvel */
.property-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.property-feature {
    display: flex;
    align-items: center;
    background-color: #f5f5f5;
    padding: 1rem;
    border-radius: 0.5rem;
}

.property-feature i {
    margin-right: 0.75rem;
    font-size: 1.25rem;
    color: #353F43;
}

/* Corrigir largura dos selects nos filtros */
.property-filter select,
.property-filter input {
    width: 100%;
    padding: 0.75rem;
    border-radius: 0.5rem;
    border: 1px solid #e2e8f0;
    background-color: white;
}

/* Botões com estilo consistente */
.btn-primary, 
button[type="submit"], 
.property-filter button[type="submit"] {
    background-color: #353F43;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary:hover, 
button[type="submit"]:hover, 
.property-filter button[type="submit"]:hover {
    background-color: rgba(53, 63, 67, 0.9);
}

/* Garantir que o grid tenha gap adequado */
.grid {
    display: grid;
    gap: 2rem;
}

/* Ajustar estilos de variáveis de cores */
:root {
    --dark-color: #353F43;
    --white-color: #FFFFFF;
    --glass-white: rgba(255, 255, 255, 0.1);
    --glass-black: rgba(53, 63, 67, 0.8);
    --light-gray: #F5F5F5;
    --medium-gray: #E0E0E0;
    --dark-gray: #AAAAAA;
}

/* Estilo para o container dos imóveis */
#properties-container {
    width: 100%;
    transition: all 0.3s ease;
}

/* Ajustes para os cards de imóveis no grid */
.grid .property-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Estilo para os botões de reset */
button[type="reset"] {
    background-color: white;
    color: #353F43;
    border: 1px solid #353F43;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

button[type="reset"]:hover {
    background-color: rgba(53, 63, 67, 0.1);
}

/* Melhorar loader AJAX */
.ajax-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 0;
}

.ajax-loader i {
    font-size: 2rem;
    color: #353F43;
    margin-bottom: 1rem;
}

/* Corrigir layout responsivo */
@media (max-width: 768px) {
    .filter-row {
        grid-template-columns: 1fr;
    }
    
    .property-card .image {
        height: 200px;
    }
    
    .grid {
        gap: 1rem;
    }
    
    .property-features {
        grid-template-columns: 1fr 1fr;
    }
}

/* Ajustes específicos para a página de arquivo de imóveis */
.archive-property {
    padding-top: 2rem;
}

.property-filter {
    background-color: #f5f5f5;
    padding: 1.5rem;
    border-radius: 0.5rem;
    margin-bottom: 2rem;
}

/* Melhoria para o header fixo */
.fixed {
    position: fixed;
    width: 100%;
    z-index: 50;
    top: 0;
}

/* Efeito de vidro para header quando rolado */
.header-scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Melhorias para o WhatsApp flutuante */
.whatsapp-float {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    background-color: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    z-index: 999;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}