... trespassing, taking pictures and when I was going down security guards came brought me into there office and detained me. I tried to film but there threaten to take my phone so I need some questions answered

1 what can I and can’t I do whilst being detained?

2 Can they detain me?

3 what rights do I have?

4 Can they touch me?

5 Can they search me or my belongings?

6 can I film?

7 Can they look through my phone and delete the pictures?