noun
Abstract space or capacity for something to happen, be added, or be considered. Often used in phrases like ~余地がある (there is room for...) or ~余地がない (there is no room for...).
まだ改善の余地がある。
There is still room for improvement.
疑う余地がないほど明白だ。
It is so clear that there is no room for doubt.
余裕 refers to surplus, composure, or extra capacity in a more concrete or personal sense (time, money, mental space), while 余地 is more abstract and often used for possibilities or logical space.
空間 means physical space or a spatial area, whereas 余地 is abstract and refers to room for action, thought, or possibility.
Compound of 余 (yo, 'extra, surplus') and 地 (chi, 'ground, place'), literally meaning 'extra ground' or 'surplus space', which extended to abstract 'room' or 'margin'.