/* The compact navigator is one generous touch target; travel happens in the chart. */
#map-instruments { position:relative; height:0; flex:none; }
.atlas-locator {
  --loc-ink: #eff0df;
  --loc-gold: #ffce82;
  --loc-mint: #9be2d4;
  width: clamp(178px, 14.4vw, 208px);
  height: clamp(112px, 9.4vw, 132px);
  box-sizing: border-box;
  z-index: 5;
}
.locator-opener {
  display: grid; grid-template-rows: 30px minmax(0, 1fr);
  width: 100%; height: 100%; margin: 0; padding: 0;
  overflow: hidden; isolation: isolate; text-align: left;
  border: 1px solid #aabc9b9c; border-radius: 12px;
  background: #102828; color: var(--loc-ink);
  font-family: var(--sans, system-ui, sans-serif);
  box-shadow: 0 3px 15px #071a1a42;
  touch-action: manipulation; -webkit-tap-highlight-color: transparent;
}
.locator-opener:hover { border-color: #edcc91; }
.locator-opener:focus-visible { outline: 2px solid var(--loc-gold); outline-offset: 3px; }
.locator-head {
  display: flex; align-items: center; gap: 6px; padding: 0 8px;
  font-size: 12px; font-weight: 650; line-height: 1;
  background: #263e36; border-bottom: 1px solid #8aa78e40;
  letter-spacing: .015em;
}
.locator-head svg { width: 14px; height: 14px; flex: none; }
.locator-head .loc-expand { color:#d6dccc; margin-left:auto; }
.locator-opener canvas { display: block; width:100%; height:100%; min-height:0; }
.locator-dialog {
  --loc-ink:#edf0df; --loc-muted:#b3c4b6; --loc-amber:#ffce82; --loc-mint:#9be2d4;
  color:var(--loc-ink); background:#142c2b; padding:0;
  border:1px solid #9caa899c; border-radius:18px;
  width:min(760px,calc(100% - 32px)); max-width:calc(100% - 16px);
  max-height:calc(100dvh - 20px); overflow:auto; overscroll-behavior:contain;
  box-shadow:0 18px 90px #0715187a; font:14px/1.4 var(--sans,system-ui,sans-serif);
}
.locator-dialog::backdrop { background:#061b1dd6; backdrop-filter:blur(3px); }
.locator-dialog button,.locator-dialog select { color:inherit; font-family:inherit; }
.locator-dialog :focus-visible { outline:2px solid #ffcf82; outline-offset:2px; }
.locator-body { display:flex; flex-direction:column; }
.locator-dhead { display:flex; justify-content:space-between; align-items:center; gap:8px; padding:13px 16px 9px; }
.locator-dhead h2 { display:flex; gap:8px; align-items:center; font:400 28px/1.1 var(--serif,Georgia,serif); margin:0;color:#f6f0da; letter-spacing:-.035em; }
.locator-dhead h2 svg { width:22px; height:22px; color:#e8c997; }
.locator-x { display:grid; place-items:center; min-width:42px; height:42px; border:1px solid #83958966; background:#243e37; border-radius:50%; }
.locator-x svg { width:17px;height:17px; }
.locator-controls { display:flex; flex-wrap:wrap; align-items:center; gap:8px; padding:0 16px 11px; }
.locator-mode { display:flex; gap:1px; padding:2px; border-radius:9px; border:1px solid #71887c84; background:#102726; }
.locator-mode button { min-height:40px; padding:4px 12px; background:transparent; border:0; border-radius:7px; color:#c4d3c6; font-size:13px;font-weight:600; }
.locator-mode button[aria-pressed=true] { color:#f6efdf; background:#3d5749; }
.locator-family { margin-left:auto; position:relative; display:flex; flex:0 1 221px; min-width:120px; }
.locator-family svg { position:absolute; top:50%; transform:translateY(-50%); right:10px; width:14px;height:14px;pointer-events:none;color:#d2d9c8; }
.locator-family select { width:100%; min-height:44px; padding:5px 29px 5px 11px; border-radius:8px; border:1px solid #71887c84; background:#203b34; font-size:13px; appearance:none; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.locator-family option { color:#18302c;background:#fffcf3; }
@media(pointer:coarse){.locator-family select{font-size:max(1rem,16px)}}
.locator-largechart { display:block; width:100%; height:clamp(240px,50dvh,500px); background:#102727; cursor:grab; touch-action:none; user-select:none; -webkit-user-select:none; -webkit-touch-callout:none; }
.locator-largechart.dragging { cursor:grabbing; }
.locator-largechart[data-over-label]:not(.dragging) {cursor:pointer}
.locator-largechart:focus-visible { outline-offset:-3px; }
.locator-chartbar { display:flex;align-items:center;justify-content:space-between;min-height:48px;gap:8px;padding:2px 12px 2px 16px;background:#1b3430;border-block:1px solid #77948545; }
.locator-legend { display:flex; gap:3px 12px; flex-wrap:wrap; color:var(--loc-muted); font-size:12px; }
.locator-legend span { display:inline-flex;align-items:center;gap:6px; }.locator-legend i { width:8px; height:8px; flex:none; }
.locator-legend [hidden] {display:none}
.locator-zoom { display:flex;align-items:center;flex:none;background:#132b28;border-radius:9px;box-shadow:inset 0 0 0 1px #82988265; }
.locator-zoom button { display:inline-flex;align-items:center;justify-content:center;gap:4px;padding:0 6px;min-width:44px;height:44px;border-radius:8px;color:#f1ecd7;line-height:1;font-size:20px;font-weight:550; }
.locator-zoom [data-nav-zoom="fit"] { min-width:61px;border-inline:1px solid #728d7f50;border-radius:0;font-size:13px;font-variant-numeric:tabular-nums; }
.locator-zoom svg { width:14px;height:14px; }
.locator-zoom button:enabled:hover { background:#365045; }
.locator-zoom button:disabled { color:#a2afa5;opacity:.65;cursor:default; }
.locator-gold { background:var(--loc-amber);border-radius:50%; }.locator-pick { background:var(--loc-mint);transform:rotate(45deg); }.locator-view { border:1px solid #91d7c0; }
.locator-foot { display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 16px 13px; }
.locator-destination { min-width:0; }.locator-destination strong,.locator-destination small { display:block; }
.locator-destination strong { font:600 20px/1.14 var(--serif,Georgia,serif);color:#faf4e4;overflow-wrap:anywhere; }.locator-destination small{color:#becbbd;font-size:13px;margin-top:3px;}
.locator-go {display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;min-height:44px;padding:0;text-align:left;background:transparent}
.locator-open-label {display:grid;place-items:center;min-height:44px;flex:none;padding:7px 12px;background:#e4dec0;color:#17342b;border-radius:23px;font-size:14px;font-weight:650}
.locator-go:disabled {opacity:1;cursor:default}
.locator-go:disabled .locator-open-label {display:none}
.locator-go:enabled:hover .locator-destination strong {text-decoration:underline;text-underline-offset:3px}
@media(max-width:760px) {
  #map-instruments {
    display:flex; align-items:center; justify-content:space-between; gap:6px;
    height:88px; padding:4px 8px;
    border-top:1px solid #69877670;
    background:linear-gradient(105deg,#132f2d,#203b33 70%,#1a352f);
  }
  #map-instruments #atlas-navigator {
    position:static; width:146px; height:76px; flex:0 1 146px; min-width:0;
  }
  #map-instruments .locator-opener { grid-template-rows:22px minmax(0,1fr);border-radius:9px; }
  #map-instruments .locator-head { font-size:11.5px; height:auto; }
  #map-instruments .tools {
    position:static; display:grid; grid-template-columns:repeat(4,44px);
    grid-template-rows:18px 44px; grid-template-areas:"level level level level" "minus plus fit expand";
    gap:0; padding:0; border:0; border-radius:0; box-shadow:none; background:none;
  }
  #map-instruments .tools #zoom-level {
    position:static; grid-area:level; min-width:0; white-space:nowrap; text-align:center;
    font:600 12px/16px var(--sans); color:#d9e3cc; padding:0 2px; text-shadow:none;
  }
  #map-instruments .tools button {
    display:grid; place-items:center; width:44px; height:44px; padding:0;
    background:#26473d; border:1px solid #77947d75; border-left:0; border-radius:0;
  }
  #map-instruments .tools button:hover { background:#355748; }
  #map-instruments .tools button:focus-visible { outline-offset:-3px; }
  #map-instruments .tools>span { display:none; }
  #map-instruments #minus { grid-area:minus; border-left:1px solid #77947d75;border-radius:14px 0 0 14px; }
  #map-instruments #plus { grid-area:plus; }
  #map-instruments #fit { grid-area:fit; }
  #map-instruments #expand { grid-area:expand; border-radius:0 14px 14px 0; }
  .locator-dialog { width:min(520px,calc(100% - 12px));max-width:calc(100% - 8px);max-height:calc(100dvh - 12px);border-radius:15px; }
  .locator-dhead{padding:9px 11px 5px}.locator-dhead h2{font-size:24px}
  .locator-controls{padding:0 10px 8px;gap:5px;flex-wrap:nowrap}.locator-family{min-width:92px;flex:1}
  .locator-mode button{padding:3px 8px}.locator-largechart{height:clamp(210px,49dvh,480px)}
  .locator-chartbar{padding-inline:10px}.locator-legend{gap:2px 9px;font-size:12px}.locator-foot{padding:8px 10px 10px}
  .locator-destination strong{font-size:18px}.locator-destination small{font-size:12px}
}
@media(max-width:360px) {
  #map-instruments { height:90px; padding:0 5px; }
  #map-instruments .tools {
    grid-template-columns:44px 44px 4px 44px; grid-template-rows:44px 44px;
    grid-template-areas:"level level . fit" "minus plus . expand";
  }
  #map-instruments #plus { border-radius:0 14px 14px 0; }
  #map-instruments #fit { border-left:1px solid #77947d75; border-bottom:0; border-radius:13px 13px 0 0; }
  #map-instruments #expand { border-left:1px solid #77947d75; border-radius:0 0 13px 13px; }
}
@media(max-height:460px){
 .locator-largechart{height:clamp(88px,calc(100dvh - 220px),230px);min-height:0}
 .locator-dhead{padding-top:3px;padding-bottom:2px}.locator-controls{padding-bottom:5px}.locator-foot{padding-top:3px;padding-bottom:6px}
}
@media(orientation:landscape) and (min-width:540px) and (max-height:460px){
 .locator-dialog{width:min(920px,calc(100% - 12px));height:min(440px,calc(100dvh - 12px))}
 .locator-body{display:grid;height:100%;grid-template-columns:minmax(0,1fr) clamp(224px,33%,290px);grid-template-rows:auto auto 1fr auto}
 .locator-largechart{grid-area:1/1/5/2;align-self:stretch;height:100%;min-height:0;border-right:1px solid #71887c65}
 .locator-dhead{grid-area:1/2;padding:2px 8px 2px 10px}
 .locator-dhead h2{font-size:19px;gap:5px}.locator-dhead h2 svg{width:16px;height:16px}
 .locator-controls{grid-area:2/2;display:grid;gap:3px;padding:0 8px 4px}
 .locator-family{margin:0}.locator-mode button{flex:1}
 .locator-chartbar{grid-area:3/2;flex-direction:column;align-items:flex-start;justify-content:center;padding:3px 8px;gap:3px}
 .locator-zoom{align-self:stretch;justify-content:space-between}.locator-zoom button{flex:1}
 .locator-legend{font-size:12px;gap:2px 8px}
 .locator-foot{grid-area:4/2;flex-wrap:wrap;align-items:center;gap:4px;padding:2px 8px}
 .locator-destination{flex:1 1 110px}.locator-destination strong{font-size:16px}.locator-destination small{font-size:12px}
 .locator-go{flex-wrap:wrap;gap:4px}
}
