With regard to what is expected in a muslim country with regard to clothing you will find that within the hotel complex, by the pool it is the same as anywhere - swimsuits & bikinis -but outside of the hotel, you should be prepared to dress more modestly. Moroccan women go to the beach covered from head to toe!
For example it is better to wander the town & go sightseeing in shorts that are not too brief - mid thigh to knee length are better - with a T shirt not a bikini top. Sundresses can be worn but it is a good idea to have a blouse or little cardi - or pashmina - with you to cover up when necessary. You can, of course, do what you like but I always think it is better to be a bit considerate & respectful and you will be treated better.
When I was there, women were not allowed into the mosques as they are in Turkey so I was unable to see any - except from the outside. If by any chance that ruling has been changed, you would be expected - as you are in Turkey - to at least cover your shoulders and upper arms and sometimes your head.