.map-panel {
  padding: 0;
  overflow: hidden;
  margin-bottom: 16px;
}

.map-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
}

.map-heading h3 { font-size: 24px; margin-bottom: 3px; }
.map-heading small { color: var(--muted); }
.map-heading .eyebrow { margin-bottom: 5px; }

.live-badge {
  display: flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  border-radius: 999px;
  background: #def8ea;
  color: var(--green-dark);
  padding: 8px 11px;
  font-size: 11px;
  font-weight: 800;
}

.live-badge i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(34, 199, 122, .13);
}

#operation-map {
  height: 390px;
  background: #e6eee9;
  position: relative;
  z-index: 1;
}

.map-loading {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 13px;
}

.map-legend {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 12px 20px;
  color: var(--muted);
  font-size: 11px;
}

.map-legend span { display: flex; align-items: center; gap: 6px; }
.map-legend i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.pickup-dot { background: #22c77a; }
.destination-dot { background: #e9a52e; }
.driver-dot { background: #1677ff; }
.coverage-dot { background: rgba(34, 199, 122, .18); border: 2px dashed #0d6b43; }

.map-legend button {
  margin-left: auto;
  border: 0;
  background: var(--soft);
  color: var(--green-dark);
  font-weight: 750;
  border-radius: 8px;
  padding: 7px 10px;
}

.vaiora-map-pin {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 5px 13px rgba(9, 40, 27, .28);
  font-weight: 900;
  font-size: 13px;
}

.vaiora-map-pin.pickup { background: #22c77a; color: #062a1a; }
.vaiora-map-pin.destination { background: #e9a52e; color: #442a00; }
.vaiora-map-pin.driver { width: 25px; height: 25px; background: #1677ff; color: #fff; font-size: 11px; }
.leaflet-popup-content-wrapper { border-radius: 12px; }
.leaflet-popup-content { font-family: inherit; line-height: 1.4; }
.map-unavailable { height: 100%; display: grid; place-items: center; text-align: center; padding: 24px; color: var(--muted); }

@media (max-width: 620px) {
  .map-heading { align-items: flex-start; flex-direction: column; }
  .live-badge { align-self: flex-start; }
  #operation-map { height: 330px; }
  .map-legend { gap: 10px; }
  .map-legend button { width: 100%; margin-left: 0; }
}
