1. For the purpose of promoting health, safety, morals, or the general welfare of the community, the governing bodies of cities and counties are authorized and empowered to regulate and restrict the improvement of land and to control the location and soundness of structures.
2. Any such regulation, restriction and control must take into account:
(a) The potential impairment of natural resources and the total population which the available natural resources will support without unreasonable impairment; and
(b) The availability of and need for attainable housing in the community, including attainable housing that is accessible to persons with disabilities.