/* DoorForce GPS + Leaflet live map */

.df-empty-state {
  padding: 18px 14px;
  text-align: center;
  color: var(--text-muted, #6b7280);
  font-size: 0.95rem;
  font-weight: 600;
  border: 1px dashed var(--df-border, #d1d5db);
  border-radius: 12px;
  background: var(--df-bg-soft, #f5f7fa);
}

.df-gps-map-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 10px;
}

.df-gps-filter {
  min-height: 36px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--df-border, #d1d5db);
  background: var(--df-card, #fff);
  color: var(--text-primary, #111827);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}

.df-gps-filter.is-active {
  background: var(--df-accent, #0f4c81);
  border-color: var(--df-accent, #0f4c81);
  color: #fff;
}

.df-live-tech-map-host {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--df-border, #d1d5db);
  background: #e5e7eb;
}

/* Real Leaflet map — no CSS grid / fake pins */
.df-live-tech-map,
#df-live-tech-map.df-live-tech-map,
#df-live-tech-map.df-map-sim {
  position: relative;
  width: 100%;
  height: 420px;
  min-height: 420px;
  border-radius: 14px;
  overflow: hidden;
  background: #d1d5db !important;
  background-image: none !important;
  z-index: 1;
}

.df-live-tech-map .leaflet-container,
#df-live-tech-map.leaflet-container {
  width: 100%;
  height: 100%;
  font: inherit;
  z-index: 1;
}

.df-leaflet-marker {
  background: transparent !important;
  border: 0 !important;
}

.df-leaflet-marker-dot {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--df-accent, #0f4c81);
  color: #fff;
  font-weight: 800;
  font-size: 0.78rem;
  border: 2px solid #fff;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.28);
}

.df-leaflet-popup {
  font-size: 0.85rem;
  line-height: 1.4;
  color: #111827;
  min-width: 160px;
}

.df-leaflet-popup strong {
  font-size: 0.95rem;
}

.df-gps-map-message {
  position: absolute;
  left: 12px;
  right: 12px;
  top: 12px;
  z-index: 500;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 700;
  text-align: center;
  pointer-events: none;
}

.df-gps-map-message.is-empty {
  background: rgba(255, 255, 255, 0.94);
  color: #374151;
  border: 1px solid #d1d5db;
}

.df-gps-map-message.is-error {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.df-live-pill.is-active {
  background: #15803d;
  color: #fff;
}

.df-live-pill.is-warn {
  background: #ea580c;
  color: #fff;
}

.df-live-pill.is-off {
  background: #6b7280;
  color: #fff;
}

.df-gps-web-note {
  margin: 10px 0 0;
  font-size: 0.78rem;
  color: var(--text-muted, #6b7280);
  line-height: 1.35;
}

.df-gps-tracking-banner {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  z-index: 12050;
  max-width: min(560px, 92vw);
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 700;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.2);
}

.df-gps-tracking-banner.is-ok {
  background: #14532d;
  color: #ffffff;
}

.df-gps-tracking-banner.is-warn {
  background: #9a3412;
  color: #ffffff;
}

.df-gps-waiting-list {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid #d1d5db;
  border-radius: 10px;
  padding: 8px 10px;
  color: #111827;
  font-size: 0.8rem;
  z-index: 500;
  max-height: 96px;
  overflow: auto;
}

.df-gps-waiting-item {
  margin-top: 4px;
  color: #374151;
}

.df-gps-diag {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px dashed #f59e0b;
  background: #fffbeb;
  color: #111827;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  line-height: 1.45;
  white-space: pre-wrap;
  overflow: auto;
  max-height: 220px;
}

@media (max-width: 1024px) {
  .df-live-tech-map,
  #df-live-tech-map.df-live-tech-map,
  #df-live-tech-map.df-map-sim {
    height: 360px;
    min-height: 360px;
  }
}

@media (max-width: 640px) {
  .df-live-tech-map,
  #df-live-tech-map.df-live-tech-map,
  #df-live-tech-map.df-map-sim {
    height: 300px;
    min-height: 300px;
  }

  .df-gps-filter {
    flex: 1 1 auto;
  }
}
