Smoking in public is an infraction. Had you given the officer your identification he could not have searched or detained you further than writing the citation. Since you refused he was given the right to detain you in irdervto effect the citation. Bad move bro.
Search pursuant to arrest is not an illegal search. Whether the arrest was valid will depend. You clearly need an attorney to represent you and they can look at whether there are any grounds to suppress that may help you. Hope that's helpful
Smoking in public is illegal in Newport Beach and other communities. The search and detention was proper. Your consent was not needed. You should have given your ID.
ANDREW ROBERTS CRIMINAL AND TRAFFIC TICKET DEFENSE ATTORNEY
The rule is that warrantless searches are presumed unconstitutional unless the fall under one of the recognized exceptions. The government has the burden to prove that the exception applies. One of the recognized exceptions is a search incident to a lawful arrest. In CA, failure to carry photo identification and to produce to a police officer upon request is a crime and grounds for arrest. Thus, the officer made a lawful arrest in your case and by definition the search of your belongings was legal since it was incident to a lawful arrest.