/* MMBRVT-P27.1: exact P24 route + 5-button mobile seller contact bar.
   No generic navbar modifications. This stylesheet only acts when the
   detail-specific mmb-contact-nav-p27 exists in the current document. */
@media screen and (max-width:991.98px){
  html body nav.alogiare-mobile-bottom-nav.alogiare-mobile-bottom-nav--detail-v2.mmb-contact-nav-p27,
  html body.mmbl-has-bar nav.alogiare-mobile-bottom-nav.alogiare-mobile-bottom-nav--detail-v2.mmb-contact-nav-p27,
  html body:has(.mmbl-bar) nav.alogiare-mobile-bottom-nav.alogiare-mobile-bottom-nav--detail-v2.mmb-contact-nav-p27,
  html body.ct5-listing-detail-page nav.alogiare-mobile-bottom-nav.alogiare-mobile-bottom-nav--detail-v2.mmb-contact-nav-p27{
    display:grid!important;
    visibility:visible!important;opacity:1!important;
    grid-template-columns:repeat(5,minmax(0,1fr))!important;
    position:fixed!important;top:auto!important;left:0!important;right:0!important;bottom:0!important;
    height:calc(78px + env(safe-area-inset-bottom,0px))!important;
    min-height:calc(78px + env(safe-area-inset-bottom,0px))!important;
    max-height:none!important;
    width:100%!important;transform:none!important;
    padding:6px 8px calc(7px + env(safe-area-inset-bottom,0px))!important;
    align-items:end!important;isolation:isolate!important;
    background:#fff!important;box-shadow:0 -8px 22px rgba(15,23,42,.13)!important;
    z-index:2147482000!important;
  }
  html body nav.mmb-contact-nav-p27 a.mmb-contact-nav-p27__item,
  html body nav.mmb-contact-nav-p27 button.mmb-contact-nav-p27__item,
  html body nav.mmb-contact-nav-p27 span.mmb-contact-nav-p27__item{
    display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:end!important;
    text-align:center!important;min-width:0!important;min-height:60px!important;gap:4px!important;
    margin:0!important;padding:1px 0 4px!important;transform:none!important;
  }
  html body nav.mmb-contact-nav-p27 .alogiare-bottom-call .mmb-contact-nav-p27__icon--call,
  html body nav.mmb-contact-nav-p27 .mmb-contact-nav-p27__item.alogiare-bottom-call .mmb-contact-nav-p27__icon--call{
    display:flex!important;align-items:center!important;justify-content:center!important;
    background:#16a34a!important;color:#fff!important;
    width:58px!important;height:58px!important;min-height:58px!important;min-width:58px!important;
    border-radius:50%!important;margin-top:-17px!important;
    box-shadow:0 8px 20px rgba(22,163,74,.3)!important;
  }
  html body:has(nav.mmb-contact-nav-p27) .mmbl-bar,
  html body:has(nav.mmb-contact-nav-p27) .mbr-p19-mobile-contact,
  html body:has(nav.mmb-contact-nav-p27) .ct5-mobile-conversion-bar,
  html body:has(nav.mmb-contact-nav-p27) .w11-mobile-cta-bar{display:none!important;}
  html body:has(nav.mmb-contact-nav-p27){
    padding-bottom:calc(95px + env(safe-area-inset-bottom,0px))!important;
  }
  html body:has(nav.mmb-contact-nav-p27) .alogiare-footer{
    padding-bottom:calc(95px + env(safe-area-inset-bottom,0px))!important;
  }
  html body .alogiare-bottom-sheet[data-alogiare-sheet-panel="detail-owner-contact"]{
    z-index:2147482900!important;
  }
}
@media(min-width:992px){
  html body nav.mmb-contact-nav-p27{display:none!important;}
}


/* MMBRVT-P27.2: exact same FIXED 58px footprint as the regular
 * .alogiare-mobile-bottom-nav on home/category pages. The middle Call
 * button is allowed to protrude above the bar without enlarging it.
 * This block deliberately comes after P27/P27.1 overrides. */
@media screen and (max-width:991.98px) {
  html body nav.alogiare-mobile-bottom-nav.alogiare-mobile-bottom-nav--detail-v2.mmb-contact-nav-p27,
  html body.mmbl-has-bar nav.alogiare-mobile-bottom-nav.alogiare-mobile-bottom-nav--detail-v2.mmb-contact-nav-p27,
  html body:has(.mmbl-bar) nav.alogiare-mobile-bottom-nav.alogiare-mobile-bottom-nav--detail-v2.mmb-contact-nav-p27,
  html body.ct5-listing-detail-page nav.alogiare-mobile-bottom-nav.alogiare-mobile-bottom-nav--detail-v2.mmb-contact-nav-p27 {
    box-sizing: border-box !important;
    height: 58px !important;
    min-height: 58px !important;
    max-height: 58px !important;
    padding: 5px 6px !important;
    grid-template-columns: repeat(5,minmax(0,1fr)) !important;
    align-items: center !important;
    border-radius: 18px 18px 0 0 !important;
    box-shadow: 0 -8px 28px rgba(15,23,42,.14) !important;
  }
  html body nav.mmb-contact-nav-p27 .mmb-contact-nav-p27__item,
  html body nav.mmb-contact-nav-p27 a.mmb-contact-nav-p27__item,
  html body nav.mmb-contact-nav-p27 button.mmb-contact-nav-p27__item,
  html body nav.mmb-contact-nav-p27 span.mmb-contact-nav-p27__item {
    box-sizing: border-box !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-direction: column !important;
    gap: 2px !important;
    padding: 0 !important;
    margin: 0 !important;
    font-size: 10.5px !important;
    font-weight: 800 !important;
    line-height: 1.1 !important;
  }
  html body nav.mmb-contact-nav-p27 .mmb-contact-nav-p27__item > span {
    font-size: 10.5px !important;
    font-weight: 800 !important;
    line-height: 1.1 !important;
    margin: 0 !important;
  }
  html body nav.mmb-contact-nav-p27 .mmb-contact-nav-p27__icon {
    box-sizing: border-box !important;
    width: 24px !important;
    height: 24px !important;
    min-width: 0 !important;
    min-height: 0 !important;
    max-width: 24px !important;
    max-height: 24px !important;
    padding: 0 !important;
    margin: 0 !important;
    font-size: 20px !important;
    line-height: 1 !important;
  }
  /* Match the 42px central circle of the regular menu. Only this item
     lifts 8px; the fixed white bar remains exactly 58px tall. */
  html body nav.mmb-contact-nav-p27 .mmb-contact-nav-p27__item.alogiare-bottom-call {
    position: relative !important;
    margin-top: -8px !important;
  }
  html body nav.mmb-contact-nav-p27 .mmb-contact-nav-p27__item.alogiare-bottom-call .mmb-contact-nav-p27__icon--call {
    box-sizing: border-box !important;
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    min-height: 42px !important;
    max-width: 42px !important;
    max-height: 42px !important;
    flex: 0 0 42px !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 22px !important;
    border-radius: 50% !important;
  }
  html body:has(nav.mmb-contact-nav-p27) {
    padding-bottom: 58px !important;
  }
  html body:has(nav.mmb-contact-nav-p27) .alogiare-footer {
    padding-bottom: 58px !important;
  }
}
