/* Message / call CTAs — phone visible + message icon */
.swmo-msg-icon {
  display: inline-block;
  width: 1.1em;
  height: 1.1em;
  flex-shrink: 0;
  vertical-align: -0.15em;
}

.swmo-msg-cta,
a.header-nav-message,
.lp-mobile-message {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  text-decoration: none;
}

.swmo-msg-cta__inner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  width: 100%;
}

.swmo-msg-cta__label {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.15;
  text-align: left;
}

.swmo-msg-cta__phone {
  font-size: 0.82em;
  font-weight: 800;
  letter-spacing: 0.01em;
}

a.header-nav-message {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--navy, #071526);
  padding: 0.35rem 0.5rem;
  border-radius: 8px;
  border: none;
  background: transparent;
  cursor: pointer;
  white-space: nowrap;
}

.site-zillow .header-nav a.header-nav-message {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

a.header-nav-message:hover,
a.header-nav-message:focus-visible {
  color: var(--gold-dark, #a8842a);
}

body.listing-modal-open #listing-modal .lp-mobile-message {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  min-height: 2.5rem;
  padding: 0.35rem 0.5rem;
  border-radius: 10px;
  background: linear-gradient(145deg, var(--gold, #c9a24d), var(--gold-bright, #d4af37));
  color: var(--navy, #071526);
  text-decoration: none;
  flex-shrink: 0;
}

body.listing-modal-open #listing-modal .lp-mobile-message .swmo-msg-icon {
  width: 1.25rem;
  height: 1.25rem;
}

body.listing-modal-open #listing-modal .lp-sidebar-connect__link--message {
  background: linear-gradient(145deg, #071526, #0f2844) !important;
  border-color: #071526 !important;
  color: #fff !important;
  gap: 0.35rem !important;
}

body.listing-modal-open #listing-modal .lp-sidebar-connect__link--message:hover {
  filter: brightness(1.08);
}

body.listing-modal-open #listing-modal .lp-sidebar-connect__link--call {
  gap: 0.35rem !important;
}

body.listing-modal-open #listing-modal .listing-mobile-cta-bar__message {
  flex: 1 1 0 !important;
  min-width: 0 !important;
  min-height: 48px !important;
  padding: 0.45rem 0.55rem !important;
}

body.listing-modal-open #listing-modal .listing-mobile-cta-bar__message .swmo-msg-cta__label {
  align-items: center;
  text-align: center;
}

.lp-tour-section__contact-alt {
  margin: 0.85rem 0 0;
  font-size: 0.9rem;
  line-height: 1.45;
  color: #4b5563;
  text-align: center;
}

.lp-tour-section__contact-alt a {
  font-weight: 700;
  color: var(--navy, #071526);
}

.lp-tour-message-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

@media (max-width: 768px) {
  .site-zillow a.header-nav-message {
    display: inline-flex;
    font-size: 0.72rem;
    padding: 0.28rem 0.4rem;
  }
  .site-zillow a.header-nav-message .swmo-msg-cta__phone {
    display: none;
  }
}
