/* ═══════════════════════════════════════════════════════════════════════════
   SAVED TOURS — the heart, in its three homes.

   This sheet loads on every front-end page, because tour cards do too. The
   design tokens live in whichever V2 sheet that template happens to load
   (v2-chrome, v2-tours, v2-single each declare their own :root), and the
   single-tour template drops the theme stylesheet entirely — so every token
   here carries its literal fallback rather than assuming one is in scope.
   ═══════════════════════════════════════════════════════════════════════════ */

.met-fav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  line-height: 1;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.met-fav svg {
  display: block;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: fill .18s ease, stroke .18s ease, transform .18s ease;
}

.met-fav.is-on svg {
  fill: var(--cta, #C8461F);
  stroke: var(--cta, #C8461F);
}

.met-fav:disabled {
  opacity: .55;
  cursor: default;
}

.met-fav:focus-visible {
  outline: 2px solid var(--cta, #C8461F);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: no-preference) {
  .met-fav:active svg { transform: scale(.86); }
  .met-fav.is-on svg  { animation: met-fav-pop .22s ease; }
}

@keyframes met-fav-pop {
  0%   { transform: scale(.82); }
  60%  { transform: scale(1.12); }
  100% { transform: scale(1); }
}

/* ── On a card: a white disc over the photo, top-right ─────────────────── */

.met-fav--card {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  color: var(--navy, #1E2B47);
  box-shadow: 0 2px 10px rgba(15, 30, 53, .20);
  transition: background .18s ease, transform .18s ease, box-shadow .18s ease;
}

.met-fav--card:hover {
  background: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(15, 30, 53, .26);
}

/* The label is still announced — it is only the pixels that are missing. */
.met-fav--card .met-fav__t {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* The cards the disc sits on. `.ot` and `.tour` are both already overflow
   -hidden boxes; they only lacked a positioning context. `.met-fav-wrap` is
   the one case where the whole card is a single <a> (met_tour_card_html), so
   the button has to live outside the link rather than nested inside it. */
.ot,
.tour,
.met-fav-wrap { position: relative; }

.met-fav-wrap { display: flex; }
.met-fav-wrap > .met-card-v2 { width: 100%; }

/* ── In the tour hero: a pill beside Share ─────────────────────────────── */

.met-fav--hero { gap: 8px; }

/* ── In the account list: a quiet text button ──────────────────────────── */

.met-fav--list {
  gap: 7px;
  padding: 9px 14px;
  border: 1px solid var(--line, #E6EAF1);
  border-radius: 999px;
  background: #fff;
  color: var(--ink-2, #3A4660);
  font-size: 13.5px;
  font-weight: 600;
  transition: border-color .18s ease, color .18s ease, background .18s ease;
}

.met-fav--list:hover {
  border-color: var(--cta, #C8461F);
  color: var(--cta, #C8461F);
}

.met-fav--list svg { width: 16px; height: 16px; }
