/* Street orientation and reviewed segments are not exact incident/site markers. */
.paper-street-location {
  min-width: 0;
  padding-top: var(--space-5, 1.25rem);
  border-top: 1px solid var(--color-border);
}

.paper-street-location .paper-section-heading {
  margin-bottom: 0.65rem;
}

.street-geometry-title {
  margin: 0 0 0.85rem;
  color: var(--color-fg);
  font-size: 1.08rem;
  font-weight: 650;
  line-height: 1.45;
  letter-spacing: -0.015em;
}

#map.paper-map--street {
  height: clamp(340px, 45vw, 440px);
  min-height: 320px;
  max-height: none;
  width: 100%;
  border: 1px solid var(--color-border);
  background: #eef2f6;
}

.street-geometry-description {
  margin: 0.85rem 0;
  color: var(--color-fg-muted);
  font-size: var(--text-sm, 0.875rem);
  line-height: 1.6;
}

.street-geometry-description--orientation {
  margin: 0 0 1rem;
  padding-left: 0.75rem;
  border-left: 3px solid #1463c7;
}

.street-geometry-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  margin: 0;
  padding: 0.8rem 0;
  list-style: none;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  color: var(--color-fg-muted);
  font-size: 0.78rem;
  line-height: 1.45;
}

.street-geometry-legend li {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 0.65rem;
  align-items: start;
  margin: 0;
  flex: 1 1 180px;
}

.street-geometry-key {
  display: block;
  margin-top: 0.5em;
  width: 24px;
  border-top: 5px solid #1463c7;
  border-radius: 2px;
}

.street-geometry-key--context {
  border-top: 3px dashed #64748b;
  border-radius: 0;
}

.street-geometry-key--boundary {
  margin: 0.15em auto 0;
  width: 11px;
  height: 11px;
  border: 2px solid #1463c7;
  border-radius: 50%;
  background: #fff;
}

.street-geometry-source {
  margin: 0.75rem 0 0;
  color: var(--color-fg-muted);
  font-size: 0.73rem;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.street-geometry-source a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.street-geometry-status:empty { display: none; }
.street-geometry-status {
  margin: 0.75rem 0;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--color-fg-muted);
}

.leaflet-tooltip.street-geometry-boundary-label,
.leaflet-tooltip.street-geometry-tooltip {
  color: #16304e;
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 5px;
  box-shadow: 0 1px 5px #16304e22;
  font-family: inherit;
  font-size: 11px;
  font-weight: 650;
  line-height: 1.3;
}

.leaflet-tooltip.street-geometry-boundary-label {
  max-width: 135px;
  padding: 4px 6px;
  white-space: normal;
  text-align: center;
}

@media (max-width: 480px) {
  #map.paper-map--street { height: 340px; min-height: 320px; }
  .street-geometry-title { font-size: 1rem; }
  .street-geometry-legend { display: grid; gap: 0.6rem; }
}
