castle built into a cliff