Question: costa rica is located between which two countries
Answer: Costa Rica ( / ˌkɒstə ˈriːkə / ( listen ) ; Spanish : ( ˈkosta ˈrika ) ; literally `` Rich Coast '' ) , officially the Republic of Costa Rica ( Spanish : República de Costa Rica ) , is a country in Central America , bordered by Nicaragua to the north , the Caribbean Sea to the northeast , Panama to the southeast , the Pacific Ocean to the southwest , and Ecuador to the south of Cocos Island .