/* keyboard-nav.css */

/* ── Focused marker ring ────────────────────────────────────────────────── */
.leaflet-marker-icon.kb-focused .marker-circle,
.kb-focused .marker-circle {
  outline: 3px solid #fff;
  outline-offset: 2px;
  box-shadow: 0 0 0 5px rgba(30, 144, 255, 0.55), 0 2px 8px rgba(0,0,0,0.4) !important;
}

/* ── Help overlay backdrop ──────────────────────────────────────────────── */
.kb-help-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 20000;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(3px);
}

/* ── Help box ───────────────────────────────────────────────────────────── */
.kb-help-box {
  background: #0f1724;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 20px 24px;
  min-width: 320px;
  max-width: 90vw;
  box-shadow: 0 12px 40px rgba(0,0,0,0.6);
  color: #e8eaf0;
}

.kb-help-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 14px;
  color: #fff;
}

.kb-help-close {
  background: none;
  border: none;
  color: rgba(255,255,255,0.5);
  font-size: 18px;
  cursor: pointer;
  padding: 0 2px;
  line-height: 1;
  transition: color 0.15s;
}
.kb-help-close:hover { color: #fff; }

/* ── Table ──────────────────────────────────────────────────────────────── */
.kb-help-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.kb-help-table tr + tr td {
  border-top: 1px solid rgba(255,255,255,0.05);
}

.kb-help-table td {
  padding: 6px 4px;
  vertical-align: middle;
}

.kb-help-table td:first-child {
  width: 55%;
  white-space: nowrap;
}

.kb-help-table td:last-child {
  color: rgba(255,255,255,0.65);
  font-size: 12px;
}

/* ── kbd tag ────────────────────────────────────────────────────────────── */
kbd {
  display: inline-block;
  padding: 2px 6px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 4px;
  font-size: 11px;
  font-family: monospace;
  color: #fff;
  margin: 0 2px;
}

/* ── Corner hint button ─────────────────────────────────────────────────── */
.kb-hint-btn {
  position: fixed;
  bottom: 12px;
  left: 70px;           /* clear of the sidebar */
  z-index: 1100;
  background: rgba(15, 23, 36, 0.85);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  width: 34px;
  height: 34px;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.35);
  transition: background 0.15s, transform 0.1s;
  color: #fff;
}
.kb-hint-btn:hover {
  background: rgba(30, 80, 160, 0.9);
  transform: scale(1.08);
}
