Four days of sensory overload, three hours from most of Europe.
This is a shape, not a schedule. Each day has two anchors and a lot of slack, because 3-day itineraries that book four things a day fall apart the first time lunch runs long. Move things around freely — the neighbourhoods are grouped so that walking between stops actually works.
Riads are the group win here: a whole six-room riad with a cook and a courtyard often costs less than three hotel rooms. Book the whole property and eat at least two dinners in.