/* Elementor owns the panel height; absolute positioning fills its image container. */
.elementor-element.yates-page-property-container {
  position: relative;
  overflow: hidden;
}

.yates-page-property-container > .elementor-widget-shortcode,
.yates-page-property-container > .e-con-inner > .elementor-widget-shortcode {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
}

.yates-page-property-container > .elementor-widget-shortcode > .elementor-widget-container,
.yates-page-property-container > .e-con-inner > .elementor-widget-shortcode > .elementor-widget-container,
.yates-page-property-container .elementor-shortcode {
  width: 100%;
  height: 100%;
}

.yates-page-property {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
  overflow: hidden;
  color: #fff;
  text-decoration: none;
}

.yates-page-property .yates-page-property__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

a.yates-page-property::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.35) 28%, transparent 65%);
  content: "";
  pointer-events: none;
}

.yates-page-property__details {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding: 32px;
  color: #fff;
  font-family: "EB Garamond", serif;
  font-size: clamp(20px, 1.7vw, 28px);
  line-height: 1.2;
  text-shadow: 0 1px 3px #000;
}

.yates-page-property__address {
  min-width: 0;
  overflow-wrap: anywhere;
}

.yates-page-property__price {
  flex-shrink: 0;
  text-align: right;
}

.yates-page-property:focus-visible {
  outline: 3px solid #fff;
  outline-offset: -6px;
}

@media (max-width: 767px) {
  .yates-page-property__details {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 24px;
  }
  .yates-page-property__price {
    text-align: left;
  }
}
