Hedonic markets and sorting equilibria: Bid-function envelopes for public services and neighborhood amenities