> Is there any sort of constantly updated "off-limits area map", or is it just common knowledge?
No maps - just common local knowledge. Some areas you avoid completely, some you just avoiding walking or driving through late at night.
> How does security in wealthier neighbourhoods look like?
Most new higher-end developments are fenced-off security complexes - electric fencing all around, and 24/7 security services. But there are still many "regular" suburbs without that. In those you typically have security patrols, and individual houses may or may not have electric fencing, depending on the area.
> Is hiking in the wild risky?
Depends on the area. In some areas you just avoid hiking alone. The more remote areas typically have no safety issues.
> Is public transport generally to be avoided, or are there "better and worse" services?
Most (but not all) wealthy people avoid local public transport ("taxis" and trains) - they do have safety (and reliability) issues. There are good options in some places - e.g. a high-end train in Johannesburg & Pretoria, and Uber is a decent option in most cities. Long distance busses and trains are also typically fine.
> As far as electricity blackouts go, everyone has a generator, right?
No, generators are mostly only by businesses. Too noisy and too much effort to use for most residences.
The cheap solutions involve getting a mini backup power supply for your internet router, and some battery-operated lights. That + some planning around e.g. cooking gets you through most outages.
Recently, battery backup + solar became very popular for everyone who can afford it. Prices for solar and batteries dropped substantially over the last 5-10 years, and the entire installed system costs around 1/3rd of what you'd pay in the US.
> Is there never a shortage of diesel for those generators?
We've had one shortage that I remember over the last couple of years. It's much more relevant for vehicle fuel than generators.
> What about the pollution that comes from running generators several hours a day?
Much less than that of cars and our coal power stations. Noise is the biggest issue.