This is almost exactly the same as what I am helping someone workout on another question.
Way to include posts both with & without certain meta_key in args for wp_query?
If I’m wrong and I have misunderstood what you need, let me know and I’ll try to help.