/* Find a Home: keep live Supabase text inside the original Silex demo rows */

#idl8l43-4 [id^="icsrq2c"] *,
#idl8l43-4 [id^="icsrq2c"] {
  min-width: 0;
  box-sizing: border-box;
}

/* Original title row */
#idl8l43-4 [id^="ixpt3iz-6"] {
  min-width: 0;
  overflow: hidden;
}

#idl8l43-4 [id^="ixpt3iz-6"] h3 {
  display: block;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Original location row */
#idl8l43-4 [id^="ixpt3iz-2"] {
  min-width: 0;
  overflow: hidden;
}

#idl8l43-4 [id^="ixpt3iz-2"] .silex-default-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Original price row */
#idl8l43-4 [id^="ixpt3iz-3-4"] {
  min-width: 0;
  overflow: hidden;
}

#idl8l43-4 [id^="ixpt3iz-3-4"] h3 {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Original amenities row and its existing buttons */
#idl8l43-4 [id^="ixpt3iz-3-3-4"] {
  min-width: 0;
  overflow: hidden;
  flex-wrap: nowrap;
}

#idl8l43-4 [id^="ixpt3iz-3-3-4"] button {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---------------------------------------------------------------------------
   The remaining demo cards repeat the same row structure with different Silex
   id suffixes (title row ixpt3iz-4-*, price row ixpt3iz-3-2-*, amenities row
   ixpt3iz-3-3-*). Without these rules a long live title escapes its fixed
   359px card and overlaps the image, price, badges, Save and View controls.
   Same single-line truncation with an ellipsis, same card dimensions.
--------------------------------------------------------------------------- */

/* Original title row of every other card */
#idl8l43-4 [id^="ixpt3iz-4"] {
  min-width: 0;
  overflow: hidden;
}

#idl8l43-4 [id^="ixpt3iz-4"] h3 {
  display: block;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Verified badge keeps its own width instead of being squeezed to 0px */
#idl8l43-4 [id^="iqlnoyn"] {
  flex: none;
}

/* Original price row of every other card */
#idl8l43-4 [id^="ixpt3iz-3-2"] {
  min-width: 0;
  overflow: hidden;
}

#idl8l43-4 [id^="ixpt3iz-3-2"] h3 {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Original amenities row of every other card */
#idl8l43-4 [id^="ixpt3iz-3-3"] {
  min-width: 0;
  overflow: hidden;
  flex-wrap: nowrap;
}

#idl8l43-4 [id^="ixpt3iz-3-3"] button {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Homepage Featured Accommodation — location row: match Find a Home card behavior/spacing (scoped)
   Preserves original row layout, typography, alignment and proportions; prevents overflow. */
#sh-home-featured-root [id^="ixpt3iz-2"] {
  display: flex;
  align-items: center;
  height: 25px;
  min-height: 0;
  column-gap: 3px;
  row-gap: 0;
  width: 100%;
  overflow: hidden;
  flex-wrap: nowrap;
}
#sh-home-featured-root [id^="ixpt3iz-2"] > h3 {
  display: none !important;
}
#sh-home-featured-root [id^="ixpt3iz-2"] .silex-default-text {
  margin: 0;
  padding: 3px 0;
  min-width: 0;
  color: #174d39;
  font-family: "DM Sans", sans-serif;
  font-size: 14px;
  line-height: normal;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 0 1 auto;
}
/* Keep separator compact and visible between location and university */
#sh-home-featured-root [id^="ixpt3iz-2"] .silex-default-text:nth-of-type(3) {
  flex: 0 0 auto;
  overflow: visible;
  text-overflow: clip;
  padding: 3px 0;
}
#sh-home-featured-root [id^="ixpt3iz-2"] .silex-default-text:nth-of-type(3) span {
  color: rgb(113, 128, 120);
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1;
}
/* Allow long area/university to truncate gracefully within the original row */
#sh-home-featured-root [id^="ixpt3iz-2"] .silex-default-text:nth-of-type(1),
#sh-home-featured-root [id^="ixpt3iz-2"] .silex-default-text:nth-of-type(4) {
  flex-shrink: 1;
}
#sh-home-featured-root [id^="ixpt3iz-2"] .silex-default-text:nth-of-type(2) {
  flex: 0 0 auto;
  max-width: 40%;
}

/* Homepage Featured Accommodation — property title: show complete name when possible (scoped)
   Wraps naturally (up to two lines) without unnecessary ellipsis; keeps original style. */
#sh-home-featured-root [id^="ixpt3iz-6"],
#sh-home-featured-root [id^="ixpt3iz-4"] {
  height: auto !important;
  min-height: 35px;
  max-height: 44px; /* ~2 lines to stay within card */
  align-items: flex-start;
  overflow: hidden;
}
#sh-home-featured-root [id^="ixpt3iz-6"] h3,
#sh-home-featured-root [id^="ixpt3iz-4"] h3 {
  display: block;
  overflow: hidden;
  white-space: normal !important;
  text-overflow: clip !important;
  font-family: Manrope, "DM Sans", sans-serif;
  font-size: 1.05rem;
  line-height: 1.2;
  margin: 0;
  width: 100%;
  min-width: 0;
  max-height: 2.4em; /* 2 lines */
  overflow-wrap: anywhere;
  word-break: break-word;
}
/* Keep verified badge (if present) aligned without squeezing title */
#sh-home-featured-root [id^="ixpt3iz-6"] [title="Verified landlord"],
#sh-home-featured-root [id^="ixpt3iz-4"] [title="Verified landlord"] {
  flex: none;
  align-self: flex-start;
  margin-top: 1px;
}
