An office building just south of the Gardens Mall in Palm Beach Gardens sold for $30.3 million.