.live-hdr {
  height: 54px;
  padding: 0 14px;
  background: #0b1324;
  border-bottom: 1px solid #1e293b;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  z-index: 1200;
  flex-shrink: 0;
}

.live-back-agri-link {
  display: none;
  align-items: center;
  padding: 5px 10px;
  border-radius: 8px;
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(52, 211, 153, 0.4);
  color: #6ee7b7;
  font-size: 11.5px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
@media (min-width: 768px) { .live-back-agri-link { display: inline-flex; } }
.live-back-agri-link:hover { background: rgba(16, 185, 129, 0.24); color: #ffffff; }

.live-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1 1 auto;
  max-width: 520px;
  min-width: 0;
}
.live-search-input {
  width: 100%;
  background: #020617;
  color: #ffffff;
  border: 1px solid #334155;
  border-radius: 9px;
  padding: 7px 11px;
  font-size: 12px;
}
.live-search-input:focus { outline: none; border-color: #10b981; }
.live-search-btn {
  background: #10b981;
  color: #022c22;
  font-weight: 800;
  font-size: 12px;
  padding: 7px 13px;
  border-radius: 9px;
  border: none;
  cursor: pointer;
}
.live-suggest-box {
  position: absolute;
  top: calc(100% + 5px);
  left: 0;
  right: 0;
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 12px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.72);
  max-height: 310px;
  overflow-y: auto;
  z-index: 2200;
}
.live-suggest-item {
  padding: 8px 12px;
  border-bottom: 1px solid rgba(51, 65, 85, 0.55);
  cursor: pointer;
  font-size: 12px;
}
.live-suggest-item:hover { background: #1e293b; }

.live-coord-pill {
  display: none;
  padding: 5px 9px;
  border-radius: 8px;
  background: #020617;
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #7dd3fc;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
@media (min-width: 1024px) { .live-coord-pill { display: inline-flex; } }

.live-byok-btn {
  padding: 5px 9px;
  border-radius: 8px;
  background: rgba(245, 158, 11, 0.14);
  border: 1px solid rgba(251, 191, 36, 0.45);
  color: #fde047;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
.live-tier-pill {
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 800;
  background: #1e293b;
  color: #e2e8f0;
  border: 1px solid #475569;
}

.live-left-panel {
  width: 365px;
  max-width: 92vw;
  background: #0b1324;
  border-right: 1px solid #1e293b;
  display: flex;
  flex-direction: column;
  z-index: 1100;
  flex-shrink: 0;
}
@media (max-width: 1023px) {
  .live-left-panel {
    position: absolute;
    inset: 0 auto 0 0;
    transform: translateX(0);
    transition: transform 0.2s ease;
  }
  .live-left-panel.mobile-closed { transform: translateX(-100%); }
}

.live-mode-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid #1e293b;
  background: #020617;
}
.live-tab-btn {
  padding: 10px 8px;
  font-size: 12px;
  font-weight: 700;
  color: #94a3b8;
  background: transparent;
  border: none;
  border-bottom: 2.5px solid transparent;
  cursor: pointer;
}
.live-tab-btn.active { color: #34d399; border-bottom-color: #10b981; background: rgba(16, 185, 129, 0.08); }

.live-panel-body { padding: 12px; display: flex; flex-direction: column; gap: 10px; border-bottom: 1px solid #1e293b; }
.live-lbl { font-size: 11.5px; font-weight: 700; color: #cbd5e1; }
.live-mini-link { font-size: 11px; font-weight: 700; color: #38bdf8; background: none; border: none; cursor: pointer; padding: 0; }
.live-mini-link:hover { text-decoration: underline; color: #fde047; }
.live-input {
  width: 100%;
  background: #020617;
  color: #ffffff;
  border: 1px solid #334155;
  border-radius: 8px;
  padding: 7px 10px;
  font-size: 12px;
}
.live-input:focus { outline: none; border-color: #10b981; }

.live-cat-choice, .live-veh-btn {
  padding: 7px 8px;
  border-radius: 8px;
  background: #0f172a;
  color: #e2e8f0;
  border: 1px solid #334155;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
}
.live-cat-choice.active, .live-veh-btn.active {
  background: rgba(16, 185, 129, 0.2);
  color: #ffffff;
  border-color: #34d399;
}
.pro-tag { font-style: normal; font-size: 9px; padding: 1px 4px; border-radius: 4px; background: #eab308; color: #0f172a; font-weight: 800; }

.live-primary-cta {
  width: 100%;
  padding: 9px 12px;
  border-radius: 9px;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 800;
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.35);
}
.live-primary-cta:hover { filter: brightness(1.06); }

.live-route-output { flex: 1 1 auto; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.live-stats-footer { padding: 8px 12px; border-top: 1px solid #1e293b; background: #020617; font-size: 10.5px; color: #94a3b8; }

.live-floating-pills {
  position: absolute;
  top: 10px;
  left: 12px;
  right: 12px;
  z-index: 1020;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  pointer-events: none;
}
.live-layer-pill, .live-brand-filter-btn {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.92);
  color: #cbd5e1;
  border: 1.5px solid #334155;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
}
.live-layer-pill.active { background: #0f172a; color: #ffffff; border-color: #34d399; }
.live-layer-pill b { padding: 1px 6px; border-radius: 999px; background: #1e293b; font-size: 10.5px; color: #fde047; }
.dot-c { width: 9px; height: 9px; border-radius: 999px; display: inline-block; }
.live-brand-filter-btn { border-color: #f59e0b; color: #fde047; }

.live-brand-popover {
  position: absolute;
  top: 52px;
  left: 12px;
  width: 310px;
  max-width: calc(100vw - 24px);
  background: #0f172a;
  border: 1px solid #475569;
  border-radius: 14px;
  padding: 12px;
  z-index: 1080;
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.72);
}
.live-brand-list { max-height: 250px; overflow-y: auto; display: flex; flex-direction: column; gap: 4px; }
.live-brand-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 5px 7px; border-radius: 7px; font-size: 11.5px; color: #f8fafc; cursor: pointer; }
.live-brand-row:hover { background: #1e293b; }

.live-basemap-switcher {
  position: absolute;
  bottom: 22px;
  right: 12px;
  z-index: 1020;
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid #334155;
}
.live-bm-btn { padding: 5px 9px; border-radius: 7px; font-size: 11px; font-weight: 700; color: #cbd5e1; background: transparent; border: none; cursor: pointer; }
.live-bm-btn.active { background: #10b981; color: #022c22; }
.live-icon-btn { background: #1e293b; color: #ffffff; border: 1px solid #334155; border-radius: 8px; padding: 4px 9px; font-size: 15px; cursor: pointer; }

.leaflet-container .leaflet-popup-close-button { color: #ffffff !important; }
