A San Rafael teen accused of stealing a Lamborghini in San Francisco and also trying to kill two people in Mill Valley lost a motion Monday to have the two cases tried separately.

Max Wade, 18, pleaded not guilty to all the charges, and he returns to court Jan. 15 for further motions possibly to set a trial date. He remains in custody in lieu of $2 million bail.

Authorities allege that Wade rode a motorcycle next to a pickup on April 13 in Mill Valley and fired a handgun at a teenage couple inside. The alleged victims, Landon Wahlstrom and Eva Dedier, escaped with minor injuries from flying glass.

Authorities allege that Wade tried to kill them because Dedier had rejected him romantically. At the preliminary hearing, Dedier testified that she knew Wade because he supplied fake IDs to her and her friends. Sometimes, she told the court, Wade was driving a yellow Lamborghini.

The prosecution alleges that Wade stole the Lamborghini in March 2011 from British Motor Cars, a luxury car dealership in San Francisco. The car — which belonged to restaurateur and TV chef Guy Fieri — was not recovered for another 10 months, after Marin sheriff's investigators had identified Wade as the suspect in the Mill Valley shooting.

With Wade under heavy surveillance, investigators were able to track him and the Lamborghini back to a storage facility in Richmond where he allegedly kept the car. Investigators searched the storage container and seized the Lamborghini, a motorcycle, weapons and ammunition, fake IDs for three states, equipment to jam radio and cell signals, a replica police uniform and writings about alleged plans for more crime.

In October, Judge Kelly Simmons ruled there was sufficient evidence to hold Wade for trial.

Wade's attorney, Charles Dresow, filed a motion arguing the San Francisco case and the Mill Valley case should be tried separately because they are different classes of crimes. He also said there was no evidence that Wade used the Lamborghini to impress Dedier, so the two sets of alleged crimes are unrelated in their commission.