When my mother is no longer alive and my daughter moves out, the house is anyway much too big for me and with the large garden, it also means too much work for me.
But it’s not that far yet, and who knows what else will happen in life.
Why don’t you simply stay living in the house or the vacant apartment and thus remain close to your mother and have plenty of time for her as long as she is still here. In this situation, such a house project, possibly even a multi-family house, does not sound like stress relief; plus the divorce issue.
If the court wanted to oblige you to make a payment, it would not evict you and your daughter from the apartment.
If you really pursued your previous solutions, I see you sinking even deeper into the whirlpool; to me, it seems a bit like a reactive action prompted by the imminent verdict.
Five years of marital dispute and now you are looking for the next drama with a multi-family house or other contortions. I am quite sure that there are much more prudent solutions for this, even if they don’t always bring you the best financial outcome.