/* Карта курьеров (ADR-0056, lab-map.js): плитки, маркеры, трек, кнопки. */
.zxm { position: relative; width: 100%; height: 100%; min-height: 240px; overflow: hidden; border-radius: 12px; background: #e9e9e4; touch-action: none; user-select: none; -webkit-user-select: none; cursor: grab; }
.zxm.is-drag { cursor: grabbing; }
.zxm-tiles { position: absolute; inset: 0; }
.zxm-tile { position: absolute; left: 0; top: 0; width: 256px; height: 256px; pointer-events: none; }
.zxm.is-dead .zxm-tiles { opacity: .35; }
.zxm-track { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.zxm-track-line { fill: none; stroke: var(--ink, #17181a); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; opacity: .85; }
.zxm-pins { position: absolute; inset: 0; pointer-events: none; }
.zxm-pin { position: absolute; left: 0; top: 0; width: 0; height: 0; border: 0; background: transparent; padding: 0; pointer-events: auto; cursor: pointer; }
.zxm-pin-dot {
  position: absolute; left: -16px; top: -16px; width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center; font: 600 11px/1 var(--font, system-ui); letter-spacing: .02em;
  background: var(--ink, #17181a); color: var(--lime-400, #c6f36d); border: 2px solid #fff; box-shadow: 0 2px 8px rgb(16 24 40 / .3);
}
.zxm-pin.is-stale .zxm-pin-dot { background: var(--gray-500, #8a8f98); color: #fff; }
/* Клиника: серый квадрат с буквой «К» и подписью — не спутать с курьером. */
.zxm-pin.is-place .zxm-pin-dot { left: -13px; top: -13px; width: 26px; height: 26px; border-radius: 6px; background: var(--gray-600, #5f6368); color: #fff; font-size: 12px; }
.zxm-pin.is-place.is-active .zxm-pin-dot { outline: 3px solid var(--ink, #17181a); }
.zxm-pin-name { position: absolute; left: 50%; top: 15px; transform: translateX(-50%); white-space: nowrap; max-width: 160px; overflow: hidden; text-overflow: ellipsis; padding: 1px 6px; border-radius: 6px; background: rgb(255 255 255 / .9); font: 500 11px/1.3 var(--font, system-ui); color: var(--gray-700, #3b3e42); box-shadow: 0 1px 3px rgb(16 24 40 / .15); pointer-events: none; }
.zxm-pin.is-active .zxm-pin-dot { outline: 3px solid var(--lime-400, #c6f36d); outline-offset: 1px; }
.zxm-acc { position: absolute; left: 0; top: 0; transform: translate(-50%, -50%); border-radius: 50%; background: rgb(23 24 26 / .08); border: 1px solid rgb(23 24 26 / .25); pointer-events: none; }
.zxm-ctl { position: absolute; right: 10px; top: 10px; display: flex; flex-direction: column; gap: 6px; }
.zxm-btn { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--gray-200, #e0e0dc); background: #fff; font: 600 18px/1 var(--font, system-ui); color: var(--ink, #17181a); cursor: pointer; box-shadow: 0 1px 3px rgb(16 24 40 / .12); }
.zxm-fit { font-size: 16px; }
.zxm-note { position: absolute; left: 10px; right: 56px; top: 10px; padding: 8px 10px; border-radius: 8px; background: rgb(255 255 255 / .92); font-size: 12.5px; line-height: 1.4; color: var(--gray-700, #3b3e42); }
.zxm-note:empty { display: none; }
.zxm-attr { position: absolute; right: 8px; bottom: 6px; font-size: 10.5px; color: var(--gray-600, #5f6368); background: rgb(255 255 255 / .8); padding: 1px 5px; border-radius: 4px; text-decoration: none; }

/* Панель «Где курьеры» на «Перевозке». */
.trip-map { height: 380px; margin-bottom: 12px; }
.trip-map-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.trip-map-head b { font-size: 0.98rem; }
.trip-map-who { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.trip-who { display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--gray-200, #e0e0dc); background: #fff; font-size: 12.5px; cursor: pointer; }
.trip-who[aria-pressed="true"] { border-color: var(--ink, #17181a); background: var(--ink, #17181a); color: #fff; }
.trip-who .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green-500, #2f9e57); }
.trip-who.is-stale .dot { background: var(--gray-400, #b4b8bf); }
.trip-who.is-silent .dot { background: var(--orange-500, #e07b16); }
.trip-who.is-online .dot { background: var(--orange-500, #e07b16); box-shadow: 0 0 0 2px var(--lime-50, #f1fadf); }
.trip-who small { color: inherit; opacity: .75; }
/* Клиники открытых поездок: чип с адресом; без точки — серый с пометкой. */
.trip-map-places { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.trip-place { display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 3px 10px; border-radius: 8px; border: 1px solid var(--gray-200, #e0e0dc); background: #fff; font-size: 12.5px; cursor: pointer; max-width: 100%; }
.trip-place .sq { flex: none; width: 14px; height: 14px; border-radius: 3px; background: var(--gray-600, #5f6368); color: #fff; font: 600 9px/14px var(--font, system-ui); text-align: center; }
.trip-place.is-unknown { color: var(--gray-600, #5f6368); cursor: default; }
.trip-place.is-unknown .sq { background: var(--gray-300, #cfd2d8); }
.trip-place small { color: inherit; opacity: .75; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 320px; }
.trip-map-empty { padding: 14px 16px; border-radius: 12px; background: #fff; border: 1px solid var(--gray-200, #e0e0dc); font-size: 13.5px; color: var(--gray-700, #3b3e42); margin-bottom: 12px; }
@media (max-width: 760px) { .trip-map { height: 300px; } }
