/* Scoped to fleet search: existing map, navigation and branding remain intact. */
.fleet-search-header {
  width: 100%;
}
.fleet-search-header input {
  font-size: 16px;
}
.fleet-search-overlay {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(4.65rem + env(safe-area-inset-top, 0px));
  z-index: 50;
  padding: 0 12px;
  pointer-events: none;
}
.fleet-search-card {
  pointer-events: auto;
  overflow: hidden;
  border: 1px solid hsl(var(--border));
  border-radius: 20px;
  background: hsl(var(--card));
  color: hsl(var(--card-foreground));
  box-shadow: 0 16px 48px rgba(15, 23, 42, 0.2);
}
.fleet-search-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 14px;
  border-bottom: 1px solid hsl(var(--border));
}
.fleet-search-heading strong {
  font-size: 14px;
}
.fleet-search-heading p {
  margin: 3px 0 0;
  font-size: 12px;
  color: hsl(var(--muted-foreground));
}
.fleet-search-close {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
}
.fleet-search-results {
  max-height: min(46dvh, 340px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scroll-padding: 4px;
}
.fleet-search-result {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 76px;
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid hsl(var(--border));
}
.fleet-search-result:hover,
.fleet-search-result[aria-selected="true"],
.fleet-search-close:hover {
  background: hsl(var(--accent));
}
.fleet-search-result:focus-visible,
.fleet-search-close:focus-visible {
  outline: 2px solid hsl(var(--primary));
  outline-offset: -3px;
}
.fleet-search-dot {
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  border-radius: 100%;
  background: #64748b;
}
.fleet-search-dot[data-status="moving"] {
  background: #0f9d88;
}
.fleet-search-dot[data-status="stopped"] {
  background: #2563eb;
}
.fleet-search-dot[data-status="idle"] {
  background: #d97706;
}
.fleet-search-dot[data-status="alert"] {
  background: #dc2626;
}
.fleet-search-dot[data-status="maintenance"] {
  background: #7c3aed;
}
.fleet-search-details {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.fleet-search-details strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
}
.fleet-search-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  font-size: 12px;
  font-weight: 500;
}
.fleet-search-time {
  font-size: 11px;
  color: hsl(var(--muted-foreground));
}
.fleet-search-no-position {
  color: #b45309;
}
.fleet-search-go {
  font-size: 21px;
  color: hsl(var(--muted-foreground));
}
.fleet-search-footer {
  padding: 10px 14px;
  font-size: 11px;
  color: hsl(var(--muted-foreground));
  background: hsl(var(--muted));
}
.fleet-search-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 24px 14px;
  text-align: center;
  font-size: 13px;
  color: hsl(var(--muted-foreground));
}
.fleet-vehicle-panel {
  top: auto;
  bottom: 20px;
  max-height: calc(100% - 155px);
}
@media (min-width: 768px) {
  .fleet-search-header {
    max-width: 450px;
  }
  .fleet-search-overlay {
    right: auto;
    width: min(450px, 100%);
  }
  .fleet-vehicle-panel {
    display: block;
    width: min(23rem, 44vw);
  }
}
@media (prefers-reduced-motion: reduce) {
  .fleet-search-card,
  .fleet-search-result {
    scroll-behavior: auto;
    transition: none;
  }
}
