.twiliner-fleet-map {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 320px;
  border: 1px solid #d9d9d9;
  border-radius: 12px;
  overflow: hidden;
  background: #f7f9fc;
}

.twiliner-fleet-map__map {
  width: 100%;
  flex: 1 1 auto;
  min-height: 260px;
}

.twiliner-fleet-map__status {
  min-height: 30px;
  line-height: 21px;
  padding: 12px 16px;
  font-family: "Studio Feixen Sans", Helvetica, Arial, sans-serif;
  font-size: 14px;
  color: #46288C;
  background: #ffffff;
  border-bottom: 1px solid #e7ebef;
}

.twiliner-fleet-map__status .twiliner-fleet-map__line {
  display: block;
}

.twiliner-fleet-map__status.is-error,
.twiliner-fleet-map__status .twiliner-fleet-map__error-line {
  color: #a52828;
}

.twiliner-bus-marker__fallback {
  width: 30px;
  height: 47px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 10px;
  background: #46288C;
  border-radius: 4px;
}

.twiliner-bus-tooltip.leaflet-tooltip {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  white-space: nowrap;
}

.twiliner-bus-tooltip.leaflet-tooltip::before {
  display: none;
}

.twiliner-bus-tooltip__plate {
  display: block;
  background: #ffffff;
  color: #46288C;
  font-family: "Studio Feixen Sans", Helvetica, Arial, sans-serif;
  font-size: 11px;
  font-weight: 700;
  line-height: 14px;
  padding: 2px 6px;
  border: 1px solid #46288C;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.twiliner-bus-tooltip__plate + .twiliner-bus-tooltip__plate {
  margin-top: 3px;
}

/* Cluster icon: bus pin + small count badge in the top-right corner */

.twiliner-bus-cluster {
  position: relative;
  width: 36px;
  height: 47px;
}

.twiliner-bus-cluster__img {
  width: 36px;
  height: 47px;
  display: block;
}

.twiliner-bus-cluster__count {
  position: absolute;
  top: -4px;
  right: -7px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: #46288C;
  color: #ffffff;
  font-family: "Studio Feixen Sans", Helvetica, Arial, sans-serif;
  font-size: 11px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
  border: 2px solid #ffffff;
  box-sizing: border-box;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

.twiliner-bus-popup {
  font-family: "Studio Feixen Sans", Helvetica, Arial, sans-serif;
  font-size: 13px;
  line-height: 1.5;
  color: #1f1f1f;
}

.twiliner-bus-popup strong {
  color: #46288C;
  font-size: 14px;
}

.twiliner-fleet-map__control { margin-top: 10px; }

.twiliner-fleet-map__control-btn {
  display: block;
  width: 30px;
  height: 30px;
  background: #fff;
  color: #333;
  font-size: 18px;
  font-weight: 700;
  line-height: 30px;
  text-align: center;
  text-decoration: none;
}

.twiliner-fleet-map__control-btn:hover {
  background: #f4f4f4;
  color: #333;
}

/* --- Station selector --------------------------------------------------- */

.twiliner-fleet-map__stations {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.twiliner-fleet-map__station-btn {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  font-family: "Studio Feixen Sans", Helvetica, Arial, sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #46288C;
  background: #ffffff;
  border: 1px solid #46288C;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, transform 0.05s ease;
  white-space: nowrap;
}

.twiliner-fleet-map__station-btn:hover,
.twiliner-fleet-map__station-btn:focus-visible {
  background: #f0eaff;
  outline: none;
}

.twiliner-fleet-map__station-btn:active {
  transform: translateY(1px);
}

.twiliner-fleet-map__station-btn.is-active {
  background: #46288C;
  color: #ffffff;
}

/* Highlighted station marker */

.twiliner-station-marker__dot {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #46288C;
  border: 3px solid #ffffff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}
