Quba's appeal divides neatly between the historic town — mosques, bazaars, carpet showrooms — and the mountain scenery that begins just beyond the orchards. The two are best combined over two days, spending one in town and one in the Shahdag foothills.