Road trip from Marbella to portugal

We are planning to have a road trip from marbella to malaga.

I need help to make an itinerary (places to stay)to see as much as while driving to lisbon im planning to have a 1 night stop over per area if needed to. Plus I need to have a 30 mins to 1 hour rest every two hours.i prefer to have safe drive that to hurry driving.we might leave marbella on the 16th and returning on the 19th or 20th-23rd thanks