Officials in Costa Rica and Panama are facing criticism as they impose stringent measures on migrants, confiscating their passports and cellphones and restricting access to legal assistance. This comes as they struggle with the challenges posed by a sudden reversal in migration flows, where migrants now move south instead of north.