Whatever you were thinking; think again!
A second thought is so much better than second thoughts.
If you were thinking that a flat is not for you; it may just be that you haven't yet been in one here in Spain.
They can be and often are the most convenient and comfortable forms of accommodation available.
Take this one; it's a great example of having a comfortable convenient home close to all amenities with parking in the basement to keep your car cool and safe and a lift directly up to your door.
Once inside, three good sized bedrooms and two bathrooms, one of which has a hydro massage bath (careful with the bubble bath; it tends to go a bit crazy), a spacious lounge diner and a large kitchen, ideal for informal dining.
I think you would be very hard pushed to find a comparable house at a similar price.
So have that second thought before you have second thoughts.