/* The City map page: the map, its layer switches, what's under the cursor, and the landmark search. */
.cm-wrap { position: relative; height: min(72vh, 680px); min-height: 380px; border-radius: 16px; overflow: hidden; border: 1px solid var(--card-line); background: #17191d; touch-action: none; }
.cm-wrap canvas { display: block; width: 100%; height: 100%; cursor: grab; }
.cm-wrap canvas.dragging { cursor: grabbing; }
.cm-zoom { position: absolute; right: 10px; top: 10px; display: flex; flex-direction: column; gap: 6px; }
.cm-zoom button { width: 38px; height: 38px; border-radius: 10px; border: 1px solid rgba(238,243,231,.25); background: rgba(5,11,9,.75); color: var(--paper); font: 800 18px var(--body); cursor: pointer; }
.cm-zoom button:hover { border-color: var(--lime); }
.cm-scale { position: absolute; left: 10px; bottom: 8px; font: 12px ui-monospace, monospace; color: #cfd8d2; background: rgba(5,11,9,.6); padding: 3px 8px; border-radius: 8px; }
.cm-loading { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); pointer-events: none; }
.cm-layers { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 14px 0; font-size: 14px; }
.cm-layers label { display: inline-flex; align-items: center; gap: 7px; cursor: pointer; }
.cm-layers i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.cm-key { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12.5px; color: var(--muted); margin: -4px 0 14px; }
.cm-key i { width: 10px; height: 10px; border-radius: 2px; display: inline-block; margin-right: 5px; vertical-align: -1px; }
.cm-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.cm-box { border: 1px solid var(--card-line); border-radius: 14px; background: var(--card); padding: 12px 14px; min-height: 120px; }
.cm-box h3 { margin: 0 0 8px; font-size: 15px; }
.cm-box dl { display: grid; grid-template-columns: auto 1fr; gap: 3px 12px; margin: 0; font-size: 14px; }
.cm-box dt { color: var(--muted); }
.cm-box dd { margin: 0; }
.cm-xyz { font: 700 13px ui-monospace, monospace; color: var(--lime); margin-bottom: 6px; }
.cm-sign { white-space: pre-line; font: 12.5px ui-monospace, monospace; background: rgba(0,0,0,.25); border-radius: 8px; padding: 4px 8px; margin: 2px 0; }
.cm-box input { width: 100%; height: 38px; border-radius: 10px; border: 1px solid rgba(238,243,231,.22); background: rgba(5,11,9,.5); color: var(--paper); padding: 0 12px; font: 500 14px var(--body); }
.cm-results { list-style: none; margin: 8px 0 0; padding: 0; max-height: 260px; overflow-y: auto; }
.cm-results button { width: 100%; text-align: left; border: 0; background: transparent; color: var(--paper); padding: 6px 8px; border-radius: 8px; cursor: pointer; font: 500 13.5px var(--body); }
.cm-results button:hover, .cm-results button[aria-current] { background: rgba(201,245,91,.12); }
.cm-results small { display: block; color: var(--dim); font: 11px ui-monospace, monospace; }
.cm-count { font-size: 12px; color: var(--dim); margin-top: 6px; }
@media (max-width: 720px) { .cm-grid { grid-template-columns: minmax(0, 1fr); } }
