The city’s fairy-tale feel is a big reason why it has some of the country’s priciest real estate on a per-square-foot basis.