.map-toolbar {
  height: auto;
  min-height: 64px;
  padding-top: 12px;
  padding-bottom: 12px;
  flex-wrap: wrap;
}
.map-toolbar .map-actions { margin-left: auto; gap: 12px; }
.map-layer-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 10px;
  white-space: nowrap;
}
.map-layer-label select {
  width: 218px;
  min-height: 34px;
  margin: 0;
  padding: 7px 28px 7px 10px;
  font-size: 11px;
  color: var(--text);
}
.map-actions .subtle { min-height: 34px; white-space: nowrap; }
.map-layer-description {
  padding: 0 17px 13px;
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.6;
}
.map-notice { bottom: 100px; }
.map-notice .subtle { display: block; margin-top: 10px; }
.map-notice .subtle[hidden] { display: none; }
/* Recolor just the base tiles, keeping drone markers and attribution intact. */
.map-tiles-dark { filter: invert(1) hue-rotate(180deg) saturate(.6) brightness(.8) contrast(.9); }
.map-tiles-gray { filter: grayscale(1); }
.place-search { padding: 0 16px 13px; border-bottom: 1px solid var(--line); }
.place-query-label { color: var(--muted); font-size: 10px; margin-bottom: 6px; }
.place-search-row { display: flex; gap: 8px; align-items: center; }
.place-search-row input { min-width: 0; min-height: 36px; padding: 9px 12px; font-size: 11px; }
.place-search-row button { white-space: nowrap; min-height: 36px; font-size: 11px; }
.place-search-row [hidden] { display: none; }
.place-search-results { max-height: 240px; overflow: auto; margin-top: 8px; border: 1px solid var(--line); border-radius: 8px; }
.place-search-result { display: block; width: 100%; text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--line); }
.place-search-result:last-child { border-bottom: 0; }
.place-search-result:hover,.place-search-result:focus-visible { background: #83bee312; }
.place-search-result strong { display: block; font-size: 12px; margin-bottom: 4px; }
.place-search-result span { display: block; font-size: 10px; line-height: 1.5; color: var(--muted); }
.place-search-status { font-size: 10px; margin: 8px 0 0; overflow-wrap: anywhere; }
.place-search-status:empty { display: none; }
.place-search-status.error { min-height: 0; }
.place-search-credit { font-size: 9px; color: var(--muted); margin: 7px 0 0; }
.place-search-credit a { color: #a3bcd0; }
.place-search-marker { display: grid; place-items: center; width: 28px; height: 28px; border: 2px solid #9fcaff; border-radius: 7px; background: #183e69; color: white; font-size: 23px; box-shadow: 0 2px 10px #0006; }
.place-search-menu { position: relative; padding: 0 16px 12px; border-bottom: 1px solid var(--line); }
.map-search-toggle { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-width: 42px; height: 38px; min-height: 38px; padding: 7px 11px; border: 1px solid var(--line); border-radius: 8px; background: #102347; color: var(--text); }
.map-search-toggle:hover { background: #1b365f; }
.map-search-toggle svg { width: 21px; height: 21px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.map-search-toggle span { font-size: 12px; }
.map-search-toggle:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.place-search-popover { position: static; z-index: auto; width: 100%; max-height: none; overflow: visible; margin: 9px 0 0; padding: 14px; border: 1px solid #344b68; border-radius: 9px; background: #0b1734; box-shadow: 0 8px 20px #0005; }
.place-search-popover .place-query-label { font-size: 12px; margin-bottom: 7px; }
.place-search-popover .place-search-row input { min-height: 42px; font-size: 13px; }
.place-search-popover .place-search-row button { min-height: 42px; font-size: 12px; }
.place-search-popover .place-search-results { max-height: 290px; }
.place-search-popover .place-search-result { padding: 12px; }
.place-search-popover .place-search-result strong { font-size: 13px; }
.place-search-popover .place-search-result span,.place-search-popover .place-search-status { font-size: 11px; }
.place-search-popover .place-search-credit { font-size: 10px; }
@media (max-width: 1200px) {
  .map-toolbar .map-actions { margin-left: 0; width: 100%; justify-content: space-between; }
}
@media (max-width: 720px) {
  .map-toolbar .map-actions { gap: 8px; }
  .map-layer-label { flex: 1; min-width: 0; }
  .map-layer-label select { width: 100%; min-width: 0; max-width: 250px; }
  .map-layer-description { padding-left: 12px; padding-right: 12px; font-size: 9px; }
  .map-notice { bottom: 105px; }
  .place-search-menu { padding-left: 12px; padding-right: 12px; }
  .place-search-popover { padding: 13px; }
}
