A shorter form of a familiar word
Dovi is recognisably connected to Dovidenia, but the shorter form sounds more relaxed. You may hear it in an informal service encounter as well as between acquaintances. For a visitor who has not yet developed a sense of the relationship, the full form remains a dependable choice, and there is nothing wrong with answering in the same polite register.
A parting wish for your host
Maj sa is directed to one person on familiar terms. Majte sa extends the wish to a group or a politely addressed individual. These forms are useful at the end of a visit, when a bare farewell can feel less personal than you intend. A smile and a brief expression of thanks can complete the exchange.
A farewell that takes a little longer
If a conversation continues at the doorway, you need not assume your first goodbye was misunderstood. A traditional eastern Slovak term, kapurková, describes a final drink associated with leaving a visit. It is not a requirement of hospitality, and you are under no obligation to accept a drink. The word is an interesting cultural detail rather than a phrase to say goodbye.