The Hungarian and Austrian prime ministers- both hardliners on immigration - came away from a meeting on Tuesday with a pledge for close cooperation in Europe if not a formal alliance Austrian Chancellor Sebastian Kurz led his conservative party to victory in Austria's October parliamentary election, then struck a coalition deal with the anti-immigration Freedom Party, making Austria the only western European country with a far-right party in government.
Both of Austria's ruling parties have adopted language similar to Hungarian Prime Minister Viktor Orban's on immigration and Islam, pledging to cut benefits for refugees and warning darkly that Muslim "parallel societies" are emerging in cities like left-leaning Vienna.
Given their similar views, Kurz has said his country could serve as a go-between in the European Union for the West and the Visegrad group of eastern states, which includes Hungary and Poland, two countries that frequently defy Brussels on issues including immigration and fundamental rights.
"Particularly since the migration crisis, tensions within the European Union have grown more and more," Kurz told a joint news conference with Orban. "Our big goal is to be a bridge-builder here between the Visegrad states and other, western European states."
Kurz made immigration the core of his campaign after Austria took in one of the biggest contingents of asylum seekers in Europe's migration crisis in 2015, relative to its population.
Many of those people came via Hungary, until Orban fenced off much of its border with Serbia.
The Freedom Party's leader, Heinz-Christian Strache, who is now vice chancellor and who met Orban later on Tuesday, has said Austria should move away from its usual western European allies, including Germany, by joining Visegrad - but Kurz and Orban said that was not on the agenda.
"Neither the Visegrad states have the desire to expand the group of Visegrad states nor is there the desire here to join," Kurz said. "What is needed is good cooperation between neighboring states, between Austria and Hungary."
Foot in both camps
Kurz has sought to reassure allies that his government will be pro-European, even though he and Strache favor a smaller EU that focuses on fewer tasks, especially securing its external borders.
He has sided with Visegrad in saying the EU should stop pushing countries to take quotas of relocated asylum seekers.
But he supported the bloc's steps against Poland for threatening the rule of law and democratic principles. And he has taken steps that could complicate a rapprochement with Orban.
Kurz'sgovernment is continuing Austria's decades-old policy of opposing nuclear energy, and said this month it would sue the European Commission for allowing Hungary to expand its Paks power plant.
It has also decided to curb child benefits for workers whose children live in poorer countries, including Hungary. Visegrad member Slovakia has already objected, and Hungary has said people who pay the same taxes in Austria should be entitled to the same benefits.
The two sides repeated their disagreements on those points, but Orban said Budapest would treat them as European rather than bilateral issues and not let them harm the two countries' ties.
"Austria understands us, and also understands western European countries. The role it set for itself is very favorable for Hungary," Orban said. "I am grateful to the Chancellor for defining a bridge role [for Austria]."