/* ═══════════════════════════════════════════════════════════
   TRAVEL (docs/wiki/plans/districts-and-trade.md section 10)
   Placeholder from phase 0 (Foundations), linked from index.html already.
   Lane A: border crossings on the map and the travel scene.
   ═══════════════════════════════════════════════════════════ */

/* ── where you are (js/map.js renderWhere) ──
   Top left, opposite the view selector, in the selector's own pill. The
   district is a card title; the button is a secondary — the map's one gold
   control stays the active view. */
.map-where {
  position: absolute; top: 12px; left: 12px; z-index: 5;
  display: flex; align-items: center; gap: 10px;
  max-width: calc(100% - 150px);
  padding: 3px 3px 3px 16px;
  border: 1px solid var(--border-strong); border-radius: var(--r-pill);
  background: rgba(13,13,17,.9);
}
.map-where[hidden], .map-outer[data-mode="overview"] .map-where { display: none; }
.map-where[data-browse="true"] { border-color: var(--border-gold); }
.map-where-body { display: flex; flex-direction: column; min-width: 0; }
.map-where-k {
  font-family: var(--ui); font-weight: 500; font-size: 10px; letter-spacing: 2px; color: var(--text-label);
  white-space: nowrap;
}
.map-where-name {
  font-family: var(--display); font-size: 14px; letter-spacing: 1px; color: var(--text); line-height: 1.15;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.map-where-btn {
  position: relative;
  flex: none; height: 38px; padding: 0 14px;
  font-family: var(--display); font-size: 12px; letter-spacing: 1px;
  color: var(--text); background: var(--surface-raised);
  border: 1px solid var(--border-strong); border-radius: var(--r-pill); cursor: pointer;
  transition: border-color .16s;
}
.map-where-btn:hover { border-color: var(--border-gold); }
/* a 38px pill in the bar's 3px rim: the hit target reaches 3px past it on
   every side, to the bar's edge, for the contract's 44px effective target */
.map-where-btn::after { content: ''; position: absolute; inset: -3px; border-radius: var(--r-pill); }
.map-where-btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* ── a card's trip note: when trade starts in a district you can't walk to ── */
.map-card-trip {
  padding: 0 15px 13px;
  font-family: var(--ui); font-weight: 500; font-size: 10px; letter-spacing: 2px; color: var(--text-label);
}

/* ── the travel scene (js/travel.js playScene) ──
   The city-opens banner (#map-opening) taken to the whole map: the screen
   surface with its weave, the district's name as a screen title at hero
   size, and a lane line running underneath. A tap skips it. */
.map-opening.map-travel-scene {
  inset: 0; top: 0; left: 0; z-index: 8;
  transform: none; width: auto; max-width: none;
  justify-content: center; gap: 8px; padding: 24px 20px;
  border: 0; border-radius: 0; box-shadow: none;
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,.012), rgba(255,255,255,.012) 1px, transparent 1px, transparent 2px),
    var(--bg);
  animation: map-travel-in .3s ease;
}
.map-travel-scene .map-travel-k {
  font-family: var(--ui); font-weight: 500; font-size: 10px; letter-spacing: 2px; color: var(--text-label);
}
.map-travel-scene .map-opening-title { font-size: 36px; letter-spacing: 2px; color: var(--text); }
.map-travel-scene .map-opening-sub { font-size: 11px; letter-spacing: 2px; color: var(--gold); }
.map-travel-road {
  order: 9; width: 180px; height: 2px; margin-top: 14px; border-radius: var(--r-pill);
  background: repeating-linear-gradient(90deg, var(--gold-deep) 0 12px, transparent 12px 24px);
  background-size: 24px 2px;
  animation: map-travel-road .5s linear infinite;
}
@keyframes map-travel-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes map-travel-road { from { background-position: 0 0; } to { background-position: -24px 0; } }
@media (prefers-reduced-motion: reduce) {
  .map-opening.map-travel-scene, .map-travel-road { animation: none; }
}
