castle built into a cliffside