The coexistence of amenity and biodiversity in urban landscapes