/* Homepage Featured listings gallery only. Preserve iHomefinder card layout. */
.ihf-gallery-slider .ihf-listing-result-badge-fav,
.ihf-gallery-slider .ihf-listing-result-badges,
.ihf-gallery-slider .ihf-listing-result-info > .ui-grid-item:last-child {
  display: none !important;
}

/* The native type shares a wrapper with the MLS number. Let only the type
   escape into the photo corner without adding a metadata row below the card. */
.ihf-gallery-slider .ihf-listing-result-info > .ihf-prop-info-container,
.ihf-gallery-slider .ihf-prop-info-container > .ui-grid-container {
  display: contents !important;
}

.ihf-gallery-slider .ihf-listing-result-number {
  display: none !important;
}

.ihf-gallery-slider .ihf-listing-result-prop-type {
  position: absolute;
  z-index: 3;
  top: 8px;
  left: 8px;
  display: inline-flex !important;
  align-items: center;
  box-sizing: border-box;
  width: max-content !important;
  max-width: calc(100% - 16px);
  margin: 0 !important;
  padding: 5px 8px !important;
  border-radius: 4px;
  background: #203b42;
  pointer-events: none;
}

.ihf-gallery-slider .ihf-listing-result-prop-type p {
  margin: 0;
  color: #fff !important;
  font-family: Manrope, sans-serif;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  white-space: normal;
}

.ihf-gallery-slider .ihf-listing-result-info {
  box-sizing: border-box;
  width: 100%;
  margin: 0 !important;
  padding: 16px 16px 20px !important;
  text-align: left;
}

.ihf-gallery-slider .ihf-listing-result-info > .ui-grid-item {
  box-sizing: border-box;
  width: 100%;
  margin: 0 !important;
  padding: 0 !important;
}

.ihf-gallery-slider .ihf-listing-result-price,
.ihf-gallery-slider .ihf-listing-result-price > .ui-grid-item {
  box-sizing: border-box;
  width: 100%;
  margin: 0 !important;
  padding: 0 !important;
}

.ihf-gallery-slider .ihf-listing-result-price p {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.ihf-gallery-slider .ihf-listing-result-info > .ihf-listing-result-bed-bath-sq-container {
  margin-top: 8px !important;
}

.ihf-gallery-slider .ihf-listing-result-info > .ihf-listing-result-address-container {
  margin-top: 12px !important;
}

.ihf-gallery-slider .ihf-listing-result-address .ihf-gallery-street-name + .ihf-gallery-street-name p {
  font-size: 14px;
  line-height: 1.5;
}

@media (min-width: 768px) {
  .ihf-gallery-slider .ihf-listing-result-price p {
    font-size: 24px;
  }
}
