How urban density dictates how we vote