/**
 * t1176u — Mobile property sticky agent bar: clear Concierge lower-right safe zone.
 * Production (sundancere.com). Scope: single property, max-width 767.98px only.
 * Does NOT alter #concierge-root / Concierge launcher size, position, or behavior.
 * Desktop + tablet (≥768px) unchanged. Rollback: delete this file + enqueue mu-plugin.
 */

@media (max-width: 767.98px) {
  /* Shortened lower-left bar; leave ~80px + safe-area for Concierge (56px launcher). */
  body.single-property .mobile-property-contact.d-block,
  body.single-property .mobile-property-contact {
    left: 0 !important;
    right: auto !important;
    bottom: 0 !important;
    width: auto !important;
    max-width: calc(100vw - 80px - env(safe-area-inset-right, 0px)) !important;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom, 0px)) 10px !important;
    border-top: 1px solid #dce0e0 !important;
    border-right: 1px solid #dce0e0 !important;
    border-radius: 0 12px 0 0 !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    /* Keep below typical floating chat launchers; do not raise over Concierge. */
    z-index: 5 !important;
  }

  body.single-property .mobile-property-contact > .d-flex {
    align-items: center !important;
    gap: 8px !important;
    flex-wrap: nowrap !important;
    max-width: 100% !important;
  }

  body.single-property .mobile-property-contact .agent-details {
    flex: 1 1 auto !important;
    min-width: 0 !important;
  }

  body.single-property .mobile-property-contact .agent-image img {
    width: 40px !important;
    height: 40px !important;
    object-fit: cover !important;
  }

  body.single-property .mobile-property-contact .agent-name {
    font-size: 14px !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 36vw !important;
  }

  /* Compact: one primary contact control (envelope → modal). Hide tel on mobile bar only. */
  body.single-property .mobile-property-contact > .d-flex > a.btn[href^="tel:"] {
    display: none !important;
  }

  body.single-property .mobile-property-contact .btn {
    width: 44px !important;
    min-width: 44px !important;
    height: 44px !important;
    line-height: 44px !important;
    margin-left: 0 !important;
    flex: 0 0 44px !important;
    padding: 0 !important;
  }

  body.single-property .mobile-property-contact .btn i {
    font-size: 18px !important;
    top: 0 !important;
  }
}

/* Explicit no-op reminder: tablet/desktop left to Houzez/Bootstrap (d-lg-none hides ≥992). */
@media (min-width: 768px) {
  /* intentionally empty — do not restyle .mobile-property-contact */
}
