Buying property in Costa Rica: What taxes must be paid?

If a property is to be purchased in Costa Rica, the buyer must pay several taxes and costs. We must inform ourselves very well about these tax requirements to avoid unpleasant surprises at the last minute, before signing.