Romania's centrist Bucharest mayor, Nicusor Dan, won the country's presidential election on Sunday in a shock upset over a hard-right, nationalist rival who had pledged to put Romania on a path inspired by U.S. President Donald Trump's politics.

Official results from nearly all voting stations showed Dan garnering about 54% of ballots cast by voters in the EU and NATO member country of about 19 million people, while Trump supporter George Simion was at 46%.

Dan, a soft-spoken mathematician, made a last-minute dash to the top in recent days after weeks of trailing Simion, a euroskeptic wanting to end military aid for Ukraine in its war with Russia. The election drew the highest percentage of voter turnout in a Romanian election in 25 years.