/* ===== 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: 980px; /* Constrain max card width for very large screens */
  margin-bottom: 2.5rem; /* 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 rgba(0,0,0,0.06); /* subtle border around card */
  overflow: hidden; /* For border-radius and to contain image */
  border-radius: 6px;
}

.property-list-cms .property-item-img-wrap {
  width: 100%;
  height: 320px; /* Base image height */
  overflow: hidden; /* Ensures the img-cover-absolute respects these bounds */
  display: block; /* Explicitly block */
  float: none; /* Remove any potential floats */
  background: #eae7dc; /* gentle placeholder bg behind image */
}

.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;
}

/* Typography tweaks for title and meta to match reference */
.property-list-cms .property-item-content-wrap .title-xsmall {
  letter-spacing: 0.03em;
}

/* Responsive sizing for image area to better match screenshot proportions */
@media (min-width: 992px) {
  .property-list-cms .property-item-img-wrap { height: 440px; }
}

@media (max-width: 768px) {
  .property-list-cms .property-item-img-wrap { height: 240px; }
  .property-list-cms > .property-list-grid > div[role="listitem"] { margin-bottom: 1.75rem; }
  .property-list-cms .property-item-content-wrap { padding: 1.1em; }
}

/* 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;
}

/* ===== STATIC BUTTON/LINK STYLES (detach from Webflow interactions) ===== */
/* Clone of .footer-link-item for static use */
.footer-link-item--static {
  border-bottom: 1px solid #ffffff3d; /* matches .footer-link-item */
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding-top: 1.125em; /* inferred from Webflow layout, adjust if needed */
  padding-bottom: 1.125em;
  text-decoration: none;
  display: flex;
}

/* Clone of .button-icon and .button-icon.white-small for static use */
.button-icon--static {
  background-color: var(--color--foreground);
  color: var(--color--light-brown);
  justify-content: center;
  align-items: center;
  width: 4.5em;
  height: 4.5em;
  display: flex;
  position: relative;
}

.button-icon--static.white-small {
  background-color: var(--color--white);
  width: 3.25em;
  height: 3.25em;
}

/* Clone of .icon20 for static use */
.icon20--static {
  width: 1.25em;
  height: 1.25em;
}

/* Clone of .corner and its variants for static use */
.corner-static {
  flex: none;
  justify-content: center;
  align-items: center;
  width: .75em;
  height: .75em;
  display: flex;
  position: absolute;
  inset: 0% auto auto 0%;
}

.corner-static.top-left {
  transform-origin: 0 0;
  margin-top: -1px;
  margin-left: -1px;
}

.corner-static.top-left.medium {
  width: 1.25em;
  height: 1.25em;
}

.corner-static.top-left.small {
  width: 1em;
  height: 1em;
}

.corner-static.top-left.xxlarge {
  width: 2.25em;
  height: 2.25em;
}

.corner-static.btm-right {
  transform-origin: 100% 100%;
  margin-bottom: -1px;
  margin-right: -1px;
  inset: auto 0% 0% auto;
}

.corner-static.btm-right.small {
  width: 1em;
  height: 1em;
}

.corner-static.btm-right.xxlarge {
  width: 2.25em;
  height: 2.25em;
}

.corner-static.large {
  width: 1.25em;
  height: 1.25em;
}
