In Britain after WWII there was a severe housing shortage and the solution they came up with was “row houses” basically large apartment blocks. The genius part of this was along with this you also got an allotment. A small parcel of land where you could garden and enjoy the outdoors.
There are a few in my city. Not sure how affordable they are though. I don’t plan on buying a house