.tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tabs.has-admin { grid-template-columns: repeat(4, minmax(0, 1fr)); }

#view-map {
  --map-ink: #171a25;
  --map-accent: #5230a8;
  --map-parking: #08686c;
  padding-bottom: 4px;
}
body[data-view="map"] main { padding-top: 12px; }
.map-heading { padding: 0 0 11px; }
.map-heading h1 {
  margin: 0 0 9px;
  font-size: 29px;
  line-height: 1.1;
  letter-spacing: -.045em;
}
.map-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px;
  padding: 4px;
  border: 1px solid #303038;
  border-radius: 12px;
  background: #17171d;
}
.map-search input {
  width: 100%;
  color: #fbfafa;
  padding: 0 9px;
  font: inherit;
  font-size: 15px;
}
.map-search input::placeholder { color: #a2a1aa; }
.map-search button, .map-object button {
  border: 0;
  border-radius: 8px;
  padding: 0 13px;
  min-height: 38px;
  background: #e5d9ff;
  color: #22183a;
  font: 800 13px var(--sans);
}
.map-frame {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  height: clamp(315px, 52dvh, 490px);
  border: 1px solid #47444d;
  border-radius: 15px;
  background: #e8e9e6;
}
#fleet-map { position: relative; z-index: 0; height: 100%; background: #e6e8e4; color: var(--map-ink); }
#fleet-map .leaflet-tile-pane { filter: saturate(.72); }
#fleet-map .leaflet-control-attribution {
  background: rgba(255, 255, 255, .93);
  color: #252333;
  border-radius: 5px 0 0 0;
}
#fleet-map .leaflet-control-attribution a { color: #402878; }
#fleet-map .leaflet-control-zoom { margin: 54px 9px 0 0; border: 1px solid #ccc7d2; border-radius: 9px; }
#fleet-map .leaflet-control-zoom a { width: 35px; height: 35px; line-height: 35px; color: #20202a; }
.map-filters {
  position: absolute;
  z-index: 500;
  top: 9px;
  left: 9px;
  display: flex;
  gap: 5px;
}
.map-filters button, .map-locate, .map-parkings {
  border: 1px solid rgba(39, 28, 60, .21);
  background: #fff;
  color: var(--map-ink);
  border-radius: 9px;
  font: 800 12px var(--sans);
  box-shadow: 0 2px 9px rgba(38, 28, 49, .13);
}
.map-filters button {
  display: flex;
  align-items: center;
  min-height: 36px;
  gap: 6px;
  padding: 0 9px;
}
.map-filters button i { width: 8px; height: 8px; border-radius: 50%; background: var(--map-accent); }
.map-filters button[data-map-layer="parkings"] i { background: var(--map-parking); }
.map-filters button[aria-pressed="false"] { background: #f0eff1; color: #5a5663; }
.map-filters button[aria-pressed="false"] i { background: #9b96a1; }
.map-locate {
  position: absolute;
  z-index: 500;
  bottom: 24px;
  right: 9px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  font-size: 25px;
  line-height: 1;
  color: var(--map-accent);
}
.map-parkings {
  position: absolute;
  z-index: 500;
  bottom: 24px;
  left: 9px;
  min-height: 42px;
  padding: 0 12px;
}
.map-crosshair {
  position: absolute;
  z-index: 350;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -52%);
  pointer-events: none;
  color: #2a193d;
  opacity: .65;
  font: 600 20px/1.1 var(--sans);
  text-shadow: 0 0 2px #fff, 0 0 2px #fff;
}
.map-frame button:disabled, .map-search button:disabled { opacity: .65; }
.map-tile-error {
  position: absolute;
  pointer-events: none;
  top: 57px;
  left: 9px;
  z-index: 500;
  padding: 6px 8px;
  border-radius: 6px;
  background: #fff;
  color: #393340;
  font-size: 11px;
}
.evalate-pin {
  display: grid;
  place-items: center;
  border: 2px solid #fff;
  color: #fff;
  background: #5230a8;
  border-radius: 11px;
  box-shadow: 0 2px 8px #16203855;
  font: 800 17px var(--sans);
}
.evalate-pin--parking { background: #08686c; border-radius: 50%; }
.map-load-status { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
#map-retry {
  min-height: 34px;
  border: 0;
  border-radius: 8px;
  padding: 0 11px;
  background: #e5d9ff;
  color: #22183a;
  font: 800 12px var(--sans);
}
.map-status {
  min-height: 19px;
  margin: 8px 2px;
  font-size: 12px;
  color: #b7b5c1;
}
.map-status.is-error { color: #ffafaa; }
.map-object {
  display: flex;
  gap: 9px;
  align-items: center;
  min-height: 65px;
  padding: 10px;
  border: 1px solid #35323e;
  border-radius: 12px;
  background: #1b1921;
}
.map-object-icon {
  flex: none;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #e5d9ff;
  color: #302059;
  font-weight: 800;
}
.map-object-icon.parking { background: #cdeff0; color: #07575c; }
.map-object-text { flex: 1; min-width: 0; display: grid; gap: 2px; overflow-wrap: anywhere; }
.map-object-text strong { font-size: 15px; }
.map-object-text span { color: #c0bcc9; font-size: 11px; }
.map-object button { flex: none; padding: 0 9px; font-size: 12px; }
button.vehicle-map-button { border: 0; background: transparent; padding: 0; cursor: pointer; }
