/* ==========================================================================
   Fresh Makelaars – Theme 2 – Loop / listing card
   ========================================================================== */

#fresh-makelaars .fm2-card {
  background: var(--fm2-white);
  border-radius: var(--fm2-radius);
  overflow: hidden;
  transition: box-shadow var(--fm2-transition), transform var(--fm2-transition);
}

#fresh-makelaars .fm2-card:hover {
  box-shadow: var(--fm2-shadow-hover);
  transform: translateY(-2px);
}

#fresh-makelaars .fm2-card-link {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  height: 100%;
}

/* Image */
#fresh-makelaars .fm2-card-image-wrap {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--fm2-bg);
}

#fresh-makelaars .fm2-card-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

#fresh-makelaars .fm2-card:hover .fm2-card-image-wrap img {
  transform: scale(1.03);
}

#fresh-makelaars .fm2-card-no-image {
  width: 100%;
  height: 100%;
  background: var(--fm2-bg);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Status badge */
#fresh-makelaars .fm2-card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--fm2-white);
  background: var(--fm2-blue);
}

#fresh-makelaars .fm2-card-badge--available { background: #16a34a; }
#fresh-makelaars .fm2-card-badge--sold      { background: #dc2626; }
#fresh-makelaars .fm2-card-badge--offer     { background: #d97706; }

/* Card body */
#fresh-makelaars .fm2-card-body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

#fresh-makelaars .fm2-card-location {
  font-size: 11px;
  font-weight: 600;
  color: var(--fm2-text-muted);
  letter-spacing: .06em;
  text-transform: uppercase;
  margin: 0;
}

#fresh-makelaars .fm2-card-address {
  font-size: 16px;
  font-weight: 700;
  color: var(--fm2-text);
  margin: 2px 0 6px;
  line-height: 1.3;
}

#fresh-makelaars .fm2-card-price {
  font-size: 17px;
  font-weight: 800;
  color: var(--fm2-blue);
  margin: 0 0 10px;
}

#fresh-makelaars .fm2-card-specs {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--fm2-border);
}

#fresh-makelaars .fm2-card-spec {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  color: var(--fm2-text-muted);
}

#fresh-makelaars .fm2-card-spec svg {
  flex-shrink: 0;
  color: var(--fm2-blue);
}

/* ── Energy label ─────────────────────────────────────────── */
#fresh-makelaars .fm2-energy-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  padding: 0 5px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  background: #aaa;
  flex-shrink: 0;
  white-space: nowrap;
}

#fresh-makelaars .fm2-card-image-wrap .fm2-energy-label {
  position: absolute;
  bottom: 10px;
  right: 10px;
  min-width: 32px;
  height: 32px;
  padding: 0 6px;
  font-size: 13px;
  border-radius: 5px;
  box-shadow: 0 1px 3px rgba(0,0,0,.3);
}

#fresh-makelaars .fm2-energy-label--a\+\+  { background: #006325; }
#fresh-makelaars .fm2-energy-label--a\+    { background: #009640; }
#fresh-makelaars .fm2-energy-label--a      { background: #50b848; }
#fresh-makelaars .fm2-energy-label--b      { background: #a8ce38; }
#fresh-makelaars .fm2-energy-label--c      { background: #fecc00; color: #333; }
#fresh-makelaars .fm2-energy-label--d      { background: #f9a825; color: #333; }
#fresh-makelaars .fm2-energy-label--e      { background: #ee7623; }
#fresh-makelaars .fm2-energy-label--f      { background: #e0401c; }
#fresh-makelaars .fm2-energy-label--g      { background: #cc0000; }
