/* Market Map sector/industry hover panel (web/js/map_hover.js).
   Shared by /map/ and the landing mini-map. Theme tokens only. */
.map-hover-panel {
  display: none;
  position: fixed;
  z-index: 200;
  max-width: 340px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  padding: 10px 12px;
  font-size: 0.74rem;
  line-height: 1.45;
  color: var(--text);
  pointer-events: auto;
}
.map-hover-panel .mhp-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-strong);
  margin-bottom: 6px;
}
.map-hover-panel .mhp-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
}
.map-hover-panel .mhp-row .v {
  font-family: var(--font-mono);
  color: var(--text);
}
.map-hover-panel .mhp-list {
  margin-top: 7px;
  padding-top: 5px;
  border-top: 1px solid var(--border);
}
.map-hover-panel .mhp-stock {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 8px;
  align-items: baseline;
  padding: 2px 4px;
  margin: 0 -4px;
  border-radius: 4px;
  cursor: pointer;
}
.map-hover-panel .mhp-stock:hover { background: var(--bg-chip); }
.map-hover-panel .mhp-tick { font-weight: 600; color: var(--text-strong); }
.map-hover-panel .mhp-name {
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.map-hover-panel .mhp-chg { font-family: var(--font-mono); }
.map-hover-panel .mhp-up { color: var(--up); }
.map-hover-panel .mhp-down { color: var(--down); }
.map-hover-panel .mhp-more {
  margin-top: 4px;
  color: var(--muted-dim);
  font-size: 0.68rem;
}

/* Outline around the hovered sector/industry group's tiles (the group's own
   title strip is excluded in map_hover.js). Gold on purpose — red/green would
   blend into the tiles. Single sleek line, no halo. */
.map-hover-outline {
  display: none;
  position: fixed;
  z-index: 199;
  pointer-events: none;
  box-sizing: border-box;
  border: 1.5px solid #f0b429;
  transition: left 0.12s ease-out, top 0.12s ease-out, width 0.12s ease-out, height 0.12s ease-out;
}
html.light .map-hover-outline,
body.light .map-hover-outline { border-color: #c08a00; }

/* Finviz-style gold title ribbon over the hovered group's own title strip:
   same gold as the outline, dark text, pointed arrow tip on the right. */
.map-hover-title {
  display: none;
  position: fixed;
  z-index: 199;
  pointer-events: none;
  box-sizing: border-box;
  background: #f0b429;
  color: #14120b;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
  padding: 0 4px 0 5px;
  transition: left 0.12s ease-out, top 0.12s ease-out;
}
.map-hover-title .mht-arrow {
  position: absolute;
  left: 100%;
  top: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-color: transparent;
  border-left-color: #f0b429;
  border-right-width: 0 !important;
}
html.light .map-hover-title,
body.light .map-hover-title { background: #c08a00; color: #fff; }
html.light .map-hover-title .mht-arrow,
body.light .map-hover-title .mht-arrow { border-left-color: #c08a00; }
