It is mentioned in the Vinaya rules that a monk is not allowed to reside under the same roof with a woman.
How does that apply to multistoried (condominiums, flats, apartments) and multi-compartment buildings (terrace houses), where the flats, terrace houses, share one roof?
This has become a complex question with various interpretations because of modern conditions.
The spirit of the rule is very important — avoiding possibilities of intimacy — while the interpretation will depend on the monk and the circumstances.
In countries without proper monasteries there will always have to be something of a compromise.
Learn more about the Theravadin Buddhist Monk’s Rules here: