/* ===== BUILDS PAGE - HERO SECTION IMAGE FIX ===== */
.properties-hero-section {
  position: relative; /* Needed for absolute positioning of children like bg-wrap */
  overflow: hidden; /* To contain the absolutely positioned bg-wrap if it tries to exceed bounds */
}

.properties-hero-bg-wrap {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden; /* In case image object-fit needs it */
  z-index: -1; /* Ensure it's behind hero content */
}

.properties-hero-bg-wrap img.img-cover {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Crucial for covering without distortion */
  object-position: center; /* Or adjust as needed, e.g., 'top center' */
}

/* ===== BUILDS PAGE - OVERALL SECTION & CARD LAYOUT ===== */
.properties-list-section {
  padding-left: max(20px, 5vw); /* Add horizontal padding, responsive */
  padding-right: max(20px, 5vw);
  padding-top: 2rem;
  padding-bottom: 2rem;
  position: relative; /* Ensure stacking context and normal flow behavior */
  clear: both; /* Attempt to clear any preceding floats */
}

.property-list-cms .property-list-grid {
  display: flex;
  flex-direction: column;
  align-items: center; /* Center cards if they don't take full width of a very wide container */
  gap: 0; /* Using margin on .w-dyn-item instead */
}

/* ===== BUILDS PAGE - INDIVIDUAL PROPERTY CARDS ===== */
.property-list-cms > .property-list-grid > div[role="listitem"] {
  display: block; /* Change from flex to block */
  width: 100%; /* Ensure items try to take full width of the flex column */
  max-width: 900px; /* Optional: constrain max card width for very large screens */
  margin-bottom: 2rem; /* Spacing between cards */
  position: relative; /* Establish stacking context for each card item */
}

.property-list-cms .property-item-cms {
  display: block; /* Ensure children stack vertically as block elements */
  width: 100%;
  background-color: #f8f9fa; /* Very light gray, almost white, like example */
  text-decoration: none;
  /* border: 1px solid #dee2e6; */ /* Border removed as per request */
  overflow: hidden; /* For potential border-radius and to contain image */
}

.property-list-cms .property-item-img-wrap {
  width: 100%;
  height: 250px; /* Fixed height for the image area, adjust as needed */
  overflow: hidden; /* Ensures the img-cover-absolute respects these bounds */
  display: block; /* Explicitly block */
  float: none; /* Remove any potential floats */
}

.property-list-cms .property-item-img-wrap .img-cover-absolute {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Ensure image covers the area */
}

.property-list-cms .property-item-content-wrap {
  padding: 1.5em;
  color: #212529; /* Dark text color for content area */
  display: flex; /* Revert to flex for side-by-side layout */
  justify-content: space-between; 
  align-items: stretch; /* Make text block and button same height */
  box-sizing: border-box;
  width: 100%;
  background-color: #f8f9fa; /* Match card background */
  float: none; /* Remove any potential floats */
  clear: both; /* Ensure it drops below any preceding floated elements */
}

.property-list-cms .property-item-main-content-wrap {
  padding: 0;
  flex-grow: 1; /* Allow text block to take available space */
  margin-right: 1em; /* Space between text and button */
}

.property-list-cms .property-item-content-wrap .title-xsmall {
  font-family: 'Idlewild', var(--font--heading), sans-serif;
  font-size: 1.8em; /* Reduced font size */
  font-weight: 700;
  color: #212529; /* Dark text color */
  margin: 0 0 0.15em 0; /* Adjusted margin */
  line-height: 1.2;
  text-transform: uppercase;
}

.property-list-cms .property-item-content-wrap .testimonial-name-wrap {
  color: #495057; /* Slightly lighter dark gray for description */
  font-family: 'Azeret Mono', var(--font--body), sans-serif;
  font-size: 0.8em; /* Reduced font size */
  line-height: 1.4;
}

/* Hide specific details not present in the target overlay */
.property-list-cms .property-item-content-wrap .testimonial-name-wrap .text-block-6,
.property-list-cms .property-item-content-wrap .testimonial-name-wrap .infos-chip-wrap {
  display: none;
}

/* Style the remaining description div */
.property-list-cms .property-item-content-wrap .testimonial-name-wrap > div:not(.text-block-6):not(.infos-chip-wrap) {
  margin-bottom: 0;
}

.property-list-cms .property-item-content-wrap .button.large.w-inline-block {
  background-color: #c0d8b6; /* Light green from example */
  color: #212529; /* Dark text for button, matching example */
  padding: 0.8em 1.2em; /* Keep current padding, adjust if needed for vertical centering */
  text-decoration: none;
  border-radius: 2px;
  font-family: 'Azeret Mono', var(--font--body), sans-serif;
  font-weight: 500; /* Slightly less bold */
  font-size: 0.9em; /* Keep current font size */
  line-height: 1.2;
  border: none;
  transition: background-color 0.2s ease;
  white-space: nowrap; /* Prevent button text from wrapping */
  flex-shrink: 0; /* Prevent button from shrinking if text block is long */
  /* display: block, width:100%, text-align:center, margin-top removed */
  /* align-self: stretch from parent will handle height */
  display: flex; /* To vertically center text inside button */
  align-items: center; /* Vertically center text inside button */
  justify-content: center; /* Horizontally center text if needed, though padding might be enough */
}

.property-list-cms .property-item-content-wrap .button.large.w-inline-block:hover {
  background-color: #a9c0a0; /* Darker shade of green on hover */
}

.property-list-cms .property-item-content-wrap .button.large.w-inline-block .button-text-style {
  color: var(--color--foreground, #231f20);
  font-weight: inherit;
}

/* Ensure the main link wrapper takes full height for clickability */
.property-list-cms .w-dyn-item > .property-item-cms.w-inline-block {
  display: block;
  height: 100%;
  text-decoration: none;
}
