/* Students Home - listing text limits
   ---------------------------------------------------------------------------
   Long listing titles / locations written by landlords are clamped inside the
   existing listing cards and table rows so they can no longer overlap the
   image, price, badges, buttons or neighbouring cells. Truncated text ends
   with an ellipsis (…). Card sizes, colours, fonts, spacing, ids and class
   names are unchanged, and the complete title and description stay available
   through the existing View / Edit actions and the property details page. */

/* ---------------------------------------------------------------------------
   Saved homes cards (saved.html) - single line, same height as the demo card
--------------------------------------------------------------------------- */

.sv-title,
.sv-loc {
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.sv-badge {
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* ---------------------------------------------------------------------------
   Landlord listings table (mylistings.html) - two lines, then ellipsis
--------------------------------------------------------------------------- */

#mylist206la19 .shml-listing-title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  overflow-wrap: anywhere;
}

#mylist206la19 .shml-listing-location {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  line-clamp: 1;
  overflow: hidden;
  overflow-wrap: anywhere;
}

/* ---------------------------------------------------------------------------
   Admin listings table (adminlistings.html) - two lines, then ellipsis
--------------------------------------------------------------------------- */

#adminl212ad15 .sh-admin-listing-title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  overflow-wrap: anywhere;
}

/* ---------------------------------------------------------------------------
   Property details (property.html) - the full title and description are shown
   here, so they wrap instead of forcing a horizontal page scroll.
--------------------------------------------------------------------------- */

#prp6,
#prp7,
#prp10 {
  max-width: 100%;
  overflow-wrap: anywhere;
}
