/*
 * MR-031 verified icon-font replacement.
 *
 * These owned, request-free masks cover only glyph classes observed on the
 * eight allowlisted canonical routes. The PHP guard stays default-off and
 * retains Bricks' icon fonts everywhere else, including mapped agent sites,
 * MLS, authenticated sessions, admin and builder previews.
 */
body.meta-icon-font-retirement :where(
  [class^="ion-"],
  [class*=" ion-"],
  [class^="ti-"],
  [class*=" ti-"],
  .fa,
  .fas
) {
  font-family: inherit !important;
}

body.meta-icon-font-retirement :where(
  .ion-ios-search,
  .ion-logo-instagram,
  .ion-md-close-circle,
  .ti-close,
  .ti-facebook,
  .ti-twitter-alt,
  .ion-ios-arrow-back,
  .ion-ios-arrow-forward,
  .ion-md-bed,
  .ion-md-share,
  .fa-building,
  .fa-clock,
  .fa-comments,
  .fa-robot,
  .ion-ios-laptop,
  .ion-ios-people,
  .ion-ios-pin,
  .ion-md-microphone,
  .ion-md-people,
  .fa-circle-check,
  .fa-money-bill-1,
  .ion-ios-business,
  .ion-ios-trending-down,
  .ti-calendar,
  .ti-stats-up
)::before {
  -webkit-mask-image: var(--mr-icon-mask);
  -webkit-mask-position: center;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  background-color: currentColor;
  content: "" !important;
  display: inline-block;
  forced-color-adjust: auto;
  font-family: inherit !important;
  font-style: normal;
  height: 1em;
  line-height: 1;
  mask-image: var(--mr-icon-mask);
  mask-position: center;
  mask-repeat: no-repeat;
  mask-size: contain;
  vertical-align: -0.125em;
  width: 1em;
}

body.meta-icon-font-retirement .ion-ios-search::before {
  --mr-icon-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='m15.5 15.5 5 5'/%3E%3C/g%3E%3C/svg%3E");
}

body.meta-icon-font-retirement .ion-logo-instagram::before {
  --mr-icon-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='black' stroke-width='2'%3E%3Crect x='3' y='3' width='18' height='18' rx='5'/%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3C/g%3E%3Ccircle cx='17.5' cy='6.5' r='1.25'/%3E%3C/svg%3E");
}

body.meta-icon-font-retirement .ion-md-close-circle::before {
  --mr-icon-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='m9 9 6 6m0-6-6 6'/%3E%3C/g%3E%3C/svg%3E");
}

body.meta-icon-font-retirement .ti-close::before {
  --mr-icon-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='2' stroke-linecap='round' d='m5 5 14 14M19 5 5 19'/%3E%3C/svg%3E");
}

body.meta-icon-font-retirement .ti-facebook::before {
  --mr-icon-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M14 8h4V3.2c-.7-.1-2.9-.2-4.5-.2C10.2 3 8 5 8 8.7V12H4v5h4v7h5v-7h4.2l.8-5h-5V9.2c0-.8.3-1.2 1-1.2Z'/%3E%3C/svg%3E");
}

body.meta-icon-font-retirement .ti-twitter-alt::before {
  --mr-icon-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M22 5.8c-.7.3-1.5.5-2.3.6.8-.5 1.4-1.3 1.7-2.2-.8.5-1.6.8-2.6 1A4 4 0 0 0 12 8.8c0 .3 0 .6.1.9a11.4 11.4 0 0 1-8.3-4.2 4 4 0 0 0 1.2 5.4c-.6 0-1.2-.2-1.8-.5 0 2 1.5 3.7 3.4 4-.4.2-1 .2-1.8.1.6 1.7 2.1 2.9 4 2.9A8.1 8.1 0 0 1 3 19a11.4 11.4 0 0 0 17.6-9.6V9c.8-.6 1.4-1.2 1.9-2l-.5-1.2Z'/%3E%3C/svg%3E");
}

body.meta-icon-font-retirement .ion-ios-arrow-back::before,
body.meta-icon-font-retirement .ion-ios-arrow-forward::before {
  --mr-icon-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round' d='m15 4-8 8 8 8'/%3E%3C/svg%3E");
}

body.meta-icon-font-retirement .ion-ios-arrow-forward::before {
  transform: scaleX(-1);
}

body.meta-icon-font-retirement .ion-md-bed::before {
  --mr-icon-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 5h2v8h6V7h7a3 3 0 0 1 3 3v8h-2v-2H5v2H3V5Zm4 3h3v4H7V8Z'/%3E%3C/svg%3E");
}

body.meta-icon-font-retirement .ion-md-share::before {
  --mr-icon-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='18' cy='5' r='2.5'/%3E%3Ccircle cx='6' cy='12' r='2.5'/%3E%3Ccircle cx='18' cy='19' r='2.5'/%3E%3Cpath d='m8.2 10.8 7.6-4.5m-7.6 6.9 7.6 4.5'/%3E%3C/g%3E%3C/svg%3E");
}

body.meta-icon-font-retirement .fa-building::before,
body.meta-icon-font-retirement .ion-ios-business::before {
  --mr-icon-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 22V3h11v5h5v14h-7v-4h-3v4H4Zm3-15h2V5H7v2Zm4 0h2V5h-2v2ZM7 11h2V9H7v2Zm4 0h2V9h-2v2Zm-4 4h2v-2H7v2Zm4 0h2v-2h-2v2Zm5-3h2v-2h-2v2Zm0 4h2v-2h-2v2Z'/%3E%3C/svg%3E");
}

body.meta-icon-font-retirement .fa-clock::before {
  --mr-icon-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3.5 2'/%3E%3C/g%3E%3C/svg%3E");
}

body.meta-icon-font-retirement .fa-comments::before {
  --mr-icon-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 4h14a3 3 0 0 1 3 3v5a3 3 0 0 1-3 3H9l-5 4v-4H3a3 3 0 0 1-3-3V7a3 3 0 0 1 3-3Zm16 13c2.8 0 5-2.2 5-5V9l-2 1v2c0 2.8-2.2 5-5 5h-5l4 3v-3h3Z'/%3E%3C/svg%3E");
}

body.meta-icon-font-retirement .fa-robot::before {
  --mr-icon-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M11 2h2v3h4a4 4 0 0 1 4 4v10a3 3 0 0 1-3 3H6a3 3 0 0 1-3-3V9a4 4 0 0 1 4-4h4V2ZM7 8a2 2 0 0 0-2 2v7h14v-7a2 2 0 0 0-2-2H7Zm1 3h3v3H8v-3Zm5 0h3v3h-3v-3ZM8 19v1h8v-1H8Z'/%3E%3C/svg%3E");
}

body.meta-icon-font-retirement .ion-ios-laptop::before {
  --mr-icon-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 4h16v12h3v3a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2v-3h3V4Zm2 2v10h12V6H6Zm-2 12v1h16v-1H4Z'/%3E%3C/svg%3E");
}

body.meta-icon-font-retirement .ion-ios-people::before,
body.meta-icon-font-retirement .ion-md-people::before {
  --mr-icon-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 3a4 4 0 1 1 0 8 4 4 0 0 1 0-8Zm8 2a3 3 0 1 1 0 6 3 3 0 0 1 0-6ZM9 13c5 0 8 2.5 8 6v2H1v-2c0-3.5 3-6 8-6Zm8 .5c4 0 6 2 6 5V21h-4v-2c0-2-.7-3.8-2-5.2v-.3Z'/%3E%3C/svg%3E");
}

body.meta-icon-font-retirement .ion-ios-pin::before {
  --mr-icon-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill-rule='evenodd' d='M12 2a8 8 0 0 1 8 8c0 5.7-8 12-8 12S4 15.7 4 10a8 8 0 0 1 8-8Zm0 4a4 4 0 1 0 0 8 4 4 0 0 0 0-8Zm0 2a2 2 0 1 1 0 4 2 2 0 0 1 0-4Z'/%3E%3C/svg%3E");
}

body.meta-icon-font-retirement .ion-md-microphone::before {
  --mr-icon-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a4 4 0 0 1 4 4v6a4 4 0 0 1-8 0V6a4 4 0 0 1 4-4Zm-7 9h2v1a5 5 0 0 0 10 0v-1h2v1a7 7 0 0 1-6 6.9V21h4v2H7v-2h4v-2.1A7 7 0 0 1 5 12v-1Z'/%3E%3C/svg%3E");
}

body.meta-icon-font-retirement .fa-circle-check::before {
  --mr-icon-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='m8 12 2.5 2.5L16.5 8'/%3E%3C/g%3E%3C/svg%3E");
}

body.meta-icon-font-retirement .fa-money-bill-1::before {
  --mr-icon-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill-rule='evenodd' d='M2 5h20v14H2V5Zm3 2a3 3 0 0 1-1 2.2v5.6A3 3 0 0 1 5 17h14a3 3 0 0 1 1-2.2V9.2A3 3 0 0 1 19 7H5Zm7 1a4 4 0 1 1 0 8 4 4 0 0 1 0-8Zm-6 3h2v2H6v-2Zm10 0h2v2h-2v-2Z'/%3E%3C/svg%3E");
}

body.meta-icon-font-retirement .ion-ios-trending-down::before {
  --mr-icon-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round' d='m3 6 6 6 4-4 8 8m0-6v6h-6'/%3E%3C/svg%3E");
}

body.meta-icon-font-retirement .ti-calendar::before {
  --mr-icon-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill-rule='evenodd' d='M6 2h2v2h8V2h2v2h3v18H3V4h3V2Zm13 9H5v9h14v-9ZM5 6v3h14V6h-1v1h-2V6H8v1H6V6H5Z'/%3E%3C/svg%3E");
}

body.meta-icon-font-retirement .ti-stats-up::before {
  --mr-icon-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 13h4v8H3v-8Zm7-5h4v13h-4V8Zm7-5h4v18h-4V3Z'/%3E%3C/svg%3E");
}

@media (forced-colors: active) {
  body.meta-icon-font-retirement :where(
    .ion-ios-search,
    .ion-logo-instagram,
    .ion-md-close-circle,
    .ti-close,
    .ti-facebook,
    .ti-twitter-alt,
    .ion-ios-arrow-back,
    .ion-ios-arrow-forward,
    .ion-md-bed,
    .ion-md-share,
    .fa-building,
    .fa-clock,
    .fa-comments,
    .fa-robot,
    .ion-ios-laptop,
    .ion-ios-people,
    .ion-ios-pin,
    .ion-md-microphone,
    .ion-md-people,
    .fa-circle-check,
    .fa-money-bill-1,
    .ion-ios-business,
    .ion-ios-trending-down,
    .ti-calendar,
    .ti-stats-up
  )::before {
    background-color: CanvasText;
  }
}
