Panama City (AFP) - "Obama has screwed all Cubans," Yadiel Cruz, a Cuban in Panama, said bitterly upon learning the US president had suddenly made it tougher for migrants like him to get into America.

The 33-year-old, speaking to AFP, summed up what many compatriots were feeling as they digested the news in a Catholic shelter in Panama's capital, a waypoint on their trek to the United States.

But, he declared, "for me, I'm not going back."

Around him, dozens of other Cubans expressed sadness or anger on Thursday.

Much of the fury was directed personally at US President Barack Obama for announcing that he has scrapped, with immediate effect, a 1995 policy that had given near-automatic entry to the US to Cubans who managed to set foot on American soil, regardless of their visa status.

The move is part of the broader normalization and warming of US-Cuban relations that Obama helped engineer in 2015 along with Cuban President Raul Castro.

But it means that overland Cuban migrants will now be treated like those who have attempted to cross into the US by water and can be sent back to Cuba -- unless they can convince US officials that they fear persecution or have valid humanitarian reasons to be let in.

The move, made just days before Obama hands the reins of power over to Donald Trump -- a man known for his anti-immigration stance and criticism of the normalization deal -- rattled nerves, sparked frustration and evoked tears here.

- Obama has 'hurt us' -

"We feel sadness because we are all coming with a dream that comes from pain, hunger and a lot of work to get this far," said Lorena Pena, a woman four months pregnant who left Cuba with her husband and four-year-old daughter.

Obama, she said, "screwed up, because what he's done is hurt us -- so he really isn't as good as everyone says."

Ulises Ferrer, a carpenter from Havana, said: "We don't know what we're going to do now. But what we're certain of is that we're not going back to Cuba unless we're dead."

Story continues

The shelter they were in, a simple set-up run by the Caritas charity and featuring just one bathroom, is in the Ancon neighborhood of Panama City.

It was established months ago to accommodate some of the stream of Cuban migrants who had been passing through Central America on their way to Mexico and then to the United States.

The "wet foot, dry foot" policy Obama scrapped had meant that many of them felt they were on their way to a new life in America, once they reached the border.

Their destination hasn't changed. But now the reception and easy access they had hoped for is less likely.

If they are accepted into the United States, however, a 1966 law, the Cuban Adjustment Act, is still valid and offers them a fast-track to residency and legal employment.

- Arduous trek -

The Cubans in Panama were on an overland route that has been used by tens of thousands of others.

Migration from their Communist-ruled island spiked in 2015 and 2016, with the agreement by Washington and Havana to thaw their long-hostile relations.

Many of those fleeing feared exactly what came to pass Thursday: that the rapprochement would see the door close on Cuban migrants being given automatic US entry and residency.

The wave of Cubans, along with a decision by Nicaragua to close its border to them, created a backlog in Panama and Costa Rica that prompted both countries last year to try to shut out arriving Cubans.

- Waiting for Trump -

But while numbers have dropped, the flow hasn't ceased. Many Cubans coming up from South America now pass through the Darien Gap -- a swampy, inhospitable, snake-infested stretch of jungle dividing Panama from Colombia.

"We are thousands of Cubans who have crossed through the middle of the jungle, rivers and dangers," said Yanisel Wilson, a 20-year-old who had crossed through the Darien Gap two days earlier.

Getting even that far meant running a gauntlet of thieving police officers, gangs and money-sucking people-smugglers along the way.

"I'm going to wait a few days to watch the news and see what gets decided. Here we will wait for Donald Trump to take over and see if he will help us," Wilson said.

The ordeals the Cuban migrants have gone through speak to their unwavering determination to reach the United States, regardless of Obama's policy change.

"Where can we go?" asked one Cuban, Julio Hernandez. "We can't go back, nor go on. It's like we're in a stranded boat and don't know what to do."

Some in Havana welcomed Obama's move, however, as a further step to normalization.

Taxi driver Juan Gonzalez, 46, said it was the "best thing Obama has done."

"There is a truce between our country and the United States," he told AFP. "I hope things will get better now."