costa rica tours all inclusive

cancun or costa rica in July?
I am planning to take my Mom for a nice vacation (kinda Mother/daughter thing). The timeframe is July 1-18th. I am currently thinking between Cancun or Costa Rica. We are not the type of people who would be happy just spending this whole time at one resort, wetbars and spas. Ideally I’d love to combine a few days on the beach/snorkeling etc with some adventure tours – see Mayan ruins, or going on nature tours. Since I am travelling with Mom, adventure has to be safe
Neither of us has ever being to Mexico or Costa Rica, so any advice will be useful. The biggest concern is rainy season/hurricane season, and also what to do. In Cancun -with day trips to Mayan ruins, horse riding, cenotes, etc – is there enought to do for 18 days? Is it better to stay in all inclusive hotel? In Costa Rica – how rainy is it and what is the general advice you’d give? Thanks in advance
Just by the way you word the comments after your main question, it is easy to see you are really leaning towards Cancun. That’s ok ’cause each location has its pro’s and con’s. Basically, if you love nature, by all means go to Costa Rica.
One BIG disadvantage in answering your question is that you are comparing Cancun (which is a coastal city in Mexico’s easternmost state, Quintana Roo, on the Yucatan Peninsula) with Costa Rica (a Central American country). You cannot get a GOOD answer by comparing a city with a country!
Even though Costa Rica is a small country, it is large enough that weather patterns in the northwest are different from the south and the Pacific side from the Atlantic side. (October is generally the rainiest month in most of Costa Rica.) July could still be okay.
There can be a lot more variety within a country than within a (city) area. Also, whether you plan to rent a car or not, would make a BIG difference in which location to choose. (Without a car, it would not be easy to get around in a country vs a city.)
I wish you luck in your choice. This question was intriguing to me since I am from Mexico (originally) but live in Costa Rica.