At the outset of their development, residences primarily served as defensive structures. Medieval castles and fortresses…