Yes, it is safe to buy real estate in Panama. Foreigners are afforded the same property right protections as Panamanians and there are laws protecting foreign investments. When buying real estate in Panama, using a good lawyer is important to check the status of the property on the public registry and to revise contracts.