Medieval Spanish ghost town to self-sufficient eco-village

I’d love to go and stay (and perhaps live for a few years) in a place like this. You’d learn so much.