/*
	LGGHuT Mitgliederverzeichnis – Umkreissuche und Karte
	Liste und Filter gestaltet das eigene CSS der Homepage (.lg-dir, .lg-m …);
	hier steht nur, was die Erweiterung dazubringt. Farben aus den
	Variablen der Homepage, mit Ersatzwerten.
*/

.lgm .lg-m-kat::before { background: var(--lgm-farbe, var(--lg-green, #008244)); }
.lgm .lg-q.lgm-q-hervor { background: var(--lg-ink, #0d1712); color: #fff; }

/* Umkreis */
.lgm-umkreis {
  grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; margin: 0;
}
.lgm-umkreis-titel {
  font-family: var(--lg-mono, monospace); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--lg-muted, #5c6a62); margin-right: .3rem;
}
.lgm-umkreis input, .lgm-umkreis select {
  height: 40px; box-sizing: border-box; font: inherit; font-size: .92rem; color: var(--lg-ink, #0d1712);
  border: 1px solid rgba(13,23,18,.22); border-radius: var(--lg-radius, 4px); background: #fff; padding: 0 .8rem; outline: none;
}
.lgm-umkreis input { width: 12rem; }
.lgm-umkreis input:focus, .lgm-umkreis select:focus { border-color: var(--lg-green, #008244); box-shadow: 0 0 0 3px rgba(0,130,68,.14); }
.lgm-umkreis .lgm-umkreis-los { background: var(--lg-ink, #0d1712); color: #fff; border-color: var(--lg-ink, #0d1712); }
.lgm-umkreis .lgm-umkreis-los:hover { background: var(--lg-green, #008244); border-color: var(--lg-green, #008244); }
.lgm-umkreis-weg { font: inherit; font-size: .86rem; background: none; border: 0; color: var(--lg-green, #008244); cursor: pointer; padding: 0 .3rem; }
.lgm-umkreis-info { font-size: .86rem; color: var(--lg-muted, #5c6a62); }
.lgm-umkreis-info.ist-fehler { color: #b3261e; }
@media (max-width: 639px) {
  .lgm-umkreis input { flex: 1 1 9rem; width: auto; }
}

/* Entfernung an der Karte */
.lgm-dist {
  margin-left: auto; font-family: var(--lg-mono, monospace); font-size: .7rem; letter-spacing: .04em; text-transform: none;
  color: var(--lg-green-d, #00602f); background: var(--lg-green-l, #e3f1e8); padding: .25em .55em; border-radius: 2px;
}
.lgm .lg-m-kat { flex-wrap: wrap; }
.lgm .lg-m.lgm-markiert { border-color: var(--lg-green, #008244); box-shadow: 0 0 0 3px rgba(0,130,68,.2); }

/* Karte */
.lgm-karte {
  margin: 0 0 1.6rem; border: 1px solid var(--lg-line, rgba(13,23,18,.12)); border-radius: var(--lg-radius, 4px);
  background: var(--lg-concrete, #f1f0eb); overflow: hidden;
}
.lgm-karte-hinweis { padding: 1.6rem 1.5rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.lgm-karte-hinweis p { margin: 0; max-width: 40rem; font-size: .92rem; color: var(--lg-muted, #5c6a62); }
.lgm-karte.ist-laden { opacity: .6; }
.lgm-karte-flaeche { height: clamp(320px, 52vh, 560px); width: 100%; }
.lgm-karte .leaflet-container { font-family: inherit; }
.lgm-pin span {
  display: block; width: 18px; height: 18px; box-sizing: border-box; border-radius: 50%;
  border: 3px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.45);
}
.lgm-popup strong { display: block; font-size: .95rem; margin-bottom: .2rem; }
.lgm-popup div { font-size: .86rem; color: var(--lg-muted, #5c6a62); margin-bottom: .35rem; }
.lgm-popup a { font-weight: 600; }

@media print {
  .lgm-karte, .lgm-umkreis { display: none !important; }
  .lgm-dist:not([hidden]) { color: #000; background: none; padding: 0; }
}
