In the following passage, identify the meaning of the word inequity in context:
Despite the city's grand architecture and bustling streets, the persistent inequity in living conditions between the affluent districts and the neglected neighborhoods was alarming. Residents of the latter often remarked on the stark contrast, feeling the weight of their circumstances every day. While the wealthy enjoyed access to quality healthcare and educational institutions, the underserved communities struggled with inadequate resources and limited opportunities.