Hello, I've recently started reading Non Non Biyori for learning purposes and I found this sentence that I can't get my head around. いやいや ウチが住んでるのに田舎なわけないじゃない? The problem is the bolded part. I don't understand how のに and な(だ)work there. Could someone give me a literal translation please?