/* ────────────────────────────────
   SA Properties Listing Teaser card
──────────────────────────────── */
.sap-teaser-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}
.sap-teaser-card-link-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 500;
  text-indent: -9999px;
  overflow: hidden;
}
.sap-teaser-card {
  position: relative;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  background-color: #f9f9fb;
  margin: 4.5rem auto 2rem;
  font-family: 'Helvetica Neue', sans-serif;
  overflow: visible; /* allows tab to float above */
  cursor: pointer;
  max-width: 960px;
}

.sap-teaser-title,
.sap-teaser-content,
.sap-teaser-icons,
.sap-teaser-readmore {
  position: relative;
  z-index: 10;
}
.sap-teaser-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: box-shadow 0.3s ease;
}

.sap-teaser-image {
  position: relative; /* This scopes the badge to the image */
  overflow: hidden;
}
.sap-teaser-image img {
  border-radius: 6px;
}
.sap-featured-badge i {
  font-size: 0.8rem;
  color: #fff;
}
.sap-featured-badge {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  background: linear-gradient(135deg, #007b5e, #009e7f);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  z-index: 2;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

/* Title above everything */
.sap-teaser-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #2b425f;
  padding: 1rem;
  margin: 0;
  border-bottom: 1px solid #eee;
}

.sap-teaser-title a {
  color: inherit;
  text-decoration: none;
}

.sap-teaser-title a:hover {
  text-decoration: underline;
}

/* Two-column layout */
.sap-teaser-body {
  display: flex;
  flex-wrap: wrap;
}

/* Left column: image */
.sap-teaser-image {
  flex: 1 1 50%;
  max-width: 50%;
  overflow: hidden;
}

.sap-teaser-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Right column: content */
.sap-teaser-content {
  flex: 1 1 50%;
  max-width: 50%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1rem;
  box-sizing: border-box;
}

/* Floating tab */
.sap-status-tab {
  position: absolute;
  top: 0;
  left: 1rem;
  transform: translateY(-100%);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 0.75rem;
  border-radius: 4px 4px 0 0;
  z-index: 2;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background-color: #999;
  color: #fff;
}

/* Status variants */
.sap-status-tab.sold            { background-color: #d9534f; }
.sap-status-tab.under-offer      { background-color: #ffa945; }
.sap-status-tab.reserved        { background-color: #f0ad4e; }
.sap-status-tab.price-reduced   { background-color: #5bc0de; }
.sap-status-tab.auction         { background-color: #563d7c; }
.sap-status-tab.cancelled       { background-color: #6c757d; }
.sap-status-tab.expired         { background-color: #999; }
.sap-status-tab.new-development { background-color: #28a745; }
.sap-status-tab.active          { display: none; }

/* Combined type line */
.sap-teaser-type {
  font-size: 1.05rem;
  font-weight: 600;
  color: #007b5e;
  margin-bottom: 0.5rem;
  display: inline-flex;
  gap: 0.25rem;
  flex-wrap: wrap;
  align-items: center;
}

.property-type,
.listing-type {
  display: inline;
  white-space: nowrap;
}

.sap-teaser-type .listing-type {
  text-transform: capitalize;
}

/* Price and location */
.sap-teaser-price {
  font-size: 1.2rem;
  font-weight: bold;
  color: #007b5e;
  margin-bottom: 0.5rem;
}

.sap-teaser-location {
  font-size: 0.95rem;
  color: #666;
  margin-bottom: 0.5rem;
}

/* Description and read more */
.sap-teaser-description {
  font-size: 0.85rem;
  color: #444;
  margin-bottom: 0.5rem;
}

.sap-teaser-readmore {
  font-size: 0.85rem;
  color: #007b5e;
  font-weight: 500;
  margin-bottom: 1rem;
}

/* Icon grid pinned to bottom */
.sap-teaser-icons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid #eee;
  margin-top: auto;
}

.sap-feature {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  color: #333;
  min-width: 100px;
}

.sap-feature i {
  color: #007b5e;
  font-size: 1rem;
}

/* Responsive layout for mobile */
@media (max-width: 768px) {
  .sap-teaser-card {
    border: none;
    border-top: 4px solid #007b5e; /* brand accent */
    box-shadow: none;
    border-radius: 0;
    margin: 1rem 0;
	margin: 3.5rem 0 2rem;
  }

  .sap-teaser-body {
    flex-direction: column;
  }

  .sap-teaser-image {
    max-width: 100%;
    flex: 1 1 100%;
    margin: 0;
  }

  .sap-teaser-image img {
    width: 100vw;
    height: auto;
    object-fit: cover;
    border-radius: 0;
  }

  .sap-teaser-content {
    max-width: 100%;
    flex: 1 1 100%;
    padding: 1rem;
  }

  .sap-teaser-title {
    font-size: 1.1rem;
    padding: 1rem 1rem 0.5rem;
    border-bottom: none;
  }
}



/* Wrapper for the teaser card END */