Buying a home in another country can be rewarding, but rules on ownership, taxes and inheritance differ widely.…