/* Nearby pills (js/context-actions.js, as on m-ew.com) in the celeb-i glass: centred just above the journey
   dots on desktop and in the lower band on phones. While they show, the caption sits right above them. */
.context-actions {
  position: absolute;
  z-index: 16;
  left: 50%;
  bottom: calc(108px + var(--safe-bottom, 0px));
  translate: -50% 0;
  width: max-content;
  max-width: min(480px, calc(100% - 40px - var(--safe-left, 0px) - var(--safe-right, 0px)));
  color: #f6f3e2;
  pointer-events: auto;
}
.context-actions[hidden] { display: none; }
.context-actions-title {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.context-actions-row { display: flex; align-items: stretch; gap: 6px; }
.context-actions button {
  position: relative;
  isolation: isolate;
  flex: 1 1 auto;
  min-width: 66px;
  min-height: 44px;
  padding: 10px 13px;
  border: 0;
  border-radius: 22px;
  background: transparent;
  color: #f6f3e2;
  font: 400 12px/1.3 var(--sans, sans-serif);
  text-align: center;
  white-space: nowrap;
  text-shadow: 0 1px 3px #06140d80;
  cursor: pointer;
  touch-action: manipulation;
}
.context-actions button::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 6px 0;
  border: 1px solid #dbe6c62b;
  border-radius: 18px;
  background: #14392b99;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background .15s, border-color .15s;
}
.context-actions button:hover::before { background: #2a5238cc; border-color: #dbe6c65e; }
.context-actions button:focus-visible, .context-actions:focus-visible { outline: 2px solid var(--lime, #cfdfab); outline-offset: 3px; }
.context-actions button:disabled { cursor: wait; opacity: .65; }
.context-actions-visible .forest-notice { top: auto; bottom: calc(176px + var(--safe-bottom, 0px)); }
body[data-compact=true] .context-actions { bottom: calc(86px + var(--safe-bottom, 0px)); }
/* Phones: a long label wraps inside its own pill, so the row never grows a second line of pills. */
body[data-compact=true] .context-actions button { white-space: normal; text-wrap: balance; }
body[data-compact=true].context-actions-visible .forest-notice { bottom: calc(148px + var(--safe-bottom, 0px)); }
@media (max-width: 380px) {
  .context-actions { max-width: calc(100% - 28px - var(--safe-left, 0px) - var(--safe-right, 0px)); }
  .context-actions button { padding-inline: 10px; }
}
@media (max-height: 500px) {
  .context-actions { bottom: calc(86px + var(--safe-bottom, 0px)); }
  .context-actions-visible .forest-notice { bottom: calc(148px + var(--safe-bottom, 0px)); }
}
@media (prefers-reduced-motion: reduce) { .context-actions button::before { transition: none; } }
