/* =========================================================================
   MAP VIEW: full-screen sheet inside the phone frame
   ========================================================================= */
.map-veil {
  position: absolute; inset: 0; z-index: 60;
  background: rgba(15, 20, 40, 0.45);
  display: flex; align-items: flex-end;
}
.map-sheet {
  width: 100%; height: 88%;
  background: var(--paper-2);
  border-radius: 18px 18px 0 0;
  display: flex; flex-direction: column;
  overflow: hidden;
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.25);
}

.map-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; padding: 13px 16px 11px;
  border-bottom: 1px solid var(--line);
}
.map-title { font-size: 14.5px; font-weight: 800; }
.map-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.map-close {
  border: none; background: var(--paper); color: var(--muted);
  width: 30px; height: 30px; border-radius: 50%;
  font-size: 14px; cursor: pointer; flex-shrink: 0;
}

.map-canvas { flex: 1; min-height: 0; background: #e8ecf4; }
.map-fallback {
  height: 100%; display: flex; align-items: center; justify-content: center;
  padding: 24px; text-align: center;
  font-size: 13px; color: var(--muted);
}

.map-foot {
  padding: 12px 16px 16px;
  border-top: 1px solid var(--line);
}
.map-dest-name { font-size: 13.5px; font-weight: 800; }
.map-dest-addr { font-size: 12px; color: var(--muted); margin: 2px 0 10px; }
.map-go { text-align: center; text-decoration: none; box-sizing: border-box; }

/* Map button on an expanded chain leg */
.leg-map {
  border: 1px solid var(--line); background: var(--paper);
  color: var(--brand-primary); font: inherit; font-size: 11px;
  font-weight: 700; padding: 3px 9px; border-radius: 999px;
  cursor: pointer; margin-top: 4px;
}
