This immediately made me think of the Heinlein story, "And He Built a Crooked House."
https://en.wikipedia.org/wiki/And_He_Built_a_Crooked_House
If you happen to be familiar with the MBTA, the opening is a treat.
Available in .mobi format.
The Argentinian film Moebius (1996) [1] is based on that story.
[1] https://en.wikipedia.org/wiki/Moebius_(1996_film)