:root { --map-surface: rgba(255,255,255,.92); --map-text: #101828; --map-muted: #667085; --map-border: rgba(15,23,42,.13); --map-accent: #0891b2; --map-shadow: 0 18px 48px rgba(15,23,42,.2); }
[data-bs-theme="dark"] { --map-surface: rgba(10,16,28,.92); --map-text: #f8fafc; --map-muted: #9aa8bd; --map-border: rgba(148,163,184,.22); --map-accent: #67e8f9; --map-shadow: 0 18px 54px rgba(0,0,0,.48); }
* { box-sizing: border-box; }
html,body,.gt-final-map-shell,.gt-final-map { width: 100%; height: 100%; margin: 0; }
body { overflow: hidden; background: #cbd5e1; color: var(--map-text); font-family: Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; }
.d-none { display: none !important; }
.gt-final-map-shell { position: relative; isolation: isolate; }
.gt-final-map { z-index: 0; background: #dbe4ee; }
[data-bs-theme="dark"] .gt-final-map { background: #07101d; }
.gt-map-toolbar { position: fixed; z-index: 800; top: max(1rem,env(safe-area-inset-top)); right: 1rem; left: 1rem; display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 1rem; pointer-events: none; }
.gt-map-toolbar > * { pointer-events: auto; }
.gt-map-control,.gt-map-heading,.gt-map-actions,.gt-map-quality { border: 1px solid var(--map-border); background: var(--map-surface); color: var(--map-text); box-shadow: var(--map-shadow); backdrop-filter: blur(16px); }
.gt-map-control { display: inline-flex; min-width: 44px; height: 44px; align-items: center; justify-content: center; gap: .5rem; border-radius: .78rem; padding: 0 .8rem; font: inherit; font-size: .82rem; font-weight: 750; text-decoration: none; cursor: pointer; }
.gt-map-control:hover { border-color: var(--map-accent); color: var(--map-accent); }
.gt-map-heading { justify-self: center; min-width: min(420px,42vw); padding: .62rem 1rem; border-radius: .9rem; text-align: center; }
.gt-map-heading span,.gt-map-heading strong,.gt-map-heading small { display: block; }
.gt-map-heading span { color: var(--map-accent); font-size: .62rem; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; }
.gt-map-heading strong { font-size: .98rem; }
.gt-map-heading small { min-height: 1em; color: var(--map-muted); font-size: .68rem; }
.gt-map-actions { display: flex; align-items: center; gap: .4rem; padding: .35rem; border-radius: .9rem; }
.gt-map-actions .gt-map-control { border-color: transparent; box-shadow: none; background: transparent; padding: 0; }
.gt-map-quality { padding: .42rem .58rem; border-radius: .55rem; color: var(--map-accent); font-size: .68rem; font-weight: 800; box-shadow: none; }
.gt-map-quality.is-approx { color: #f59e0b; }
.gt-lang-btn img { border-radius: 2px; }
.gt-map-state { position: fixed; z-index: 850; top: 50%; left: 50%; display: flex; min-width: min(360px,calc(100vw - 2rem)); align-items: center; justify-content: center; gap: .8rem; border: 1px solid var(--map-border); border-radius: 1rem; padding: 1rem 1.2rem; background: var(--map-surface); box-shadow: var(--map-shadow); transform: translate(-50%,-50%); text-align: center; backdrop-filter: blur(16px); }
.gt-map-state i { color: var(--map-accent); font-size: 2rem; }
.gt-map-state p { margin: .25rem 0 .5rem; color: var(--map-muted); font-size: .82rem; }
.gt-map-state a { color: var(--map-accent); font-weight: 750; }
#gt-map-error { flex-direction: column; }
.gt-map-spinner { width: 22px; height: 22px; border: 3px solid var(--map-border); border-top-color: var(--map-accent); border-radius: 50%; animation: map-spin .75s linear infinite; }
@keyframes map-spin { to { transform: rotate(360deg); } }
.gt-map-notice { position: fixed; z-index: 800; right: 1rem; bottom: max(1rem,env(safe-area-inset-bottom)); display: flex; max-width: min(430px,calc(100vw - 2rem)); align-items: flex-start; gap: .6rem; border: 1px solid rgba(245,158,11,.35); border-radius: .8rem; padding: .72rem .9rem; background: var(--map-surface); color: var(--map-muted); box-shadow: var(--map-shadow); font-size: .76rem; line-height: 1.4; backdrop-filter: blur(16px); }
.gt-map-notice i { color: #f59e0b; }
.gt-map-legend { position: fixed; z-index: 800; right: 1rem; bottom: max(1rem,env(safe-area-inset-bottom)); display: flex; align-items: center; gap: .8rem; border: 1px solid var(--map-border); border-radius: .8rem; padding: .62rem .8rem; background: var(--map-surface); color: var(--map-muted); box-shadow: var(--map-shadow); font-size: .72rem; backdrop-filter: blur(16px); }
.gt-map-legend > span { display: inline-flex; align-items: center; gap: .38rem; }
.gt-map-legend b { color: var(--map-text); font-weight: 760; }
.gt-map-legend i { width: 10px; height: 10px; border: 2px solid currentColor; border-radius: 50%; }
.gt-map-legend i.is-lit { border-color: #0f766e; background: #2dd4bf; }
.gt-map-legend i.is-fading { border-color: #b45309; background: #fbbf24; }
.gt-map-legend i.is-lost { border-color: #64748b; background: transparent; }
.gt-city-popup strong,.gt-city-popup small { display: block; }
.gt-city-popup small { color: #64748b; }
.gt-city-popup em { display: inline-block; margin-top: .3rem; color: #b45309; font-size: .72rem; font-style: normal; font-weight: 750; }
.gt-atlas-popup em.is-lit { color: #0f766e; }
.gt-atlas-popup em.is-fading { color: #b45309; }
.gt-atlas-popup em.is-lost { color: #64748b; }
.leaflet-control-zoom { margin-bottom: max(1rem,env(safe-area-inset-bottom)) !important; border: 1px solid var(--map-border) !important; box-shadow: var(--map-shadow) !important; }
.leaflet-control-zoom a { background: var(--map-surface) !important; color: var(--map-text) !important; border-color: var(--map-border) !important; }
.leaflet-popup-content-wrapper,.leaflet-popup-tip { background: var(--map-surface); color: var(--map-text); }
@media (max-width: 760px) { .gt-map-toolbar { grid-template-columns: auto 1fr auto; gap: .45rem; } .gt-map-back span,.gt-map-heading small,.gt-map-quality { display: none; } .gt-map-back { width: 44px; padding: 0; } .gt-map-heading { min-width: 0; padding-inline: .55rem; } .gt-map-heading strong { font-size: .82rem; } .gt-map-heading span { font-size: .54rem; } .gt-map-actions { gap: 0; } .gt-map-actions .gt-map-control { width: 38px; min-width: 38px; height: 38px; } .gt-map-legend { right: .7rem; bottom: .7rem; gap: .5rem; padding: .5rem .6rem; } }
@media (prefers-reduced-motion: reduce) { * { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
