/* HOYRA presentation fixes. No account, listing or payment data is changed. */

/* Keep the composer in document flow so every reply remains readable. */
.hai .compose {
  position: static;
  margin-top: 20px;
}
.hai .grid > section,
.hai .grid > aside,
.hai .property,
.hai .property .info {
  min-width: 0;
}
.hai .property h3,
.hai .property strong,
.hai .top > div {
  overflow-wrap: anywhere;
}
.hai .property img { display: block; }
.hai .property .info { padding-top: 12px; }
.hai .compose textarea { scroll-margin-top: 150px; }
.hai .compose .actions { align-items: center; }
.hai .compose [data-send-status] { overflow-wrap: anywhere; }

/* Long imported titles remain in the link and on the full property page. */
.hy-home .hy-card .hy-title,
.hy-search .hy-card .hy-title,
.hp-card .hp-card-body h3 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  overflow-wrap: anywhere;
  line-height: 1.45;
}
.hy-home .hy-card .hy-title:focus-visible,
.hy-search .hy-card .hy-title:focus-within,
.hp-card .hp-card-body h3:focus-within {
  display: block;
  -webkit-line-clamp: unset;
  overflow: visible;
}
.hy-search .hy-card .hy-price,
.hp-card .hp-price { overflow-wrap: anywhere; }

/* Two predictable rows retain branding, discovery and account actions. */
@media (max-width: 760px) {
  .site-header .navbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    padding-top: 10px;
    padding-bottom: 10px;
    min-width: 0;
  }
  .site-header .navbar > .brand {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
    overflow-wrap: anywhere;
  }
  .site-header .navbar > .market-menu-toggle {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    min-width: 44px;
    min-height: 44px;
    margin: 0;
    font-size: 14px;
  }
  .site-header .navbar > .ha-nav {
    grid-column: 1;
    grid-row: 2;
    justify-self: start;
    min-width: 0;
    min-height: 44px;
    max-width: 100%;
    padding: 6px 8px;
    font-size: 12px;
    line-height: 1.35;
    white-space: normal;
    text-align: center;
  }
  .site-header .navbar > .nav-actions {
    grid-column: 2;
    grid-row: 2;
    justify-self: end;
    gap: 6px;
    min-width: 0;
  }
  .site-header .nav-actions .user-menu { position: static; }
  .site-header .nav-actions .user-dropdown {
    top: calc(100% + 4px);
    right: 0;
    width: min(300px, 100%);
    max-height: min(65dvh, 560px);
    overflow-wrap: anywhere;
  }
  .site-header .market-nav {
    max-height: calc(100dvh - 130px);
    overscroll-behavior: contain;
  }
  .site-header .user-button,
  .site-header .hoyra-notification-bell {
    min-width: 44px;
    min-height: 44px;
  }
  .site-header .nav-text-link,
  .site-header .list-property {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
  }
  .site-header .user-label,
  .site-header .dropdown-arrow { display: none; }
  .site-header .user-button { padding: 6px; }
  .site-header .list-property { padding: 9px 8px; font-size: 12px; }
  .site-header .register-link { display: none; }
  .hp-header { align-items: flex-start; }
  .hp-header nav { min-width: 0; }
}
@media (max-width: 380px) {
  .site-header .navbar > .ha-nav { font-size: 11px; padding: 6px; }
  .site-header .navbar > .nav-actions { gap: 4px; }
  .site-header .list-property { font-size: 11px; padding: 9px 7px; }
}
@media (max-width: 480px) {
  /* Leave more room for the conversation and the on-screen keyboard. */
  .site-header { position: static; }
  .hai .compose { padding: 14px; }
  .hai .compose textarea { min-height: 96px; }
}
