Working in IL and TX , home in Tx but also buying an apartment in IL - tax implication

Hello 

I live and work from home right now -Houston Tx. My new role within my organization is technically Chicago, IL based. But I will have flexibility to work from home in Houston and only go few % of work days to actual office in Chicago - lets say I badge in 100 days in a year at Chicago office. For those 100 days I plan to buy a Chicago downtown apartment as well the rest days I will fly back to Tx home and live with family in Houston. 

My family is based in Houston and will be that way going ahead, and wife works for Houston based role and we have so far file married jointly.

What are my tax implications here and how can I position myself better for 2021 and ahead? Say how can I use my work from home option flexibility to optimize my tax? Does idea of buying an apartment in Chicago make my IL state tax situation more unfavorable? My role started this year 1 Jan and I haven't traveled any day yet just because we also have a big corporate office in Houston and because of covid offices haven't opened, so am still Houston based employee as I have not initiated my relocation internally.

Some kind advice and guidance will be greatly appreciated.

Cheers

HK