.quest-finder-search, .quest-finder-manual form { display: grid; gap: 8px; }
.quest-finder-search label, .quest-finder-manual label { font-size: 14px; font-weight: 600; }
.quest-finder-search > div { display: flex; align-items: center; gap: 10px; }
.quest-finder-search input, .quest-finder-manual input {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 46px;
  padding: 10px 12px;
  font: inherit;
  font-size: 16px;
  border: 1px solid #b9c7b9;
  border-radius: 8px;
  background: #fff;
  color: inherit;
}
.quest-finder-search input { max-width: 205px; }
#modal .quest-finder-search .button, #modal .quest-finder-manual .button { flex-shrink: 0; margin: 0; min-height: 46px; }
.quest-finder-locate {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 12px;
  min-height: 44px;
  border: 0;
  background: transparent;
  color: #254b33;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.quest-finder-locate::before {
  content: "";
  width: 16px;
  height: 16px;
  background: currentColor;
  clip-path: polygon(2% 43%, 98% 2%, 62% 99%, 48% 57%);
}
.quest-finder-locate:hover:enabled { text-decoration: underline; }
.quest-finder-search button:disabled { cursor: wait; opacity: .6; }
.quest-finder-status { margin: 18px 0 9px; color: #465449; font-size: 14px; }
.quest-finder-status:empty { margin: 0; }
.quest-finder-split {
  --map-height: clamp(290px, 49dvh, 460px);
  display: grid;
  grid-template-columns: minmax(240px, 4fr) minmax(0, 5fr);
  gap: 0;
  overflow: hidden;
  border: 1px solid #d6ded4;
  border-radius: 12px;
}
.quest-finder-list {
  box-sizing: border-box;
  height: var(--map-height);
  margin: 0;
  padding: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  list-style: none;
}
.quest-finder-card {
  padding: 14px 14px 13px;
  border-inline-start: 3px solid transparent;
  background: white;
}
.quest-finder-card + .quest-finder-card { border-top: 1px solid #dfe6dd; }
.quest-finder-card.is-current { border-inline-start-color: #244d34; background: #f1f5ee; }
.quest-finder-preview {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 3px 9px;
  width: 100%;
  padding: 0;
  border: 0;
  color: #253c2c;
  background: transparent;
  text-align: left;
  font: inherit;
  cursor: pointer;
}
.quest-finder-preview:hover strong { text-decoration: underline; text-underline-offset: 3px; }
.quest-finder-number {
  grid-row: 1 / span 2;
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border: 1px solid #b7c6b5;
  border-radius: 50%;
  color: #254b33;
  font-size: 12px;
  font-weight: 600;
}
.is-current .quest-finder-number { background: #254b33; border-color: #254b33; color: #fff; }
.quest-finder-name { line-height: 1.4; font-size: 15px; }
.quest-finder-address { font-size: 13px; color: #526056; line-height: 1.45; }
.quest-finder-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; margin: 8px 0 0 35px; }
.quest-finder-choose {
  min-height: 34px;
  padding: 5px 14px;
  border-radius: 6px;
  border: 1px solid #718772;
  background: white;
  color: #264631;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.quest-finder-choose:hover { background: #ecf2e9; border-color: #375e42; }
.quest-finder-map, .quest-finder-manual summary { color: #315b39; font-size: 14px; text-underline-offset: 3px; }
.quest-finder-actions .quest-finder-map { font-size: 13px; }
.quest-finder-canvas {
  display: block;
  position: relative;
  isolation: isolate;
  height: var(--map-height);
  min-width: 0;
  overflow: hidden;
  border-left: 1px solid #d6ded4;
  background: #edf0ea;
}
.quest-map-surface { width: 100%; height: 100%; font: inherit; }
.quest-map-marker > span {
  display: grid;
  place-items: center;
  position: relative;
  box-sizing: border-box;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid white;
  background: #45634c;
  box-shadow: 0 1px 4px #233b3080;
  color: white;
  font: 700 13px/1 system-ui, sans-serif;
}
.quest-map-marker > span::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 8px;
  border: 5px solid transparent;
  border-bottom: 0;
  border-top: 7px solid #45634c;
}
.quest-map-marker[aria-pressed=true] > span { background: #183f29; outline: 3px solid white; box-shadow: 0 0 0 5px #254b33; }
.quest-map-marker[aria-pressed=true] > span::after { border-top-color: #183f29; }
.quest-map-marker:focus-visible { outline: 3px solid #133e25; outline-offset: 3px; }
.quest-map-notice {
  position: absolute;
  z-index: 900;
  right: 8px;
  top: 8px;
  max-width: calc(100% - 68px);
  margin: 0;
  padding: 5px 8px;
  border-radius: 6px;
  background: white;
  color: #3d4b40;
  font-size: 12px;
  pointer-events: none;
}
.quest-map-notice:empty { display: none; }
.quest-map-unavailable { display: grid; align-content: center; padding: 16px; color: #465449; text-align: center; }
.quest-finder-manual { margin: 16px 0 0; }
.quest-finder-manual summary { padding: 5px 0; cursor: pointer; }
.quest-finder-manual > a { display: inline-block; margin: 8px 0 14px; }
.quest-finder-manual .button { justify-self: start; }

@media (max-width: 640px) {
  .quest-finder-search > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 3px 8px; }
  .quest-finder-search input { max-width: none; }
  .quest-finder-locate { grid-column: 1 / -1; justify-self: start; min-height: 38px; padding: 4px 0; }
  .quest-finder-split { grid-template-columns: 1fr; }
  .quest-finder-canvas { grid-row: 1; height: clamp(140px, 24dvh, 210px); border-left: 0; border-bottom: 1px solid #d6ded4; }
  .quest-finder-list { height: clamp(145px, 26dvh, 265px); }
  .quest-finder-card { padding-block: 10px; }
  .quest-finder-choose { min-height: 40px; }
}
