/* Plan Your Visit — Manjimup Farmers Market Collective. Everything is scoped to .mfm-pyv.
   Colours and fonts are custom properties: point them at the theme's own variables if it has them. */
.mfm-pyv {
  --mfm-pyv-forest: #2d4a3b;
  --mfm-pyv-berry: #c8414d;
  --mfm-pyv-cream: #f3ecdd;
  --mfm-pyv-line: #e2d9c6;
  --mfm-pyv-ink: #1f2a24;
  --mfm-pyv-muted: #5f6b62;
  --mfm-pyv-card: #ffffff;
  --mfm-pyv-display: inherit;   /* heading font: set to the theme's display face */
  --mfm-pyv-body: inherit;
  container-type: inline-size;
  margin-block: 1.5rem;
  font-family: var(--mfm-pyv-body);
  color: var(--mfm-pyv-ink);
}
.mfm-pyv__layout { display: grid; gap: 20px; align-items: start; }
@container (min-width: 760px) {
  .mfm-pyv--on .mfm-pyv__layout { grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); }
}

/* The map keeps its original 10:9 shape so the hidden grid lines up with it. */
.mfm-pyv__board {
  position: relative;
  aspect-ratio: 10 / 9;
  max-width: 100%;
  border-radius: 14px;
  overflow: hidden;
  background: var(--mfm-pyv-cream);
}
.mfm-pyv__map { display: block; width: 100%; height: 100%; object-fit: contain; margin: 0; }
.mfm-pyv__canvas {
  position: absolute; inset: 0; width: 100%; height: 100%; display: block;
  touch-action: pan-x pan-y pinch-zoom;   /* page still scrolls over the map */
}
.mfm-pyv__toast {
  position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%);
  background: var(--mfm-pyv-forest); color: #fff; font-size: 13px; font-weight: 600;
  padding: 8px 14px; border-radius: 999px; box-shadow: 0 6px 18px rgba(31, 42, 36, .25);
  pointer-events: none; opacity: 0; transition: opacity .3s; white-space: nowrap; max-width: 90%;
  overflow: hidden; text-overflow: ellipsis;
}
.mfm-pyv__toast.is-on { opacity: 1; }

/* The list panel only appears when JavaScript is running. */
.mfm-pyv__panel { display: none; }
.mfm-pyv--on .mfm-pyv__panel {
  display: grid; gap: 14px; min-width: 0;
  background: var(--mfm-pyv-card); border: 1px solid var(--mfm-pyv-line); border-radius: 14px; padding: 20px;
}
.mfm-pyv__title { font-family: var(--mfm-pyv-display); font-size: 1.6rem; line-height: 1.1; margin: 0; color: var(--mfm-pyv-forest); }
.mfm-pyv__sub { margin: 4px 0 0; color: var(--mfm-pyv-muted); font-size: .9rem; line-height: 1.5; }
.mfm-pyv__plan { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.mfm-pyv__plan li {
  display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 10px; align-items: center;
  padding: 8px 0; margin: 0; border-bottom: 1px solid var(--mfm-pyv-cream);
}
.mfm-pyv__plan li:last-child { border-bottom: 0; }
.mfm-pyv__num {
  display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  background: var(--mfm-pyv-berry); color: #fff; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums;
}
.mfm-pyv__plan li.is-home .mfm-pyv__num { background: var(--mfm-pyv-forest); }
.mfm-pyv__name { font-weight: 600; font-size: .95rem; line-height: 1.25; overflow-wrap: anywhere; }
.mfm-pyv__note { font-size: .8rem; color: var(--mfm-pyv-muted); margin-top: 2px; }
.mfm-pyv__remove {
  border: 0; background: transparent; color: var(--mfm-pyv-muted); font-size: 18px; line-height: 1;
  width: 32px; height: 32px; border-radius: 50%; cursor: pointer; padding: 0;
}
.mfm-pyv__remove:hover { background: var(--mfm-pyv-cream); color: var(--mfm-pyv-ink); }
.mfm-pyv__empty {
  font-size: .9rem; color: var(--mfm-pyv-muted); background: #fbf8f1;
  border: 1px dashed var(--mfm-pyv-line); border-radius: 10px; padding: 12px; line-height: 1.5;
}
.mfm-pyv__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.mfm-pyv__btn {
  font: inherit; font-size: .9rem; font-weight: 600; padding: 10px 16px; border-radius: 999px;
  border: 1px solid var(--mfm-pyv-forest); background: var(--mfm-pyv-forest); color: #fff; cursor: pointer;
}
.mfm-pyv__btn--ghost { background: transparent; color: var(--mfm-pyv-forest); }
.mfm-pyv__btn:focus-visible, .mfm-pyv__remove:focus-visible { outline: 2px solid var(--mfm-pyv-berry); outline-offset: 2px; }
.mfm-pyv__status { font-size: .85rem; color: var(--mfm-pyv-forest); min-height: 1.2em; margin: 0; }
