The common complaints raised by NIMBYs, i.e. residents who oppose development in their neighborhoods, seem to revolve around negative externalities.
For instance, a new tall apartment building being built in the middle of a single-family neighborhood can block or interfere with homeowners' views, create shade over their property, bring crime, bring traffic, higher infrastructure costs, increase strain in local hospitals/clinics, and lower their property value. All of these are technically social costs borne by third parties caused by the private transaction of a plot of land to a different owner and their subsequent construction of the apartment building, i.e. negative externalities.
NIMBYs do not want to suffer these costs, as any sufferer of negative externalities rationally does not want, and because there is presumably no solution to avoid these external costs except by having the apartment blocked, the only solution they rationally see is to block the development.
If one has an interest to prevent negative externalities and their imposed costs on uninvolved third parties, wouldn't this suggest they have an interest alignment with NIMBYs in blocking these developments? Or does the single-family low-density housing favored by NIMBYs create its own negative externalities, like requiring increased travel distance, gas consumption, air pollution, higher taxes, increased allergic reactions, increased heat, etc. for people not from the neighborhood? If so, then that suggests that there are negative externalities with whichever development pattern we choose. What does economics say at this point what approach is more minimizing of negative externalities?