/* Property markers on the web map (docs/design-property-markers.html, brief docs/plans/briefs/PROPERTY-MARKERS.md).
   Code: propertymarkers.js. Standards: WCAG 2.2 (1.4.1 colour + icon, 1.4.3 text 4.5:1, 1.4.11 edge 3:1, 2.5.8 target size, 2.1.1 keyboard). */
#rpm-layer{position:absolute;left:0;top:0;width:0;height:0;z-index:2;pointer-events:none}
#rpm-layer[hidden]{display:none}
/* The button is the touch area: at least 44 x 44 px (the visible pill is 32 px high). Only the box grows; the pill is drawn inside it. */
.rpm{--c:#e11d48;--tint:#eef3f6;--bg:#fff;--fg:#14202b;position:absolute;left:0;top:0;min-width:44px;height:44px;margin:0;padding:0;border:0;background:none;
  display:flex;align-items:center;justify-content:center;pointer-events:auto;cursor:pointer;font:inherit;color:var(--fg);-webkit-tap-highlight-color:transparent}
[data-theme=dark] .rpm{--tint:#22303c;--bg:#14202b;--fg:#f1f5f9}
.rpm:focus{outline:none}
.rpm-pill{position:relative;display:flex;align-items:center;gap:4px;height:32px;padding:0 10px 0 5px;border-radius:16px;box-sizing:border-box;background:var(--bg);color:var(--fg);
  border:2px solid var(--c);font:700 14px/1 system-ui,-apple-system,"Segoe UI",sans-serif;white-space:nowrap;box-shadow:0 1px 4px #0004;transform-origin:50% 100%}
/* the tail: a square turned 45 degrees; its tip is the exact spot, the dot of the map sits at the tip */
.rpm-pill:after{content:"";position:absolute;left:50%;bottom:-7px;width:10px;height:10px;background:inherit;border:2px solid var(--c);border-top:0;border-left:0;box-sizing:border-box;transform:translateX(-50%) rotate(45deg)}
.rpm-ic{width:22px;height:22px;flex:none;border-radius:50%;background:var(--c);color:#fff;display:grid;place-items:center}
.rpm-ic svg{width:14px;height:14px;display:block;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.rpm-heart{width:14px;height:14px;flex:none;fill:var(--c);margin-inline-start:-2px}
.rpm-n{min-width:18px;height:18px;padding:0 5px;border-radius:9px;box-sizing:border-box;background:var(--c);color:#fff;font-size:12px;line-height:18px;text-align:center}
/* states */
.rpm:hover .rpm-pill,.rpm:focus-visible .rpm-pill{background:var(--tint)}
.rpm:focus-visible .rpm-pill{box-shadow:0 0 0 3px var(--focus,#0b6e6e),0 1px 4px #0004}
.rpm.sel{z-index:5}
.rpm.sel .rpm-pill{background:var(--c);color:#fff;transform:scale(1.15)}
.rpm.sel .rpm-ic{background:#fff;color:var(--c)}
.rpm.sel .rpm-n{background:#fff;color:var(--c)}
.rpm.sel .rpm-heart{fill:#fff}
.rpm.vis .rpm-pill{color:#5b6773;background:#eef1f3}
[data-theme=dark] .rpm.vis .rpm-pill{color:#9aa7b2;background:#1b2731}
.rpm.sav .rpm-pill{border-width:3px}
.rpm.off .rpm-pill{border-style:dashed;border-color:#9ca3af;color:#5b6773;background:#f5f5f5}
[data-theme=dark] .rpm.off .rpm-pill{color:#b4bec7;background:#1b2731}
.rpm.off .rpm-pill:after{border-style:dashed;border-color:#9ca3af}
.rpm.off .rpm-ic{background:#6b7480}
/* preview card on hover or Tab focus (computers only; Esc closes) */
#rpm-card{position:absolute;z-index:7;width:210px;box-sizing:border-box;padding:8px 10px;border-radius:10px;background:var(--panel,#fff);color:var(--ink,#14202b);box-shadow:0 4px 16px #0004;
  font:13px/1.35 system-ui,sans-serif;display:flex;flex-direction:column;gap:3px;pointer-events:none}
#rpm-card[hidden]{display:none}
#rpm-card b{font-size:18px}
#rpm-card span{color:var(--mute,#5b6773)}
@media (max-width:700px){#rpm-card{display:none}}
@media (prefers-reduced-motion:no-preference){.rpm-pill{transition:transform .12s ease,background-color .12s ease}}
@media (forced-colors:active){.rpm-pill{border-color:CanvasText;forced-color-adjust:none}}
