Hundreds of apartments and other buildings were either completely destroyed or rendered uninhabitable.