@classic-homes/maps-core 0.1.5 → 0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,820 @@
1
+ /**
2
+ * Classic Theme Maps - All-in-One Bundle
3
+ *
4
+ * This file provides everything needed to use @classic-homes/maps-react or
5
+ * @classic-homes/maps-svelte components WITHOUT any other Classic Theme packages.
6
+ *
7
+ * Zero-config usage:
8
+ *
9
+ * // Single import - includes tokens, utilities, and component styles
10
+ * import '@classic-homes/maps-core/styles/bundled.css';
11
+ *
12
+ * // MapLibre base styles (still required separately to avoid version conflicts)
13
+ * import 'maplibre-gl/dist/maplibre-gl.css';
14
+ *
15
+ * This bundle includes:
16
+ * - Design tokens (CSS custom properties) with light/dark mode
17
+ * - MapLibre container fixes
18
+ * - Tailwind utility class replacements
19
+ * - All component-specific styles (controls, popup, marker, etc.)
20
+ *
21
+ * Note: If you're already using @classic-homes/theme-tokens or @classic-homes/theme-styles,
22
+ * use the modular imports instead to avoid duplicate token definitions.
23
+ */
24
+
25
+ /* ==========================================================================
26
+ Layer Order Definition
27
+ ========================================================================== */
28
+
29
+ @layer classic-theme.tokens, classic-theme.maps-fixes, classic-theme.maps-utilities, classic-theme.maps-controls;
30
+
31
+ /* ==========================================================================
32
+ Design Tokens (from @classic-homes/theme-tokens)
33
+ ========================================================================== */
34
+
35
+ @layer classic-theme.tokens {
36
+ :root {
37
+ /* Semantic Colors (HSL format) */
38
+ --background: 0 0% 100%;
39
+ --background-hover: 0 0% 98%;
40
+ --foreground: 0 0% 31%;
41
+
42
+ --card: 0 0% 100%;
43
+ --card-foreground: 0 0% 31%;
44
+
45
+ --popover: 0 0% 100%;
46
+ --popover-foreground: 0 0% 31%;
47
+
48
+ --primary: 357 72% 39%;
49
+ --primary-foreground: 0 0% 100%;
50
+ --primary-hover: 357 71% 32%;
51
+
52
+ --secondary: 72 11% 91%;
53
+ --secondary-foreground: 0 0% 31%;
54
+ --secondary-hover: 72 11% 82%;
55
+
56
+ --muted: 72 11% 91%;
57
+ --muted-foreground: 0 0% 48%;
58
+ --muted-hover: 72 11% 82%;
59
+
60
+ --accent: 182 48% 44%;
61
+ --accent-foreground: 0 0% 100%;
62
+ --accent-hover: 182 51% 39%;
63
+
64
+ --destructive: 0 75% 51%;
65
+ --destructive-foreground: 0 0% 100%;
66
+ --destructive-hover: 0 70% 50%;
67
+
68
+ --border: 0 0% 0%;
69
+ --input: 0 0% 0%;
70
+ --ring: 357 72% 39%;
71
+
72
+ /* Status Colors */
73
+ --success: 160 84% 39%;
74
+ --success-foreground: 0 0% 100%;
75
+ --warning: 38 92% 50%;
76
+ --warning-foreground: 0 0% 100%;
77
+ --info: 217 91% 60%;
78
+ --info-foreground: 0 0% 100%;
79
+
80
+ /* Layout */
81
+ --content-bg: 0 0% 98%;
82
+ --surface-border: 0 0% 0%;
83
+ --radius: 0.5rem;
84
+
85
+ /* Chart Colors */
86
+ --chart-1: 182 48% 44%;
87
+ --chart-2: 196 100% 12%;
88
+ --chart-3: 335 36% 27%;
89
+ --chart-4: 132 23% 53%;
90
+ --chart-5: 206 39% 55%;
91
+ }
92
+
93
+ .dark {
94
+ --background: 0 6% 15%;
95
+ --background-hover: 0 0% 20%;
96
+ --foreground: 220 14% 96%;
97
+
98
+ --card: 0 0% 20%;
99
+ --card-foreground: 220 14% 96%;
100
+
101
+ --popover: 0 0% 20%;
102
+ --popover-foreground: 220 14% 96%;
103
+
104
+ --primary: 0 91% 71%;
105
+ --primary-foreground: 0 6% 15%;
106
+ --primary-hover: 0 87% 82%;
107
+
108
+ --secondary: 80 5% 32%;
109
+ --secondary-foreground: 220 14% 96%;
110
+ --secondary-hover: 87 6% 36%;
111
+
112
+ --muted: 0 0% 30%;
113
+ --muted-foreground: 218 11% 65%;
114
+ --muted-hover: 0 0% 36%;
115
+
116
+ --accent: 182 52% 61%;
117
+ --accent-foreground: 0 6% 15%;
118
+ --accent-hover: 182 52% 71%;
119
+
120
+ --destructive: 0 75% 51%;
121
+ --destructive-foreground: 0 0% 100%;
122
+ --destructive-hover: 0 91% 71%;
123
+
124
+ --border: 218 11% 65%;
125
+ --input: 218 11% 65%;
126
+ --ring: 0 91% 71%;
127
+
128
+ /* Status Colors */
129
+ --success: 158 64% 52%;
130
+ --success-foreground: 0 6% 15%;
131
+ --warning: 43 96% 56%;
132
+ --warning-foreground: 0 6% 15%;
133
+ --info: 213 94% 68%;
134
+ --info-foreground: 0 6% 15%;
135
+
136
+ /* Layout */
137
+ --content-bg: 0 0% 20%;
138
+ --surface-border: 218 11% 65%;
139
+
140
+ /* Chart Colors */
141
+ --chart-1: 182 52% 61%;
142
+ --chart-2: 201 28% 54%;
143
+ --chart-3: 327 23% 63%;
144
+ --chart-4: 138 20% 61%;
145
+ --chart-5: 205 41% 68%;
146
+ }
147
+ }
148
+
149
+ /* ==========================================================================
150
+ MapLibre Container & Canvas Fixes
151
+ ========================================================================== */
152
+
153
+ @layer classic-theme.maps-fixes {
154
+ html,
155
+ body {
156
+ height: 100%;
157
+ margin: 0;
158
+ padding: 0;
159
+ }
160
+
161
+ #root,
162
+ #app,
163
+ #__next,
164
+ [data-reactroot] {
165
+ height: 100%;
166
+ }
167
+
168
+ .maplibregl-map {
169
+ width: 100%;
170
+ height: 100%;
171
+ flex: 1 1 auto;
172
+ min-height: 0;
173
+ min-width: 0;
174
+ flex-shrink: 0;
175
+ flex-grow: 1;
176
+ touch-action: pan-x pan-y;
177
+ }
178
+
179
+ .maplibregl-canvas-container,
180
+ .maplibregl-canvas {
181
+ width: 100%;
182
+ height: 100%;
183
+ }
184
+
185
+ .maplibregl-canvas {
186
+ display: block;
187
+ touch-action: none;
188
+ }
189
+
190
+ [data-testid='map-container'] {
191
+ contain: layout style;
192
+ }
193
+
194
+ @media print {
195
+ .maplibregl-map {
196
+ break-inside: avoid;
197
+ }
198
+ .maplibregl-ctrl-group,
199
+ .maplibregl-ctrl-attrib {
200
+ display: none !important;
201
+ }
202
+ }
203
+
204
+ @media (prefers-reduced-motion: reduce) {
205
+ .maplibregl-map * {
206
+ transition-duration: 0.01ms !important;
207
+ animation-duration: 0.01ms !important;
208
+ }
209
+ }
210
+ }
211
+
212
+ /* ==========================================================================
213
+ Tailwind Utility Replacements (with fallbacks)
214
+ ========================================================================== */
215
+
216
+ @layer classic-theme.maps-utilities {
217
+ /* Position & Display */
218
+ .absolute {
219
+ position: absolute;
220
+ }
221
+ .relative {
222
+ position: relative;
223
+ }
224
+ .inset-0 {
225
+ inset: 0;
226
+ }
227
+ .inset-4 {
228
+ inset: 1rem;
229
+ }
230
+ .z-10 {
231
+ z-index: 10;
232
+ }
233
+
234
+ /* Flexbox */
235
+ .flex {
236
+ display: flex;
237
+ }
238
+ .inline-flex {
239
+ display: inline-flex;
240
+ }
241
+ .flex-col {
242
+ flex-direction: column;
243
+ }
244
+ .flex-1 {
245
+ flex: 1 1 0%;
246
+ }
247
+ .flex-shrink-0 {
248
+ flex-shrink: 0;
249
+ }
250
+ .items-center {
251
+ align-items: center;
252
+ }
253
+ .items-start {
254
+ align-items: flex-start;
255
+ }
256
+ .justify-center {
257
+ justify-content: center;
258
+ }
259
+ .justify-between {
260
+ justify-content: space-between;
261
+ }
262
+ .justify-end {
263
+ justify-content: flex-end;
264
+ }
265
+
266
+ /* Grid */
267
+ .grid {
268
+ display: grid;
269
+ }
270
+ .grid-cols-4 {
271
+ grid-template-columns: repeat(4, minmax(0, 1fr));
272
+ }
273
+ .grid-rows-4 {
274
+ grid-template-rows: repeat(4, minmax(0, 1fr));
275
+ }
276
+
277
+ /* Gap */
278
+ .gap-1 {
279
+ gap: 0.25rem;
280
+ }
281
+ .gap-1\.5 {
282
+ gap: 0.375rem;
283
+ }
284
+ .gap-2 {
285
+ gap: 0.5rem;
286
+ }
287
+ .gap-3 {
288
+ gap: 0.75rem;
289
+ }
290
+
291
+ /* Space between */
292
+ .space-y-1 > :not([hidden]) ~ :not([hidden]) {
293
+ margin-top: 0.25rem;
294
+ }
295
+ .space-y-1\.5 > :not([hidden]) ~ :not([hidden]) {
296
+ margin-top: 0.375rem;
297
+ }
298
+ .space-y-2 > :not([hidden]) ~ :not([hidden]) {
299
+ margin-top: 0.5rem;
300
+ }
301
+
302
+ /* Width */
303
+ .w-full {
304
+ width: 100%;
305
+ }
306
+ .w-3 {
307
+ width: 0.75rem;
308
+ }
309
+ .w-4 {
310
+ width: 1rem;
311
+ }
312
+ .w-8 {
313
+ width: 2rem;
314
+ }
315
+ .w-10 {
316
+ width: 2.5rem;
317
+ }
318
+ .w-12 {
319
+ width: 3rem;
320
+ }
321
+ .w-64 {
322
+ width: 16rem;
323
+ }
324
+ .w-\[40px\] {
325
+ width: 40px;
326
+ }
327
+
328
+ /* Height */
329
+ .h-full {
330
+ height: 100%;
331
+ }
332
+ .h-3 {
333
+ height: 0.75rem;
334
+ }
335
+ .h-4 {
336
+ height: 1rem;
337
+ }
338
+ .h-8 {
339
+ height: 2rem;
340
+ }
341
+ .h-10 {
342
+ height: 2.5rem;
343
+ }
344
+ .h-\[40px\] {
345
+ height: 40px;
346
+ }
347
+
348
+ /* Min/Max */
349
+ .min-w-0 {
350
+ min-width: 0;
351
+ }
352
+ .min-w-\[140px\] {
353
+ min-width: 140px;
354
+ }
355
+ .min-w-\[160px\] {
356
+ min-width: 160px;
357
+ }
358
+ .max-w-\[280px\] {
359
+ max-width: 280px;
360
+ }
361
+ .max-h-0 {
362
+ max-height: 0;
363
+ }
364
+ .max-h-64 {
365
+ max-height: 16rem;
366
+ }
367
+ .max-h-96 {
368
+ max-height: 24rem;
369
+ }
370
+
371
+ /* Padding */
372
+ .p-1 {
373
+ padding: 0.25rem;
374
+ }
375
+ .p-2 {
376
+ padding: 0.5rem;
377
+ }
378
+ .p-3 {
379
+ padding: 0.75rem;
380
+ }
381
+ .p-4 {
382
+ padding: 1rem;
383
+ }
384
+ .px-1 {
385
+ padding-left: 0.25rem;
386
+ padding-right: 0.25rem;
387
+ }
388
+ .px-1\.5 {
389
+ padding-left: 0.375rem;
390
+ padding-right: 0.375rem;
391
+ }
392
+ .px-2 {
393
+ padding-left: 0.5rem;
394
+ padding-right: 0.5rem;
395
+ }
396
+ .px-3 {
397
+ padding-left: 0.75rem;
398
+ padding-right: 0.75rem;
399
+ }
400
+ .px-4 {
401
+ padding-left: 1rem;
402
+ padding-right: 1rem;
403
+ }
404
+ .py-0\.5 {
405
+ padding-top: 0.125rem;
406
+ padding-bottom: 0.125rem;
407
+ }
408
+ .py-1 {
409
+ padding-top: 0.25rem;
410
+ padding-bottom: 0.25rem;
411
+ }
412
+ .py-2 {
413
+ padding-top: 0.5rem;
414
+ padding-bottom: 0.5rem;
415
+ }
416
+ .py-3 {
417
+ padding-top: 0.75rem;
418
+ padding-bottom: 0.75rem;
419
+ }
420
+ .pt-1 {
421
+ padding-top: 0.25rem;
422
+ }
423
+ .pb-2 {
424
+ padding-bottom: 0.5rem;
425
+ }
426
+ .pb-3 {
427
+ padding-bottom: 0.75rem;
428
+ }
429
+ .pr-12 {
430
+ padding-right: 3rem;
431
+ }
432
+
433
+ /* Margin */
434
+ .mt-1 {
435
+ margin-top: 0.25rem;
436
+ }
437
+ .mt-2 {
438
+ margin-top: 0.5rem;
439
+ }
440
+ .mb-1 {
441
+ margin-bottom: 0.25rem;
442
+ }
443
+ .ml-2 {
444
+ margin-left: 0.5rem;
445
+ }
446
+ .-mx-1 {
447
+ margin-left: -0.25rem;
448
+ margin-right: -0.25rem;
449
+ }
450
+
451
+ /* Borders */
452
+ .border {
453
+ border-width: 1px;
454
+ border-style: solid;
455
+ }
456
+ .border-t {
457
+ border-top-width: 1px;
458
+ border-top-style: solid;
459
+ }
460
+ .border-b {
461
+ border-bottom-width: 1px;
462
+ border-bottom-style: solid;
463
+ }
464
+ .border-border {
465
+ border-color: hsl(var(--border, 0 0% 0%));
466
+ }
467
+ .border-input {
468
+ border-color: hsl(var(--input, 0 0% 0%));
469
+ }
470
+ .border-black {
471
+ border-color: black;
472
+ }
473
+ .border-destructive\/50 {
474
+ border-color: hsl(var(--destructive, 0 75% 51%) / 0.5);
475
+ }
476
+
477
+ /* Border Radius */
478
+ .rounded {
479
+ border-radius: 0.25rem;
480
+ }
481
+ .rounded-sm {
482
+ border-radius: 0.125rem;
483
+ }
484
+ .rounded-md {
485
+ border-radius: 0.375rem;
486
+ }
487
+ .rounded-lg {
488
+ border-radius: 0.5rem;
489
+ }
490
+ .rounded-t-lg {
491
+ border-top-left-radius: 0.5rem;
492
+ border-top-right-radius: 0.5rem;
493
+ }
494
+ .rounded-b-lg {
495
+ border-bottom-left-radius: 0.5rem;
496
+ border-bottom-right-radius: 0.5rem;
497
+ }
498
+
499
+ /* Background Colors */
500
+ .bg-background {
501
+ background-color: hsl(var(--background, 0 0% 100%));
502
+ }
503
+ .bg-foreground {
504
+ background-color: hsl(var(--foreground, 0 0% 31%));
505
+ }
506
+ .bg-card {
507
+ background-color: hsl(var(--card, 0 0% 100%));
508
+ }
509
+ .bg-popover {
510
+ background-color: hsl(var(--popover, 0 0% 100%));
511
+ }
512
+ .bg-muted {
513
+ background-color: hsl(var(--muted, 72 11% 91%));
514
+ }
515
+ .bg-muted\/30 {
516
+ background-color: hsl(var(--muted, 72 11% 91%) / 0.3);
517
+ }
518
+ .bg-muted\/50 {
519
+ background-color: hsl(var(--muted, 72 11% 91%) / 0.5);
520
+ }
521
+ .bg-accent {
522
+ background-color: hsl(var(--accent, 182 48% 44%));
523
+ }
524
+ .bg-destructive\/5 {
525
+ background-color: hsl(var(--destructive, 0 75% 51%) / 0.05);
526
+ }
527
+ .bg-muted-foreground\/20 {
528
+ background-color: hsl(var(--muted-foreground, 0 0% 48%) / 0.2);
529
+ }
530
+ .bg-primary {
531
+ background-color: hsl(var(--primary, 357 72% 39%));
532
+ }
533
+ .bg-secondary {
534
+ background-color: hsl(var(--secondary, 72 11% 91%));
535
+ }
536
+ .bg-success {
537
+ background-color: hsl(var(--success, 160 84% 39%));
538
+ }
539
+ .bg-warning {
540
+ background-color: hsl(var(--warning, 38 92% 50%));
541
+ }
542
+ .bg-info {
543
+ background-color: hsl(var(--info, 217 91% 60%));
544
+ }
545
+
546
+ /* Text Colors */
547
+ .text-foreground {
548
+ color: hsl(var(--foreground, 0 0% 31%));
549
+ }
550
+ .text-card-foreground {
551
+ color: hsl(var(--card-foreground, 0 0% 31%));
552
+ }
553
+ .text-popover-foreground {
554
+ color: hsl(var(--popover-foreground, 0 0% 31%));
555
+ }
556
+ .text-muted-foreground {
557
+ color: hsl(var(--muted-foreground, 0 0% 48%));
558
+ }
559
+ .text-muted-foreground\/60 {
560
+ color: hsl(var(--muted-foreground, 0 0% 48%) / 0.6);
561
+ }
562
+ .text-destructive {
563
+ color: hsl(var(--destructive, 0 75% 51%));
564
+ }
565
+ .text-accent-foreground {
566
+ color: hsl(var(--accent-foreground, 0 0% 100%));
567
+ }
568
+ .text-border {
569
+ color: hsl(var(--border, 0 0% 0%));
570
+ }
571
+ .text-primary-foreground {
572
+ color: hsl(var(--primary-foreground, 0 0% 100%));
573
+ }
574
+ .text-secondary-foreground {
575
+ color: hsl(var(--secondary-foreground, 0 0% 31%));
576
+ }
577
+ .text-success-foreground {
578
+ color: hsl(var(--success-foreground, 0 0% 100%));
579
+ }
580
+ .text-warning-foreground {
581
+ color: hsl(var(--warning-foreground, 0 0% 100%));
582
+ }
583
+ .text-info-foreground {
584
+ color: hsl(var(--info-foreground, 0 0% 100%));
585
+ }
586
+
587
+ /* Typography */
588
+ .text-xs {
589
+ font-size: 0.75rem;
590
+ line-height: 1rem;
591
+ }
592
+ .text-sm {
593
+ font-size: 0.875rem;
594
+ line-height: 1.25rem;
595
+ }
596
+ .text-\[10px\] {
597
+ font-size: 10px;
598
+ line-height: 1.2;
599
+ }
600
+ .text-center {
601
+ text-align: center;
602
+ }
603
+ .text-left {
604
+ text-align: left;
605
+ }
606
+ .text-right {
607
+ text-align: right;
608
+ }
609
+ .font-medium {
610
+ font-weight: 500;
611
+ }
612
+ .font-semibold {
613
+ font-weight: 600;
614
+ }
615
+ .font-mono {
616
+ font-family:
617
+ ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New',
618
+ monospace;
619
+ }
620
+ .leading-tight {
621
+ line-height: 1.25;
622
+ }
623
+ .truncate {
624
+ overflow: hidden;
625
+ text-overflow: ellipsis;
626
+ white-space: nowrap;
627
+ }
628
+ .uppercase {
629
+ text-transform: uppercase;
630
+ }
631
+ .tracking-wider {
632
+ letter-spacing: 0.05em;
633
+ }
634
+
635
+ /* Shadows */
636
+ .shadow-sm {
637
+ box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
638
+ }
639
+ .shadow {
640
+ box-shadow:
641
+ 0 1px 3px 0 rgb(0 0 0 / 0.1),
642
+ 0 1px 2px -1px rgb(0 0 0 / 0.1);
643
+ }
644
+ .shadow-md {
645
+ box-shadow:
646
+ 0 4px 6px -1px rgb(0 0 0 / 0.1),
647
+ 0 2px 4px -2px rgb(0 0 0 / 0.1);
648
+ }
649
+ .shadow-lg {
650
+ box-shadow:
651
+ 0 10px 15px -3px rgb(0 0 0 / 0.1),
652
+ 0 4px 6px -4px rgb(0 0 0 / 0.1);
653
+ }
654
+
655
+ /* Ring */
656
+ .ring-2 {
657
+ box-shadow: 0 0 0 2px var(--tw-ring-color, hsl(var(--ring, 357 72% 39%)));
658
+ }
659
+ .ring-primary {
660
+ --tw-ring-color: hsl(var(--primary, 357 72% 39%));
661
+ }
662
+ .ring-ring {
663
+ --tw-ring-color: hsl(var(--ring, 357 72% 39%));
664
+ }
665
+ .ring-offset-2 {
666
+ box-shadow:
667
+ 0 0 0 2px hsl(var(--background, 0 0% 100%)),
668
+ 0 0 0 calc(2px + 2px) var(--tw-ring-color, hsl(var(--ring, 357 72% 39%)));
669
+ }
670
+
671
+ /* Opacity */
672
+ .opacity-0 {
673
+ opacity: 0;
674
+ }
675
+ .opacity-20 {
676
+ opacity: 0.2;
677
+ }
678
+ .opacity-25 {
679
+ opacity: 0.25;
680
+ }
681
+ .opacity-50 {
682
+ opacity: 0.5;
683
+ }
684
+ .opacity-75 {
685
+ opacity: 0.75;
686
+ }
687
+ .opacity-100 {
688
+ opacity: 1;
689
+ }
690
+
691
+ /* Animations */
692
+ @keyframes pulse {
693
+ 50% {
694
+ opacity: 0.5;
695
+ }
696
+ }
697
+ .animate-pulse {
698
+ animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
699
+ }
700
+ @keyframes spin {
701
+ to {
702
+ transform: rotate(360deg);
703
+ }
704
+ }
705
+ .animate-spin {
706
+ animation: spin 1s linear infinite;
707
+ }
708
+
709
+ /* Transitions */
710
+ .transition-all {
711
+ transition-property: all;
712
+ transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
713
+ transition-duration: 150ms;
714
+ }
715
+ .transition-colors {
716
+ transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
717
+ transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
718
+ transition-duration: 150ms;
719
+ }
720
+ .transition-transform {
721
+ transition-property: transform;
722
+ transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
723
+ transition-duration: 150ms;
724
+ }
725
+ .duration-200 {
726
+ transition-duration: 200ms;
727
+ }
728
+
729
+ /* Transforms */
730
+ .-rotate-90 {
731
+ transform: rotate(-90deg);
732
+ }
733
+
734
+ /* Cursor */
735
+ .cursor-pointer {
736
+ cursor: pointer;
737
+ }
738
+ .cursor-default {
739
+ cursor: default;
740
+ }
741
+ .cursor-grab {
742
+ cursor: grab;
743
+ }
744
+ .cursor-grabbing {
745
+ cursor: grabbing;
746
+ }
747
+
748
+ /* Pointer Events */
749
+ .pointer-events-none {
750
+ pointer-events: none;
751
+ }
752
+
753
+ /* Overflow */
754
+ .overflow-hidden {
755
+ overflow: hidden;
756
+ }
757
+ .overflow-y-auto {
758
+ overflow-y: auto;
759
+ }
760
+
761
+ /* Accessibility */
762
+ .sr-only {
763
+ position: absolute;
764
+ width: 1px;
765
+ height: 1px;
766
+ padding: 0;
767
+ margin: -1px;
768
+ overflow: hidden;
769
+ clip: rect(0, 0, 0, 0);
770
+ white-space: nowrap;
771
+ border-width: 0;
772
+ }
773
+
774
+ /* Hover States */
775
+ .hover\:bg-muted:hover {
776
+ background-color: hsl(var(--muted, 72 11% 91%));
777
+ }
778
+ .hover\:bg-accent:hover {
779
+ background-color: hsl(var(--accent, 182 48% 44%));
780
+ }
781
+ .hover\:text-foreground:hover {
782
+ color: hsl(var(--foreground, 0 0% 31%));
783
+ }
784
+ .hover\:text-accent-foreground:hover {
785
+ color: hsl(var(--accent-foreground, 0 0% 100%));
786
+ }
787
+
788
+ /* Focus States */
789
+ .focus-visible\:outline-none:focus-visible {
790
+ outline: 2px solid transparent;
791
+ outline-offset: 2px;
792
+ }
793
+ .focus-visible\:ring-2:focus-visible {
794
+ box-shadow: 0 0 0 2px var(--tw-ring-color, hsl(var(--ring, 357 72% 39%)));
795
+ }
796
+ .focus-visible\:ring-ring:focus-visible {
797
+ --tw-ring-color: hsl(var(--ring, 357 72% 39%));
798
+ }
799
+ .focus-visible\:ring-offset-2:focus-visible {
800
+ box-shadow:
801
+ 0 0 0 2px hsl(var(--background, 0 0% 100%)),
802
+ 0 0 0 calc(2px + 2px) var(--tw-ring-color, hsl(var(--ring, 357 72% 39%)));
803
+ }
804
+
805
+ /* Dark Mode */
806
+ .dark .dark\:border-gray-400 {
807
+ border-color: rgb(156 163 175);
808
+ }
809
+ }
810
+
811
+ /* ==========================================================================
812
+ Component-Specific Styles
813
+ Import the component CSS files for controls, popup, marker, etc.
814
+ ========================================================================== */
815
+
816
+ @import './controls.css';
817
+ @import './popup.css';
818
+ @import './marker.css';
819
+ @import './basemap-switcher.css';
820
+ @import './layer-manager.css';