.location-search {
  position: absolute; top: 14px; left: 58px; z-index: 1001;
  width: min(360px, calc(100vw - 72px)); box-sizing: border-box;
  padding: 12px; border: 1px solid var(--panel-border); border-radius: 14px;
  background: var(--panel); box-shadow: var(--shadow); color: var(--text);
  font: 13px/1.4 system-ui, -apple-system, Segoe UI, sans-serif;
}
.location-search label { display: block; font-weight: 700; margin-bottom: 6px; }
.location-search-row { display: flex; gap: 6px; }
.location-search input {
  width: 100%; min-width: 0; box-sizing: border-box; border: 1px solid #94a3b8;
  border-radius: 7px; padding: 9px; color: var(--text); background: #fff; font: inherit;
}
.location-search button { cursor: pointer; font: inherit; }
.location-search-submit {
  border: 1px solid #0746ac; border-radius: 7px; padding: 8px 10px;
  color: #fff; background: #0746ac; font-weight: 600 !important;
}
.location-search button:disabled { opacity: .6; cursor: wait; }
.location-search :focus-visible { outline: 3px solid #0891b2; outline-offset: 2px; }
.location-search-help, .location-search-status { color: var(--muted); font-size: 12px; margin: 7px 0 0; }
.location-search-status[data-error="true"] { color: #9f1239; }
.location-search-results { list-style: none; margin: 8px 0 0; padding: 0; max-height: 25vh; overflow-y: auto; }
.location-search-results:empty { display: none; }
.location-search-result {
  width: 100%; text-align: left; border: 0; border-top: 1px solid #dbe3ee;
  background: transparent; color: var(--text); padding: 10px 5px;
}
.location-search-result:hover, .location-search-result:focus-visible { background: #eaf2ff; }
.location-search-result small { display: block; margin-top: 3px; color: var(--muted); }
.location-search-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 7px; font-size: 11px; }
.location-search-footer a { color: #475569; }
.location-search-clear { white-space: nowrap; border: 0; padding: 4px 0; color: #0746ac; background: transparent; text-decoration: underline; }
.search-marker { width: 42px; height: 52px; padding: 0; border: 0; background: transparent; cursor: pointer; filter: drop-shadow(0 3px 4px #0b122060); }
.search-marker svg { display: block; width: 100%; height: 100%; }
.search-marker:focus-visible { outline: 3px solid #0891b2; outline-offset: 3px; border-radius: 20px; }
.search-popup .maplibregl-popup-content { border-radius: 10px; padding: 16px 25px 12px 14px; font: 13px/1.4 system-ui, sans-serif; color: #0f172a; }
.search-popup p { margin: 5px 0 0; }
.search-popup small { color: #475569; }
@media (min-width: 721px) and (max-width: 1000px) {
  .location-search { width: calc(50vw - 64px); }
  .map-panel { max-width: min(320px, calc(50vw - 45px)); }
}
@media (max-width: 720px) {
  .location-search { top: 10px; left: 54px; width: calc(100vw - 64px); padding: 10px; border-radius: 10px; }
  .location-search input { font-size: 16px; }
  .location-search-help { font-size: 11px; }
  .location-search-results { max-height: 20vh; }
}
@media (max-height: 500px) and (orientation: landscape) {
  .location-search { max-height: calc(100vh - 20px); overflow-y: auto; width: calc(50vw - 64px); }
}
