/* EV RACE — STATIONS-ROW-01-FIX-2
   Type dim; status + dot carry bucket color. */

@keyframes gun-dot-charge-pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 0 5px rgba(91, 156, 245, 0.55);
  }
  50% {
    opacity: 0.25;
    transform: scale(0.85);
    box-shadow: 0 0 12px rgba(91, 156, 245, 1);
  }
}

.occ-bundle {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  color: inherit;
}

.occ-bundle--stale {
  opacity: 0.55;
  filter: saturate(0.75);
}

.occ-rows {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-width: 0;
  max-width: 100%;
}

.occ-row {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 5px;
  min-width: 0;
  max-width: 100%;
  font-family: "Share Tech Mono", monospace;
  font-size: 11px;
  line-height: 1.25;
}

/* Type = label (dim); status = signal */
.occ-type {
  flex: 0 0 auto;
  color: var(--text-dim, #888);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.occ-status {
  flex: 0 1 auto;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-variant-numeric: tabular-nums;
}

.occ-row--accent-available .occ-status {
  color: var(--green, #00ff41);
}

.occ-row--accent-charging .occ-status {
  color: #5b9cf5;
}

.occ-row--accent-unavailable .occ-status,
.occ-row--nodata .occ-status {
  color: var(--text-dim, #888);
}

.occ-row--nodata .occ-type {
  color: var(--text-dim, #888);
}

.occ-row .gun-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-block;
  background: var(--green, #00ff41);
  box-sizing: border-box;
}

.occ-row .gun-dot--live.gun-dot--available {
  background: var(--green, #00ff41);
  box-shadow: 0 0 6px rgba(0, 255, 65, 0.45);
}

.occ-row .gun-dot--live.gun-dot--charging {
  background: #5b9cf5 !important;
  box-shadow: 0 0 6px rgba(91, 156, 245, 0.55);
  animation: gun-dot-charge-pulse 1.15s ease-in-out infinite !important;
  animation-play-state: running !important;
}

.occ-row .gun-dot--live.gun-dot--unavailable,
.occ-row .gun-dot--live.gun-dot--offline,
.occ-row .gun-dot--live.gun-dot--unknown,
.occ-row .gun-dot--live.gun-dot--nodata {
  background: #666 !important;
  box-shadow: none;
  opacity: 0.7;
  animation: none !important;
}

.occ-suffix {
  font-family: "Share Tech Mono", monospace;
  font-size: 11px;
  color: var(--text-dim, #888);
  white-space: nowrap;
}

.occ-suffix--stale {
  opacity: 0.8;
}

.occ-summary-label {
  display: block;
  font-family: "Share Tech Mono", monospace;
  font-size: 11px;
  color: var(--text-dim, #888);
  margin-bottom: 4px;
}

.occ-summary-suffix {
  display: block;
  margin-top: 4px;
  font-family: "Share Tech Mono", monospace;
  font-size: 11px;
  color: var(--text-dim, #888);
}

.gun-pill--catalog {
  opacity: 0.92;
  gap: 0;
}
.gun-pill--catalog .gun-dot {
  display: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .occ-row .gun-dot--live.gun-dot--charging,
  .gun-dot--live.gun-dot--charging,
  body.location-page .gun-dot--live.gun-dot--charging {
    animation: none !important;
  }
}

@media (max-width: 400px) {
  .occ-row {
    font-size: 10px;
  }
  .occ-row .gun-dot {
    width: 7px;
    height: 7px;
  }
}

/* Kill inherited green from parent live badge / op color */
.st-live-ok .occ-type,
.st-live-busy .occ-type,
.loc-head-top .occ-type {
  color: var(--text-dim, #888);
}

body.theme-tesla-light .occ-type,
body.theme-tesla-light .occ-row--nodata .occ-status {
  color: #888;
}
body.theme-tesla-light .occ-row--accent-available .occ-status {
  color: #0a0;
}
body.theme-tesla-light .occ-row--accent-charging .occ-status {
  color: #3b7dd8;
}
body.theme-tesla-dark .occ-type,
body.theme-tesla-dark .occ-row--nodata .occ-status {
  color: #777;
}
body.theme-tesla-dark .occ-row--accent-available .occ-status {
  color: #3ddc84;
}
body.theme-tesla-dark .occ-row--accent-charging .occ-status {
  color: #5b9cf5;
}
