As above, check out local ordinances. If out of the city limits, then county rules apply,--but cities are always expanding their area of influence. If truly in the 'country' probably you will be ok if you can hook up to a septic system, and if a nosy neighbor doesn't take offense at your living in it. And...California doesn't live like the rest of the US, keep that in mind.
Sounds like a great situation if you can pull it off.
2016 Tiffin 40 QBH
2015 38RSSA, traded
2005 TK3 #1869, 10 yrs of memories,
2017 F450 KR--one more Ford is it
2009 F450 4x4-died; 2010 F450-retired