Here are two articles I wrote with some ideas:
San Diego article:
We loved the Alcatraz tour in San Francsico, but book far in advance. You can walk to the tour place from the pier.
For the other ports, would you mind posting on the Mexico board, and we will get some ideas for you there.
I do have an article coming out on Cruisemates on horseback riding in Mazatlan