/* bizmap.css — businesses on the map (bizmap.js + UX.map): logo markers that follow the
   zoom, the small card, and the search / category controls over the map. new-ui-ux tokens. */

/* logo markers: a round badge above the point with a short tail; --mk-s (UX.map) scales it */
.uxmap-mk.logo .pin.lg { left: -23px; top: -58px; width: 46px; height: 46px; border-radius: 50%; transform: none; padding: 0; overflow: visible;
  background: var(--pin, var(--br)); border: 3px solid #fff; box-shadow: 0 6px 16px rgba(15, 31, 58, .32), 0 0 0 1.5px var(--pin, var(--br));
  display: grid; place-items: center; transition: transform .18s ease, box-shadow .18s; }
.uxmap-mk.logo .pin.lg > * { transform: none; }
.uxmap-mk.logo .pin.lg img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; background: #fff; }
.uxmap-mk.logo .pin.lg b { color: #fff; font-size: 19px; font-weight: 800; line-height: 1; }
.uxmap-mk.logo .pin.lg::after { content: ""; position: absolute; left: 50%; bottom: -10px; width: 12px; height: 12px; margin-left: -6px;
  background: #fff; clip-path: polygon(0 0, 100% 0, 50% 100%); }
.uxmap-mk.logo .pin.lg::before { content: ""; position: absolute; left: 50%; bottom: -14px; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%;
  background: var(--pin, var(--br)); box-shadow: 0 0 0 2px #fff; }
.uxmap-mk.logo:hover .pin.lg { transform: translateY(-3px); }
.uxmap-mk.logo.sel { z-index: 2; }
.uxmap-mk.logo.sel .pin.lg { transform: translateY(-4px) scale(1.14); box-shadow: 0 10px 22px rgba(15, 31, 58, .4), 0 0 0 4px color-mix(in srgb, var(--pin, var(--br)) 35%, transparent); }
.uxmap-mk.logo .lbl { top: 6px; font-weight: 700; font-family: inherit; }
.uxmap.z-far .uxmap-mk.logo .lbl { display: none; }
.uxmap-mk.logo .mk-in { transition: transform .22s ease; }

/* the card */
.uxmap-pop { position: absolute; left: 0; top: 0; z-index: 4; width: 280px; max-width: calc(100% - 16px); pointer-events: auto; cursor: default; }
.bzm-card { position: relative; display: grid; gap: 8px; padding: 14px; border-radius: 16px; background: var(--sf); color: var(--ink);
  border: 1px solid var(--ln); box-shadow: 0 18px 40px -12px rgba(15, 31, 58, .45); font-size: 13px; animation: bzmIn .18s ease-out; }
@keyframes bzmIn { from { opacity: 0; transform: translateY(6px) scale(.97); } to { opacity: 1; transform: none; } }
.bzm-x { position: absolute; top: 8px; inset-inline-end: 8px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: var(--s2); color: var(--mu);
  font-size: 16px; line-height: 1; cursor: pointer; }
.bzm-hd { display: flex; align-items: center; gap: 10px; padding-inline-end: 26px; }
.bzm-av { --c: var(--br); flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; overflow: hidden;
  background: var(--c); color: #fff; font-weight: 800; }
.bzm-av.lg { width: 46px; height: 46px; font-size: 18px; box-shadow: 0 0 0 2px var(--sf), 0 0 0 3.5px var(--c); }
.bzm-av img { width: 100%; height: 100%; object-fit: cover; background: #fff; }
.bzm-tx { display: grid; gap: 1px; min-width: 0; }
.bzm-tx b { font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bzm-tx small { color: var(--mu); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bzm-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.bzm-tag { padding: 1px 9px; border-radius: 99px; font-size: 11.5px; font-weight: 700; color: var(--mu); background: var(--s2); }
.bzm-tag.star { color: var(--wn); background: var(--wnb); }
.bzm-tag.ok { color: var(--ok); background: var(--okb); }
.bzm-tag.off { color: var(--mu); }
.bzm-tag.spo { color: var(--br); background: var(--bs); }
.bzm-lines { display: grid; gap: 4px; color: var(--mu); font-size: 12.5px; }
.bzm-lines > div { display: flex; align-items: flex-start; gap: 6px; }
.bzm-lines .ic-svg { flex: none; width: 15px; height: 15px; margin-top: 3px; color: var(--br); }
.bzm-ft { display: flex; align-items: center; gap: 6px; padding-top: 8px; border-top: 1px dashed var(--ln); }
.bzm-price { flex: 1; font-weight: 800; color: var(--ink); font-size: 13px; }
.bzm-price small { color: var(--mu); font-weight: 600; }
.bzm-b { padding: 7px 12px !important; font-size: 12.5px !important; border-radius: 10px !important; box-shadow: none !important; }
.bzm-book { background: var(--ac) !important; border-color: var(--ac) !important; color: #1B1204 !important; font-weight: 800 !important; }

/* controls over the map */
.uxmap-over { position: absolute; top: 10px; right: 10px; left: 54px; z-index: 5; display: flex; gap: 8px; align-items: flex-start; pointer-events: none; }
.uxmap-over > * { pointer-events: auto; }
.bzm-search { position: relative; flex: 1; min-width: 0; max-width: 420px; display: flex; align-items: center; gap: 8px; padding: 0 12px; border-radius: 12px;
  background: color-mix(in srgb, var(--sf) 94%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid var(--ln); box-shadow: 0 8px 22px -10px rgba(15, 31, 58, .35); }
.bzm-search > .ic-svg { flex: none; width: 17px; height: 17px; color: var(--mu); }
.bzm-search input { flex: 1; min-width: 0; padding: 10px 0; border: 0; background: none; color: var(--ink); font: inherit; font-size: 13.5px; outline: none; }
.bzm-search:focus-within { border-color: var(--br); }
.bzm-list, .bzm-cats { position: absolute; top: calc(100% + 6px); right: 0; left: 0; max-height: 300px; overflow-y: auto; padding: 6px; border-radius: 14px;
  background: var(--sf); border: 1px solid var(--ln); box-shadow: 0 18px 40px -14px rgba(15, 31, 58, .45); }
.bzm-list[hidden], .bzm-cats[hidden] { display: none; }
.bzm-hit { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px; border: 0; border-radius: 10px; background: none; color: var(--ink);
  font: inherit; text-align: start; cursor: pointer; }
.bzm-hit:hover, .bzm-hit.act { background: var(--s2); }
.bzm-none { padding: 10px; color: var(--mu); font-size: 12.5px; }
.bzm-catw { position: relative; flex: none; }
.bzm-catb { display: inline-flex; align-items: center; gap: 6px; padding: 9px 12px; border-radius: 12px; border: 1px solid var(--ln); cursor: pointer;
  background: color-mix(in srgb, var(--sf) 94%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: var(--ink);
  font: inherit; font-size: 13px; font-weight: 700; white-space: nowrap; box-shadow: 0 8px 22px -10px rgba(15, 31, 58, .35); }
.bzm-catb .ic-svg { width: 16px; height: 16px; }
.bzm-catb .ic-svg:last-child { width: 13px; height: 13px; opacity: .7; }
.bzm-catb.on { border-color: var(--br); color: var(--br); }
.bzm-cats { left: auto; width: 240px; }
.bzm-cat { display: flex; align-items: center; gap: 10px; width: 100%; padding: 7px 8px; border: 0; border-radius: 10px; background: none; color: var(--ink);
  font: inherit; font-size: 13px; text-align: start; cursor: pointer; }
.bzm-cat:hover, .bzm-cat.on { background: var(--s2); }
.bzm-cat.on { font-weight: 800; }
.bzm-cat i { flex: none; width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; color: var(--c); background: color-mix(in srgb, var(--c) 14%, var(--sf)); }
.bzm-cat i .ic-svg { width: 16px; height: 16px; }
.bzm-cat span { flex: 1; }
.bzm-cat em { font-style: normal; font-size: 11.5px; color: var(--mu); }
@media (max-width: 640px) {
  .uxmap-over { flex-wrap: wrap; }
  .bzm-search { max-width: none; flex-basis: 100%; }
  .bzm-cats { left: auto; right: 0; }
  .uxmap-pop { width: 250px; }
}
@media (prefers-reduced-motion: reduce) { .bzm-card { animation: none; } }
