When I think about it, people in SF should know better; but based on personal experience bad offensive remarks happen a lot more often than most people would think for such a progressive city. It's one reason I hate the thought of working in the city again.
The last part better explains it. It doesn't change the fact that it was sexism, but I categorize this one as stupidity and awkwardness instead of malice.