Private security guards cannot violate your civil rights. You may have been trespassing.. They can detain you until police come... As for the search or some of the other things, you probably ought to see an attorney.
This is for general information only. Nothing in this information should be construed as creating an attorney-client relationship nor shall any of this information be construed as providing legal advice. Laws change over time and differ from state to state. These answers are based on California Law.Applicability of the legal principles discussed may differ substantially in individual situations. You should not act upon the information presented herein without consulting an attorney about your particular situation. No attorney-client relationship is established.
I concur with the previous answer. Private security detaining you does not trigger any constitutional rights violations. If you were arrested and are facing trespass charges, you should consult with a criminal defense attorney to discuss possible outcomes in court.