/* Estilos específicos da página de imóveis */
.page-header {
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.9), rgba(0, 61, 122, 0.9)),
                url('hero.png') center/cover;
    padding: 120px 2rem 80px;
    color: white;
    text-align: center;
}

.page-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.page-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
}

.filters-section {
    background: white;
    padding: 2rem;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    border-radius: 15px;
}

.filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.filter-select, .filter-input {
    padding: 0.75rem;
    border: 2px solid #E5E7EB;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.filter-select:focus, .filter-input:focus {
    outline: none;
    border-color: #0066CC;
}

.filter-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-filter {
    background: #0066CC;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-filter:hover {
    background: #003D7A;
    transform: translateY(-2px);
}

.btn-clear {
    background: transparent;
    color: #6B7280;
    border: 2px solid #E5E7EB;
}

.btn-clear:hover {
    background: #F3F4F6;
    border-color: #D1D5DB;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.results-count {
    font-size: 1.1rem;
    color: #6B7280;
}

.sort-select {
    padding: 0.75rem;
    border: 2px solid #E5E7EB;
    border-radius: 8px;
    background: white;
    cursor: pointer;
}

.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.property-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.property-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.property-image {
    height: 250px;
    background-size: cover;
    background-position: center;
    position: relative;
    background-color: #f0f0f0;
}

.property-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #FFB800;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.property-favorite {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.property-favorite:hover {
    background: white;
    transform: scale(1.1);
}

.property-favorite.favorited {
    color: #FF6B6B;
}

.property-content {
    padding: 1.5rem;
}

.property-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0066CC;
    margin-bottom: 0.5rem;
}

.property-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2C3E50;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.property-location {
    color: #6B7280;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.property-features {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.feature {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    color: #6B7280;
    font-size: 0.9rem;
}

.property-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-contact {
    flex: 1;
    background: #0066CC;
    color: white;
    border: none;
    padding: 0.75rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-contact:hover {
    background: #003D7A;
}

.btn-whatsapp {
    background: #25D366;
    color: white;
    border: none;
    padding: 0.75rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-whatsapp:hover {
    background: #128C7E;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.page-btn {
    padding: 0.75rem 1rem;
    border: 2px solid #E5E7EB;
    background: white;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.page-btn:hover, .page-btn.active {
    background: #0066CC;
    color: white;
    border-color: #0066CC;
}

/* Modal de detalhes */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    overflow-y: auto;
}

.modal-content {
    background: white;
    margin: 50px auto;
    max-width: 900px;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    z-index: 10;
}

.modal-gallery {
    height: 400px;
    background-size: cover;
    background-position: center;
    position: relative;
    background-color: #f0f0f0;
}

.modal-info {
    padding: 2rem;
}

.modal-price {
    font-size: 2rem;
    font-weight: 700;
    color: #0066CC;
    margin-bottom: 1rem;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.modal-description {
    color: #6B7280;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.modal-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.modal-feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    background: #F8FAFC;
    border-radius: 8px;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-modal {
    flex: 1;
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    min-width: 200px;
}

.btn-interest {
    background: #0066CC;
    color: white;
}

.btn-interest:hover {
    background: #003D7A;
}

.btn-modal-whatsapp {
    background: #25D366;
    color: white;
}

.btn-modal-whatsapp:hover {
    background: #128C7E;
}

/* Responsividade */
@media (max-width: 768px) {
    .page-title {
        font-size: 2rem;
    }
    
    .filters-grid {
        grid-template-columns: 1fr;
    }
    
    .results-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .properties-grid {
        grid-template-columns: 1fr;
    }
    
    .property-features {
        justify-content: space-between;
    }
    
    .modal-content {
        margin: 20px;
        max-width: none;
    }
    
    .modal-actions {
        flex-direction: column;
    }
    
    .btn-modal {
        min-width: auto;
    }
    
    /* Menu Mobile Específico */
    .mobile-menu-toggle {
        display: block !important;
        background: none;
        border: none;
        font-size: 1.5rem;
        color: #2C3E50;
        cursor: pointer;
        padding: 0.5rem;
        z-index: 1001;
        position: relative;
    }
    
    .mobile-menu {
        display: none !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        background: rgba(0, 61, 122, 0.98) !important;
        z-index: 1000 !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 2rem !important;
        padding: 2rem !important;
        box-sizing: border-box !important;
    }
    
    .mobile-menu.active {
        display: flex !important;
    }
    
    .mobile-menu-content {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 2rem !important;
        width: 100% !important;
        max-width: 300px !important;
    }
    
    .mobile-menu a {
        color: white !important;
        text-decoration: none !important;
        font-size: 1.3rem !important;
        font-weight: 600 !important;
        padding: 1rem 2rem !important;
        border-radius: 10px !important;
        transition: all 0.3s ease !important;
        text-align: center !important;
        width: 100% !important;
        display: block !important;
        box-sizing: border-box !important;
    }
    
    .mobile-menu a:hover,
    .mobile-menu a.active {
        background: rgba(255, 255, 255, 0.2) !important;
        transform: translateX(5px) !important;
    }
    
    .mobile-menu .btn-whatsapp {
        background: #25D366 !important;
        color: white !important;
        margin-top: 1rem !important;
    }
    
    .mobile-menu .btn-whatsapp:hover {
        background: #1DA851 !important;
        transform: translateX(0) !important;
    }
}