/* =====================================================
   REAL ESTATE GRID – MATCH MARKETPLACE STYLE
===================================================== */
.real-estate-products {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
  margin-bottom: 1.5rem;
}

/* PROPERTY CARD */
.estate-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;

  display: flex;
  flex-direction: column;

  transition: transform 0.3s ease,
              box-shadow 0.3s ease,
              border-color 0.3s ease;
}

.estate-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-orange);
  box-shadow: 0 20px 40px rgba(0,0,0,0.45), 0 0 30px var(--orange-glow-soft);
}

/* PROPERTY IMAGE */
.estate-card img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  background: #111;
}

/* BADGES */
.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 3;

  font-size: 0.65rem;
  padding: 0.35rem 0.55rem;
  border-radius: 999px;

  background: rgba(0,0,0,0.6);
  border: 1px solid var(--border-orange);
  box-shadow: 0 0 14px var(--orange-glow-soft);
}

.product-badge.hot { color: #ff6b6b; }
.product-badge.new { color: #6bffb0; }
.product-badge.deal { color: #ffd36b; }
.product-badge.verified { color: #6bb7ff; }

/* PROPERTY INFO */
.product-info {
  padding: 0.9rem 0.9rem 0.4rem;
}

.product-info h3 {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 0.25rem;
}

.price {
  color: var(--orange-main);
  font-weight: 700;
  font-size: 1rem;
}

/* META ROW */
.product-meta {
  padding: 0.2rem 0.9rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* SELLER WRAP */
.seller-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* SELLER AVATAR – HARD FIXED */
.seller-avatar {
  width: 50px !important;
  height: 50px !important;
  min-width: 50px;
  min-height: 50px;

  border-radius: 50%;
  object-fit: cover;
  background: #111;

  border: 2px solid var(--border-orange);
  box-shadow: 0 0 8px rgba(255,140,0,0.35);
}

/* FLOATING VERIFIED BADGE */
.seller-badge {
  position: absolute;
  top: -28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  pointer-events: none;
}

.seller-badge .years {
  font-size: 0.6rem;
  font-weight: 600;
  color: #6dff9f;

  padding: 0.15rem 0.45rem;
  border-radius: 999px;

  background: rgba(0,0,0,0.65);
  border: 1px solid rgba(109,255,159,0.4);
  backdrop-filter: blur(6px);
}

.seller-badge .verified-icon {
  width: 18px;
  height: 18px;

  border-radius: 50%;
  background: #6bb7ff;
  color: #000;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 0.6rem;
  font-weight: 800;

  box-shadow: 0 0 6px rgba(107,183,255,0.6);
}

/* ACTIONS */
.product-actions {
  padding: 0.7rem 0.9rem 0.9rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.like-btn {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.like-btn:hover {
  transform: scale(1.15);
}

.view-details {
  font-size: 0.75rem;
  color: var(--orange-main);
  text-decoration: none;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  border: 1px solid var(--border-orange);
  transition: background 0.2s ease, transform 0.2s ease;
}

.view-details:hover {
  background: rgba(255,140,0,0.15);
  transform: translateY(-1px);
}

.rating {
  font-size: 0.8rem;
  font-weight: 600;
}

/* RESPONSIVE GRID */
@media (max-width: 1200px) {
  .real-estate-products {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .real-estate-products {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 540px) {
  .real-estate-products {
    grid-template-columns: 1fr;
  }
}
