Mavs drop Detroit 102-99