Hi Art,
When buying a business and the property where it’s located (as opposed to leasing the building or land) you should have a real estate agent and attorney working with you. The agent will help you find property and facilitate negotiations. And the attorney will help you make sure the title is clear and there are no issues with the property, as well as handle the transfer of the property to you. They can also examine things like business licensing, etc. to make sure the business is all set up properly.
I’d also advise hiring an accountant to examine the financial records and help you get set up with the Costa Rican government as far as tax filings, social security payments for employees, and other matters.
Jason