"returned" and "was" are both simple past. "surprised" is an adjective in this case. "had been built" is past perfect (passive), chosen because the building of the houses happened before you returned.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.
AnonymousI'm not sure if and would change the tense.No, don't change the tenses. They are fine, and natural.