/* aircraft.css — styling for the aircraft layer + sidebar toggles
   Drop in /maps/css/aircraft.css. Loaded after style.css so it can
   layer on top of existing tokens without modifying them. */

/* ============ Aircraft markers ============ */

.aircraft-divicon {
  background: transparent !important;
  border: 0 !important;
}

.aircraft-icon {
  width: 24px;
  height: 24px;
  transform-origin: 50% 50%;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.45));
  transition: transform 0.6s linear;   /* smooth heading change between refreshes */
}

.aircraft-popup {
  font: 12px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace;
  min-width: 200px;
}
.aircraft-popup > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 3px 0;
  border-bottom: 1px dotted rgba(255, 255, 255, 0.08);
}
.aircraft-popup > div:last-child { border-bottom: 0; }
.aircraft-popup > div > span:first-child {
  color: #7a8794;
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 0.06em;
  align-self: center;
}
.aircraft-popup code {
  font: 11px ui-monospace, monospace;
  background: rgba(255, 255, 255, 0.06);
  padding: 1px 4px;
  border-radius: 2px;
}
.aircraft-popup a {
  color: #6ab0ff;
  text-decoration: none;
  font-size: 10px;
  margin-left: 6px;
}
.aircraft-popup a:hover { text-decoration: underline; }

/* ============ Sidebar "Live Overlays" section ============ */

.overlay-toggles {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.overlay-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 3px;
  cursor: pointer;
  user-select: none;
  font: 12px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.04em;
  color: inherit;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s;
}
.overlay-toggle:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
}

.overlay-toggle input[type="checkbox"] {
  accent-color: #6ab0ff;
  width: 14px;
  height: 14px;
  margin: 0;
}

.overlay-toggle > span {
  flex: 1;
}

.overlay-toggle > small {
  color: #6ab0ff;
  font-size: 10px;
  letter-spacing: 0.06em;
  opacity: 0.8;
}

/* ============ Top bar vessels link ============ */

.topbar-link {
  color: inherit;
  text-decoration: none;
  opacity: 0.75;
  transition: opacity 0.15s;
  font-size: 11px;
  letter-spacing: 0.06em;
}
.topbar-link:hover {
  opacity: 1;
}
