"that's worth living" is doing some Herculean lifting there. I'm sorry to inform you that only the wealthy can live in the places you deem "worth living". You are not using the phrase "middle-class" correctly.
I'm not coming at this from a rural perspective. I live in the greater NYC area. I have friends in NYC. They make a lot of money and live very close to Grand Central, and even they don't live in $1M properties.
I will generally concede to you, sure lol
I have lived in both NYC and Southern California, and I was mostly thinking about SoCal, where in general one assumes a basic middle-class house in a reasonably decent area is going to cost $1m. Do they always? Not necessarily, but even fairly modest houses like my parents house now exceed $1m in value easily.
Out of curiosity, do your friends own condos? Doesn't even a studio condo on the UES cost at least like $600k base (i.e. not counting any fees related to the sale, nor any ongoing HOA)?