/*
 * Meet + gather (Nick 2026-11-28, mockup v5). Replaces the old Weebly
 * accordion (.w2g-mg-old, kept in the HTML but hidden) on every screen size.
 *   Phones (<=767px): the three locations are tap-open sections, one open at a
 *     time, each with a summary line; meet rooms swipe sideways with a counter.
 *   Wide screens (>=768px): same cards and colors, no tapping or swiping:
 *     meet = each location as a headed group with its rooms in a grid;
 *     gather = the three venues side by side.
 * Colors follow the Third Place palette.
 */
#wsite-content .w2g-mg-old { display: none !important; }

.w2g-mg {
  --mg-rust: #b4340e; --mg-ink: #2a2a2a; --mg-muted: #6b655e; --mg-line: #e6e2dc;
  --mg-card: #f6f2ec; --mg-warm: #f3efe9; --mg-amber: #e9b45a; --mg-brown: #1d1410;
  display: block; margin: 8px 0 24px; font-family: Montserrat, system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--mg-ink); text-align: left; letter-spacing: 0;
}
.w2g-mg p, .w2g-mg li { letter-spacing: 0 !important; }

.w2g-mg__facts { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 16px; }
.w2g-mg__fact { background: var(--mg-warm); color: #8f2909; font-size: 13px; font-weight: 600; border-radius: 6px; padding: 7px 10px; }

.w2g-mg__accs { display: flex; flex-direction: column; gap: 8px; }
.w2g-mg__acc { border-radius: 12px; background: var(--mg-card); overflow: hidden; }
.w2g-mg__head {
  display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 10px;
  padding: 14px 16px; margin: 0; border: 0; background: none; cursor: pointer; text-align: left;
  font: inherit; color: var(--mg-ink); -webkit-tap-highlight-color: transparent;
}
.w2g-mg__head:focus-visible { outline: 2px solid var(--mg-rust); outline-offset: -2px; }
.w2g-mg__name { display: block; font-size: 17px; font-weight: 600; letter-spacing: .3px; line-height: 1.3; }
.w2g-mg__sum { display: block; font-size: 13px; font-weight: 500; color: var(--mg-muted); margin-top: 2px; line-height: 1.4; }
.w2g-mg__ic {
  flex: 0 0 auto; width: 28px; height: 28px; border-radius: 50%; background: #fff; color: var(--mg-rust);
  display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 600; line-height: 1;
}
.w2g-mg__ic::before { content: "+"; }
.w2g-mg__acc.is-open { background: var(--mg-warm); }
.w2g-mg__acc.is-open .w2g-mg__ic { background: var(--mg-rust); color: #fff; }
.w2g-mg__acc.is-open .w2g-mg__ic::before { content: "\2212"; }
.w2g-mg__panel { padding: 0 0 14px; }
.w2g-mg__panel[hidden] { display: none; }

.w2g-mg__track { display: flex; gap: 10px; padding: 0 16px; }
.w2g-mg__card {
  min-width: 0; background: #fff; border: 1px solid var(--mg-line);
  border-radius: 12px; overflow: hidden; display: flex; flex-direction: column;
}
.w2g-mg__card img { display: block; width: 100%; height: 170px; object-fit: cover; margin: 0; }
.w2g-mg__body { padding: 12px 14px 14px; display: flex; flex-direction: column; flex: 1 1 auto; }
.w2g-mg__top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.w2g-mg__room { font-size: 16px; font-weight: 600; line-height: 1.3; }
.w2g-mg__price { font-size: 15px; font-weight: 700; white-space: nowrap; }
#wsite-content .w2g-mg p.w2g-mg__meta, .w2g-mg p.w2g-mg__meta { font-size: 13px !important; line-height: 1.5 !important; color: var(--mg-muted); margin: 4px 0 8px; }
.w2g-mg ul.w2g-mg__list { margin: 0 0 10px; padding-left: 18px; font-size: 13px; line-height: 1.55; color: #4a4540; }
#wsite-content .w2g-mg p.w2g-mg__small, .w2g-mg p.w2g-mg__small { font-size: 11.5px !important; line-height: 1.5 !important; color: var(--mg-muted); margin: 0 0 12px; }
.w2g-mg__small b { color: var(--mg-ink); font-weight: 600; }
.w2g-mg a.w2g-mg__btn, .w2g-mg button.w2g-mg__btn {
  display: block; width: 100%; margin-top: auto; text-align: center; border: 0; border-radius: 6px; cursor: pointer;
  background: var(--mg-rust); color: #fff !important; font: 700 13px Montserrat, system-ui, sans-serif; letter-spacing: .04em;
  padding: 13px 10px; text-decoration: none !important; box-sizing: border-box;
}
.w2g-mg__btn:focus-visible { outline: 2px solid var(--mg-ink); outline-offset: 2px; }
#wsite-content .w2g-mg p.w2g-mg__count, .w2g-mg p.w2g-mg__count { font-size: 12px !important; line-height: 1.4 !important; font-weight: 600; color: var(--mg-muted); margin: 8px 16px 0; letter-spacing: .03em; }
#wsite-content .w2g-mg p.w2g-mg__note, .w2g-mg p.w2g-mg__note { font-size: 13px !important; line-height: 1.5 !important; margin: 12px 16px 0; color: #4a4540; }
.w2g-mg__note a { color: var(--mg-rust); font-weight: 600; }

/* Phones: swipe the rooms. */
@media (max-width: 767px) {
  .w2g-mg__track {
    overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
    scroll-padding: 0 16px; scrollbar-width: none;
  }
  .w2g-mg__track::-webkit-scrollbar { display: none; }
  .w2g-mg__card { flex: 0 0 85%; scroll-snap-align: start; }
  .w2g-mg__card:only-child { flex-basis: 100%; }
}

/* Wide screens: everything open, no tapping or swiping. */
@media (min-width: 768px) {
  .w2g-mg { margin: 12px 0 40px; }
  .w2g-mg__facts { justify-content: center; margin-bottom: 24px; }
  .w2g-mg__fact { font-size: 14px; padding: 8px 14px; }
  .w2g-mg__head { cursor: default; padding: 20px 24px 14px; pointer-events: none; }
  .w2g-mg__ic, .w2g-mg__count { display: none !important; }
  .w2g-mg__name { font-size: 22px; }
  .w2g-mg__sum { font-size: 14px; }
  .w2g-mg__acc, .w2g-mg__acc.is-open { background: var(--mg-card); }
  .w2g-mg__panel, .w2g-mg__panel[hidden] { display: block; padding: 0 0 24px; }
  .w2g-mg__track { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; padding: 0 24px; }
  .w2g-mg__card img { height: 190px; }
  /* A location with one room: photo beside the details. */
  .w2g-mg:not(.w2g-mg--venues) .w2g-mg__card:only-child { flex-direction: row; }
  .w2g-mg:not(.w2g-mg--venues) .w2g-mg__card:only-child img { width: 48%; flex: 0 0 48%; height: auto; min-height: 260px; }
  .w2g-mg:not(.w2g-mg--venues) .w2g-mg__card:only-child .w2g-mg__body { padding: 20px 22px; }
  .w2g-mg:not(.w2g-mg--venues) .w2g-mg__card:only-child .w2g-mg__btn { max-width: 260px; }
  #wsite-content .w2g-mg p.w2g-mg__note, .w2g-mg p.w2g-mg__note { margin: 16px 24px 0; }
  .w2g-mg__accs { gap: 16px; }

  /* Gather: the three venues side by side. */
  .w2g-mg--venues .w2g-mg__accs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .w2g-mg--venues .w2g-mg__acc { display: flex; flex-direction: column; }
  .w2g-mg--venues .w2g-mg__head { padding: 18px 18px 12px; }
  .w2g-mg--venues .w2g-mg__name { font-size: 20px; }
  .w2g-mg--venues .w2g-mg__panel { flex: 1 1 auto; display: flex; padding: 0 14px 14px; }
  .w2g-mg--venues .w2g-mg__track { display: flex; padding: 0; flex: 1 1 auto; }
  .w2g-mg--venues .w2g-mg__card { flex: 1 1 auto; }
}
@media (min-width: 768px) and (max-width: 991px) {
  .w2g-mg--venues .w2g-mg__accs { grid-template-columns: 1fr; }
  .w2g-mg--venues .w2g-mg__card { flex-direction: row; }
  .w2g-mg--venues .w2g-mg__card img { width: 42%; height: auto; min-height: 220px; flex: 0 0 42%; }
}

/* Phones only for now (Nick 2026-11-28: keep today's desktop pages). From 768px
   up the old Weebly accordion shows and the new layout stays hidden. */
@media (min-width: 768px) {
  #wsite-content .w2g-mg { display: none !important; }
  #wsite-content .w2g-mg-old { display: block !important; }
}

/* Match the mockup on phones (Nick 2026-11-28, "Yes, match it"). */
.w2g-mg-phone, .w2g-step-label, .w2g-step-next { display: none; }
@media (max-width: 767px) {
  #wsite-content .w2g-mg-desk { display: none !important; }
  #wsite-content .w2g-mg-phone { display: block; }

  /* Compact cards: photo, name, price, one line, then the button. */
  .w2g-mg__card img { height: 150px; }
  #wsite-content .w2g-mg p.w2g-mg__meta, .w2g-mg p.w2g-mg__meta { font-size: 12.5px !important; margin: 4px 0 12px; }
  .w2g-mg__more { margin: -4px 0 12px; font-size: 13px; }
  .w2g-mg__more > summary {
    display: inline-flex; align-items: center; gap: 4px; min-height: 32px; cursor: pointer; list-style: none;
    font-size: 12px; font-weight: 600; color: var(--mg-rust); -webkit-tap-highlight-color: transparent;
  }
  .w2g-mg__more > summary::-webkit-details-marker { display: none; }
  .w2g-mg__more > summary::after { content: "\203A"; font-size: 16px; line-height: 1; transition: transform .15s; }
  .w2g-mg__more[open] > summary::after { transform: rotate(90deg); }
  .w2g-mg__more > summary:focus-visible { outline: 2px solid var(--mg-rust); outline-offset: 2px; }
  .w2g-mg__more ul.w2g-mg__list { margin: 4px 0 8px; }
  #wsite-content .w2g-mg .w2g-mg__more p.w2g-mg__small { margin: 0 0 4px; }

  /* Gather: short intro, then the price chips at mockup size. */
  #wsite-content .w2g-mg-phone.paragraph { margin-bottom: 12px; }
  .w2g-mg--venues { margin-top: 0; }
  .w2g-mg__facts { gap: 6px; margin: 0 0 14px; }
  .w2g-mg__fact { font-size: 12px; font-weight: 600; padding: 6px 9px; border-radius: 6px; background: #f3efe9; color: #8f2909; }

  /* Gather form in two steps (classes added by w2g-meet-gather.js, so
     without JS the whole form shows as before). */
  .w2g-steps.is-step1 .wsite-form-field:not(.w2g-s1),
  .w2g-steps.is-step1 .wsite-form-fields-required-label,
  .w2g-steps.is-step1 .w2g-submit-row { display: none !important; }
  .w2g-step-label {
    display: block; font-family: Montserrat, system-ui, sans-serif; font-size: 11px; font-weight: 700;
    letter-spacing: .12em; text-transform: uppercase; color: #6b655e; margin: 8px 0 6px; list-style: none;
  }
  .w2g-step-next { display: block; list-style: none; margin: 14px 0 6px; }
  .w2g-step-next button {
    display: block; width: 100%; border: 0; border-radius: 6px; cursor: pointer; background: #b4340e; color: #fff;
    font: 700 13px Montserrat, system-ui, sans-serif; letter-spacing: .04em; padding: 13px 10px;
  }
  .w2g-step-next button:focus-visible { outline: 2px solid #2a2a2a; outline-offset: 2px; }
  .w2g-steps:not(.is-step1) .w2g-step-next { display: none; }
}
