/*! Campus Map Kit v1.0.0 — all classes are prefixed with .cmk to avoid clashes. Theme via CSS variables. */
.cmk {
    --cmk-primary: #1e7b2f;
    --cmk-accent: #00639a;
    --cmk-text: #030303;
    --cmk-muted: #555;
    --cmk-soft: #f5fbf6;
    --cmk-panel-bg: rgba(255, 255, 255, .97);
    --cmk-radius: 25px;
    --cmk-shadow: 6px 12px 24px -3px rgba(31, 51, 116, .15);
    --cmk-font: inherit;
    --cmk-panel-width: 340px;

    position: relative;
    /* Own stacking context: MapLibre's layers (the "Ctrl + wheel" hint has
       z-index 99999) stay inside the map and never paint over the sticky
       site header when the map is scrolled under it. */
    z-index: 0;
    isolation: isolate;
    height: 620px;
    min-height: 420px;
    overflow: hidden;
    font-family: var(--cmk-font);
    color: var(--cmk-text);
    background: #F3EEEA;
    border-radius: var(--cmk-radius);
    box-shadow: var(--cmk-shadow);
    box-sizing: border-box;
}
.cmk *, .cmk *::before, .cmk *::after { box-sizing: border-box; }
.cmk .cmk-canvas, .cmk .cmk-canvas.maplibregl-map { position: absolute; inset: 0; }
.cmk:fullscreen { border-radius: 0; }

.cmk-toolbar { position: absolute; top: 12px; left: 56px; z-index: 2; display: flex; gap: 8px; }
.cmk-group { display: flex; overflow: hidden; background: #fff; border-radius: 4px; box-shadow: 0 0 0 2px rgba(0, 0, 0, .1); }
.cmk-group button, .cmk-reset {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 38px; height: 32px; padding: 0 10px; margin: 0;
    font: 700 13px/1 var(--cmk-font); color: var(--cmk-primary);
    background: #fff; border: 0; cursor: pointer;
}
.cmk-group button.is-active { color: #fff; background: var(--cmk-primary); }
.cmk-reset { border-radius: 4px; box-shadow: 0 0 0 2px rgba(0, 0, 0, .1); }

.cmk-panel {
    position: absolute; top: 12px; right: 12px; bottom: 12px; z-index: 2;
    width: var(--cmk-panel-width); overflow-y: auto; padding: 22px 24px;
    background: var(--cmk-panel-bg); border-radius: 18px; box-shadow: var(--cmk-shadow);
}
.cmk-empty-icon { color: var(--cmk-accent); }
.cmk-empty > p { margin: 10px 0 15px; font-size: 15px; line-height: 1.5; }
.cmk-list { margin: 0; padding: 0; list-style: none; }
.cmk-list button {
    display: flex; align-items: center; gap: 10px; width: 100%;
    margin: 0 0 6px; padding: 10px 12px;
    font: 600 14px/1.3 var(--cmk-font); color: var(--cmk-text); text-align: left;
    background: var(--cmk-soft); border: 1px solid transparent; border-radius: 8px; cursor: pointer;
}
.cmk-list button:hover, .cmk-list button.is-active { border-color: var(--cmk-primary); }
.cmk-swatch { flex: 0 0 14px; height: 14px; border-radius: 3px; }

.cmk-body { position: relative; }
.cmk-body h3 { margin: 10px 0 4px; padding-right: 26px; font-size: 21px; font-weight: 700; line-height: 1.25; }
.cmk-body h4 { margin: 16px 0 6px; font-size: 14px; font-weight: 700; color: var(--cmk-accent); }
.cmk-body p, .cmk-body li { margin: 0 0 8px; font-size: 14px; line-height: 1.5; }
.cmk-body ul { margin: 0; padding-left: 18px; }
.cmk-body a { color: var(--cmk-primary); }
.cmk-subtitle { font-weight: 600; color: var(--cmk-primary); }
.cmk-meta { color: var(--cmk-muted); }
.cmk-close { position: absolute; top: -8px; right: -10px; width: 30px; height: 30px; padding: 0; color: var(--cmk-accent); background: none; border: 0; cursor: pointer; }
.cmk-badge { display: inline-block; padding: 3px 10px; font-size: 15px; font-weight: 700; border-radius: 20px; }
.cmk-badge.is-verified { color: #216e39; background: #ebfbee; }
.cmk-badge.is-unverified { color: #8a5a00; background: #fff4db; }
.cmk-message { display: flex; align-items: center; justify-content: center; height: 100%; margin: 0; padding: 20px; text-align: center; }

@media (max-width: 767px) {
    .cmk { height: auto !important; min-height: 0; }
    .cmk .cmk-canvas, .cmk .cmk-canvas.maplibregl-map { position: relative; inset: auto; height: 420px; }
    .cmk-panel { position: static; width: auto; border-radius: 0; box-shadow: none; }
}
