The coastal town has fiercely preserved its 19th-century character.