/* Isolated 2D place navigation. The route-planning fields are unchanged. */
#placeSearch2dForm {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 0 0 12px;
}
#placeSearch2dInput {
  box-sizing: border-box;
  min-width: 0;
  flex: 1;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background: #fff;
  padding: 10px 12px;
  font: inherit;
  color: #0f172a;
}
#placeSearch2dInput:focus-visible { outline: 2px solid #0284c7; outline-offset: 1px; }
#placeSearch2dForm button {
  background: #0369a1;
  border: 0;
  border-radius: 8px;
  color: white;
  font: inherit;
  cursor: pointer;
  padding: 10px 12px;
}
#placeSearch2dForm button:disabled {
  background: #94a3b8;
  cursor: not-allowed;
}
#placeSearch2dForm button[type="button"]:not(#recenterMapButton) {
  background: #0f766e;
}
#placeSearch2dForm button[type="button"]:not(#recenterMapButton):disabled {
  background: #94a3b8;
}
#placeSearch2dStatus { font-size: 12px; margin: -7px 0 10px; color: #334155; min-height: 1em; }

/* Candidate confirmation is shared by both route-planning entry pages. */
.place-candidate-dialog {
  box-sizing: border-box;
  width: min(92vw, 480px);
  max-height: 82vh;
  overflow: auto;
  border: 0;
  border-radius: 16px;
  padding: 20px;
  color: #0f172a;
  box-shadow: 0 18px 60px #0f172a55;
}
.place-candidate-dialog::backdrop { background: #0f172a88; }
.place-candidate-dialog h2 { margin: 0 0 8px; font-size: 18px; }
.place-candidate-dialog p { margin: 0 0 12px; color: #475569; font-size: 14px; }
.place-candidate-options { display: grid; gap: 8px; max-height: 48vh; overflow: auto; }
.place-candidate-option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  cursor: pointer;
}
.place-candidate-option input { flex: 0 0 auto; margin-top: 4px; }
.place-candidate-option span,
.place-candidate-option small { display: block; }
.place-candidate-option small { margin-top: 4px; color: #64748b; line-height: 1.4; }
.place-candidate-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }
.place-candidate-actions button {
  min-height: 44px;
  padding: 9px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 9px;
  background: #fff;
  color: #0f172a;
  font: inherit;
  cursor: pointer;
}
.place-candidate-actions button:last-child {
  min-width: 150px;
  border-color: #0369a1;
  background: #0369a1;
  color: #fff;
  font-weight: 600;
}
.place-candidate-actions button:disabled {
  border-color: #64748b;
  background: #64748b;
  color: #fff;
  opacity: .78;
  cursor: not-allowed;
}

@media (max-width: 640px) {
  #placeSearch2dForm { flex-wrap: wrap; }
  #placeSearch2dInput { flex-basis: 55%; }
  #placeSearch2dForm button { padding: 8px 9px; }
}
