// RouteMap.jsx — Kazakhstan corridor map.
// Uses the design reference image (assets/route-map.png).

const routeMapStyles = {
  img: {
    width: "100%",
    height: "100%",
    objectFit: "cover",
    objectPosition: "center",
    display: "block",
    pointerEvents: "none",
    userSelect: "none",
  },
};

function RouteMap({ fit = "cover" }) {
  return (
    <img
      src="assets/route-map.png"
      alt="Карта маршрутов Китай → Казахстан → Россия"
      draggable={false}
      style={{ ...routeMapStyles.img, objectFit: fit }}
    />
  );
}

window.RouteMap = RouteMap;
