/* Панель инспектора карты — под строкой поиска слева */
#map-inspector {
  position: absolute;
  top: 80px;
  left: 80px;
  z-index: 2600;

  width: 384px;
  max-width: 94vw;
  max-height: 70vh;
  overflow: hidden;

  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.88),
    rgba(0, 0, 0, 0.62)
  );
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 14px;

  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 12px;
  color: #f0f0f0;

  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.85),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);

  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);

  display: none;
}

/* ── Шапка ── */
.mi-header {
  padding: 13px 14px 11px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.mi-address-label {
  font-size: 9px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.22);
  margin-bottom: 4px;
}

.mi-address-value {
  font-size: 13px;
  font-weight: 600;
  color: #f5f5f5;
  line-height: 1.3;
}

.mi-close {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.25);
  font-size: 18px;
  cursor: pointer;
  padding: 0 2px;
  line-height: 1;
  flex-shrink: 0;
  transition: color 0.12s;
}
.mi-close:hover { color: rgba(255, 255, 255, 0.65); }

/* ── Тело ── */
.mi-body {
  padding: 4px 0 6px;
  overflow-y: auto;
  max-height: calc(70vh - 130px);
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.12) rgba(0, 0, 0, 0.5);
}
.mi-body::-webkit-scrollbar { width: 4px; }
.mi-body::-webkit-scrollbar-track { background: rgba(0,0,0,0.5); border-radius: 999px; }
.mi-body::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.12); border-radius: 999px; }
.mi-body::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.22); }

/* ── Секция ── */
.mi-section {
  padding: 11px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: background 0.12s;
  cursor: default;
}
.mi-section:last-child { border-bottom: none; }
.mi-section:hover { background: rgba(255, 255, 255, 0.02); }

.mi-section-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.mi-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.mi-section-title {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.70);
  line-height: 1.3;
  letter-spacing: 0.04em;
}

/* ── Детали секции ── */
.mi-detail {
  padding-left: 14px;
}

.mi-detail-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 3px;
}
.mi-detail-row:last-child { margin-bottom: 0; }

.mi-detail-label {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.25);
  flex-shrink: 0;
}

.mi-detail-value {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.50);
  text-align: right;
}

/* ── Бейдж ── */
.mi-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.5px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.10);
}

/* ── УИК строка ── */
.mi-uik-row {
  padding: 9px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.015);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.mi-uik-label {
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.20);
}

/* ── Футер ── */
.mi-footer {
  padding: 10px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  gap: 8px;
  background: rgba(0, 0, 0, 0.20);
}

.mi-btn {
  flex: 1;
  padding: 8px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  text-transform: uppercase;
  font-family: inherit;
  transition: background 0.12s, border-color 0.12s, transform 0.08s, box-shadow 0.12s;
}
.mi-btn:active { transform: translateY(1px); }

.mi-btn-primary {
  background: rgba(16, 16, 16, 0.96);
  color: #f5f5f5;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.9);
}
.mi-btn-primary:hover {
  background: rgba(22, 22, 22, 0.98);
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 0 16px rgba(0, 0, 0, 1);
  transform: translateY(-1px);
}

.mi-btn-secondary {
  background: transparent;
  color: rgba(255, 255, 255, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.09);
}
.mi-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.55);
}

/* ── Мобильные ── */
@media (max-width: 768px) {
  #map-inspector {
    top: auto;
    bottom: 10px;
    right: 10px;
    left: 10px;
    max-width: none;
    border-radius: 14px;
  }
}