What forms are required for sale of foreign investment property (never rented) in country w/o tax treaty? Long term capital gains will be paid in foreign country of 20%

Can I offset tax paid with us tax due 20%, can I include travel related costs, offset with long term capital losses for stock? what forms and ais there an example?