I think the only long term solution is a federal land and building tax. This is too important to leave to states (and definitely local) governments. A high tax with no credits, deductions, exemptions.
Then, from this tax, we can pay "forward" every adult tax payer (not children, only adults) a fixed amount that pays the cost of an imaginary nationwide median cost of a two bedroom unit. Only adults, all adults, regardless of whether you have no child or eight children. Must file a federal income tax return to qualify. Median nationwide cost somehow calculated and weighted by population, hopefully updated more than once a decade.
Everybody from Amazon.com to Walmart pays this land + building tax regardless of whether they are in Manhattan, New York or Deport, Texas. No exceptions.