Your best option would be getting a nifty little device called an MPPT solar charge controller.
Amazon.com : MPT-7210A Solar Controller street home charging system to adapt to 24/36/48/60 : Garden & Outdoor
www.amazon.com
You then have a couple of options:
1. You could wire a 12V solar panel straight to the input of the MPPT charge controller, and then the output to your 52Volt ebike battery.
2. A better option is to use the extra battery in your trailer (eg. a 12V deep cycle battery) to charge your ebike battery using the same MPPT charge controller. Just wire the 12V battery to the input of the MPPT charge controller, and then the output of the MPPT to your 52Volt ebike battery.
Option 2 means you can can run your fridge and charge your ebike battery from the 12V battery in your trailer. You then run your 12V solar panel to charge the 12V battery in your trailer. The solar panel will also need another normal solar charge controller to charge the 12V battery, but these are much cheaper since they don't need to increase voltage. Here is one here which will do the job:
Amazon.com : 20A Solar Charge Controller Solar Panel Battery Intelligent Regulator with Dual USB Port 12V/24V PWM Auto Paremeter Adjustable LCD Display : Garden & Outdoor
www.amazon.com
Your 52V Li-ion battery will need to be charged up to 58.8V. I believe the MPPT controller can be dialed in to whatever voltage and amperage your battery requires to be charged at. Although it doesn't specify a 52V battery on the listing, I believe you can set the output voltage and current according to the actual requirements of your battery.
Hope this helps!