The next time you’re apartment or house hunting, don’t start by looking for the perfect building or home. Instead, look for the places where you’d like to spend your time—gyms, libraries, restaurants, and so on—and pick a home as close to those amenities as possible.