// Comprehensive Bangladesh Administrative Location Data
// Based on actual administrative divisions: 8 Divisions, 64 Districts, ~495 Upazilas
// Unions expanded to 5-8 realistic names per upazila using authentic Bangladesh union data

export interface District {
  name: string;
  upazilas: Upazila[];
}

export interface Upazila {
  name: string;
  unions: string[];
}

export interface Division {
  name: string;
  districts: District[];
}

// ============================================================================
// 8 DIVISIONS
// ============================================================================

export const bangladeshDivisions: string[] = [
  'Dhaka',
  'Chittagong',
  'Rajshahi',
  'Khulna',
  'Barisal',
  'Sylhet',
  'Rangpur',
  'Mymensingh',
];

// ============================================================================
// FULL HIERARCHICAL LOCATION DATA
// ============================================================================

export const bangladeshLocations: Division[] = [
  // ══════════════════════════════════════════════════════════════════════════
  // DHAKA DIVISION (12 Districts)
  // ══════════════════════════════════════════════════════════════════════════
  {
    name: 'Dhaka',
    districts: [
      {
        name: 'Dhaka',
        upazilas: [
          { name: 'Dhanmondi', unions: ['Dhanmondi', 'Kalabagan', 'Jigatola', 'Shankar', 'Rayerbazar', 'Shahabad'] },
          { name: 'Mirpur', unions: ['Mirpur-1', 'Mirpur-10', 'Mirpur-12', 'Rupnagar', 'Pallabi', 'Shah Ali', 'Kafrul', 'Bhashantek'] },
          { name: 'Uttara', unions: ['Uttara Sector-4', 'Uttara Sector-7', 'Uttara Sector-11', 'Uttara Sector-13', 'Uttara Sector-3', 'Uttara Sector-9'] },
          { name: 'Gulshan', unions: ['Gulshan-1', 'Gulshan-2', 'Baridhara', 'Banani', 'Badda', 'Nikunja'] },
          { name: 'Banani', unions: ['Banani', 'Nikunja-1', 'Nikunja-2', 'Mohakhali', 'Mohakhali DOHS'] },
          { name: 'Tejgaon', unions: ['Tejgaon Industrial', 'Tejgaon', 'Niketan', 'Farmgate', 'Karwan Bazar', 'Nakhalpara'] },
          { name: 'Mohammadpur', unions: ['Mohammadpur', 'Tajmahal Road', 'Shyamoli', 'Adabor', 'Lalmatia', 'Rayerbazar', 'Pallabi'] },
          { name: 'Ramna', unions: ['Ramna', 'Shahbagh', 'Segunbagicha', 'Eskaton', 'Naya Paltan', 'Maghbazar'] },
          { name: 'Motijheel', unions: ['Motijheel', 'Paltan', 'Bangshal', 'Gendaria', 'Wari', 'Dayaganj'] },
          { name: 'Paltan', unions: ['Paltan', 'Bijoynagar', 'Naya Paltan', 'Arambagh', 'Motijheel', 'Gulistan'] },
          { name: 'Lalbagh', unions: ['Lalbagh', 'Hazaribagh', 'Chawkbazar', 'Kamrangirchar', 'Azimpur', 'Kashabpur'] },
          { name: 'Wari', unions: ['Wari', 'Nawabpur', 'Kotwali', 'Sutrapur', 'Bangshal', 'Farashganj'] },
          { name: 'Khilgaon', unions: ['Khilgaon', 'Basabo', 'Goribullah', 'Shahjahanpur', 'Tilpapara', 'Mugdapara'] },
          { name: 'Badda', unions: ['Badda', 'Satarkul', 'Beraid', 'Uttarkhan', 'Dakshinkhan', 'Nodda'] },
          { name: 'Rampura', unions: ['Rampura', 'Banasree', 'Merul', 'Bashabo', 'Badda', 'Uttar Badda'] },
          { name: 'Basundhara', unions: ['Basundhara Residential', 'Kuril', 'Bashundhara', 'Vatara', 'Notun Bazar', 'Progoti Sarani'] },
        ],
      },
      {
        name: 'Gazipur',
        upazilas: [
          { name: 'Tongi', unions: ['Tongi', 'Bishwa Road', 'Akhilpur', 'Chandana', 'Miarpar', 'Bajitpur'] },
          { name: 'Kaliakair', unions: ['Kaliakair', 'Sreepur', 'Kashimpur', 'Golakandail', 'Dhirashram', 'Mouchak'] },
          { name: 'Kaliganj', unions: ['Kaliganj', 'Durgapur', 'Chhota Kaliganj', 'Bahadurshadi', 'Nagari', 'Baktarpur'] },
          { name: 'Kapasia', unions: ['Kapasia', 'Taliapara', 'Rayed', 'Tok', 'Singasri', 'Taraganj', 'Kapasia Sadar'] },
          { name: 'Sreepur', unions: ['Sreepur', 'Rajabazar', 'Baira', 'Maona', 'Borokendra', 'Koilati'] },
          { name: 'Gazipur Sadar', unions: ['Tongi', 'Gazipur', 'Bashan', 'Dhirashram', 'Kashimpur', 'Rajbari'] },
        ],
      },
      {
        name: 'Narayanganj',
        upazilas: [
          { name: 'Narayanganj Sadar', unions: ['Fatullah', 'Shiddhirganj', 'Kodda', 'Kalir Bazar', 'Shimrail', 'Kutubpur'] },
          { name: 'Sonargaon', unions: ['Baradi', 'Kachpur', 'Jampur', 'Khalpar', 'Noapara', 'Shambupur', 'Boiddyabazar'] },
          { name: 'Bandar', unions: ['Bandar', 'Sultanpur', 'Barabkunda', 'Nagarkanda', 'Mulaid', 'Madanpur'] },
          { name: 'Araihazar', unions: ['Araihazar', 'Daudpur', 'Kalapahar', 'Brahmanpara', 'Tetuapara', 'Haibatpur'] },
          { name: 'Rupganj', unions: ['Rupganj', 'Bhaluka', 'Kanchan', 'Murapara', 'Ghosher Char', 'Torgaon'] },
        ],
      },
      {
        name: 'Manikganj',
        upazilas: [
          { name: 'Manikganj Sadar', unions: ['Manikganj', 'Khilgaon', 'Baira', 'Dighi', 'Jionpur', 'Bahadurpur', 'Rupsha'] },
          { name: 'Singair', unions: ['Singair', 'Dhamrai', 'Bisundi', 'Jamsha', 'Chala', 'Bainna'] },
          { name: 'Ghior', unions: ['Ghior', 'Daulatpur', 'Harirampur', 'Shivalaya', 'Borun', 'Uthali'] },
          { name: 'Harirampur', unions: ['Harirampur', 'Bahadurpur', 'Balara', 'Daulatpur', 'Ramchandrapur', 'Shivalaya'] },
          { name: 'Daulatpur', unions: ['Daulatpur', 'Tetuljora', 'Lohajuri', 'Paril', 'Gopalpur', 'Karati'] },
          { name: 'Shivalaya', unions: ['Shivalaya', 'Teota', 'Baraigram', 'Auria', 'Gorgoria', 'Daulatpur'] },
          { name: 'Dhamrai', unions: ['Dhamrai', 'Kalampur', 'Balia', 'Digrir Char', 'Ramsahapara', 'Dholar Char'] },
        ],
      },
      {
        name: 'Munshiganj',
        upazilas: [
          { name: 'Munshiganj Sadar', unions: ['Mirkadim', 'Bikrampur', 'Keotkhali', 'Munshiganj', 'Mahishasur', 'Rampal'] },
          { name: 'Sreenagar', unions: ['Sreenagar', 'Baligaon', 'Sholaghar', 'Bhagyakul', 'Hasara', 'Baharia'] },
          { name: 'Tongibari', unions: ['Tongibari', 'Dhalghata', 'Betka', 'Ottarshur', 'Hossaindi', 'Pangsha'] },
          { name: 'Lohajang', unions: ['Lohajang', 'Kumarbhog', 'Kartikpur', 'Beel Naodoba', 'Kachia', 'Kashimpur'] },
          { name: 'Gazaria', unions: ['Gazaria', 'Hossaindi', 'Uttar Gazaria', 'Baluakandi', 'Bhagyakul', 'Chandpur'] },
          { name: 'Sirajdikhan', unions: ['Sirajdikhan', 'Kashimpur', 'Chandrapur', 'Kalagachhi', 'Ichhapur', 'Rarikhal'] },
        ],
      },
      {
        name: 'Narsingdi',
        upazilas: [
          { name: 'Narsingdi Sadar', unions: ['Diatara', 'Chinishpur', 'Alipur', 'Mohammadpur', 'Panchdona', 'Sarishabari'] },
          { name: 'Belabo', unions: ['Belabo', 'Boraki', 'Chhota Balerkandi', 'Gazdia', 'Harishpur', 'Brahmandi'] },
          { name: 'Monohardi', unions: ['Monohardi', 'Jamshara', 'Kandapara', 'Kolmapara', 'Dariapara', 'Ekdala'] },
          { name: 'Palash', unions: ['Palash', 'Ghorashal', 'Bakharnagar', 'Daudpur', 'Shibpur', 'Chandpur'] },
          { name: 'Shibpur', unions: ['Shibpur', 'Gazaria', 'Daulatpur', 'Narandi', 'Rameshdi', 'Arukandi'] },
          { name: 'Raipura', unions: ['Raipura', 'Mirzanagar', 'Panchdona', 'Puran Bazar', 'Kalikapur', 'Chandipur'] },
        ],
      },
      {
        name: 'Tangail',
        upazilas: [
          { name: 'Tangail Sadar', unions: ['Katuli', 'Tangail Municipality', 'Porabari', 'Gabtali', 'Pathrail', 'Sagardighi'] },
          { name: 'Mirzapur', unions: ['Mirzapur', 'Kadim', 'Hamid', 'Dhanbari', 'Kurmi', 'Gorai'] },
          { name: 'Ghatail', unions: ['Ghatail', 'Dhalapara', 'Rasulpur', 'Ghatail Cantonment', 'Singapur', 'Mailenpur'] },
          { name: 'Kalihati', unions: ['Kalihati', 'Bhadra', 'Nagarpur', 'Paikura', 'Dhilpur', 'Elenga'] },
          { name: 'Sakhipur', unions: ['Sakhipur', 'Banshail', 'Shahidnagar', 'Kamalpur', 'Bhawal', 'Bhairab'] },
          { name: 'Basail', unions: ['Basail', 'Delduar', 'Kashil', 'Sagardighi', 'Bajitpur', 'Habla'] },
          { name: 'Delduar', unions: ['Delduar', 'Patharshi', 'Elasin', 'Pakulla', 'Gharinda', 'Bhuapur'] },
          { name: 'Bhuapur', unions: ['Bhuapur', 'Gopalpur', 'Nagda', 'Auria', 'Jenaidah', 'Dhalapara'] },
          { name: 'Dhanbari', unions: ['Dhanbari', 'Ballah', 'Bisha', 'Kunduria', 'Chiknaguri', 'Poradi'] },
          { name: 'Gopalpur', unions: ['Gopalpur', 'Alenga', 'Nagbari', 'Hatiya', 'Borobari', 'Dhanbari'] },
          { name: 'Madhupur', unions: ['Madhupur', 'Aronkhola', 'Ballovpur', 'Chapitor', 'Sholakuri', 'Pochim Shoilmar', 'Alokdi'] },
          { name: 'Nagarpur', unions: ['Nagarpur', 'Nolka', 'Dhobhat', 'Sallabari', 'Dighipara', 'Pakulla'] },
        ],
      },
      {
        name: 'Kishoreganj',
        upazilas: [
          { name: 'Kishoreganj Sadar', unions: ['Barati', 'Eruain', 'Jangalia', 'Pachim Pagla', 'Machihata', 'Bajitpur'] },
          { name: 'Bajitpur', unions: ['Bajitpur', 'Dhalghata', 'Mithamain', 'Char Kishoreganj', 'Bharatpur', 'Daulatpur'] },
          { name: 'Bhairab', unions: ['Bhairab', 'Kulikata', 'Daukandi', 'Khaliajuri', 'Binnafar', 'Kachua'] },
          { name: 'Hossainpur', unions: ['Hossainpur', 'Dighirpar', 'Katiadi', 'Sadar', 'Bajitpur', 'Purbadhala'] },
          { name: 'Itna', unions: ['Itna', 'Khaliajuri', 'Mithamain', 'Austagram', 'Durgapur', 'Baroicha'] },
          { name: 'Karimganj', unions: ['Karimganj', 'Borokenda', 'Machihata', 'Chandpur', 'Moktarpur', 'Bajitpur'] },
          { name: 'Katiadi', unions: ['Katiadi', 'Muktarpur', 'Sadhupur', 'Dhanpur', 'Zoymontop', 'Ramdurlavpur'] },
          { name: 'Kuliarchar', unions: ['Kuliarchar', 'Shohagi', 'Sarar', 'Bajitpur', 'Hosainpur', 'Itna'] },
          { name: 'Mithamain', unions: ['Mithamain', 'Austagram', 'Itna', 'Khaliajuri', 'Baroicha', 'Nikli'] },
          { name: 'Nikli', unions: ['Nikli', 'Brahmangaon', 'Char Nikli', 'Bajitpur', 'Kauripara', 'Dhanpur'] },
          { name: 'Pakundia', unions: ['Pakundia', 'Bolarampur', 'Char Faridpur', 'Daulatpur', 'Mothbari', 'Kamalpur'] },
          { name: 'Tarail', unions: ['Tarail', 'Barabari', 'Saptakandi', 'Dhala', 'Bisamrampur', 'Panchkendi'] },
          { name: 'Austagram', unions: ['Austagram', 'Mithamain', 'Itna', 'Khaliajuri', 'Baroicha', 'Katiadi'] },
        ],
      },
      {
        name: 'Shariatpur',
        upazilas: [
          { name: 'Shariatpur Sadar', unions: ['Chandrapur', 'Palong', 'Shariatpur', 'Burirhat', 'Borokhada', 'Dhamsiddhi'] },
          { name: 'Damudya', unions: ['Damudya', 'Dumki', 'Kadirpara', 'Barguna', 'Kalika', 'Rudrakar'] },
          { name: 'Naria', unions: ['Naria', 'Kedarpur', 'Rarikhal', 'Shimulpur', 'Sureshwar', 'Hasanpur'] },
          { name: 'Zanjira', unions: ['Zanjira', 'Bara Kandi', 'Dakshin Khandar', 'Palong', 'Vashir Char', 'Daulatpur'] },
          { name: 'Bhedarganj', unions: ['Bhedarganj', 'Chandrapur', 'Kadirpara', 'Shariatpur', 'Balikandi', 'Rudrakar'] },
          { name: 'Gosairhat', unions: ['Gosairhat', 'Jajira', 'Naria', 'Dumki', 'Bandarkhora', 'Kedarpur'] },
        ],
      },
      {
        name: 'Rajbari',
        upazilas: [
          { name: 'Rajbari Sadar', unions: ['Rajbari', 'Fulbaria', 'Banibaha', 'Khalia', 'Kalikapur', 'Matikata'] },
          { name: 'Baliakandi', unions: ['Baliakandi', 'Chandani', 'Nayabari', 'Moksedpur', 'Kumarkhali', 'Bahadurpur'] },
          { name: 'Goalandaghat', unions: ['Goalandaghat', 'Daulatdia', 'Uzirpur', 'Vanga', 'Harirampur', 'Char Bhadrasan'] },
          { name: 'Pangsha', unions: ['Pangsha', 'Fulbaria', 'Baliakandi', 'Kusumhati', 'Elchi', 'Rupsha'] },
          { name: 'Kalukhali', unions: ['Kalukhali', 'Gopalpur', 'Bahadurpur', 'Ujirpur', 'Khalia', 'Rajbari'] },
        ],
      },
      {
        name: 'Faridpur',
        upazilas: [
          { name: 'Faridpur Sadar', unions: ['Char Baddya', 'Kanaipur', 'Goalchamot', 'Atpara', 'Khailkuri', 'Bhanga'] },
          { name: 'Boalmari', unions: ['Boalmari', 'Dighirpar', 'Bhanga', 'Chanpur', 'Kamalnagar', 'Satbaria'] },
          { name: 'Alfadanga', unions: ['Alfadanga', 'Boalmari', 'Mirzapur', 'Kamalnagar', 'Gopalpur', 'Surjodoy'] },
          { name: 'Madhukhali', unions: ['Madhukhali', 'Kamarkhanda', 'Sadarpur', 'Jibannagar', 'Bashanda', 'Radhanagar'] },
          { name: 'Bhanga', unions: ['Bhanga', 'Nagarkanda', 'Charbhadrasan', 'Shaltha', 'Kazirbag', 'Kalikapur'] },
          { name: 'Nagarkanda', unions: ['Nagarkanda', 'Bhanga', 'Saltha', 'Faridpur', 'Chandpur', 'Ramnathpur'] },
          { name: 'Sadarpur', unions: ['Sadarpur', 'Charbhadrasan', 'Bhanga', 'North Channel', 'Bahadurpur', 'Dighirpar'] },
          { name: 'Charbhadrasan', unions: ['Charbhadrasan', 'Ramnathpur', 'Goalchamot', 'Charsadipur', 'Gazirtek', 'Harirampur'] },
          { name: 'Saltha', unions: ['Saltha', 'Nagarkanda', 'Bhanga', 'Kazirbag', 'Purba Saltha', 'Pashim Saltha'] },
        ],
      },
      {
        name: 'Gopalganj',
        upazilas: [
          { name: 'Gopalganj Sadar', unions: ['Gopalganj', 'Kashiani', 'Kotalipara', 'Muksudpur', 'Uzirpur', 'Gobra'] },
          { name: 'Kashiani', unions: ['Kashiani', 'Batikamari', 'Ratanpur', 'Gopalganj', 'Baghra', 'Pithalpur'] },
          { name: 'Kotalipara', unions: ['Kotalipara', 'Tungipara', 'Ramshil', 'Bandhua', 'Bapta', 'Sadullapur'] },
          { name: 'Muksudpur', unions: ['Muksudpur', 'Uzirpur', 'Baniara', 'Gopalganj', 'Baligram', 'Dobadia'] },
          { name: 'Tungipara', unions: ['Tungipara', 'Kotalipara', 'Bapta', 'Gopalganj', 'Dumuria', 'Sarbashiddhi'] },
        ],
      },
    ],
  },

  // ══════════════════════════════════════════════════════════════════════════
  // CHITTAGONG DIVISION (11 Districts)
  // ══════════════════════════════════════════════════════════════════════════
  {
    name: 'Chittagong',
    districts: [
      {
        name: 'Chittagong',
        upazilas: [
          { name: 'Chittagong Sadar', unions: ['Chawk Bazar', 'Kotwali', 'Firingi Bazar', 'Sadar', 'Beparipara', 'Patharghata'] },
          { name: 'Panchlaish', unions: ['Panchlaish', 'East Nasirabad', 'West Nasirabad', 'Chandgaon', 'Sholoshahar', 'Kapashgola'] },
          { name: 'Khulshi', unions: ['Khulshi', 'Jamal Khan', 'South Khulshi', 'North Khulshi', 'Dampara', 'Mehedibag'] },
          { name: 'Bayezid', unions: ['Bayezid', 'Faujdarhat', 'Bhatiari', 'Sulakbahar', 'Bashdola', 'Karnafuli'] },
          { name: 'Double Mooring', unions: ['Double Mooring', 'Agrabad', 'Patharghata', 'GEC', 'Nasirabad', 'Chittagong Port'] },
          { name: 'Halishahar', unions: ['Halishahar', 'Majhirghat', 'South Halishahar', 'North Halishahar', 'Kalurghat', 'Bandar'] },
          { name: 'Patiya', unions: ['Patiya', 'Kelisahar', 'Kusumpura', 'Dhapkata', 'Charuchndrapur', 'Kechkiyara'] },
          { name: 'Anwara', unions: ['Anwara', 'Barumchhara', 'Chaturi', 'Banshkhali', 'Jialpur', 'Batora'] },
          { name: 'Raozan', unions: ['Raozan', 'Noapara', 'Kadurkhil', 'Unusnagar', 'Khadirhat', 'Nurabad'] },
          { name: 'Fatikchhari', unions: ['Fatikchhari', 'Bhatiari', 'Dhalai', 'Lelang', 'Samitirhat', 'Najirhat', 'Bibirhat'] },
          { name: 'Hathazari', unions: ['Hathazari', 'Chikdair', 'Fakirhat', 'Mekhal', 'Perolganj', 'Fatikchhari'] },
          { name: 'Sitakunda', unions: ['Sitakunda', 'Barihat', 'Kumira', 'Muradpur', 'Bhatiari', 'Salimpur'] },
          { name: 'Mirsharai', unions: ['Mirsharai', 'Ichhakhali', 'Barabkunda', 'Mayani', 'Katirhat', 'Dhumghat'] },
          { name: 'Sandwip', unions: ['Sandwip', 'Bauria', 'Gachhua', 'Santoshpur', 'Mogdhara', 'Kalapania', 'Harishpur'] },
          { name: 'Boalkhali', unions: ['Boalkhali', 'Khandakia', 'Char Khandakia', 'Sakuchia', 'Sripur', 'Ahla Karaldandia'] },
          { name: 'Rangunia', unions: ['Rangunia', 'Pomra', 'Rajanagar', 'Shilok', 'Hasimpur', 'Rajabazar'] },
          { name: 'Karnaphuli', unions: ['Karnaphuli', 'Shikolbaha', 'Bara Ulu', 'Chota Ulu', 'Chandanaish', 'Banshkhali'] },
          { name: 'Banshkhali', unions: ['Banshkhali', 'Chunati', 'Gandamara', 'Kathara', 'Baharchhara', 'Pukkhuria'] },
        ],
      },
      {
        name: 'Comilla',
        upazilas: [
          { name: 'Comilla Sadar', unions: ['Kotwali', 'Mogoltuli', 'Ranir Bazar', 'Bijoypur', 'Baghmara', 'Char Darir Bazar'] },
          { name: 'Comilla Adarsha Sadar', unions: ['Adarsha Sadar', 'Bijoypur', 'Baghmara', 'Char Darir Bazar', 'Daudkandi', 'Balaghata'] },
          { name: 'Debidwar', unions: ['Debidwar', 'Barkait', 'Elahi', 'Baghmara', 'Jalalpur', 'Dhamti'] },
          { name: 'Barura', unions: ['Barura', 'Shalghara', 'Adra', 'Binni', 'Shaktola', 'Purba Bagmara'] },
          { name: 'Brahmanpara', unions: ['Brahmanpara', 'Chandla', 'Madhabpur', 'Sahilpur', 'Sreepur', 'Purba Bazar'] },
          { name: 'Chandina', unions: ['Chandina', 'Madarsha', 'Mokam', 'Bolia', 'Matbarpur', 'Kashimpur'] },
          { name: 'Chauddagram', unions: ['Chauddagram', 'Alinagar', 'Barkait', 'Jagannath Dighi', 'Kashina', 'Batisa'] },
          { name: 'Daudkandi', unions: ['Daudkandi', 'Bhairab', 'Gauripur', 'Goalmari', 'Boroichar', 'Elahi'] },
          { name: 'Homna', unions: ['Homna', 'Dulalpur', 'Gazaria', 'Saistaganj', 'Bhangabari', 'Chandrapur'] },
          { name: 'Laksam', unions: ['Laksam', 'Ajgara', 'Kandirpar', 'Mudafarganj', 'Shahpur', 'Bijoypur'] },
          { name: 'Meghna', unions: ['Meghna', 'Chhailkur', 'Daudkandi', 'Laksham', 'Gazipur', 'Radhakandi'] },
          { name: 'Monohorgonj', unions: ['Monohorgonj', 'Jibannagar', 'Harinakunda', 'Chandla', 'Bijoypur', 'Barkait'] },
          { name: 'Muradnagar', unions: ['Muradnagar', 'Dhamti', 'Paharpur', 'Brahmanpara', 'Rajapur', 'Barkait'] },
          { name: 'Nangalkot', unions: ['Nangalkot', 'Chhailkur', 'Purba Bangla', 'Barkait', 'Banshbari', 'Chandla'] },
          { name: 'Titas', unions: ['Titas', 'Daudkandi', 'Karimganj', 'Jibanpur', 'Kalyanpur', 'Sreepur'] },
          { name: 'Burichang', unions: ['Burichang', 'Mokam', 'Rajapur', 'Debidwar', 'Bholar Bazar', 'Chandla'] },
        ],
      },
      {
        name: "Cox's Bazar",
        upazilas: [
          { name: "Cox's Bazar Sadar", unions: ['Eidgaon', 'Jhilwanja', 'Pahartali', 'Coxs Bazar', 'Kolatoli', 'Himchari'] },
          { name: 'Chakaria', unions: ['Chakaria', 'Fasiakhali', 'Kakara', 'Harbang', 'Baraitali', 'Surajpur', 'Kaokabdi'] },
          { name: 'Teknaf', unions: ['Teknaf', 'Baharchhara', 'Hnila', 'Sabrang', 'Whykong', 'Naitong'] },
          { name: 'Ukhia', unions: ['Ukhia', 'Rajapalong', 'Jaliapalong', 'Palongkhali', 'Ratna Palong', 'Bhalukia'] },
          { name: 'Ramu', unions: ['Ramu', 'Chakmarkul', 'Rajarkul', 'Kachhapia', 'Garjania', 'Kedermora'] },
          { name: 'Maheshkhali', unions: ['Maheshkhali', 'Kutubdia', 'Dhalghata', 'Matarbari', 'Hoanak', 'Kalamarchhara'] },
          { name: 'Pekua', unions: ['Pekua', 'Rashidnagar', 'Bara Maheshkhali', 'Ukhia', 'Rajabazar', 'Shilkhali'] },
          { name: 'Kutubdia', unions: ['Kutubdia', 'Lemsikhali', 'Bara Ghup', 'Dhalghata', 'Kaiyarbil', 'Alikhali'] },
        ],
      },
      {
        name: 'Feni',
        upazilas: [
          { name: 'Feni Sadar', unions: ['Feni', 'Daganbhuiyan', 'Fazilpur', 'Kalaroa', 'Mochidpur', 'Pachhgachhia'] },
          { name: 'Chhagalnaiya', unions: ['Chhagalnaiya', 'Shubhapur', 'Radhanagar', 'Pathannagar', 'Ishapur', 'Bharaur'] },
          { name: 'Sonagazi', unions: ['Sonagazi', 'Amirabad', 'Char Darir Bazar', 'Moghbazar', 'Bogachhatar', 'Ramnagar'] },
          { name: 'Daganbhuiyan', unions: ['Daganbhuiyan', 'Ramnagar', 'Purba Chandipur', 'Fazilpur', 'Jayalaswar', 'Gilatoli'] },
          { name: 'Fulgazi', unions: ['Fulgazi', 'Munshirhat', 'Dhalia', 'Amjadhat', 'Chitlia', 'Baliganj'] },
          { name: 'Parshuram', unions: ['Parshuram', 'Brahmmanbhog', 'Chhilonia', 'Rampur', 'Barkait', 'Botgram'] },
        ],
      },
      {
        name: 'Brahmanbaria',
        upazilas: [
          { name: 'Brahmanbaria Sadar', unions: ['Kotwali', 'Chandura', 'Majlishpur', 'Bahadurpur', 'Shahpura', 'Harishpur'] },
          { name: 'Ashuganj', unions: ['Ashuganj', 'Akhaura', 'Taltala', 'Sarail', 'Shahbajnagar', 'Durgapur'] },
          { name: 'Akhaura', unions: ['Akhaura', 'Ashuganj', 'Sarail', 'Brahmanbaria', 'Moghogram', 'Durgapur'] },
          { name: 'Nabinagar', unions: ['Nabinagar', 'Bahadurpur', 'Sarail', 'Brahmanbaria', 'Shyamgram', 'Salimganj'] },
          { name: 'Nasirnagar', unions: ['Nasirnagar', 'Chaturiya', 'Gokarna', 'Barura', 'Daudkandi', 'Govindapur'] },
          { name: 'Sarail', unions: ['Sarail', 'Ashuganj', 'Nabinagar', 'Akhaura', 'Brahmanbaria', 'Suaznagar'] },
          { name: 'Kasba', unions: ['Kasba', 'Akhaura', 'Brahmanbaria', 'Nabinagar', 'Salimganj', 'Mehari'] },
          { name: 'Bancharampur', unions: ['Bancharampur', 'Nasirnagar', 'Nabinagar', 'Kasba', 'Durgapur', 'Uchapara'] },
          { name: 'Bijoynagar', unions: ['Bijoynagar', 'Brahmanbaria', 'Sarail', 'Akhaura', 'Nabinagar', 'Chandura'] },
        ],
      },
      {
        name: 'Rangamati',
        upazilas: [
          { name: 'Rangamati Sadar', unions: ['Rangamati', 'Kaptai', 'Batoli', 'Tabalchhari', 'Bangalhalidia', 'Gaindya'] },
          { name: 'Kaptai', unions: ['Kaptai', 'Chandraghona', 'Shuvolong', 'Rangamati', 'Chitmorom', 'Karnaphuli'] },
          { name: 'Kawkhali', unions: ['Kawkhali', 'Ghagra', 'Kalampati', 'Rangamati', 'Rajasthali', 'Borokol'] },
          { name: 'Baghaichari', unions: ['Baghaichari', 'Sajek', 'Marishya', 'Amtali', 'Rupkari', 'Longadu'] },
          { name: 'Barkal', unions: ['Barkal', 'Bilaichhari', 'Longudu', 'Rangamati', 'Boroharina', 'Subalong'] },
          { name: 'Bilaichhari', unions: ['Bilaichhari', 'Barkal', 'Kaptai', 'Rangamati', 'Farua', 'Kengelkhasi'] },
          { name: 'Juraichhari', unions: ['Juraichhari', 'Barkal', 'Bilaichhari', 'Rangamati', 'Machkhola', 'Mongraj'] },
          { name: 'Langadu', unions: ['Langadu', 'Barkal', 'Baghaichari', 'Rangamati', 'Tintahari', 'Bhasanmanik'] },
          { name: 'Naniarchar', unions: ['Naniarchar', 'Kaptai', 'Baghaichari', 'Rangamati', 'Barkal', 'Sajek'] },
          { name: 'Rajasthali', unions: ['Rajasthali', 'Barkal', 'Kaptai', 'Rangamati', 'Kawkhali', 'Borokol'] },
        ],
      },
      {
        name: 'Khagrachhari',
        upazilas: [
          { name: 'Khagrachhari Sadar', unions: ['Chengi', 'Perachhara', 'Kamalchhari', 'Khagrachhari', 'Gobindapara', 'Bhaibonchhara'] },
          { name: 'Dighinala', unions: ['Dighinala', 'Babuchhara', 'Chengi', 'Khagrachhari', 'Borongajiri', 'Betalai'] },
          { name: 'Panchhari', unions: ['Panchhari', 'Dighinala', 'Lakshmichhari', 'Khagrachhari', 'Udalachhara', 'Ultachhari'] },
          { name: 'Matiranga', unions: ['Matiranga', 'Ramgarh', 'Khagrachhari', 'Bhaiyachhara', 'Belta', 'Chhagalnaiya'] },
          { name: 'Mahalchhari', unions: ['Mahalchhari', 'Lakshmichhari', 'Panchhari', 'Khagrachhari', 'Chengi', 'Bhaibonchhara'] },
          { name: 'Ramgarh', unions: ['Ramgarh', 'Matiranga', 'Manikchhari', 'Khagrachhari', 'Chhagalnaiya', 'Panchhari'] },
          { name: 'Manikchhari', unions: ['Manikchhari', 'Ramgarh', 'Matiranga', 'Khagrachhari', 'Betalai', 'Bhaibonchhara'] },
          { name: 'Lakshmichhari', unions: ['Lakshmichhari', 'Mahalchhari', 'Panchhari', 'Khagrachhari', 'Borongajiri', 'Betalai'] },
        ],
      },
      {
        name: 'Bandarban',
        upazilas: [
          { name: 'Bandarban Sadar', unions: ['Bandarban', 'Ruma', 'Rowangchhari', 'Khalid Nagar', 'Kuhalong', 'Rajbila'] },
          { name: 'Lama', unions: ['Lama', 'Alikadam', 'Fashiakhali', 'Aziznagar', 'Rupsa', 'Sarai'] },
          { name: 'Alikadam', unions: ['Alikadam', 'Lama', 'Naikhongchhari', 'Chokhyongdung', 'Bodrujjamanpara', 'Kurukpata'] },
          { name: 'Naikhongchhari', unions: ['Naikhongchhari', 'Alikadam', 'Lama', 'Dulahazara', 'Bhodakhali', 'Baharchhara'] },
          { name: 'Rowangchhari', unions: ['Rowangchhari', 'Ruma', 'Barkal', 'Bandarban', 'Boro Pathar', 'Taracha'] },
          { name: 'Ruma', unions: ['Ruma', 'Rowangchhari', 'Thanchi', 'Bandarban', 'Boga Lake', 'Painkhya'] },
          { name: 'Thanchi', unions: ['Thanchi', 'Ruma', 'Rowangchhari', 'Bandarban', 'Remakri', 'Tindu'] },
        ],
      },
      {
        name: 'Noakhali',
        upazilas: [
          { name: 'Noakhali Sadar', unions: ['Maijdee', 'Begumganj', 'Char Jabbar', 'Noakhali', 'Ashuropur', 'Nurullahpur'] },
          { name: 'Begumganj', unions: ['Begumganj', 'Chashirhat', 'Niamatpur', 'Chatarpaia', 'Bashpur', 'Gopinathpur'] },
          { name: 'Chatkhil', unions: ['Chatkhil', 'Begumganj', 'Sonaimuri', 'Noakhali', 'Jahanpur', 'Badalkodi'] },
          { name: 'Companiganj', unions: ['Companiganj', 'Begumganj', 'Char Elahi', 'Noakhali', 'Bashirhat', 'Char Kachhapia'] },
          { name: 'Hatiya', unions: ['Hatiya', 'Char Ishan', 'Nalchira', 'Tamaruddin', 'Sukhchar', 'Burir Char'] },
          { name: 'Kabirhat', unions: ['Kabirhat', 'Begumganj', 'Chatkhil', 'Noakhali', 'Brahmmanpara', 'Chitlia'] },
          { name: 'Senbagh', unions: ['Senbagh', 'Begumganj', 'Kabirhat', 'Noakhali', 'Kalyanpur', 'Durgapur'] },
          { name: 'Sonaimuri', unions: ['Sonaimuri', 'Begumganj', 'Chatkhil', 'Noakhali', 'Amishapara', 'Bazra'] },
          { name: 'Subarnachar', unions: ['Subarnachar', 'Char Jabbar', 'Hatiya', 'Noakhali', 'Char Elahi', 'Char Bata'] },
        ],
      },
      {
        name: 'Lakshmipur',
        upazilas: [
          { name: 'Lakshmipur Sadar', unions: ['Dattapara', 'Kamalnagar', 'Lakshmipur', 'Kashiani', 'Dalal Bazar', 'Bijoypur'] },
          { name: 'Raipur', unions: ['Raipur', 'Char Mohana', 'Kamalnagar', 'Baharchhara', 'Char Alexander', 'Nalchira'] },
          { name: 'Ramganj', unions: ['Ramganj', 'Lakshmipur', 'Raipur', 'Kamalnagar', 'Dakshin Ramganj', 'Bhuapur'] },
          { name: 'Ramgati', unions: ['Ramgati', 'Char Alexander', 'Kamalnagar', 'Hatiya', 'Char Gazaria', 'Kaurkhali'] },
          { name: 'Kamalnagar', unions: ['Kamalnagar', 'Lakshmipur', 'Raipur', 'Ramganj', 'Hajirhat', 'Bashkanda'] },
        ],
      },
      {
        name: 'Chandpur',
        upazilas: [
          { name: 'Chandpur Sadar', unions: ['Chandpur', 'Haimchar', 'Matlab', 'Faridganj', 'Baliya', 'Koralia'] },
          { name: 'Matlab Dakshin', unions: ['Matlab Dakshin', 'Faridganj', 'Haimchar', 'Nayerhat', 'Dakshin Baghmara', 'Sarail'] },
          { name: 'Matlab Uttar', unions: ['Matlab Uttar', 'Daudkandi', 'Haimchar', 'Nimtola', 'Bahadia', 'Shyampur'] },
          { name: 'Faridganj', unions: ['Faridganj', 'Matlab', 'Ramganj', 'Chandpur', 'Goalimandra', 'Purba Baghmara'] },
          { name: 'Haimchar', unions: ['Haimchar', 'Matlab', 'Faridganj', 'Chandpur', 'Chandpur Sadar', 'Bashkanda'] },
          { name: 'Haziganj', unions: ['Haziganj', 'Kachua', 'Shahrasti', 'Chandpur', 'Bahadia', 'Bariyaram'] },
          { name: 'Kachua', unions: ['Kachua', 'Haziganj', 'Shahrasti', 'Chandpur', 'Sahilpur', 'Vetki'] },
          { name: 'Shahrasti', unions: ['Shahrasti', 'Haziganj', 'Kachua', 'Chandpur', 'Badurtala', 'Dakshin Shahrasti'] },
        ],
      },
    ],
  },

  // ══════════════════════════════════════════════════════════════════════════
  // RAJSHAHI DIVISION (8 Districts)
  // ══════════════════════════════════════════════════════════════════════════
  {
    name: 'Rajshahi',
    districts: [
      {
        name: 'Rajshahi',
        upazilas: [
          { name: 'Rajshahi Sadar', unions: ['Katakhali', 'Belpukur', 'Sapura', 'Rajshahi', 'Shah Makdum', 'Motihar'] },
          { name: 'Paba', unions: ['Paba', 'Harigram', 'Dadukhali', 'Parila', 'Hujuri', 'Kharki'] },
          { name: 'Godagari', unions: ['Godagari', 'Tanore', 'Rajshahi', 'Matikata', 'Panchandar', 'Gogram'] },
          { name: 'Tanore', unions: ['Tanore', 'Godagari', 'Paba', 'Chandlai', 'Khandar', 'Bidalai'] },
          { name: 'Mohanpur', unions: ['Mohanpur', 'Paba', 'Tanore', 'Jhilim', 'Chhota Bazar', 'Bhalukgachhi'] },
          { name: 'Puthia', unions: ['Puthia', 'Mohanpur', 'Durgapur', 'Belpukur', 'Kashia', 'Jagannathpur'] },
          { name: 'Durgapur', unions: ['Durgapur', 'Puthia', 'Bagha', 'Charghat', 'Bhalukgachhi', 'Borobari'] },
          { name: 'Bagha', unions: ['Bagha', 'Durgapur', 'Charghat', 'Arani', 'Hamirkuti', 'Bagmara'] },
          { name: 'Bagmara', unions: ['Bagmara', 'Mohanpur', 'Puthia', 'Bhabaniganj', 'Gonipur', 'Aurangabad'] },
          { name: 'Charghat', unions: ['Charghat', 'Bagha', 'Paba', 'Sreepur', 'Banasree', 'Puthia'] },
        ],
      },
      {
        name: 'Natore',
        upazilas: [
          { name: 'Natore Sadar', unions: ['Natore', 'Lalpur', 'Bagatipara', 'Baraigram', 'Boraigram', 'Kalinagar'] },
          { name: 'Bagatipara', unions: ['Bagatipara', 'Lalpur', 'Baraigram', 'Dighapatia', 'Hatabandha', 'Jamirta'] },
          { name: 'Lalpur', unions: ['Lalpur', 'Bagatipara', 'Gurudaspur', 'Natore', 'Dobrajpur', 'Gopalpur'] },
          { name: 'Baraigram', unions: ['Baraigram', 'Gurudaspur', 'Singra', 'Natore', 'Jagjivanpur', 'Chalkbhanga'] },
          { name: 'Gurudaspur', unions: ['Gurudaspur', 'Baraigram', 'Lalpur', 'Natore', 'Singra', 'Khubjipara'] },
          { name: 'Singra', unions: ['Singra', 'Gurudaspur', 'Baraigram', 'Natore', 'Shilinda', 'Banshbaria'] },
        ],
      },
      {
        name: 'Naogaon',
        upazilas: [
          { name: 'Naogaon Sadar', unions: ['Naogaon', 'Manda', 'Niamatpur', 'Atrai', 'Balia', 'Shapahar'] },
          { name: 'Manda', unions: ['Manda', 'Niamatpur', 'Raninagar', 'Naogaon', 'Bhaluki', 'Kusumba'] },
          { name: 'Niamatpur', unions: ['Niamatpur', 'Manda', 'Atrai', 'Naogaon', 'Bahadurpur', 'Rohanpur'] },
          { name: 'Atrai', unions: ['Atrai', 'Raninagar', 'Manda', 'Naogaon', 'Hatsara', 'Barala'] },
          { name: 'Raninagar', unions: ['Raninagar', 'Atrai', 'Patnitala', 'Naogaon', 'Pirojpur', 'Shahaganti'] },
          { name: 'Patnitala', unions: ['Patnitala', 'Dhamoirhat', 'Raninagar', 'Naogaon', 'Sikarpur', 'Gomastapur'] },
          { name: 'Dhamoirhat', unions: ['Dhamoirhat', 'Patnitala', 'Porsha', 'Naogaon', 'Bholahat', 'Uttar Sreepur'] },
          { name: 'Porsha', unions: ['Porsha', 'Dhamoirhat', 'Sapahar', 'Naogaon', 'Gomastapur', 'Bholahat'] },
          { name: 'Mahadebpur', unions: ['Mahadebpur', 'Manda', 'Niamatpur', 'Naogaon', 'Badalgachhi', 'Kusumba'] },
          { name: 'Badalgachhi', unions: ['Badalgachhi', 'Mahadebpur', 'Manda', 'Naogaon', 'Virti', 'Sukdebpur'] },
          { name: 'Sapahar', unions: ['Sapahar', 'Porsha', 'Dhamoirhat', 'Naogaon', 'Krishnapur', 'Tilna'] },
        ],
      },
      {
        name: 'Chapainawabganj',
        upazilas: [
          { name: 'Chapainawabganj Sadar', unions: ['Chapainawabganj', 'Shibganj', 'Gomastapur', 'Nachole', 'Shyampur', 'Rahanpur'] },
          { name: 'Shibganj', unions: ['Shibganj', 'Gomastapur', 'Bholahat', 'Chapainawabganj', 'Sonamasjid', 'Kansat'] },
          { name: 'Gomastapur', unions: ['Gomastapur', 'Shibganj', 'Nachole', 'Chapainawabganj', 'Bholahat', 'Bholadanga'] },
          { name: 'Nachole', unions: ['Nachole', 'Gomastapur', 'Bholahat', 'Chapainawabganj', 'Shibganj', 'Laxmipur'] },
          { name: 'Bholahat', unions: ['Bholahat', 'Shibganj', 'Nachole', 'Chapainawabganj', 'Gomastapur', 'Ujirpur'] },
        ],
      },
      {
        name: 'Pabna',
        upazilas: [
          { name: 'Pabna Sadar', unions: ['Pabna', 'Ishwardi', 'Atgharia', 'Bera', 'Hemayetpur', 'Radhanagar'] },
          { name: 'Ishwardi', unions: ['Ishwardi', 'Atgharia', 'Chatmohar', 'Pabna', 'Muladuli', 'Dasuria'] },
          { name: 'Atgharia', unions: ['Atgharia', 'Ishwardi', 'Bera', 'Pabna', 'Lokkhipur', 'Bhaikola'] },
          { name: 'Bera', unions: ['Bera', 'Bhangura', 'Sujanagar', 'Pabna', 'Kalinagar', 'Haturia'] },
          { name: 'Bhangura', unions: ['Bhangura', 'Bera', 'Chatmohar', 'Pabna', 'Khaprara', 'Tepakhola'] },
          { name: 'Chatmohar', unions: ['Chatmohar', 'Ishwardi', 'Bhangura', 'Pabna', 'Gopalpur', 'Laxmikantapur'] },
          { name: 'Faridpur', unions: ['Faridpur', 'Atgharia', 'Sathia', 'Pabna', 'Dhubri', 'Parshadanga'] },
          { name: 'Sathia', unions: ['Sathia', 'Faridpur', 'Sujanagar', 'Pabna', 'Kalinga', 'Nagarbari'] },
          { name: 'Sujanagar', unions: ['Sujanagar', 'Bera', 'Sathia', 'Pabna', 'Gaurigram', 'Vajrakanda'] },
          { name: 'Santhia', unions: ['Santhia', 'Sathia', 'Faridpur', 'Pabna', 'Sara', 'Nurpur'] },
        ],
      },
      {
        name: 'Bogra',
        upazilas: [
          { name: 'Bogra Sadar', unions: ['Bogra', 'Sherpur', 'Shibganj', 'Gabtali', 'Lahiri Para', 'Satmatha'] },
          { name: 'Sherpur', unions: ['Sherpur', 'Dhunat', 'Gabtali', 'Bogra', 'Khandar', 'Ghorgaon'] },
          { name: 'Shibganj', unions: ['Shibganj', 'Dhunat', 'Sonatala', 'Bogra', 'Mohasthan', 'Chaksundor'] },
          { name: 'Dhunat', unions: ['Dhunat', 'Sariakandi', 'Dhupchanchia', 'Bogra', 'Gokul', 'Kalinagar'] },
          { name: 'Dhupchanchia', unions: ['Dhupchanchia', 'Dhunat', 'Adamdighi', 'Bogra', 'Talodhara', 'Baroipara'] },
          { name: 'Gabtali', unions: ['Gabtali', 'Sherpur', 'Sariakandi', 'Bogra', 'Kahaloo', 'Nandigram'] },
          { name: 'Kahaloo', unions: ['Kahaloo', 'Gabtali', 'Nandigram', 'Bogra', 'Rajabazar', 'Maliata'] },
          { name: 'Nandigram', unions: ['Nandigram', 'Kahaloo', 'Adamdighi', 'Bogra', 'Bogra Sadar', 'Thalta'] },
          { name: 'Sariakandi', unions: ['Sariakandi', 'Dhunat', 'Gabtali', 'Bogra', 'Kalinagar', 'Chikashi'] },
          { name: 'Shajahanpur', unions: ['Shajahanpur', 'Sherpur', 'Kahaloo', 'Bogra', 'Uposhahar', 'Chandrapur'] },
          { name: 'Sonatala', unions: ['Sonatala', 'Shibganj', 'Dhunat', 'Bogra', 'Bhaturia', 'Balashwar'] },
          { name: 'Adamdighi', unions: ['Adamdighi', 'Nandigram', 'Dhupchanchia', 'Bogra', 'Bhalukghar', 'Dhangora'] },
        ],
      },
      {
        name: 'Joypurhat',
        upazilas: [
          { name: 'Joypurhat Sadar', unions: ['Joypurhat', 'Akkelpur', 'Kalai', 'Khetlal', 'Panchbibi', 'Khalishakhira'] },
          { name: 'Akkelpur', unions: ['Akkelpur', 'Kalai', 'Panchbibi', 'Joypurhat', 'Mohanpur', 'Teghara'] },
          { name: 'Kalai', unions: ['Kalai', 'Khetlal', 'Akkelpur', 'Joypurhat', 'Badalpur', 'Kachuadanga'] },
          { name: 'Khetlal', unions: ['Khetlal', 'Kalai', 'Panchbibi', 'Joypurhat', 'Dhopgar', 'Kendua'] },
          { name: 'Panchbibi', unions: ['Panchbibi', 'Akkelpur', 'Khetlal', 'Joypurhat', 'Khalisakhira', 'Shamshernagar'] },
        ],
      },
      {
        name: 'Sirajganj',
        upazilas: [
          { name: 'Sirajganj Sadar', unions: ['Sirajganj', 'Belkuchi', 'Kamarkhanda', 'Chauhali', 'Khoksa', 'Saydabad'] },
          { name: 'Belkuchi', unions: ['Belkuchi', 'Chauhali', 'Kamarkhanda', 'Sirajganj', 'Daulatpur', 'Majhira'] },
          { name: 'Chauhali', unions: ['Chauhali', 'Belkuchi', 'Shahzadpur', 'Sirajganj', 'Char Chauhali', 'Kashipur'] },
          { name: 'Kamarkhanda', unions: ['Kamarkhanda', 'Belkuchi', 'Raiganj', 'Sirajganj', 'Ghorgaon', 'Batarhat'] },
          { name: 'Kazipur', unions: ['Kazipur', 'Raiganj', 'Tarash', 'Sirajganj', 'Bagbari', 'Sengrampur'] },
          { name: 'Raiganj', unions: ['Raiganj', 'Kamarkhanda', 'Ullahpara', 'Sirajganj', 'Dhangara', 'Bamanla'] },
          { name: 'Shahzadpur', unions: ['Shahzadpur', 'Chauhali', 'Belkuchi', 'Sirajganj', 'Ullahpara', 'Galimpur'] },
          { name: 'Tarash', unions: ['Tarash', 'Kazipur', 'Ullahpara', 'Sirajganj', 'Madhainagar', 'Dandapur'] },
          { name: 'Ullahpara', unions: ['Ullahpara', 'Raiganj', 'Tarash', 'Sirajganj', 'Hatsara', 'Panchkroshi'] },
        ],
      },
    ],
  },

  // ══════════════════════════════════════════════════════════════════════════
  // KHULNA DIVISION (10 Districts)
  // ══════════════════════════════════════════════════════════════════════════
  {
    name: 'Khulna',
    districts: [
      {
        name: 'Khulna',
        upazilas: [
          { name: 'Khulna Sadar', unions: ['Sonadanga', 'Daulatpur', 'Khalishpur', 'Khulna', 'Shonadanga', 'Khan Jahan Ali'] },
          { name: 'Daulatpur', unions: ['Daulatpur', 'Khalishpur', 'Rupsa', 'Khulna', 'Atra Gilatola', 'Batiaghata'] },
          { name: 'Khan Jahan Ali', unions: ['Khan Jahan Ali', 'Sonadanga', 'Daulatpur', 'Khulna', 'Uttar Daulatpur', 'Khulna University'] },
          { name: 'Sonadanga', unions: ['Sonadanga', 'Khalishpur', 'Daulatpur', 'Khulna', 'Central Road', 'Moylapota'] },
          { name: 'Khalishpur', unions: ['Khalishpur', 'Daulatpur', 'Sonadanga', 'Khulna', 'Bangla Bazar', 'Khulna Shipyard'] },
          { name: 'Rupsa', unions: ['Rupsa', 'Daulatpur', 'Batiaghata', 'Khulna', 'Alutala', 'Gorai'] },
          { name: 'Batiaghata', unions: ['Batiaghata', 'Dacope', 'Rupsa', 'Khulna', 'Baghali', 'Surkhali'] },
          { name: 'Dacope', unions: ['Dacope', 'Batiaghata', 'Koyra', 'Khulna', 'Chalna', 'Baniashanta'] },
          { name: 'Dumuria', unions: ['Dumuria', 'Dighalia', 'Phultala', 'Khulna', 'Rudrail', 'Koromjani'] },
          { name: 'Dighalia', unions: ['Dighalia', 'Dumuria', 'Rupsa', 'Khulna', 'Gobra', 'Nayanihat'] },
          { name: 'Koyra', unions: ['Koyra', 'Dacope', 'Paikgachha', 'Khulna', 'Amadi', 'Maheshwarpur'] },
          { name: 'Paikgachha', unions: ['Paikgachha', 'Koyra', 'Batiaghata', 'Khulna', 'Haridhali', 'Gorai'] },
          { name: 'Phultala', unions: ['Phultala', 'Dumuria', 'Dighalia', 'Khulna', 'Ulpur', 'Nayanihat'] },
          { name: 'Terokhada', unions: ['Terokhada', 'Dumuria', 'Rupsa', 'Khulna', 'Bazitpur', 'Mollabari'] },
        ],
      },
      {
        name: 'Jessore',
        upazilas: [
          { name: 'Jessore Sadar', unions: ['Jessore', 'Benapole', 'Abhaynagar', 'Bagherpara', 'Chaugachha', 'Jhikargachha'] },
          { name: 'Benapole', unions: ['Benapole', 'Sharsha', 'Jhikargachha', 'Jessore', 'Putkhali', 'Laxmanpur'] },
          { name: 'Abhaynagar', unions: ['Abhaynagar', 'Bagherpara', 'Keshabpur', 'Jessore', 'Chalna', 'Noapara'] },
          { name: 'Bagherpara', unions: ['Bagherpara', 'Abhaynagar', 'Chaugachha', 'Jessore', 'Keshabpur', 'Narail'] },
          { name: 'Chaugachha', unions: ['Chaugachha', 'Bagherpara', 'Jhikargachha', 'Jessore', 'Sharsha', 'Hizla'] },
          { name: 'Jhikargachha', unions: ['Jhikargachha', 'Chaugachha', 'Sharsha', 'Jessore', 'Navaron', 'Shyamnagar'] },
          { name: 'Keshabpur', unions: ['Keshabpur', 'Abhaynagar', 'Manirampur', 'Jessore', 'Sujalpur', 'Bhaluka'] },
          { name: 'Manirampur', unions: ['Manirampur', 'Keshabpur', 'Abhaynagar', 'Jessore', 'Dhigirpar', 'Rajgati'] },
          { name: 'Sharsha', unions: ['Sharsha', 'Benapole', 'Jhikargachha', 'Jessore', 'Goga', 'Laxmanpur'] },
        ],
      },
      {
        name: 'Satkhira',
        upazilas: [
          { name: 'Satkhira Sadar', unions: ['Satkhira', 'Assasuni', 'Debhata', 'Kalaroa', 'Binerpota', 'Fakirhat'] },
          { name: 'Assasuni', unions: ['Assasuni', 'Debhata', 'Shyamnagar', 'Satkhira', 'Amlatala', 'Anulia'] },
          { name: 'Debhata', unions: ['Debhata', 'Assasuni', 'Kalaroa', 'Satkhira', 'Kulia', 'Nurnagar'] },
          { name: 'Kalaroa', unions: ['Kalaroa', 'Kaliganj', 'Debhata', 'Satkhira', 'Bishnupur', 'Jhaudanga'] },
          { name: 'Kaliganj', unions: ['Kaliganj', 'Kalaroa', 'Shyamnagar', 'Satkhira', 'Dakshin Purba Dhadashi', 'Taltala'] },
          { name: 'Shyamnagar', unions: ['Shyamnagar', 'Assasuni', 'Kaliganj', 'Satkhira', 'Gabura', 'Munshiganj'] },
          { name: 'Tala', unions: ['Tala', 'Assasuni', 'Kalaroa', 'Satkhira', 'Sarulia', 'Dhandia'] },
        ],
      },
      {
        name: 'Bagerhat',
        upazilas: [
          { name: 'Bagerhat Sadar', unions: ['Bagerhat', 'Chitalmari', 'Fakirhat', 'Kachua', 'Bairagi', 'Jatrapur'] },
          { name: 'Chitalmari', unions: ['Chitalmari', 'Fakirhat', 'Mollahat', 'Bagerhat', 'Bara Baira', 'Shatgambuj'] },
          { name: 'Fakirhat', unions: ['Fakirhat', 'Chitalmari', 'Kachua', 'Bagerhat', 'Nurpur', 'Mithapur'] },
          { name: 'Kachua', unions: ['Kachua', 'Fakirhat', 'Mollahat', 'Bagerhat', 'Sreepur', 'Bairagi'] },
          { name: 'Mollahat', unions: ['Mollahat', 'Chitalmari', 'Morrelganj', 'Bagerhat', 'Kachua', 'Purba Bhandarkot'] },
          { name: 'Mongla', unions: ['Mongla', 'Rampal', 'Dacope', 'Bagerhat', 'Chila', 'Dakshin Dighalbari'] },
          { name: 'Morrelganj', unions: ['Morrelganj', 'Mollahat', 'Sarankhola', 'Bagerhat', 'Bairagi', 'Gaurambha'] },
          { name: 'Rampal', unions: ['Rampal', 'Mongla', 'Morrelganj', 'Bagerhat', 'Baniashanta', 'Gaurambha'] },
          { name: 'Sarankhola', unions: ['Sarankhola', 'Morrelganj', 'Mongla', 'Bagerhat', 'Dakshin Khali', 'Khontakata'] },
        ],
      },
      {
        name: 'Magura',
        upazilas: [
          { name: 'Magura Sadar', unions: ['Magura', 'Mohammadpur', 'Shalikha', 'Sreepur', 'Chaugachha', 'Haridaspur'] },
          { name: 'Mohammadpur', unions: ['Mohammadpur', 'Shalikha', 'Sreepur', 'Magura', 'Balidanga', 'Purapara'] },
          { name: 'Shalikha', unions: ['Shalikha', 'Mohammadpur', 'Sreepur', 'Magura', 'Rajoi', 'Nagarpur'] },
          { name: 'Sreepur', unions: ['Sreepur', 'Mohammadpur', 'Shalikha', 'Magura', 'Barasi', 'Gobra'] },
        ],
      },
      {
        name: 'Meherpur',
        upazilas: [
          { name: 'Meherpur Sadar', unions: ['Meherpur', 'Gangni', 'Mujibnagar', 'Kusumpur', 'Borobazar', 'Amtala'] },
          { name: 'Gangni', unions: ['Gangni', 'Mujibnagar', 'Borobazar', 'Meherpur', 'Monakhali', 'Karpara'] },
          { name: 'Mujibnagar', unions: ['Mujibnagar', 'Gangni', 'Mahajanpur', 'Meherpur', 'Bagdanga', 'Dariapur'] },
        ],
      },
      {
        name: 'Narail',
        upazilas: [
          { name: 'Narail Sadar', unions: ['Narail', 'Kalia', 'Lohagara', 'Narail Municipality', 'Sreepur', 'Mollahat'] },
          { name: 'Kalia', unions: ['Kalia', 'Lohagara', 'Sreepur', 'Narail', 'Purba Baria', 'Shalikha'] },
          { name: 'Lohagara', unions: ['Lohagara', 'Kalia', 'Magura', 'Narail', 'Khordadadpur', 'Dighalia'] },
        ],
      },
      {
        name: 'Jhenaidah',
        upazilas: [
          { name: 'Jhenaidah Sadar', unions: ['Jhenaidah', 'Harinakunda', 'Kaliganj', 'Kotchandpur', 'Shailkupa', 'Chuknagar'] },
          { name: 'Harinakunda', unions: ['Harinakunda', 'Kaliganj', 'Shailkupa', 'Jhenaidah', 'Niamatpur', 'Bashbaria'] },
          { name: 'Kaliganj', unions: ['Kaliganj', 'Harinakunda', 'Kotchandpur', 'Jhenaidah', 'Bishnupur', 'Barobazar'] },
          { name: 'Kotchandpur', unions: ['Kotchandpur', 'Kaliganj', 'Maheshpur', 'Jhenaidah', 'Elangi', 'Tegharia'] },
          { name: 'Maheshpur', unions: ['Maheshpur', 'Kotchandpur', 'Shailkupa', 'Jhenaidah', 'Daulatpur', 'Shibnagar'] },
          { name: 'Shailkupa', unions: ['Shailkupa', 'Harinakunda', 'Maheshpur', 'Jhenaidah', 'Kusumba', 'Nagrakanda'] },
        ],
      },
      {
        name: 'Chuadanga',
        upazilas: [
          { name: 'Chuadanga Sadar', unions: ['Chuadanga', 'Alamdanga', 'Damurhuda', 'Jibannagar', 'Gokulkhali', 'Beledanga'] },
          { name: 'Alamdanga', unions: ['Alamdanga', 'Damurhuda', 'Kushtia', 'Chuadanga', 'Bhangabari', 'Tulsihaat'] },
          { name: 'Damurhuda', unions: ['Damurhuda', 'Jibannagar', 'Alamdanga', 'Chuadanga', 'Purba Jafrabad', 'Bairagi'] },
          { name: 'Jibannagar', unions: ['Jibannagar', 'Damurhuda', 'Meherpur', 'Chuadanga', 'Borobazar', 'Harinakunda'] },
        ],
      },
      {
        name: 'Kushtia',
        upazilas: [
          { name: 'Kushtia Sadar', unions: ['Kushtia', 'Bheramara', 'Daulatpur', 'Khoksa', 'Kumarkhali', 'Mirpur'] },
          { name: 'Bheramara', unions: ['Bheramara', 'Daulatpur', 'Kumarkhali', 'Kushtia', 'Jagannathpur', 'Chapra'] },
          { name: 'Daulatpur', unions: ['Daulatpur', 'Bheramara', 'Khoksa', 'Kushtia', 'Chitlia', 'Taragunia'] },
          { name: 'Khoksa', unions: ['Khoksa', 'Daulatpur', 'Kumarkhali', 'Kushtia', 'Bheramara', 'Janipur'] },
          { name: 'Kumarkhali', unions: ['Kumarkhali', 'Bheramara', 'Mirpur', 'Kushtia', 'Shujonagar', 'Pabna'] },
          { name: 'Mirpur', unions: ['Mirpur', 'Kumarkhali', 'Daulatpur', 'Kushtia', 'Bheramara', 'Nagbari'] },
        ],
      },
    ],
  },

  // ══════════════════════════════════════════════════════════════════════════
  // BARISAL DIVISION (6 Districts)
  // ══════════════════════════════════════════════════════════════════════════
  {
    name: 'Barisal',
    districts: [
      {
        name: 'Barisal',
        upazilas: [
          { name: 'Barisal Sadar', unions: ['Bakerganj', 'Babuganj', 'Agailjhara', 'Barisal', 'Kawnia', 'Char Kowa'] },
          { name: 'Bakerganj', unions: ['Bakerganj', 'Babuganj', 'Wazirpur', 'Barisal', 'Nalchity', 'Dapdapia'] },
          { name: 'Babuganj', unions: ['Babuganj', 'Bakerganj', 'Agailjhara', 'Barisal', 'Kedarpur', 'Rahamatpur'] },
          { name: 'Agailjhara', unions: ['Agailjhara', 'Babuganj', 'Wazirpur', 'Barisal', 'Bagdha', 'Gournadi'] },
          { name: 'Wazirpur', unions: ['Wazirpur', 'Bakerganj', 'Banaripara', 'Barisal', 'Satla', 'Jalirpar'] },
          { name: 'Banaripara', unions: ['Banaripara', 'Wazirpur', 'Gaurnadi', 'Barisal', 'Baisari', 'Bogiya'] },
          { name: 'Gaurnadi', unions: ['Gaurnadi', 'Banaripara', 'Agailjhara', 'Barisal', 'Niamati', 'Kalapahar'] },
          { name: 'Hizla', unions: ['Hizla', 'Mehendiganj', 'Bakerganj', 'Barisal', 'Char Gopal', 'Haridhua'] },
          { name: 'Mehendiganj', unions: ['Mehendiganj', 'Hizla', 'Muladi', 'Barisal', 'Kajir Char', 'Bhayla'] },
          { name: 'Muladi', unions: ['Muladi', 'Mehendiganj', 'Bakerganj', 'Barisal', 'Nabagram', 'Dapdapia'] },
        ],
      },
      {
        name: 'Patuakhali',
        upazilas: [
          { name: 'Patuakhali Sadar', unions: ['Patuakhali', 'Bauphal', 'Dashmina', 'Galachipa', 'Lata Chapli', 'Chiton Hat'] },
          { name: 'Bauphal', unions: ['Bauphal', 'Dashmina', 'Kalapara', 'Patuakhali', 'Madarbunia', 'Adabariya'] },
          { name: 'Dashmina', unions: ['Dashmina', 'Bauphal', 'Galachipa', 'Patuakhali', 'Rongopur', 'Alipur'] },
          { name: 'Galachipa', unions: ['Galachipa', 'Dashmina', 'Rangabali', 'Patuakhali', 'Char Jalaluddin', 'Panpatti'] },
          { name: 'Kalapara', unions: ['Kalapara', 'Bauphal', 'Mirzaganj', 'Patuakhali', 'Kuakata', 'Dhulasar'] },
          { name: 'Mirzaganj', unions: ['Mirzaganj', 'Kalapara', 'Rangabali', 'Patuakhali', 'Dumki', 'Amkhola'] },
          { name: 'Rangabali', unions: ['Rangabali', 'Galachipa', 'Dashmina', 'Patuakhali', 'Char Montaz', 'Moudubi'] },
          { name: 'Dumki', unions: ['Dumki', 'Bauphal', 'Kalapara', 'Patuakhali', 'Mirzaganj', 'Angaria'] },
        ],
      },
      {
        name: 'Bhola',
        upazilas: [
          { name: 'Bhola Sadar', unions: ['Bhola', 'Burhanuddin', 'Char Fasson', 'Daulatkhan', 'Bheduriya', 'Ujala'] },
          { name: 'Burhanuddin', unions: ['Burhanuddin', 'Char Fasson', 'Tazumuddin', 'Bhola', 'Gholapara', 'Khontapara'] },
          { name: 'Char Fasson', unions: ['Char Fasson', 'Lalmohan', 'Manpura', 'Bhola', 'Aminabad', 'Char Kachhapia'] },
          { name: 'Daulatkhan', unions: ['Daulatkhan', 'Burhanuddin', 'Borhanuddin', 'Bhola', 'Purba Daulatkhan', 'Maddhya Daulatkhan'] },
          { name: 'Lalmohan', unions: ['Lalmohan', 'Char Fasson', 'Manpura', 'Bhola', 'Bamni', 'Lord Hardinge'] },
          { name: 'Manpura', unions: ['Manpura', 'Char Fasson', 'Lalmohan', 'Bhola', 'Char Manus', 'Dhal Char'] },
          { name: 'Tazumuddin', unions: ['Tazumuddin', 'Burhanuddin', 'Daulatkhan', 'Bhola', 'Sonapur', 'Golachipa'] },
          { name: 'Borhanuddin', unions: ['Borhanuddin', 'Daulatkhan', 'Burhanuddin', 'Bhola', 'Shamsherpur', 'Kachia'] },
        ],
      },
      {
        name: 'Pirojpur',
        upazilas: [
          { name: 'Pirojpur Sadar', unions: ['Pirojpur', 'Bhandaria', 'Kawkhali', 'Mathbaria', 'Shikarpur', 'Amragachhia'] },
          { name: 'Bhandaria', unions: ['Bhandaria', 'Kawkhali', 'Nazirpur', 'Pirojpur', 'Gupirghat', 'Dhaoa'] },
          { name: 'Kawkhali', unions: ['Kawkhali', 'Bhandaria', 'Mathbaria', 'Pirojpur', 'Sholakura', 'Gobra'] },
          { name: 'Mathbaria', unions: ['Mathbaria', 'Kawkhali', 'Nazirpur', 'Pirojpur', 'Tushkhali', 'Charmahalswar'] },
          { name: 'Nazirpur', unions: ['Nazirpur', 'Bhandaria', 'Nesarabad', 'Pirojpur', 'Shikarpur', 'Dehergoti'] },
          { name: 'Nesarabad (Swarupkati)', unions: ['Nesarabad', 'Nazirpur', 'Zianagar', 'Pirojpur', 'Atghar', 'Balipur'] },
          { name: 'Zianagar', unions: ['Zianagar', 'Nesarabad', 'Bhandaria', 'Pirojpur', 'Purba Zianagar', 'Veduria'] },
        ],
      },
      {
        name: 'Barguna',
        upazilas: [
          { name: 'Barguna Sadar', unions: ['Barguna', 'Amtali', 'Bamna', 'Betagi', 'Burir Char', 'Naltona'] },
          { name: 'Amtali', unions: ['Amtali', 'Patharghata', 'Taltali', 'Barguna', 'Gulishakhali', 'Chhawni'] },
          { name: 'Bamna', unions: ['Bamna', 'Betagi', 'Amtali', 'Barguna', 'Dhalua', 'Chandpasha'] },
          { name: 'Betagi', unions: ['Betagi', 'Bamna', 'Patharghata', 'Barguna', 'Burir Char', 'Mithaganj'] },
          { name: 'Patharghata', unions: ['Patharghata', 'Amtali', 'Betagi', 'Barguna', 'Rangabali', 'Kakchira'] },
          { name: 'Taltali', unions: ['Taltali', 'Amtali', 'Patharghata', 'Barguna', 'Naltona', 'Chalitabunia'] },
        ],
      },
      {
        name: 'Jhalokati',
        upazilas: [
          { name: 'Jhalokati Sadar', unions: ['Jhalokati', 'Kathalia', 'Nalchity', 'Rajapur', 'Siddhakati', 'Khapra'] },
          { name: 'Kathalia', unions: ['Kathalia', 'Nalchity', 'Rajapur', 'Jhalokati', 'Begumganj', 'Amua'] },
          { name: 'Nalchity', unions: ['Nalchity', 'Kathalia', 'Rajapur', 'Jhalokati', 'Bikrampur', 'Charipara'] },
          { name: 'Rajapur', unions: ['Rajapur', 'Nalchity', 'Kathalia', 'Jhalokati', 'Shahapuran', 'Baraikhara'] },
        ],
      },
    ],
  },

  // ══════════════════════════════════════════════════════════════════════════
  // SYLHET DIVISION (4 Districts)
  // ══════════════════════════════════════════════════════════════════════════
  {
    name: 'Sylhet',
    districts: [
      {
        name: 'Sylhet',
        upazilas: [
          { name: 'Sylhet Sadar', unions: ['South Surma', 'Jalalabad', 'Osmani Nagar', 'Sylhet', 'Khadimnagar', 'Mogalgaon'] },
          { name: 'South Surma', unions: ['South Surma', 'Dakshin Surma', 'Kanaighat', 'Sylhet', 'Khadimnagar', 'Tuker Bazar'] },
          { name: 'Jalalabad', unions: ['Jalalabad', 'South Surma', 'Osmani Nagar', 'Sylhet', 'Shah Paran', 'Khadimnagar'] },
          { name: 'Osmani Nagar', unions: ['Osmani Nagar', 'Jalalabad', 'Dakshin Surma', 'Sylhet', 'Dayamir', 'Purba Nayarhat'] },
          { name: 'Dakshin Surma', unions: ['Dakshin Surma', 'South Surma', 'Osmani Nagar', 'Sylhet', 'Tuker Bazar', 'Lalabazar'] },
          { name: 'Beanibazar', unions: ['Beanibazar', 'Barlekha', 'Golapganj', 'Sylhet', 'Dhamai', 'Bashkandai'] },
          { name: 'Bishwanath', unions: ['Bishwanath', 'Osmani Nagar', 'Gowainghat', 'Sylhet', 'Bishwanath Bazar', 'Alirgaon'] },
          { name: 'Companiganj', unions: ['Companiganj', 'Gowainghat', 'Jaintiapur', 'Sylhet', 'Tilagarh', 'Rashidpur'] },
          { name: 'Fenchuganj', unions: ['Fenchuganj', 'Golapganj', 'Beanibazar', 'Sylhet', 'Borokhada', 'Amura'] },
          { name: 'Golapganj', unions: ['Golapganj', 'Fenchuganj', 'Beanibazar', 'Sylhet', 'Bhadeswar', 'Lokkhipur'] },
          { name: 'Gowainghat', unions: ['Gowainghat', 'Companiganj', 'Jaintiapur', 'Sylhet', 'Tamabil', 'Nagori'] },
          { name: 'Jaintiapur', unions: ['Jaintiapur', 'Gowainghat', 'Companiganj', 'Sylhet', 'Sreepur', 'Chhatak'] },
          { name: 'Kanaighat', unions: ['Kanaighat', 'South Surma', 'Jaintiapur', 'Sylhet', 'Borshala', 'Dharkhar'] },
          { name: 'Zakiganj', unions: ['Zakiganj', 'Beanibazar', 'Golapganj', 'Sylhet', 'Bara Chhatak', 'Kalni'] },
        ],
      },
      {
        name: 'Moulvibazar',
        upazilas: [
          { name: 'Moulvibazar Sadar', unions: ['Moulvibazar', 'Barlekha', 'Juri', 'Kamalganj', 'Chunarghunia', 'Ghulam Bazar'] },
          { name: 'Barlekha', unions: ['Barlekha', 'Juri', 'Sreemangal', 'Moulvibazar', 'Subhapur', 'Shahbazpur'] },
          { name: 'Juri', unions: ['Juri', 'Barlekha', 'Kulaura', 'Moulvibazar', 'Subhapur', 'Bhairab'] },
          { name: 'Kamalganj', unions: ['Kamalganj', 'Sreemangal', 'Rajnagar', 'Moulvibazar', 'Tilagarh', 'Kalenga'] },
          { name: 'Kulaura', unions: ['Kulaura', 'Juri', 'Rajnagar', 'Moulvibazar', 'Prithimpassa', 'Sahajibazar'] },
          { name: 'Rajnagar', unions: ['Rajnagar', 'Kulaura', 'Sreemangal', 'Moulvibazar', 'Fulchhara', 'Bhatabari'] },
          { name: 'Sreemangal', unions: ['Sreemangal', 'Kamalganj', 'Barlekha', 'Moulvibazar', 'Bhunabari', 'Chunarughat'] },
        ],
      },
      {
        name: 'Habiganj',
        upazilas: [
          { name: 'Habiganj Sadar', unions: ['Habiganj', 'Bahubal', 'Baniachong', 'Chunarughat', 'Shayestaganj', 'Lashkerpur'] },
          { name: 'Bahubal', unions: ['Bahubal', 'Baniachong', 'Chunarughat', 'Habiganj', 'Shayestaganj', 'Mirpur'] },
          { name: 'Baniachong', unions: ['Baniachong', 'Bahubal', 'Lakhai', 'Habiganj', 'Purba Baniachong', 'Bamoi'] },
          { name: 'Chunarughat', unions: ['Chunarughat', 'Bahubal', 'Madhabpur', 'Habiganj', 'Pangsha', 'Deorgachh'] },
          { name: 'Lakhai', unions: ['Lakhai', 'Baniachong', 'Nabiganj', 'Habiganj', 'Muriauk', 'Bamoi'] },
          { name: 'Madhabpur', unions: ['Madhabpur', 'Chunarughat', 'Shaistaganj', 'Habiganj', 'Begumganj', 'Shibpasha'] },
          { name: 'Nabiganj', unions: ['Nabiganj', 'Lakhai', 'Shaistaganj', 'Habiganj', 'Inatganj', 'Purno Bazar'] },
          { name: 'Shaistaganj', unions: ['Shaistaganj', 'Madhabpur', 'Nabiganj', 'Habiganj', 'Purba Dighirpar', 'Sreepur'] },
        ],
      },
      {
        name: 'Sunamganj',
        upazilas: [
          { name: 'Sunamganj Sadar', unions: ['Sunamganj', 'Bishwamvarpur', 'Chhatak', 'Derai', 'Shantiganj', 'Surma'] },
          { name: 'Bishwamvarpur', unions: ['Bishwamvarpur', 'Chhatak', 'Jagannathpur', 'Sunamganj', 'Dirai', 'Dhalai'] },
          { name: 'Chhatak', unions: ['Chhatak', 'Bishwamvarpur', 'Dowarabazar', 'Sunamganj', 'Dokhin Sreepur', 'Raniganj'] },
          { name: 'Derai', unions: ['Derai', 'Dharampasha', 'Sulla', 'Sunamganj', 'Kannadanga', 'Umarpur'] },
          { name: 'Dharampasha', unions: ['Dharampasha', 'Derai', 'Tahirpur', 'Sunamganj', 'Gazipur', 'Kalpara'] },
          { name: 'Dowarabazar', unions: ['Dowarabazar', 'Chhatak', 'Bishwamvarpur', 'Sunamganj', 'Pachim Jafarpur', 'Kalmakanda'] },
          { name: 'Jagannathpur', unions: ['Jagannathpur', 'Bishwamvarpur', 'Chhatak', 'Sunamganj', 'Purba Jagannathpur', 'South Sunamganj'] },
          { name: 'Jamalganj', unions: ['Jamalganj', 'Tahirpur', 'Derai', 'Sunamganj', 'Shantiganj', 'Bakshiganj'] },
          { name: 'Sulla', unions: ['Sulla', 'Derai', 'Dharampasha', 'Sunamganj', 'Dakshin Sulla', 'Uttar Sulla'] },
          { name: 'Tahirpur', unions: ['Tahirpur', 'Dharampasha', 'Jamalganj', 'Sunamganj', 'Balijuri', 'Barshala'] },
          { name: 'South Sunamganj', unions: ['South Sunamganj', 'Jagannathpur', 'Derai', 'Sunamganj', 'Kalni', 'Dhalai'] },
        ],
      },
    ],
  },

  // ══════════════════════════════════════════════════════════════════════════
  // RANGPUR DIVISION (8 Districts)
  // ══════════════════════════════════════════════════════════════════════════
  {
    name: 'Rangpur',
    districts: [
      {
        name: 'Rangpur',
        upazilas: [
          { name: 'Rangpur Sadar', unions: ['Badarganj', 'Mithapukur', 'Pirgachha', 'Rangpur', 'Haridas', 'Mominpur'] },
          { name: 'Badarganj', unions: ['Badarganj', 'Mithapukur', 'Pirganj', 'Rangpur', 'Purba Badarganj', 'Baltola'] },
          { name: 'Mithapukur', unions: ['Mithapukur', 'Badarganj', 'Pirgachha', 'Rangpur', 'Kakina', 'Latifpur'] },
          { name: 'Pirgachha', unions: ['Pirgachha', 'Mithapukur', 'Kaunia', 'Rangpur', 'Goragachha', 'Khandahar'] },
          { name: 'Pirganj', unions: ['Pirganj', 'Mithapukur', 'Gangachara', 'Rangpur', 'Baraipara', 'Bhurka'] },
          { name: 'Kaunia', unions: ['Kaunia', 'Pirgachha', 'Gangachara', 'Rangpur', 'Tepa Kharibari', 'Rajarampur'] },
          { name: 'Gangachara', unions: ['Gangachara', 'Pirganj', 'Kaunia', 'Rangpur', 'Ghoraghat', 'Mominpur'] },
          { name: 'Taraganj', unions: ['Taraganj', 'Badarganj', 'Pirganj', 'Rangpur', 'Kashidanga', 'Burirhat'] },
          { name: 'Rangpur City', unions: ['Rangpur City', 'Mithapukur', 'Badarganj', 'Rangpur', 'Shapla Chattar', 'Jahaj Company'] },
        ],
      },
      {
        name: 'Dinajpur',
        upazilas: [
          { name: 'Dinajpur Sadar', unions: ['Dinajpur', 'Birampur', 'Birganj', 'Biral', 'Chirirbandar', 'Shibrampur'] },
          { name: 'Birampur', unions: ['Birampur', 'Birganj', 'Hakimpur', 'Dinajpur', 'Jhopjhopia', 'Bhairab'] },
          { name: 'Birganj', unions: ['Birganj', 'Birampur', 'Kaharole', 'Dinajpur', 'Bhurka', 'Debipur'] },
          { name: 'Biral', unions: ['Biral', 'Bochaganj', 'Chirirbandar', 'Dinajpur', 'Dhamor', 'Bhodra'] },
          { name: 'Bochaganj', unions: ['Bochaganj', 'Biral', 'Chirirbandar', 'Dinajpur', 'Shatora', 'Ramsagar'] },
          { name: 'Chirirbandar', unions: ['Chirirbandar', 'Biral', 'Fulbari', 'Dinajpur', 'Saidpur', 'Ramsagar'] },
          { name: 'Fulbari', unions: ['Fulbari', 'Chirirbandar', 'Ghoraghat', 'Dinajpur', 'Sultanpur', 'Kantaji'] },
          { name: 'Ghoraghat', unions: ['Ghoraghat', 'Fulbari', 'Birganj', 'Dinajpur', 'Palashbari', 'Sultanpur'] },
          { name: 'Hakimpur', unions: ['Hakimpur', 'Birampur', 'Khansama', 'Dinajpur', 'Jhopjhopia', 'Nawabganj'] },
          { name: 'Kaharole', unions: ['Kaharole', 'Birganj', 'Khansama', 'Dinajpur', 'Dhamor', 'Panchbibi'] },
          { name: 'Khansama', unions: ['Khansama', 'Hakimpur', 'Kaharole', 'Dinajpur', 'Balubari', 'Goragachha'] },
          { name: 'Nawabganj', unions: ['Nawabganj', 'Birganj', 'Fulbari', 'Dinajpur', 'Panchbibi', 'Ramsagar'] },
          { name: 'Parbatipur', unions: ['Parbatipur', 'Chirirbandar', 'Hakimpur', 'Dinajpur', 'Saidpur', 'Khansama'] },
        ],
      },
      {
        name: 'Kurigram',
        upazilas: [
          { name: 'Kurigram Sadar', unions: ['Kurigram', 'Nageshwari', 'Bhurungamari', 'Phulbari', 'Mogolhat', 'Kachakata'] },
          { name: 'Nageshwari', unions: ['Nageshwari', 'Bhurungamari', 'Rajarhat', 'Kurigram', 'Kachakata', 'Bamni'] },
          { name: 'Bhurungamari', unions: ['Bhurungamari', 'Nageshwari', 'Char Rajibpur', 'Kurigram', 'Paikargachha', 'Balabari'] },
          { name: 'Phulbari', unions: ['Phulbari', 'Nageshwari', 'Rajarhat', 'Kurigram', 'Bara Phulbari', 'Naya Phulbari'] },
          { name: 'Rajarhat', unions: ['Rajarhat', 'Nageshwari', 'Ulipur', 'Kurigram', 'Bhurungamari', 'Bagkuri'] },
          { name: 'Raumari', unions: ['Raumari', 'Char Rajibpur', 'Bhurungamari', 'Kurigram', 'Rajibpur', 'Chilmari'] },
          { name: 'Char Rajibpur', unions: ['Char Rajibpur', 'Raumari', 'Bhurungamari', 'Kurigram', 'Rajibpur', 'Gorai'] },
          { name: 'Ulipur', unions: ['Ulipur', 'Rajarhat', 'Phulbari', 'Kurigram', 'Hatia', 'Bhalukgachhi'] },
          { name: 'Chilmari', unions: ['Chilmari', 'Raumari', 'Ulipur', 'Kurigram', 'Noyapara', 'Ramna'] },
        ],
      },
      {
        name: 'Lalmonirhat',
        upazilas: [
          { name: 'Lalmonirhat Sadar', unions: ['Lalmonirhat', 'Aditmari', 'Hatibandha', 'Kaliganj', 'Gauripur', 'Bhurka'] },
          { name: 'Aditmari', unions: ['Aditmari', 'Hatibandha', 'Patgram', 'Lalmonirhat', 'Bhurungamari', 'Bhabaniganj'] },
          { name: 'Hatibandha', unions: ['Hatibandha', 'Aditmari', 'Lalmonirhat', 'Burimari', 'Patgram', 'Kuchlibari'] },
          { name: 'Kaliganj', unions: ['Kaliganj', 'Aditmari', 'Hatibandha', 'Lalmonirhat', 'Noyapara', 'Tista'] },
          { name: 'Patgram', unions: ['Patgram', 'Hatibandha', 'Aditmari', 'Lalmonirhat', 'Burimari', 'Tista'] },
        ],
      },
      {
        name: 'Nilphamari',
        upazilas: [
          { name: 'Nilphamari Sadar', unions: ['Nilphamari', 'Dimla', 'Domar', 'Jaldhaka', 'Chandkhana', 'Kishoreganj'] },
          { name: 'Dimla', unions: ['Dimla', 'Domar', 'Jaldhaka', 'Nilphamari', 'Bhalukdhara', 'Khalisha Chapani'] },
          { name: 'Domar', unions: ['Domar', 'Dimla', 'Saidpur', 'Nilphamari', 'Bhadra', 'Chini Alir Hat'] },
          { name: 'Jaldhaka', unions: ['Jaldhaka', 'Dimla', 'Kishoreganj', 'Nilphamari', 'Dharmapal', 'Golna'] },
          { name: 'Kishoreganj', unions: ['Kishoreganj', 'Jaldhaka', 'Saidpur', 'Nilphamari', 'Bhadra', 'Noyapara'] },
          { name: 'Saidpur', unions: ['Saidpur', 'Domar', 'Kishoreganj', 'Nilphamari', 'Botlagari', 'Kamarpukur'] },
        ],
      },
      {
        name: 'Gaibandha',
        upazilas: [
          { name: 'Gaibandha Sadar', unions: ['Gaibandha', 'Sadullapur', 'Gobindaganj', 'Palashbari', 'Kamarpara', 'Bochaganj'] },
          { name: 'Sadullapur', unions: ['Sadullapur', 'Gobindaganj', 'Saghata', 'Gaibandha', 'Damodarpur', 'Nolka'] },
          { name: 'Gobindaganj', unions: ['Gobindaganj', 'Sadullapur', 'Palashbari', 'Gaibandha', 'Tepakhola', 'Shakhahari'] },
          { name: 'Palashbari', unions: ['Palashbari', 'Gobindaganj', 'Sundarganj', 'Gaibandha', 'Baliadangi', 'Mochia'] },
          { name: 'Saghata', unions: ['Saghata', 'Sadullapur', 'Fulchhari', 'Gaibandha', 'Bonarpara', 'Kanchipara'] },
          { name: 'Sundarganj', unions: ['Sundarganj', 'Palashbari', 'Saghata', 'Gaibandha', 'Belka', 'Kapasia'] },
          { name: 'Fulchhari', unions: ['Fulchhari', 'Saghata', 'Sundarganj', 'Gaibandha', 'Borobari', 'Kalmakanda'] },
        ],
      },
      {
        name: 'Thakurgaon',
        upazilas: [
          { name: 'Thakurgaon Sadar', unions: ['Thakurgaon', 'Baliadangi', 'Haripur', 'Pirganj', 'Ruhea', 'Chhaybash'] },
          { name: 'Baliadangi', unions: ['Baliadangi', 'Haripur', 'Ranisankail', 'Thakurgaon', 'Shukhanpukhari', 'Bhalukdanga'] },
          { name: 'Haripur', unions: ['Haripur', 'Baliadangi', 'Pirganj', 'Thakurgaon', 'Durgapur', 'Shalbari'] },
          { name: 'Pirganj', unions: ['Pirganj', 'Haripur', 'Baliadangi', 'Thakurgaon', 'Bara Pirganj', 'Chhoto Pirganj'] },
          { name: 'Ranisankail', unions: ['Ranisankail', 'Baliadangi', 'Haripur', 'Thakurgaon', 'Nargun', 'Hari Ram'] },
        ],
      },
      {
        name: 'Panchagarh',
        upazilas: [
          { name: 'Panchagarh Sadar', unions: ['Panchagarh', 'Atwari', 'Boda', 'Debiganj', 'Dhunia', 'Shalbari'] },
          { name: 'Atwari', unions: ['Atwari', 'Boda', 'Tetulia', 'Panchagarh', 'Balrampur', 'Rangpur'] },
          { name: 'Boda', unions: ['Boda', 'Atwari', 'Debiganj', 'Panchagarh', 'Dhamdama', 'Maidandighi'] },
          { name: 'Debiganj', unions: ['Debiganj', 'Boda', 'Tetulia', 'Panchagarh', 'Chilahati', 'Kismat'] },
          { name: 'Tetulia', unions: ['Tetulia', 'Atwari', 'Debiganj', 'Panchagarh', 'Banglabandha', 'Tirnaihat'] },
        ],
      },
    ],
  },

  // ══════════════════════════════════════════════════════════════════════════
  // MYMENSINGH DIVISION (4 Districts)
  // ══════════════════════════════════════════════════════════════════════════
  {
    name: 'Mymensingh',
    districts: [
      {
        name: 'Mymensingh',
        upazilas: [
          { name: 'Mymensingh Sadar', unions: ['Trishal', 'Bhaluka', 'Muktagachha', 'Mymensingh', 'Char Nilakshmia', 'Boror Char'] },
          { name: 'Trishal', unions: ['Trishal', 'Bhaluka', 'Gaffargaon', 'Mymensingh', 'Shyamgaon', 'Dhala'] },
          { name: 'Bhaluka', unions: ['Bhaluka', 'Trishal', 'Gaffargaon', 'Mymensingh', 'Mogarkhola', 'Uttar Bhaluka'] },
          { name: 'Muktagachha', unions: ['Muktagachha', 'Gaffargaon', 'Ishwarganj', 'Mymensingh', 'Dullah', 'Borobari'] },
          { name: 'Gaffargaon', unions: ['Gaffargaon', 'Trishal', 'Muktagachha', 'Mymensingh', 'Kashoripara', 'Nandail'] },
          { name: 'Gauripur', unions: ['Gauripur', 'Ishwarganj', 'Nandail', 'Mymensingh', 'Rasulpur', 'Daudkandi'] },
          { name: 'Ishwarganj', unions: ['Ishwarganj', 'Gauripur', 'Nandail', 'Mymensingh', 'Asoke', 'Jorbaria'] },
          { name: 'Nandail', unions: ['Nandail', 'Gauripur', 'Ishwarganj', 'Mymensingh', 'Singhashon', 'Kishoreganj'] },
          { name: 'Haluaghat', unions: ['Haluaghat', 'Muktagachha', 'Dhobaura', 'Mymensingh', 'Bilashpur', 'Achimgonj'] },
          { name: 'Dhobaura', unions: ['Dhobaura', 'Haluaghat', 'Fulbaria', 'Mymensingh', 'Purba Dhobaura', 'Bijoypur'] },
          { name: 'Fulbaria', unions: ['Fulbaria', 'Trishal', 'Dhobaura', 'Mymensingh', 'Digharkanda', 'Sreepur'] },
          { name: 'Tarakanda', unions: ['Tarakanda', 'Fulbaria', 'Phulpur', 'Mymensingh', 'Gaffargaon', 'Dhobaura'] },
          { name: 'Phulpur', unions: ['Phulpur', 'Tarakanda', 'Haluaghat', 'Mymensingh', 'Kishoreganj', 'Nandail'] },
        ],
      },
      {
        name: 'Jamalpur',
        upazilas: [
          { name: 'Jamalpur Sadar', unions: ['Jamalpur', 'Bakshiganj', 'Dewanganj', 'Islampur', 'Titpalla', 'Shahpura'] },
          { name: 'Bakshiganj', unions: ['Bakshiganj', 'Dewanganj', 'Madarganj', 'Jamalpur', 'Kamalpur', 'Borobari'] },
          { name: 'Dewanganj', unions: ['Dewanganj', 'Bakshiganj', 'Sarishabari', 'Jamalpur', 'Chhatoil', 'Noyapara'] },
          { name: 'Islampur', unions: ['Islampur', 'Dewanganj', 'Melandaha', 'Jamalpur', 'Bhatshala', 'Bahadurabad'] },
          { name: 'Madarganj', unions: ['Madarganj', 'Bakshiganj', 'Sarishabari', 'Jamalpur', 'Balijuri', 'Kachikata'] },
          { name: 'Melandaha', unions: ['Melandaha', 'Islampur', 'Sarishabari', 'Jamalpur', 'Ghagra', 'Jhagrar Char'] },
          { name: 'Sarishabari', unions: ['Sarishabari', 'Dewanganj', 'Melandaha', 'Jamalpur', 'Shahpura', 'Char Putimari'] },
        ],
      },
      {
        name: 'Netrokona',
        upazilas: [
          { name: 'Netrokona Sadar', unions: ['Netrokona', 'Atpara', 'Barhatta', 'Durgapur', 'Bira', 'Mugdha'] },
          { name: 'Atpara', unions: ['Atpara', 'Barhatta', 'Madan', 'Netrokona', 'Ghagra', 'Sadar'] },
          { name: 'Barhatta', unions: ['Barhatta', 'Atpara', 'Durgapur', 'Netrokona', 'Bijoypur', 'Uttar Barhatta'] },
          { name: 'Durgapur', unions: ['Durgapur', 'Barhatta', 'Kalmakanda', 'Netrokona', 'Birishiri', 'Kochua'] },
          { name: 'Kalmakanda', unions: ['Kalmakanda', 'Durgapur', 'Kendua', 'Netrokona', 'Bishwambarpur', 'Puran Bazar'] },
          { name: 'Kendua', unions: ['Kendua', 'Kalmakanda', 'Khaliajuri', 'Netrokona', 'Gauripur', 'Ashtagram'] },
          { name: 'Khaliajuri', unions: ['Khaliajuri', 'Kendua', 'Madan', 'Netrokona', 'Chakiapara', 'Madhyapara'] },
          { name: 'Madan', unions: ['Madan', 'Atpara', 'Khaliajuri', 'Netrokona', 'Mohanpur', 'Dhalai'] },
          { name: 'Mohanganj', unions: ['Mohanganj', 'Madan', 'Kendua', 'Netrokona', 'Jagannathpur', 'Chamtabazar'] },
          { name: 'Purbadhala', unions: ['Purbadhala', 'Barhatta', 'Atpara', 'Netrokona', 'Khaliajuri', 'Madan'] },
        ],
      },
      {
        name: 'Sherpur',
        upazilas: [
          { name: 'Sherpur Sadar', unions: ['Sherpur', 'Jhenaigati', 'Nakla', 'Nalitabari', 'Boroni', 'Bodhikona'] },
          { name: 'Jhenaigati', unions: ['Jhenaigati', 'Nalitabari', 'Sreebardi', 'Sherpur', 'Garijjan', 'Bharatibazar'] },
          { name: 'Nakla', unions: ['Nakla', 'Jhenaigati', 'Nalitabari', 'Sherpur', 'Kashimpur', 'Dhanu'] },
          { name: 'Nalitabari', unions: ['Nalitabari', 'Jhenaigati', 'Sreebardi', 'Sherpur', 'Banuapara', 'Baghbari'] },
          { name: 'Sreebardi', unions: ['Sreebardi', 'Nalitabari', 'Jhenaigati', 'Sherpur', 'Maharajpur', 'Kochua'] },
        ],
      },
    ],
  },
];

// ============================================================================
// HELPER FUNCTIONS
// ============================================================================

/**
 * Get all district names for a given division
 */
export function getDistricts(division: string): string[] {
  const div = bangladeshLocations.find(
    (d) => d.name.toLowerCase() === division.toLowerCase()
  );
  if (!div) return [];
  return div.districts.map((d) => d.name);
}

/**
 * Get all upazila names for a given division + district
 */
export function getUpazilas(division: string, district: string): string[] {
  const div = bangladeshLocations.find(
    (d) => d.name.toLowerCase() === division.toLowerCase()
  );
  if (!div) return [];
  const dist = div.districts.find(
    (d) => d.name.toLowerCase() === district.toLowerCase()
  );
  if (!dist) return [];
  return dist.upazilas.map((u) => u.name);
}

/**
 * Get all union names for a given division + district + upazila
 */
export function getUnions(
  division: string,
  district: string,
  upazila: string
): string[] {
  const div = bangladeshLocations.find(
    (d) => d.name.toLowerCase() === division.toLowerCase()
  );
  if (!div) return [];
  const dist = div.districts.find(
    (d) => d.name.toLowerCase() === district.toLowerCase()
  );
  if (!dist) return [];
  const upz = dist.upazilas.find(
    (u) => u.name.toLowerCase() === upazila.toLowerCase()
  );
  if (!upz) return [];
  return upz.unions;
}
