My advice on buying property is a bit different than others. This is coming from purchasing a house in the city, a tree farm, small property attached to the farm, and a foreclosed house on the small property.
First figure out what you can afford to pay monthly then aim for paying only 80% of that. That will give you some extra overhead incase something breaks or any other expenses pop up.
Don't buy the first place you find look at lots of properties, if you are looking in different regions have a different agent in each and tell them what you are looking for. Expect for them to do a shitty job and miss over half your requirements, I had a requirement for highspeed intranet and kept getting properties where the only option would be to get satellite. We looked for about 2 years off an on in the Northern Kentucky triangle (Cincinnati, Louisville, Lexington each is 100mi apart).
Get the longest term loan you can as long as the interest is not to high. Often the total out of pocket expense will be higher if you go the full-term but the monthly will be lower and easier to manage when things come up. Setting a spread sheet and/or using an online calculator is great for this.
You might find a 15yr loan will cost you 32K in interest at the end paying $736 monthly.
The 30yr will cost 51K in interest paying $422 monthly ($314 less monthly).
This is 19k more in interest you could consider this a monthly insurance penalty of $52.77 ((19000/30)/12).
Now if you pay that "penalty" every month on the 30yr it will save $9500(in interest) at the end of the loan and be paid off 5yr 1mo early still leaving you with $261 extra and the end of each month to put to the property or other debts.
Just for fun if you wanted to pay the interest "penalty" over 15yrs instead of 30yrs the extra $105.55 (still have $208 left over) the property will be paid off 8yrs and 7months early saving $16000 in interest.
Please do your own math based on your interest rates, and make sure there is no penalty for paying it off early.
Before paying extra on any loan I recommend to have a minimum of 3 months sitting in an account to cover the mortgage if you lose a job or get injured. I try to do this always have in the fund taxes and insurance covered, and realistically this amount should cover all required expenses (loans, bills, food...).
My last requirement when buying property buy in unincorporated areas or an area with little to o building codes, it will save you time and money.