Cordoba’s turbulent history and celestial architecture make for a perfect weekend break