Firstly ... this is complex and needs going over in detail with an $800 per hour international tax specialist.
Here is a brief overview just on the facts given to illustrate why you need to see that specialist.
I assume "bought with your partner" means both names on title as joint tenants...