The mixed-use Millennium Plaza with office and retail space in Hallandale Beach sold for $40 million.