Panama is a transcontinental country spanning the southern part of North America and the northern part of South America. It is bordered by Costa Rica, Colombia, the Caribbean Sea, and the Pacific Ocean. Its capital and largest city is Panama City, whose metropolitan area is home to nearly half the country's 4 million people.