.model-layer-callouts {
  inset: 0;
  display: block;
  visibility: hidden;
  --layer-label-width: clamp(124px, 12vw, 192px);
  --layer-label-left: 4%;
}

.model-layer-callouts.is-ready { visibility: visible; }

.model-layer-leaders {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.model-layer-leaders path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.3;
}

.model-layer-leaders circle {
  fill: currentColor;
  stroke: #eaf3f8;
  stroke-width: 1.5;
}

.model-layer-callouts [data-model-layer="city"] { --layer-color: #7856a5; }
.model-layer-callouts [data-model-layer="gis"] { --layer-color: #57743d; }
.model-layer-callouts [data-model-layer="sensors"] { --layer-color: #007994; }
.model-layer-callouts [data-model-layer="inspection"] { --layer-color: #91631d; }
.model-layer-callouts [data-model-layer="rail"] { --layer-color: #347293; }
.model-layer-callouts [data-model-layer="utilities"] { --layer-color: #26786e; }
.model-layer-callouts [data-model-layer="network"] { --layer-color: #10788e; }
.model-layer-leaders g { color: var(--layer-color); }

.model-layer-callouts button[data-model-layer] {
  position: absolute;
  top: 0;
  left: var(--layer-label-left);
  width: var(--layer-label-width);
  min-height: 48px;
  padding: 8px 10px;
  border: 1px solid #b5ceda;
  border-left: 3px solid var(--layer-color);
  border-radius: 5px;
  background: #f9fcfd;
  box-shadow: 0 3px 12px #153e5512;
  color: #183d53;
  text-align: left;
  line-height: 1.35;
}

.model-layer-callouts button strong {
  display: block;
  font-size: 12px;
  font-weight: 700;
}

.model-layer-callouts button span {
  display: block;
  margin-top: 3px;
  font-size: 10px;
  color: #4c697b;
}

.model-layer-callouts button[aria-pressed="false"] {
  opacity: 1;
  border-left-color: #98b0bd;
  background: #edf4f7;
  color: #526e7f;
  box-shadow: none;
}

.model-layer-callouts button:focus-visible { outline: 2px solid var(--layer-color); }

.sensor-key {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #cedfe7;
  font-size: 10px;
  color: #27465a;
}

.sensor-key ul { list-style: none; margin: 6px 0 0; padding: 0; }
.sensor-key li { display: flex; align-items: center; gap: 7px; margin: 3px 0; }
.sensor-key li::before {
  content: '';
  width: 7px;
  height: 7px;
  border: 1px solid #183d5370;
  border-radius: 50%;
  background: var(--sensor-color);
}

.urban-world:has([data-model-layer="sensors"][aria-pressed="false"]) .sensor-key { display: none; }

.asset-explorer[data-active="gis"] .pipe-explorer,
.asset-explorer[data-active="pipe"] .gis-details { display: none; }
.explorer-modes { display: flex; gap: 4px; margin-bottom: 10px; }
.explorer-modes button {
  border: 1px solid #c3d6df;
  border-radius: 4px;
  background: #f7fbfd;
  color: #28536b;
  font: inherit;
  font-size: 10px;
  padding: 4px 8px;
  cursor: pointer;
}
.asset-explorer[data-active="gis"] [data-explorer-mode="gis"],
.asset-explorer[data-active="pipe"] [data-explorer-mode="pipe"] { background: #e2edf3; border-color: #81aabd; }
.pipe-explorer>p { font-size: 10px; line-height: 1.7; color: #527287; margin-top: 8px; }
#gis-asset-area::before {
  content: '';
  display: inline-block;
  width: .7em;
  height: .7em;
  margin-inline-end: .35em;
  border: 1px solid #526b7b;
  border-radius: 2px;
  background: var(--district-color);
}
.gis-map-tag {
  position: absolute;
  z-index: 1;
  transform: translate(-50%,-100%);
  padding: 4px 7px;
  border: 1px solid #70d9e6;
  border-radius: 3px;
  background: #203545;
  color: #c5faff;
  font: 600 10px/1.2 ui-monospace, monospace;
  white-space: nowrap;
  pointer-events: none;
}

@media (max-width: 800px) {
  .model-layer-callouts {
    --layer-label-left: 14px;
    --layer-label-width: clamp(88px, 26vw, 120px);
  }

  .model-layer-callouts button[data-model-layer] { padding: 6px 7px; }
  .model-layer-callouts button strong { font-size: 11px; }
  .model-layer-callouts button span { font-size: 9px; }
}

@media (min-width: 801px) and (max-height: 850px) {
  .model-layer-callouts:has([data-model-layer="city"]) button[data-model-layer] {
    min-height: 42px;
    padding: 5px 8px;
    line-height: 1.22;
  }
  .model-layer-callouts:has([data-model-layer="city"]) button span { margin-top: 2px; }
}
