// Geographic data for delivery map
// Coordinates are normalized to a 100×75 viewBox, centered roughly on Ankara.
// Not a true projection — stylized layout tuned for legibility.

const GEO = {
  // Ankara HQ
  hq: { x: 50, y: 46, label: "İVEDİK OSB", note: "MERKEZ · HQ" },

  // Ankara's 25 districts — coords roughly match relative geography
  ankara: [
    // Central metropolitan
    { x: 50.5, y: 46.0, name: "Yenimahalle", zone: 1, tag: "MERKEZ" },
    { x: 51.5, y: 46.5, name: "Çankaya", zone: 1, tag: "MERKEZ" },
    { x: 50.8, y: 45.3, name: "Altındağ", zone: 1, tag: "MERKEZ" },
    { x: 52.2, y: 45.7, name: "Mamak", zone: 1, tag: "MERKEZ" },
    { x: 49.7, y: 46.6, name: "Etimesgut", zone: 1, tag: "MERKEZ" },
    { x: 48.8, y: 47.2, name: "Sincan", zone: 1, tag: "MERKEZ" },
    { x: 51.6, y: 44.5, name: "Keçiören", zone: 1, tag: "MERKEZ" },
    { x: 52.5, y: 46.9, name: "Pursaklar", zone: 1, tag: "MERKEZ" },
    { x: 52.3, y: 44.2, name: "Gölbaşı", zone: 1, tag: "MERKEZ" },
    // Outer districts
    { x: 47.0, y: 49.0, name: "Polatlı", zone: 2, tag: "KIRSAL" },
    { x: 54.5, y: 43.0, name: "Kalecik", zone: 2, tag: "KIRSAL" },
    { x: 48.5, y: 43.8, name: "Kazan / Kahramankazan", zone: 2, tag: "KIRSAL" },
    { x: 50.5, y: 41.8, name: "Çubuk", zone: 2, tag: "KIRSAL" },
    { x: 52.8, y: 42.2, name: "Akyurt", zone: 2, tag: "KIRSAL" },
    { x: 47.5, y: 44.5, name: "Ayaş", zone: 2, tag: "KIRSAL" },
    { x: 53.8, y: 48.2, name: "Bala", zone: 2, tag: "KIRSAL" },
    { x: 46.0, y: 45.6, name: "Beypazarı", zone: 2, tag: "KIRSAL" },
    { x: 44.8, y: 45.0, name: "Nallıhan", zone: 2, tag: "KIRSAL" },
    { x: 45.5, y: 47.0, name: "Güdül", zone: 2, tag: "KIRSAL" },
    { x: 49.0, y: 50.5, name: "Haymana", zone: 2, tag: "KIRSAL" },
    { x: 54.0, y: 40.5, name: "Şereflikoçhisar", zone: 2, tag: "KIRSAL" },
    { x: 52.0, y: 50.3, name: "Elmadağ", zone: 2, tag: "KIRSAL" },
    { x: 53.2, y: 41.0, name: "Çamlıdere", zone: 2, tag: "KIRSAL" },
    { x: 50.7, y: 40.4, name: "Kızılcahamam", zone: 2, tag: "KIRSAL" },
    { x: 46.5, y: 50.0, name: "Evren", zone: 2, tag: "KIRSAL" },
  ],

  // Surrounding provinces with a few key towns each
  provinces: [
    {
      key: "konya",
      name: "KONYA",
      hub: { x: 28, y: 65 },
      towns: [
        { x: 28, y: 65, name: "Konya (merkez)", hub: true },
        { x: 26, y: 62, name: "Selçuklu" },
        { x: 30, y: 63, name: "Meram" },
        { x: 23, y: 67, name: "Ereğli" },
        { x: 32, y: 58, name: "Cihanbeyli" },
        { x: 27, y: 69, name: "Karapınar" },
      ],
    },
    {
      key: "eskisehir",
      name: "ESKİŞEHİR",
      hub: { x: 36, y: 36 },
      towns: [
        { x: 36, y: 36, name: "Eskişehir (merkez)", hub: true },
        { x: 34, y: 34, name: "Tepebaşı" },
        { x: 37, y: 37, name: "Odunpazarı" },
        { x: 33, y: 38, name: "Sivrihisar" },
        { x: 31, y: 35, name: "Çifteler" },
      ],
    },
    {
      key: "kayseri",
      name: "KAYSERİ",
      hub: { x: 72, y: 58 },
      towns: [
        { x: 72, y: 58, name: "Kayseri (merkez)", hub: true },
        { x: 74, y: 57, name: "Kocasinan" },
        { x: 73, y: 59, name: "Melikgazi" },
        { x: 70, y: 55, name: "Talas" },
        { x: 75, y: 61, name: "Develi" },
      ],
    },
    {
      key: "sivas",
      name: "SİVAS",
      hub: { x: 85, y: 40 },
      towns: [
        { x: 85, y: 40, name: "Sivas (merkez)", hub: true },
        { x: 87, y: 38, name: "Yıldızeli" },
        { x: 83, y: 42, name: "Şarkışla" },
        { x: 88, y: 43, name: "Kangal" },
        { x: 86, y: 36, name: "Suşehri" },
      ],
    },
    {
      key: "cankiri",
      name: "ÇANKIRI",
      hub: { x: 57, y: 24 },
      towns: [
        { x: 57, y: 24, name: "Çankırı (merkez)", hub: true },
        { x: 60, y: 22, name: "Çerkeş" },
        { x: 55, y: 26, name: "Orta" },
        { x: 58, y: 20, name: "Ilgaz" },
      ],
    },
    {
      key: "kirikkale",
      name: "KIRIKKALE",
      hub: { x: 60, y: 43 },
      towns: [
        { x: 60, y: 43, name: "Kırıkkale (merkez)", hub: true },
        { x: 62, y: 41, name: "Yahşihan" },
        { x: 63, y: 45, name: "Keskin" },
        { x: 58, y: 45, name: "Balışeyh" },
      ],
    },
    {
      key: "aksaray",
      name: "AKSARAY",
      hub: { x: 44, y: 62 },
      towns: [
        { x: 44, y: 62, name: "Aksaray (merkez)", hub: true },
        { x: 46, y: 64, name: "Güzelyurt" },
        { x: 42, y: 60, name: "Ortaköy" },
      ],
    },
    {
      key: "bolu",
      name: "BOLU",
      hub: { x: 35, y: 20 },
      towns: [
        { x: 35, y: 20, name: "Bolu (merkez)", hub: true },
        { x: 33, y: 18, name: "Gerede" },
        { x: 37, y: 22, name: "Mudurnu" },
      ],
    },
  ],
};

window.GEO = GEO;
