/* Mayl Modern Footer v1.0.5 – consistent native WordPress widget heading rows, compact footer. */
footer.mayl-footer,
footer.mayl-footer * { box-sizing: border-box; }
footer.mayl-footer {
  width: 100%;
  clear: both;
  color: #fff;
  font-family: 'Poppins', 'Open Sans', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}
.mayl-footer__main {
  background: linear-gradient(122deg, #5b89c6 0%, #4879b9 47%, #3566a8 100%);
  padding: 17px 0 0;
}
/* Once the ListingPro social URLs are removed, the social row disappears.
   Restore a modest gap below the final card before the copyright strip. */
footer.mayl-footer--no-social .mayl-footer__main { padding-bottom: 15px; }
.mayl-footer__inner { width: min(1940px, calc(100% - 64px)); max-width: none; margin-inline: auto; }
.mayl-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, .9fr) minmax(0, 1.2fr) minmax(0, 25%);
  gap: 0;
  align-items: start;
}
/* Reserve exactly one heading row within each column. WordPress may output
   different widget types or wrappers; the heading is pinned to the column,
   not positioned by a widget's own margins. */
.mayl-footer__column {
  --mayl-pad-left: 22px;
  --mayl-pad-right: 22px;
  position: relative;
  min-width: 0;
  padding: 0 var(--mayl-pad-right) 0 var(--mayl-pad-left);
}
.mayl-footer__column:first-child { --mayl-pad-left: 0px; }
.mayl-footer__column:last-child { --mayl-pad-right: 0px; }
.mayl-footer__column + .mayl-footer__column { border-left: 1px solid rgba(255,255,255,.38); }
.mayl-footer .widget,
.mayl-footer .widgets,
.mayl-footer aside.widget { margin: 0 0 9px; padding: 0; background: transparent; border: none; float: none; width: 100%; max-width: 100%; box-shadow: none; }
.mayl-footer .widget-title,
.mayl-footer .imo-widget-title-container { display: block; padding: 0; margin: 0 0 13px; border: 0; background: none; }
.mayl-footer .widget-title h2,
.mayl-footer .widget h2,
.mayl-footer .widget-title {
  color: #fff !important;
  font-size: 20px !important;
  font-family: 'Poppins', sans-serif;
  font-weight: 600 !important;
  letter-spacing: .01em;
  line-height: 1.3 !important;
  text-transform: none;
  text-align: left;
  margin: 0;
}
/* One heading per column is emitted *before* its widgets. This is independent of
   whether a widget uses .widget-title, an h2, or a custom HTML wrapper. */
footer.mayl-footer .mayl-footer__column > .mayl-footer__heading {
  display: block !important;
  color: #fff !important;
  font-family: 'Poppins', sans-serif !important;
  font-size: 20px !important;
  font-weight: 600 !important;
  line-height: 26px !important;
  text-transform: none !important;
  letter-spacing: .01em !important;
  margin: 0 0 5px !important;
  padding: 0 0 6px !important;
  min-height: 33px;
  border-bottom: 1px solid rgba(255,255,255,.45) !important;
  background: transparent !important;
  position: static !important;
  text-align: left !important;
}
.mayl-footer .widget-title:after { content: none !important; }
.mayl-footer ul,
.mayl-footer ol,
.mayl-footer .menu { list-style: none; margin: 0; padding: 0; }
.mayl-footer .widget li { list-style: none; margin: 0 0 2px; padding: 0; background: none; border: 0; break-inside: avoid; }
.mayl-footer .widget li:before,
.mayl-footer .widget li:after { display: none !important; }
.mayl-footer .widget li a,
.mayl-footer .widget p a,
.mayl-footer .widget .textwidget a {
  color: #fff !important;
  text-decoration: none !important;
  font-size: 15.5px !important;
  line-height: 1.5;
  font-weight: 400;
  opacity: 1;
  padding: 2px 0;
  display: inline-block;
  overflow-wrap: anywhere;
}
.mayl-footer .widget li a:hover,
.mayl-footer .widget li a:focus-visible,
.mayl-footer .widget p a:hover { text-decoration: underline !important; color: #fff !important; opacity: 1; }
/* Native widget menus remain editable in Appearance > Widgets. */
.mayl-footer__column--quick .menu,
.mayl-footer__column--quick .widget_nav_menu ul { columns: 2; column-gap: 22px; }
.mayl-footer .textwidget,
.mayl-footer .textwidget p,
.mayl-footer .widget p {
  color: #fff !important;
  font-size: 15px !important;
  font-weight: 400;
  line-height: 1.58;
  margin: 0 0 8px;
  overflow-wrap: break-word;
}
.mayl-footer__column--about .widget { margin-bottom: 6px; }
/* About Us is editable widget HTML; normalize nested spans/small tags as well
   as plain paragraphs, so it matches the 15.5px footer link typography. */
footer.mayl-footer .mayl-footer__column--about .widget .textwidget,
footer.mayl-footer .mayl-footer__column--about .widget .textwidget :is(p, span, div, small, strong, em, b, i),
footer.mayl-footer .mayl-footer__column--about .widget .custom-html-widget,
footer.mayl-footer .mayl-footer__column--about .widget .custom-html-widget :is(p, span, div, small, strong, em, b, i),
footer.mayl-footer .mayl-footer__column--about .widget > p {
  font-family: 'Poppins', 'Open Sans', Arial, sans-serif !important;
  font-size: 15.5px !important;
  line-height: 1.5 !important;
  letter-spacing: normal !important;
  color: #fff !important;
}
footer.mayl-footer .mayl-footer__column--about .widget .textwidget p,
footer.mayl-footer .mayl-footer__column--about .widget .custom-html-widget p {
  margin: 0 0 8px;
}
.mayl-footer .widget img { max-width: 100%; height: auto; }

/* One current FULL PAGE Headliner, existing 1200x675 art never cropped. */
.mayl-footer-ad {
  padding: 0;
  margin: 6px 0 0;
  border: 1px solid rgba(255,255,255,.8);
  border-radius: 9px;
  background: #fff;
  color: #23354c;
  overflow: hidden;
  box-shadow: 0 3px 14px rgba(7,35,77,.13);
}
.mayl-footer-ad__heading {
  padding: 7px 12px;
  background: #dce8fa;
  color: #1b3963;
  font-size: 14px;
  line-height: 1.35;
  font-weight: 700;
}
.mayl-footer-ad__heading span { color: #3569ae; padding-right: 5px; }
.mayl-footer-ad__card { margin: 0; padding: 0; }
.mayl-footer-ad__media {
  display: block;
  width: 100%;
  text-decoration: none;
  border: 0;
  background: #fff;
  overflow: hidden;
}
.mayl-footer-ad__media img,
.mayl-footer-ad__media img.mayl-web-ad-artwork,
.mayl-footer-ad__media img.mayl-footer-ad__image {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto !important;
  max-height: none !important;
  margin: 0 auto;
  border: none;
  border-radius: 0;
  object-fit: contain !important;
  aspect-ratio: auto !important;
}
.mayl-footer-ad__body { padding: 7px 12px 9px; }
.mayl-footer-ad__badge { margin: 0 0 5px; line-height: 1; }
.mayl-footer-ad__badge .mayl-advertising-badge-link { display: inline-block; }
.mayl-footer .mayl-footer-ad__name { margin: 4px 0 2px; font-size: 15.5px !important; line-height: 1.4; font-weight: 600; color: #263a53; }
.mayl-footer-ad__name a,
.mayl-footer-ad__action { color: #224e8b !important; text-decoration: none !important; }
.mayl-footer-ad__action { display: inline-block; font-size: 14px; padding: 4px 0 0; font-weight: 600; }
.mayl-footer-ad__name a:hover,
.mayl-footer-ad__action:hover { color: #16447d !important; text-decoration: underline !important; }

/* Use the current social URLs and icon images, not decorative dead links. */
.mayl-footer__social {
  padding: 7px 0 8px;
  margin-top: 7px;
  border-top: 1px solid rgba(255,255,255,.4);
}
.mayl-footer__social ul {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}
.mayl-footer__social li { margin: 0; padding: 0; }
.mayl-footer__social a {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,.88);
  border-radius: 6px;
  background: rgba(255,255,255,.09);
  color: #fff !important;
  font-size: 12px;
  text-decoration: none;
  transition: background-color .15s ease;
}
/* ListingPro outputs PNG icon tags; keep them legible irrespective of theme defaults. */
.mayl-footer__social .icon,
.mayl-footer__social a > img { vertical-align: middle; }
.mayl-footer__social a:hover,
.mayl-footer__social a:focus-visible { background-color: rgba(255,255,255,.22); }
/* Accessible inline SVG replaces only the legacy Twitter bird icon. */
.mayl-footer__social .mayl-footer__x-mark {
  display: block;
  width: 22px;
  height: 22px;
  flex: none;
  color: #fff;
}
.mayl-footer__social a img { display: block; width: 23px !important; height: 23px !important; max-width: 23px; max-height: 23px; object-fit: contain; filter: brightness(0) invert(1); opacity: 1; }
.mayl-footer__bottom { background: #3d4b5b; padding: 10px 0; }
.mayl-footer__copyright,
.mayl-footer__copyright p { display: block; text-align: center; margin: 0; color: #fff; font-size: 13px; line-height: 1.5; }
.mayl-footer__copyright a { color: #fff !important; text-decoration: underline; }
.mayl-footer a:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

@media (max-width: 1299px) {
  .mayl-footer__inner { width: min(1100px, calc(100% - 48px)); }
  .mayl-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 24px; }
  .mayl-footer__column { --mayl-pad-left: 20px; --mayl-pad-right: 20px; padding: 0 var(--mayl-pad-right) 0 var(--mayl-pad-left); }
  .mayl-footer__column:nth-child(odd) { --mayl-pad-left: 0px; border-left: 0; }
  .mayl-footer__column:nth-child(even) { --mayl-pad-right: 0px; border-left: 1px solid rgba(255,255,255,.35); }
  .mayl-footer__column--about { align-self: start; }
  .mayl-footer__column--quick .menu,
  .mayl-footer__column--quick .widget_nav_menu ul { columns: 2; }
}
@media (max-width: 700px) {
  .mayl-footer__main { padding-top: 23px; }
  .mayl-footer__inner { width: min(560px, calc(100% - 36px)); }
  .mayl-footer__grid { grid-template-columns: minmax(0, 1fr); row-gap: 0; }
  .mayl-footer__column,
  .mayl-footer__column:nth-child(odd),
  .mayl-footer__column:nth-child(even) {
    border: 0;
    border-bottom: 1px solid rgba(255,255,255,.29);
    --mayl-pad-left: 0px;
    --mayl-pad-right: 0px;
    padding: 0 0 16px;
    margin: 0 0 16px;
  }
  .mayl-footer__column:last-child { border-bottom: 0; padding-bottom: 0; margin-bottom: 0; }
  .mayl-footer .widget-title h2, .mayl-footer .widget h2, footer.mayl-footer .mayl-footer__column > .mayl-footer__heading { font-size: 19px !important; }
  .mayl-footer .widget li a { min-height: 40px; padding: 7px 0; line-height: 1.4; }
  .mayl-footer__social { margin-top: 18px; padding-bottom: 17px; }
  .mayl-footer__bottom { padding: 14px 0; }
}
@media (max-width: 340px) {
  .mayl-footer__column--quick .menu,
  .mayl-footer__column--quick .widget_nav_menu ul { columns: 1; }
  .mayl-footer__inner { width: calc(100% - 32px); }
}
@media (prefers-reduced-motion: reduce) { .mayl-footer__social a { transition: none; } }
