All perfect praise be to Allaah, The Lord of the Worlds. I testify that there is none worthy of worship except Allaah, and that Muhammad is His slave and Messenger. We ask Allaah to exalt his mention as well as that of his family and all his companions.
The shortening of the prayers during those days was the proper and correct procedure. So you acted properly, Insha' Allaah, as you only stayed four days. According to the majority of scholars, it will be an obligation upon a person to perform the prayers fully if he/she stays more than four days. Whoever intends to stay only four days, can shorten the prayer. The evidence is what Ibn 'Abbaas and Jaabir narrated. They narrated that the Prophet came to Makkah on the morning of 4th of Thul-Hijjah. So he stayed the 4th, the 5th, the 6th and the 7th, and on the 8th after he prayed Fajr, he went to Mina. He shortened all his prayers during these days in Makkah and had intended to stay for this period. [Al-Bukhari and Muslim] Moreover, during your stay, you used to travel from one place to another, so you are considered a traveller anyway. So your shortening of the prayers is in accordance with the Sunnah of the Prophet .
Allaah knows best.