Fast answer
For a Martina Franca trip with a car, solve the old-town parking approach before planning the day. Use the parking ring as the first driver check, keep Locorotondo and Cisternino as the nearby inland loop, treat Monopoli as a separate coast-versus-inland decision, and let Alberobello carry the trulli day instead of forcing too many stops. Rail, luggage, traffic, weather, events, ZTL rules, and return timing all stay live checks.
If you only do one thing
Default to a car-led plan that parks before the old-town walk, uses one inland loop on one day, and treats Monopoli as a different coast day rather than an extra stop after Alberobello. If rail, luggage, late arrival, or parking rules are uncertain, use the station or new-town edge as the practical check before committing to the old-town sequence.