﻿html,
body,
#map {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

.map-engine-is-loading {
  position: relative;
  background: #27343a;
}

.map-engine-is-loading::after {
  position: absolute;
  inset: 0;
  z-index: 2200;
  display: grid;
  place-items: center;
  content: attr(data-loading-text);
  background: linear-gradient(145deg, #27343a, #34474f);
  color: #c8cfcc;
  font: 14px/1.5 Arial, "Microsoft YaHei", sans-serif;
  letter-spacing: 0.08em;
}

.map-engine-controls {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1200;
  pointer-events: none;
  font-family: Arial, "Microsoft YaHei", sans-serif;
}

.map-engine-left-stack {
  position: absolute;
  left: 5px;
  top: 5px;
  z-index: 1300;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  pointer-events: none;
}

.map-engine-navigation {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: auto;
}

.map-engine-zoom-slider {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  width: 32px;
  height: 128px;
  padding: 10px 0 9px;
  border: 2px solid rgba(178, 195, 220, 0.74);
  border-radius: 999px;
  color: #f8fafc;
  background:
    radial-gradient(circle at 50% 18%, rgba(160, 180, 210, 0.4), transparent 34%),
    linear-gradient(100deg, rgba(255, 255, 255, 0.2), transparent 18% 80%, rgba(255, 255, 255, 0.1)),
    linear-gradient(180deg, rgba(82, 101, 132, 0.9), rgba(44, 61, 90, 0.92));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.32),
    inset 0 -18px 28px rgba(0, 0, 0, 0.14),
    0 10px 20px rgba(0, 0, 0, 0.24),
    0 0 0 1px rgba(62, 80, 110, 0.52);
  box-sizing: border-box;
  pointer-events: auto;
}

.map-engine-zoom-slider::before {
  position: absolute;
  left: 50%;
  z-index: 1;
  width: 16px;
  height: 2px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.36),
    0 0 8px rgba(255, 255, 255, 0.24);
  content: "";
  transform: translateX(-50%);
}

.map-engine-zoom-slider::before {
  display: none;
}

/* .map-engine-zoom-slider::after {
  bottom: 23px;
} */

.map-engine-zoom-track-wrap {
  position: relative;
  display: grid;
  place-items: center;
  width: 23px;
  height: 78px;
  margin-top: 2px;
  margin-bottom: 5px;
}

.map-engine-zoom-track-wrap::before {
  position: absolute;
  left: 50%;
  top: 5px;
  width: 3px;
  height: calc(100% - 12px);
  border-radius: 999px;
  background:
    linear-gradient(
      0deg,
      rgba(221, 227, 236, 0.88) 0%,
      rgba(221, 227, 236, 0.88) calc(100% - var(--map-engine-zoom-progress, 50%)),
      rgba(82, 180, 255, 0.96) calc(100% - var(--map-engine-zoom-progress, 50%)),
      rgba(82, 180, 255, 0.96) 100%
    );
  box-shadow:
    inset 0 0 4px rgba(255, 255, 255, 0.4),
    0 0 12px rgba(82, 180, 255, 0.26);
  content: "";
  transform: translateX(-50%);
}

.map-engine-zoom-ticks {
  position: absolute;
  inset: 6px 1px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  pointer-events: none;
}

.map-engine-zoom-ticks span {
  position: relative;
  display: block;
  height: 1px;
}

.map-engine-zoom-ticks span::before,
.map-engine-zoom-ticks span::after {
  position: absolute;
  top: 0;
  width: 4px;
  height: 1px;
  border-radius: 999px;
  background: rgba(206, 218, 235, 0.34);
  content: "";
}

.map-engine-zoom-ticks span::before {
  left: 0;
}

.map-engine-zoom-ticks span::after {
  right: 0;
}

.map-engine-zoom-slider input[type="range"] {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  width: 70px;
  height: 20px;
  margin: 0;
  accent-color: #38bdf8;
  appearance: none;
  background: transparent;
  cursor: pointer;
  transform: translate(-50%, -50%) rotate(-90deg);
  transform-origin: 50% 50%;
  touch-action: none;
}

.map-engine-zoom-slider input[type="range"]::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 999px;
  background: transparent;
}

.map-engine-zoom-slider input[type="range"]::-webkit-slider-thumb {
  width: 20px;
  height: 20px;
  margin-top: -7px;
  border: 4px solid rgba(255, 255, 255, 0.96);
  border-radius: 50%;
  background:
    radial-gradient(circle at 38% 32%, rgba(113, 193, 255, 0.95), #1f6fff 58%, #0c4ce4 100%);
  box-shadow:
    0 7px 12px rgba(0, 0, 0, 0.48),
    0 0 0 1px rgba(81, 129, 255, 0.54),
    0 0 16px rgba(68, 151, 255, 0.95);
  appearance: none;
}

.map-engine-zoom-slider input[type="range"]::-moz-range-track {
  height: 6px;
  border-radius: 999px;
  background: transparent;
}

.map-engine-zoom-slider input[type="range"]::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border: 4px solid rgba(255, 255, 255, 0.96);
  border-radius: 50%;
  background: #1f6fff;
  box-shadow:
    0 7px 12px rgba(0, 0, 0, 0.48),
    0 0 16px rgba(68, 151, 255, 0.95);
}

.map-engine-zoom-mark {
  flex: 0 0 auto;
  position: relative;
  z-index: 4;
  height: 16px;
  padding: 0;
  border: 0;
  color: rgba(255, 255, 255, 0.96);
  background: transparent;
  font-size: 24px;
  font-weight: 300;
  line-height: 14px;
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.56),
    0 0 10px rgba(255, 255, 255, 0.26);
  cursor: pointer;
  pointer-events: auto;
  user-select: none;
}

.map-engine-zoom-mark:hover {
  color: #ffffff;
  filter: drop-shadow(0 0 8px rgba(88, 166, 255, 0.62));
}

.map-engine-zoom-mark:active {
  transform: translateY(1px);
}

.map-engine-zoom-mark.is-minus {
  font-size: 21px;
  transform: translateY(-2px);
}

.map-engine-zoom-mark.is-minus:active {
  transform: translateY(-1px);
}

.map-engine-toolbar-dock {
  position: absolute;
  left: 20px;
  bottom: 15px;
  z-index: 1300;
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  gap: 6px;
  pointer-events: auto;
}

.map-engine-toolbar-toggle {
  position: relative;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(125, 211, 252, 0.38);
  border-radius: 12px;
  color: #f8fafc;
  background:
    radial-gradient(circle at 35% 18%, rgba(255, 255, 255, 0.14), transparent 48%),
    linear-gradient(180deg, rgba(31, 48, 72, 0.94), rgba(11, 24, 43, 0.92));
  box-shadow:
    0 9px 18px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  cursor: pointer;
  pointer-events: auto;
  transition:
    border-color 180ms ease,
    background 180ms ease,
    transform 180ms ease;
}

.map-engine-toolbar-toggle:hover {
  border-color: rgba(125, 211, 252, 0.72);
  background:
    radial-gradient(circle at 35% 18%, rgba(255, 255, 255, 0.18), transparent 48%),
    linear-gradient(180deg, rgba(39, 61, 91, 0.96), rgba(15, 34, 61, 0.94));
}

.map-engine-toolbar-toggle:active {
  transform: translateY(1px);
}

.map-engine-toolbar-toggle span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 16px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transform: translate(-50%, -50%) translateY(var(--toggle-line-offset, 0)) rotate(var(--toggle-line-rotate, 0));
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.map-engine-toolbar-toggle span:nth-child(1) {
  --toggle-line-rotate: 45deg;
}

.map-engine-toolbar-toggle span:nth-child(2) {
  opacity: 0;
}

.map-engine-toolbar-toggle span:nth-child(3) {
  --toggle-line-rotate: -45deg;
}

.map-engine-toolbar-toggle.is-collapsed span:nth-child(1) {
  --toggle-line-offset: -6px;
  --toggle-line-rotate: 0;
}

.map-engine-toolbar-toggle.is-collapsed span:nth-child(2) {
  opacity: 1;
}

.map-engine-toolbar-toggle.is-collapsed span:nth-child(3) {
  --toggle-line-offset: 6px;
  --toggle-line-rotate: 0;
}

.map-engine-toolbar {
  display: flex;
  flex-direction: column;
  gap: 1px;
  max-height: min(540px, calc(100vh - 180px));
  padding: 4px;
  border: 1px solid rgba(145, 177, 214, 0.28);
  border-radius: 14px;
  background:
    radial-gradient(circle at 35% 6%, rgba(255, 255, 255, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(35, 52, 78, 0.86), rgba(13, 28, 50, 0.84));
  box-shadow:
    0 8px 20px rgba(0, 0, 0, 0.26),
    0 0 0 1px rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px) saturate(1.08);
  overflow-x: visible;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  pointer-events: none;
  opacity: 1;
  transform: translateY(0);
  transition:
    max-height 220ms ease,
    opacity 180ms ease,
    transform 220ms ease,
    visibility 220ms ease;
  visibility: visible;
}

.map-engine-controls.is-toolbar-collapsed .map-engine-toolbar {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  transform: translateY(8px);
  visibility: hidden;
}

.map-engine-controls:not(.is-toolbar-collapsed) .map-engine-toolbar {
  max-height: min(540px, calc(100vh - 180px));
  opacity: 1;
  overflow-y: auto;
  pointer-events: auto;
  transform: translateY(0);
  visibility: visible;
}

.map-engine-toolbar::-webkit-scrollbar {
  display: none;
}

.map-engine-tool-btn {
  flex: 0 0 auto;
  position: relative;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 8px;
  color: #f8fafc;
  background: transparent;
  box-shadow: none;
  display: grid;
  place-items: center;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  user-select: none;
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.68),
    0 0 8px rgba(15, 23, 42, 0.58);
  backdrop-filter: none;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease,
    color 160ms ease,
    filter 160ms ease,
    transform 160ms ease;
}

.map-engine-tool-btn + .map-engine-tool-btn::before {
  position: absolute;
  left: 6px;
  right: 6px;
  top: -1px;
  height: 1px;
  background: rgba(226, 232, 240, 0.12);
  content: "";
}

.map-engine-tool-icon {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.25;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter:
    drop-shadow(0 1px 2px rgba(0, 0, 0, 0.72))
    drop-shadow(0 0 4px rgba(0, 0, 0, 0.46));
  pointer-events: none;
}

.map-engine-tool-btn:hover {
  color: #ffffff;
  background: rgba(125, 211, 252, 0.12);
  box-shadow: none;
  filter: drop-shadow(0 0 6px rgba(56, 189, 248, 0.34));
}

.map-engine-tool-btn.is-active {
  color: #38d5ff;
  background: rgba(56, 189, 248, 0.16);
  box-shadow: inset 0 0 0 1px rgba(56, 189, 248, 0.22);
  filter: drop-shadow(0 0 8px rgba(56, 189, 248, 0.48));
}

.map-engine-tool-btn:active {
  transform: translateY(1px);
}

.map-engine-view-btn {
  position: relative;
}

.map-engine-view-btn .map-engine-tool-icon {
  width: 20px;
  height: 20px;
  opacity: 0.62;
}

.map-engine-view-label {
  position: absolute;
  left: 50%;
  top: 50%;
  color: currentColor;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.78),
    0 0 8px rgba(15, 23, 42, 0.72);
  transform: translate(-50%, -50%);
}

.map-engine-controls.is-2d .map-engine-toolbar-dock {
  gap: 6px;
}

.map-engine-basemap-style-group {
  display: contents;
}

.map-engine-controls.is-3d .map-engine-basemap-style-group,
.map-engine-basemap-style-group[hidden] {
  display: none;
}

.map-engine-style-btn {
  position: relative;
}

.map-engine-style-btn .map-engine-tool-icon {
  width: 20px;
  height: 20px;
  opacity: 0.22;
}

.map-engine-style-label {
  position: absolute;
  left: 50%;
  top: 50%;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.map-engine-style-btn:disabled {
  cursor: wait;
  opacity: 0.55;
}

.map-engine-controls.is-2d .map-engine-toolbar {
  gap: 1px;
  padding: 4px;
  border: 1px solid rgba(122, 143, 168, 0.22);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(239, 245, 250, 0.88));
  box-shadow:
    0 8px 20px rgba(16, 38, 66, 0.18),
    0 0 0 1px rgba(255, 255, 255, 0.58);
  backdrop-filter: blur(8px) saturate(1.08);
}

.map-engine-controls.is-2d .map-engine-tool-btn {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 8px;
  color: #334155;
  background: transparent;
  box-shadow: none;
  text-shadow: none;
  backdrop-filter: none;
}

.map-engine-controls.is-2d .map-engine-tool-btn + .map-engine-tool-btn {
  position: relative;
}

.map-engine-controls.is-2d .map-engine-tool-btn + .map-engine-tool-btn::before {
  position: absolute;
  left: 6px;
  right: 6px;
  top: -1px;
  height: 1px;
  background: rgba(100, 116, 139, 0.12);
  content: "";
}

.map-engine-controls.is-2d .map-engine-tool-icon {
  width: 17px;
  height: 17px;
  stroke-width: 2.15;
  filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.7));
}

.map-engine-controls.is-2d .map-engine-tool-btn:hover {
  color: #0f77c8;
  background: rgba(14, 116, 188, 0.1);
  box-shadow: none;
  filter: none;
}

.map-engine-controls.is-2d .map-engine-tool-btn.is-active {
  color: #0b8dde;
  background: rgba(14, 141, 222, 0.14);
  box-shadow: inset 0 0 0 1px rgba(14, 141, 222, 0.2);
  filter: none;
}

.map-engine-controls.is-2d .map-engine-view-btn .map-engine-tool-icon {
  opacity: 0.18;
}

.map-engine-controls.is-2d .map-engine-view-label {
  color: #1f2937;
  font-size: 10px;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.72);
}

.map-engine-controls.is-2d .map-engine-toolbar-toggle {
  border-color: rgba(122, 143, 168, 0.26);
  border-radius: 12px;
  color: #334155;
  background:
    radial-gradient(circle at 35% 18%, rgba(255, 255, 255, 0.95), transparent 48%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(239, 245, 250, 0.9));
  box-shadow:
    0 8px 18px rgba(16, 38, 66, 0.18),
    0 0 0 1px rgba(255, 255, 255, 0.58),
    inset 0 1px 0 rgba(255, 255, 255, 0.74);
  backdrop-filter: blur(8px) saturate(1.08);
}

.map-engine-controls.is-2d .map-engine-toolbar-toggle:hover {
  border-color: rgba(14, 141, 222, 0.38);
  color: #0f77c8;
  background:
    radial-gradient(circle at 35% 18%, rgba(255, 255, 255, 0.98), transparent 48%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(229, 241, 250, 0.92));
  box-shadow:
    0 8px 18px rgba(16, 38, 66, 0.2),
    0 0 0 1px rgba(14, 141, 222, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.map-engine-controls.is-2d:not(.is-toolbar-collapsed) .map-engine-toolbar-toggle {
  border-color: rgba(14, 141, 222, 0.46);
  color: #0b8dde;
  box-shadow:
    0 8px 18px rgba(16, 38, 66, 0.2),
    0 0 0 1px rgba(14, 141, 222, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.map-engine-controls.is-2d .map-engine-navigation {
  gap: 7px;
}

.map-engine-controls.is-2d .map-engine-compass {
  color: #334155;
}

.map-engine-controls.is-2d .map-engine-compass-ring {
  border-color: rgba(122, 143, 168, 0.34);
  background:
    radial-gradient(circle at center, transparent 0 22px, rgba(238, 245, 250, 0.92) 23px 29px, transparent 30px),
    radial-gradient(circle at 48% 38%, rgba(255, 255, 255, 0.9), transparent 48%),
    conic-gradient(
      from -45deg,
      rgba(248, 251, 254, 0.94) 0deg 87deg,
      rgba(209, 222, 235, 0.86) 87deg 93deg,
      rgba(241, 247, 252, 0.92) 93deg 177deg,
      rgba(209, 222, 235, 0.86) 177deg 183deg,
      rgba(238, 245, 250, 0.92) 183deg 267deg,
      rgba(209, 222, 235, 0.86) 267deg 273deg,
      rgba(244, 249, 253, 0.94) 273deg 360deg
    );
  box-shadow:
    0 9px 20px rgba(16, 38, 66, 0.18),
    0 0 0 1px rgba(255, 255, 255, 0.66),
    inset 0 1px 0 rgba(255, 255, 255, 0.88),
    inset 0 -10px 18px rgba(122, 143, 168, 0.12);
}

.map-engine-controls.is-2d .map-engine-compass-ring::before {
  background: rgba(239, 246, 252, 0.94);
  box-shadow:
    inset 0 6px 12px rgba(122, 143, 168, 0.16),
    0 0 0 1px rgba(122, 143, 168, 0.2);
}

.map-engine-controls.is-2d .map-engine-compass-ring::after {
  border-color: rgba(74, 144, 226, 0.46);
  background:
    radial-gradient(circle at 50% 38%, rgba(255, 255, 255, 0.94), rgba(219, 235, 248, 0.94));
  box-shadow:
    inset 0 1px 8px rgba(255, 255, 255, 0.7),
    inset 0 -6px 10px rgba(74, 144, 226, 0.12);
}

.map-engine-controls.is-2d .map-engine-compass-sector.is-north {
  background:
    conic-gradient(
      from -39deg,
      rgba(14, 141, 222, 0.92) 0deg 78deg,
      transparent 78deg 360deg
    );
  filter:
    drop-shadow(0 0 8px rgba(14, 141, 222, 0.28))
    drop-shadow(0 1px 0 rgba(255, 255, 255, 0.46));
}

.map-engine-controls.is-2d .map-engine-compass-divider {
  background: linear-gradient(180deg, rgba(148, 163, 184, 0.46), rgba(71, 85, 105, 0.24));
}

.map-engine-controls.is-2d .map-engine-compass-tick {
  background: rgba(71, 85, 105, 0.62);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.66);
}

.map-engine-controls.is-2d .map-engine-compass-center {
  border-color: rgba(14, 141, 222, 0.82);
  box-shadow:
    0 0 10px rgba(14, 141, 222, 0.18),
    inset 0 0 8px rgba(14, 141, 222, 0.12);
}

.map-engine-controls.is-2d .map-engine-compass-center::before,
.map-engine-controls.is-2d .map-engine-compass-center::after {
  background: rgba(14, 141, 222, 0.82);
  box-shadow: 0 0 8px rgba(14, 141, 222, 0.24);
}

.map-engine-controls.is-2d .map-engine-compass-north {
  color: #ffffff;
  text-shadow:
    0 1px 2px rgba(15, 23, 42, 0.36),
    0 0 8px rgba(14, 141, 222, 0.28);
}

.map-engine-controls.is-2d .map-engine-zoom-slider {
  border-color: rgba(122, 143, 168, 0.28);
  color: #334155;
  background:
    radial-gradient(circle at 50% 16%, rgba(255, 255, 255, 0.95), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(239, 245, 250, 0.9));
  box-shadow:
    0 8px 18px rgba(16, 38, 66, 0.18),
    0 0 0 1px rgba(255, 255, 255, 0.62),
    inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.map-engine-controls.is-2d .map-engine-zoom-track-wrap::before {
  background:
    linear-gradient(
      0deg,
      rgba(148, 163, 184, 0.58) 0%,
      rgba(148, 163, 184, 0.58) calc(100% - var(--map-engine-zoom-progress, 50%)),
      rgba(14, 141, 222, 0.88) calc(100% - var(--map-engine-zoom-progress, 50%)),
      rgba(14, 141, 222, 0.88) 100%
    );
  box-shadow:
    inset 0 0 3px rgba(255, 255, 255, 0.7),
    0 0 8px rgba(14, 141, 222, 0.18);
}

.map-engine-controls.is-2d .map-engine-zoom-ticks span::before,
.map-engine-controls.is-2d .map-engine-zoom-ticks span::after {
  background: rgba(100, 116, 139, 0.22);
}

.map-engine-controls.is-2d .map-engine-zoom-slider input[type="range"]::-webkit-slider-thumb {
  border-color: rgba(255, 255, 255, 0.98);
  background:
    radial-gradient(circle at 38% 32%, rgba(125, 211, 252, 0.98), #0b8dde 62%, #0471bd 100%);
  box-shadow:
    0 4px 10px rgba(16, 38, 66, 0.24),
    0 0 0 1px rgba(14, 141, 222, 0.34),
    0 0 12px rgba(14, 141, 222, 0.36);
}

.map-engine-controls.is-2d .map-engine-zoom-slider input[type="range"]::-moz-range-thumb {
  border-color: rgba(255, 255, 255, 0.98);
  background: #0b8dde;
  box-shadow:
    0 4px 10px rgba(16, 38, 66, 0.24),
    0 0 12px rgba(14, 141, 222, 0.36);
}

.map-engine-controls.is-2d .map-engine-zoom-mark {
  color: #334155;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.72);
}

.map-engine-controls.is-2d .map-engine-zoom-mark:hover {
  color: #0f77c8;
  filter: drop-shadow(0 0 6px rgba(14, 141, 222, 0.24));
}

.map-engine-controls.is-2d .map-engine-statusbar {
  border-color: rgba(122, 143, 168, 0.24);
  color: #475569;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(239, 245, 250, 0.84));
  box-shadow:
    0 8px 22px rgba(16, 38, 66, 0.16),
    0 0 0 1px rgba(255, 255, 255, 0.58),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(8px) saturate(1.08);
}

.map-engine-controls.is-2d .map-engine-statusbar span {
  position: relative;
}

.map-engine-controls.is-2d .map-engine-statusbar span + span::before {
  position: absolute;
  left: -9px;
  top: 50%;
  width: 1px;
  height: 12px;
  background: rgba(100, 116, 139, 0.18);
  content: "";
  transform: translateY(-50%);
}

.map-engine-controls.is-2d .map-engine-statusbar strong {
  color: #0f172a;
  font-weight: 700;
}

.map-engine-compass {
  position: relative;
  width: 78px;
  height: 78px;
  margin: 0;
  color: #e5e7eb;
  pointer-events: auto;
  user-select: none;
}

.map-engine-compass-north {
  position: absolute;
  left: 50%;
  top: 3px;
  z-index: 6;
  display: grid;
  width: 25px;
  height: 25px;
  border: 0;
  color: rgba(255, 255, 255, 0.96);
  background: transparent;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  place-items: center;
  text-align: center;
  cursor: pointer;
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.52),
    0 0 11px rgba(255, 255, 255, 0.3);
  transform: translateX(-50%);
}

.map-engine-compass-north strong {
  display: block;
  margin-top: 7px;
  letter-spacing: 0;
}

.map-engine-compass-arrow {
  position: absolute;
  left: 50%;
  top: 1px;
  width: 0;
  height: 0;
  border-right: 4px solid transparent;
  border-bottom: 6px solid rgba(255, 255, 255, 0.95);
  border-left: 4px solid transparent;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.42));
  transform: translateX(-50%);
}

.map-engine-compass-ring {
  position: absolute;
  left: 0;
  top: 0;
  width: 78px;
  height: 78px;
  border: 2px solid rgba(180, 198, 224, 0.78);
  border-radius: 50%;
  background:
    radial-gradient(circle at center, transparent 0 22px, rgba(46, 63, 94, 0.9) 23px 29px, transparent 30px),
    radial-gradient(circle at 50% 42%, rgba(160, 180, 212, 0.3), transparent 45%),
    conic-gradient(
      from -45deg,
      rgba(82, 101, 132, 0.9) 0deg 87deg,
      rgba(48, 65, 94, 0.92) 87deg 93deg,
      rgba(78, 97, 128, 0.88) 93deg 177deg,
      rgba(44, 61, 90, 0.92) 177deg 183deg,
      rgba(74, 94, 126, 0.88) 183deg 267deg,
      rgba(44, 61, 90, 0.92) 267deg 273deg,
      rgba(76, 96, 128, 0.9) 273deg 360deg
    );
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.28),
    inset 0 -14px 22px rgba(0, 0, 0, 0.14),
    0 11px 22px rgba(0, 0, 0, 0.24),
    0 0 0 1px rgba(72, 92, 124, 0.56);
  cursor: grab;
  touch-action: none;
}

.map-engine-compass-ring::before {
  position: absolute;
  inset: 19px;
  z-index: 2;
  border-radius: 50%;
  background: rgba(46, 63, 94, 0.92);
  box-shadow:
    inset 0 8px 16px rgba(0, 0, 0, 0.26),
    0 0 0 1px rgba(82, 102, 134, 0.86);
  content: "";
}

.map-engine-compass-ring::after {
  position: absolute;
  inset: 26px;
  z-index: 3;
  border: 2px solid rgba(164, 184, 214, 0.84);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 38%, rgba(112, 132, 164, 0.74), rgba(55, 72, 102, 0.94));
  box-shadow:
    inset 0 1px 12px rgba(255, 255, 255, 0.18),
    inset 0 -8px 14px rgba(0, 0, 0, 0.14);
  content: "";
}

.map-engine-compass-ring:active {
  cursor: grabbing;
}

.map-engine-compass-rose {
  position: absolute;
  inset: 0;
  z-index: 4;
  border-radius: 50%;
  transition: transform 120ms ease-out;
}

.map-engine-compass-sector.is-north {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: 50%;
  background:
    conic-gradient(
      from -39deg,
      rgba(37, 125, 255, 0.98) 0deg 78deg,
      transparent 78deg 360deg
    );
  filter:
    drop-shadow(0 0 9px rgba(58, 166, 255, 0.55))
    drop-shadow(0 1px 0 rgba(255, 255, 255, 0.22));
  -webkit-mask: radial-gradient(circle at center, transparent 0 23px, #000 24px 36px, transparent 37px);
  mask: radial-gradient(circle at center, transparent 0 23px, #000 24px 36px, transparent 37px);
}

.map-engine-compass-divider {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: 2px;
  height: 19px;
  background: linear-gradient(180deg, rgba(54, 72, 102, 0.82), rgba(158, 177, 204, 0.54));
  transform-origin: 50% 0;
}

.map-engine-compass-divider.is-a {
  transform: rotate(45deg) translateY(-36px);
}

.map-engine-compass-divider.is-b {
  transform: rotate(135deg) translateY(-36px);
}

.map-engine-compass-divider.is-c {
  transform: rotate(225deg) translateY(-36px);
}

.map-engine-compass-divider.is-d {
  transform: rotate(315deg) translateY(-36px);
}

.map-engine-compass-tick {
  position: absolute;
  z-index: 5;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.18);
}

.map-engine-compass-tick.is-top,
.map-engine-compass-tick.is-bottom {
  left: 50%;
  width: 2px;
  height: 15px;
  transform: translateX(-50%);
}

.map-engine-compass-tick.is-top {
  display: none;
}

.map-engine-compass-tick.is-bottom {
  bottom: 8px;
}

.map-engine-compass-tick.is-left,
.map-engine-compass-tick.is-right {
  top: 50%;
  width: 15px;
  height: 2px;
  transform: translateY(-50%);
}

.map-engine-compass-tick.is-left {
  left: 8px;
}

.map-engine-compass-tick.is-right {
  right: 8px;
}

.map-engine-compass-center {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 7;
  width: 30px;
  height: 30px;
  border: 2px solid rgba(76, 157, 255, 0.96);
  border-radius: 50%;
  background: transparent;
  box-shadow:
    0 0 11px rgba(64, 151, 255, 0.38),
    inset 0 0 8px rgba(64, 151, 255, 0.16);
  cursor: pointer;
  transform: translate(-50%, -50%);
}

.map-engine-compass-center span,
.map-engine-compass-center::before,
.map-engine-compass-center::after {
  position: absolute;
  left: 50%;
  top: 50%;
  display: block;
  content: "";
  transform: translate(-50%, -50%);
}

.map-engine-compass-center span {
  display: none;
}

.map-engine-compass-center::before {
  width: 38px;
  height: 2px;
  border-radius: 999px;
  background: rgba(76, 157, 255, 0.96);
  box-shadow: 0 0 10px rgba(76, 157, 255, 0.6);
}

.map-engine-compass-center::after {
  width: 2px;
  height: 38px;
  border-radius: 999px;
  background: rgba(76, 157, 255, 0.96);
  box-shadow: 0 0 10px rgba(76, 157, 255, 0.6);
}

.map-engine-compass-north:hover,
.map-engine-compass-center:hover {
  color: #ffffff;
  filter: brightness(1.16);
}

.map-engine-mini-text {
  font-size: 14px;
  font-weight: 700;
}

.map-engine-statusbar {
  position: absolute;
  left: 50%;
  bottom: 14px;
  display: flex;
  align-items: center;
  gap: 18px;
  max-width: calc(100% - 32px);
  min-height: 34px;
  padding: 0 14px;
  border: 0;
  border-radius: 4px;
  color: rgba(255, 255, 255, 0.75);
  background: rgba(0, 0, 0, 0.35);
  box-shadow: none;
  backdrop-filter: none;
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
  transform: translateX(-50%);
  pointer-events: auto;
}

.map-engine-statusbar strong {
  margin-left: 4px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
}

.map-engine-property-panel {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 236px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 6px;
  color: #e5e7eb;
  background: rgba(15, 23, 42, 0.82);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.28);
  font-size: 12px;
  pointer-events: auto;
}

.map-engine-property-panel[hidden] {
  display: none;
}

.map-engine-property-title {
  margin-bottom: 10px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
}

.map-engine-property-panel label {
  display: grid;
  gap: 5px;
  margin-bottom: 9px;
}

.map-engine-property-panel input[type="text"],
.map-engine-property-panel select {
  width: 100%;
  box-sizing: border-box;
  height: 30px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  border-radius: 4px;
  color: #f8fafc;
  background: rgba(15, 23, 42, 0.85);
  font-size: 12px;
}

.map-engine-property-check {
  display: flex !important;
  grid-template-columns: none;
  align-items: center;
  gap: 8px !important;
}

.map-engine-property-meta {
  min-height: 18px;
  margin-bottom: 10px;
  color: #cbd5e1;
  line-height: 1.4;
}

.map-engine-property-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.map-engine-property-actions button {
  height: 30px;
  border: 1px solid rgba(56, 189, 248, 0.48);
  border-radius: 4px;
  color: #f8fafc;
  background: rgba(14, 165, 233, 0.36);
  cursor: pointer;
}

.map-engine-property-actions button:hover {
  background: rgba(14, 165, 233, 0.56);
}

.fence-demo-panel {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 1250;
  width: 278px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 6px;
  color: #e5e7eb;
  background: rgba(15, 23, 42, 0.82);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.28);
  font: 12px Arial, "Microsoft YaHei", sans-serif;
  pointer-events: auto;
}

.demo-toggle-bar {
  position: absolute;
  right: 16px;
  top: 16px;
  z-index: 1260;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  max-width: calc(100% - 96px);
  pointer-events: auto;
  font: 12px Arial, "Microsoft YaHei", sans-serif;
}

.demo-toggle-bar button {
  height: 32px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 6px;
  color: #e5e7eb;
  background: rgba(15, 23, 42, 0.78);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.24);
  cursor: pointer;
}

.demo-toggle-bar button:hover,
.demo-toggle-bar button.is-active {
  border-color: rgba(45, 212, 191, 0.62);
  background: rgba(13, 148, 136, 0.5);
}

.cluster-demo-panel[hidden],
.vehicle-demo-panel[hidden],
.fence-demo-panel[hidden],
.track-demo-panel[hidden],
.plot-demo-panel[hidden],
.radar-demo-panel[hidden],
.heatmap-demo-panel[hidden] {
  display: none;
}

.cluster-demo-panel {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 1250;
  width: 278px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 6px;
  color: #e5e7eb;
  background: rgba(15, 23, 42, 0.82);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.28);
  font: 12px Arial, "Microsoft YaHei", sans-serif;
  pointer-events: auto;
}

.cluster-demo-title {
  margin-bottom: 9px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
}

.cluster-demo-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 22px;
  color: #cbd5e1;
}

.cluster-demo-row strong {
  color: #ffffff;
  font-weight: 600;
  text-align: right;
}

.cluster-demo-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 10px 0;
}

.cluster-demo-actions button {
  min-height: 30px;
  border: 1px solid rgba(59, 130, 246, 0.45);
  border-radius: 4px;
  color: #f8fafc;
  background: rgba(37, 99, 235, 0.34);
  cursor: pointer;
}

.cluster-demo-actions button:hover {
  background: rgba(37, 99, 235, 0.56);
}

.cluster-demo-log {
  display: grid;
  gap: 4px;
  max-height: 104px;
  overflow: auto;
  color: #dbeafe;
  line-height: 1.35;
}

.cluster-demo-log:empty::before {
  content: "暂无聚合事件";
  color: #94a3b8;
}

.vehicle-demo-panel {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 1250;
  width: 278px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 6px;
  color: #e5e7eb;
  background: rgba(15, 23, 42, 0.82);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.28);
  font: 12px Arial, "Microsoft YaHei", sans-serif;
  pointer-events: auto;
}

.vehicle-demo-title {
  margin-bottom: 9px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
}

.vehicle-demo-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 22px;
  color: #cbd5e1;
}

.vehicle-demo-row strong {
  color: #ffffff;
  font-weight: 600;
  text-align: right;
  word-break: break-all;
}

.vehicle-demo-statuses {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: 8px;
}

.vehicle-demo-statuses span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 24px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 4px;
  color: #cbd5e1;
  background: rgba(15, 23, 42, 0.42);
}

.vehicle-demo-statuses i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.vehicle-demo-statuses i.is-online {
  background: #2563eb;
  box-shadow: 0 0 8px rgba(37, 99, 235, 0.9);
}

.vehicle-demo-statuses i.is-offline {
  background: #ef4444;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.9);
}

.vehicle-demo-statuses i.is-warning {
  background: #f97316;
  box-shadow: 0 0 8px rgba(249, 115, 22, 0.9);
}

.vehicle-demo-statuses strong {
  color: #ffffff;
  font-weight: 700;
}

.vehicle-demo-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 10px 0;
}

.vehicle-demo-actions button {
  min-height: 30px;
  border: 1px solid rgba(34, 211, 238, 0.45);
  border-radius: 4px;
  color: #f8fafc;
  background: rgba(8, 145, 178, 0.34);
  cursor: pointer;
}

.vehicle-demo-actions button:hover {
  background: rgba(8, 145, 178, 0.56);
}

.vehicle-demo-log {
  display: grid;
  gap: 4px;
  max-height: 104px;
  overflow: auto;
  color: #cffafe;
  line-height: 1.35;
}

.vehicle-demo-log:empty::before {
  content: "暂无车辆事件";
  color: #94a3b8;
}

.vehicle-popup {
  position: relative;
  padding: 10px 12px 12px;
  font: 12px Arial, "Microsoft YaHei", sans-serif;
}

.vehicle-popup::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(34, 211, 238, 0.15), transparent 42%),
    radial-gradient(circle at 88% 14%, rgba(245, 158, 11, 0.2), transparent 30%);
  pointer-events: none;
}

.vehicle-popup-head,
.vehicle-popup-grid {
  position: relative;
  z-index: 1;
}

.vehicle-popup-head {
  display: flex;
  align-items: center;
  gap: 7px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(125, 211, 252, 0.2);
}

.vehicle-popup-head strong {
  flex: 1;
  color: #ffffff;
  font-size: 14px;
}

.vehicle-popup-head em {
  color: #bae6fd;
  font-style: normal;
  font-weight: 700;
}

.vehicle-popup-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  box-shadow: 0 0 10px currentColor;
}

.vehicle-popup-grid {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 7px 10px;
  padding-top: 9px;
}

.vehicle-popup-grid span {
  color: #7dd3fc;
}

.vehicle-popup-grid strong {
  color: #f8fafc;
  font-weight: 600;
  text-align: right;
}

.fence-demo-title {
  margin-bottom: 9px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
}

.fence-demo-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 22px;
  color: #cbd5e1;
}

.fence-demo-row strong {
  color: #ffffff;
  font-weight: 600;
  text-align: right;
}

.fence-demo-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 10px 0;
}

.fence-demo-actions button {
  min-height: 30px;
  border: 1px solid rgba(45, 212, 191, 0.45);
  border-radius: 4px;
  color: #f8fafc;
  background: rgba(13, 148, 136, 0.34);
  cursor: pointer;
}

.fence-demo-actions button:hover {
  background: rgba(13, 148, 136, 0.56);
}

.fence-demo-log {
  display: grid;
  gap: 4px;
  max-height: 104px;
  overflow: auto;
  color: #d1fae5;
  line-height: 1.35;
}

.fence-demo-log:empty::before {
  content: "暂无围栏事件";
  color: #94a3b8;
}

.track-demo-panel {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 1250;
  width: 278px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 6px;
  color: #e5e7eb;
  background: rgba(15, 23, 42, 0.82);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.28);
  font: 12px Arial, "Microsoft YaHei", sans-serif;
  pointer-events: auto;
}

.track-demo-title {
  margin-bottom: 9px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
}

.track-demo-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 22px;
  color: #cbd5e1;
}

.track-demo-row strong {
  color: #ffffff;
  font-weight: 600;
  text-align: right;
}

.track-demo-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 10px 0;
}

.track-demo-actions button {
  min-height: 30px;
  border: 1px solid rgba(34, 197, 94, 0.45);
  border-radius: 4px;
  color: #f8fafc;
  background: rgba(22, 163, 74, 0.34);
  cursor: pointer;
}

.track-demo-actions button:hover {
  background: rgba(22, 163, 74, 0.56);
}

.track-demo-log {
  display: grid;
  gap: 4px;
  max-height: 104px;
  overflow: auto;
  color: #dcfce7;
  line-height: 1.35;
}

.track-demo-log:empty::before {
  content: "暂无轨迹事件";
  color: #94a3b8;
}

.plot-demo-panel {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 1250;
  width: 278px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 6px;
  color: #e5e7eb;
  background: rgba(15, 23, 42, 0.82);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.28);
  font: 12px Arial, "Microsoft YaHei", sans-serif;
  pointer-events: auto;
}

.plot-demo-title {
  margin-bottom: 9px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
}

.plot-demo-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 22px;
  color: #cbd5e1;
}

.plot-demo-row strong {
  color: #ffffff;
  font-weight: 600;
  text-align: right;
}

.plot-demo-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 10px 0;
}

.plot-demo-actions button {
  min-height: 30px;
  border: 1px solid rgba(249, 115, 22, 0.45);
  border-radius: 4px;
  color: #f8fafc;
  background: rgba(234, 88, 12, 0.34);
  cursor: pointer;
}

.plot-demo-actions button:hover {
  background: rgba(234, 88, 12, 0.56);
}

.plot-demo-log {
  display: grid;
  gap: 4px;
  max-height: 104px;
  overflow: auto;
  color: #ffedd5;
  line-height: 1.35;
}

.plot-demo-log:empty::before {
  content: "暂无标绘事件";
  color: #94a3b8;
}

.radar-demo-panel {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 1250;
  width: 278px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 6px;
  color: #e5e7eb;
  background: rgba(15, 23, 42, 0.82);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.28);
  font: 12px Arial, "Microsoft YaHei", sans-serif;
  pointer-events: auto;
}

.radar-demo-title {
  margin-bottom: 9px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
}

.radar-demo-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 22px;
  color: #cbd5e1;
}

.radar-demo-row strong {
  color: #ffffff;
  font-weight: 600;
  text-align: right;
}

.radar-demo-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 10px 0;
}

.radar-demo-actions button {
  min-height: 30px;
  border: 1px solid rgba(34, 211, 238, 0.45);
  border-radius: 4px;
  color: #f8fafc;
  background: rgba(8, 145, 178, 0.34);
  cursor: pointer;
}

.radar-demo-actions button:hover {
  background: rgba(8, 145, 178, 0.56);
}

.radar-demo-log {
  display: grid;
  gap: 4px;
  max-height: 104px;
  overflow: auto;
  color: #cffafe;
  line-height: 1.35;
}

.radar-demo-log:empty::before {
  content: "暂无雷达事件";
  color: #94a3b8;
}

.heatmap-demo-panel {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 1250;
  width: 278px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 6px;
  color: #e5e7eb;
  background: rgba(15, 23, 42, 0.82);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.28);
  font: 12px Arial, "Microsoft YaHei", sans-serif;
  pointer-events: auto;
}

.heatmap-demo-title {
  margin-bottom: 9px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
}

.heatmap-demo-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 22px;
  color: #cbd5e1;
}

.heatmap-demo-row strong {
  color: #ffffff;
  font-weight: 600;
  text-align: right;
}

.heatmap-demo-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 10px 0;
}

.heatmap-demo-actions button {
  min-height: 30px;
  border: 1px solid rgba(239, 68, 68, 0.45);
  border-radius: 4px;
  color: #f8fafc;
  background: rgba(220, 38, 38, 0.34);
  cursor: pointer;
}

.heatmap-demo-actions button:hover {
  background: rgba(220, 38, 38, 0.56);
}

.heatmap-demo-log {
  display: grid;
  gap: 4px;
  max-height: 104px;
  overflow: auto;
  color: #fee2e2;
  line-height: 1.35;
}

.heatmap-demo-log:empty::before {
  content: "暂无热力图事件";
  color: #94a3b8;
}

.cesium-viewer-toolbar,
.cesium-viewer-animationContainer,
.cesium-viewer-timelineContainer,
.cesium-viewer-fullscreenContainer,
.cesium-viewer-bottom,
.cesium-credit-logoContainer,
.cesium-credit-textContainer,
.cesium-credit-expand-link {
  display: none !important;
}

@media (max-width: 720px) {
  .map-engine-left-stack {
    left: 8px;
    top: 8px;
    gap: 8px;
  }

  .map-engine-toolbar-dock {
    left: 8px;
    bottom: 88px;
    gap: 6px;
  }

  .map-engine-navigation {
    gap: 8px;
  }

  .map-engine-zoom-slider {
    width: 30px;
    height: 118px;
  }

  .map-engine-zoom-slider input[type="range"] {
    width: 64px;
  }

  .map-engine-toolbar-toggle {
    width: 36px;
    height: 36px;
  }

  .map-engine-toolbar {
    gap: 1px;
    max-height: min(420px, calc(100vh - 260px));
    padding: 4px;
  }

  .map-engine-tool-btn {
    width: 28px;
    height: 28px;
  }

  .map-engine-compass {
    transform: scale(0.88);
    transform-origin: left top;
    margin-right: -9px;
    margin-bottom: -9px;
  }

  .map-engine-statusbar {
    left: 8px;
    right: 8px;
    bottom: 8px;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 12px;
    padding: 8px 10px;
    white-space: normal;
    transform: none;
  }

  .map-engine-property-panel {
    top: 8px;
    right: 8px;
    width: min(236px, calc(100% - 82px));
  }

  .fence-demo-panel {
    right: 8px;
    bottom: 88px;
    width: min(278px, calc(100% - 82px));
  }

  .cluster-demo-panel {
    right: 8px;
    bottom: 88px;
    width: min(278px, calc(100% - 82px));
  }

  .vehicle-demo-panel {
    right: 8px;
    bottom: 88px;
    width: min(278px, calc(100% - 82px));
  }

  .track-demo-panel {
    right: 8px;
    bottom: 265px;
    width: min(278px, calc(100% - 82px));
  }

  .plot-demo-panel {
    right: 8px;
    bottom: 88px;
    width: min(278px, calc(100% - 82px));
  }

  .radar-demo-panel {
    right: 8px;
    bottom: 88px;
    width: min(278px, calc(100% - 82px));
  }

  .heatmap-demo-panel {
    right: 8px;
    bottom: 88px;
    width: min(278px, calc(100% - 82px));
  }

  .demo-toggle-bar {
    top: 16px;
    right: 16px;
  }
}

.osm-vector-basemap-controls {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 1500;
  padding: 10px 12px;
  border: 1px solid #64727c66;
  border-radius: 7px;
  background: #f8fafbee;
  color: #33434b;
  box-shadow: 0 3px 14px #17262d30;
}

.osm-vector-basemap-status {
  margin-bottom: 7px;
  font-size: 12px;
}

.osm-vector-basemap-controls button {
  margin-right: 6px;
  padding: 6px 10px;
  border: 1px solid #9aa8af;
  border-radius: 5px;
  background: #fff;
  color: #34444d;
  cursor: pointer;
}

.osm-vector-basemap-controls button.active {
  border-color: #526b78;
  background: #526b78;
  color: #fff;
}

/* Shared 2D/3D military detail popup. Keep declarations Qt 5.14 friendly. */
.map-engine-popup {
  position: absolute;
  min-width: 238px;
  max-width: 360px;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(41, 214, 255, 0.72);
  border-left: 3px solid #29d6ff;
  border-radius: 2px;
  color: #d9eefb;
  background: rgba(5, 24, 37, 0.96);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.52), 0 0 14px rgba(41, 214, 255, 0.18);
  font: 13px/1.45 Arial, "Microsoft YaHei", sans-serif;
  box-sizing: border-box;
}

.map-engine-popup::after {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, #29d6ff, rgba(41, 214, 255, 0));
  pointer-events: none;
}

.map-engine-popup--custom {
  min-width: 0;
  overflow: visible;
}

.map-engine-popup__accent {
  position: absolute;
  left: 0;
  top: 42px;
  bottom: 10px;
  width: 2px;
  background: rgba(41, 214, 255, 0.44);
  box-shadow: 0 0 8px rgba(41, 214, 255, 0.7);
  pointer-events: none;
}

.map-engine-popup__header {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 9px 38px 9px 13px;
  border-bottom: 1px solid rgba(41, 214, 255, 0.3);
  background: linear-gradient(90deg, rgba(9, 55, 74, 0.9), rgba(5, 29, 42, 0.64));
  box-sizing: border-box;
}

.map-engine-popup__header strong {
  overflow: hidden;
  color: #ecfbff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.map-engine-popup__glyph {
  width: 8px;
  height: 8px;
  margin-right: 10px;
  border: 1px solid #29d6ff;
  background: rgba(41, 214, 255, 0.22);
  box-shadow: 0 0 8px rgba(41, 214, 255, 0.72);
  transform: rotate(45deg);
  flex: 0 0 auto;
}

.map-engine-popup__close {
  position: absolute;
  right: 7px;
  top: 7px;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid transparent;
  color: #76a9bd;
  background: transparent;
  font: 20px/24px Arial, sans-serif;
  cursor: pointer;
}

.map-engine-popup__close:hover,
.map-engine-popup__close:focus {
  border-color: rgba(41, 214, 255, 0.45);
  color: #d9fbff;
  background: rgba(41, 214, 255, 0.1);
  outline: none;
}

.map-engine-popup__grid {
  display: grid;
  grid-template-columns: 72px minmax(120px, 1fr);
  gap: 8px 13px;
  padding: 12px 14px 14px;
}

.map-engine-popup__label {
  color: #6f9db5;
  font-size: 12px;
  letter-spacing: 0.06em;
}

.map-engine-popup__value {
  word-break: break-all;
  color: #d9eefb;
  font-family: Consolas, "Microsoft YaHei", monospace;
  font-size: 12px;
  font-weight: 600;
  text-align: right;
}

/* Optional framework-independent Replay V2 timeline. */
.map-engine-replay-timeline {
  position: absolute;
  left: 50%;
  bottom: 48px;
  z-index: 1350;
  width: 720px;
  max-width: calc(100% - 110px);
  border: 1px solid rgba(41, 214, 255, 0.6);
  border-left: 3px solid #29d6ff;
  border-radius: 2px;
  color: #d9eefb;
  background: rgba(4, 22, 34, 0.95);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.46), 0 0 12px rgba(41, 214, 255, 0.14);
  font: 12px/1.4 Arial, "Microsoft YaHei", sans-serif;
  pointer-events: auto;
  transform: translateX(-50%);
  box-sizing: border-box;
}

.map-engine-replay-timeline[hidden] {
  display: none;
}

.map-engine-replay-timeline__head {
  display: flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 10px;
  border-bottom: 1px solid rgba(41, 214, 255, 0.24);
  background: linear-gradient(90deg, rgba(9, 55, 74, 0.76), rgba(5, 29, 42, 0.36));
  box-sizing: border-box;
}

.map-engine-replay-timeline__head > * {
  margin-right: 8px;
}

.map-engine-replay-timeline__head strong {
  color: #79e9ff;
  letter-spacing: 0.1em;
}

.map-engine-replay-timeline__head span:last-child {
  margin-left: auto;
  color: #b8dce8;
  font-family: Consolas, monospace;
}

.map-engine-replay-timeline__indicator {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #29d6ff;
  box-shadow: 0 0 8px #29d6ff;
}

.map-engine-replay-timeline__body {
  display: flex;
  align-items: center;
  padding: 8px 10px 10px;
}

.map-engine-replay-timeline__body > * {
  margin-right: 6px;
}

.map-engine-replay-timeline__body > *:last-child {
  margin-right: 0;
}

.map-engine-replay-timeline button,
.map-engine-replay-timeline select {
  height: 28px;
  border: 1px solid rgba(41, 214, 255, 0.42);
  border-radius: 2px;
  color: #bfeaf5;
  background: rgba(8, 44, 60, 0.86);
  cursor: pointer;
}

.map-engine-replay-timeline button {
  min-width: 30px;
  padding: 0 6px;
}

.map-engine-replay-timeline button.is-primary {
  color: #03212d;
  background: #29d6ff;
  box-shadow: 0 0 8px rgba(41, 214, 255, 0.42);
}

.map-engine-replay-timeline button:hover,
.map-engine-replay-timeline select:hover {
  border-color: #6be8ff;
  color: #ffffff;
}

.map-engine-replay-timeline button:disabled,
.map-engine-replay-timeline select:disabled,
.map-engine-replay-timeline input:disabled {
  cursor: default;
  opacity: 0.45;
}

.map-engine-replay-timeline input[type="range"] {
  min-width: 120px;
  height: 4px;
  border-radius: 2px;
  background: rgba(126, 178, 196, 0.42);
  flex: 1 1 auto;
  cursor: pointer;
  -webkit-appearance: none;
}

.map-engine-replay-timeline input[type="range"]::-webkit-slider-thumb {
  width: 15px;
  height: 15px;
  border: 1px solid #9af2ff;
  border-radius: 50%;
  background: #29d6ff;
  box-shadow: 0 0 7px rgba(41, 214, 255, 0.7);
  cursor: pointer;
  -webkit-appearance: none;
}

.map-engine-replay-timeline select {
  min-width: 56px;
  padding: 0 5px;
}

.map-engine-replay-timeline__time {
  color: #7eb2c4;
  font-family: Consolas, monospace;
  white-space: nowrap;
}

@media (max-width: 760px) {
  .map-engine-replay-timeline {
    width: calc(100% - 24px);
    bottom: 44px;
  }

  .map-engine-replay-timeline__time {
    display: none;
  }
}
