.app.is-locator .status-strip,
.app.is-locator .control-strip {
  display: none;
}

#panel-locator .panel-head {
  border-bottom: 1px solid var(--line, #333);
}

.locator-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(320px, .9fr);
  gap: 16px;
  padding: 16px;
}

.locator-map-column,
.locator-controls {
  min-width: 0;
}

.locator-map-shell {
  position: relative;
  min-height: 540px;
  padding: 0;
  overflow: hidden;
  background: #050505;
  border-color: rgba(255, 148, 31, .48);
}

.locator-map {
  width: 100%;
  height: 540px;
  background: #080a0a;
}

.locator-map-message {
  position: absolute;
  z-index: 500;
  left: 50%;
  top: 50%;
  max-width: calc(100% - 48px);
  padding: 9px 12px;
  border: 1px solid rgba(255, 148, 31, .45);
  border-radius: 6px;
  background: rgba(6, 6, 6, .88);
  color: #f7f3eb;
  font-size: 14px;
  text-align: center;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.locator-map-message[hidden] {
  display: none;
}

.locator-crosshair {
  position: absolute;
  z-index: 550;
  left: 50%;
  top: 50%;
  width: 34px;
  height: 34px;
  border: 2px solid #ff941f;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .72), 0 0 16px rgba(255, 148, 31, .46);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.locator-crosshair:before,
.locator-crosshair:after,
.locator-crosshair span:before,
.locator-crosshair span:after {
  content: "";
  position: absolute;
  background: #ff941f;
  box-shadow: 0 0 3px rgba(0, 0, 0, .9);
}

.locator-crosshair:before,
.locator-crosshair:after {
  left: 50%;
  width: 2px;
  height: 10px;
  transform: translateX(-50%);
}

.locator-crosshair:before { top: -8px; }
.locator-crosshair:after { bottom: -8px; }
.locator-crosshair span:before,
.locator-crosshair span:after {
  top: 50%;
  width: 10px;
  height: 2px;
  transform: translateY(-50%);
}
.locator-crosshair span:before { left: -8px; }
.locator-crosshair span:after { right: -8px; }

.locator-readouts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.locator-readouts .metric {
  min-width: 0;
}

.locator-readouts strong {
  overflow-wrap: anywhere;
}

.locator-readout-grid strong {
  color: #ffb340;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 1.22rem;
}

.locator-copy-row {
  margin-top: 10px;
}

.locator-copy-row > * {
  flex: 1 1 180px;
}

.locator-controls .card {
  gap: 10px;
}

.locator-card-copy {
  margin: 0;
  color: var(--muted, #a8a39a);
  font-size: 14px;
  line-height: 1.5;
}

.locator-full-button {
  width: 100%;
  min-height: 44px;
}

.locator-inline-action {
  display: flex;
  align-items: end;
  gap: 8px;
}

.locator-inline-action > .text-input,
.locator-grow {
  min-width: 0;
  flex: 1 1 auto;
}

.locator-grow {
  display: grid;
  gap: 6px;
}

.locator-coordinate-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.locator-coordinate-grid label,
#locatorCoordinateForm > label {
  display: grid;
  gap: 6px;
}

.locator-search-results {
  display: grid;
  gap: 7px;
}

.locator-search-result {
  width: 100%;
  min-height: 44px;
  padding: 9px 11px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 6px;
  background: #0b0b0b;
  color: #f7f3eb;
  font: inherit;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
}

.locator-search-result:hover,
.locator-search-result:focus-visible {
  border-color: #ff941f;
  background: #151009;
  outline: none;
}

.locator-status[data-state="error"] {
  border-color: #e25a4f;
  color: #ffb0a8;
}

.locator-status[data-state="success"] {
  border-color: #3ed88b;
  color: #79efb2;
}

#panel-locator .leaflet-container {
  font-family: inherit;
}

#panel-locator .leaflet-control-zoom a {
  width: 38px;
  height: 38px;
  border-color: rgba(255, 148, 31, .45);
  background: rgba(9, 9, 9, .92);
  color: #ff9b2f;
  line-height: 38px;
}

#panel-locator .leaflet-control-attribution {
  max-width: calc(100% - 14px);
  padding: 4px 7px;
  background: rgba(0, 0, 0, .78);
  color: #c9c5bd;
  font-size: 10px;
}

#panel-locator .leaflet-control-attribution a {
  color: #ffb340;
}

#panel-locator .leaflet-popup-content-wrapper,
#panel-locator .leaflet-popup-tip {
  background: #111;
  color: #f7f3eb;
}

@media (max-width: 980px) {
  .locator-layout {
    grid-template-columns: 1fr;
  }

  .locator-map-shell,
  .locator-map {
    min-height: 430px;
    height: 430px;
  }
}

@media (max-width: 600px) {
  .locator-layout {
    padding: 10px;
  }

  .locator-map-shell,
  .locator-map {
    min-height: 340px;
    height: min(52vh, 410px);
  }

  .locator-readouts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .locator-readout-grid {
    grid-column: 1 / -1;
  }

  .locator-inline-action,
  .locator-coordinate-grid {
    grid-template-columns: 1fr;
  }

  .locator-inline-action {
    display: grid;
    align-items: stretch;
  }

  .locator-inline-action button {
    width: 100%;
    min-height: 44px;
  }
}
