/* ── Navigate button ───────────────────────────────────────── */
.map-navigate-btn {
  float: right;
  margin: 0 0 10px 10px;
  padding: 7px 18px;
  border-radius: 6px;
  background: var(--accent);
  color: var(--bg);
  border: none;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,.3);
  transition: background .18s, box-shadow .18s;
}
.map-navigate-btn:hover {
  background: color-mix(in srgb, var(--accent) 80%, black);
  box-shadow: 0 4px 16px rgba(0,0,0,.3);
}

/* ── Navigate modal inputs ─────────────────────────────────── */
.mapnav-input-wrap { position: relative; width: 100%; }

/* ── Navigate route steps ──────────────────────────────────── */
.navigate-step-img {
  max-width: 320px;
  max-height: 180px;
  border-radius: 6px;
  border: 1px solid var(--border);
  display: block;
  background: var(--surface);
}
.navigate-step-img-wrap {
  position: relative;
  display: inline-block;
  margin-bottom: 6px;
}
.navigate-step-destination { color: var(--accent); font-size: 13px; margin-top: 2px; }

/* ── Hide-mobs toggle ──────────────────────────────────────── */
/* Uses shared .hide-toggle / .hide-toggle-check from base.css */
.hide-toggle { margin-left: 10px; }

/* Navigation Modal & Steps */
.navigate-modal {
  /* Overlay tweaks if needed */
}

.navigate-modal-box {
  background: var(--surface);
  border-radius: 14px;
  border: 1.5px solid var(--border);
  box-shadow: 0 8px 32px rgba(80,50,20,0.13);
  padding: 0;
}

.navigate-step {
  background: var(--surface-2);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  margin: 22px 0;
  padding: 18px 18px 14px 18px;
  box-shadow: 0 2px 10px rgba(80,50,20,0.06);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.navigate-step-header {
  font-weight: bold;
  font-size: 16px;
  margin-bottom: 10px;
  color: var(--accent);
}

@media (max-width: 600px) {
  .navigate-modal-box {
    min-width: 0;
    max-width: 99vw;
    padding: 0;
  }
  .navigate-step {
    padding: 12px 6px 10px 6px;
  }
}
.map-detail-panel {
  text-align: center;
}
.full-map-image-container {
  position: relative;
  display: inline-block;
  margin: 28px auto 18px auto;
  background: var(--surface-2);
  border-radius: 12px;
  width: auto;
  max-width: 100%;
}
.full-map-image {
  display: block;
  margin-left: auto;
  margin-right: auto;
  max-width: 100%;
  max-height: 540px;
  border: 2px solid var(--border, #23242a);
  border-radius: 10px;
  cursor: pointer;
  background: #222;
  transition: border-color 0.2s;
}
.full-map-image:hover {
  border-color: var(--accent, #7aa2f7);
}

.map-bg-toggle {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin: 8px 0 4px 0;
}

.map-bg-btn {
  padding: 3px 12px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--dim);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.map-bg-btn.active {
  background: var(--accent-bg);
  border-color: var(--accent);
  color: var(--accent);
}

.map-bg-btn:hover:not(.active) {
  border-color: var(--dim);
  color: var(--text);
}

.level-filter-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0 0 0;
}
.level-filter-label {
  font-size: 13px;
  color: var(--dim);
  white-space: nowrap;
}
.level-filter-input {
  width: 72px;
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--surface2, rgba(255,255,255,0.04));
  color: var(--text);
  font-size: 13px;
}
.level-filter-input:focus {
  outline: none;
  border-color: var(--accent, #7aa2f7);
}
.level-filter-sep {
  color: var(--dim);
  font-size: 13px;
}

.col-tooltip-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  margin-left: 5px;
  border-radius: 50%;
  border: 1px solid var(--dim);
  color: var(--dim);
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  cursor: help;
  vertical-align: middle;
  opacity: 0.6;
  transition: opacity 0.15s, border-color 0.15s, color 0.15s;
}
.col-tooltip-badge:hover {
  opacity: 1;
  border-color: var(--accent, #7aa2f7);
  color: var(--accent, #7aa2f7);
}

.mob-chip-clickable { cursor: pointer; }
.mob-chip-clickable:hover {
  border-color: var(--accent, #7aa2f7);
  background: var(--accent-bg, rgba(122,162,247,0.12)) !important;
}

/* ── Map detail panel ────────────────────────────────────────── */
.map-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 12px;
  margin: 8px 0;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.map-meta-left {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.map-meta-chip {
  display: flex;
  gap: 4px;
  align-items: center;
  padding: 2px 7px;
  border-radius: 4px;
  border: 1px solid var(--border);
  background: var(--surface3, rgba(255,255,255,0.04));
}
.map-meta-chip-label { color: var(--dim); }
.map-meta-right {
  display: flex;
  align-items: center;
  margin-left: auto;
}
.map-detail-nav-btn {
  margin: 0 0 0 12px;
  padding: 6px 16px;
  border-radius: 6px;
  background: var(--accent);
  color: var(--bg);
  border: none;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,.3);
  transition: background .18s, box-shadow .18s;
}
.map-detail-nav-btn:hover {
  background: color-mix(in srgb, var(--accent) 80%, black);
  box-shadow: 0 4px 16px rgba(0,0,0,.3);
}
.map-exits-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}
.map-exit-chip {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 6px;
  background: var(--surface3, rgba(255,255,255,0.05));
  border: 1px solid var(--border);
  font-size: 13px;
  cursor: pointer;
}
.map-exit-chip-arrow { color: var(--dim); font-size: 11px; }
.map-exit-chip-id { color: var(--dim); font-size: 11px; margin-left: 2px; }
.map-exit-chip--hover { outline: 1.5px solid #3af; outline-offset: -1px; }
.portal-overlay--exit-hover { box-shadow: 0 0 20px 6px #3afb !important; background: rgba(0,0,0,0.45) !important; }
.map-detail-label { font-weight: bold; font-size: 13px; margin: 0 0 4px 0; }
.map-detail-label--npc { margin: 10px 0 2px 0; }
.map-no-spawns { font-size: 13px; color: var(--dim); }
.map-mob-grid { display: flex; flex-wrap: wrap; gap: 6px; }
.map-mob-chip,
.map-npc-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px 4px 4px;
  border-radius: 6px;
  background: var(--surface3, rgba(255,255,255,0.05));
  border: 1px solid var(--border);
  font-size: 13px;
}
.map-mob-chip-count { color: var(--dim); margin-left: 2px; }
.map-mob-chip-timer { margin-left: 4px; font-size: 11px; }
.map-npc-grid { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.map-npc-chip { cursor: default; }
.map-npc-chip-img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  border-radius: 4px;
  margin-right: 4px;
}
.map-npc-chip-id { color: var(--dim); margin-left: 2px; font-size: 11px; }
.map-npc-chip--hover { outline: 1.5px solid #f7b731; outline-offset: -1px; }
.npc-highlight-overlay {
  position: absolute;
  border-radius: 50%;
  border: 2px solid #f7b731;
  background: rgba(247,183,49,0.25);
  box-shadow: 0 0 14px 5px rgba(247,183,49,0.65);
  z-index: 10;
  pointer-events: none;
}
.map-mob-chip--hover { outline: 1.5px solid #f7768e; outline-offset: -1px; }
.mob-highlight-overlay {
  position: absolute;
  border-radius: 50%;
  border: 2px solid #f7768e;
  background: rgba(247,118,142,0.25);
  box-shadow: 0 0 14px 5px rgba(247,118,142,0.65);
  z-index: 10;
  pointer-events: none;
}

/* ── Map table ───────────────────────────────────────────────── */
.map-th-sortable { cursor: pointer; user-select: none; white-space: nowrap; }
.map-tr-clickable { cursor: pointer; }
.map-name-wrap { display: flex; align-items: center; justify-content: space-between; }
.map-name-left { display: flex; align-items: center; min-width: 0; }
.map-name-text { font-size: 14px; }
.map-town-badge {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--accent, #7aa2f7);
  background: rgba(122,162,247,0.12);
  border: 1px solid rgba(122,162,247,0.3);
  border-radius: 4px;
  padding: 1px 5px;
  margin-left: 7px;
  vertical-align: middle;
}
.map-street-name { font-size: 12px; color: var(--dim); margin-left: 8px; }
.map-mobs-total { color: var(--dim); font-size: 12px; }
/* ── Portal overlays (shared: MapBrowser + MapPortalOverlay + MapNavigator) ── */
.portal-overlay {
  position: absolute;
  border-radius: 50%;
  z-index: 2;
  pointer-events: auto;
  cursor: pointer;
}

.portal-arrow-svg-all,
.portal-arrow-svg-hover {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9;
  overflow: visible;
}

/* ── Navigate portal highlight ───────────────────────────────── */
.portal-highlight {
  position: absolute;
  border-radius: 50%;
  background: rgba(0, 224, 255, 0.18);
  box-shadow: 0 0 16px 4px #00e0ff88;
  z-index: 2;
  pointer-events: none;
}
