My initial intention was to travel to different cities.

Those 8 days you prayed tamam you would need to repeat as qasr. This is because when you made intention to stay there you had less than ten days left. So your Zuhr, Asr and Isha prayers you prayed the last 8 days as tamam just repeat those as Qasr.