But climate change is throwing a snag in one of the most important considerations during the home-buying process—location.