Very nearby is not correct
Are будинок and хата synonymous?
Хата usually means a rural house for one family, while будинок may be used for larger buildings.
Shouldn't it accept building, then (it doesn't)?
I agree. My understanding is 'building' would even be a better translation - дім being more 'home' or 'house'.