I've searched for advice on men's dress code in Jordan and the summary of the answers I've seen is along these lines: "It's preferred that men not wear shorts - but if they do they should be the long shorts and only in the tourist areas".
I will be touring Petra in the morning and plan on wearing long shorts due to the heat. I have rented a car for my drive to the Dead Sea. I plan on stopping in Karak on the King's Highway to see the castle. Will I be out of place in this small town if I am still wearing the shorts I wore in Petra?