A mafʿūl fīhi / ẓarf locates an event in time or space.
Unspecified time: dahr, ḥīn. Delimited time: day, night, month, year. Both can appear as accusative time adverbials in the source pattern.
Unspecified place: khalf, amām — accusative with understood fī.
Delimited place: house, market, mosque — location is expressed with actual fī and a genitive noun.
Parse the subject, adverbial, any preposition, and each term of iḍāfa separately.