Plan for four layers of cost after the purchase itself. First, recurring property taxes, which most countries levy annually based on assessed value, sometimes at higher rates for non-residents or second homes, and a few add wealth taxes that count real estate. Second, if you rent the place out, rental income is typically taxable where the property sits regardless of where you live, with registration or withholding obligations for foreign landlords; your home country may tax it again, offset by whatever double taxation treaty applies.
Third, when you sell, capital gains tax often applies, and several countries make the buyer withhold part of the price when the seller is foreign. Holding periods, residency, and reinvestment can change the bill substantially.
Fourth, the ongoing operational layer: condominium or maintenance fees, building insurance, utilities during vacancy, and property management if you are abroad. Some countries also require non-resident owners to file annual tax returns even with no income. A local accountant familiar with non-resident owners is worth engaging in year one.