How a Spanish city was named one of the best places to live after prioritising pedestrians