The hostility/friendliness takes account not only the size but also the allies of each other. It also takes some consideration of distance.
The trade route takes the shortest path from one city to another. We tried to take an alternative path, but it will slow down the game. Sparta should be able to trade with Carthage through Syracusae.

