I think you did the right thing by bringing the litter box upstairs. Looks like you've solved the problem. Hopefully the vet visit will go smoothly.