In Cha-Am are many resorts with Townhouses, because they are many advantages to own a Townhouse.
If you don´t stay the whole year in Thailand then a detached house could be dangerous, if you have no private secutity, who takes care of your house.
In the most resorts have security, who takes care of the resort 24 hours a day. There are also big walls and cameras surrounded, to make it difficult to break in your house.
The prices of Townhouses are also much more cheaper then detached houses. You can find Townhouses for 800.000 Baht, which is about 20.000 Euros.
More about the Thailand law for buying land for foreigners you find here >> Buy property in Thailand as a foreigner >>.