The narrow geography of the 50-mile Central American isthmus made it an obvious choice for trade routes between the Atlantic and Pacific.