How close for the toilet and vanity
30" clear across so 15" from center of the flange to either side is the minimum. There is a little wiggle room like 1/2-1" less on one side if the other side is completely open and you have to consider the size of the occupants.