Use vinegar or better still, get an enzyme-based odor neutralizer from the pet store. Most supermarket pet deodorizers simply cover the scent for human noses, not cat noses. On the next humid day, you'll notice the lingering odor too unless the odor has been neutralized. If you're ambitious, follow up with steam-cleaning. Then, go to work on the causes.
Many dogs regard the contents of litter boxes as delicious treats.
Occasionally, that habit signals a dietary deficiency, but more often it does not. Try cunning placement of the litter box. Even placing the litter box inside a high cardboard box with a cutout for cat entry may be enough. Stringing a row of noisy ornaments over the entry may discourage some dogs. This behavior problem calls for human ingenuity.