forked from dimartarmizi/map-to-poster
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
1074 lines (978 loc) · 68.4 KB
/
index.html
File metadata and controls
1074 lines (978 loc) · 68.4 KB
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
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/x-icon" href="/favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>MapToPoster JS - Create Beautiful Map Art</title>
<link rel="stylesheet" href="https://unpkg.com/leaflet@1.9.4/dist/leaflet.css" integrity="sha256-p4NxAoJBhIIN+hmNHrzRCf9tD/miZyoHS5obTRR9BMY=" crossorigin="" />
<link href="https://unpkg.com/maplibre-gl@4.7.1/dist/maplibre-gl.css" rel="stylesheet" />
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Caveat:wght@400;700&family=Cormorant+Garamond:wght@600&family=Dancing+Script:wght@400;700&family=Inter:wght@400;700&family=Lora:wght@400;700&family=Merriweather:wght@400;700&family=Montserrat:wght@400;700&family=Open+Sans:wght@400;700&family=Outfit:wght@300;400;600;700&family=Playfair+Display:ital,wght@0,700;1,700&family=Raleway:wght@400;700&family=Roboto:wght@400;700&family=Source+Code+Pro:wght@400;700&display=swap" rel="stylesheet">
<link rel="stylesheet" href="/style.css">
</head>
<body class="bg-[#f8fafc] h-screen flex flex-col md:flex-row overflow-hidden">
<nav id="mobile-nav" class="md:hidden fixed bottom-0 left-0 right-0 z-[60] flex items-center justify-center gap-3 px-4 pb-5 pt-2">
<div class="flex-1 bg-white/95 backdrop-blur-xl rounded-[1.75rem] shadow-2xl shadow-slate-900/15 border border-white/60 flex items-center p-1.5 gap-1">
<button id="nav-btn-a" class="mobile-nav-btn flex-1 flex flex-col items-center justify-center gap-0.5 py-2.5 px-2 rounded-2xl transition-all duration-200 text-slate-400" data-target="mobile-sheet-a">
<svg class="w-5 h-5 flex-shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M17.657 16.657L13.414 20.9a1.998 1.998 0 01-2.827 0l-4.244-4.243a8 8 0 1111.314 0z" />
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 11a3 3 0 11-6 0 3 3 0 016 0z" />
</svg>
<span class="mobile-nav-label text-[9px] font-black uppercase tracking-wider opacity-0 max-h-0 overflow-hidden transition-all duration-200">Location</span>
</button>
<button id="nav-btn-b" class="mobile-nav-btn flex-1 flex flex-col items-center justify-center gap-0.5 py-2.5 px-2 rounded-2xl transition-all duration-200 text-slate-400" data-target="mobile-sheet-b">
<svg class="w-5 h-5 flex-shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M7 21a4 4 0 01-4-4V5a2 2 0 012-2h4a2 2 0 012 2v12a4 4 0 01-4 4zm0 0h12a2 2 0 002-2v-4a2 2 0 00-2-2h-2.343M11 7.343l1.657-1.657a2 2 0 012.828 0l2.829 2.829a2 2 0 010 2.828l-8.486 8.485M7 17h.01" />
</svg>
<span class="mobile-nav-label text-[9px] font-black uppercase tracking-wider opacity-0 max-h-0 overflow-hidden transition-all duration-200">Style</span>
</button>
<button id="nav-btn-c" class="mobile-nav-btn flex-1 flex flex-col items-center justify-center gap-0.5 py-2.5 px-2 rounded-2xl transition-all duration-200 text-slate-400" data-target="mobile-sheet-c">
<svg class="w-5 h-5 flex-shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 5a1 1 0 011-1h14a1 1 0 011 1v2a1 1 0 01-1 1H5a1 1 0 01-1-1V5zM4 13a1 1 0 011-1h6a1 1 0 011 1v6a1 1 0 01-1 1H5a1 1 0 01-1-1v-6zM16 13a1 1 0 011-1h2a1 1 0 011 1v6a1 1 0 01-1 1h-2a1 1 0 01-1-1v-6z" />
</svg>
<span class="mobile-nav-label text-[9px] font-black uppercase tracking-wider opacity-0 max-h-0 overflow-hidden transition-all duration-200">Output</span>
</button>
<button id="nav-btn-d" class="mobile-nav-btn flex-1 flex flex-col items-center justify-center gap-0.5 py-2.5 px-2 rounded-2xl transition-all duration-200 text-slate-400" data-target="credits-modal">
<svg class="w-5 h-5 flex-shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M16 7a4 4 0 11-8 0 4 4 0 018 0zM12 14a7 7 0 00-7 7h14a7 7 0 00-7-7z" />
</svg>
<span class="mobile-nav-label text-[9px] font-black uppercase tracking-wider opacity-0 max-h-0 overflow-hidden transition-all duration-200">About</span>
</button>
</div>
<button id="mobile-export-btn" class="w-14 h-14 bg-accent rounded-full shadow-2xl shadow-accent/40 flex items-center justify-center flex-shrink-0 active:scale-95 transition-all duration-200">
<svg class="w-6 h-6 text-white" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2.5" d="M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-4l-4 4m0 0l-4-4m4 4V4" />
</svg>
</button>
</nav>
<aside class="hidden md:flex md:flex-col md:relative md:w-[380px] md:h-full bg-white border-r border-slate-100 overflow-hidden">
<div class="p-8 pb-6 flex items-center justify-between">
<button id="logo-btn" class="flex items-center space-x-3 hover:opacity-80 transition-opacity text-left outline-none group">
<div class="w-10 h-10 bg-accent rounded-xl flex items-center justify-center shadow-lg shadow-accent group-active:scale-95 transition-transform logo-pulse">
<svg class="w-6 h-6 text-white group-hover:hidden transition-all duration-300" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2.5" d="M17.657 16.657L13.414 20.9a1.998 1.998 0 01-2.827 0l-4.244-4.243a8 8 0 1111.314 0z" />
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2.5" d="M15 11a3 3 0 11-6 0 3 3 0 016 0z" />
</svg>
<svg class="w-6 h-6 text-white hidden group-hover:block transition-all duration-300" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2.5" d="M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z" />
</svg>
</div>
<div>
<h1 class="text-xl font-bold tracking-tight text-slate-900 leading-none">MapToPoster <span class="text-accent">JS</span></h1>
<p class="text-[10px] font-bold uppercase tracking-[0.2em] text-slate-400 mt-1">Procedural Map Artist</p>
</div>
</button>
</div>
<div class="flex-1 overflow-y-auto px-8 py-4 space-y-8 no-scrollbar">
<div id="section-location" class="space-y-4">
<div class="flex items-center justify-between">
<h3 class="text-sm font-semibold text-slate-900">1. Define Location</h3>
<span class="w-5 h-5 bg-slate-100 rounded-md flex items-center justify-center text-[10px] font-bold text-slate-400">01</span>
</div>
<div class="space-y-3">
<div class="relative group">
<span class="label-sm">Search City</span>
<div class="relative">
<input type="text" id="search-input" placeholder="Search world cities..." class="input-field pl-10 pr-10" />
<svg class="w-4 h-4 text-slate-400 absolute left-3.5 top-1/2 -translate-y-1/2" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z" />
</svg>
<div id="search-loading" class="absolute right-3.5 top-1/2 -translate-y-1/2 hidden">
<svg class="animate-spin h-4 w-4 text-accent" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24">
<circle class="opacity-25" cx="12" cy="12" r="10" stroke="currentColor" stroke-width="4"></circle>
<path class="opacity-75" fill="currentColor" d="M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"></path>
</svg>
</div>
</div>
<div id="search-results" class="absolute left-0 right-0 mt-2 bg-white border border-slate-200 rounded-2xl shadow-xl z-[100] hidden max-h-64 overflow-y-auto p-2 backdrop-blur-xl"></div>
</div>
<div class="mt-2 text-left">
<span class="label-sm">Override City Name</span>
<input type="text" id="city-override-input" placeholder="Leave blank to use search result" class="input-field mt-1" />
</div>
<div class="mt-2 text-left">
<div class="flex items-center justify-between mb-1">
<span class="label-sm mb-0">Override Country Name</span>
<button id="toggle-country-btn" title="Toggle country visibility on poster" class="w-6 h-6 flex items-center justify-center rounded-md hover:bg-slate-100 transition-colors flex-shrink-0">
<svg id="country-eye-icon" class="w-3.5 h-3.5 text-slate-400" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 12a3 3 0 11-6 0 3 3 0 016 0z" />
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M2.458 12C3.732 7.943 7.523 5 12 5c4.478 0 8.268 2.943 9.542 7-1.274 4.057-5.064 7-9.542 7-4.477 0-8.268-2.943-9.542-7z" />
</svg>
</button>
</div>
<input type="text" id="country-override-input" placeholder="Leave blank to use search result" class="input-field" />
</div>
<div class="mt-2">
<div class="flex items-center justify-between mb-1">
<span class="label-sm mb-0">Coordinates</span>
<button id="toggle-coords-btn" title="Toggle coordinates visibility on poster" class="w-6 h-6 flex items-center justify-center rounded-md hover:bg-slate-100 transition-colors flex-shrink-0">
<svg id="coords-eye-icon" class="w-3.5 h-3.5 text-slate-400" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 12a3 3 0 11-6 0 3 3 0 016 0z" />
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M2.458 12C3.732 7.943 7.523 5 12 5c4.478 0 8.268 2.943 9.542 7-1.274 4.057-5.064 7-9.542 7-4.477 0-8.268-2.943-9.542-7z" />
</svg>
</button>
</div>
<div class="grid grid-cols-2 gap-3">
<div>
<span class="label-sm">Latitude</span>
<input type="text" id="lat-input" class="input-field text-center font-mono text-xs" />
</div>
<div>
<span class="label-sm">Longitude</span>
<input type="text" id="lon-input" class="input-field text-center font-mono text-xs" />
</div>
</div>
</div>
</div>
</div>
<div id="section-marker" class="space-y-4">
<div class="flex items-center justify-between">
<h3 class="text-sm font-semibold text-slate-900">2. Marker & Route</h3>
<span class="w-5 h-5 bg-slate-100 rounded-md flex items-center justify-center text-[10px] font-bold text-slate-400">02</span>
</div>
<div class="space-y-4">
<div class="flex items-center justify-between">
<span class="label-sm mb-0">Show Location Marker</span>
<label class="relative inline-flex items-center cursor-pointer">
<input type="checkbox" id="show-marker-toggle" class="sr-only peer">
<div class="toggle-pill"></div>
</label>
</div>
<div id="marker-settings" class="space-y-4 hidden">
<div class="grid grid-cols-2 gap-3">
<div>
<span class="label-sm">Marker Symbol</span>
<div class="relative">
<select id="marker-icon-select" class="input-field appearance-none cursor-pointer text-xs py-2">
<option value="pin">Default Pin</option>
<option value="circle">Modern Dot</option>
<option value="heart">Heart</option>
<option value="star">Star</option>
<option value="none">Ghost Point</option>
</select>
<svg class="w-3 h-3 text-slate-400 absolute right-3 top-1/2 -translate-y-1/2 pointer-events-none" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 9l-7 7-7-7" />
</svg>
</div>
</div>
<div>
<div class="flex justify-between items-center mb-1.5">
<span class="label-sm mb-0">Size</span>
<span id="marker-size-value" class="text-[9px] font-bold text-accent">40px</span>
</div>
<input type="range" id="marker-size-slider" min="10" max="120" step="2" value="40" class="w-full h-1 bg-slate-100 rounded-lg appearance-none cursor-pointer accent-accent" />
</div>
</div>
<div class="bg-slate-50/50 rounded-2xl border border-slate-100 p-2 space-y-2">
<div class="flex items-center justify-between px-1.5 py-1">
<div class="flex items-center space-x-2">
<div class="w-1.5 h-1.5 bg-accent rounded-full animate-pulse"></div>
<span class="text-[10px] text-slate-500 font-medium uppercase tracking-wider"><span id="marker-count" class="font-bold text-slate-900">1</span> Markers Active</span>
</div>
<button id="clear-markers-btn" class="text-[9px] font-bold text-slate-400 hover:text-red-500 transition-colors uppercase tracking-tight">Clear All</button>
</div>
<div class="grid grid-cols-2 gap-2">
<button id="add-marker-btn" class="py-2.5 px-3 rounded-xl bg-white border border-slate-200 shadow-sm text-[10px] font-bold text-slate-600 hover:border-blue-200 hover:bg-blue-50/30 hover:text-blue-600 transition-all flex items-center justify-center space-x-2">
<svg class="w-3.5 h-3.5" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2.5" d="M12 4v16m8-8H4" />
</svg>
<span>Add Point</span>
</button>
<button id="remove-marker-btn" class="py-2.5 px-3 rounded-xl bg-white border border-slate-200 shadow-sm text-[10px] font-bold text-slate-600 hover:border-red-200 hover:bg-red-50/30 hover:text-red-600 transition-all flex items-center justify-center space-x-2">
<svg class="w-3.5 h-3.5" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2.5" d="M20 12H4" />
</svg>
<span>Remove Last</span>
</button>
</div>
</div>
<p class="text-[9px] text-slate-400 italic text-center">Tip: You can drag the marker on the map to reposition it.</p>
</div>
<div class="flex items-center justify-between">
<span class="label-sm mb-0">Custom Route (A to B)</span>
<label class="relative inline-flex items-center cursor-pointer">
<input type="checkbox" id="show-route-toggle" class="sr-only peer">
<div class="toggle-pill"></div>
</label>
</div>
<div id="route-settings" class="space-y-4 hidden">
<div class="bg-slate-50/50 rounded-2xl border border-slate-100 p-2 space-y-2">
<div class="flex items-center justify-between px-1.5 py-1">
<div class="flex items-center space-x-2">
<div class="w-1.5 h-1.5 bg-red-400 rounded-full animate-pulse"></div>
<span class="text-[10px] text-slate-500 font-medium uppercase tracking-wider"><span id="route-count" class="font-bold text-slate-900">2</span> Points Active</span>
</div>
<button id="reset-route-btn" class="text-[9px] font-bold text-slate-400 hover:text-red-500 transition-colors uppercase tracking-tight">Reset All</button>
</div>
</div>
<p class="text-[9px] text-slate-400 italic text-center">Tip: Drag the markers on the map to set the route. Click on the line to add a custom bend. Double click a point to remove it.</p>
</div>
</div>
</div>
<div id="section-style" class="space-y-4">
<div class="flex items-center justify-between">
<h3 class="text-sm font-semibold text-slate-900">3. Map Style</h3>
<span class="w-5 h-5 bg-slate-100 rounded-md flex items-center justify-center text-[10px] font-bold text-slate-400">03</span>
</div>
<div class="space-y-4">
<div class="bg-slate-100 p-1 rounded-xl flex">
<button id="mode-tile" class="flex-1 py-2 text-xs font-bold rounded-lg transition-all">Standard</button>
<button id="mode-artistic" class="flex-1 py-2 text-xs font-bold rounded-lg transition-all">Artistic</button>
</div>
<div id="standard-theme-config" class="space-y-4">
<div>
<span class="label-sm">Color Theme</span>
<div class="relative">
<select id="theme-select" class="input-field appearance-none cursor-pointer">
</select>
<svg class="w-4 h-4 text-slate-400 absolute right-4 top-1/2 -translate-y-1/2 pointer-events-none" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 9l-7 7-7-7" />
</svg>
</div>
</div>
<div class="flex items-center justify-between">
<span class="label-sm mb-0">Show Place Labels</span>
<label class="relative inline-flex items-center cursor-pointer">
<input type="checkbox" id="show-labels-toggle" class="sr-only peer">
<div class="toggle-pill"></div>
</label>
</div>
</div>
<div id="artistic-theme-config" class="space-y-4 hidden">
<div>
<span class="label-sm">Artistic Theme</span>
<div id="artistic-main-grid" class="grid grid-cols-2 gap-3 mt-2">
</div>
</div>
<p id="artistic-desc" class="text-[10px] text-slate-400 italic px-1"></p>
</div>
</div>
</div>
<div id="section-composition" class="space-y-4">
<div class="flex items-center justify-between">
<h3 class="text-sm font-semibold text-slate-900">4. Composition</h3>
<span class="w-5 h-5 bg-slate-100 rounded-md flex items-center justify-center text-[10px] font-bold text-slate-400">04</span>
</div>
<div class="space-y-4">
<div>
<div class="flex justify-between items-center mb-2">
<span class="label-sm mb-0">Perspective Zoom</span>
<span id="zoom-value" class="text-xs font-bold text-accent bg-accent-light px-2 py-0.5 rounded-full">12</span>
</div>
<input type="range" id="zoom-slider" min="1" max="18" step="1" class="w-full h-1.5 bg-slate-100 rounded-lg appearance-none cursor-pointer accent-accent" />
</div>
<div id="overlay-controls" class="mt-4 space-y-4">
<div>
<span class="label-sm">Overlay Effect</span>
<div id="overlay-bg-group" class="grid grid-cols-3 gap-2 w-full mt-1">
<button type="button" data-bg="none" class="overlay-bg-btn px-3 py-2 text-[10px] font-bold rounded-lg bg-slate-50 border border-slate-100">None</button>
<button type="button" data-bg="vignette" class="overlay-bg-btn px-3 py-2 text-[10px] font-bold rounded-lg bg-slate-50 border border-slate-100">Vignette</button>
<button type="button" data-bg="radial" class="overlay-bg-btn px-3 py-2 text-[10px] font-bold rounded-lg bg-slate-50 border border-slate-100">Radial</button>
</div>
</div>
<div>
<span class="label-sm">Overlay Size</span>
<div id="overlay-size-group" class="grid grid-cols-4 gap-2 w-full mt-1">
<button type="button" data-size="none" class="overlay-size-btn px-3 py-2 text-[10px] font-bold rounded-lg bg-slate-50 border border-slate-100">None</button>
<button type="button" data-size="small" class="overlay-size-btn px-3 py-2 text-[10px] font-bold rounded-lg bg-slate-50 border border-slate-100">Small</button>
<button type="button" data-size="medium" class="overlay-size-btn px-3 py-2 text-[10px] font-bold rounded-lg bg-slate-50 border border-slate-100">Medium</button>
<button type="button" data-size="large" class="overlay-size-btn px-3 py-2 text-[10px] font-bold rounded-lg bg-slate-50 border border-slate-100">Large</button>
</div>
</div>
<div id="overlay-position-group">
<div class="flex items-center justify-between">
<span class="label-sm mb-0">Overlay Position</span>
<button id="reset-overlay-pos-btn" title="Reset to default position" class="flex items-center space-x-1 px-2 py-1 text-[9px] font-bold text-slate-400 hover:text-accent hover:bg-accent-light rounded-lg transition-all">
<svg class="w-3 h-3" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2.5" d="M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15" />
</svg>
<span>Reset</span>
</button>
</div>
<div class="space-y-4 mt-1">
<div class="grid grid-cols-3 gap-1.5">
<button class="overlay-pos-btn relative aspect-square rounded-lg border border-slate-100 bg-slate-50 hover:border-accent hover:bg-white transition-all" data-overlay-x="0.15" data-overlay-y="0.15" title="Top Left">
<span class="pos-dot absolute top-1.5 left-1.5 w-2 h-2 rounded-full bg-slate-300 transition-colors"></span>
</button>
<button class="overlay-pos-btn relative aspect-square rounded-lg border border-slate-100 bg-slate-50 hover:border-accent hover:bg-white transition-all" data-overlay-x="0.5" data-overlay-y="0.15" title="Top Center">
<span class="pos-dot absolute top-1.5 left-1/2 -translate-x-1/2 w-2 h-2 rounded-full bg-slate-300 transition-colors"></span>
</button>
<button class="overlay-pos-btn relative aspect-square rounded-lg border border-slate-100 bg-slate-50 hover:border-accent hover:bg-white transition-all" data-overlay-x="0.85" data-overlay-y="0.15" title="Top Right">
<span class="pos-dot absolute top-1.5 right-1.5 w-2 h-2 rounded-full bg-slate-300 transition-colors"></span>
</button>
<button class="overlay-pos-btn relative aspect-square rounded-lg border border-slate-100 bg-slate-50 hover:border-accent hover:bg-white transition-all" data-overlay-x="0.15" data-overlay-y="0.5" title="Middle Left">
<span class="pos-dot absolute top-1/2 left-1.5 -translate-y-1/2 w-2 h-2 rounded-full bg-slate-300 transition-colors"></span>
</button>
<button class="overlay-pos-btn relative aspect-square rounded-lg border border-slate-100 bg-slate-50 hover:border-accent hover:bg-white transition-all" data-overlay-x="0.5" data-overlay-y="0.5" title="Center">
<span class="pos-dot absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-2 h-2 rounded-full bg-slate-300 transition-colors"></span>
</button>
<button class="overlay-pos-btn relative aspect-square rounded-lg border border-slate-100 bg-slate-50 hover:border-accent hover:bg-white transition-all" data-overlay-x="0.85" data-overlay-y="0.5" title="Middle Right">
<span class="pos-dot absolute top-1/2 right-1.5 -translate-y-1/2 w-2 h-2 rounded-full bg-slate-300 transition-colors"></span>
</button>
<button class="overlay-pos-btn relative aspect-square rounded-lg border border-slate-100 bg-slate-50 hover:border-accent hover:bg-white transition-all" data-overlay-x="0.15" data-overlay-y="0.85" title="Bottom Left">
<span class="pos-dot absolute bottom-1.5 left-1.5 w-2 h-2 rounded-full bg-slate-300 transition-colors"></span>
</button>
<button class="overlay-pos-btn relative aspect-square rounded-lg border border-slate-100 bg-slate-50 hover:border-accent hover:bg-white transition-all" data-overlay-x="0.5" data-overlay-y="0.85" title="Bottom Center">
<span class="pos-dot absolute bottom-1.5 left-1/2 -translate-x-1/2 w-2 h-2 rounded-full bg-slate-300 transition-colors"></span>
</button>
<button class="overlay-pos-btn relative aspect-square rounded-lg border border-slate-100 bg-slate-50 hover:border-accent hover:bg-white transition-all" data-overlay-x="0.85" data-overlay-y="0.85" title="Bottom Right">
<span class="pos-dot absolute bottom-1.5 right-1.5 w-2 h-2 rounded-full bg-slate-300 transition-colors"></span>
</button>
</div>
<p class="text-[9px] text-slate-400 italic text-center">Tip: Drag the map to reposition it freely.</p>
</div>
</div>
</div>
</div>
</div>
<div id="section-typography" class="space-y-4">
<div class="flex items-center justify-between">
<h3 class="text-sm font-semibold text-slate-900">5. Typography</h3>
<span class="w-5 h-5 bg-slate-100 rounded-md flex items-center justify-center text-[10px] font-bold text-slate-400">05</span>
</div>
<div class="space-y-4">
<div>
<span class="label-sm">City Font</span>
<div class="relative">
<select id="city-font-select" class="input-field appearance-none cursor-pointer">
<option value="'Bebas Neue', sans-serif">Bebas Neue</option>
<option value="'Caveat', cursive">Caveat</option>
<option value="'Cormorant Garamond', serif">Cormorant Garamond</option>
<option value="'Dancing Script', cursive">Dancing Script</option>
<option value="'Inter', sans-serif">Inter</option>
<option value="'Lora', serif">Lora</option>
<option value="'Merriweather', serif">Merriweather</option>
<option value="'Montserrat', sans-serif">Montserrat</option>
<option value="'Outfit', sans-serif">Outfit</option>
<option value="'Playfair Display', serif">Playfair Display</option>
<option value="'Raleway', sans-serif">Raleway</option>
<option value="sans-serif">Generic Sans-Serif</option>
<option value="serif">Generic Serif</option>
</select>
<svg class="w-4 h-4 text-slate-400 absolute right-4 top-1/2 -translate-y-1/2 pointer-events-none" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 9l-7 7-7-7" />
</svg>
</div>
</div>
<div>
<span class="label-sm">Country Font</span>
<div class="relative">
<select id="country-font-select" class="input-field appearance-none cursor-pointer">
<option value="'Caveat', cursive">Caveat</option>
<option value="'Inter', sans-serif">Inter</option>
<option value="'Lora', serif">Lora</option>
<option value="'Montserrat', sans-serif">Montserrat</option>
<option value="'Open Sans', sans-serif">Open Sans</option>
<option value="'Outfit', sans-serif">Outfit</option>
<option value="'Playfair Display', serif">Playfair Display</option>
<option value="'Raleway', sans-serif">Raleway</option>
<option value="'Roboto', sans-serif">Roboto</option>
<option value="sans-serif">Generic Sans-Serif</option>
</select>
<svg class="w-4 h-4 text-slate-400 absolute right-4 top-1/2 -translate-y-1/2 pointer-events-none" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 9l-7 7-7-7" />
</svg>
</div>
</div>
<div>
<span class="label-sm">Coordinates Font</span>
<div class="relative">
<select id="coords-font-select" class="input-field appearance-none cursor-pointer">
<option value="monospace">Monospace</option>
<option value="'Montserrat', sans-serif">Montserrat</option>
<option value="'Outfit', sans-serif">Outfit</option>
<option value="'Roboto', sans-serif">Roboto</option>
<option value="'Source Code Pro', monospace">Source Code Pro</option>
<option value="sans-serif">Generic Sans-Serif</option>
</select>
<svg class="w-4 h-4 text-slate-400 absolute right-4 top-1/2 -translate-y-1/2 pointer-events-none" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 9l-7 7-7-7" />
</svg>
</div>
</div>
</div>
</div>
<div id="section-mat" class="space-y-4">
<div class="flex items-center justify-between">
<h3 class="text-sm font-semibold text-slate-900">6. Mat / Passepartout</h3>
<span class="w-5 h-5 bg-slate-100 rounded-md flex items-center justify-center text-[10px] font-bold text-slate-400">06</span>
</div>
<div class="space-y-4">
<div class="flex items-center justify-between">
<span class="label-sm mb-0">Enable Mat</span>
<label class="relative inline-flex items-center cursor-pointer">
<input type="checkbox" id="mat-toggle" class="sr-only peer">
<div class="toggle-pill"></div>
</label>
</div>
<div id="mat-settings" class="space-y-4 hidden">
<div>
<div class="flex justify-between items-center mb-2">
<span class="label-sm mb-0">Mat Width</span>
<span id="mat-width-value" class="text-xs font-bold text-accent bg-accent-light px-2 py-0.5 rounded-full">40px</span>
</div>
<input type="range" id="mat-width-slider" min="10" max="200" step="5" value="40" class="w-full h-1.5 bg-slate-100 rounded-lg appearance-none cursor-pointer accent-accent" />
</div>
<div class="flex items-center justify-between">
<span class="label-sm mb-0">Show Inner Border</span>
<label class="relative inline-flex items-center cursor-pointer">
<input type="checkbox" id="mat-border-toggle" class="sr-only peer" checked>
<div class="toggle-pill"></div>
</label>
</div>
<div id="mat-border-settings" class="space-y-4">
<div>
<div class="flex justify-between items-center mb-2">
<span class="label-sm mb-0">Border Thickness</span>
<span id="mat-border-width-value" class="text-xs font-bold text-accent bg-accent-light px-2 py-0.5 rounded-full">1px</span>
</div>
<input type="range" id="mat-border-width-slider" min="1" max="10" step="1" value="1" class="w-full h-1.5 bg-slate-100 rounded-lg appearance-none cursor-pointer accent-accent" />
</div>
<div>
<div class="flex justify-between items-center mb-2">
<span class="label-sm mb-0">Border Opacity</span>
<span id="mat-border-opacity-value" class="text-xs font-bold text-accent bg-accent-light px-2 py-0.5 rounded-full">100%</span>
</div>
<input type="range" id="mat-border-opacity-slider" min="0" max="1" step="0.1" value="1" class="w-full h-1.5 bg-slate-100 rounded-lg appearance-none cursor-pointer accent-accent" />
</div>
</div>
</div>
</div>
</div>
<div id="section-output" class="space-y-4">
<div class="flex items-center justify-between">
<h3 class="text-sm font-semibold text-slate-900">7. Output Size</h3>
<span class="w-5 h-5 bg-slate-100 rounded-md flex items-center justify-center text-[10px] font-bold text-slate-400">07</span>
</div>
<div class="space-y-4">
<div class="grid grid-cols-2 gap-2">
<button class="preset-btn px-4 py-3 text-[11px] font-semibold border border-slate-100 bg-slate-50 rounded-xl hover:bg-white hover:border-accent hover:shadow-sm transition-all duration-200 flex flex-col items-center justify-center space-y-1" data-width="1080" data-height="1080">
<span>Square</span>
<span class="text-[9px] font-normal">1080 × 1080</span>
</button>
<button class="preset-btn px-4 py-3 text-[11px] font-semibold border border-slate-100 bg-slate-50 rounded-xl hover:bg-white hover:border-accent hover:shadow-sm transition-all duration-200 flex flex-col items-center justify-center space-y-1" data-width="1080" data-height="1920">
<span>Portrait</span>
<span class="text-[9px] font-normal">1080 × 1920</span>
</button>
<button class="preset-btn px-4 py-3 text-[11px] font-semibold border border-slate-100 bg-slate-50 rounded-xl hover:bg-white hover:border-accent hover:shadow-sm transition-all duration-200 flex flex-col items-center justify-center space-y-1" data-width="1920" data-height="1080">
<span>Landscape</span>
<span class="text-[9px] font-normal">1920 × 1080</span>
</button>
<button id="other-presets-btn" class="px-4 py-3 text-[11px] font-semibold border border-slate-100 bg-slate-50 rounded-xl hover:bg-white hover:border-accent hover:shadow-sm transition-all duration-200 flex flex-col items-center justify-center space-y-1">
<span>Other</span>
<span class="text-[9px] font-normal">More Sizes</span>
</button>
</div>
<div class="flex items-center space-x-3 bg-slate-50 p-3 rounded-2xl border border-dotted border-slate-200">
<div class="flex-1">
<input type="number" id="custom-w" placeholder="Width" min="100" max="50000" class="w-full bg-transparent border-none text-[11px] font-bold text-center focus:ring-0 p-0" />
</div>
<span class="text-slate-300 text-xs">×</span>
<div class="flex-1">
<input type="number" id="custom-h" placeholder="Height" min="100" max="50000" class="w-full bg-transparent border-none text-[11px] font-bold text-center focus:ring-0 p-0" />
</div>
</div>
<button id="reset-settings-btn" class="hidden md:flex w-full py-3 px-4 rounded-xl border border-red-50 bg-red-50/50 text-[10px] font-bold uppercase tracking-wider text-red-400 hover:bg-red-500 hover:text-white hover:border-red-500 transition-all items-center justify-center space-x-2">
<svg class="w-3.5 h-3.5" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2.5" d="M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15" />
</svg>
<span>Reset to Defaults</span>
</button>
</div>
</div>
</div>
<div class="p-8 border-t border-slate-100 bg-slate-50/50 backdrop-blur-sm">
<button id="export-btn" class="w-full bg-slate-900 group-hover:bg-accent hover:bg-accent text-white font-bold py-4 px-6 rounded-2xl shadow-xl shadow-slate-200 transition-all duration-300 flex items-center justify-center space-x-3 group active:scale-[0.98]">
<svg class="w-5 h-5 group-hover:translate-y-0.5 transition-transform" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2.5" d="M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-4l-4 4m0 0l-4-4m4 4V4" />
</svg>
<span>Generate Export</span>
</button>
<div id="export-status" class="mt-4 flex items-center justify-center space-x-2 hidden">
<div class="w-1.5 h-1.5 bg-white rounded-full animate-bounce" style="animation-delay: 0s"></div>
<div class="w-1.5 h-1.5 bg-white rounded-full animate-bounce" style="animation-delay: 0.1s"></div>
<div class="w-1.5 h-1.5 bg-white rounded-full animate-bounce" style="animation-delay: 0.2s"></div>
<span class="text-[10px] font-bold uppercase tracking-wider text-slate-400">Rendering Art...</span>
</div>
</div>
</aside>
<main class="flex-1 overflow-hidden flex items-center justify-center p-4 pb-8 md:p-16 md:pb-16 relative bg-[#f0f4f8] perspective-lg">
<div class="absolute top-0 left-0 w-full h-full overflow-hidden pointer-events-none opacity-40">
<div class="absolute -top-[15%] -left-[15%] w-[55%] h-[55%] bg-accent-soft blur-[100px] rounded-full"></div>
<div class="absolute -bottom-[15%] -right-[15%] w-[55%] h-[55%] bg-accent-soft blur-[100px] rounded-full"></div>
<div class="absolute top-[30%] right-[10%] w-[30%] h-[30%] bg-accent-soft blur-[90px] rounded-full opacity-50"></div>
</div>
<div id="poster-scaler" class="transition-all duration-500 ease-out origin-center">
<div id="poster-container" class="relative bg-white shadow-[0_50px_100px_-20px_rgba(0,0,0,0.3)] ring-1 ring-black/5 overflow-hidden">
<div id="map-preview" class="absolute inset-0 z-0 grayscale-[0.2]"></div>
<div id="artistic-map" class="absolute inset-0 z-[1]"></div>
<div id="mat-border" class="absolute pointer-events-none z-[6]"></div>
<div id="vignette-overlay" class="absolute inset-0 z-[5] pointer-events-none"></div>
<div id="poster-overlay" class="absolute z-10 flex flex-col items-center justify-center text-center cursor-grab active:cursor-grabbing select-none">
<div class="overlay-bg absolute inset-0 -z-10"></div>
<h2 id="display-city" class="text-6xl md:text-8xl font-bold uppercase tracking-[0.25em] pl-[0.25em] text-slate-900 mb-4 font-serif break-words w-full leading-tight">JAKARTA</h2>
<div id="poster-divider" class="h-px w-32 bg-slate-900 mb-4 opacity-80"></div>
<div class="flex flex-col items-center space-y-0">
<p id="display-country" class="text-lg md:text-xl tracking-[0.4em] pl-[0.4em] font-bold text-slate-900 uppercase mb-0">INDONESIA</p>
<p id="display-coords" class="text-base md:text-lg tracking-[0.4em] pl-[0.4em] font-medium text-slate-600">6.2088° S / 106.8456° E</p>
</div>
</div>
<div id="poster-attribution" class="absolute bottom-4 right-4 z-20 text-[8px] opacity-30 pointer-events-none uppercase tracking-widest">© OpenStreetMap Contributors</div>
</div>
</div>
<div class="absolute bottom-8 right-8 flex flex-col items-end space-y-3 pointer-events-none">
<div class="glass-card px-4 py-2 rounded-full flex items-center space-x-3 opacity-0 group-hover:opacity-100 transition-opacity">
<kbd class="text-[10px] bg-slate-800 text-white px-1.5 py-0.5 rounded font-bold uppercase">Shift</kbd>
<span class="text-[11px] font-semibold text-slate-500 italic">Scroll to zoom map</span>
</div>
</div>
</main>
<div id="mobile-sheet-a" class="mobile-settings-modal md:hidden fixed inset-x-0 bottom-0 z-[80] pointer-events-none">
<div class="sheet-backdrop absolute inset-0 -top-[100vh] bg-slate-900/50 backdrop-blur-sm opacity-0 transition-opacity duration-300"></div>
<div class="sheet-panel relative bg-white rounded-t-[2rem] shadow-2xl translate-y-full transition-transform duration-300 max-h-[82vh] flex flex-col">
<div class="flex-shrink-0 px-6 pt-5 pb-4 flex items-center justify-between border-b border-slate-100">
<div>
<h2 class="text-lg font-bold text-slate-900">Location & Markers</h2>
<p class="text-[10px] font-bold uppercase tracking-wider text-slate-400 mt-0.5">Define Location · Marker & Route</p>
</div>
<button class="close-sheet-btn w-9 h-9 flex items-center justify-center rounded-xl hover:bg-slate-100 transition-colors" data-sheet="mobile-sheet-a">
<svg class="w-5 h-5 text-slate-400" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12" />
</svg>
</button>
</div>
<div id="mobile-sheet-a-content" class="flex-1 overflow-y-auto px-6 py-5 space-y-6 no-scrollbar"></div>
<div class="flex-shrink-0 px-6 py-4 border-t border-slate-100">
<button id="mobile-reset-a-btn" class="w-full py-3 px-4 rounded-xl border border-red-50 bg-red-50/50 text-[10px] font-bold uppercase tracking-wider text-red-400 active:bg-red-500 active:text-white active:border-red-500 transition-all flex items-center justify-center space-x-2">
<svg class="w-3.5 h-3.5" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2.5" d="M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15" />
</svg>
<span>Reset to Defaults</span>
</button>
</div>
</div>
</div>
<div id="mobile-sheet-b" class="mobile-settings-modal md:hidden fixed inset-x-0 bottom-0 z-[80] pointer-events-none">
<div class="sheet-backdrop absolute inset-0 -top-[100vh] bg-slate-900/50 backdrop-blur-sm opacity-0 transition-opacity duration-300"></div>
<div class="sheet-panel relative bg-white rounded-t-[2rem] shadow-2xl translate-y-full transition-transform duration-300 max-h-[82vh] flex flex-col">
<div class="flex-shrink-0 px-6 pt-5 pb-4 flex items-center justify-between border-b border-slate-100">
<div>
<h2 class="text-lg font-bold text-slate-900">Map Style</h2>
<p class="text-[10px] font-bold uppercase tracking-wider text-slate-400 mt-0.5">Map Style · Composition · Typography</p>
</div>
<button class="close-sheet-btn w-9 h-9 flex items-center justify-center rounded-xl hover:bg-slate-100 transition-colors" data-sheet="mobile-sheet-b">
<svg class="w-5 h-5 text-slate-400" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12" />
</svg>
</button>
</div>
<div id="mobile-sheet-b-content" class="flex-1 overflow-y-auto px-6 py-5 space-y-6 no-scrollbar"></div>
<div class="flex-shrink-0 px-6 py-4 border-t border-slate-100">
<button id="mobile-reset-b-btn" class="w-full py-3 px-4 rounded-xl border border-red-50 bg-red-50/50 text-[10px] font-bold uppercase tracking-wider text-red-400 active:bg-red-500 active:text-white active:border-red-500 transition-all flex items-center justify-center space-x-2">
<svg class="w-3.5 h-3.5" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2.5" d="M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15" />
</svg>
<span>Reset to Defaults</span>
</button>
</div>
</div>
</div>
<div id="mobile-sheet-c" class="mobile-settings-modal md:hidden fixed inset-x-0 bottom-0 z-[80] pointer-events-none">
<div class="sheet-backdrop absolute inset-0 -top-[100vh] bg-slate-900/50 backdrop-blur-sm opacity-0 transition-opacity duration-300"></div>
<div class="sheet-panel relative bg-white rounded-t-[2rem] shadow-2xl translate-y-full transition-transform duration-300 max-h-[82vh] flex flex-col">
<div class="flex-shrink-0 px-6 pt-5 pb-4 flex items-center justify-between border-b border-slate-100">
<div>
<h2 class="text-lg font-bold text-slate-900">Output</h2>
<p class="text-[10px] font-bold uppercase tracking-wider text-slate-400 mt-0.5">Mat / Passepartout · Output Size</p>
</div>
<button class="close-sheet-btn w-9 h-9 flex items-center justify-center rounded-xl hover:bg-slate-100 transition-colors" data-sheet="mobile-sheet-c">
<svg class="w-5 h-5 text-slate-400" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12" />
</svg>
</button>
</div>
<div id="mobile-sheet-c-content" class="flex-1 overflow-y-auto px-6 py-5 space-y-6 no-scrollbar"></div>
<div class="flex-shrink-0 px-6 py-4 border-t border-slate-100">
<button id="mobile-reset-c-btn" class="w-full py-3 px-4 rounded-xl border border-red-50 bg-red-50/50 text-[10px] font-bold uppercase tracking-wider text-red-400 active:bg-red-500 active:text-white active:border-red-500 transition-all flex items-center justify-center space-x-2">
<svg class="w-3.5 h-3.5" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2.5" d="M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15" />
</svg>
<span>Reset to Defaults</span>
</button>
</div>
</div>
</div>
<div id="credits-modal" class="fixed inset-0 z-[100] flex items-center justify-center pointer-events-none opacity-0 transition-opacity duration-300">
<div id="credits-overlay" class="absolute inset-0 bg-slate-900/60 backdrop-blur-md"></div>
<div class="relative w-[90%] max-w-md max-h-[85vh] bg-white rounded-[2.5rem] shadow-2xl overflow-hidden flex flex-col scale-95 transition-transform duration-300">
<div class="p-8 border-b border-slate-100 flex items-center justify-between bg-slate-50/50">
<div>
<h2 class="text-2xl font-bold text-slate-900">Credits</h2>
<p class="text-xs text-slate-400 font-medium uppercase tracking-wider mt-1">About the developer</p>
</div>
<button id="close-credits" class="w-10 h-10 flex items-center justify-center rounded-xl hover:bg-slate-100 transition-colors">
<svg class="w-6 h-6 text-slate-400" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12" />
</svg>
</button>
</div>
<div class="flex-1 overflow-y-auto p-8 space-y-8 no-scrollbar">
<div class="flex flex-col items-center text-center space-y-4">
<div class="w-24 h-24 bg-accent rounded-3xl flex items-center justify-center shadow-xl shadow-accent/20 overflow-hidden ring-4 ring-slate-50">
<img src="/dimar-tarmizi.webp" alt="Dimar Tarmizi" class="w-full h-full object-cover" />
</div>
<div>
<h3 class="text-xl font-bold text-slate-900">Dimar Tarmizi</h3>
<p class="text-sm text-slate-500 font-medium italic">Full-stack Developer</p>
</div>
<div class="grid grid-cols-3 gap-3 w-full">
<a href="https://tarmizi.id" target="_blank" class="flex flex-col items-center p-3 rounded-2xl bg-slate-50 border border-slate-100 hover:border-accent hover:bg-white transition-all group">
<svg class="w-5 h-5 text-slate-400 group-hover:text-accent transition-colors" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M21 12a9 9 0 01-9 9m9-9a9 9 0 00-9-9m9 9H3m9 9a9 9 0 01-9-9m9 9c1.657 0 3-4.03 3-9s-1.343-9-3-9m0 18c-1.657 0-3-4.03-3-9s1.343-9 3-9m-9 9a9 9 0 019-9" />
</svg>
<span class="text-[9px] font-bold uppercase tracking-wider mt-2 text-slate-400 group-hover:text-slate-900 transition-colors">Website</span>
</a>
<a href="https://github.com/dimartarmizi" target="_blank" class="flex flex-col items-center p-3 rounded-2xl bg-slate-50 border border-slate-100 hover:border-accent hover:bg-white transition-all group">
<svg class="w-5 h-5 text-slate-400 group-hover:text-accent transition-colors" fill="currentColor" viewBox="0 0 24 24">
<path d="M12 0c-6.626 0-12 5.373-12 12 0 5.302 3.438 9.8 8.207 11.387.599.111.793-.261.793-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.756-1.333-1.756-1.089-.745.083-.729.083-.729 1.205.084 1.839 1.237 1.839 1.237 1.07 1.834 2.807 1.304 3.492.997.107-.775.418-1.305.762-1.604-2.665-.305-5.467-1.334-5.467-5.931 0-1.311.469-2.381 1.236-3.221-.124-.303-.535-1.524.117-3.176 0 0 1.008-.322 3.301 1.23.957-.266 1.983-.399 3.003-.404 1.02.005 2.047.138 3.006.404 2.291-1.552 3.297-1.23 3.297-1.23.653 1.653.242 2.874.118 3.176.77.84 1.235 1.911 1.235 3.221 0 4.609-2.807 5.624-5.479 5.921.43.372.823 1.102.823 2.222v3.293c0 .319.192.694.801.576 4.765-1.589 8.199-6.086 8.199-11.386 0-6.627-5.373-12-12-12z" />
</svg>
<span class="text-[9px] font-bold uppercase tracking-wider mt-2 text-slate-400 group-hover:text-slate-900 transition-colors">GitHub</span>
</a>
<a href="https://www.linkedin.com/in/dimartarmizi" target="_blank" class="flex flex-col items-center p-3 rounded-2xl bg-slate-50 border border-slate-100 hover:border-accent hover:bg-white transition-all group">
<svg class="w-5 h-5 text-slate-400 group-hover:text-accent transition-colors" fill="currentColor" viewBox="0 0 24 24">
<path d="M19 0h-14c-2.761 0-5 2.239-5 5v14c0 2.761 2.239 5 5 5h14c2.762 0 5-2.239 5-5v-14c0-2.761-2.238-5-5-5zm-11 19h-3v-11h3v11zm-1.5-12.268c-.966 0-1.75-.79-1.75-1.764s.784-1.764 1.75-1.764 1.75.79 1.75 1.764-.783 1.764-1.75 1.764zm13.5 12.268h-3v-5.604c0-3.368-4-3.113-4 0v5.604h-3v-11h3v1.765c1.396-2.586 7-2.777 7 2.476v6.759z" />
</svg>
<span class="text-[9px] font-bold uppercase tracking-wider mt-2 text-slate-400 group-hover:text-slate-900 transition-colors">LinkedIn</span>
</a>
<a href="https://www.instagram.com/dimartarmizi" target="_blank" class="flex flex-col items-center p-3 rounded-2xl bg-slate-50 border border-slate-100 hover:border-accent hover:bg-white transition-all group">
<svg class="w-5 h-5 text-slate-400 group-hover:text-accent transition-colors" fill="currentColor" viewBox="0 0 24 24">
<path d="M12 2.163c3.204 0 3.584.012 4.85.07 3.252.148 4.771 1.691 4.919 4.919.058 1.265.069 1.645.069 4.849 0 3.205-.012 3.584-.069 4.849-.149 3.225-1.664 4.771-4.919 4.919-1.266.058-1.644.07-4.85.07-3.204 0-3.584-.012-4.849-.07-3.26-.149-4.771-1.699-4.919-4.92-.058-1.265-.07-1.644-.07-4.849 0-3.204.013-3.583.07-4.849.149-3.227 1.664-4.771 4.919-4.919 1.266-.057 1.645-.069 4.849-.069zm0-2.163c-3.259 0-3.667.014-4.947.072-4.358.2-6.78 2.618-6.98 6.98-.059 1.281-.073 1.689-.073 4.948 0 3.259.014 3.668.072 4.948.2 4.358 2.618 6.78 6.98 6.98 1.281.058 1.689.072 4.948.072 3.259 0 3.668-.014 4.948-.072 4.354-.2 6.782-2.618 6.979-6.98.059-1.28.073-1.689.073-4.948 0-3.259-.014-3.667-.072-4.947-.196-4.354-2.617-6.78-6.979-6.98-1.281-.059-1.69-.073-4.949-.073zm0 5.838c-3.403 0-6.162 2.759-6.162 6.162s2.759 6.163 6.162 6.163 6.162-2.759 6.162-6.163-2.759-6.162-6.162-6.162zm0 10.162c-2.209 0-4-1.79-4-4 0-2.209 1.791-4 4-4s4 1.791 4 4c0 2.21-1.791 4-4 4zm6.406-11.845c-.796 0-1.441.645-1.441 1.44s.645 1.44 1.441 1.44c.795 0 1.439-.645 1.439-1.44s-.644-1.44-1.439-1.44z" />
</svg>
<span class="text-[9px] font-bold uppercase tracking-wider mt-2 text-slate-400 group-hover:text-slate-900 transition-colors">Instagram</span>
</a>
<a href="https://www.facebook.com/dimartarmizi" target="_blank" class="flex flex-col items-center p-3 rounded-2xl bg-slate-50 border border-slate-100 hover:border-accent hover:bg-white transition-all group">
<svg class="w-5 h-5 text-slate-400 group-hover:text-accent transition-colors" fill="currentColor" viewBox="0 0 24 24">
<path d="M22.675 0h-21.35c-.732 0-1.325.593-1.325 1.325v21.351c0 .731.593 1.324 1.325 1.324h11.495v-9.294h-3.128v-3.622h3.128v-2.671c0-3.1 1.893-4.788 4.659-4.788 1.325 0 2.463.099 2.795.143v3.24l-1.918.001c-1.504 0-1.795.715-1.795 1.763v2.312h3.587l-.467 3.622h-3.12v9.293h6.116c.73 0 1.323-.593 1.323-1.325v-21.35c0-.732-.593-1.325-1.325-1.325z" />
</svg>
<span class="text-[9px] font-bold uppercase tracking-wider mt-2 text-slate-400 group-hover:text-slate-900 transition-colors">Facebook</span>
</a>
<a href="https://www.reddit.com/user/dimartarmizi" target="_blank" class="flex flex-col items-center p-3 rounded-2xl bg-slate-50 border border-slate-100 hover:border-accent hover:bg-white transition-all group">
<svg class="w-5 h-5 text-slate-400 group-hover:text-accent transition-colors" fill="currentColor" viewBox="0 0 16 16">
<path d="M6.167 8a.83.83 0 0 0-.83.83c0 .459.372.84.83.831a.831.831 0 0 0 0-1.661m1.843 3.647c.315 0 1.403-.038 1.976-.611a.23.23 0 0 0 0-.306.213.213 0 0 0-.306 0c-.353.363-1.126.487-1.67.487-.545 0-1.308-.124-1.671-.487a.213.213 0 0 0-.306 0 .213.213 0 0 0 0 .306c.564.563 1.652.61 1.977.61zm.992-2.807c0 .458.373.83.831.83s.83-.381.83-.83a.831.831 0 0 0-1.66 0z" />
<path d="M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0m-3.828-1.165c-.315 0-.602.124-.812.325-.801-.573-1.9-.945-3.121-.993l.534-2.501 1.738.372a.83.83 0 1 0 .83-.869.83.83 0 0 0-.744.468l-1.938-.41a.2.2 0 0 0-.153.028.2.2 0 0 0-.086.134l-.592 2.788c-1.24.038-2.358.41-3.17.992-.21-.2-.496-.324-.81-.324a1.163 1.163 0 0 0-.478 2.224q-.03.17-.029.353c0 1.795 2.091 3.256 4.669 3.256s4.668-1.451 4.668-3.256c0-.114-.01-.238-.029-.353.401-.181.688-.592.688-1.069 0-.65-.525-1.165-1.165-1.165" />
</svg>
<span class="text-[9px] font-bold uppercase tracking-wider mt-2 text-slate-400 group-hover:text-slate-900 transition-colors">Reddit</span>
</a>
</div>
</div>
<div class="space-y-4">
<div class="flex items-center space-x-3">
<div class="w-1 h-5 bg-accent rounded-full"></div>
<h3 class="text-[10px] font-black text-slate-400 uppercase tracking-[0.2em]">Tech Stack</h3>
</div>
<div class="flex flex-wrap gap-2">
<span class="px-3 py-1.5 bg-slate-50 border border-slate-100 rounded-lg text-[10px] font-bold text-slate-600">html2canvas</span>
<span class="px-3 py-1.5 bg-slate-50 border border-slate-100 rounded-lg text-[10px] font-bold text-slate-600">leaflet</span>
<span class="px-3 py-1.5 bg-slate-50 border border-slate-100 rounded-lg text-[10px] font-bold text-slate-600">maplibre-gl</span>
<span class="px-3 py-1.5 bg-slate-50 border border-slate-100 rounded-lg text-[10px] font-bold text-slate-600">tailwindcss</span>
<span class="px-3 py-1.5 bg-slate-50 border border-slate-100 rounded-lg text-[10px] font-bold text-slate-600">vite</span>
</div>
</div>
</div>
<div class="p-6 bg-slate-50 border-t border-slate-100 flex flex-col items-center space-y-3">
<a href="https://github.com/dimartarmizi/map-to-poster" target="_blank" class="flex items-center space-x-2 text-[10px] font-bold text-slate-400 hover:text-accent transition-colors uppercase tracking-[0.1em] group">
<svg class="w-4 h-4 text-slate-400 group-hover:text-accent transition-colors" fill="currentColor" viewBox="0 0 24 24">
<path d="M12 0c-6.626 0-12 5.373-12 12 0 5.302 3.438 9.8 8.207 11.387.599.111.793-.261.793-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.756-1.333-1.756-1.089-.745.083-.729.083-.729 1.205.084 1.839 1.237 1.839 1.237 1.07 1.834 2.807 1.304 3.492.997.107-.775.418-1.305.762-1.604-2.665-.305-5.467-1.334-5.467-5.931 0-1.311.469-2.381 1.236-3.221-.124-.303-.535-1.524.117-3.176 0 0 1.008-.322 3.301 1.23.957-.266 1.983-.399 3.003-.404 1.02.005 2.047.138 3.006.404 2.291-1.552 3.297-1.23 3.297-1.23.653 1.653.242 2.874.118 3.176.77.84 1.235 1.911 1.235 3.221 0 4.609-2.807 5.624-5.479 5.921.43.372.823 1.102.823 2.222v3.293c0 .319.192.694.801.576 4.765-1.589 8.199-6.086 8.199-11.386 0-6.627-5.373-12-12-12z" />
</svg>
<span>Open source</span>
</a>
<p class="text-[10px] font-bold text-slate-400 uppercase tracking-widest opacity-50">Made with ❤️ in Indonesia</p>
</div>
</div>
</div>
<div id="artistic-modal" class="fixed inset-0 z-[100] flex items-center justify-center pointer-events-none opacity-0 transition-opacity duration-300">
<div id="artistic-modal-overlay" class="absolute inset-0 bg-slate-900/60 backdrop-blur-md"></div>
<div class="relative w-[90%] max-w-2xl max-h-[85vh] bg-white rounded-[2.5rem] shadow-2xl overflow-hidden flex flex-col scale-95 transition-transform duration-300">
<div class="p-8 border-b border-slate-100 flex items-center justify-between">
<div>
<h2 class="text-2xl font-bold text-slate-900">More Artistic Themes</h2>
<p class="text-xs text-slate-400 font-medium uppercase tracking-wider mt-1">Choose from more palettes</p>
</div>
<button id="close-artistic-modal" class="w-10 h-10 flex items-center justify-center rounded-xl hover:bg-slate-100 transition-colors">
<svg class="w-6 h-6 text-slate-400" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12" />
</svg>
</button>
</div>
<div id="artistic-modal-content" class="flex-1 overflow-y-auto p-8 space-y-4 no-scrollbar">
</div>
<div class="p-6 bg-slate-50 border-t border-slate-100 flex justify-end">
<button id="close-artistic-modal-btn" class="px-6 py-2.5 bg-slate-900 text-white text-sm font-bold rounded-xl hover:bg-accent transition-colors">Done</button>
</div>
</div>
</div>
<div id="custom-theme-modal" class="fixed inset-0 z-[110] flex items-center justify-center pointer-events-none opacity-0 transition-opacity duration-300">
<div id="custom-theme-modal-overlay" class="absolute inset-0 bg-slate-900/60 backdrop-blur-md"></div>
<div class="relative w-[92%] max-w-lg max-h-[90vh] bg-white rounded-[2.5rem] shadow-2xl overflow-hidden flex flex-col scale-95 transition-transform duration-300">
<div class="p-6 pb-5 border-b border-slate-100 flex items-center justify-between shrink-0">
<div>
<h2 id="custom-theme-modal-title" class="text-xl font-bold text-slate-900">Create Custom Theme</h2>
<p class="text-[10px] text-slate-400 font-medium uppercase tracking-wider mt-0.5">Saved in your browser</p>
</div>
<button id="close-custom-theme-modal" class="w-10 h-10 flex items-center justify-center rounded-xl hover:bg-slate-100 transition-colors">
<svg class="w-5 h-5 text-slate-400" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12" />
</svg>
</button>
</div>
<div class="flex-1 overflow-y-auto p-6 space-y-5 no-scrollbar">
<div class="space-y-3">
<div>
<label class="text-[10px] font-black text-slate-400 uppercase tracking-widest">Theme Name *</label>
<input id="ct-name" type="text" maxlength="40" placeholder="My Custom Theme" class="mt-1.5 w-full input-field" />
</div>
<div>
<label class="text-[10px] font-black text-slate-400 uppercase tracking-widest">Description</label>
<input id="ct-desc" type="text" maxlength="80" placeholder="Optional short description" class="mt-1.5 w-full input-field" />
</div>
</div>
<div class="space-y-2">
<p class="text-[10px] font-black text-slate-400 uppercase tracking-widest">Background & Text</p>
<div class="grid grid-cols-2 gap-2">
<div class="flex items-center gap-2.5 p-3 bg-slate-50 rounded-xl">
<input type="color" id="ct-bg" value="#0B0B16" class="w-9 h-9 rounded-lg cursor-pointer shrink-0 border-0 p-0" />
<div class="min-w-0">
<div class="text-[9px] font-black text-slate-400 uppercase tracking-wider">Background</div>
<input type="text" id="ct-bg-hex" maxlength="7" class="text-xs font-mono text-slate-700 bg-transparent border-0 outline-none w-full p-0" placeholder="#0b0b16" />
</div>
</div>
<div class="flex items-center gap-2.5 p-3 bg-slate-50 rounded-xl">
<input type="color" id="ct-text" value="#ffffff" class="w-9 h-9 rounded-lg cursor-pointer shrink-0 border-0 p-0" />
<div class="min-w-0">
<div class="text-[9px] font-black text-slate-400 uppercase tracking-wider">Text / Labels</div>
<input type="text" id="ct-text-hex" maxlength="7" class="text-xs font-mono text-slate-700 bg-transparent border-0 outline-none w-full p-0" placeholder="#ffffff" />
</div>
</div>
</div>
</div>
<div class="space-y-2">
<p class="text-[10px] font-black text-slate-400 uppercase tracking-widest">Map Areas</p>
<div class="grid grid-cols-2 gap-2">
<div class="flex items-center gap-2.5 p-3 bg-slate-50 rounded-xl">
<input type="color" id="ct-water" value="#071020" class="w-9 h-9 rounded-lg cursor-pointer shrink-0 border-0 p-0" />
<div class="min-w-0">
<div class="text-[9px] font-black text-slate-400 uppercase tracking-wider">Water</div>
<input type="text" id="ct-water-hex" maxlength="7" class="text-xs font-mono text-slate-700 bg-transparent border-0 outline-none w-full p-0" placeholder="#071020" />
</div>
</div>
<div class="flex items-center gap-2.5 p-3 bg-slate-50 rounded-xl">
<input type="color" id="ct-parks" value="#111122" class="w-9 h-9 rounded-lg cursor-pointer shrink-0 border-0 p-0" />
<div class="min-w-0">
<div class="text-[9px] font-black text-slate-400 uppercase tracking-wider">Parks</div>
<input type="text" id="ct-parks-hex" maxlength="7" class="text-xs font-mono text-slate-700 bg-transparent border-0 outline-none w-full p-0" placeholder="#111122" />
</div>
</div>
</div>
</div>
<div class="space-y-2">
<p class="text-[10px] font-black text-slate-400 uppercase tracking-widest">Roads</p>
<div class="grid grid-cols-2 gap-2">
<div class="flex items-center gap-2.5 p-3 bg-slate-50 rounded-xl">
<input type="color" id="ct-road-motorway" value="#FF2AE6" class="w-9 h-9 rounded-lg cursor-pointer shrink-0 border-0 p-0" />
<div class="min-w-0">
<div class="text-[9px] font-black text-slate-400 uppercase tracking-wider">Motorway</div>
<input type="text" id="ct-road-motorway-hex" maxlength="7" class="text-xs font-mono text-slate-700 bg-transparent border-0 outline-none w-full p-0" placeholder="#ff2ae6" />
</div>
</div>
<div class="flex items-center gap-2.5 p-3 bg-slate-50 rounded-xl">
<input type="color" id="ct-road-primary" value="#00E5FF" class="w-9 h-9 rounded-lg cursor-pointer shrink-0 border-0 p-0" />
<div class="min-w-0">
<div class="text-[9px] font-black text-slate-400 uppercase tracking-wider">Primary</div>
<input type="text" id="ct-road-primary-hex" maxlength="7" class="text-xs font-mono text-slate-700 bg-transparent border-0 outline-none w-full p-0" placeholder="#00e5ff" />
</div>
</div>
<div class="flex items-center gap-2.5 p-3 bg-slate-50 rounded-xl">
<input type="color" id="ct-road-secondary" value="#00BEBE" class="w-9 h-9 rounded-lg cursor-pointer shrink-0 border-0 p-0" />
<div class="min-w-0">
<div class="text-[9px] font-black text-slate-400 uppercase tracking-wider">Secondary</div>
<input type="text" id="ct-road-secondary-hex" maxlength="7" class="text-xs font-mono text-slate-700 bg-transparent border-0 outline-none w-full p-0" placeholder="#00bebe" />
</div>
</div>
<div class="flex items-center gap-2.5 p-3 bg-slate-50 rounded-xl">
<input type="color" id="ct-road-tertiary" value="#008F95" class="w-9 h-9 rounded-lg cursor-pointer shrink-0 border-0 p-0" />
<div class="min-w-0">
<div class="text-[9px] font-black text-slate-400 uppercase tracking-wider">Tertiary</div>
<input type="text" id="ct-road-tertiary-hex" maxlength="7" class="text-xs font-mono text-slate-700 bg-transparent border-0 outline-none w-full p-0" placeholder="#008f95" />
</div>
</div>
<div class="flex items-center gap-2.5 p-3 bg-slate-50 rounded-xl">
<input type="color" id="ct-road-residential" value="#005E66" class="w-9 h-9 rounded-lg cursor-pointer shrink-0 border-0 p-0" />
<div class="min-w-0">
<div class="text-[9px] font-black text-slate-400 uppercase tracking-wider">Residential</div>
<input type="text" id="ct-road-residential-hex" maxlength="7" class="text-xs font-mono text-slate-700 bg-transparent border-0 outline-none w-full p-0" placeholder="#005e66" />
</div>
</div>
<div class="flex items-center gap-2.5 p-3 bg-slate-50 rounded-xl">
<input type="color" id="ct-road-default" value="#008F95" class="w-9 h-9 rounded-lg cursor-pointer shrink-0 border-0 p-0" />
<div class="min-w-0">
<div class="text-[9px] font-black text-slate-400 uppercase tracking-wider">Default</div>
<input type="text" id="ct-road-default-hex" maxlength="7" class="text-xs font-mono text-slate-700 bg-transparent border-0 outline-none w-full p-0" placeholder="#008f95" />
</div>
</div>
</div>
</div>
<div class="space-y-2">
<p class="text-[10px] font-black text-slate-400 uppercase tracking-widest">Route & Markers</p>
<div class="grid grid-cols-2 gap-2">
<div class="flex items-center gap-2.5 p-3 bg-slate-50 rounded-xl">
<input type="color" id="ct-route" value="#EAB308" class="w-9 h-9 rounded-lg cursor-pointer shrink-0 border-0 p-0" />
<div class="min-w-0">
<div class="text-[9px] font-black text-slate-400 uppercase tracking-wider">Route Color</div>
<input type="text" id="ct-route-hex" maxlength="7" class="text-xs font-mono text-slate-700 bg-transparent border-0 outline-none w-full p-0" placeholder="#eab308" />
</div>
</div>
</div>
</div>
</div>
<div class="p-5 bg-slate-50 border-t border-slate-100 flex items-center shrink-0">
<button id="custom-theme-delete-btn" class="hidden px-4 py-2 text-sm font-semibold text-red-500 hover:bg-red-50 rounded-xl transition-colors">Delete</button>
<div class="flex gap-2 ml-auto">
<button id="custom-theme-cancel-btn" class="px-5 py-2.5 text-sm font-semibold text-slate-600 hover:bg-slate-200 rounded-xl transition-colors">Cancel</button>
<button id="custom-theme-save-btn" class="px-5 py-2.5 bg-slate-900 text-white text-sm font-bold rounded-xl hover:bg-accent transition-colors">Save Theme</button>
</div>
</div>
</div>
</div>
<div id="presets-modal" class="fixed inset-0 z-[100] flex items-center justify-center pointer-events-none opacity-0 transition-opacity duration-300">
<div id="modal-overlay" class="absolute inset-0 bg-slate-900/60 backdrop-blur-md"></div>
<div class="relative w-[90%] max-w-2xl max-h-[85vh] bg-white rounded-[2.5rem] shadow-2xl overflow-hidden flex flex-col scale-95 transition-transform duration-300">
<div class="p-8 border-b border-slate-100 flex items-center justify-between">
<div>
<h2 class="text-2xl font-bold text-slate-900">Output Presets</h2>
<p class="text-xs text-slate-400 font-medium uppercase tracking-wider mt-1">Select your poster dimensions</p>
</div>
<button id="close-modal" class="w-10 h-10 flex items-center justify-center rounded-xl hover:bg-slate-100 transition-colors">
<svg class="w-6 h-6 text-slate-400" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12" />
</svg>
</button>
</div>
<div id="modal-content" class="flex-1 overflow-y-auto p-8 space-y-10 no-scrollbar">
</div>
<div class="p-6 bg-slate-50 border-t border-slate-100 flex justify-end">
<button id="close-modal-btn" class="px-6 py-2.5 bg-slate-900 text-white text-sm font-bold rounded-xl hover:bg-accent transition-colors">Done</button>
</div>
</div>
</div>
<script type="module" src="/main.js"></script>
<script>
window.addEventListener('load', () => {
document.body.classList.add('loaded');
});
(function () {
const SHEET_SECTIONS = {
'mobile-sheet-a': ['section-location', 'section-marker'],
'mobile-sheet-b': ['section-style', 'section-composition', 'section-typography'],
'mobile-sheet-c': ['section-mat', 'section-output'],
};
const placeholders = {};
let activeSheet = null;
let activeNavBtn = null;
function openSheet(sheetId) {
if (sheetId === 'credits-modal') {
document.getElementById('credits-modal').classList.add('show');
return;
}
const sheet = document.getElementById(sheetId);
if (!sheet) return;
const contentEl = document.getElementById(sheetId + '-content');
const sectionIds = SHEET_SECTIONS[sheetId];
sectionIds.forEach(function (id) {
const section = document.getElementById(id);
if (!section || !section.parentNode) return;
const ph = document.createElement('div');
ph.id = id + '-ph';
ph.style.display = 'none';
section.parentNode.insertBefore(ph, section);
placeholders[id] = ph;
contentEl.appendChild(section);
});
sheet.classList.add('show');
activeSheet = sheetId;
}
function closeSheet(sheetId) {
if (!sheetId || sheetId === 'credits-modal') return;
const sheet = document.getElementById(sheetId);
if (!sheet) return;
const sectionIds = SHEET_SECTIONS[sheetId];
sectionIds.forEach(function (id) {
const section = document.getElementById(id);
const ph = placeholders[id] || document.getElementById(id + '-ph');
if (!ph || !section) return;
ph.parentNode.insertBefore(section, ph);
ph.remove();
delete placeholders[id];