/* ============================================================
   خريطة الرحلة الموحّدة («trmap») — انظر trip-map.js
   ============================================================ */
.trmap{display:grid;gap:10px;min-width:0}
.trmap-canvas{position:relative;height:360px;border-radius:14px;overflow:hidden;border:1px solid var(--border-soft);background:var(--surface-2);transition:height .25s cubic-bezier(.16,1,.3,1)}
.trmap.big .trmap-canvas{height:min(72vh,720px)}
.trmap-msg{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;gap:8px;padding:20px;text-align:center;font-size:12.5px;color:var(--muted)}
.trmap-msg svg{width:16px;height:16px;flex:none;color:var(--warn)}

/* العلامات المرقّمة */
.trmap-pin{display:flex;align-items:center;gap:5px;pointer-events:auto;white-space:nowrap;filter:drop-shadow(0 2px 5px rgba(20,8,40,.35))}
.trmap-pin b{width:22px;height:22px;border-radius:50%;display:grid;place-items:center;font:800 11px var(--fdisplay,inherit);color:#fff;border:2px solid #fff;flex:none}
.trmap-pin span{display:inline-flex;align-items:center;gap:5px;background:#fff;color:#241733;font-size:11px;font-weight:700;padding:2px 8px;border-radius:999px;border:1px solid rgba(0,0,0,.08)}
.trmap-pin small{font-size:10px;font-weight:700;color:#7c4dbd;direction:ltr}
.trmap-pin.k-approach b{background:#e08a1e}
.trmap-pin.k-pickup b{background:#1f9d6b}
.trmap-pin.k-trip b{background:#7c4dbd}
.trmap-pin.k-end b{background:#c2345a}
.trmap-pin.k-dropoff b{background:#2f7fe0}
.trmap.no-labels .trmap-pin span{display:none}
.trmap-car{width:18px;height:18px;border-radius:50%;background:#fff;border:4px solid #e08a1e;box-shadow:0 0 0 4px rgba(224,138,30,.25)}
.trmap-car.in-trip{border-color:#7c4dbd;box-shadow:0 0 0 4px rgba(124,77,189,.25)}

/* لوحة الطبقات */
.trmap-layers{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:7px}
.trmap-lyr{display:flex;align-items:center;gap:9px;padding:8px 10px;border-radius:11px;border:1px solid var(--border);background:var(--surface);color:var(--text);cursor:pointer;text-align:start;font:inherit;transition:.15s;opacity:.55}
.trmap-lyr.on{opacity:1;border-color:color-mix(in srgb,var(--primary) 40%,var(--border));background:color-mix(in srgb,var(--primary) 5%,var(--surface))}
.trmap-lyr.na{cursor:default;opacity:.4}
.trmap-lyr b{display:block;font-size:12px;font-weight:700}
.trmap-lyr small{display:block;font-size:11px;color:var(--muted);margin-top:1px}
.trmap-lyr .sw{flex:none;width:26px;height:0;border-top:4px solid var(--c);border-radius:3px}
.trmap-lyr .sw.s-dashed{border-top-style:dashed;border-top-width:3px}
.trmap-lyr .sw.s-dots,.trmap-lyr .sw.s-dotted{border-top-style:dotted;border-top-width:4px}
.trmap-dev{display:flex;gap:8px;align-items:flex-start;padding:8px 11px;border-radius:11px;font-size:12px;line-height:1.7;border:1px solid}
.trmap-dev svg{width:15px;height:15px;flex:none;margin-top:3px}
.trmap-dev small{color:var(--muted)}
.trmap-dev.good{background:var(--good-bg);border-color:var(--good-line);color:var(--text)}.trmap-dev.good svg{color:var(--good)}
.trmap-dev.crit{background:var(--crit-bg);border-color:var(--crit-line);color:var(--text)}.trmap-dev.crit svg{color:var(--crit)}
.trmap-tools{display:flex;flex-wrap:wrap;align-items:center;gap:6px}
.trmap-tools .act{display:inline-flex;align-items:center;gap:6px;white-space:nowrap}
.trmap-tools .act svg{width:13px;height:13px}
.trmap-note{font-size:11.5px;color:var(--muted);margin-inline-start:auto}
@media(max-width:700px){.trmap-canvas{height:280px}.trmap-note{margin-inline-start:0}}
