.user_dashboard_panel .form-control {
    margin-bottom: 20px;
  }

/* Property cards: square images. */
#wpestate_display_item_list_top_bar_content_wrapper .items_shortcode_wrapper_grid {
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  align-items: start;
}

#wpestate_display_item_list_top_bar_content_wrapper .items_shortcode_wrapper_grid > .listing_wrapper {
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
}

#wpestate_display_item_list_top_bar_content_wrapper .items_shortcode_wrapper_grid > .listing_wrapper .property_listing {
  width: 100% !important;
  max-width: none !important;
}

@media (max-width: 1399px) {
  #wpestate_display_item_list_top_bar_content_wrapper .items_shortcode_wrapper_grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 991px) {
  #wpestate_display_item_list_top_bar_content_wrapper .items_shortcode_wrapper_grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 767px) {
  #wpestate_display_item_list_top_bar_content_wrapper .items_shortcode_wrapper_grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 480px) {
  #wpestate_display_item_list_top_bar_content_wrapper .items_shortcode_wrapper_grid {
    grid-template-columns: 1fr !important;
  }
}

 .listing_wrapper.property_unit_v3 .property_listing .listing-unit-img-wrapper {
  width: 100% !important;
  max-width: 100% !important;
  aspect-ratio: 1 / 1 !important;
  height: auto !important;
  min-height: 0 !important;
  float: none !important;
  display: block !important;
  position: relative !important;
  overflow: hidden !important;
  margin-bottom: 14px;
  border-radius: 14px;
}

.listing_wrapper.property_unit_v3 .property_listing .listing-unit-img-wrapper .property_unit_carousel,
.listing_wrapper.property_unit_v3 .property_listing .listing-unit-img-wrapper .carousel-inner {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  position: absolute !important;
  inset: 0 !important;
  display: block !important;
}

.listing_wrapper.property_unit_v3 .property_listing .listing-unit-img-wrapper > a:has(> img) {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  position: absolute !important;
  inset: 0 !important;
  display: block !important;
}

.listing_wrapper.property_unit_v3 .property_listing .listing-unit-img-wrapper .carousel-inner > .item,
.listing_wrapper.property_unit_v3 .property_listing .listing-unit-img-wrapper .carousel-inner > .item > a {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
}

.listing_wrapper.property_unit_v3 .property_listing .listing-unit-img-wrapper .carousel-inner > .item > a {
  display: block !important;
}

.listing_wrapper.property_unit_v3 .property_listing .listing-unit-img-wrapper img,
.listing_wrapper.property_unit_v3 .property_listing .listing-unit-img-wrapper .img-responsive,
.listing_wrapper.property_unit_v3 .property_listing .listing-unit-img-wrapper .wp-post-image {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  min-height: 0 !important;
  display: block !important;
  object-fit: cover !important;
  border-radius: 14px;
}

/* Keep similar-listing cards more compact without changing cards elsewhere. */
.similar_listings_wrapper_flex > .listing_wrapper.property_unit_v3 {
  flex: 0 1 300px !important;
  width: 300px !important;
  max-width: 300px !important;
}

@media (max-width: 767px) {
  .similar_listings_wrapper_flex > .listing_wrapper.property_unit_v3 {
    flex-basis: 100% !important;
    width: 100% !important;
    max-width: 100% !important;
  }
}
