Most of the nice coastal bits are pricey. Ayr prob has the most properties on offer with varying price points.
Also Troon and Ayr have a history of getting rammed with drunk teenagers in the summer. Googling antisocial sunshine troon/ayr beach and you'll see what I mean.