BRUSSELS -- The European Union and Britain inched ever closer to a Brexit deal, with the leaders of France and Germany saying they expected an agreement could be sealed at Thursday's EU summit.

Positive vibes radiated from French President Emmanuel Macron and German Chancellor Angela Merkel at a joint news conference Wednesday in Toulouse, France, where Merkel said that negotiations were "in the final stretch."

Macron added that "I want to believe that a deal is being finalized and that we can approve it" Thursday, when EU leaders are due to meet British Prime Minister Boris Johnson in Brussels.

Differences between the two sides remained but were narrowing to some technical and complicated customs and value-added tax issues, officials said. Negotiating teams were working into the night at EU headquarters to solve them.

"Good progress, and work is ongoing," EU chief Brexit negotiator Michel Barnier told reporters Wednesday evening.

Johnson, meanwhile, likened Brexit to climbing Mount Everest, saying the summit was in sight, though still shrouded in cloud.

And the EU Parliament's chief Brexit official, Guy Verhofstadt, said Johnson had already moved mountains over the past days, seeking compromise where once he had been unbending.

"Before, the proposals of Mr. Johnson were absolutely unacceptable," Verhofstadt said. "There has been a fundamental shift, that is clear."

But Brexit negotiations have been here before -- seemingly closing in on a deal that is dashed at the last moment. But with Britain's Oct. 31 departure date looming and just hours to go before the EU leaders' summit, hopes were increasingly turning toward getting a broad political commitment, with the full legal details to be hammered out later. That could mean another EU summit on Brexit before the end of the month.

Negotiators were locked inside EU headquarters with few details leaking out. Wild movements in the British pound Wednesday underscored the uncertainty over what, if anything, might finally be decided.

The focus of recent talks has been the thorniest component of a deal: how goods and people will flow across the land border between EU member Ireland and Northern Ireland, which is part of the U.K.

So far, all plans to keep an open and near-invisible border between the two have hit a brick wall of opposition from Johnson's key Northern Irish ally, the Democratic Unionist Party. Leaders from the party met several times with the British prime minister Wednesday as he tried to win their support. Without it, any Brexit deal is likely to be rejected by Britain's Parliament -- which has already voted down prospective deals three times.

Johnson told Conservative Party lawmakers on Wednesday that he believed a deal was close.

Legislator Bim Afolami quoted the prime minister as saying "the summit is in sight, but it is shrouded in cloud. But we can get there."

Northern Ireland is not the only issue. The eventual withdrawal agreement will be a legal treaty that also lays out other aspects of the U.K.'s departure -- including issues like the divorce bill Britain must pay to leave and the rights of U.K. and EU citizens living in each other's territories. It will set up a transition period in which relations would remain as they are now at least until the end of 2020, to give people and businesses time to adjust to new rules.

But the agreement will likely leave many questions about the future unanswered, and Britain's departure is sure to be followed by years of negotiations on trade and other issues.

Even if a deal is inked this week, moves in the British Parliament could still mean another delay to Britain's planned Oct. 31 departure.

U.K. lawmakers are determined to push for another delay rather than risk a chaotic no-deal Brexit that economists say could hurt the economies of both the U.K. and the EU. They have passed a law ordering Johnson's government to seek to delay the departure if a deal isn't in place by Saturday.

Johnson has both promised to obey Parliament's order and vowed to leave the bloc on Oct. 31, deal or no deal.

Parliament has also repeatedly rejected previous attempts at a Brexit deal. With the need to get Parliament's approval looming over negotiations, EU leaders are seeking reassurances from Johnson during this week's summit that he has the political weight to push any new deal through the House of Commons, which is due to meet Saturday for its first weekend session in almost 40 years.

The Brexit talks plodded ahead Wednesday, further delaying preparations for the EU summit. Since the weekend, negotiators have been locked in long sessions on how to deal with detailed customs, value-added tax and regulatory issues under British proposals to keep goods and people flowing freely across the border between Northern Ireland and Ireland.

"Talks have been constructive, but there still remains a number of significant issues to resolve," EU Commissioner Dimitris Avramopoulos said after being briefed by Barnier.

Beyond the questions of disrupting daily life, an open Irish border underpins both the local economy and the 1998 peace accord that ended decades of Catholic-Protestant violence in Northern Ireland. But once Britain exits, that border will turn into an external EU frontier that the bloc wants to keep secure.

The big question is how far Johnson's government is prepared to budge on its insistence that the U.K., including Northern Ireland, must leave the EU's customs union -- something that would require checks on goods passing between the U.K. and the EU.

An alternative is to have checks in the Irish Sea between Britain and Northern Ireland. But Northern Ireland's DUP, the party that props up Johnson's minority Conservative government, strongly opposes any measures that could loosen the bonds between Northern Ireland and the rest of the U.K.

Pro-Brexit Conservative British lawmaker David Davis said success in passing a Brexit deal rests on the stance of the DUP.

"If the DUP says, 'This is intolerable to us' that will be quite important," he said.

DUP leader Arlene Foster said the party had not yet consented to a deal. She tweeted: "Discussions continue. Needs to be a sensible deal which unionists and nationalists can support."

------

Lawless reported from London. Mike Corder and Gregory Katz in London; Lorne Cook and Sam Petrequin in Brussels; and Sylvie Corbet in Toulouse, France, contributed to this report.