/* Campus map. */
.cm-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; }
.cm-dot { flex: none; width: .75rem; height: .75rem; border-radius: 3px; display: inline-block; background: #98a2b3; }
.cm-map-wrap { position: relative; border-radius: .75rem; overflow: hidden; border: 1px solid #e3e8ef; }
.cm-map { width: 100%; height: calc(100vh - 260px); min-height: 460px; background: #1d2939; }
.cm-pin { padding: .05rem .4rem; border-radius: 1rem; border: 2px solid #fff; background: #0f7179; color: #fff; font-size: .72rem; font-weight: 700; line-height: 1.4; white-space: nowrap; cursor: pointer; box-shadow: 0 1px 4px rgba(0, 0, 0, .45); direction: ltr; }
.cm-list { list-style: none; margin: 0; padding: 0; max-height: 30vh; overflow-y: auto; font-size: .85rem; }
.cm-list li { display: flex; align-items: center; gap: .45rem; padding: .3rem .25rem; border-bottom: 1px solid #f2f4f7; }
.cm-list li.is-link { cursor: pointer; }
.cm-list li.is-link:hover { background: #f2f7f7; }
.cm-pop { font-family: inherit; text-align: start; min-width: 230px; }
.cm-pop-title { font-weight: 700; font-size: .95rem; margin-bottom: .25rem; padding-inline-end: 1rem; }
.cm-pop-state { display: flex; align-items: center; gap: .35rem; font-size: .85rem; color: #344054; }
.cm-pop-links { display: flex; flex-wrap: wrap; gap: .3rem; }
.maplibregl-popup-close-button { font-size: 1.1rem; padding: 0 .4rem; }
/* Places and the editor's points. */
.cm-poi { width: 1.55rem; height: 1.55rem; border-radius: 50%; border: 2px solid #fff; background: #7a5af8; color: #fff; font-size: .8rem; display: grid; place-items: center; padding: 0; cursor: pointer; box-shadow: 0 1px 4px rgba(0, 0, 0, .35); }
.cm-poi-10 { background: #0f7179; border-radius: .35rem; }
.cm-poi-closed { background: #d92d20; }
.cm-poi-14 { background: #344054; border-radius: .35rem; }
.cm-poi-15 { background: #175cd3; }
.cm-poi-11 { background: #475467; width: 1.2rem; height: 1.2rem; font-size: .65rem; }
.cm-far .cm-poi { display: none; }
.cm-editing .cm-far .cm-poi, .cm-editing.cm-far .cm-poi { display: grid; }
.cm-vertex { width: .9rem; height: .9rem; border-radius: 50%; background: #fff; border: 3px solid #7a5af8; cursor: grab; box-shadow: 0 1px 3px rgba(0, 0, 0, .4); }
.cm-vertex.cm-mid { width: .55rem; height: .55rem; border-width: 2px; opacity: .75; cursor: copy; }
.cm-add .dropdown-item i { width: 1.4rem; display: inline-block; color: var(--bs-primary); }
.cm-toolbar .form-check-input { cursor: pointer; }
/* While editing, building pins let clicks through; while drawing, places do too. */
.cm-editing .cm-pin { pointer-events: none; opacity: .55; }
.cm-drawing .cm-poi { pointer-events: none; }
/* Zoomed out: pins shrink to dots so they do not pile up. */
.cm-far .cm-pin { font-size: 0; padding: .28rem; line-height: 0; border-width: 1.5px; }
/* Names: the pin shows the building number, and its name too when zoomed in. */
.cm-pin b { font-weight: 700; }
.cm-pin-name { display: none; max-width: 11rem; overflow: hidden; text-overflow: ellipsis; vertical-align: bottom; font-weight: 600; direction: rtl; unicode-bidi: plaintext; }
.cm-pin-named .cm-pin-name { display: inline-block; max-width: 7rem; }
.cm-near .cm-pin-name { display: inline-block; margin-inline-start: .3rem; }
.cm-near .cm-pin-named .cm-pin-name { margin: 0; max-width: 11rem; }
.cm-far .cm-pin-name { display: none !important; }
.cm-label { font-size: .72rem; font-weight: 700; color: #344054; text-shadow: 0 0 3px #fff, 0 0 3px #fff, 0 0 3px #fff; white-space: nowrap; pointer-events: none; unicode-bidi: plaintext; }
.cm-sign { width: 1.15rem; height: 1.15rem; border-radius: .3rem; display: grid; place-items: center; font-size: .7rem; font-weight: 800; color: #fff; pointer-events: none; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); }
.cm-sign-p { background: #3b82f6; }
.cm-sign-p-visitors { background: #dc6803; }
.cm-sign-p-students { background: #099250; }
.cm-sign-p-staff { background: #6941c6; }
.cm-sign-p-accessible { background: #175cd3; }
.cm-sign-p-reserved { background: #667085; }
.cm-sign-p-bus { background: #0e9384; }
.cm-sign-mosque { background: #0f7179; border-radius: 50%; }
.cm-road-name { font-weight: 600; font-size: .68rem; color: #667085; }
.cm-far .cm-label:not(.cm-road-name), .cm-far .cm-sign { display: none; }
.cm-hide-places .cm-poi, .cm-hide-places .cm-sign-mosque { display: none !important; }
.cm-hide-parking .cm-sign-p { display: none !important; }
.cm-hide-labels .cm-pin, .cm-hide-labels .cm-label { display: none !important; }
/* Layers menu and the editor's colour key. */
.cm-layers { min-width: 14rem; }
.cm-sw { flex: none; width: 1.4rem; height: .8rem; border-radius: 3px; border: 1px solid #d0d5dd; }
.cm-sw-road { background: #fff; border-color: #cdc6b8; }
.cm-sw-path { background: repeating-linear-gradient(90deg, #c2a17a 0 5px, transparent 5px 8px); border: 0; height: .2rem; }
.cm-sw-parking { background: #e3e6ec; }
.cm-sw-green { background: #cfe8c3; border-color: #8cc682; }
.cm-sw-place { background: #7a5af8; border: 0; width: .8rem; border-radius: 50%; }
.cm-sw-label { background: #0f7179; border: 0; border-radius: 1rem; }
.cm-edit-legend { display: flex; flex-wrap: wrap; gap: .25rem .7rem; }
.cm-edit-legend > span { display: inline-flex; align-items: center; gap: .3rem; }
.cm-map-wrap:fullscreen .cm-map { height: 100vh; }
@media (max-width: 991.98px) { .cm-map { height: 62vh; min-height: 380px; } }
/* Directions: the two ends, the summary and the steps. */
.cm-dir-row { display: flex; align-items: center; gap: .3rem; margin-bottom: .35rem; }
.cm-dir-row .form-control { min-width: 0; }
.cm-dir-dot { flex: none; width: .8rem; height: .8rem; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px #98a2b3; }
.cm-dir-a { background: #12b76a; } .cm-dir-b { background: #e04f16; }
.cm-dir-result { margin-top: .6rem; }
.cm-dir-sum { font-size: .95rem; margin-bottom: .35rem; }
.cm-dir-sum b { color: #1570ef; font-size: 1.1rem; }
.cm-steps { list-style: none; margin: 0 0 .5rem; padding: 0; max-height: 32vh; overflow-y: auto; font-size: .85rem; }
.cm-steps li { display: flex; align-items: flex-start; gap: .45rem; padding: .35rem .25rem; border-bottom: 1px solid #f2f4f7; cursor: pointer; }
.cm-steps li:hover { background: #f2f7f7; }
.cm-steps li > i { flex: none; color: #1570ef; font-size: 1rem; line-height: 1.3; }
.cm-steps li > span { flex: 1 1 auto; }
.cm-steps li > small { flex: none; color: #667085; white-space: nowrap; }
.cm-dir-pin { width: 1.25rem; height: 1.25rem; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 1px 5px rgba(0, 0, 0, .5); pointer-events: none; }
.cm-editing .cm-dir-pin { display: none; }
.cm-pop-dir { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .4rem; }
/* Panel headings. */
.cm-title { display: flex; align-items: center; gap: .4rem; margin: 0 0 .5rem; padding-bottom: .5rem; border-bottom: 1px solid #eef1f5; font-size: .95rem; font-weight: 700; color: #0f7179; }
/* Moving a whole shape, cutting one in two, and the live recording bar. */
.cm-vertex.cm-move { width: 1.7rem; height: 1.7rem; border-color: #0f7179; color: #0f7179; display: grid; place-items: center; font-size: .9rem; cursor: move; }
.cm-vertex.cm-cut { border-color: #d92d20; cursor: crosshair; pointer-events: none; }
.cm-rec { position: absolute; inset-inline: .6rem; bottom: 2.4rem; z-index: 5; max-width: 30rem; margin-inline: auto; display: flex; align-items: center; gap: .5rem; padding: .45rem .6rem; border-radius: .75rem; background: rgba(16, 24, 40, .92); color: #fff; box-shadow: 0 4px 14px rgba(0, 0, 0, .35); }
.cm-rec-dot { flex: none; width: .8rem; height: .8rem; border-radius: 50%; background: #f04438; animation: cm-blink 1.2s infinite; }
.cm-rec.is-paused .cm-rec-dot { animation: none; background: #98a2b3; }
.cm-rec-info { flex: 1 1 auto; min-width: 0; cursor: pointer; line-height: 1.25; }
.cm-rec-info b { display: block; font-size: 1.05rem; text-align: start; }
.cm-rec-info small { display: block; opacity: .8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@keyframes cm-blink { 50% { opacity: .25; } }
.cm-rec-me { width: 1.1rem; height: 1.1rem; border-radius: 50%; background: #1570ef; border: 3px solid #fff; box-shadow: 0 0 0 .35rem rgba(21, 112, 239, .25); }
.cm-rec-on [data-edit-start] > *:not(.cm-title) { pointer-events: none; opacity: .5; }

/* Rooms drawn inside buildings: their names when zoomed right in, and the floor buttons on the map. */
.cm-room { display: none; padding: 0 .25rem; border-radius: .25rem; background: rgba(255, 255, 255, .85); color: #1d2939; font-size: .68rem; font-weight: 700; white-space: nowrap; pointer-events: none; }
.cm-rooms-on .cm-room { display: block; }
.cm-floors { position: absolute; z-index: 5; right: .6rem; top: 3.4rem; display: flex; flex-direction: column; border-radius: .6rem; overflow: hidden; background: #fff; box-shadow: 0 2px 8px rgba(16, 24, 40, .25); }
.cm-floors button { min-width: 2.6rem; min-height: 2.2rem; padding: .2rem .5rem; border: 0; background: #fff; color: #344054; font-size: .8rem; font-weight: 700; }
.cm-floors button + button { border-top: 1px solid #eaecf0; }
.cm-floors button.is-on { background: #0f7179; color: #fff; }
.cm-floors button:focus-visible { outline: 3px solid #0f7179; outline-offset: -3px; }
