Intrahepatic cholangiocarcinoma occurs in the parts of the bile ducts within the liver and is sometimes classified as a type of liver cancer.