Buying a cortijo

I would like to buy a small cortijo here in Andalucia, just 1 or 2 rooms plus a few hundred meters of land with some fruit trees. I keep hearing that the one I choose might not be legal to live in all the year.
Can someone please tell me how to check this.
Thanks in advance

Seems obvious, but your townhall will know

Just in passing,  what you have described is usually referred to as a ‘finca'


PS. Quote. https://www.propertyshowrooms.com/spain … /rural.asp

. A Cortijo is a Spanish Home located in a rural setting, however the difference between a Finca and Cortijo is sometimes difficult to spot. Generally, a Cortijo is a more upmarket Property usually offering stables or similar extras.