On our first house it was the house, then the price, then location, then view. Three houses later to me the house is the least important of the four factors …
#1 Neighborhood
#1.b. precise location within the neighborhood (e.g. house with wider lot, low-traffic street, etc)
#2. Price
#3. View (e.g. neighbors junk-yard versus area/canyon/water), as well as how much sky you can see. Don’t like the “closed-in” feeling.
#4. The structure.
#1 and #3 I cannot change. #2 is driven by #1 and other factors, but I cannot really change I can only try to time the cycle or negotiate. #4, the house itself is the tiebreaker. I go for the thing that can be changed to how I want it for the least amount of total cost (purchase price plus upgrades/remodeling)