The reason public bathrooms were eliminated is because they become dens for heroin use. Always fun going to the bathroom with your kids to find druggies rolling on the floor with heroin needles scattered about. How do you maintain a bathroom with homeless people injecting heroin? You need police for that, not simple bathroom cleaners. I'm ultra leftist, but this degeneracy of enabling drug addiction and encouraging crime and homelessness only serves to produce more crime, more homelessness, and more suffering.
In European countries, it’s quite common to find public bathrooms with attendants who charge a nominal fee.
In Japan, public bathrooms are common and amazing. (Public trashcans are a different story.)
In cities near SF (excluding Palo Alto), perfectly nice public bathrooms are common in parks.
After all the public bathrooms were eliminated, the city made an app so you can send them pictures of human feces. That way they can send someone out to clean it up. I guess that’s cheaper than maintaining actual restrooms.