Public transportation is quite good in Portugal, with trains and buses connecting most cities and towns. For some of the more remote areas like the Algarve or Douro Valley, it may be worth renting a car to have more flexibility. The estimated total cost for transportation in Portugal is around $150, and travel time will vary depending on the destinations and mode of transportation.
If you have more than 10 days, consider adding a few days in Madeira, an island paradise filled with mountains and lush vegetation. If you have less than 10 days, consider skipping the Algarve or Douro Valley, as they are more remote and require more travel time. Also, be aware that the summer months can be quite crowded and hot, so consider traveling in the shoulder months of May-June or September-October for better weather and fewer tourists.