/* My Coordinates. Map chrome is in map-shell.css.
   In-page layout (body.map-page) is in map-page.css. */

.coords-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding: 0.35rem 0.9rem 0.85rem;
}

.coords-dock .dock-title {
  margin: 0;
  font-size: 1rem;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.coords-source {
  margin: 0.45rem 0 0;
  font-size: 0.92rem;
  line-height: 1.4;
  color: color-mix(in srgb, var(--text) 72%, transparent);
}

.coords-dock .chip {
  background: var(--surface);
}

.coords-dock .chip:hover,
.coords-dock .chip.is-active,
.coords-dock .chip[aria-pressed="true"] {
  background: var(--tint-strong);
}

.coords-dock .chip:disabled,
.coords-dock .chip:disabled:hover {
  background: var(--surface);
}

.coords-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.75rem;
}

.coords-status,
.coords-privacy {
  margin: 0.55rem 0 0;
  font-size: 0.92rem;
  line-height: 1.4;
}

.coords-status:empty {
  display: none;
}

.coords-privacy {
  color: color-mix(in srgb, var(--text) 68%, transparent);
}

.coords-results {
  margin-top: 0.55rem;
}

.coords-meta {
  margin: 0.35rem 0 0.15rem;
}

.coords-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  align-items: baseline;
  padding: 0.35rem 0;
}

.coords-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 0;
  border-top: 1px solid var(--line);
}

.coords-k {
  display: block;
  font-size: 0.85rem;
  font-weight: 650;
  color: color-mix(in srgb, var(--text) 68%, transparent);
}

.coords-meta-row .coords-k {
  min-width: 5.5rem;
}

.coords-v {
  display: block;
  margin-top: 0.15rem;
  font-family: var(--font-mono);
  font-size: 0.98rem;
  line-height: 1.4;
  word-break: break-word;
}

.coords-meta-row .coords-v {
  margin-top: 0;
}

.coords-row .chip {
  flex: 0 0 auto;
}

/* This page has no chips over the map, so the credit stays at the
   bottom of the tiles. The shared mobile rule lifts it for other tools. */
@media (max-width: 720px) {
  body.is-map .map-app:has(.coords-dock) .leaflet-bottom.leaflet-right {
    top: auto;
    bottom: 0;
  }
}
