.view.view-inspector-loc.active {
  display: flex !important;
  flex-direction: column;
  height: 100%;
  max-height: 100vh;
  max-height: 100dvh;
  padding: 0;
  max-width: none;
  background: #f4f5f7;
}

.insp-loc-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: #fff;
  border-bottom: 1px solid #e8e8ed;
  flex-shrink: 0;
}

.insp-loc-title {
  flex: 1;
  font-weight: 600;
  font-size: 16px;
  text-align: center;
}

.insp-loc-body {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.insp-loc-map-wrap {
  position: relative;
  height: 42%;
  min-height: 240px;
  background: #dfe3e8;
  border-bottom: 1px solid #e0e0e6;
  overflow: hidden;
}

.insp-loc-map,
.insp-loc-map-frame {
  width: 100%;
  height: 100%;
  z-index: 1;
  background: #dfe3e8;
  position: relative;
  overflow: hidden;
  border: 0;
  display: block;
}

.insp-loc-map[hidden],
.insp-loc-map-frame[hidden],
.insp-loc-map-empty[hidden],
.insp-loc-zoom-btns[hidden],
.insp-loc-map-tap[hidden] {
  display: none !important;
}

.insp-loc-map-tap {
  position: absolute;
  left: 10px;
  right: 58px;
  bottom: 10px;
  z-index: 6;
  border: none;
  border-radius: 10px;
  padding: 10px 12px;
  background: rgba(26, 86, 219, 0.94);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.22);
}

.insp-loc-tile-grid {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: 1fr 1fr 1fr;
  background: #c8cdd3;
}

.insp-loc-tile {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #d5dae0;
}

.insp-loc-tile.blank {
  background: #d5dae0;
}

.insp-loc-marker {
  position: absolute;
  width: 18px;
  height: 18px;
  margin-left: -9px;
  margin-top: -9px;
  border-radius: 50%;
  background: #34c759;
  border: 3px solid #fff;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
  z-index: 2;
  pointer-events: none;
}

.insp-loc-map-loading,
.insp-loc-map-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px;
  text-align: center;
  color: #3a3a3c;
  font-size: 14px;
  background: #dfe3e8;
}

.insp-loc-map-fallback-sub {
  color: #8e8e93;
  font-size: 12px;
}

.insp-loc-map-fallback-coord {
  margin-top: 4px;
  font-family: ui-monospace, monospace;
  font-size: 12px;
  color: #636366;
}

.insp-loc-zoom-btns {
  position: absolute;
  right: 10px;
  top: 10px;
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.insp-loc-zoom-btn {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.96);
  color: #1c1c1e;
  font-size: 24px;
  line-height: 40px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
  padding: 0;
}

.insp-loc-map-empty {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8e8e93;
  font-size: 14px;
  padding: 16px;
  text-align: center;
  background: #dfe3e8;
}

.insp-loc-leaflet-marker {
  background: transparent;
  border: none;
}

.insp-loc-leaflet-dot {
  display: block;
  width: 18px;
  height: 18px;
  margin: 2px;
  border-radius: 50%;
  background: #34c759;
  border: 3px solid #fff;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.45);
}

.insp-loc-selected {
  padding: 8px 12px 4px;
  font-size: 13px;
  color: #3a3a3c;
  background: #fff;
}

.insp-loc-actions {
  display: flex;
  gap: 8px;
  padding: 8px 12px 10px;
  background: #fff;
  border-bottom: 1px solid #e8e8ed;
}

.insp-loc-actions .btn {
  flex: 1;
}

.insp-loc-list {
  flex: 1;
  overflow: auto;
  padding: 10px 12px 24px;
  -webkit-overflow-scrolling: touch;
}

.insp-loc-card {
  display: block;
  width: 100%;
  text-align: left;
  border: 1px solid #e5e5ea;
  background: #fff;
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 8px;
  font: inherit;
  color: inherit;
}

.insp-loc-card.on {
  border-color: #34c759;
  box-shadow: 0 0 0 1px rgba(52, 199, 89, 0.25);
}

.insp-loc-card-name {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 600;
  font-size: 15px;
}

.insp-loc-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #c7c7cc;
}

.insp-loc-dot.fresh { background: #34c759; }
.insp-loc-dot.stale { background: #ff9f0a; }
.insp-loc-dot.none { background: #c7c7cc; }

.insp-loc-card.offline {
  opacity: 0.88;
}

.insp-loc-summary {
  font-size: 12px;
  color: #636366;
  margin: 0 0 10px;
  line-height: 1.5;
}

.insp-loc-hint {
  margin-top: 4px;
  color: #8e8e93;
}

.insp-loc-card-meta {
  margin-top: 4px;
  font-size: 12px;
  color: #8e8e93;
}

.insp-loc-card-coord {
  margin-top: 2px;
  font-size: 11px;
  color: #aeaeb2;
  font-variant-numeric: tabular-nums;
}

.insp-loc-empty {
  text-align: center;
  color: #8e8e93;
  font-size: 13px;
  padding: 28px 12px;
  line-height: 1.6;
}
