/* Price pins, drawn like the app's (components/PricePin.tsx). Shared by the
   price map (index.html) and the pricing desk (market/index.html). */
.pin-at { position: relative; width: 0; height: 0; }
/* As in the app (components/PricePin.tsx): price chip on a white brand plate,
   and the plate's point stands ON the servo's coordinate. The anchor box is
   zero-size at the coordinate and the pin hangs centred above it. Pins used to
   sit ~28px left and ~45px above their servo, which at country zoom put
   Tasmania's prices on Melbourne. */
.pin-at > .pin { position: absolute; left: 0; bottom: 0; transform: translateX(-50%); }
.pin { position: relative; display: flex; flex-direction: column; align-items: center; cursor: pointer; }
.pin .bubble {
  font: 800 12.5px/1 "Bricolage Grotesque", ui-sans-serif, sans-serif; letter-spacing: -.02em;
  padding: 3px 5px; border-radius: 6px; white-space: nowrap; position: relative; z-index: 1;
  box-shadow: 0 1px 4px rgb(0 0 0 / .28);
  opacity: 0; transform: scale(.95); animation: pinIn 200ms var(--ease-out) forwards;
}
.pin .tail {
  width: 0; height: 0; margin-top: -1px;
  border-left: 5px solid transparent; border-right: 5px solid transparent;
  opacity: 0; animation: pinIn 200ms var(--ease-out) forwards;
}
@keyframes pinIn { to { opacity: 1; transform: scale(1); } }
.t-cheap .bubble { background: var(--tier-cheap); color: var(--tier-cheap-ink); }
.t-cheap .tail { border-top: 6px solid var(--tier-cheap); }
.t-mid .bubble { background: var(--tier-mid); color: var(--tier-mid-ink); }
.t-mid .tail { border-top: 6px solid var(--tier-mid); }
.t-dear .bubble { background: var(--tier-dear); color: var(--tier-dear-ink); }
.t-dear .tail { border-top: 6px solid var(--tier-dear); }
/* An old price (unchanged for over 30 days): grey, tagged "Old", never a tier colour. */
.t-old .bubble { background: #E5E7EB; color: #4B5563; }
.t-old .tail { border-top: 6px solid #E5E7EB; }
.pin.t-old .tag { background: #4B5563; color: #fff; }
.t-ev .bubble { background: var(--brand); color: #fff; }
.t-ev .tail { border-top: 6px solid var(--brand); }
.t-ev.off .bubble { background: var(--ink-faint); }
.t-ev.off .tail { border-top-color: var(--ink-faint); }
.me-dot { width: 16px; height: 16px; border-radius: 50%; background: #2f7bf6; border: 3px solid #fff; box-shadow: 0 1px 4px rgb(0 0 0 / .35); }
/* The brand plate under the chip: the logo uncropped at its own shape (a
   square mark or a wide wordmark), else the brand's name, else a pump. */
.pin .plate {
  display: grid; place-items: center; box-sizing: border-box;
  height: 24px; min-width: 26px; max-width: 50px; margin-top: -2px; padding: 3px 4px;
  background: #fff; border-radius: 6px; border: 1px solid rgb(0 0 0 / .14);
  box-shadow: 0 1px 4px rgb(0 0 0 / .28);
  opacity: 0; animation: pinIn 200ms var(--ease-out) 40ms forwards;
}
.pin .plate img { display: block; height: 16px; width: auto; max-width: 42px; object-fit: contain; }
.pin .plate.wm { font: 800 8.5px/1 "Bricolage Grotesque", ui-sans-serif, sans-serif; letter-spacing: .02em;
  color: #1f2a24; white-space: nowrap; padding: 3px 4px; }
.pin .plate.ind { color: #4b5563; }
/* The point: white, from the plate down to the servo. */
.pin .point { width: 0; height: 0; margin-top: -1px; border-left: 5px solid transparent; border-right: 5px solid transparent;
  border-top: 6px solid #fff; filter: drop-shadow(0 1px 1px rgb(0 0 0 / .25));
  opacity: 0; animation: pinIn 200ms var(--ease-out) 40ms forwards; }
.pin.sel .bubble { outline: 2.5px solid var(--ink); outline-offset: 2px; }
.pin.sel .plate { border-color: var(--ink); }

/* LMCT+ servos on the pricing desk: ringed and tagged, always on top. */
.pin .tag { font: 800 11px/1 "Bricolage Grotesque", ui-sans-serif, sans-serif; letter-spacing: .02em;
  background: var(--brand-dark); color: #fff; padding: 3px 6px; border-radius: 6px; margin-bottom: 3px; box-shadow: 0 1px 3px rgb(0 0 0 / .25); }
.pin.lmct .bubble { outline: 3px solid var(--brand-dark); outline-offset: 1px; }
@media (prefers-reduced-motion: reduce) { .pin .bubble, .pin .tail, .pin .plate, .pin .point { animation: none; opacity: 1; transform: none; } }
