/* mappanel.css — the layout of a map's detail panel (mappanel.js). Colours come
   from the app: --mp-bg, --mp-ink, --mp-muted, --mp-hair, --mp-accent (each
   falls back to a neutral). An app places the panel (.mp-over puts it over the
   map's lower-left corner) and styles what it puts in the body. */
.mp { box-sizing: border-box; background: var(--mp-bg, #fff); color: var(--mp-ink, #1a2430); border: 1px solid var(--mp-hair, rgba(26, 36, 48, 0.14));
  border-radius: 8px; padding: 12px 14px; min-width: 0; }
.mp-head { display: flex; align-items: flex-start; gap: 8px; }
.mp-title { flex: 1; min-width: 0; margin: 0 0 6px; font-size: 16px; line-height: 1.3; color: var(--mp-accent, inherit); overflow-wrap: anywhere; }
/* a title in lines (show([..])): one line each, cut with an ellipsis, the second quieter */
.mp-line { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.mp-line + .mp-line { font-size: 0.87em; font-weight: normal; color: var(--mp-muted, rgba(26, 36, 48, 0.62)); }
.mp-btn { flex: none; width: 28px; height: 28px; border: 1px solid var(--mp-hair, rgba(26, 36, 48, 0.14)); border-radius: 6px;
  background: transparent; color: var(--mp-ink, #1a2430); font: inherit; font-size: 17px; line-height: 1; cursor: pointer; }
.mp-btn:focus-visible { outline: 2px solid var(--mp-accent, currentColor); outline-offset: 2px; }
.mp-body { min-width: 0; }

/* over the map: the lower-left corner, scrolling inside when its list is long;
   folded, only the + square shows */
.mp-over { position: absolute; left: 10px; bottom: 10px; z-index: 3; width: min(320px, calc(100% - 20px));
  max-height: calc(100% - 20px); overflow: auto; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.22); }
.mp.is-folded { width: max-content; padding: 6px; overflow: visible; }
.mp.is-folded .mp-title, .mp.is-folded .mp-body, .mp.is-folded .mp-close { display: none; }
