.family-map {
  display: grid;
  gap: .75rem;
  min-width: 0;
  width: 100%;
  height: auto;
  background: transparent;
  overflow: visible;
}
.family-map-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: .5rem;
}
.family-map-query {
  min-width: 0;
  width: 100%;
  padding: .75rem;
  border: 1px solid #d9d6c9;
  border-radius: .75rem;
  background: #fff;
  font-size: 1rem;
}
.family-map .family-map-canvas {
  width: 100%;
  height: 360px;
  min-height: 360px;
  border: 1px solid var(--stroke, #ded6c6);
  border-radius: .75rem;
  overflow: hidden;
  background: #e2edf1;
  z-index: 0;
  touch-action: none;
}
.family-map-status,
.family-map-selection,
.family-map-hint,
.family-map-attribution {
  margin: 0;
  font-size: .875rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.family-map-status { color: #55503f; }
.family-map-status.is-error { color: #9a392c; }
.family-map-selection { font-weight: 650; }
.family-map-hint,
.family-map-attribution { color: #686253; }
.family-map-actions {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
}
.family-map-actions button { font-size: .875rem; }
.family-map-results {
  display: grid;
  gap: .25rem;
  max-height: 230px;
  overflow: auto;
  overscroll-behavior: contain;
}
.family-map-results:empty { display: none; }
.family-map-result {
  width: 100%;
  min-height: 44px;
  text-align: left;
  padding: .75rem;
  border: 1px solid #e4ddcb;
  border-radius: .625rem;
  background: #fffdf5;
  color: #302c25;
  font-size: .9375rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.family-map-result:hover,
.family-map-result:focus-visible { background: #fff0bd; }
.family-map .leaflet-control-zoom a {
  width: 40px;
  height: 40px;
  line-height: 40px;
  color: #302c25;
}
.family-map .leaflet-popup-content { margin: 14px; }
.family-map-popup { display: grid; gap: .5rem; }
.family-map-popup p { margin: 0; }
.family-map .leaflet-popup-content button { min-height: 44px; }
.family-map [hidden] { display: none !important; }
@media (max-width: 520px) {
  .family-map-search { grid-template-columns: minmax(0, 1fr); }
  .family-map-search button { width: 100%; }
  .family-map .family-map-canvas { height: 360px; min-height: 360px; }
}
