/* Crawl playback (crawlDrive.js): the convertible and the stop bubble under it.
   Above markers (600) and below the biplane (650), popups (700) and the map
   controls (800+). */
.cd-layer {
  position: absolute;
  inset: 0;
  z-index: 640;
  pointer-events: none;
  overflow: hidden;
  transition: opacity .45s ease;
}
.cd-layer.is-leaving { opacity: 0; }
.cd-layer.is-reduced { transition: none; }

.cd-car, .cd-bubble { position: absolute; left: 0; top: 0; width: 0; height: 0; }
.cd-car-body {
  position: absolute;
  /* A car is on the ground: a short, tight shadow (the plane's is far below). */
  filter: drop-shadow(1px 3px 2px rgba(0, 0, 0, .35));
}
.cd-sprite { display: block; overflow: visible; }

.cd-bubble-card {
  position: absolute;
  left: 0;
  top: 0;
  transform: translateX(-50%) translateY(6px);
  display: flex;
  align-items: center;
  gap: 10px;
  /* The anchor is 0 px wide: size to the content, not to the anchor. */
  width: max-content;
  max-width: min(320px, calc(100vw - 32px));
  padding: 8px 8px 8px 14px;
  border: 2px solid var(--blue-accent, #2f6fe0);
  border-radius: 16px;
  background: rgba(9, 22, 33, 0.96);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .35);
  color: #fff;
  font-family: 'Poppins', system-ui, sans-serif;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}
.cd-bubble.is-on .cd-bubble-card { opacity: 1; transform: translateX(-50%) translateY(0); pointer-events: auto; }
.cd-layer.is-reduced .cd-bubble-card { transition: none; }

.cd-bubble-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cd-bubble-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #c9b8ff; }
.cd-bubble-name { font-size: 15px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cd-bubble-status { display: flex; white-space: nowrap; }
.cd-bubble-status:empty { display: none; }

/* The map's status chip, as on the venue card (enhancedStyles.css). */
.cd-bubble .detail-status {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 600;
  background: rgba(9, 22, 33, 0.6); border: 1px solid rgba(255, 255, 255, 0.18); color: #e9f5f9;
}
.cd-bubble .detail-status i { width: 7px; height: 7px; border-radius: 50%; display: inline-block; background: currentColor; }
.cd-bubble .detail-status.active { color: #7ee08a; border-color: rgba(76, 175, 80, 0.55); }
.cd-bubble .detail-status.ending { color: var(--d-ending, #F7C52E); border-color: rgba(247, 197, 46, 0.55); }
.cd-bubble .detail-status.later { color: #8fe3ef; }
.cd-bubble .detail-status.none { color: #c3d3da; }

.cd-stop {
  flex: none;
  display: inline-flex; align-items: center; gap: 5px;
  min-height: 34px; padding: 0 12px;
  border: 0; border-radius: 999px;
  background: rgba(255, 255, 255, 0.12); color: #fff;
  font: 600 13px/1 'Poppins', system-ui, sans-serif;
  cursor: pointer;
}
.cd-stop:hover { background: rgba(255, 255, 255, 0.22); }
.cd-stop:focus-visible { outline: 2px solid var(--primary, #0C9DB0); outline-offset: 2px; }

/* The panel's Play button (crawl.js). */
.crawl-play { background: #7b4dd8; color: #fff; }
.crawl-play:hover { background: #8d63e3; }
.crawl-play.is-playing { background: rgba(255, 255, 255, 0.16); }
