/* Guide directory + submit form. Cream / plum / gold, Lato sans-serif. */

.mpfy-guides-dir,
.mpfy-guide-form-wrap,
.mpfy-guide-profile {
  width: min(52rem, 100%);
  max-width: 100%;
  margin: 1.5rem auto 0;
  padding-inline: 1.25rem;
  box-sizing: border-box;
  color: var(--text, #2c2a26);
  font-family: var(--font-body, Lato, system-ui, sans-serif);
}

.mpfy-guides-dir__lede,
.mpfy-guide-form-wrap > p {
  color: var(--text-muted, #5c574e);
  line-height: 1.55;
}

.mpfy-guides-dir__cta {
  margin: 1rem 0 1.75rem;
}

.mpfy-guides-dir__offer,
.mpfy-guide-form-wrap .mpfy-guides-dir__offer {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 1.15rem;
  border: 1px solid #d4af37;
  border-radius: 999px;
  color: #3b185f;
  background: #f7f1e4;
  font-family: var(--font-display, Lato, system-ui, sans-serif);
  font-size: 1.15rem;
  font-weight: 600;
  text-decoration: none;
}

.mpfy-guides-dir__offer:hover,
.mpfy-guides-dir__offer:focus-visible {
  color: #f7f1e4;
  background: #3b185f;
}

.mpfy-guides-dir__empty {
  padding: 1.25rem 1.35rem;
  background: #f7f1e4;
  border: 1px solid rgba(59, 24, 95, 0.12);
  border-radius: 12px;
}

.mpfy-guides-dir__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15.5rem, 1fr));
  gap: 1.15rem;
}

.mpfy-guide-card {
  margin: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  background: #f7f1e4;
  border: 1px solid rgba(212, 175, 55, 0.55);
  border-radius: 12px;
  overflow: hidden;
}

.mpfy-guide-card__link {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  min-width: 0;
  padding: 1.1rem 1.15rem 1.25rem;
  color: inherit;
  text-decoration: none;
  box-sizing: border-box;
}

/* wpautop inserts <br> between flex children; they break the column. */
.mpfy-guide-card__link > br {
  display: none;
}

.mpfy-guide-card__photo,
.mpfy-guide-profile__photo {
  display: block;
  position: relative;
  width: 10rem;
  height: 10rem;
  margin: 0 auto 0.85rem;
  border-radius: 2px;
  overflow: hidden;
  border: 0;
  box-shadow: none;
  line-height: 0;
  background: #3b185f;
}

.mpfy-guide-card__photo br,
.mpfy-guide-profile__photo br {
  display: none;
}

.mpfy-guide-card__photo img,
.mpfy-guide-profile__photo img,
.mpfy-guide-card__photo-fallback {
  position: absolute;
  inset: 0;
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: none;
  max-height: none;
  margin: 0;
  object-fit: cover;
  object-position: center center;
  border: 0;
  box-shadow: none;
}

.mpfy-guide-card__name {
  display: block;
  text-align: center;
  font-family: var(--font-display, Lato, system-ui, sans-serif);
  font-size: 1.35rem;
  font-weight: 600;
  color: #3b185f;
}

.mpfy-guide-card__excerpt {
  display: block;
  margin-top: 0.4rem;
  color: var(--text-muted, #5c574e);
  font-size: 0.92rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.mpfy-guide-profile__photo {
  width: 12rem;
  height: 12rem;
  margin: 0 auto 1rem;
}

.mpfy-guide-profile__contact {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
  text-align: center;
}

.mpfy-guide-profile__contact a {
  color: #3b185f;
}

.mpfy-guide-profile h2 {
  margin: 1.25rem 0 0.4rem;
  font-family: var(--font-display, Lato, system-ui, sans-serif);
  font-size: 1.45rem;
  color: #3b185f;
}

.mpfy-guide-profile__pending,
.mpfy-guide-form__ok,
.mpfy-guide-form__err,
.mpfy-guide-form__note {
  padding: 0.75rem 0.9rem;
  border-radius: 8px;
}

.mpfy-guide-form__back,
.mpfy-guide-profile__back {
  margin-top: 1.5rem;
}

.mpfy-guide-profile__photo--placeholder .mpfy-guide-card__photo-fallback,
.mpfy-guide-card__photo-fallback {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: #3b185f;
}

html[data-mpfy-glass="on"] .mpfy-guide-card__photo,
html[data-mpfy-glass="on"] .mpfy-guide-profile__photo,
html[data-mpfy-glass="on"] .mpfy-guide-card__photo img,
html[data-mpfy-glass="on"] .mpfy-guide-profile__photo img {
  border: 0;
  box-shadow: none;
  border-radius: 2px;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

/* Beat inner-page img { height: auto !important } so the square crop stays centered. */
.rd-page .mpfy-page__content .mpfy-guide-card__photo img,
.rd-page .mpfy-page__content .mpfy-guide-profile__photo img,
.mpfy-page__content .entry-content .mpfy-guide-card__photo img,
.mpfy-page__content .entry-content .mpfy-guide-profile__photo img {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-height: none !important;
  object-fit: cover !important;
  object-position: center center !important;
}

.mpfy-guide-whatsapp {
  font-weight: 600;
  color: #1f7a44;
}

.mpfy-guide-whatsapp:hover,
.mpfy-guide-whatsapp:focus-visible {
  color: #145c32;
}

.mpfy-guide-name-list {
  list-style: none;
  margin: 0.85rem 0 1.35rem;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.mpfy-guide-name-list li {
  margin: 0;
  padding: 0.65rem 0.85rem;
  background: #f7f1e4;
  border: 1px solid rgba(212, 175, 55, 0.45);
  border-radius: 10px;
}

.mpfy-guide-name-list a {
  color: #3b185f;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.mpfy-guide-name-list__note {
  color: var(--text-muted, #5c574e);
  font-size: 0.92rem;
}

@media (min-width: 768px) {
  .mpfy-guide-name-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/*
 * Mobile: avoid double-inset (entry-content already narrows) and legacy
 * Bootstrap/guide-plugin negative margins that clip bios on the left.
 */
@media (max-width: 767px) {
  body.page-guides .mpfy-page__content .entry-content,
  body.mpfy-guides-archive .mpfy-page__content .entry-content,
  body.single-guide .mpfy-page__content .entry-content,
  body.page-offer-your-services .mpfy-page__content .entry-content,
  body.page-guide .mpfy-page__content .entry-content,
  body.page-guide-details .mpfy-page__content .entry-content {
    width: 100% !important;
    max-width: 100% !important;
    padding-inline: 0.85rem;
    box-sizing: border-box;
  }

  .mpfy-guides-dir,
  .mpfy-guide-form-wrap,
  .mpfy-guide-profile {
    width: 100%;
    max-width: 100%;
    margin-top: 0.85rem;
    padding-inline: 0;
  }

  .mpfy-guides-dir__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
  }

  .mpfy-guide-card__link {
    padding: 1rem 0.95rem 1.1rem;
  }

  .mpfy-guide-card__name {
    font-size: 1.2rem;
  }

  .mpfy-guide-card__excerpt {
    font-size: 0.88rem;
    line-height: 1.5;
  }

  .mpfy-guide-card__photo,
  .mpfy-guide-profile__photo {
    width: min(10rem, 56vw);
    height: min(10rem, 56vw);
  }

  .mpfy-guides-dir__offer,
  .mpfy-guide-form-wrap .mpfy-guides-dir__offer {
    font-size: 1.05rem;
    max-width: 100%;
    white-space: normal;
    text-align: center;
  }

  .mpfy-guide-profile {
    font-size: 0.95rem;
    line-height: 1.55;
    overflow-wrap: anywhere;
  }

  .mpfy-guide-profile h2 {
    font-size: 1.25rem;
  }

  /* Legacy filter_guide / guide_details / Bootstrap rows inside clipped shells. */
  body.page-guides .mpfy-page__content .row,
  body.page-guide .mpfy-page__content .row,
  body.page-guide-details .mpfy-page__content .row,
  body.single-guide .mpfy-page__content .row,
  body.page-guides .entry-content .row,
  body.page-guide .entry-content .row,
  body.page-guide-details .entry-content .row {
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
  }

  body.page-guides .mpfy-page__content [class*="col-"],
  body.page-guide .mpfy-page__content [class*="col-"],
  body.page-guide-details .mpfy-page__content [class*="col-"],
  body.single-guide .mpfy-page__content [class*="col-"],
  body.page-guides .entry-content [class*="col-"],
  body.page-guide .entry-content [class*="col-"],
  body.page-guide-details .entry-content [class*="col-"] {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
    float: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    min-width: 0;
    box-sizing: border-box;
  }

  body.page-guides .guide_pic img,
  body.page-guide .guide_pic img,
  body.page-guide-details .guide_pic img {
    min-width: 0 !important;
    width: min(12rem, 100%) !important;
    max-width: 100% !important;
    height: auto !important;
  }

  body.page-guides .mpfy-page__content .entry-content > *,
  body.page-guide .mpfy-page__content .entry-content > *,
  body.page-guide-details .mpfy-page__content .entry-content > *,
  body.single-guide .mpfy-page__content .entry-content > * {
    max-width: 100%;
    box-sizing: border-box;
  }

  body.page-guides .entry-content span[style*="background"],
  body.page-guide .entry-content span[style*="background"],
  body.page-guide-details .entry-content span[style*="background"],
  body.page-guides .entry-content p[style*="background"],
  body.page-guide .entry-content p[style*="background"],
  body.page-guide-details .entry-content p[style*="background"] {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    white-space: normal !important;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  body.page-guides .team_member_brief_info_text,
  body.page-guide .team_member_brief_info_text,
  body.page-guide-details .team_member_brief_info_text {
    font-size: 0.95rem;
    line-height: 1.5;
    overflow-wrap: anywhere;
  }
}
