As you know, the same is true in the USA (replacing Socialist with Democrat). New Yorkers and Californians have systematically voted for the federal Democrats. Folks in the Gulf of Mexico, not so much.
The Ocean theory breaks down in Canada thanks to Ontario and Quebec being oceanically challenged and Atlantic Canada being all over the political map. Still, Alberta is staunchly Conservative. And there are no oceans in Alberta.