/* The Map tab, and the world map it shares with the Passport tab. */
.map-page { max-width: 720px; }
.map-loading { color: var(--muted); padding: 40px 0; text-align: center; }

/* Year chips over the map */
.map-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 18px 0 14px; }
.map-chip {
  appearance: none; border: 1px solid var(--hairline); background: var(--surface); color: var(--muted);
  font: inherit; font-size: 13.5px; font-weight: 600; padding: 6px 13px; border-radius: 999px; cursor: pointer;
}
.map-chip:hover { color: var(--text); border-color: var(--muted); }
.map-chip.is-active { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }

/* The world map: every country dim, the visited ones lit with a glow */
.map-world { display: block; width: 100%; height: auto; overflow: visible; }
.map-world-dim path { fill: rgba(108,114,124,0.22); }
.map-world-glow path { fill: var(--accent); fill-opacity: 0.35; }
.map-world-lit path { fill: var(--accent); fill-opacity: 0.9; }

/* The routes card */
.map-card {
  background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius);
  padding: 12px 10px; overflow: hidden;
}
.map-route { cursor: default; }
.map-route path { transition: opacity 0.15s; }
.map-routes:hover .map-route:not(:hover) path { opacity: 0.35; }
.map-stay-halo { opacity: 0.18; }
.map-stay { cursor: default; }
.map-stay:hover .map-stay-halo { opacity: 0.32; }

/* What is on the map, and the modes' inks */
.map-legend {
  display: flex; align-items: center; justify-content: space-between; gap: 10px 18px; flex-wrap: wrap;
  margin: 10px 4px 0; color: var(--muted); font-size: 13.5px;
}
.map-legend-key { display: flex; gap: 14px; flex-wrap: wrap; }
.map-legend-mode { display: inline-flex; align-items: center; gap: 6px; color: var(--faint); font-size: 12.5px; }
.map-swatch { width: 34px; height: 11px; display: block; overflow: visible; }

/* The free cap, as the app's pill over the globe */
.map-cap-pill {
  display: inline-flex; align-items: center; gap: 8px; margin: 16px 0 0; height: 32px; padding: 0 14px;
  border-radius: 999px; border: 1px solid var(--hairline); background: rgba(255,255,255,0.06);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  color: var(--text); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer;
}
.map-cap-pill:hover { border-color: var(--muted); }
.map-cap-lock {
  position: relative; display: inline-block; width: 10px; height: 8px; margin-top: 3px;
  background: var(--accent); border-radius: 2px;
}
.map-cap-lock::before {
  content: ""; position: absolute; left: 2px; top: -5px; width: 6px; height: 6px; box-sizing: border-box;
  border: 1.6px solid var(--accent); border-bottom: none; border-radius: 4px 4px 0 0;
}
