/* Shared floating radius selector, no extra header height. */
.rpmx-nearby-menu[hidden]{display:none!important}
.rpmx-nearby-menu{
  position:fixed;z-index:10000;box-sizing:border-box;max-width:calc(100vw - 24px);
  background:#fff;color:#17273b;border:1px solid rgba(22,34,54,.17);
  box-shadow:0 10px 35px rgba(12,28,45,.19);padding:12px;border-radius:14px;
  font:500 12px/1.3 system-ui,-apple-system,sans-serif;
}
.rpmx-nearby-menu__title{display:block;font-size:13px;margin-bottom:10px}
.rpmx-nearby-menu__choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
.rpmx-nearby-menu__choices button{background:#f2f5f8;border:1px solid #d6e1e8;border-radius:9px;min-height:38px;padding:7px 4px;color:#1c3247;white-space:nowrap;font:700 12px/1.2 system-ui;cursor:pointer}
.rpmx-nearby-menu__choices button[aria-pressed="true"]{background:#dcecf9;border-color:#3579a6;color:#113a59}
.rpmx-nearby-menu__foot{display:flex;justify-content:space-between;align-items:center;margin-top:10px;color:#657688;font-size:10px;gap:5px}
.rpmx-nearby-menu__foot button{background:transparent;color:#315d80;border:0;padding:5px;cursor:pointer;text-decoration:underline;font-size:11px}
.rpmx-explore-near{display:none}
body.rpmx-explore-body.rpmx-explore-near-ready .rpmx-explore-near{
 display:inline-flex;align-items:center;justify-content:center;
 border:1px solid #ccd9e3;border-radius:999px;background:#f1f5f9;color:#20394f;
 padding:8px 10px;min-height:34px;white-space:nowrap;cursor:pointer;
 font:700 11px/1.2 system-ui;gap:4px;flex:none;
}
body.rpmx-explore-body .rpmx-explore-near[aria-pressed="true"]{background:#dcecf9;border-color:#3579a6;color:#143e60}
.rpmx-explore-near-status{display:none;font-size:10.5px;color:#667085;margin:3px 0 0}
.rpmx-explore-near-status:not([hidden]){display:block}
@media(max-width:599px){
 body.rpmx-explore-body.rpmx-explore-near-ready .rpmx-explore-near{padding:6px 8px;min-height:33px;font-size:10.5px}
 body.rpmx-explore-body .rpmx-explore-filter-row{gap:5px}
 body.rpmx-explore-body .rpmx-explore-filter-row .rpmx-explore-intents{gap:4px}
}

/* Only visible when the device reports a location accuracy too coarse. */
.rpmx-nearby-retry{display:inline-flex;align-items:center;margin:6px 4px 1px 0;padding:5px 9px;border:1px solid #a7bccc;border-radius:8px;background:#eef5fa;color:#1d4b6c;font:700 11px/1.3 system-ui,-apple-system,sans-serif;cursor:pointer;white-space:nowrap}
.rpmx-nearby-retry[disabled]{opacity:.65;cursor:progress}


/* Transient manual point picker. No permanent header or map space. */
.rpmx-nearby-point-overlay{
  position:fixed;inset:0;z-index:100000;
  display:flex;align-items:center;justify-content:center;
  padding:16px;box-sizing:border-box;background:rgba(13,28,43,.55);
}
.rpmx-nearby-point-dialog{
  width:min(550px,100%);max-height:calc(100dvh - 32px);
  display:flex;flex-direction:column;gap:9px;
  padding:14px;box-sizing:border-box;background:#fff;color:#162a3c;
  border-radius:16px;box-shadow:0 18px 65px rgba(0,0,0,.25);
  font:400 12px/1.45 system-ui,-apple-system,sans-serif;
}
.rpmx-nearby-point-heading{display:flex;align-items:center;justify-content:space-between;gap:10px}
.rpmx-nearby-point-heading strong{font-size:17px;font-weight:750}
.rpmx-nearby-point-heading button{border:0;background:transparent;color:#24394e;font-size:25px;cursor:pointer;line-height:1;padding:5px}
.rpmx-nearby-point-dialog p{margin:0;color:#5e6d7a;line-height:1.4}
.rpmx-nearby-point-map{min-height:230px;height:min(47dvh,370px);width:100%;border:1px solid #d2dae1;border-radius:10px;overflow:hidden;isolation:isolate}
.rpmx-nearby-point-actions{display:flex;justify-content:flex-end;align-items:center;gap:8px}
.rpmx-nearby-point-actions button{border-radius:8px;padding:10px 13px;min-height:39px;cursor:pointer;font:700 12px system-ui}
.rpmx-nearby-point-actions [data-cancel]{background:#f4f6f8;border:1px solid #d1dbe3;color:#28435c}
.rpmx-nearby-point-actions [data-confirm]{background:#234c70;border:1px solid #234c70;color:#fff}
.rpmx-nearby-point-actions [data-confirm]:disabled{opacity:.5;cursor:not-allowed}
@media(max-height:550px){.rpmx-nearby-point-map{height:190px;min-height:170px}}

/* Three progressive, positive proximity levels. Distances remain explicit. */
.rpmx-nearby-menu__title{font-size:13px;margin-bottom:11px;line-height:1.3}
.rpmx-nearby-menu__choices{gap:7px}
.rpmx-nearby-menu__choices button{
 display:flex;flex-direction:column;justify-content:center;align-items:center;
 min-height:85px;gap:5px;white-space:normal;line-height:1.2;
 padding:9px 3px;position:relative;
 transition:background-color .15s ease,border-color .15s ease;
}
.rpmx-nearby-menu__choices button:focus-visible{outline:2px solid #1d6490;outline-offset:2px}
.rpmx-nearby-menu__choices button[aria-pressed="true"]{background:#e1eff8;border-color:#347ca7;box-shadow:0 0 0 1px #347ca7 inset}
.rpmx-nearby-tier__dots{display:inline-flex;align-items:center;justify-content:center;gap:3px;min-height:10px}
.rpmx-nearby-tier__dot{display:block;width:7px;height:7px;border-radius:50%;background:#5484a5}
.rpmx-nearby-menu__choices button[aria-pressed="true"] .rpmx-nearby-tier__dot{background:#146591}
.rpmx-nearby-tier__name{font-weight:750;font-size:11px;letter-spacing:-.015em;text-align:center}
.rpmx-nearby-tier__distance{font-size:10px;font-weight:550;color:#64758a;font-variant-numeric:tabular-nums}
.rpmx-nearby-menu__choices button[aria-pressed="true"] .rpmx-nearby-tier__distance{color:#2d647f}
@media(max-width:370px){.rpmx-nearby-menu__choices{gap:4px}.rpmx-nearby-tier__name{font-size:10px}.rpmx-nearby-menu__choices button{padding:7px 2px}}
@media(prefers-reduced-motion:reduce){.rpmx-nearby-menu__choices button{transition:none}}
