Costa Rica is a rugged, rainforested Central American country with coastlines on both of its Caribbean and Pacific sides.