In Star Trek Into Darkness, specific episodes in Voyager and on other occasions, we see the homes of Starfleet officers, as well as hundreds of sky-scrapers and other large buildings. In these buildings, all different sizes and shapes, it is fair to assume that some residences would be more luxurious or desirable than others.
My question is: in Star Trek, we know that the federation no longer values money, and instead works to better themselves (as seen in TNG series 1, episode 25, 'The Neutral Zone') as seen in this quote from Picard:
PICARD: That's what this is all about. A lot has changed in the past three hundred years. People are no longer obsessed with the accumulation of things. We've eliminated hunger, want, the need for possessions. We have grown out of our infancy.
So how are living quarters assigned to people, if not bought, and why are some people assigned better quarters than others? Also, what happens when there is a conflict over who gets assigned better living quarters?
I sourced my quote from this link.
Thanks to anybody who answers!