Countries bordering Panama are Costa Rica in the Northwest and Colombia in the Southeast . Panama is located in Central America , bordering both the Caribbean Sea and the Pacific Ocean , between Colombia and Costa Rica .