Shipping costs for Automorphic Functions and the Geometry of Classical Domains