/* APRS Alpha 1.1 marker fixes.
 * The aprs-symbols package ships the overlay sprite image but its CSS only
 * declares primary/secondary table classes, so wire table 2 explicitly.
 */
.aprs-marker i.aprs-table2-24 {
  display: inline-block;
  width: 24px;
  height: 24px;
  margin: 0;
  padding: 0;
  background: url("https://cdn.jsdelivr.net/npm/aprs-symbols@0.0.2/aprs-symbols-24-2.png") no-repeat;
}

/* Several standard APRS symbols are intentionally black/dark artwork (for
 * example the secondary-table gateway / black diamond). They disappear on
 * our near-black basemap, so keep the real symbol artwork and place a small
 * cool-silver backplate behind the base sprite only. Overlay glyphs remain
 * transparent and are composited above it.
 */
.aprs-marker .aprs-symbol-layer:not(.aprs-symbol-overlay) {
  background-color: rgba(218, 231, 238, .82) !important;
  border-radius: 5px;
  box-shadow:
    0 0 0 1px rgba(238, 248, 252, .28),
    0 1px 4px rgba(0, 0, 0, .65);
}

.aprs-marker .aprs-symbol-fallback-code {
  position: absolute;
  left: 9px;
  top: 9px;
  z-index: 2;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border: 1px dashed currentColor;
  border-radius: 6px;
  background: rgba(7, 11, 17, .9);
  color: #fff;
  font: 800 9px/1 "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
  letter-spacing: -.04em;
  box-shadow: 0 0 7px rgba(0, 0, 0, .8);
}

.aprs-marker .aprs-marker-label {
  display: none;
  position: absolute;
  left: 50%;
  bottom: 40px;
  z-index: 8;
  max-width: 150px;
  transform: translateX(-50%);
  padding: 3px 6px;
  border: 1px solid rgba(219, 234, 242, .42);
  border-radius: 6px;
  background: rgba(7, 11, 17, .94);
  color: #eef9ff;
  font: 800 10px/1.2 Inter, ui-sans-serif, system-ui, sans-serif;
  letter-spacing: .02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
  box-shadow: 0 0 12px rgba(0, 0, 0, .85);
}

.aprs-marker.selected .aprs-marker-label {
  display: block;
}
