/* Flagship Rentals — even property cards on Home (16991) & Our Rentals (18105)
   Scoped to columns that contain both a card image and VIEW PROPERTY button.
   Added/strengthened 2026-11-09. */
body.home .et_pb_row:has(.et_pb_column_1_2 .et_pb_image):has(.et_pb_column_1_2 .et_pb_button),
body.page-id-16991 .et_pb_row:has(.et_pb_column_1_2 .et_pb_image):has(.et_pb_column_1_2 .et_pb_button),
body.page-id-18105 .et_pb_row:has(.et_pb_column_1_2 .et_pb_image):has(.et_pb_column_1_2 .et_pb_button) {
  display: flex !important;
  flex-wrap: wrap;
  align-items: stretch;
}

body.home .et_pb_column_1_2:has(.et_pb_image):has(.et_pb_button),
body.page-id-16991 .et_pb_column_1_2:has(.et_pb_image):has(.et_pb_button),
body.page-id-18105 .et_pb_column_1_2:has(.et_pb_image):has(.et_pb_button) {
  display: flex !important;
  flex-direction: column !important;
  float: none !important;
  background-color: #ffffff;
}

body.home .et_pb_column_1_2:has(.et_pb_image):has(.et_pb_button) .et_pb_image,
body.page-id-16991 .et_pb_column_1_2:has(.et_pb_image):has(.et_pb_button) .et_pb_image,
body.page-id-18105 .et_pb_column_1_2:has(.et_pb_image):has(.et_pb_button) .et_pb_image {
  width: 100% !important;
  margin: 0 !important;
}

body.home .et_pb_column_1_2:has(.et_pb_image):has(.et_pb_button) .et_pb_image .et_pb_image_wrap,
body.page-id-16991 .et_pb_column_1_2:has(.et_pb_image):has(.et_pb_button) .et_pb_image .et_pb_image_wrap,
body.page-id-18105 .et_pb_column_1_2:has(.et_pb_image):has(.et_pb_button) .et_pb_image .et_pb_image_wrap {
  display: block !important;
  position: relative !important;
  width: 100% !important;
  aspect-ratio: 4 / 3 !important;
  height: auto !important;
  overflow: hidden !important;
  line-height: 0 !important;
}

body.home .et_pb_column_1_2:has(.et_pb_image):has(.et_pb_button) .et_pb_image .et_pb_image_wrap img,
body.page-id-16991 .et_pb_column_1_2:has(.et_pb_image):has(.et_pb_button) .et_pb_image .et_pb_image_wrap img,
body.page-id-18105 .et_pb_column_1_2:has(.et_pb_image):has(.et_pb_button) .et_pb_image .et_pb_image_wrap img {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover !important;
  object-position: center !important;
  display: block !important;
}

body.home .et_pb_column_1_2:has(.et_pb_image):has(.et_pb_button) .et_pb_text,
body.page-id-16991 .et_pb_column_1_2:has(.et_pb_image):has(.et_pb_button) .et_pb_text,
body.page-id-18105 .et_pb_column_1_2:has(.et_pb_image):has(.et_pb_button) .et_pb_text {
  margin-top: 0 !important;
  padding: 12px 30px 8px 30px !important;
  min-height: 0 !important;
}

body.home .et_pb_column_1_2:has(.et_pb_image):has(.et_pb_button) .et_pb_text h2,
body.page-id-16991 .et_pb_column_1_2:has(.et_pb_image):has(.et_pb_button) .et_pb_text h2,
body.page-id-18105 .et_pb_column_1_2:has(.et_pb_image):has(.et_pb_button) .et_pb_text h2 {
  min-height: 2.6em;
  margin: 0 0 0.35em 0 !important;
  line-height: 1.3;
}

body.home .et_pb_column_1_2:has(.et_pb_image):has(.et_pb_button) .et_pb_button_module_wrapper,
body.page-id-16991 .et_pb_column_1_2:has(.et_pb_image):has(.et_pb_button) .et_pb_button_module_wrapper,
body.page-id-18105 .et_pb_column_1_2:has(.et_pb_image):has(.et_pb_button) .et_pb_button_module_wrapper {
  margin-top: auto !important;
  margin-bottom: 28px !important;
  width: 100%;
}

@media (max-width: 980px) {
  body.home .et_pb_column_1_2:has(.et_pb_image):has(.et_pb_button),
  body.page-id-16991 .et_pb_column_1_2:has(.et_pb_image):has(.et_pb_button),
  body.page-id-18105 .et_pb_column_1_2:has(.et_pb_image):has(.et_pb_button) {
    width: 100% !important;
    margin-bottom: 24px;
  }
  body.home .et_pb_column_1_2:has(.et_pb_image):has(.et_pb_button) .et_pb_text h2,
  body.page-id-16991 .et_pb_column_1_2:has(.et_pb_image):has(.et_pb_button) .et_pb_text h2,
  body.page-id-18105 .et_pb_column_1_2:has(.et_pb_image):has(.et_pb_button) .et_pb_text h2 {
    min-height: 0;
  }
}
