Check with pet smart or pet co, I’ve seen items in the stores,
if it is hard wood good luck,
I know I'm going to hear about this one,
But a long time ago ... I had a dog that was going on the corner of my bed, I tried everything to get him to stop, I was told by and old man once ... to rub the dogs nose in it, but you have to catch them in the act.
I still have the dog 15 years later and no more pee all it took was one good nose rubbing.
but again that was 15 years ago .... Today it would be animal abuse. Start a the pet store or a carpet cleaners.
Best of luck