/* Campus map maker (/gifts/campus/): on top of the shared maker look (/gifts/globes/maker.css). */

.cm [hidden] { display: none !important; }
.cm .wm-seg button { padding: 6px 8px; white-space: normal; line-height: 1.25; }
.cm-chips, .cm-pairs, .cm-mono { margin-top: 10px; }
.cm-chips .wm-chip, .cm-pairs .wm-chip, .cm-mono .wm-chip { font-size: 0.76rem; padding: 5px 10px; }
.cm-pairs .wm-chip i, .cm-mono .wm-chip i { display: inline-block; width: 11px; height: 11px; border-radius: 3px; margin-right: 3px; vertical-align: -1px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2); }

/* the map: the window to print, its handle, the campus outline */
.cm .cm-mapwrap { max-width: none; position: relative; margin-top: 10px; }
.cm .cm-map { aspect-ratio: 1; }
.cm-map.cm-picking .maplibregl-canvas { cursor: crosshair; }
.cm-handle {
    width: 26px; height: 26px; border-radius: 50%; border: 2px solid #fff; background: #e3b04b; cursor: grab; padding: 0;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.5); display: grid; place-items: center; color: #1d2320; font-size: 15px;
}
.cm-handle:active { cursor: grabbing; }
.cm-star { color: #e34b4b; font-size: 26px; text-shadow: 0 0 3px #fff, 0 1px 4px rgba(0, 0, 0, 0.5); pointer-events: none; line-height: 1; }
.cm-pickbar {
    position: absolute; left: 50%; top: 10px; transform: translateX(-50%); z-index: 3; border: 0; border-radius: 999px;
    background: rgba(20, 23, 22, 0.88); color: var(--ink); font: inherit; font-size: 0.8rem; padding: 6px 12px; cursor: pointer; white-space: nowrap;
}
.cm-camprow { display: flex; align-items: center; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.cm-campus { flex: 1 1 160px; margin: 0; font-size: 0.82rem; color: var(--muted); line-height: 1.4; }
.cm-campus b { color: var(--ink); font-weight: 600; }

.cm-turn, .cm-starbtns { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.cm-turn .wm-btn { flex: 1 1 0; justify-content: center; }
.cm-starbtns .wm-btn { flex: 1 1 auto; justify-content: center; }
.cm-starbtns .wm-btn[aria-pressed="true"] { box-shadow: inset 0 0 0 1.5px var(--gold); }
.cm-first { margin-top: 0; }
#cmMineRow { margin-top: 10px; }
.cm .wm-check-inline { display: flex; gap: 8px; align-items: center; margin-top: 10px; font-size: 0.86rem; cursor: pointer; }
.cm .wm-check-inline input { accent-color: var(--gold); }
.cm-asp { margin-top: 8px; }
.cm .wm-field + .wm-seg { margin-top: 12px; }

/* school colours */
.cm-school { margin-top: 12px; }
.cm-pickers { display: flex; gap: 10px; flex-wrap: wrap; }
.cm-col { display: flex; align-items: center; gap: 8px; font-size: 0.82rem; cursor: pointer; background: var(--field); border-radius: 8px; padding: 5px 10px 5px 5px; }
.cm-col input { width: 30px; height: 26px; border: 0; padding: 0; background: none; cursor: pointer; }

/* the filaments in use */
.cm-swatches { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 0.78rem; color: var(--muted); }
.cm-swatches li { display: flex; align-items: center; gap: 6px; }
.cm-swatches i { width: 14px; height: 14px; border-radius: 4px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18); }

.cm-warn { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.cm-warn:empty { display: none; }
.cm-warn li { font-size: 0.78rem; line-height: 1.4; color: #f3d38a; background: rgba(217, 177, 74, 0.1); border-radius: 8px; padding: 7px 9px; }

@media (max-width: 560px) {
    .cm .wm-stagebar .wm-btn span { display: none; }
}
