File size: 64,519 Bytes
09bf700
 
7ead16c
09bf700
 
 
a25ac93
7ead16c
 
 
 
 
 
09bf700
 
7ead16c
 
 
 
 
 
 
 
 
09bf700
 
 
 
 
 
 
7ead16c
09bf700
 
 
7ead16c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
09bf700
 
7ead16c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
09bf700
7ead16c
 
 
 
 
 
09bf700
 
 
 
7ead16c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
09bf700
7ead16c
 
 
 
 
 
 
 
 
 
09bf700
 
 
7ead16c
 
 
 
 
 
 
 
 
 
 
 
 
 
09bf700
 
 
7ead16c
09bf700
 
 
 
a25ac93
 
09bf700
 
 
 
 
 
 
 
 
 
 
7ead16c
 
09bf700
 
a25ac93
 
09bf700
 
 
 
 
a25ac93
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
7ead16c
 
 
 
 
09bf700
 
 
 
 
 
7ead16c
 
 
 
 
09bf700
 
 
 
 
 
7ead16c
 
 
 
 
09bf700
 
 
 
 
 
7ead16c
 
 
 
 
09bf700
 
 
 
 
 
 
a25ac93
 
 
 
 
 
7ead16c
 
 
 
 
09bf700
 
 
 
 
 
7ead16c
 
 
 
 
09bf700
 
 
 
 
 
 
a25ac93
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
7ead16c
 
 
 
 
09bf700
 
 
 
 
 
7ead16c
 
 
 
 
09bf700
 
 
 
 
 
a25ac93
 
 
 
7ead16c
 
 
 
 
09bf700
 
 
 
 
 
7ead16c
 
 
 
 
09bf700
 
 
 
 
 
 
a25ac93
 
 
 
 
 
 
 
 
 
7ead16c
 
 
 
 
09bf700
 
 
 
 
 
7ead16c
 
 
 
 
09bf700
 
 
 
 
 
a25ac93
 
7ead16c
 
 
 
 
09bf700
 
 
 
 
 
7ead16c
 
 
 
 
09bf700
 
 
 
 
 
a25ac93
 
 
 
7ead16c
 
 
 
 
09bf700
 
 
 
 
 
7ead16c
 
 
 
 
09bf700
 
 
 
 
 
7ead16c
 
 
 
 
09bf700
 
 
 
 
 
7ead16c
 
 
 
 
09bf700
 
 
 
 
 
 
a25ac93
 
 
 
 
 
 
 
 
 
 
 
7ead16c
 
 
 
 
09bf700
 
 
 
 
 
a25ac93
 
 
 
 
 
 
 
 
 
 
 
7ead16c
 
 
 
 
09bf700
 
 
 
 
 
a25ac93
 
 
 
 
 
 
 
 
 
 
 
7ead16c
 
 
 
 
09bf700
 
 
 
 
 
a25ac93
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
7ead16c
 
 
 
 
09bf700
 
 
 
 
 
a25ac93
 
 
 
 
 
 
 
 
 
 
 
 
 
7ead16c
 
 
 
 
09bf700
 
 
 
 
 
a25ac93
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
7ead16c
 
 
 
 
09bf700
 
 
 
 
 
7ead16c
 
 
 
 
09bf700
 
 
 
 
 
7ead16c
 
 
 
 
09bf700
 
 
 
 
 
 
a25ac93
 
 
 
7ead16c
 
 
 
 
09bf700
 
 
 
 
 
7ead16c
 
 
 
 
09bf700
 
 
 
 
 
a25ac93
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
7ead16c
 
 
 
 
09bf700
 
 
 
 
 
a25ac93
 
 
 
 
 
 
 
 
 
7ead16c
 
 
 
 
09bf700
 
 
 
 
 
7ead16c
 
 
 
 
09bf700
 
 
 
 
 
7ead16c
 
 
 
 
09bf700
 
 
 
 
 
a25ac93
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
7ead16c
 
 
 
 
 
 
 
 
a25ac93
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
09bf700
a25ac93
7ead16c
09bf700
a25ac93
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
09bf700
a25ac93
 
7ead16c
a25ac93
 
09bf700
a25ac93
 
 
 
 
09bf700
 
a25ac93
 
09bf700
 
 
a25ac93
09bf700
a25ac93
09bf700
a25ac93
09bf700
 
 
 
 
 
 
 
 
 
a25ac93
09bf700
a25ac93
 
 
09bf700
 
7ead16c
09bf700
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Telugu Dialect Map - Telangana & Andhra Pradesh</title>

    <link rel="stylesheet" href="https://unpkg.com/leaflet@1.9.4/dist/leaflet.css"
        integrity="sha256-p4NxAoJBhIIN+hmNHrzRCf9tD/miZyoHS5obTRR9BMY=" crossorigin="" />

    <link href="https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&family=Ramabhadra&display=swap"
        rel="stylesheet">

    <style>
        body {
            margin: 0;
            padding: 0;
            font-family: 'Poppins', sans-serif;
            display: flex;
            height: 100vh;
            overflow: hidden;
        }

        /* Sidebar */
        #sidebar {
            width: 400px;
            background: #f8f9fa;
            border-right: 1px solid #ddd;
            display: flex;
            flex-direction: column;
            box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
            z-index: 1000;
        }

        .header {
            background: #2c3e50;
            color: white;
            padding: 15px;
            text-align: center;
        }

        .header h1 {
            margin: 0;
            font-size: 1.1rem;
        }

        .header p {
            margin: 5px 0 0;
            font-size: 0.75rem;
            opacity: 0.8;
        }

        #info-panel {
            padding: 20px;
            overflow-y: auto;
            flex-grow: 1;
        }

        /* District Info Styles */
        .district-title {
            color: #d35400;
            font-family: 'Ramabhadra', sans-serif;
            font-size: 1.6rem;
            margin-top: 0;
            margin-bottom: 5px;
        }

        .region-tag {
            display: inline-block;
            background: #e0e0e0;
            color: #555;
            padding: 2px 8px;
            border-radius: 4px;
            font-size: 0.7rem;
            margin-bottom: 15px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .history-box {
            background: #eaf2f8;
            border-left: 4px solid #3498db;
            padding: 12px;
            font-size: 0.85rem;
            color: #444;
            margin-bottom: 20px;
            line-height: 1.4;
        }

        /* Table Styles */
        .word-table {
            width: 100%;
            border-collapse: collapse;
            background: white;
            border-radius: 6px;
            overflow: hidden;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
            font-size: 0.85rem;
        }

        .word-table th {
            background: #34495e;
            color: white;
            text-align: left;
            padding: 8px;
            font-weight: 500;
        }

        .word-table td {
            padding: 8px;
            border-bottom: 1px solid #eee;
        }

        .word-table tr:last-child td {
            border-bottom: none;
        }

        .telugu-word {
            font-weight: bold;
            color: #c0392b;
            font-size: 0.95rem;
        }

        #map {
            flex-grow: 1;
            height: 100%;
        }

        /* Mobile */
        @media (max-width: 768px) {
            body {
                flex-direction: column;
            }

            #sidebar {
                width: 100%;
                height: 50%;
                order: 2;
            }

            #map {
                height: 50%;
                order: 1;
            }
        }
    </style>
</head>

<body>

    <div id="sidebar">
        <div class="header">
            <h1>Telugu Dialect Map</h1>
            <p id="district-counter">Loading districts...</p>
        </div>
        <div id="info-panel">
            <div style="text-align: center; color: #888; margin-top: 60px;">
                <p>👆 <strong>Select a District on the Map</strong></p>
                <p style="font-size: 0.8rem;">Explore words, meanings, and sources.</p>
            </div>
        </div>
    </div>

    <div id="map"></div>

    <script src="https://unpkg.com/leaflet@1.9.4/dist/leaflet.js"
        integrity="sha256-20nQCchB9co0qIjJZRGuk2/Z9VM+kNiyxNV1lvTlZBo=" crossorigin=""></script>

    <script>
        // --- 1. THE DATA (TELANGANA - 33 DISTRICTS) ---
        const dialectData = [
            // === NORTHERN TELANGANA ===
            {
                name: "Adilabad", lat: 19.6641, lng: 78.5320, region: "Northern Forest",
                history: "Heavily influenced by Gondi tribal dialects and Marathi due to the Maharashtra border.",
                words: [
                    { t: "చోలోట్", m: "మంచి (Good)", s: "Crowd" },
                    { t: "వంచెడ్ చిబడ్", m: "అంటు ముట్టుకోడం", s: "Crowd" },
                    { t: "వడోగు", m: "దూడ (Calf)", s: "Crowd" },
                    { t: "ముచిలి పడన్", m: "ఎర్ర తుమ్మెద", s: "Crowd" },
                    { t: "సర్కార్", m: "నాశనం", s: "Crowd" },
                    { t: "వజీర్", m: "ముసలి", s: "Crowd" },
                    { t: "ఖైని", m: "వదిన", s: "Crowd" },
                    { t: "సూన్", m: "కోడలు", s: "Crowd" },
                    { t: "Poral batal", m: "Temple term (Keslapur)", s: "Crowd" },
                    { t: "చోలోట్", m: "మంచి (Good)", s: "Crowd" },
                    { t: "వంచెడ్ చిబడ్", m: "అంటు ముట్టుకోడం", s: "Crowd" },
                    { t: "వడోగు", m: "దూడ (Calf)", s: "Crowd" },
                    { t: "ముచిలి పడన్", m: "ఎర్ర తుమ్మెద", s: "Crowd" },
                    { t: "సర్కార్", m: "నాశనం", s: "Crowd" },
                    { t: "వజీర్", m: "ముసలి", s: "Crowd" },
                    { t: "ఖైని", m: "వదిన", s: "Crowd" },
                    { t: "సూన్", m: "కోడలు", s: "Crowd" },
                    { t: "Poral batal", m: "Temple term (Keslapur)", s: "Crowd" },
                    { t: "కోయంగ్", m: "Dialect/Language", s: "Gondi" }, { t: "పైలం", m: "Careful", s: "Mandalikalu" },
                    { t: "ఆడ", m: "There", s: "General" }, { t: "కాకా", m: "Uncle", s: "Marathi Infl." },
                    { t: "పటేల్", m: "Village Head", s: "Tribal" }, { t: "గూడ", m: "Hamlet", s: "Rural" },
                    { t: "దుకణం", m: "Shop", s: "Dakhni" }, { t: "జల్దీ", m: "Fast", s: "General" },
                    { t: "పొత్తు", m: "Friendship", s: "Rural" }, { t: "బాపు", m: "Father", s: "Marathi Infl." }
                ]
            },
            {
                name: "Komaram Bheem Asifabad", lat: 19.3630, lng: 79.2930, region: "Tribal Heartland",
                history: "Named after the tribal leader Komaram Bheem. The vocabulary is rich in nature and forest-related terms.",
                words: [
                    { t: "జల్", m: "Water", s: "Tribal Slogan" }, { t: "జంగల్", m: "Forest", s: "Tribal" },
                    { t: "జమీన్", m: "Land", s: "Tribal" }, { t: "ఎర్రు", m: "Stream", s: "Local" },
                    { t: "తుడుం", m: "Drum", s: "Culture" }, { t: "గూడెం", m: "Settlement", s: "Rural" },
                    { t: "అవ్వ", m: "Grandmother", s: "General" }, { t: "స్వా", m: "Self/Own", s: "Gondi" },
                    { t: "పెన్", m: "Deity", s: "Tribal" }, { t: "దూదేకుల", m: "Cotton Cleaner", s: "Community" }
                ]
            },
            {
                name: "Mancherial", lat: 18.8679, lng: 79.4639, region: "Coal Belt",
                history: "The Singareni industrial influence brings mining terminology into the local dialect.",
                words: [
                    { t: "బొగ్గు", m: "Coal", s: "Mining" }, { t: "కార్మికుడు", m: "Worker", s: "Industry" },
                    { t: "బావి", m: "Well/Mine", s: "Mining" }, { t: "లారీ", m: "Truck", s: "Transport" },
                    { t: "గుంపు", m: "Crowd", s: "General" }, { t: "పోర", m: "Boy", s: "North TG" },
                    { t: "గత్తర", m: "Mess", s: "Slang" }, { t: "మస్తు", m: "Plenty", s: "Slang" },
                    { t: "కిరికిరి", m: "Trouble", s: "Slang" }, { t: "దోస్త్", m: "Friend", s: "General" }
                ]
            },
            {
                name: "Nirmal", lat: 19.0964, lng: 78.3430, region: "Arts & Crafts",
                history: "Famous for Nirmal toys and paintings. The dialect contains terms specific to woodcraft and art.",
                words: [
                    { t: "నకాషి", m: "Art/Painting", s: "Craft" }, { t: "బొమ్మ", m: "Doll", s: "General" },
                    { t: "కర్ర", m: "Wood", s: "Craft" }, { t: "రంగు", m: "Color", s: "General" },
                    { t: "ఏడ", m: "Where", s: "Grammar" }, { t: "ఈడ", m: "Here", s: "Grammar" },
                    { t: "దాని", m: "That thing", s: "Object" }, { t: "గాడి", m: "Donkey/Fellow", s: "Slang" },
                    { t: "బుక్కు", m: "Powder", s: "Craft" }, { t: "సంచి", m: "Bag", s: "General" }
                ]
            },
            // === NORTH-WEST ===
            {
                name: "Nizamabad", lat: 18.6725, lng: 78.0941, region: "Indur Agrarian",
                history: "Rich agricultural zone (Turmeric). Strong Dakhni Urdu influence from the Nizam era.",
                words: [
                    { t: "పంపేవుడు", m: "పంపించడం", s: "Crowd" },
                    { t: "Pillodu", m: "Bindu", s: "Crowd" },
                    { t: "వచ్చిండు", m: "అచ్చిండు", s: "Crowd" },
                    { t: "పంపేవుడు", m: "పంపించడం", s: "Crowd" },
                    { t: "Pillodu", m: "Bindu", s: "Crowd" },
                    { t: "వచ్చిండు", m: "అచ్చిండు", s: "Crowd" },
                    { t: "పసుపు", m: "Turmeric", s: "Agri" }, { t: "ఐగలు", m: "Priest", s: "Mandalikalu" },
                    { t: "హామీ", m: "Assurance", s: "Urdu Infl." }, { t: "జీరా", m: "Boundary", s: "Agri" },
                    { t: "పుంటికూర", m: "Gongura", s: "Food" }, { t: "అంగడి", m: "Shop", s: "Rural" },
                    { t: "చిచ్చా", m: "Uncle", s: "Dakhni" }, { t: "గుంపు", m: "Group", s: "General" },
                    { t: "పోరి", m: "Girl", s: "Slang" }, { t: "కాడ", m: "Near/At", s: "Grammar" }
                ]
            },
            {
                name: "Kamareddy", lat: 18.3228, lng: 78.3373, region: "Border Agrarian",
                history: "A blend of North Telangana and Hyderabad influences. Strong farming vocabulary.",
                words: [
                    { t: "మడి", m: "Paddy Field", s: "Agri" }, { t: "చెల్క", m: "Dry Land", s: "Agri" },
                    { t: "మోటరు", m: "Pump", s: "Farming" }, { t: "బోరు", m: "Borewell", s: "Agri" },
                    { t: "దూప", m: "Thirst", s: "General" }, { t: "బుక్కు", m: "Eat", s: "Slang" },
                    { t: "చూడు", m: "Look", s: "General" }, { t: "అత్త", m: "Mother-in-law", s: "Relations" },
                    { t: "మామ", m: "Uncle", s: "Relations" }, { t: "బావ", m: "Bro-in-law", s: "Relations" }
                ]
            },
            // === CENTRAL ===
            {
                name: "Karimnagar", lat: 18.4386, lng: 79.1288, region: "Cultural Core",
                history: "Considered the standard for 'Telangana Slang' in media. Sharp, distinct pronunciation.",
                words: [
                    { t: "బూరెలు", m: "భక్ష్యాలు", s: "Crowd" },
                    { t: "అచ్చినం", m: "వచ్చాము", s: "Crowd" },
                    { t: "పాయినం", m: "వెళ్ళాము", s: "Crowd" },
                    { t: "సవాలు", m: "Question/Challenge", s: "Crowd" },
                    { t: "గటక", m: "Food item", s: "Crowd" },
                    { t: "వస్తున్నావ", m: "వస్తున్నావు", s: "Crowd" },
                    { t: "ఊశము", m: "బద్ధకం/అలసత్వం", s: "Crowd" },
                    { t: "వందంగా ఉంది", m: "బాగా", s: "Crowd" },
                    { t: "రువిడ్లు", m: "Shelf", s: "Crowd" },
                    { t: "కార్యపాలు", m: "వస్తున్నం/పోతున్నాం", s: "Crowd" },
                    { t: "బావి", m: "నూతి", s: "Crowd" },
                    { t: "గంప", m: "గుల్ల", s: "Crowd" },
                    { t: "బంతి", m: "Ball", s: "Crowd" },
                    { t: "బూరెలు", m: "భక్ష్యాలు", s: "Crowd" },
                    { t: "అచ్చినం", m: "వచ్చాము", s: "Crowd" },
                    { t: "పాయినం", m: "వెళ్ళాము", s: "Crowd" },
                    { t: "సవాలు", m: "Question/Challenge", s: "Crowd" },
                    { t: "గటక", m: "Food item", s: "Crowd" },
                    { t: "వస్తున్నావ", m: "వస్తున్నావు", s: "Crowd" },
                    { t: "ఊశము", m: "బద్ధకం/అలసత్వం", s: "Crowd" },
                    { t: "వందంగా ఉంది", m: "బాగా", s: "Crowd" },
                    { t: "రువిడ్లు", m: "Shelf", s: "Crowd" },
                    { t: "కార్యపాలు", m: "వస్తున్నం/పోతున్నాం", s: "Crowd" },
                    { t: "బావి", m: "నూతి", s: "Crowd" },
                    { t: "గంప", m: "గుల్ల", s: "Crowd" },
                    { t: "బంతి", m: "Ball", s: "Crowd" },
                    { t: "తోపు", m: "Great/Top", s: "Slang" }, { t: "కేక", m: "Super", s: "Slang" },
                    { t: "లొల్లి", m: "Fight/Noise", s: "General" }, { t: "శాన", m: "Very", s: "Mandalikalu" },
                    { t: "పైసల్", m: "Money", s: "General" }, { t: "గత్తర", m: "Mess", s: "Slang" },
                    { t: "జర్ర", m: "Little bit", s: "General" }, { t: "పోరగాడు", m: "Kid/Boy", s: "General" },
                    { t: "ఎంబా", m: "What man!", s: "Phrase" }, { t: "వ్యాపారం", m: "Business", s: "General" }
                ]
            },
            {
                name: "Jagtial", lat: 18.7915, lng: 78.9130, region: "Fort Region",
                history: "Known for historic forts (Killa). Dialect shares Karimnagar roots with unique architectural terms.",
                words: [
                    { t: "ఖిల్లా", m: "Fort", s: "History" }, { t: "బురుజు", m: "Watchtower", s: "History" },
                    { t: "గడి", m: "Manor", s: "Architecture" }, { t: "మొక్కై", m: "Maize", s: "Agri" },
                    { t: "గుంపు", m: "Crowd", s: "General" }, { t: "ఆడ", m: "There", s: "General" },
                    { t: "ఈడ", m: "Here", s: "General" }, { t: "దానికి", m: "For that", s: "Grammar" },
                    { t: "దీనికి", m: "For this", s: "Grammar" }, { t: "ఎందుకు", m: "Why", s: "Grammar" }
                ]
            },
            {
                name: "Peddapalli", lat: 18.6146, lng: 79.3705, region: "Industrial Hub",
                history: "Home to NTPC and Coal mines. Vocabulary is a mix of rural and industrial English loan words.",
                words: [
                    { t: "గుమ్ము", m: "Storage", s: "Crowd" },
                    { t: "గట్టు", m: "దారి", s: "Crowd" },
                    { t: "గుమ్ము", m: "Storage", s: "Crowd" },
                    { t: "గట్టు", m: "దారి", s: "Crowd" },
                    { t: "బొగ్గు", m: "Coal", s: "Mining" }, { t: "కరెంట్", m: "Power", s: "Utility" },
                    { t: "క్వార్టర్", m: "Housing", s: "Industry" }, { t: "షిఫ్ట్", m: "Work Shift", s: "Labor" },
                    { t: "గేట్", m: "Entrance", s: "General" }, { t: "పోరడు", m: "Boy", s: "General" },
                    { t: "మస్తు", m: "Good/Enough", s: "Slang" }, { t: "బాగా", m: "Well", s: "General" },
                    { t: "సక్కగా", m: "Properly", s: "Adverb" }, { t: "మళ్ళ", m: "Again", s: "General" }
                ]
            },
            {
                name: "Rajanna Sircilla", lat: 18.3900, lng: 78.8350, region: "Weavers Hub",
                history: "The Textile capital. The dialect is rich in weaving (Netha) terminology.",
                words: [
                    { t: "మగ్గం", m: "Loom", s: "Weaving" }, { t: "నేత", m: "Weave", s: "Weaving" },
                    { t: "పోగులు", m: "Threads", s: "Textile" }, { t: "చీర", m: "Saree", s: "Textile" },
                    { t: "రంగు", m: "Dye/Color", s: "Textile" }, { t: "సాలి", m: "Weaver", s: "Community" },
                    { t: "కూలీ", m: "Wage", s: "Labor" }, { t: "పండ", m: "Bundle", s: "Textile" },
                    { t: "గోల", m: "Noise", s: "General" }, { t: "బతుకు", m: "Livelihood", s: "General" }
                ]
            },
            // === EASTERN ===
            {
                name: "Warangal", lat: 17.9689, lng: 79.5941, region: "Kakatiya Rural",
                history: "Historic Orugallu. Retains classical Telugu terms mixed with rural agricultural slang.",
                words: [
                    { t: "చేను", m: "Crop/చలక", s: "Crowd" },
                    { t: "పొయ్యం రారా", m: "ఇన్నానిల్లు", s: "Crowd" },
                    { t: "అసుంట", m: "అటు వైపు", s: "Crowd" },
                    { t: "ఇసుంట", m: "ఇటు వైపు", s: "Crowd" },
                    { t: "చద్దెర", m: "Bed sheet", s: "Crowd" },
                    { t: "చేను", m: "Crop/చలక", s: "Crowd" },
                    { t: "పొయ్యం రారా", m: "ఇన్నానిల్లు", s: "Crowd" },
                    { t: "అసుంట", m: "అటు వైపు", s: "Crowd" },
                    { t: "ఇసుంట", m: "ఇటు వైపు", s: "Crowd" },
                    { t: "చద్దెర", m: "Bed sheet", s: "Crowd" },
                    { t: "చెల్క", m: "Field", s: "Agri" }, { t: "గడ్డపార", m: "Crowbar", s: "Tools" },
                    { t: "నాగలి", m: "Plough", s: "Agri" }, { t: "ఎడ్లు", m: "Bulls", s: "Agri" },
                    { t: "పంట", m: "Crop", s: "Agri" }, { t: "ఎరువ", m: "Fertilizer", s: "Agri" },
                    { t: "గట్టు", m: "Bund", s: "Geo" }, { t: "చెరువు", m: "Tank", s: "Geo" },
                    { t: "తూము", m: "Sluice Gate", s: "Water" }, { t: "కట్ట", m: "Dam", s: "Water" }
                ]
            },
            {
                name: "Hanumakonda", lat: 18.0000, lng: 79.5800, region: "Kakatiya Urban",
                history: "The urban twin of Warangal. More cosmopolitan but retains the core Warangal accent.",
                words: [
                    { t: "గుడి", m: "Temple", s: "Landmark" }, { t: "ఓరుగల్లు", m: "Warangal", s: "History" },
                    { t: "శిల్పం", m: "Sculpture", s: "Art" }, { t: "పట్నం", m: "City", s: "Urban" },
                    { t: "గల్లీ", m: "Street", s: "Urban" }, { t: "సీన్", m: "Situation", s: "Slang" },
                    { t: "బొక్క", m: "Loss/Waste", s: "Slang" }, { t: "లైట్", m: "Take it easy", s: "Slang" },
                    { t: "మచ్చ", m: "Dude", s: "Slang" }, { t: "పోరగాడు", m: "Local Boy", s: "General" }
                ]
            },
            {
                name: "Jangaon", lat: 17.7226, lng: 79.1685, region: "Central Junction",
                history: "A crossroads district. Famous for Jatharas and rural festivals.",
                words: [
                    { t: "ఏమైంది", m: "What happened", s: "Crowd" },
                    { t: "ఏమైంది", m: "What happened", s: "Crowd" },
                    { t: "గుట్ట", m: "Hillock", s: "Geo" }, { t: "జాతర", m: "Fair", s: "Culture" },
                    { t: "బోనం", m: "Offering", s: "Ritual" }, { t: "సాక", m: "Branch", s: "Nature" },
                    { t: "కోడి", m: "Chicken", s: "Food" }, { t: "మేక", m: "Goat", s: "Agri" },
                    { t: "గొర్రు", m: "Sheep", s: "Agri" }, { t: "మాంసం", m: "Meat", s: "Food" },
                    { t: "కల్లు", m: "Toddy", s: "Drink" }, { t: "డబ్బ", m: "Can/Box", s: "General" }
                ]
            },
            {
                name: "Jayashankar Bhupalpally", lat: 18.4312, lng: 79.8621, region: "Forest & Mines",
                history: "Mix of thick forests and coal mines. Nature-based vocabulary is common.",
                words: [
                    { t: "గని", m: "Mine", s: "Mining" }, { t: "అడవి", m: "Forest", s: "Nature" },
                    { t: "చెట్టు", m: "Tree", s: "Nature" }, { t: "పులి", m: "Tiger", s: "Wildlife" },
                    { t: "వాగు", m: "Stream", s: "Geo" }, { t: "వంక", m: "Bend/Stream", s: "Geo" },
                    { t: "గుట్ట", m: "Hill", s: "Geo" }, { t: "రాయి", m: "Stone", s: "General" },
                    { t: "మట్టి", m: "Soil", s: "General" }, { t: "నీరు", m: "Water", s: "General" }
                ]
            },
            {
                name: "Mahabubabad", lat: 17.5956, lng: 80.0053, region: "Tribal Corridor",
                history: "Strong Lambadi/Banjara tribal presence influences the local lexicon.",
                words: [
                    { t: "బొచ్చెడు", m: "చాలా (A lot)", s: "Crowd" },
                    { t: "ఏ మయింది అన్నా", m: "What happened", s: "Crowd" },
                    { t: "బొచ్చెడు", m: "చాలా (A lot)", s: "Crowd" },
                    { t: "ఏ మయింది అన్నా", m: "What happened", s: "Crowd" },
                    { t: "తండా", m: "Hamlet", s: "Tribal" }, { t: "బంజారా", m: "Tribe", s: "Community" },
                    { t: "గూడు", m: "Nest/Hut", s: "General" }, { t: "తవ్వు", m: "Dig", s: "Action" },
                    { t: "పాట", m: "Song", s: "Culture" }, { t: "ఆట", m: "Dance/Play", s: "Culture" },
                    { t: "వేట", m: "Hunt", s: "Action" }, { t: "కత్తి", m: "Knife", s: "Tool" },
                    { t: "విల్లు", m: "Bow", s: "Weapon" }, { t: "బాణం", m: "Arrow", s: "Weapon" }
                ]
            },
            {
                name: "Mulugu", lat: 18.1912, lng: 79.9416, region: "Medaram Zone",
                history: "Famous for Sammakka Saralamma Jathara. Vocabulary centers around forest rituals.",
                words: [
                    { t: "మేడారం", m: "Place Name", s: "Pilgrimage" }, { t: "జాతర", m: "Festival", s: "Culture" },
                    { t: "అమ్మవారు", m: "Goddess", s: "Religion" }, { t: "బంగారం", m: "Gold (Jaggery)", s: "Ritual" },
                    { t: "బెల్లం", m: "Jaggery", s: "Food" }, { t: "తులాభారం", m: "Weighing", s: "Ritual" },
                    { t: "వనం", m: "Forest", s: "Nature" }, { t: "గుడి", m: "Temple", s: "Religion" },
                    { t: "మొక్కు", m: "Vow", s: "Religion" }, { t: "దర్శనం", m: "View", s: "Religion" }
                ]
            },
            {
                name: "Khammam", lat: 17.2473, lng: 80.1514, region: "Coastal Border",
                history: "Shares border with Andhra. Unique dialect fusion with words like 'Vachanu' alongside Telangana grammar.",
                words: [
                    { t: "వచ్చాను", m: "I came", s: "Andhra Infl." }, { t: "వెళ్ళాను", m: "I went", s: "Andhra Infl." },
                    { t: "గోదారి", m: "Godavari", s: "Geo" }, { t: "లంక", m: "Island", s: "Geo" },
                    { t: "ఇసుక", m: "Sand", s: "Nature" }, { t: "పడవ", m: "Boat", s: "Fishing" },
                    { t: "రేవు", m: "Port", s: "Fishing" }, { t: "చేప", m: "Fish", s: "Food" },
                    { t: "వల", m: "Net", s: "Fishing" }, { t: "పులుసు", m: "Stew", s: "Food" }
                ]
            },
            {
                name: "Bhadradri Kothagudem", lat: 17.5492, lng: 80.6190, region: "Temple & Tribal",
                history: "Home to Bhadrachalam temple and deep forests. Koya tribal dialect is prominent.",
                words: [
                    { t: "కోయ", m: "Tribal", s: "Community" }, { t: "పోడు", m: "Shifting Culti.", s: "Agri" },
                    { t: "మన్యం", m: "Forest Area", s: "Geo" }, { t: "కొండలు", m: "Hills", s: "Geo" },
                    { t: "గూడెం", m: "Settlement", s: "Rural" }, { t: "భద్రాచలం", m: "Temple Town", s: "Place" },
                    { t: "రామయ్య", m: "Lord Rama", s: "Religion" }, { t: "లడ్డు", m: "Sweet", s: "Food" },
                    { t: "పర్ణశాల", m: "Hut", s: "History" }, { t: "వాగు", m: "Stream", s: "Geo" }
                ]
            },
            // === SOUTHERN ===
            {
                name: "Mahabubnagar", lat: 16.7488, lng: 78.0035, region: "Palamuru",
                history: "Palamuru region. Known for migration (Valasa) and distinct, rougher intonation.",
                words: [
                    { t: "వీధి", m: "Street", s: "Crowd" },
                    { t: "జల్ది", m: "తొందరగా", s: "Crowd" },
                    { t: "జింగిడి", m: "బర్రెల గుంపు", s: "Crowd" },
                    { t: "బాగమ్", m: "Exhibition", s: "Crowd" },
                    { t: "చలక", m: "Field", s: "Crowd" },
                    { t: "ఈల పేట", m: "కత్తి పేట", s: "Crowd" },
                    { t: "వీధి", m: "Street", s: "Crowd" },
                    { t: "జల్ది", m: "తొందరగా", s: "Crowd" },
                    { t: "జింగిడి", m: "బర్రెల గుంపు", s: "Crowd" },
                    { t: "బాగమ్", m: "Exhibition", s: "Crowd" },
                    { t: "చలక", m: "Field", s: "Crowd" },
                    { t: "ఈల పేట", m: "కత్తి పేట", s: "Crowd" },
                    { t: "పాలమూరు", m: "Mahabubnagar", s: "Place" }, { t: "వలస", m: "Migration", s: "Social" },
                    { t: "కూలీ", m: "Laborer", s: "Social" }, { t: "అడ్డా", m: "Stand/Place", s: "Social" },
                    { t: "అప్ప", m: "Father", s: "Seema Infl." }, { t: "అయ్య", m: "Father", s: "General" },
                    { t: "బువ్వ", m: "Food", s: "Food" }, { t: "ఎరుక", m: "Knowledge", s: "General" },
                    { t: "మంచిగ", m: "Well", s: "Adverb" }, { t: "గుంపు", m: "Crowd", s: "General" }
                ]
            },
            {
                name: "Nagarkurnool", lat: 16.4856, lng: 78.3305, region: "Nallamalla Zone",
                history: "Covers the Nallamalla forest. Chenchu tribal words are part of the local mix.",
                words: [
                    { t: "అంబటాలు", m: "Morning meal time", s: "Crowd" },
                    { t: "మంకర", m: "Winter cold", s: "Crowd" },
                    { t: "లాడు", m: "తల్లి కూతురు", s: "Crowd" },
                    { t: "గెనిమ", m: "పొలం గట్టు", s: "Crowd" },
                    { t: "కోంత లోలు", m: "Old name for Nagar Kurnool", s: "Crowd" },
                    { t: "బుడ్డల నూనె", m: "పల్లి oil (Peanut oil)", s: "Crowd" },
                    { t: "అంబటాలు", m: "Morning meal time", s: "Crowd" },
                    { t: "మంకర", m: "Winter cold", s: "Crowd" },
                    { t: "లాడు", m: "తల్లి కూతురు", s: "Crowd" },
                    { t: "గెనిమ", m: "పొలం గట్టు", s: "Crowd" },
                    { t: "కోంత లోలు", m: "Old name for Nagar Kurnool", s: "Crowd" },
                    { t: "బుడ్డల నూనె", m: "పల్లి oil (Peanut oil)", s: "Crowd" },
                    { t: "నల్ల", m: "Black", s: "General" }, { t: "మళ్ళ", m: "Again", s: "General" },
                    { t: "కొండ", m: "Hill", s: "Geo" }, { t: "వాగు", m: "Stream", s: "Geo" },
                    { t: "చెంచు", m: "Tribe", s: "Community" }, { t: "తేనె", m: "Honey", s: "Forest" },
                    { t: "వెలగ", m: "Wood Apple", s: "Fruit" }, { t: "పండు", m: "Fruit", s: "General" },
                    { t: "ఆకు", m: "Leaf", s: "Nature" }, { t: "మూలిక", m: "Herb", s: "Forest" }
                ]
            },
            {
                name: "Wanaparthy", lat: 16.3621, lng: 78.0617, region: "Samsthanam",
                history: "A historic Samsthanam (Estate). The dialect reflects a feudal/royal past.",
                words: [
                    { t: "చెప్పలకాయలు", m: "గొంకరకాయలు", s: "Crowd" },
                    { t: "మలంచా", m: "చెంబు", s: "Crowd" },
                    { t: "సొరకాయ", m: "ఆనకాయ", s: "Crowd" },
                    { t: "పాశాల", m: "Clothes", s: "Crowd" },
                    { t: "మట్టుగుండు", m: "Keep calm", s: "Crowd" },
                    { t: "అంబరుంది", m: "Excellent", s: "Crowd" },
                    { t: "చెప్పలకాయలు", m: "గొంకరకాయలు", s: "Crowd" },
                    { t: "మలంచా", m: "చెంబు", s: "Crowd" },
                    { t: "సొరకాయ", m: "ఆనకాయ", s: "Crowd" },
                    { t: "పాశాల", m: "Clothes", s: "Crowd" },
                    { t: "మట్టుగుండు", m: "Keep calm", s: "Crowd" },
                    { t: "అంబరుంది", m: "Excellent", s: "Crowd" },
                    { t: "సంస్థానం", m: "Estate", s: "History" }, { t: "రాజా", m: "King", s: "History" },
                    { t: "కోట", m: "Fort", s: "History" }, { t: "బంగారు", m: "Golden", s: "General" },
                    { t: "పట్టు", m: "Silk", s: "Textile" }, { t: "చీర", m: "Saree", s: "Textile" },
                    { t: "నేస్త", m: "Weave", s: "Action" }, { t: "రైతు", m: "Farmer", s: "Agri" },
                    { t: "పొలం", m: "Field", s: "Agri" }, { t: "నీళ్ళు", m: "Water", s: "General" }
                ]
            },
            {
                name: "Jogulamba Gadwal", lat: 16.2343, lng: 77.7289, region: "River Doab",
                history: "Between Krishna and Tungabhadra rivers. Known for Handlooms and temples.",
                words: [
                    { t: "ఓల్లి", m: "No", s: "Crowd" },
                    { t: "కూడు తింటవా", m: "తిన్నారా", s: "Crowd" },
                    { t: "తువ్వ", m: "ఎర్ర పొలం", s: "Crowd" },
                    { t: "పురకోస", m: "జూట్ దార", s: "Crowd" },
                    { t: "జుముజలమ్మ", m: "దేవత", s: "Crowd" },
                    { t: "తలుగు ఎల్లమ్మ", m: "దేవత", s: "Crowd" },
                    { t: "తెల్వది", m: "Don\'t know", s: "Crowd" },
                    { t: "మడసంగ", m: "నెమ్మదిగా/జాగ్రత్తగా", s: "Crowd" },
                    { t: "రప్పున", m: "జల్ది", s: "Crowd" },
                    { t: "మడసంగ", m: "Careful", s: "Crowd" },
                    { t: "ఓల్లి", m: "No", s: "Crowd" },
                    { t: "కూడు తింటవా", m: "తిన్నారా", s: "Crowd" },
                    { t: "తువ్వ", m: "ఎర్ర పొలం", s: "Crowd" },
                    { t: "పురకోస", m: "జూట్ దార", s: "Crowd" },
                    { t: "జుముజలమ్మ", m: "దేవత", s: "Crowd" },
                    { t: "తలుగు ఎల్లమ్మ", m: "దేవత", s: "Crowd" },
                    { t: "తెల్వది", m: "Don\'t know", s: "Crowd" },
                    { t: "మడసంగ", m: "నెమ్మదిగా/జాగ్రత్తగా", s: "Crowd" },
                    { t: "రప్పున", m: "జల్ది", s: "Crowd" },
                    { t: "మడసంగ", m: "Careful", s: "Crowd" },
                    { t: "నడుము", m: "Waist/Middle", s: "Body" }, { t: "గడ్డ", m: "Land/Bank", s: "Geo" },
                    { t: "కృష్ణ", m: "River", s: "Geo" }, { t: "తుంగభద్ర", m: "River", s: "Geo" },
                    { t: "పదిహేను", m: "Fifteen", s: "Standard" }, { t: "పదహైదు", m: "Fifteen", s: "Local" },
                    { t: "గుడి", m: "Temple", s: "Religion" }, { t: "శక్తి", m: "Power", s: "Religion" },
                    { t: "జాతర", m: "Fair", s: "Culture" }, { t: "పొమ్మ", m: "Go", s: "Command" }
                ]
            },
            {
                name: "Narayanpet", lat: 16.7323, lng: 77.4988, region: "Karnataka Border",
                history: "Strong Kannada influence due to location. Cuisine terms (Rotti) are common.",
                words: [
                    { t: "బుబ్బి", m: "అమ్మ", s: "Crowd" },
                    { t: "పడం", m: "మట్టి", s: "Crowd" },
                    { t: "చెముక్కలు", m: "మోకాళ్ళు", s: "Crowd" },
                    { t: "మొర", m: "మంచం", s: "Crowd" },
                    { t: "అబుత", m: "జుట్టు", s: "Crowd" },
                    { t: "జేజి", m: "Fat", s: "Crowd" },
                    { t: "అంబలి", m: "జావ", s: "Crowd" },
                    { t: "బుబ్బి", m: "అమ్మ", s: "Crowd" },
                    { t: "పడం", m: "మట్టి", s: "Crowd" },
                    { t: "చెముక్కలు", m: "మోకాళ్ళు", s: "Crowd" },
                    { t: "మొర", m: "మంచం", s: "Crowd" },
                    { t: "అబుత", m: "జుట్టు", s: "Crowd" },
                    { t: "జేజి", m: "Fat", s: "Crowd" },
                    { t: "అంబలి", m: "జావ", s: "Crowd" },
                    { t: "పేట", m: "Town", s: "Suffix" }, { t: "చీర", m: "Saree", s: "Textile" },
                    { t: "మగ్గ", m: "Loom", s: "Textile" }, { t: "బోర్డర్", m: "Border", s: "Geo" },
                    { t: "కన్నడ", m: "Language", s: "Influence" }, { t: "రొట్టి", m: "Bread", s: "Food" },
                    { t: "పచ్చడి", m: "Pickle", s: "Food" }, { t: "ఉల్లిగడ్డ", m: "Onion", s: "Food" },
                    { t: "మిరప", m: "Chilli", s: "Food" }, { t: "ధనియాలు", m: "Coriander", s: "Food" }
                ]
            },
            {
                name: "Nalgonda", lat: 17.0577, lng: 79.2683, region: "Southern Plains",
                history: "Known for the Nalgonda movement. Dialect is direct, sharp, and iconic.",
                words: [
                    { t: "Dupa aithundhi", m: "దాహం వేస్తుంది", s: "Crowd" },
                    { t: "సేరు", m: "1kg measuring device", s: "Crowd" },
                    { t: "Kurdedu Biyam", m: "Amount of rice", s: "Crowd" },
                    { t: "Anglam dundu", m: "అగ్గి పెట్టె", s: "Crowd" },
                    { t: "సది", m: "Take the box", s: "Crowd" },
                    { t: "తట్ట", m: "పళ్ళెం", s: "Crowd" },
                    { t: "కోవెల", m: "గుడి", s: "Crowd" },
                    { t: "ఊసలు", m: "Weaving technique", s: "Crowd" },
                    { t: "బువ్వ", m: "Cooked rice", s: "Crowd" },
                    { t: "తవాచీ", m: "Shelf with doors", s: "Crowd" },
                    { t: "తపుకు", m: "Plate on vessel", s: "Crowd" },
                    { t: "లడ్లు", m: "అరిసెలు", s: "Crowd" },
                    { t: "దారి", m: "బాట", s: "Crowd" },
                    { t: "Dupa aithundhi", m: "దాహం వేస్తుంది", s: "Crowd" },
                    { t: "సేరు", m: "1kg measuring device", s: "Crowd" },
                    { t: "Kurdedu Biyam", m: "Amount of rice", s: "Crowd" },
                    { t: "Anglam dundu", m: "అగ్గి పెట్టె", s: "Crowd" },
                    { t: "సది", m: "Take the box", s: "Crowd" },
                    { t: "తట్ట", m: "పళ్ళెం", s: "Crowd" },
                    { t: "కోవెల", m: "గుడి", s: "Crowd" },
                    { t: "ఊసలు", m: "Weaving technique", s: "Crowd" },
                    { t: "బువ్వ", m: "Cooked rice", s: "Crowd" },
                    { t: "తవాచీ", m: "Shelf with doors", s: "Crowd" },
                    { t: "తపుకు", m: "Plate on vessel", s: "Crowd" },
                    { t: "లడ్లు", m: "అరిసెలు", s: "Crowd" },
                    { t: "దారి", m: "బాట", s: "Crowd" },
                    { t: "నల్ల", m: "Black", s: "General" }, { t: "కొండ", m: "Hill", s: "Geo" },
                    { t: "ఫ్లోరోసిస్", m: "Disease", s: "History" }, { t: "నీళ్ళు", m: "Water", s: "General" },
                    { t: "బావి", m: "Well", s: "Agri" }, { t: "ఏడ", m: "Where", s: "Grammar" },
                    { t: "ఆడ", m: "There", s: "Grammar" }, { t: "ఈడ", m: "Here", s: "Grammar" },
                    { t: "ఏంది", m: "What", s: "Grammar" }, { t: "గట్లుంటది", m: "Like that", s: "Phrase" }
                ]
            },
            {
                name: "Suryapet", lat: 17.1419, lng: 79.6234, region: "Highway Hub",
                history: "Located on the NH65. Vocabulary influenced by transport and commerce.",
                words: [
                    { t: "సూర్య", m: "Sun", s: "Name" }, { t: "పేట", m: "Town", s: "Suffix" },
                    { t: "హైవే", m: "Highway", s: "Transport" }, { t: "బస్సు", m: "Bus", s: "Transport" },
                    { t: "స్టాప్", m: "Stop", s: "Transport" }, { t: "తిను", m: "Eat", s: "Action" },
                    { t: "తాగు", m: "Drink", s: "Action" }, { t: "నిద్ర", m: "Sleep", s: "Action" },
                    { t: "లే", m: "Wake up", s: "Action" }, { t: "పో", m: "Go", s: "Action" }
                ]
            },
            {
                name: "Yadadri Bhuvanagiri", lat: 17.5113, lng: 78.8872, region: "Spiritual Hub",
                history: "Famous for Yadagirigutta and Pochampally silk. Religious and textile terms dominate.",
                words: [
                    { t: "గుట్ట", m: "Hill", s: "Geo" }, { t: "నరసింహ", m: "God", s: "Religion" },
                    { t: "లడ్డు", m: "Prasadam", s: "Food" }, { t: "కళ్యాణం", m: "Marriage", s: "Ritual" },
                    { t: "సిల్క్", m: "Silk", s: "Textile" }, { t: "ఇక్కత్", m: "Pattern", s: "Weave" },
                    { t: "రంగు", m: "Color", s: "General" }, { t: "డిజైన్", m: "Design", s: "General" },
                    { t: "మొక్కు", m: "Prayer", s: "Religion" }, { t: "భక్తి", m: "Devotion", s: "Religion" }
                ]
            },
            // === WESTERN & CAPITAL ===
            {
                name: "Medak", lat: 18.0487, lng: 78.2657, region: "Heritage West",
                history: "Historical seat of power. 'Metuku' (rice grain) is the etymological root.",
                words: [
                    { t: "కీసా", m: "జేబు", s: "Crowd" },
                    { t: "పైను", m: "ఆరు (Six)", s: "Crowd" },
                    { t: "కీసా", m: "జేబు", s: "Crowd" },
                    { t: "పైను", m: "ఆరు (Six)", s: "Crowd" },
                    { t: "చర్చి", m: "Church", s: "Landmark" }, { t: "మెతుకు", m: "Rice Grain", s: "Etymology" },
                    { t: "దుర్గం", m: "Fort", s: "History" }, { t: "కోట", m: "Fort", s: "History" },
                    { t: "గడి", m: "Room", s: "Rural" }, { t: "సింహ", m: "Lion", s: "Art" },
                    { t: "ద్వార", m: "Gate", s: "Arch." }, { t: "నిజాం", m: "Ruler", s: "History" },
                    { t: "సక్కగా", m: "Straight", s: "Adverb" }, { t: "సుద్దు", m: "News", s: "Rural" }
                ]
            },
            {
                name: "Sangareddy", lat: 17.6193, lng: 78.0815, region: "Manjira Basin",
                history: "Agricultural hub fed by Manjira river. Also houses the old Jail Museum.",
                words: [
                    { t: "జైలు", m: "Prison", s: "Landmark" }, { t: "మ్యూజియం", m: "Museum", s: "General" },
                    { t: "జూ", m: "Zoo", s: "General" }, { t: "పార్క్", m: "Park", s: "General" },
                    { t: "మంజీరా", m: "River", s: "Geo" }, { t: "బ్యారేజ్", m: "Dam", s: "Infra" },
                    { t: "నీరు", m: "Water", s: "General" }, { t: "కాలువ", m: "Canal", s: "Agri" },
                    { t: "పంటలు", m: "Crops", s: "Agri" }, { t: "చెరుకు", m: "Sugarcane", s: "Agri" }
                ]
            },
            {
                name: "Siddipet", lat: 18.1018, lng: 78.8520, region: "Political Hub",
                history: "A vibrant, politically active district. Home to Komuravelli Mallanna.",
                words: [
                    { t: "అంగీ", m: "Shirt", s: "Crowd" },
                    { t: "పొయ్యిర్రు", m: "వెళ్ళారు", s: "Crowd" },
                    { t: "మెగులుతుంది", m: "వర్షం వచ్చి ఆగిన", s: "Crowd" },
                    { t: "అలుకురు", m: "Pre cultivation", s: "Crowd" },
                    { t: "పయిలం", m: "జాగ్రత్త", s: "Crowd" },
                    { t: "తప్పెలు", m: "Rice plate", s: "Crowd" },
                    { t: "పందిట్లు", m: "పందిరి", s: "Crowd" },
                    { t: "రాకొచ్చింది", m: "రాదు", s: "Crowd" },
                    { t: "పోకొచ్చింది", m: "పోదు", s: "Crowd" },
                    { t: "కుకో", m: "కూర్చో", s: "Crowd" },
                    { t: "ఏడారు", m: "Afternoon time", s: "Crowd" },
                    { t: "అంగీ", m: "Shirt", s: "Crowd" },
                    { t: "పొయ్యిర్రు", m: "వెళ్ళారు", s: "Crowd" },
                    { t: "మెగులుతుంది", m: "వర్షం వచ్చి ఆగిన", s: "Crowd" },
                    { t: "అలుకురు", m: "Pre cultivation", s: "Crowd" },
                    { t: "పయిలం", m: "జాగ్రత్త", s: "Crowd" },
                    { t: "తప్పెలు", m: "Rice plate", s: "Crowd" },
                    { t: "పందిట్లు", m: "పందిరి", s: "Crowd" },
                    { t: "రాకొచ్చింది", m: "రాదు", s: "Crowd" },
                    { t: "పోకొచ్చింది", m: "పోదు", s: "Crowd" },
                    { t: "కుకో", m: "కూర్చో", s: "Crowd" },
                    { t: "ఏడారు", m: "Afternoon time", s: "Crowd" },
                    { t: "కోటి", m: "Monkey", s: "Local" }, { t: "మల్లన్న", m: "God Name", s: "Religion" },
                    { t: "పట్నం", m: "City", s: "General" }, { t: "చెరువు", m: "Lake", s: "Geo" },
                    { t: "బతుకమ్మ", m: "Festival", s: "Culture" }, { t: "పూలు", m: "Flowers", s: "Nature" },
                    { t: "గౌరి", m: "Goddess", s: "Religion" }, { t: "సాగనంపు", m: "Send off", s: "Ritual" },
                    { t: "దుబ్బాక", m: "Place Name", s: "Geo" }, { t: "ఓటు", m: "Vote", s: "Politics" }
                ]
            },
            {
                name: "Rangareddy", lat: 17.3457, lng: 78.5522, region: "Peri-Urban",
                history: "Surrounds Hyderabad. Mix of rural farms and real estate boom vocabulary.",
                words: [
                    { t: "వీరునో", m: "తెలుగు", s: "Crowd" },
                    { t: "తొక్కుడు", m: "మంచం", s: "Crowd" },
                    { t: "మూర", m: "ముంగిలి", s: "Crowd" },
                    { t: "కారం", m: "పచ్చడి", s: "Crowd" },
                    { t: "ఈ గడ", m: "కడ", s: "Crowd" },
                    { t: "వీరునో", m: "తెలుగు", s: "Crowd" },
                    { t: "తొక్కుడు", m: "మంచం", s: "Crowd" },
                    { t: "మూర", m: "ముంగిలి", s: "Crowd" },
                    { t: "కారం", m: "పచ్చడి", s: "Crowd" },
                    { t: "ఈ గడ", m: "కడ", s: "Crowd" },
                    { t: "ఎయిర్పోర్ట్", m: "Airport", s: "Infra" }, { t: "ఫ్లైట్", m: "Plane", s: "Transport" },
                    { t: "రియల్ ఎస్టేట్", m: "Land Biz", s: "Biz" }, { t: "ప్లాట్", m: "Plot", s: "Biz" },
                    { t: "రేటు", m: "Price", s: "Biz" }, { t: "మచ్చ", m: "Friend", s: "Slang" },
                    { t: "మామ", m: "Uncle", s: "Slang" }, { t: "సీన్", m: "Scenario", s: "Slang" },
                    { t: "కేక", m: "Shout/Super", s: "Slang" }, { t: "తోపు", m: "Great", s: "Slang" }
                ]
            },
            {
                name: "Medchal-Malkajgiri", lat: 17.6068, lng: 78.4839, region: "Urban Sprawl",
                history: "The most urbanized district. Vocabulary revolves around transport and education.",
                words: [
                    { t: "బస్తీ", m: "Colony", s: "Urban" }, { t: "ట్రైన్", m: "Train", s: "Transport" },
                    { t: "స్టేషన్", m: "Station", s: "Transport" }, { t: "కాలేజీ", m: "College", s: "Edu" },
                    { t: "హాస్టల్", m: "Hostel", s: "Edu" }, { t: "మెస్", m: "Dining", s: "Edu" },
                    { t: "బస్సు", m: "Bus", s: "Transport" }, { t: "పాస్", m: "Pass", s: "Transport" },
                    { t: "టికెట్", m: "Ticket", s: "Transport" }, { t: "సిటీ", m: "City", s: "Urban" }
                ]
            },
            {
                name: "Vikarabad", lat: 17.3364, lng: 77.9048, region: "Highlands",
                history: "Ananthagiri Hills region. Known for Tandur stone and cooler climate.",
                words: [
                    { t: "వాగు", m: "Stream", s: "Geo" }, { t: "హిల్స్", m: "Hills", s: "Tourism" },
                    { t: "గుడి", m: "Temple", s: "Religion" }, { t: "కాఫీ", m: "Coffee", s: "Agri" },
                    { t: "తాండూరు", m: "Town Name", s: "Geo" }, { t: "రాప", m: "Stone", s: "Material" },
                    { t: "బండ", m: "Slab/Rock", s: "General" }, { t: "రైల్వే", m: "Railway", s: "Transport" },
                    { t: "స్టేషన్", m: "Station", s: "Transport" }, { t: "రైలు", m: "Train", s: "Transport" }
                ]
            },
            {
                name: "Hyderabad", lat: 17.3850, lng: 78.4867, region: "Capital",
                history: "The historic capital. Famous for the unique Dakhni-Telugu fusion dialect.",
                words: [
                    { t: "కిటికీ", m: "Window", s: "Crowd" },
                    { t: "అంగీ", m: "Shirt", s: "Crowd" },
                    { t: "కుక్క", m: "Dog", s: "Crowd" },
                    { t: "కుర్చీ", m: "Chair", s: "Crowd" },
                    { t: "Amma buvva pettava", m: "Mother feed me", s: "Crowd" },
                    { t: "Chaderghat", m: "Location", s: "Crowd" },
                    { t: "తొవ్వ దారి", m: "Way/Path", s: "Crowd" },
                    { t: "పాతాళగరిసె", m: "Tool to remove bucket", s: "Crowd" },
                    { t: "అంబటాలు", m: "Afternoon time", s: "Crowd" },
                    { t: "ఇన్సురాయి", m: "Stone tool", s: "Crowd" },
                    { t: "బుక్కెట్", m: "Tool for well", s: "Crowd" },
                    { t: "కిటికీ", m: "Window", s: "Crowd" },
                    { t: "అంగీ", m: "Shirt", s: "Crowd" },
                    { t: "కుక్క", m: "Dog", s: "Crowd" },
                    { t: "కుర్చీ", m: "Chair", s: "Crowd" },
                    { t: "Amma buvva pettava", m: "Mother feed me", s: "Crowd" },
                    { t: "Chaderghat", m: "Location", s: "Crowd" },
                    { t: "తొవ్వ దారి", m: "Way/Path", s: "Crowd" },
                    { t: "పాతాళగరిసె", m: "Tool to remove bucket", s: "Crowd" },
                    { t: "అంబటాలు", m: "Afternoon time", s: "Crowd" },
                    { t: "ఇన్సురాయి", m: "Stone tool", s: "Crowd" },
                    { t: "బుక్కెట్", m: "Tool for well", s: "Crowd" },
                    { t: "కైకు", m: "Why", s: "Dakhni" }, { t: "నక్కో", m: "No", s: "Dakhni" },
                    { t: "హౌ", m: "Yes", s: "Dakhni" }, { t: "బైగన్", m: "Useless", s: "Slang" },
                    { t: "చిచ్చా", m: "Uncle", s: "Slang" }, { t: "పోట్టి", m: "Girl", s: "Slang" },
                    { t: "పోర", m: "Boy", s: "Slang" }, { t: "కిర్రాక్", m: "Crazy", s: "Slang" },
                    { t: "లైట్", m: "Ignore", s: "Slang" }, { t: "పరేషాన్", m: "Worried", s: "Urdu Infl." }
                ]
            }
        ];

        // --- 1.5. DYNAMIC DATA LOADING & MERGING ---

        // AP District Coordinate Mapping
        const AP_COORDINATES = {
  "Alluri Sitharama Raju": { "lat": 17.7000, "lng": 81.9000, "region": "Coastal Andhra", "history": "Named after the legendary freedom fighter; a hub of tribal culture and the Rampa Rebellion." },
  "Anakapalli": { "lat": 17.6913, "lng": 83.0039, "region": "Coastal Andhra", "history": "Historical Buddhist site (Bojjanakonda) and a major center for the jaggery trade." },
  "Anantapur": { "lat": 14.6856, "lng": 77.6006, "region": "Rayalaseema", "history": "Ancient cultural zone with Kannada and Marathi influences; home to the Gooty Fort." },
  "Annamayya": { "lat": 13.9744, "lng": 78.9647, "region": "Rayalaseema", "history": "Named after the saint-poet Tallapaka Annamacharya; rich in spiritual and forest heritage." },
  "Bapatla": { "lat": 15.9045, "lng": 80.4682, "region": "Coastal Andhra", "history": "Known for its historical Suryalanka beach and prominent educational institutions since the British era." },
  "Chittoor": { "lat": 13.2172, "lng": 79.1003, "region": "Rayalaseema", "history": "A major gateway to South India with deep links to the Vijayanagara Empire." },
  "Dr. B.R. Ambedkar Konaseema": { "lat": 16.6360, "lng": 81.9961, "region": "Coastal Andhra", "history": "The 'Kerala of Andhra'; a lush delta region known for Vedic culture and coconut groves." },
  "East Godavari": { "lat": 17.0005, "lng": 81.7729, "region": "Coastal Andhra", "history": "The rice bowl of AP; historically a cultural epicenter of the Telugu language." },
  "Eluru": { "lat": 16.7107, "lng": 81.1018, "region": "Coastal Andhra", "history": "Former Buddhist center and capital of the Vengi dynasty." },
  "Guntur": { "lat": 16.3067, "lng": 80.4365, "region": "Coastal Andhra", "history": "Ancient seat of learning (Amaravati) and a global hub for the spice trade." },
  "Kakinada": { "lat": 16.9891, "lng": 82.2475, "region": "Coastal Andhra", "history": "Known as the 'Pensioner's Paradise'; a key port city during the Dutch and British eras." },
  "Konaseema": { "lat": 16.5000, "lng": 82.0000, "region": "Coastal Andhra", "history": "Famous for its lush greenery and traditional Brahminical scholarship." },
  "Krishna": { "lat": 16.1800, "lng": 81.1300, "region": "Coastal Andhra", "history": "Named after the sacred river; the heartland of the Kuchipudi dance form." },
  "Kurnool": { "lat": 15.8281, "lng": 78.0373, "region": "Rayalaseema", "history": "The first capital of Andhra State (1953-1956) and home to the Konda Reddy Fort." },
  "Nandyal": { "lat": 15.4811, "lng": 78.4862, "region": "Rayalaseema", "history": "Surrounded by the 'Nava Nandulu' temples and a gateway to the Nallamala forests." },
  "NTR": { "lat": 16.5062, "lng": 80.6480, "region": "Coastal Andhra", "history": "Named after the legendary actor-politician N.T. Rama Rao; encompasses the bustling city of Vijayawada." },
  "Palnadu": { "lat": 16.2900, "lng": 79.9100, "region": "Coastal Andhra", "history": "Famous for the historic 'Battle of Palnadu' often compared to the Mahabharata." },
  "Parvathipuram Manyam": { "lat": 18.7781, "lng": 83.4219, "region": "Coastal Andhra", "history": "A tribal-dominated hill region with rich folk traditions and forest history." },
  "Prakasam": { "lat": 15.5057, "lng": 80.0493, "region": "Coastal Andhra", "history": "Named after Tanguturi Prakasam Pantulu; contains ancient Buddhist sites and Motupalli port." },
  "Sri Potti Sriramulu Nellore": { "lat": 14.4426, "lng": 79.9865, "region": "Coastal Andhra", "history": "Home to the Satish Dhawan Space Centre and historically famous for its mica mines." },
  "Sri Sathya Sai": { "lat": 14.1670, "lng": 77.8111, "region": "Rayalaseema", "history": "Named after the spiritual leader Sathya Sai Baba; includes the spiritual hub of Puttaparthi." },
  "Srikakulam": { "lat": 18.2949, "lng": 83.8938, "region": "Coastal Andhra", "history": "Ancient land of the Kalinga Empire with prominent sun temples and Buddhist ruins." },
  "Tirupati": { "lat": 13.6288, "lng": 79.4192, "region": "Rayalaseema", "history": "The spiritual capital of AP; home to the world-famous Lord Venkateswara Temple." },
  "Visakhapatnam": { "lat": 17.6868, "lng": 83.2185, "region": "Coastal Andhra", "history": "A major naval center and historical port known as the 'City of Destiny'." },
  "Vizianagaram": { "lat": 18.1124, "lng": 83.3956, "region": "Coastal Andhra", "history": "Meaning 'City of Victory'; historically ruled by the Pusapati Rajas." },
  "West Godavari": { "lat": 16.7110, "lng": 81.5230, "region": "Coastal Andhra", "history": "A prosperous agricultural region known for its extensive canal system and Kolleru Lake." },
  "YSR Kadapa": { "lat": 14.4673, "lng": 78.8242, "region": "Rayalaseema", "history": "Heart of the Rayalaseema region; home to the Gandikota canyon and rich mineral deposits." }
};

        async function loadAndMergeDynamicData() {
            try {
                // Load processed_dialects.json
                const response1 = await fetch('data/processed/processed_dialects.json');
                if (response1.ok) {
                    const dynamicDistricts = await response1.json();
                    console.log(`✓ Loaded ${dynamicDistricts.length} districts from processed_dialects.json`);

                    dynamicDistricts.forEach(dynamicDistrict => {
                        const existingDistrict = dialectData.find(d => d.name === dynamicDistrict.name);

                        if (existingDistrict) {
                            console.log(`  → Enhancing ${dynamicDistrict.name} with ${dynamicDistrict.words.length} additional words`);
                            existingDistrict.words = [...existingDistrict.words, ...dynamicDistrict.words];
                        } else {
                            console.log(`  → Adding new district: ${dynamicDistrict.name} with ${dynamicDistrict.words.length} words`);
                            dialectData.push(dynamicDistrict);
                        }
                    });
                }

                // Load digiwords_grouped.json
                const response2 = await fetch('data/processed/digiwords_grouped.json');
                if (response2.ok) {
                    const digiwords = await response2.json();

                    // Process both Telangana and Andhra Pradesh districts
                    ['Telangana', 'Andhra Pradesh'].forEach(state => {
                        const stateDistricts = digiwords[state] || {};
                        console.log(`\n✓ Processing ${Object.keys(stateDistricts).length} districts from ${state}`);

                        Object.entries(stateDistricts).forEach(([districtName, wordsArray]) => {
                            const existingDistrict = dialectData.find(d => d.name === districtName);

                            if (existingDistrict) {
                                // Merge words into existing district
                                console.log(`  → Merging ${wordsArray.length} words into ${districtName}`);
                                existingDistrict.words = [...existingDistrict.words, ...wordsArray];
                            } else {
                                // Create new district for AP (Telangana districts should already exist)
                                const coords = AP_COORDINATES[districtName];
                                if (coords) {
                                    const newDistrict = {
                                        name: districtName,
                                        lat: coords.lat,
                                        lng: coords.lng,
                                        region: coords.region,
                                        history: coords.history,
                                        words: wordsArray
                                    };
                                    console.log(`  → Adding new AP district: ${districtName} with ${wordsArray.length} words`);
                                    dialectData.push(newDistrict);
                                } else {
                                    console.warn(`  ⚠ Skipping ${districtName}: No coordinates found`);
                                }
                            }
                        });
                    });
                }

                console.log(`\n✅ Total districts loaded: ${dialectData.length}`);

            } catch (error) {
                console.error('Error loading dynamic data:', error);
                console.log('Continuing with hardcoded data only.');
            }
        }

        // --- 2. MAP SETUP ---
        // Initialize map after data is loaded
        let map;

        async function initializeMap() {
            // Load dynamic data first
            await loadAndMergeDynamicData();

            // Update district counter
            const telanganaCount = dialectData.filter(d => !AP_COORDINATES[d.name]).length;
            const apCount = dialectData.filter(d => AP_COORDINATES[d.name]).length;
            document.getElementById('district-counter').textContent =
                `Telangana: ${telanganaCount} • Andhra Pradesh: ${apCount} • Total: ${dialectData.length} Districts`;

            // Center map to show both Telangana and Andhra Pradesh
            map = L.map('map').setView([16.5, 79.8], 6.5);

            L.tileLayer('https://{s}.basemaps.cartocdn.com/light_all/{z}/{x}/{y}{r}.png', {
                attribution: '&copy; OSM contributors'
            }).addTo(map);

            // --- 3. MARKERS & INTERACTION ---
            const sidebarPanel = document.getElementById('info-panel');

            // Red Marker Style
            const redIcon = L.divIcon({
                className: 'custom-marker',
                html: '📍',
                iconSize: [30, 30],
                iconAnchor: [15, 30]
            });

            dialectData.forEach(d => {
                const marker = L.marker([d.lat, d.lng], { icon: redIcon }).addTo(map);

                // Hover Label
                marker.bindTooltip(`<b>${d.name}</b>`, { direction: 'top', offset: [0, -5] });

                // Click Action
                marker.on('click', () => {
                    map.flyTo([d.lat, d.lng], 9, { duration: 1.2 });
                    updateSidebar(d);
                });
            });

            function updateSidebar(data) {
                const rows = data.words.map(w => `
                <tr>
                    <td class="telugu-word">${w.t}</td>
                    <td>${w.m}</td>
                    <td style="color:#777; font-size:0.7rem;">${w.s}</td>
                </tr>
            `).join('');

                sidebarPanel.innerHTML = `
                <div style="animation:fadeIn 0.4s;">
                    <h2 class="district-title">${data.name}</h2>
                    <span class="region-tag">${data.region}</span>
                    <div class="history-box"><strong>📜 History:</strong> ${data.history}</div>
                    <table class="word-table">
                        <thead><tr><th>Word</th><th>Meaning</th><th>Src</th></tr></thead>
                        <tbody>${rows}</tbody>
                    </table>
                </div>
            `;
            }
        }

        // Start the application
        initializeMap();
    </script>
</body>

</html>