We used to visit PIL in Spain every August for years and it is horrendously hot.
DH has a Spanish friend there who told us that their rule of thumb is that you don't go outside if your shadow is shorter than you.
Like Rubricenemy said, you can work around it.
IMO it is OK temperature wise early in the morning and in the evening.
Early start to 'do' something eg go to local beach or a market.
Back to the apartment for a long (boozy) lunch and board games on the balcony, then sleep.
Late afternoon out again. Maybe back to the beach, or a restaurant, or 'midnight' swimming.
The plus point is that you're at the beach at quieter times, either before everyone is up or after they've gone home.
Or if possible don't go in the summer.
We had great holidays (pre Ddog) at Easter. Weather was much more bearable and prices were cheaper.
Also, it is interesting to see how other countries 'do' Easter.