a life that leads to nirvana is detached and inner-oriented , and involves cultivating four virtuous attitudes , known as the palaces of brahma or the heavenly abodes : loving-kindness , compassion , sympathetic joy , and equanimity .