small temple on a mountain near a castle in portugal