/* Reset global para garantir que os botões funcionem */
/* VERSÃO CSS 1005 - MOBILE DESIGN ATIVO */
* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: sans-serif;
}

/* Garantir que o body não bloqueie os cliques */
body {
    width: 100%;
    min-height: 200vh; /* Altura para 2 páginas */
    background-color: #F5E6D3; /* Cor de fallback que combina com a imagem */
    overflow-x: hidden;
    background-image: url('./images/Background.png'); /* Nova imagem de background */
    background-size: 100% auto; /* Largura 100%, altura automática para mostrar mais da imagem */
    background-position: center top; /* Posicionado no topo para começar a mostrar do início */
    background-repeat: no-repeat;
    pointer-events: auto; /* Garantir que o body não bloqueie cliques */
}

/* Seção Hero - Corretora */
.hero-section{
    position: relative;
    width: 100%;
    height: 100vh; /* Primeira página */
    display: flex;
    flex-direction: column;
    background: none; /* Removido para mostrar a imagem do body */
    background-size: cover;
    z-index: 1; /* Garantir que a seção tenha z-index baixo */
}

/* Garantir que nav fique no topo no mobile - regras consolidadas na media query principal */

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(25, 22, 41, 0.05) 0%, rgba(0, 0, 0, 0.02) 100%);
    z-index: 1;
}

.hero-section > * {
    position: relative;
    z-index: 2;
}

nav{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    z-index: 99999; /* Aumentado drasticamente */
    position: relative;
}

.logo{
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.menu-text{
    display: flex;
    gap: 50px;
    font-weight: 600;
    color: white;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 99999; /* Aumentado drasticamente */
}

.menu-text a{
    color: white;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    z-index: 99999; /* Aumentado drasticamente */
    pointer-events: auto !important; /* Forçar pointer-events */
    user-select: none; /* Prevenir seleção de texto */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    display: inline-block; /* Garantir que seja clicável */
    padding: 10px 15px; /* Área de clique maior */
}

.menu-text a:hover{
    color: #DCC7A6;
    transform: translateY(-2px);
}

/* Botão WhatsApp Flutuante */
.whatsapp-float{
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 9999;
    animation: pulse-whatsapp 2s infinite;
}

.whatsapp-float:hover{
    background-color: #128C7E;
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
}

.whatsapp-float svg{
    width: 28px;
    height: 28px;
}

@keyframes pulse-whatsapp {
    0% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.8);
    }
    100% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }
}

/* Foto da Pessoa */
.person-photo{
    position: absolute;
    right: 0;
    top: 50px;
    width: 750px; /* Aumentado de 500px para 550px - você pode ajustar este valor */
    height: 950px; /* Aumentado de 800px para 850px - você pode ajustar este valor */
    z-index: 1; /* Reduzido drasticamente para não sobrepor os botões */
    overflow: hidden;
    animation: slideInFromLeft 1.5s ease-out forwards;
    transform: translateX(100%);
    background: none; /* Removendo qualquer background do container */
    pointer-events: none; /* Desabilitar interações com a foto */
}

.person-photo img{
    width: 100%;
    height: 100%;
    object-fit: contain; /* Alterado para contain para NUNCA cortar a foto */
    object-position: center; /* Centralizado */
    opacity: 1;
}

@keyframes slideInFromLeft {
    0% {
        opacity: 0;
        transform: translateX(100%);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Ajuste do conteúdo para dar espaço à foto */
.hero-content{
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0 150px;
    padding-right: 650px; /* Aumentado de 600px para 650px para acomodar a foto maior */
    z-index: 99999; /* Aumentado drasticamente para garantir que esteja acima */
    position: relative;
}

.corretora-info{
    text-align: left;
    color: white;
    max-width: 600px;
    z-index: 99999; /* Aumentado drasticamente para garantir que esteja acima */
    margin-top: -100px; /* Ajuste para centralizar verticalmente */
    position: relative;
}

/* Logo Pulsar */
.pulsar-logo{
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 40px;
    animation: fadeInUp 1s ease-out 0.3s both;
    opacity: 0;
    transform: translateY(30px);
}

.logo-icon{
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.pulsar-logo span{
    font-size: 2rem;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: 'Arial', sans-serif;
}

/* Título Principal */
.main-title{
    font-size: 55px;
    font-weight: 400;
    line-height: 1.1em;
    margin-bottom: 10px;
    color: #FFFFFF;
    font-family: 'Arial', sans-serif;
    width: 600px; /* Reduzido de 809px */
    animation: fadeInUp 1s ease-out 0.6s both;
    opacity: 0;
    transform: translateY(30px);
    background: linear-gradient(135deg, rgba(220, 199, 166, 0.15) 0%, rgba(220, 199, 166, 0.05) 100%);
    padding: 15px 25px; /* Reduzido de 20px 30px */
    border-radius: 15px;
    border: 1px solid rgba(220, 199, 166, 0.3);
    backdrop-filter: blur(10px);
}

/* Descrição */
.description{
    font-size: 1.1rem;
    color: #f0f0f0;
    margin-bottom: 30px;
    font-weight: 300;
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    max-width: 600px;
    animation: fadeInUp 1s ease-out 0.75s both;
    opacity: 0;
    transform: translateY(30px);
    background: linear-gradient(135deg, rgba(220, 199, 166, 0.1) 0%, rgba(220, 199, 166, 0.03) 100%);
    padding: 25px 30px;
    border-radius: 12px;
    border: 1px solid rgba(220, 199, 166, 0.2);
    backdrop-filter: blur(8px);
}

/* Subtítulo */
.subtitle{
    font-size: 1rem;
    color: #ccc;
    margin-bottom: 40px;
    font-weight: 300;
    font-family: 'Arial', sans-serif;
    animation: fadeInUp 1s ease-out 0.9s both;
    opacity: 0;
    transform: translateY(30px);
    background: linear-gradient(135deg, rgba(220, 199, 166, 0.08) 0%, rgba(220, 199, 166, 0.02) 100%);
    padding: 15px 25px;
    border-radius: 10px;
    border: 1px solid rgba(220, 199, 166, 0.15);
    backdrop-filter: blur(5px);
    display: inline-block;
}

/* Caixa de Informações */
.info-box{
    display: flex;
    align-items: center;
    gap: 20px;
    background: transparent;
    backdrop-filter: none;
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    padding: 0 30px;
    margin-bottom: 50px;
    position: relative;
    width: 551px;
    height: 76px;
    box-sizing: border-box;
    animation: fadeInUp 1s ease-out 1.2s both;
    opacity: 0;
    transform: translateY(30px);
}

.info-box::before{
    display: none; /* Remove o efeito rosa */
}

.calendar-icon{
    width: 40px;
    height: 40px;
    background: #FF6B00;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.calendar-icon::before{
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 4px;
    background: white;
    border-radius: 2px;
}

.calendar-icon::after{
    content: '';
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 16px;
    background: white;
    border-radius: 2px;
}

.info-box span{
    font-size: 33px;
    color: white;
    font-weight: 300;
    font-style: italic;
    font-family: 'Arial', sans-serif;
}

.corretora-description{
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 40px;
    color: #f0f0f0;
}

.contact-info{
    margin-bottom: 40px;
}

.contact-info p{
    font-size: 1.1rem;
    margin: 10px 0;
    color: #e0e0e0;
}

.cta-button{
    font-size: 1.2rem;
    padding: 15px 30px;
    background-color: #DCC7A6;
    border: none;
    color: #3F2F1B;
    font-weight: bold;
    border-radius: 15px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background-color 0.3s ease, transform 0.3s ease;
    width: 608px;
    height: 65px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 40px;
    z-index: 99999; /* Aumentado drasticamente */
    text-decoration: none;
    pointer-events: auto !important; /* Forçar pointer-events */
    position: relative;
    opacity: 1; /* Corrigido: estava 0 */
    transform: translateY(0); /* Corrigido: estava translateY(30px) */
    visibility: visible !important;
    animation: fadeInUp 1s ease-out 1.05s both;
    user-select: none; /* Prevenir seleção de texto */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    /* Garantir que seja clicável */
    display: inline-flex !important;
    box-sizing: border-box;
}

.cta-button:hover{
    background-color: #C4B08A;
    transform: translateY(-3px);
    opacity: 1 !important;
    visibility: visible !important;
}

.cta-button:active{
    transform: translateY(-1px);
    background-color: #B08A5C;
}

@keyframes pulse {
    0%, 100% { opacity: 0.3; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); }
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.properties-section{
    position: relative;
    width: 100%;
    height: 100vh; /* Segunda página */
    display: flex;
    align-items: center;
    justify-content: center;
    background: none; /* Removido para mostrar a imagem do body */
    overflow: hidden;
    padding: 40px 0;
}

.properties-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(78, 55, 36, 0.05) 0%, rgba(186, 140, 89, 0.05) 100%);
    pointer-events: none;
    z-index: 1;
}

.properties-section > * {
    position: relative;
    z-index: 2;
}

/* Container principal reorganizado em duas colunas */
.content{
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    width: 95%;
    max-width: 1600px;
    gap: 60px;
    z-index: 10;
    margin: 0 auto;
    position: relative;
    height: 100%;
}

/* Container do texto e filtros - lado esquerdo */
.properties-text{
    color: #EFE1C3;
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 500px;
    margin: 0;
    padding: 0;
    flex: 1;
}

.properties-text h1{
    font-size: 2rem; /* Reduzido de 3rem para evitar quebra de layout */
    font-weight: 700;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px; /* Reduzido de 2px */
    line-height: 1.3;
    color: #38241A !important; /* Marrom escuro para melhor visibilidade */
    text-shadow: 2px 2px 4px rgba(255,255,255,0.8), 0 0 10px rgba(255,255,255,0.5); /* Sombra branca para destacar */
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
    white-space: normal; /* Permitir quebra de linha para títulos longos */
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(245, 240, 230, 0.9) 100%); /* Fundo branco/bege claro */
    padding: 15px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 2px solid rgba(170, 144, 105, 0.3);
    word-wrap: break-word;
    max-width: 500px; /* Reduzido de 600px */
    overflow-wrap: break-word;
    hyphens: auto;
    padding: 15px 25px;
    border-radius: 15px;
    border: 1px solid rgba(220, 199, 166, 0.3);
    backdrop-filter: blur(10px);
    display: inline-block;
    width: fit-content;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.properties-text h1.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.properties-info{
    font-size: 1.1rem;
    color: #F2F2F2 !important; /* Branco levemente acinzentado para legibilidade */
    line-height: 1.6;
    max-width: 500px;
    margin-bottom: 0;
    font-weight: 400; /* Peso normal */
    text-shadow: 0.5px 0.5px 2px rgba(0,0,0,0.15); /* Sombra sutil para contraste */
    background: linear-gradient(135deg, rgba(220, 199, 166, 0.1) 0%, rgba(220, 199, 166, 0.03) 100%);
    padding: 20px 25px;
    border-radius: 12px;
    max-height: 200px; /* Limitar altura máxima */
    overflow-y: auto; /* Adicionar scroll vertical se necessário */
    overflow-x: hidden; /* Prevenir scroll horizontal */
    word-wrap: break-word; /* Quebrar palavras longas */
    scrollbar-width: thin; /* Scrollbar mais fina para Firefox */
    scrollbar-color: rgba(220, 199, 166, 0.5) transparent; /* Cor da scrollbar */
}

/* Estilizar scrollbar para Chrome/Edge/Safari */
.properties-info::-webkit-scrollbar {
    width: 6px;
}

.properties-info::-webkit-scrollbar-track {
    background: rgba(220, 199, 166, 0.1);
    border-radius: 10px;
}

.properties-info::-webkit-scrollbar-thumb {
    background: rgba(220, 199, 166, 0.5);
    border-radius: 10px;
}

.properties-info::-webkit-scrollbar-thumb:hover {
    background: rgba(220, 199, 166, 0.7);
}

/* Container da descrição do imóvel */
.property-description-container {
    margin-bottom: 20px;
    margin-top: 0;
    animation: fadeInUp 0.5s ease-out;
    display: block !important; /* Sempre visível */
    max-width: 500px; /* Limitar largura */
    width: 100%; /* Responsivo */
}

/* Garantir que a lupa fique acima da descrição */
.properties-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Alinhar tudo à esquerda */
}

/* Botão de lupa para toggle dos filtros */
.toggle-filters-btn {
    background: linear-gradient(135deg, rgba(220, 199, 166, 0.4) 0%, rgba(220, 199, 166, 0.3) 100%);
    border: 2px solid rgba(220, 199, 166, 0.5);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #EFE1C3;
    margin-bottom: 15px;
    margin-top: 0;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    align-self: center; /* Centralizar */
    position: relative;
    animation: elegantPulse 2.5s ease-in-out infinite;
    order: -1; /* Garantir que fique antes do título */
}

/* Animação de pulso elegante */
@keyframes elegantPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(220, 199, 166, 0.3), 0 0 0 0 rgba(220, 199, 166, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 6px 20px rgba(220, 199, 166, 0.5), 0 0 0 8px rgba(220, 199, 166, 0);
    }
}

.toggle-filters-btn:hover {
    background: linear-gradient(135deg, rgba(220, 199, 166, 0.6) 0%, rgba(220, 199, 166, 0.4) 100%);
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(220, 199, 166, 0.6), 0 0 0 4px rgba(220, 199, 166, 0.2);
    animation: none; /* Pausar animação no hover */
}

.toggle-filters-btn:active {
    transform: scale(0.95);
    animation: none;
}

.toggle-filters-btn svg {
    width: 24px;
    height: 24px;
    stroke: #EFE1C3;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.properties-text {
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.properties-info.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Filtros reorganizados */
.filters-container {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    flex-wrap: wrap;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.filters-container.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-group label {
    color: #EFE1C3;
    font-size: 0.9rem;
    font-weight: 500;
    text-shadow: 0.5px 0.5px 2px rgba(0,0,0,0.15);
}

.filter-select {
    padding: 12px 16px;
    border: 2px solid rgba(220, 199, 166, 0.3);
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(220, 199, 166, 0.1) 0%, rgba(220, 199, 166, 0.05) 100%);
    color: #EFE1C3;
    font-size: 0.9rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    cursor: pointer;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.filter-select:focus {
    outline: none;
    border-color: rgba(220, 199, 166, 0.6);
    background: linear-gradient(135deg, rgba(220, 199, 166, 0.15) 0%, rgba(220, 199, 166, 0.08) 100%);
    box-shadow: 0 0 0 3px rgba(220, 199, 166, 0.1), 0 8px 25px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

.filter-select:hover {
    border-color: rgba(220, 199, 166, 0.5);
    background: linear-gradient(135deg, rgba(220, 199, 166, 0.12) 0%, rgba(220, 199, 166, 0.06) 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

/* Contador de resultados */
#results-counter {
    color: #EFE1C3;
    font-size: 0.9rem;
    margin-bottom: 15px;
    text-align: center;
    background: linear-gradient(135deg, rgba(220, 199, 166, 0.1) 0%, rgba(220, 199, 166, 0.05) 100%);
    padding: 10px 18px;
    border-radius: 12px;
    border: 2px solid rgba(220, 199, 166, 0.2);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Mensagem de nenhum resultado */
#no-results-message {
    text-align: center;
    padding: 40px;
    color: #EFE1C3;
    font-size: 1.2rem;
    background: linear-gradient(135deg, rgba(220, 199, 166, 0.1) 0%, rgba(220, 199, 166, 0.05) 100%);
    border-radius: 15px;
    border: 2px solid rgba(220, 199, 166, 0.3);
    margin: 20px 0;
    backdrop-filter: blur(10px);
    animation: fadeInUp 0.5s ease-out;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

#no-results-message h3 {
    margin-bottom: 10px;
    color: #DCC7A6;
    font-size: 1.4rem;
    text-shadow: 0.5px 0.5px 2px rgba(0,0,0,0.15);
}

#no-results-message p {
    color: #E3C9A6;
    font-size: 1rem;
    margin: 0;
    text-shadow: 0.5px 0.5px 2px rgba(0,0,0,0.1);
}

/* Botão Ver Mais */
.view-more-btn {
    background: linear-gradient(135deg, #DCC7A6 0%, #C4B08A 100%);
    color: #3F2F1B;
    border: none;
    padding: 12px 25px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
    width: fit-content;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.view-more-btn.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.view-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(220, 199, 166, 0.4);
}

/* Container das imagens - lado direito */
.properties-images {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 40px;
    flex: 1;
    position: relative;
    min-width: 0;
    height: 100%;
    overflow: visible;
    width: auto;
    margin-top: 20px;
    margin-left: 40px;
    z-index: 1; /* Garantir que não sobreponha os cards */
    pointer-events: none; /* Não bloquear cliques nos cards */
}

/* Foto principal - posicionada em cima */
.main-property-image {
    position: relative;
    width: 100%;
    max-width: 600px;
    height: 450px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    transform: rotate(-3deg);
    transition: all 0.3s ease;
    border: 4px solid rgba(255,255,255,0.3);
    z-index: 1;
    margin-bottom: 20px;
    margin-left: 60px;
    pointer-events: auto; /* Permitir cliques na imagem e botões */
}

.main-property-image.animate-in {
    opacity: 1;
    transform: translateX(0) rotate(-3deg);
}

.main-property-image:hover {
    transform: rotate(-2deg) scale(1.02);
    box-shadow: 0 25px 60px rgba(0,0,0,0.6);
    border: 4px solid rgba(255,255,255,0.4);
}

/* Animação elegante para mudança de imagem */
.main-property-image.transitioning {
    animation: imageFadeTransition 1s ease-in-out;
}

@keyframes imageFadeTransition {
    0% {
        opacity: 1;
        transform: rotate(-3deg) scale(1);
    }
    50% {
        opacity: 0.3;
        transform: rotate(-3deg) scale(0.98);
    }
    100% {
        opacity: 1;
        transform: rotate(-3deg) scale(1);
    }
}

.static-property-main {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

/* Container das miniaturas - embaixo da foto principal */
.photos {
    display: flex;
    flex-direction: row;
    gap: 20px;
    justify-content: flex-start;
    align-items: flex-start;
    width: 100%;
    position: relative;
    z-index: 20 !important; /* Aumentado para garantir que esteja acima da imagem principal */
    flex-wrap: nowrap;
    padding: 20px 0;
    align-items: stretch; /* Garante que todos os cards tenham a mesma altura */
    pointer-events: auto; /* Garantir que os cliques funcionem */
}

/* Barra horizontal embaixo das miniaturas */
.photos::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 0;
    width: 250px;
    height: 3px;
    background: linear-gradient(90deg, rgba(220, 199, 166, 0.8) 0%, rgba(220, 199, 166, 0.4) 100%);
    border-radius: 2px;
    box-shadow: 0 2px 6px rgba(220, 199, 166, 0.3);
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.photos[style*="--animate-bar: true"]::after {
    opacity: 1;
    transform: translateY(0);
}

/* Miniaturas com animações mantidas */
.property-wrapper{
    width: 200px;
    height: 300px; /* Altura fixa para todos os cards - reduzida para melhor enquadramento */
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 12px 35px rgba(0,0,0,0.5);
    position: relative;
    flex-shrink: 0;
    border: 4px solid rgba(255,255,255,0.3);
    background: rgba(220, 199, 166, 0.05);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
    z-index: 21 !important; /* Aumentado para garantir que esteja acima de tudo */
    pointer-events: auto !important; /* Garantir que todos os cards sejam clicáveis */
}

.property-wrapper.animate-in {
    opacity: 1 !important;
    transform: translateY(0) !important;
    visibility: visible !important;
}

.property-wrapper.activePhoto.animate-in {
    opacity: 1 !important;
    transform: translateY(0) scale(1.1) !important;
    visibility: visible !important;
}

/* Garantir que cards pesquisados sejam sempre visíveis (sem quebrar o layout) */
.property-wrapper[data-searched="true"] {
    opacity: 1 !important;
    visibility: visible !important;
}

/* Garantir cores legíveis nos cards pesquisados */
.property-wrapper[data-searched="true"] .property-info-card h3 {
    color: #3F2F1B !important;
}

.property-wrapper[data-searched="true"] .property-details span {
    color: #5C4A2B !important;
}

.property-wrapper[data-searched="true"] .price {
    color: #2A1F12 !important;
}

.property-wrapper[data-searched="true"] .installment {
    color: #5C4A2B !important;
    opacity: 1 !important;
}

.property-image {
    position: relative;
    width: 100%;
    height: 140px;
    overflow: hidden;
    flex-shrink: 0;
}

.static-property{
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.static-property:hover{
    transform: scale(1.05);
}

/* Animações dos cards mantidas */
.activePhoto{
    transform: scale(1.1);
    box-shadow: 0 15px 40px rgba(0,0,0,0.5);
    border: 4px solid rgba(255,255,255,0.5);
}

.activePhoto::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 85%;
    height: 5px;
    background-color: #FFFFFF;
    border-radius: 3px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.4);
}

/* Cards de Informação */
.property-info-card {
    padding: 12px;
    background: rgba(220, 199, 166, 0.08);
    backdrop-filter: blur(10px);
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.property-info-card h3 {
    color: #3F2F1B !important; /* Cor mais escura para melhor legibilidade */
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 6px;
    line-height: 1.2;
    min-height: 20px; /* Altura mínima para o título */
}

.property-details {
    display: flex;
    gap: 6px;
    margin-bottom: 8px;
    flex-wrap: wrap;
    min-height: 30px; /* Altura mínima para os detalhes */
}

.property-details span {
    color: #5C4A2B !important; /* Cor mais escura para melhor legibilidade */
    font-size: 0.6rem;
    background: rgba(220, 199, 166, 0.2);
    padding: 2px 5px;
    border-radius: 4px;
    border: 1px solid rgba(220, 199, 166, 0.3);
    font-weight: 500;
}

.property-price {
    margin-bottom: 8px;
    min-height: 35px; /* Altura mínima para o preço */
}

.price {
    display: block;
    color: #2A1F12 !important; /* Cor muito mais escura para destacar o preço */
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 2px;
}

.installment {
    color: #5C4A2B !important; /* Cor mais escura para melhor legibilidade */
    font-size: 0.6rem;
    opacity: 1; /* Remover transparência para melhor visibilidade */
    font-weight: 500;
}

.property-actions {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    margin-top: auto; /* Empurra para baixo */
    min-height: 25px; /* Altura mínima para os botões */
}

.schedule-btn, .whatsapp-btn {
    flex: 1;
    padding: 5px 6px;
    border: none;
    border-radius: 6px;
    font-size: 0.6rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    min-height: 20px; /* Altura mínima para os botões */
}

.schedule-btn {
    background: linear-gradient(135deg, #DCC7A6 0%, #C4B08A 100%);
    color: #3F2F1B;
}

.schedule-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(220, 199, 166, 0.4);
}

.whatsapp-btn {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white;
}

.whatsapp-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.4);
}

/* Overlay da foto principal */
.main-property-overlay {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 15;
}

.gallery-btn, .video-btn {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 8px;
    padding: 6px 10px;
    cursor: pointer;
    font-size: 0.7rem;
    color: #3F2F1B;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    font-weight: 600;
}

.gallery-btn:hover, .video-btn:hover {
    background: #DCC7A6;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.3);
}

/* Status Badges */
.status-badge {
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.6rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: blur(10px);
}

.status-badge.available {
    background: rgba(46, 213, 115, 0.9);
    color: white;
}

.status-badge.new {
    background: rgba(255, 71, 87, 0.9);
    color: white;
}

.status-badge.opportunity {
    background: rgba(255, 165, 2, 0.9);
    color: white;
}

.status-badge.sold {
    background: rgba(108, 117, 125, 0.9);
    color: white;
}

/* Favoritos */
.favorite-btn {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    color: #ff4757;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.favorite-btn:hover {
    background: #ff4757;
    color: white;
    transform: scale(1.1);
}

.property-overlay {
    position: absolute;
    top: 8px;
    right: 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 5;
}

/* Seta de navegação removida - não é mais necessária */
.navigation-arrow {
    display: none;
}

/* Responsividade para o novo layout responsivo */
@media (min-width: 481px) and (max-width: 768px) {
    /* Hero Section Tablet - APENAS ENTRE 481px E 768px */
    .hero-section {
        height: auto;
        min-height: 100vh;
        padding: 30px 0;
    }
    
    nav {
        padding: 20px 25px;
    }
    
    .menu-text {
        gap: 30px;
    }
    
    .hero-content {
        flex-direction: column;
        padding: 40px 30px !important;
        padding-right: 30px !important;
        align-items: center;
        text-align: center;
        gap: 40px;
    }
    
    .person-photo {
        position: relative !important;
        width: 100% !important;
        max-width: 400px !important;
        height: 500px !important;
        transform: none !important;
        margin: 0 auto 30px;
        order: -1; /* Tablet: foto antes do texto */
        z-index: 2 !important;
    }
    
    /* IMPORTANTE: No mobile (480px), a ordem será diferente (order: 3) */
    
    /* Garantir que elementos decorativos fiquem atrás da foto */
    .hero-section .texture-element {
        z-index: 1 !important;
    }
    
    .properties-section .background-elements {
        z-index: 1 !important;
        display: block !important;
    }
    
    .corretora-info {
        max-width: 100% !important;
        margin-top: 0 !important;
        text-align: center;
    }
    
    .main-title {
        font-size: 2.5rem !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 15px 25px !important;
    }
    
    .description {
        font-size: 1rem !important;
        max-width: 100% !important;
        padding: 20px 25px !important;
    }
    
    .info-box {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        padding: 20px 25px !important;
    }
    
    .cta-button {
        width: 100% !important;
        max-width: 500px !important;
        height: auto !important;
        padding: 15px 25px !important;
        font-size: 1.1rem !important;
    }
    
    /* Properties Section Tablet */
    .properties-section {
        height: auto;
        min-height: 100vh;
        padding: 20px 0;
    }
    
    .content {
        flex-direction: column;
        width: 95%;
        gap: 25px;
        padding: 0 20px;
        height: auto;
    }
    
    .properties-text {
        text-align: center;
        align-items: center;
        max-width: 100%;
        gap: 15px;
        width: 100%;
    }
    
    .properties-text h1 {
        font-size: 1.5rem;
        letter-spacing: 0.5px;
        white-space: normal;
        padding: 12px 20px;
        max-width: 100%;
        width: 100%;
        color: #38241A !important; /* Marrom escuro para melhor visibilidade */
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(245, 240, 230, 0.95) 100%) !important;
        text-shadow: 1px 1px 2px rgba(255,255,255,0.8);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
        border: 2px solid rgba(170, 144, 105, 0.3);
    }
    
    .properties-info {
        font-size: 0.95rem;
        padding: 15px 20px;
        max-width: 100%;
        max-height: 180px;
        text-align: center;
        overflow-y: auto;
        overflow-x: hidden;
        width: 100%;
    }
    
    .property-description-container {
        width: 100%;
        max-width: 100%;
    }
    
    .filters-container {
        flex-direction: column;
        gap: 15px;
        align-items: center;
        margin-bottom: 20px;
        width: 100%;
    }
    
    .filter-group {
        width: 100%;
        max-width: 100%;
    }
    
    .filter-select {
        padding: 10px 16px;
        font-size: 0.85rem;
        margin-bottom: 15px;
        width: 100%;
    }
    
    .view-more-btn {
        padding: 10px 16px;
        font-size: 0.85rem;
        margin-bottom: 15px;
        width: 100%;
    }
    
    .properties-images {
        width: 100%;
        margin-left: 0;
        margin-top: 20px;
    }
    
    .main-property-image {
        width: 100%;
        max-width: 100%;
        height: 350px;
        margin-left: 0;
        transform: none;
    }
    
    .photos {
        gap: 20px;
        padding: 20px 0;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .property-wrapper {
        width: calc(50% - 10px);
        max-width: 250px;
        height: 360px;
        transition: all 0.3s ease;
    }
    
    .property-wrapper:hover {
        transform: translateY(-5px);
    }
    
    /* Ajustar elementos decorativos no tablet */
    .texture-element {
        width: 800px !important;
        height: 800px !important;
        bottom: -200px !important;
        right: -100px !important;
        opacity: 0.5 !important;
        display: block !important;
    }
    
    .texture-element img {
        opacity: 0.7 !important;
    }
    
    /* Garantir que os elementos brancos decorativos apareçam no tablet */
    .properties-section .background-elements {
        display: block !important;
        width: 500px !important;
        height: 500px !important;
        top: -400px !important;
        left: -250px !important;
        opacity: 0.7 !important;
        pointer-events: none !important;
    }
    
    .properties-section .background-elements img {
        width: 450px !important;
        opacity: 0.8 !important;
    }
    
    .properties-section .dynamic-bg-1,
    .properties-section .dynamic-bg-2,
    .properties-section .dynamic-bg-3,
    .properties-section .dynamic-bg-4 {
        opacity: 0.7 !important;
    }
    
    .properties-wheel {
        display: none;
    }
    
    /* Ajustar background no tablet */
    body {
        background-size: cover;
        background-position: center top;
    }
}

/* ===== ELEMENTOS MOBILE - OCULTOS NO DESKTOP ===== */
.mobile-header {
    display: none;
}

.hero-content-mobile {
    display: none;
}

.hero-name-section,
.hero-image-section,
.slogan-overlay,
.person-photo-mobile,
.mission-section {
    display: none;
}

/* ===== REDESENHO MOBILE - DESIGN NOBRE E ELEGANTE ===== */
/* VERSÃO 1005 - FORÇAR APLICAÇÃO */

@media screen and (max-width: 480px) {
    /* Mostrar elementos mobile - FORÇAR COM !important */
    .mobile-header {
        display: flex !important;
        visibility: visible !important;
    }
    
    .hero-content-mobile {
        display: flex !important;
        flex-direction: column !important;
        visibility: visible !important;
    }
    
    .hero-name-section,
    .hero-image-section,
    .mission-section {
        display: block !important;
        visibility: visible !important;
    }
    
    .slogan-overlay,
    .person-photo-mobile {
        display: block !important;
        visibility: visible !important;
    }
    
    /* Ocultar elementos desktop no mobile - FORÇAR COM MÁXIMA PRIORIDADE */
    section.hero-section > nav:not(.header-nav),
    section.hero-section > .hero-content,
    section.hero-section .corretora-info,
    section.hero-section .pulsar-logo,
    section.hero-section .main-title,
    section.hero-section .description,
    section.hero-section .cta-button,
    section.hero-section > .person-photo,
    section.hero-section .texture-element {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        height: 0 !important;
        width: 0 !important;
        overflow: hidden !important;
        position: absolute !important;
        left: -9999px !important;
    }
    /* Reset e Base */
    html, body {
        margin: 0 !important;
        padding: 0 !important;
        overflow-x: hidden !important;
    }
    
    /* Cor de Fundo da Tela - Off-white com tom quente de bege claro */
    body {
        background-color: #F5F0E6 !important;
        background-image: none !important;
        background-size: auto !important;
        min-height: 100vh !important;
    }
    
    /* FORÇAR OCULTAR TODOS OS ELEMENTOS DESKTOP */
    body > section.hero-section > nav:not(.header-nav),
    body > section.hero-section > .hero-content,
    body > section.hero-section > .person-photo,
    body > section.hero-section > .texture-element {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        height: 0 !important;
        width: 0 !important;
        overflow: hidden !important;
        position: absolute !important;
        left: -9999px !important;
        pointer-events: none !important;
    }
    
    body > section.hero-section .corretora-info,
    body > section.hero-section .pulsar-logo,
    body > section.hero-section .main-title,
    body > section.hero-section .description,
    body > section.hero-section .cta-button {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        height: 0 !important;
        width: 0 !important;
        overflow: hidden !important;
        position: absolute !important;
        left: -9999px !important;
        pointer-events: none !important;
    }
    
    /* ===== HEADER FIXO ===== */
    .mobile-header {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 60px;
        background-color: #38241A; /* Marrom Escuro Profundo */
        z-index: 9999 !important; /* Z-index alto para ficar acima de tudo */
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important; /* Sombra para destacar */
    }
    
    .header-nav {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 20px;
        width: 100%;
        padding: 0 20px;
        z-index: 10000 !important; /* Z-index alto para os botões */
        position: relative;
    }
    
    .nav-button {
        border-radius: 8px;
        padding: 8px 18px;
        background-color: #7D5A46; /* Marrom Caramelo */
        color: #FFFFFF; /* Branco puro */
        font-family: 'Inter', sans-serif;
        font-size: 14px;
        font-weight: 500;
        text-decoration: none;
        transition: all 0.3s ease;
        cursor: pointer;
        pointer-events: auto !important;
        z-index: 10001 !important; /* Z-index ainda mais alto para os botões */
        position: relative;
    }
    
    .nav-button:hover,
    .nav-button:active {
        background-color: #AA9069; /* Marrom Dourado/Bronze */
        transform: translateY(-1px);
    }
    
    
    /* ===== HERO SECTION MOBILE - Otimizado para caber em uma tela ===== */
    .hero-section {
        width: 100% !important;
        min-height: 100vh !important;
        height: 100vh !important;
        padding-top: 60px !important; /* Reduzido de 80px para 60px */
        padding-bottom: 10px !important; /* Reduzido de 20px para 10px */
        padding-left: 0 !important;
        padding-right: 0 !important;
        background-color: #F5F0E6 !important;
        background-image: none !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        position: relative !important;
        overflow-y: auto !important;
    }
    
    .hero-section::before {
        display: none !important;
    }
    
    .hero-content-mobile {
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        padding: 0 25px !important;
        margin: 0 !important;
        position: relative !important;
        z-index: 2 !important;
    }
    
    /* ===== SEÇÃO NOME E TÍTULO - Reduzir espaçamentos ===== */
    .hero-name-section {
        text-align: center !important;
        width: 100% !important;
        padding-top: 10px !important; /* Reduzido de 20px */
        padding-bottom: 10px !important; /* Reduzido de 20px */
        display: block !important;
    }
    
    .hero-name {
        font-family: 'Playfair Display', serif !important;
        font-size: clamp(24px, 7vw, 28px) !important; /* Reduzido de 28-32px para 24-28px */
        font-weight: 700 !important;
        letter-spacing: 1.5px !important;
        color: #38241A !important; /* Marrom Escuro Profundo */
        margin-bottom: 3px !important; /* Reduzido de 5px */
        line-height: 1.2 !important;
        margin-top: 0 !important;
        padding: 0 !important;
        background: none !important;
        border: none !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .hero-separator {
        width: 50px !important; /* Reduzido de 60px */
        height: 2px !important;
        background-color: #AA9069 !important; /* Marrom Dourado/Bronze */
        margin: 0 auto 8px auto !important; /* Reduzido de 10px */
        display: block !important;
    }
    
    .hero-subtitle {
        font-family: 'Inter', sans-serif !important;
        font-size: clamp(13px, 3.5vw, 15px) !important; /* Reduzido de 14-16px para 13-15px */
        font-weight: 400 !important;
        color: #38241A !important; /* Marrom Escuro Profundo */
        margin-bottom: 15px !important; /* Reduzido de 30px para 15px */
        line-height: 1.3 !important; /* Reduzido de 1.4 */
        margin-top: 0 !important;
        padding: 0 !important;
    }
    
    /* ===== SEÇÃO IMAGEM E SLOGAN - Reduzir tamanho para caber em uma tela ===== */
    .hero-image-section {
        position: relative !important; /* CRUCIAL para posicionamento absoluto do slogan */
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important; /* Para organização vertical se necessário */
        align-items: center !important;
        margin-bottom: 15px !important; /* Reduzido de 40px para 15px */
        margin-top: 0 !important;
    }
    
    /* Imagem da Corretora - Aumentar tamanho */
    .person-photo-mobile {
        width: 85% !important; /* Aumentado de 70% para 85% */
        max-width: 340px !important; /* Aumentado de 280px para 340px */
        height: auto !important;
        position: relative !important;
        display: block !important;
        margin-bottom: 0 !important; /* Não precisa empurrar o slogan pois ele é sobreposto */
    }
    
    .person-photo-mobile img {
        width: 100% !important;
        height: auto !important;
        object-fit: cover !important;
        border-radius: 8px !important;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1) !important;
        display: block !important;
    }
    
    /* Bloco do Slogan - Ajustar tamanho e posicionamento */
    .slogan-overlay {
        position: absolute !important; /* Posicionamento absoluto para sobrepor a imagem */
        left: 5% !important; /* Distância da borda esquerda do container pai */
        bottom: 8% !important; /* Movido mais para baixo de 12% para 8% */
        background-color: rgba(212, 196, 181, 0.9) !important; /* Marrom Claro Suave com 90% opacidade */
        padding: 12px 16px !important; /* Aumentado para acomodar duas linhas */
        border-radius: 6px !important;
        width: auto !important; /* Largura automática para acompanhar o conteúdo */
        min-width: 50% !important; /* Largura mínima */
        max-width: 60% !important; /* Largura máxima */
        z-index: 10 !important; /* Garantir que fique acima da imagem */
        box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15) !important;
        display: inline-block !important; /* Para que o fundo acompanhe o conteúdo */
    }
    
    .slogan-text {
        font-family: 'Playfair Display', serif !important;
        font-size: 16px !important;
        font-weight: 700 !important;
        letter-spacing: 1.5px !important;
        text-transform: uppercase !important;
        line-height: 1.3 !important; /* Espaçamento entre linhas */
        color: #38241A !important; /* Marrom Escuro Profundo */
        display: block !important;
        white-space: normal !important; /* Permitir quebra de linha */
        text-align: left !important; /* Alinhamento à esquerda dentro do bloco */
    }
    
    /* ===== SEÇÃO DE MISSÃO - Aumentar ainda mais os tamanhos ===== */
    .mission-section {
        padding: 0 25px !important;
        text-align: center !important;
        margin-bottom: 20px !important;
        width: 100% !important;
        display: block !important;
    }
    
    .mission-title {
        font-family: 'Playfair Display', serif !important;
        font-size: clamp(26px, 7vw, 30px) !important; /* Aumentado de 22-26px para 26-30px */
        font-weight: 600 !important;
        color: #38241A !important; /* Marrom Escuro Profundo */
        margin-bottom: 15px !important; /* Aumentado de 12px para 15px */
        margin-top: 0 !important;
        padding: 0 !important;
    }
    
    .mission-text {
        font-family: 'Inter', sans-serif !important;
        font-size: clamp(16px, 4.5vw, 18px) !important; /* Aumentado de 15-16px para 16-18px */
        font-weight: 400 !important;
        line-height: 1.8 !important; /* Aumentado de 1.7 para 1.8 */
        color: #38241A !important; /* Marrom Escuro Profundo */
        margin-bottom: 25px !important; /* Aumentado de 20px para 25px */
        margin-top: 0 !important;
        padding: 0 !important;
        background: none !important;
        border: none !important;
    }
    
    /* ===== BOTÃO CTA MOBILE - Aumentar ainda mais ===== */
    .cta-button-mobile {
        width: 85% !important; /* Aumentado de 80% */
        max-width: 320px !important; /* Aumentado de 300px */
        padding: 18px 28px !important; /* Aumentado de 16px 24px */
        border-radius: 10px !important;
        background-color: #38241A !important; /* Mesma cor do header - Marrom Escuro Profundo */
        color: #FFFFFF !important; /* Branco puro */
        font-family: 'Inter', sans-serif !important;
        font-size: 18px !important; /* Aumentado de 17px */
        font-weight: 600 !important;
        text-decoration: none !important;
        display: inline-block !important;
        text-align: center !important;
        box-shadow: 0 4px 12px rgba(56, 36, 26, 0.3) !important; /* Sombra com a mesma cor */
        transition: all 0.3s ease !important;
        cursor: pointer !important;
        pointer-events: auto !important;
        z-index: 100 !important;
        border: none !important;
        margin: 0 auto !important;
    }
    
    .cta-button-mobile:hover,
    .cta-button-mobile:active {
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(56, 36, 26, 0.4); /* Sombra hover com a mesma cor */
        background-color: #967A5A;
    }
    
    /* WhatsApp Float ajustado para mobile */
    .whatsapp-float {
        position: fixed !important;
        bottom: 20px !important;
        right: 20px !important;
        width: 50px !important;
        height: 50px !important;
        z-index: 9998 !important; /* Abaixo do header mas acima do conteúdo */
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        background-color: #25D366 !important;
        border-radius: 50% !important;
        align-items: center !important;
        justify-content: center !important;
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4) !important;
    }
    
    /* Properties Section Mobile */
    .properties-section {
        height: auto;
        min-height: 100vh;
        padding: 20px 0;
    }
    
    .content {
        width: 100%;
        gap: 30px;
        padding: 0 15px;
        flex-direction: column;
        display: flex;
    }
    
    .properties-text {
        width: 100%;
        max-width: 100%;
        order: 1;
    }
    
    .properties-images {
        order: 2;
        width: 100%;
        margin: 0;
    }
    
    .photos {
        order: 3;
    }
    
    .properties-text h1 {
        font-size: 1.2rem;
        letter-spacing: 0.5px;
        padding: 10px 15px;
        max-width: 100%;
        white-space: normal;
        width: 100%;
        color: #38241A !important; /* Marrom escuro para melhor visibilidade */
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(245, 240, 230, 0.95) 100%) !important;
        text-shadow: 1px 1px 2px rgba(255,255,255,0.8);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
        border: 2px solid rgba(170, 144, 105, 0.3);
    }
    
    .properties-info {
        font-size: 0.85rem;
        padding: 12px 15px;
        max-height: 150px;
        overflow-y: auto;
        overflow-x: hidden;
        width: 100%;
    }
    
    .property-description-container {
        width: 100%;
        max-width: 100%;
    }
    
    .toggle-filters-btn {
        width: 45px;
        height: 45px;
        margin: 0 0 15px 0; /* Margem apenas embaixo, alinhado à esquerda */
        align-self: flex-start; /* Alinhar à esquerda no mobile também */
        animation: elegantPulse 2.5s ease-in-out infinite;
    }
    
    .modern-filters-container {
        width: 100%;
        padding: 15px;
    }
    
    .filter-group {
        max-width: 100%;
        width: 100%;
    }
    
    .filter-select {
        padding: 8px 12px;
        font-size: 0.85rem;
        width: 100%;
    }
    
    .view-more-btn {
        padding: 8px 16px;
        font-size: 0.85rem;
        width: 100%;
    }
    
    .main-property-image {
        width: 100%;
        max-width: 100%;
        height: 300px;
        margin-left: 0;
        margin-top: 0;
        transform: none;
        border-radius: 15px;
        object-fit: cover;
        transition: opacity 0.3s ease, transform 0.3s ease;
    }
    
    .properties-images {
        width: 100%;
        margin-left: 0;
        margin-top: 20px;
        transition: all 0.3s ease;
    }
    
    /* Garantir transições suaves nos cards */
    .property-wrapper {
        transition: all 0.3s ease !important;
        animation: fadeInUp 0.5s ease-out !important;
    }
    
    .property-wrapper:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    }
    
    .property-wrapper.activePhoto {
        transform: scale(1.02);
        box-shadow: 0 15px 40px rgba(220, 199, 166, 0.4);
        border: 2px solid rgba(220, 199, 166, 0.5);
    }
    
    /* Cards Mobile - Layout em coluna única */
    .photos {
        flex-direction: column !important;
        gap: 20px;
        padding: 20px 0;
        overflow-x: visible;
        overflow-y: visible;
        align-items: center;
        width: 100%;
    }
    
    .property-wrapper {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        min-height: 380px;
        flex-shrink: 1;
        margin: 0 auto;
    }
    
    .static-property {
        width: 100%;
        height: 250px;
        object-fit: cover;
    }
    
    .property-info-card {
        padding: 15px;
    }
    
    .property-info-card h3 {
        font-size: 1.1rem;
        margin-bottom: 10px;
    }
    
    .property-details {
        margin: 10px 0;
    }
    
    .property-details span {
        font-size: 0.75rem;
        padding: 4px 8px;
        margin: 2px;
    }
    
    .price {
        font-size: 1.2rem;
        margin: 10px 0;
    }
    
    .installment {
        font-size: 0.9rem;
        margin-bottom: 10px;
    }
    
    .schedule-btn,
    .whatsapp-btn {
        font-size: 0.85rem;
        padding: 12px 20px;
        width: 100%;
        margin: 5px 0;
    }
    
    /* Garantir que a descrição seja visível no mobile */
    .property-description-container {
        margin-bottom: 20px;
        padding: 15px;
        background: linear-gradient(135deg, rgba(220, 199, 166, 0.25) 0%, rgba(220, 199, 166, 0.15) 100%);
        border-radius: 12px;
        max-height: none;
        border: 1px solid rgba(220, 199, 166, 0.3);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .properties-info {
        font-size: 0.95rem !important;
        line-height: 1.6;
        max-height: none;
        overflow-y: visible;
        padding: 15px !important;
        color: #3F2F1B !important;
        text-shadow: none;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    /* Garantir que o título também seja visível */
    .properties-text h1 {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    /* Garantir que selectedPropertyInfo seja visível no mobile */
    .selected-property-info {
        position: relative;
        margin-top: 20px;
        margin-bottom: 20px;
        z-index: 100;
    }
    
    /* Layout melhorado para mobile - descrição acima dos cards */
    .properties-text {
        order: 1;
        margin-bottom: 30px;
        animation: fadeInUp 0.6s ease-out;
    }
    
    .properties-images {
        order: 2;
        width: 100%;
        animation: fadeInUp 0.8s ease-out;
    }
    
    .photos {
        order: 3;
        animation: fadeInUp 1s ease-out;
    }
    
    /* Garantir que todos os elementos tenham transições */
    .property-description-container {
        animation: fadeInUp 0.5s ease-out;
        transition: all 0.3s ease;
    }
    
    .selected-property-info {
        animation: fadeInUp 0.5s ease-out;
        transition: all 0.3s ease;
    }
    
    /* Ajustar elementos decorativos no mobile (manter visíveis mas menores) */
    .texture-element {
        width: 600px !important;
        height: 600px !important;
        bottom: -150px !important;
        right: -80px !important;
        opacity: 0.4 !important;
        display: block !important;
        z-index: 1 !important;
    }
    
    .texture-element img {
        opacity: 0.6 !important;
    }
    
    /* Garantir que os elementos brancos decorativos apareçam no mobile */
    .properties-section .background-elements {
        display: block !important;
        width: 400px !important;
        height: 400px !important;
        top: -300px !important;
        left: -200px !important;
        opacity: 0.6 !important;
        z-index: 1 !important;
        pointer-events: none !important;
    }
    
    .properties-section .background-elements img {
        width: 350px !important;
        opacity: 0.7 !important;
    }
    
    .properties-section .dynamic-bg-1,
    .properties-section .dynamic-bg-2,
    .properties-section .dynamic-bg-3,
    .properties-section .dynamic-bg-4 {
        opacity: 0.6 !important;
    }
    
    .properties-wheel {
        display: none;
    }
    
    /* Ajustar background no mobile */
    body {
        background-size: cover;
        background-position: center top;
    }
    
    /* Ajustar selected property info no mobile */
    .selected-property-info {
        padding: 15px;
        margin-top: 15px;
    }
    
    .selected-property-content {
        flex-direction: column;
    }
    
    .selected-property-image-container {
        width: 100%;
        height: 200px;
        margin-bottom: 15px;
    }
    
    .selected-property-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .selected-schedule-btn,
    .selected-whatsapp-btn {
        width: 100%;
        padding: 12px;
    }
}

/* Textura no canto direito inferior */
.texture-element{
    position: absolute;
    bottom: -435px;
    right: -10px; /* Movido mais para a esquerda de 0 para 60px */
    width: 2000px;
    height: 2000px;
    z-index: 10;
    opacity: 1;
}

.texture-element img{
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Elementos animados que aparecem do lado esquerdo */
.properties-wheel{
    display: none; /* Ocultando o wheel de propriedades */
    width: 500px;
    height: 500px;
    border-radius: 50%;
    position: absolute;
    right:-280px;
    bottom:-300px;
    transform: rotate(-45deg);
    transition: transform 1s;
    z-index: 1;
}

.properties-wheel img{
    width: 320px;
}

.dynamic-property-1{
    position: absolute;
    top:-350px;
    right:90px;
}

.dynamic-property-3{
    position: absolute;
    transform: rotate(180deg);
    bottom:-350px;
    right:83px;
}

.dynamic-property-4{
    position: absolute;
    transform: rotate(-90deg);
    top:30px;
    left:-290px
}

.dynamic-property-5{
    position: absolute;
    transform: rotate(-180deg);
    bottom:30px;
    left:-290px;
}

/* Elementos decorativos de fundo */
.background-elements{
    width: 500px; /* Reduzido de 700px para 500px */
    height: 500px; /* Reduzido de 700px para 500px */
    border-radius: 50%;
    position: absolute;
    top:-600px;
    left:-380px; /* Movido mais para a direita de -480px para -380px */
    transform: rotate(-45deg);
    transition: transform 1s;
    z-index: 0;
}

.background-elements img{
    width: 450px; /* Reduzido de 650px para 450px */
    opacity: 40%;
}

.dynamic-bg-1{
    position: absolute;
    transform: rotate(90deg);
    bottom: -500px;
    left:10px;
}

.dynamic-bg-2{
    position: absolute;
    transform: rotate(180deg);
    bottom: 200px;
    left:-480px; /* Movido mais para a direita de -580px para -480px */
}

.dynamic-bg-3{
    position: absolute;
    transform: rotate(280deg); /* Alterado de 100deg para 280deg para inverter */
    top: -350px;
    left:90px; 
}

.dynamic-bg-4{
    position: absolute;
    bottom: 120px;
    right:-500px; /* Movido mais para a esquerda de -600px para -500px */
}

/* Terceira seção - Mais Imóveis */
.properties-section-2{
    position: relative;
    width: 100%;
    height: 100vh; /* Terceira página */
    display: flex;
    align-items: center;
    justify-content: center;
    background: none; /* Removido para mostrar a imagem do body */
    overflow: hidden;
    padding: 40px 0;
}

.properties-section-2::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(78, 55, 36, 0.05) 0%, rgba(186, 140, 89, 0.05) 100%);
    z-index: 1;
}

.properties-section-2 > * {
    position: relative;
    z-index: 2;
}

.fade-in {
    animation: fadeIn 1.5s forwards;
}

@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

/* Garantir que todos os botões sejam clicáveis */
.cta-button,
.menu-text a,
.whatsapp-float {
    pointer-events: auto !important;
    cursor: pointer !important;
    position: relative !important;
    z-index: 99999 !important;
    user-select: none !important;
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
}

/* Garantir que elementos que podem bloquear os botões não interfiram */
.person-photo,
.texture-element,
.background-elements,
.properties-wheel {
    pointer-events: none !important;
    z-index: 1 !important;
}

/* Garantir que o conteúdo principal esteja sempre acima */
.hero-content,
.corretora-info,
nav {
    pointer-events: auto !important;
    z-index: 99999 !important;
    position: relative !important;
}

/* Garantir que os links de navegação sejam sempre clicáveis */
nav a {
    pointer-events: auto !important;
    cursor: pointer !important;
    position: relative !important;
    z-index: 99999 !important;
    display: inline-block !important;
    padding: 10px 15px !important;
}

/* Garantir que o botão CTA seja sempre clicável */
.cta-button {
    pointer-events: auto !important;
    cursor: pointer !important;
    position: relative !important;
    z-index: 99999 !important;
    display: inline-flex !important;
    box-sizing: border-box !important;
    text-decoration: none !important;
    color: #3F2F1B !important;
    background-color: #DCC7A6 !important;
}

/* Hover effects para feedback visual */
.cta-button:hover {
    background-color: #C4B08A !important;
    transform: translateY(-3px) !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.menu-text a:hover {
    color: #DCC7A6 !important;
    transform: translateY(-2px) !important;
}

/* Garantir que o WhatsApp flutuante seja sempre clicável */
.whatsapp-float {
    pointer-events: auto !important;
    cursor: pointer !important;
    position: fixed !important;
    z-index: 99999 !important;
}

.whatsapp-float:hover {
    background-color: #128C7E !important;
    transform: scale(1.1) !important;
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6) !important;
}

/* ===== ESTILOS PARA API IMOVIEW ===== */

/* Container de configuração da API */
.api-config-container {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid #dee2e6;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.api-config-container h3 {
    color: #2c3e50;
    font-size: 1.3em;
    margin-bottom: 15px;
    font-weight: 600;
}

.api-input-group {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.api-input {
    flex: 1;
    min-width: 250px;
    padding: 12px 16px;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    font-size: 14px;
    background: white;
    transition: all 0.3s ease;
}

.api-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.api-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.api-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.api-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.api-info {
    color: #6c757d;
    font-size: 13px;
    margin: 0;
    font-style: italic;
}

/* Status da API */
.api-status {
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid #dee2e6;
    border-radius: 10px;
    padding: 20px;
    margin-top: 20px;
    text-align: center;
}

.status-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    color: #667eea;
    font-weight: 500;
}

.spinner {
    width: 24px;
    height: 24px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Container de imóveis da API */
#apiPropertiesContainer {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

#apiPropertiesContainer .property-wrapper {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

#apiPropertiesContainer .property-wrapper:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* Estados de sucesso e erro */
.api-success {
    border-color: #28a745 !important;
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%) !important;
}

.api-error {
    border-color: #dc3545 !important;
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%) !important;
}

.api-success .api-info {
    color: #155724;
}

.api-error .api-info {
    color: #721c24;
}

/* Status de mensagens */
.status-success {
    color: #155724;
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 8px;
    padding: 12px;
    font-weight: 500;
}

.status-error {
    color: #721c24;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 8px;
    padding: 12px;
    font-weight: 500;
}

.status-info {
    color: #0c5460;
    background: #d1ecf1;
    border: 1px solid #bee5eb;
    border-radius: 8px;
    padding: 12px;
    font-weight: 500;
}

/* Estilo para valor do condomínio */
.condominio {
    font-size: 12px;
    color: #6c757d;
    display: block;
    margin-top: 5px;
}

/* ===== ANIMAÇÕES DOS CARDS ===== */

/* Hover nos cards */
.property-wrapper {
    cursor: pointer;
    transition: all 0.3s ease;
}

.property-wrapper:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}

/* Card ativo */
.property-wrapper.activePhoto {
    transform: scale(1.1);
    box-shadow: 0 20px 50px rgba(0,0,0,0.4);
    border: 4px solid rgba(255,255,255,0.6);
    z-index: 15;
    pointer-events: auto;
}

/* Animação de clique */
.property-wrapper:active {
    transform: scale(0.95);
    transition: transform 0.1s ease;
}

/* Animação da imagem principal */
.main-property-image.transitioning {
    animation: imageFadeTransition 1s ease-in-out;
}

@keyframes imageFadeTransition {
    0% {
        opacity: 1;
        transform: rotate(-3deg) scale(1);
    }
    50% {
        opacity: 0.3;
        transform: rotate(-3deg) scale(0.98);
    }
    100% {
        opacity: 1;
        transform: rotate(-3deg) scale(1);
    }
}

/* Animação dos botões */
.schedule-btn, .whatsapp-btn {
    transition: all 0.3s ease;
}

.schedule-btn:hover, .whatsapp-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Animação do favorito */
.favorite-btn {
    transition: all 0.3s ease;
}

.favorite-btn:hover {
    transform: scale(1.2);
}

.favorite-btn.favorited {
    animation: heartBeat 0.6s ease-in-out;
}

@keyframes heartBeat {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

/* Animação dos status badges */
.status-badge {
    animation: fadeInUp 0.5s ease-out;
}

/* Animação de entrada dos cards */
.property-wrapper {
    animation: slideInUp 0.6s ease-out;
}

.property-wrapper:nth-child(1) { animation-delay: 0.1s; }
.property-wrapper:nth-child(2) { animation-delay: 0.2s; }
.property-wrapper:nth-child(3) { animation-delay: 0.3s; }
.property-wrapper:nth-child(4) { animation-delay: 0.4s; }
.property-wrapper:nth-child(5) { animation-delay: 0.5s; }

@keyframes slideInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Efeito de loading */
.property-wrapper.loading {
    opacity: 0.7;
    pointer-events: none;
}

.property-wrapper.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    border: 2px solid #DCC7A6;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    transform: translate(-50%, -50%);
}

/* Responsividade para animações */
@media (max-width: 768px) {
    .property-wrapper:hover {
        transform: translateY(-3px);
    }
    
    .property-wrapper.activePhoto {
        transform: scale(1.05);
    }
    
    .property-wrapper:active {
        transform: scale(0.98);
    }
}

/* Responsividade para API */
@media (max-width: 768px) {
    .api-input-group {
        flex-direction: column;
    }
    
    .api-input {
        min-width: auto;
        width: 100%;
    }
    
    .api-btn {
        width: 100%;
    }
    
    #apiPropertiesContainer {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .api-config-container {
        padding: 20px;
    }
    
    .api-config-container h3 {
        font-size: 1.1em;
    }
    
    .api-input {
        font-size: 16px; /* Evita zoom no iOS */
    }
}

/* Animação para cards filtrados */
.property-wrapper {
    transition: all 0.4s ease-out;
}

.property-wrapper.filtered-out {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    pointer-events: none;
}

.property-wrapper.filtered-in {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

/* Botão de limpar filtros */
.clear-filters-btn {
    background: linear-gradient(135deg, #DCC7A6 0%, #C4B08A 100%);
    color: #3F2F1B;
    border: none;
    padding: 10px 18px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 10px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.clear-filters-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(220, 199, 166, 0.4);
    background: linear-gradient(135deg, #C4B08A 0%, #B08A5C 100%);
}

.clear-filters-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Responsividade para o botão de limpar filtros */
@media (max-width: 768px) {
    .clear-filters-btn {
        margin-left: 0;
        margin-top: 10px;
        width: 100%;
        padding: 10px 16px;
        font-size: 0.9rem;
    }
}

/* ===== SISTEMA DE FILTROS MODERNO ===== */

.modern-filters-container {
    margin-bottom: 5px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
    order: -1; /* Colocar o filtro acima do título e texto */
}

.modern-filters-container.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.search-bar {
    display: flex;
    align-items: center;
    gap: 15px;
    background: linear-gradient(135deg, rgba(56, 36, 26, 0.95) 0%, rgba(125, 90, 70, 0.95) 100%) !important; /* Fundo mais escuro e opaco */
    padding: 16px 22px;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(170, 144, 105, 0.5);
    flex-wrap: wrap;
}

.filter-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 140px;
    height: 60px;
    justify-content: flex-end;
}

.filter-item.search-field {
    flex: 1;
    min-width: 250px;
}

.filter-item:last-child {
    min-width: 160px;
}

.filter-item label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #FFFFFF !important; /* Branco para melhor contraste */
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5); /* Sombra mais forte */
    line-height: 1;
}

.modern-filter-select {
    padding: 10px 14px;
    border: 2px solid rgba(170, 144, 105, 0.6);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.95) !important; /* Fundo branco opaco */
    color: #38241A !important; /* Texto marrom escuro para legibilidade */
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 140px;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2338241A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6,9 12,15 18,9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
    backdrop-filter: blur(10px);
    height: 38px;
    box-sizing: border-box;
}

.modern-filter-select:focus {
    outline: none;
    border-color: #AA9069;
    box-shadow: 0 0 0 3px rgba(170, 144, 105, 0.3);
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 1) !important;
}

.modern-filter-select:hover {
    border-color: #AA9069;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 1) !important;
}

.search-input-container {
    position: relative;
    flex: 1;
    height: 38px;
}

.modern-search-input {
    width: 100%;
    padding: 10px 14px 10px 38px;
    border: 2px solid rgba(170, 144, 105, 0.6);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.95) !important; /* Fundo branco opaco */
    color: #38241A !important; /* Texto marrom escuro */
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
    box-sizing: border-box;
    backdrop-filter: blur(10px);
    height: 38px;
}

.modern-search-input::placeholder {
    color: rgba(56, 36, 26, 0.6) !important; /* Placeholder mais escuro */
    font-weight: 400;
}

.modern-search-input:focus {
    outline: none;
    border-color: #AA9069;
    box-shadow: 0 0 0 3px rgba(170, 144, 105, 0.3);
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 1) !important;
}

.modern-search-input:hover {
    border-color: #AA9069;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 1) !important;
}

.search-input-container::before {
    content: '🔍';
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    color: rgba(56, 36, 26, 0.7) !important; /* Ícone mais escuro */
    pointer-events: none;
}

.search-btn {
    background: linear-gradient(135deg, #DCC7A6 0%, #C4B08A 100%);
    color: #3F2F1B;
    border: none;
    padding: 10px 18px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    min-width: 140px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    height: 38px;
    box-sizing: border-box;
}

.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(220, 199, 166, 0.4);
    background: linear-gradient(135deg, #C4B08A 0%, #B08A5C 100%);
}

.search-btn:active {
    transform: translateY(0);
}

/* Botão de busca por código inline */
.search-by-code-btn-inline {
    background: linear-gradient(135deg, rgba(220, 199, 166, 0.1) 0%, rgba(220, 199, 166, 0.05) 100%);
    color: #EFE1C3;
    border: 2px solid rgba(220, 199, 166, 0.4);
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    min-width: 140px;
    text-align: center;
    height: 38px;
    box-sizing: border-box;
}

.search-by-code-btn-inline:hover {
    background: linear-gradient(135deg, rgba(220, 199, 166, 0.2) 0%, rgba(220, 199, 166, 0.1) 100%);
    border-color: rgba(220, 199, 166, 0.8);
    color: #DCC7A6;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.search-by-code-btn-inline:focus {
    outline: none;
    border-color: rgba(220, 199, 166, 0.8);
    box-shadow: 0 0 0 3px rgba(220, 199, 166, 0.2);
    background: linear-gradient(135deg, rgba(220, 199, 166, 0.2) 0%, rgba(220, 199, 166, 0.1) 100%);
}

/* Modal de busca por código */
#search-code-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    cursor: pointer;
}

.search-modal-content {
    position: relative;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 249, 250, 0.98) 100%);
    border-radius: 20px;
    padding: 0;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    z-index: 100001;
    overflow: hidden;
    pointer-events: auto;
}

.search-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    background: linear-gradient(135deg, #DCC7A6 0%, #C4B08A 100%);
}

.search-modal-header h3 {
    margin: 0;
    color: #3F2F1B;
    font-size: 1.3rem;
    font-weight: 600;
}

.search-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #3F2F1B;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.search-modal-close:hover {
    background: rgba(63, 47, 27, 0.1);
    transform: rotate(90deg);
}

.search-modal-body {
    padding: 40px 25px;
    text-align: center;
}

.spinner-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.spinner-container .spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #DCC7A6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.spinner-container p {
    margin: 0;
    color: #3F2F1B;
    font-size: 1rem;
    font-weight: 500;
}

.spinner-container strong {
    color: #DCC7A6;
    font-weight: 700;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsividade para filtros modernos */
@media (max-width: 768px) {
    .search-bar {
        flex-direction: column;
        gap: 15px;
        padding: 20px;
        align-items: stretch;
    }
    
    .filter-item {
        width: 100%;
        min-width: auto;
        height: auto;
        justify-content: flex-start;
    }
    
    .filter-item.search-field {
        min-width: auto;
    }
    
    .modern-filter-select,
    .modern-search-input,
    .search-btn,
    .search-by-code-btn-inline {
        width: 100%;
        min-width: auto;
        height: 38px;
    }
}

@media (max-width: 480px) {
    .search-bar {
        padding: 16px;
        border-radius: 15px;
    }
    
    .modern-filter-select,
    .modern-search-input,
    .search-btn,
    .search-by-code-btn-inline {
        padding: 8px 12px;
        font-size: 0.8rem;
        height: 36px;
    }
    
    .modern-search-input {
        padding-left: 36px;
    }
    
    .search-input-container::before {
        left: 10px;
        font-size: 12px;
    }
}

/* ===== ÁREA DE INFORMAÇÕES DO IMÓVEL SELECIONADO ===== */
.selected-property-info {
    margin-top: 20px;
    background: linear-gradient(135deg, rgba(220, 199, 166, 0.2) 0%, rgba(220, 199, 166, 0.1) 100%);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(220, 199, 166, 0.3);
    animation: fadeInUp 0.5s ease-out;
}

.selected-property-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(220, 199, 166, 0.3);
}

.selected-property-header h3 {
    color: #3F2F1B !important;
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.close-property-info {
    background: rgba(220, 199, 166, 0.3);
    border: none;
    color: #3F2F1B;
    font-size: 24px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    line-height: 1;
    padding: 0;
}

.close-property-info:hover {
    background: rgba(220, 199, 166, 0.5);
    transform: rotate(90deg);
}

.selected-property-content {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.selected-property-image-container {
    flex-shrink: 0;
    width: 200px;
    height: 150px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.selected-property-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.selected-property-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.selected-property-price {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.selected-property-price span:first-child {
    color: #2A1F12 !important;
    font-size: 1.5rem;
    font-weight: 700;
}

.selected-installment {
    color: #5C4A2B !important;
    font-size: 0.9rem;
    font-weight: 500;
}

.selected-property-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.spec-badge {
    background: rgba(220, 199, 166, 0.2);
    color: #5C4A2B !important;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid rgba(220, 199, 166, 0.3);
}

.selected-property-address {
    color: #5C4A2B !important;
    font-size: 0.9rem;
    margin-top: 5px;
}

.selected-property-address p {
    margin: 0;
    color: #5C4A2B !important;
}

.selected-property-address strong {
    color: #3F2F1B !important;
}

.selected-property-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.selected-schedule-btn,
.selected-whatsapp-btn {
    flex: 1;
    padding: 10px 16px;
    border: none;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.selected-schedule-btn {
    background: linear-gradient(135deg, #DCC7A6 0%, #C4B08A 100%);
    color: #3F2F1B;
}

/* ===== MODAL DE FOTOS ===== */
.photos-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.photos-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    cursor: pointer;
}

.photos-modal-content {
    position: relative;
    background: linear-gradient(135deg, rgba(220, 199, 166, 0.95) 0%, rgba(220, 199, 166, 0.9) 100%);
    border-radius: 20px;
    width: 90%;
    max-width: 1200px;
    max-height: 90vh;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    z-index: 1000000;
}

.photos-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    border-bottom: 2px solid rgba(220, 199, 166, 0.3);
}

.photos-modal-header h2 {
    color: #3F2F1B;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.photos-modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: #3F2F1B;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.photos-modal-close:hover {
    background: rgba(63, 47, 27, 0.1);
    transform: rotate(90deg);
}

.photos-modal-body {
    padding: 30px;
    overflow-y: auto;
    flex: 1;
}

.photos-loading,
.photos-empty {
    text-align: center;
    color: #3F2F1B;
    font-size: 1.1rem;
    padding: 40px;
}

.photos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.photo-item {
    position: relative;
    width: 100%;
    padding-top: 75%; /* Aspect ratio 4:3 */
    overflow: hidden;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    background: rgba(220, 199, 166, 0.3);
}

.photo-item:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.photo-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.photo-item.photo-expanded {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90vw;
    max-width: 900px;
    height: 90vh;
    max-height: 700px;
    padding-top: 0;
    z-index: 1000001;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

.photo-item.photo-expanded img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: rgba(0, 0, 0, 0.9);
}

/* Responsividade do modal */
@media (max-width: 768px) {
    .photos-modal-content {
        width: 95%;
        max-height: 95vh;
    }
    
    .photos-modal-header {
        padding: 15px 20px;
    }
    
    .photos-modal-header h2 {
        font-size: 1.2rem;
    }
    
    .photos-modal-body {
        padding: 20px;
    }
    
    .photos-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }
    
    .photo-item.photo-expanded {
        width: 95vw;
        height: 95vh;
    }
}

@media (max-width: 480px) {
    .photos-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .photos-modal-content {
        width: 98%;
        max-height: 98vh;
        border-radius: 15px;
    }
    
    .photos-modal-header {
        padding: 12px 15px;
    }
    
    .photos-modal-header h2 {
        font-size: 1rem;
    }
    
    .photos-modal-body {
        padding: 15px;
    }
    
    .photo-item.photo-expanded {
        width: 95vw;
        height: 95vh;
        max-height: 95vh;
    }
    
    .photo-item.photo-expanded img {
        object-fit: contain;
    }
}

.selected-schedule-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(220, 199, 166, 0.4);
}

.selected-whatsapp-btn {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white;
}

.selected-whatsapp-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.4);
}

/* Responsividade para área de informações */
@media (max-width: 768px) {
    .selected-property-content {
        flex-direction: column;
    }
    
    .selected-property-image-container {
        width: 100%;
        height: 200px;
    }
    
    .selected-property-actions {
        flex-direction: column;
    }
}
