/* mapstyles.css */

/* Karte */
html, body {
  height: 100%;
  margin: 0;
}

.map-wrapper {
  width: 100%;
}

#fe2map-canvas {
  height: 100%;
  width: 100%;
}

/* Fahrzeugmarker Styles */
.tracking-marker { 
  position: relative; 
  text-align: center; 
  font-weight: bold; 
  width: max-content !important; 
  height: max-content !important; 
  border-left: 2px solid #000; 
  margin-left: -1px !important; 
  margin-top: -28px !important; 
  padding-bottom: 10px; 
  border-radius: 5px 0 0 0; 
  z-index: 99999 !important;
}
.tracking-icon-content {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  background-color: gray;
  border-radius: 5px;
  padding: 2px 5px;
  color: #fff;
}
.tracking-icon-content-status { 
  padding: 0 5px; 
  font-weight: 900; 
  color: #fff;
}
.tracking-icon-content-data { 
  display: flex; 
  flex-direction: column; 
  align-items: center; 
  padding: 0 5px; 
  border-left: 1px solid #000; 
  font-weight: 100;
}
.tracking-icon-content-data-name { 
  font-weight: bold; 
}

.vehicle-marker-container {
  position: relative;
  flex-direction: column;
  align-items: center;
  width: max-content !important;
  height: max-content !important;
}

.tracking-icon-content-inline {
  display: flex;
  flex-direction: row; /* Status und Name nebeneinander */
  align-items: center;
  justify-content: center;
  padding: 2px 6px;
  border-radius: 5px;
  font-weight: bold;
  text-align: center;
  min-width: auto;
  white-space: nowrap; /* kein Zeilenumbruch */
  animation: pulse 1.5s infinite; /* optional */
}

.tracking-icon-content-status {
  margin-right: 5px;
}

.vehicle-icon {
  width: 32px;
  height: 37px;
}

.status-separator {
  margin: 0 5px;
  color: #fff; /* weißer Trennstrich */
  font-weight: bold;
}

.leaflet-control-search {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.95);
  border-radius: 8px;
  padding: 6px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.3);
  z-index: 1000;
  width: 250px;
}

#vehicleSearch {
  width: 100%;
  padding: 6px 8px;
  border-radius: 6px;
  border: 1px solid #888;
  outline: none;
}

#vehicleSearch:focus {
  border-color: #007bff;
  box-shadow: 0 0 3px #007bff;
}

#vehicleSearchDropdown {
  max-height: 200px;
  overflow-y: auto;
  border: 1px solid #888;
  border-radius: 6px;
  margin-top: 4px;
  background: #fff;
  display: none;
  list-style: none;
  padding: 0;
  color: #000;
}

#vehicleSearchDropdown li {
  padding: 6px 10px;
  cursor: pointer;
}

#vehicleSearchDropdown li:hover {
  background: #007bff;
  color: #fff;
}