.baidu-satellite-map {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 180px;
  overflow: hidden;
  border-radius: inherit;
  background: #071019;
  cursor: grab;
  user-select: none;
  touch-action: none;
}

.baidu-satellite-map.is-dragging { cursor: grabbing; }

.baidu-satellite-map__tiles,
.baidu-satellite-map__markers,
.baidu-satellite-map__shade {
  position: absolute;
  inset: 0;
}

.baidu-satellite-map__tiles { overflow: hidden; }

.baidu-satellite-map__tile {
  position: absolute;
  width: 256px;
  height: 256px;
  max-width: none;
  pointer-events: none;
  -webkit-user-drag: none;
}

.baidu-satellite-map__shade {
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(4, 13, 23, .12), transparent 32%, transparent 70%, rgba(4, 13, 23, .22)),
    radial-gradient(circle at center, transparent 52%, rgba(2, 8, 14, .18) 100%);
}

.baidu-satellite-map__markers { pointer-events: none; }

.baidu-satellite-marker {
  --marker-color: var(--color-primary);
  position: absolute;
  z-index: 3;
  transform: translate(-50%, -50%);
  pointer-events: auto;
  border: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  cursor: pointer;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, .65));
}

.baidu-satellite-marker__dot {
  display: block;
  width: 13px;
  height: 13px;
  margin: 0 auto;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--marker-color);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--marker-color) 25%, transparent);
}

.baidu-satellite-marker__label {
  display: block;
  margin-top: 7px;
  padding: 4px 8px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 4px;
  background: rgba(4, 13, 23, .82);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  backdrop-filter: blur(6px);
}

.baidu-satellite-marker--warning { --marker-color: var(--color-warning); }
.baidu-satellite-marker--danger { --marker-color: var(--color-danger); }
.baidu-satellite-marker--info { --marker-color: var(--color-info); }
.baidu-satellite-marker.is-selected .baidu-satellite-marker__dot {
  width: 17px;
  height: 17px;
  box-shadow: 0 0 0 7px color-mix(in srgb, var(--marker-color) 34%, transparent);
}

.baidu-satellite-map__controls {
  position: absolute;
  z-index: 6;
  top: 10px;
  right: 10px;
  display: grid;
  grid-template-columns: 30px;
  gap: 5px;
}

.baidu-satellite-map__control {
  width: 30px;
  height: 30px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 5px;
  background: rgba(4,13,23,.82);
  color: #fff;
  font-size: 16px;
  line-height: 28px;
  text-align: center;
  cursor: pointer;
  backdrop-filter: blur(6px);
}

.baidu-satellite-map__control:hover,
.baidu-satellite-map__control:focus-visible {
  border-color: var(--color-primary);
  color: var(--color-primary);
  outline: none;
}

.baidu-satellite-map__meta {
  position: absolute;
  z-index: 5;
  left: 10px;
  top: 10px;
  padding: 6px 9px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 5px;
  background: rgba(4,13,23,.78);
  color: rgba(255,255,255,.92);
  font-size: 10px;
  line-height: 1.5;
  pointer-events: none;
  backdrop-filter: blur(6px);
}

.baidu-satellite-map__meta strong {
  display: block;
  color: #fff;
  font-size: 11px;
}

.baidu-satellite-map__attribution {
  position: absolute;
  z-index: 5;
  right: 8px;
  bottom: 7px;
  padding: 3px 6px;
  border-radius: 3px;
  background: rgba(4,13,23,.72);
  color: rgba(255,255,255,.82);
  font-size: 9px;
  pointer-events: none;
}

.baidu-satellite-map__scale {
  position: absolute;
  z-index: 5;
  left: 10px;
  bottom: 9px;
  min-width: 86px;
  border-bottom: 2px solid #fff;
  color: #fff;
  font-size: 9px;
  line-height: 15px;
  text-align: center;
  text-shadow: 0 1px 3px #000;
  pointer-events: none;
}

:root[data-theme="light"] .baidu-satellite-map__meta,
:root[data-theme="light"] .baidu-satellite-map__control,
:root[data-theme="light"] .baidu-satellite-marker__label {
  background: rgba(15, 31, 42, .84);
}
