Its per capita rate of violent crime made it the second most dangerous city in America, but its citizens still paid some of the highest rents in the country. Gravity works backward here—the money flows uphill. The whiter and wealthier neighborhoods in the hills boast good schools, low crime, and views of the bay. Thanks to the Bay Area’s high-tech boom,

