Suggestions on purchasing real estate for foreigners

Rooms in buildings registered as condominiums.
Part of buildings are not attached to the ground.
All types of land or buildings with long-term leases registered for more than 30 years.
Foreigners cannot own land registered in the name of a Thai juristic person if the foreigner holds more than 49% of the total number of shares.