Costa Rica is nice. We did the pineapple plantation tour there.
Panama...Colon is not an especially nice city. There are two train tours listed for that cruise. Both are 7 hours long. You can see them by accessing your booking online and looking at shore excursions.