How close to inspections or photography should presale cleaning be done?

Ideally just before photography and open inspections. This ensures the home looks fresh, smells clean, and feels cared for when it matters most.