Concerning zoning laws, when my father built his house, he really had to be clever in order to dodge the local county's regulations.
1. He had to hire a biologist to convince the county inspectors that the property was not wetlands.
2. The county claimed that he couldn't put in a driveway due to regulations, but my dad found an old satellite image archive, which showed there was a prexisting logging road from decades earlier. This was a loophole that allowed him to install the driveway.
So much of the housing crisis is caused by overregulation, at least in my home state of Washington.