/* KBM Core 1.9.9-rc.52 — mobile contact/dashboard route stability */
@media(max-width:782px){
  /* Single rental ad: one primary contact path only. Yellow owner-contact and
     navy price stay fixed; the redundant green call action is retired. */
  body.single-kbm_ad :is(
    [data-kbm-call],
    .kbm-ad-single-recode-contact-action.is-call,
    .kbm-mobile-call-button,
    .kbm-sticky-call-button,
    .kbm-call-fab,
    .kbm-contact-call-green,
    .kbm-single-call-green
  ){display:none!important;visibility:hidden!important;pointer-events:none!important}
  body.single-kbm_ad .kbm-ad-single-recode-contact-actions{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  body.single-kbm_ad .kbm-ad-single-recode-contact-revealed{display:none!important}
  body.single-kbm_ad .kbm-ad-single-recode-sheet-phone{min-height:54px!important;text-decoration:none!important;background:#f7f9fb!important;color:#0b2a3b!important;border-color:#dce4ea!important}
  body.single-kbm_ad .kbm-ad-single-recode-account-btn{display:inline-flex!important}
  body.single-kbm_ad .kbm-ad-single-recode-actionbar{flex-wrap:nowrap!important}

  /* Keep the contextual CTA clear of the compact footer. */
  body.single-kbm_ad .kbm-ad-single-recode-bottombar{transition:transform .2s ease,opacity .2s ease!important}
  body.single-kbm_ad.kbm-mcds52-footer-visible .kbm-ad-single-recode-bottombar,
  body.single-kbm_ad.kbm-mcds52-keyboard-open .kbm-ad-single-recode-bottombar{
    transform:translateY(calc(100% + 18px))!important;opacity:0!important;pointer-events:none!important
  }

  /* Custom auth/submit templates must never leave the primary '+' item alone. */
  body.kbm-mcds52-auth-submit :is(.kbm-mobile-bottom-nav,.kbm-app-bottom-nav,.kbm-quf-app-bar){display:none!important;visibility:hidden!important;pointer-events:none!important}
  body.kbm-mcds52-auth-submit :is(.kbm-quf-app-bar__item--primary,[data-key="submit"].kbm-quf-app-bar__item){display:none!important;visibility:hidden!important;pointer-events:none!important}

  /* Non-fixed account access for singular routes whose contextual CTA owns
     the bottom edge and therefore cannot use the global app bar. */

  /* Submit chooser utility buttons remain readable and do not create another
     fixed navigation layer. */
  .kbm-submit-router-links{display:flex!important;gap:8px!important;flex-wrap:wrap!important}
  .kbm-submit-router-links .kbm-submit-router-back{flex:1 1 140px!important;min-height:44px!important}
}
@media(max-width:380px){
  body.single-kbm_ad .kbm-ad-single-recode-icon-btn{width:44px!important;height:44px!important;min-width:44px!important}
}
@media(prefers-reduced-motion:reduce){body.single-kbm_ad .kbm-ad-single-recode-bottombar{transition:none!important}}
