All self respecting industry operations in Sweden (steel, wood, papermills, weapons) had their own seaside resorts for workers from about 1920 to the late 1980-ies. Most had housing and company clinics too. Some of these companies were state owned, some in private hands. It all ended when the world went stock-market crazy and the maximize profit guys started to "core-business" the industries, and colsolidation started.
I think that capitalism was kind of hi-jacked by the money guys at that point. Lots of company towns where, if not thriving, getting along, working. Not super profitable but doing ok.
Then practically overnight they turned to wasteland when the mills closed.