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, but 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. If worse comes to worse, you might try cage confinement as a temporary solution or even hormone therapy if your vet agrees.
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 cut-out 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.