Collection Items Favorites/Wishlist

Is it possible to create a favorites functionality for the collection items where the favorites saved locally on cookies and have also a favorites page?

Example: https://www.adamsandbutler.com/private-rentals/

If so can someone help with the custom code required for this feature?