Officials have not attributed any deaths to the 7.7- and 6.6-magnitude earthquakes, but reported damage throughout the country, including in the central provinces of Veraguas, Herrera, Cocle and Los Santos, where most of the destruction was concentrated.
The earlier quake was centred about 10km south-west of the remote community of Pitaloza Arriba in Herrera province, at a depth of 10km, according to the US Geological Survey. It was felt in neighbouring Colombia. Seismologists recorded more than 100 aftershocks, including ones measuring 5.8, 5.5 and 5.2.
The earthquakes toppled buildings near the epicentre and prompted evacuations across the Central American country. Presidential minister Juan Carlos Orillac announced the emergency at a news conference in Panama City, saying homes, schools, healthcare facilities, roads and hotels were among the damaged buildings.
Malitzie Rivera, deputy director of the National Civil Protection System, said 27 people had been reported with injuries ranging from minor to moderate. The agency reported about 420 homes and the same number of public schools damaged, along with seven hotels, at least 13 churches and nine bridges.