Walk as far as like along the beach towards the GG Bridge. To get to the bottom of the bridge (Fort Point) is about 4mi from the Palace. To extend the trek after you walk the Palace, head north across the street to the water and you can follow the Bay either towards the Golden Gate Bridge or East towards Marina Greens and Fort Mason.