:root {
    --building-color: #FF9800;
    --bus-color: #d14402;
    --car-color: #7B1FA2;
    --truck-color: #558B2F;
    --offline-color: #5c5c5c;
    --running-color: #6aff00;
    --idle-color: #ffa600;
    --stopped-color: #0000ff;
    --error-color: rgb(255, 0, 0);
  }
  
  /*
   * Optional: Makes the sample page fill the window.
   */
  html,
  body {
    height: 100%;
    margin: 0;
    padding: 0;
  }
  
  /*
   * Always set the map height explicitly to define the size of the div element
   * that contains the map.
   */
  #map {
    height: 100%;
    width: 100%;
  }
  
  /*
   * vehicle styles in unhighlighted state.
   */
  .vehicle {
    align-items: center;
    background-color: #FFFFFF;
    border-radius: 50%;
    color: #263238;
    display: flex;
    font-size: 14px;
    gap: 15px;
    height: 30px;
    justify-content: center;
    padding: 4px;
    position: relative;
    position: relative;
    transition: all 0.3s ease-out;
    width: 30px;
  }
  
  .vehicle::after {
    border-left: 9px solid transparent;
    border-right: 9px solid transparent;
    border-top: 9px solid #FFFFFF;
    content: "";
    height: 0;
    left: 50%;
    position: absolute;
    top: 95%;
    transform: translate(-50%, 0);
    transition: all 0.3s ease-out;
    width: 0;
    z-index: 1;
  }
  
  .vehicle .icon {
    align-items: center;
    display: flex;
    justify-content: center;
    color: #FFFFFF;
  }
  
  .vehicle .icon svg {
    height: 20px;
    width: auto;
  }
  
  .vehicle .details {
    display: none;
    flex-direction: column;
    flex: 1;
  }
  
  .vehicle .address {
    color: #9E9E9E;
    font-size: 10px;
    margin-bottom: 10px;
    margin-top: 5px;
  }
  
  .vehicle .features {
    align-items: flex-end;
    display: flex;
    flex-direction: row;
    gap: 10px;
  }
  
  .vehicle .features > div {
    align-items: center;
    background: #F5F5F5;
    border-radius: 5px;
    border: 1px solid #ccc;
    display: flex;
    font-size: 10px;
    gap: 5px;
    padding: 5px;
  }
  
  /*
   * vehicle styles in highlighted state.
   */
  .vehicle.highlight {
    background-color: #FFFFFF;
    border-radius: 8px;
    box-shadow: 10px 10px 5px rgba(0, 0, 0, 0.2);
    height: 80px;
    padding: 8px 15px;
    width: auto;
  }
  
  .vehicle.highlight::after {
    border-top: 9px solid #FFFFFF;
  }
  
  .vehicle.highlight .details {
    display: flex;
  }
  
  .vehicle.highlight .icon svg {
    width: 50px;
    height: 50px;
  }
  
  .vehicle .course {
    color: #ff009d;
  }
  
  .vehicle .bath {
    color: #03A9F4;
  }
  
  .vehicle .speed {
    color: #388E3C;
  }
  
  /*
   * bus icon colors.
   */
  .vehicle.highlight:has(.fa-bus) .icon {
    color: var(--bus-color);
  }
  
  
  .vehicle:not(.highlight):has(.fa-bus)::after {
    border-top: 9px solid var(--bus-color);
  }
  
  /*
   * Building icon colors.
   */
  .vehicle.highlight:has(.fa-building) .icon {
    color: var(--building-color);
  }
  
  .vehicle:not(.highlight):has(.fa-building) {
    background-color: var(--building-color);
  }
  
  .vehicle:not(.highlight):has(.fa-building)::after {
    border-top: 9px solid var(--building-color);
  }
  
  /*
   * truck icon colors.
   */
  .vehicle.highlight:has(.fa-truck) .icon {
    color: var(--truck-color);
  }
  
  .vehicle:not(.highlight):has(.fa-truck) {
    background-color: var(--truck-color);
  }
  
  .vehicle:not(.highlight):has(.fa-truck)::after {
    border-top: 9px solid var(--truck-color);
  }
  
  /*
   * car icon colors.
   */
  .vehicle.highlight:has(.fa-car) .icon {
    color: var(--car-color);
  }
  
  .vehicle:not(.highlight):has(.fa-car) {
    background-color: var(--car-color);
  }
  
  .vehicle:not(.highlight):has(.fa-car)::after {
    border-top: 9px solid var(--car-color);
  }

  .vehicle:not(.highlight):has(.running)::after {
    border-top: 9px solid var(--running-color);
  }
  .vehicle:not(.highlight):has(.offline)::after {
    border-top: 9px solid var(--offline-color);
  }
  .vehicle:not(.highlight):has(.idle)::after {
    border-top: 9px solid var(--idle-color);
  }
  .vehicle:not(.highlight):has(.stopped)::after {
    border-top: 9px solid var(--stopped-color);
  }
  
  .vehicle:not(.highlight):has(.running) {
    background-color: var(--running-color);
  }
  .vehicle:not(.highlight):has(.offline) {
    background-color: var(--offline-color);
  }
  .vehicle:not(.highlight):has(.idle) {
    background-color: var(--idle-color);
  }
  .vehicle:not(.highlight):has(.stopped) {
    background-color: var(--stopped-color);
  }
