/* Property Card Redesign (like attached image) */
.property-card i {
  color: var(--primary-blue);
}
.property-card {
  display: flex;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  transition: box-shadow 0.2s;
  position: relative;
  max-height: 280px;
}
.property-card:hover {
  box-shadow: 0 6px 24px rgba(231, 76, 60, 0.12);
}
.property-image {
  position: relative;
  width: 100%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8fafc;
}
.property-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px 0 0 8px;
}
.property-image .property-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--primary-blue);
  color: #fff;
  padding: 7px 16px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}
.property-image .property-badge.featured {
  background: #4caf50;
}
.property-image .wishlist-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #fff;
  border: none;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.09);
  cursor: pointer;
  transition: background 0.2s;
}
.property-image .wishlist-btn:hover {
  background: #ffe082;
}
.property-details {
  flex: 1;
  padding: 24px 28px 18px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.property-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}
.property-header h3 {
  font-size: 18px;
  font-weight: 800;
  color: #222;
  margin: 0 0 4px 0;
}
.property-price {
  font-size: 20px;
  font-weight: 900;
  color: white;
  background: var(--primary-blue);
  padding: 6px 18px;
  border-radius: 8px;
  margin-left: 12px;
  white-space: nowrap;
}
  
.property-specs span {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: #444;
  font-weight: 600;
}
.property-meta {
  display: flex;
  gap: 18px;
  margin-bottom: 10px;
}
.meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #666;
  background: #f8fafc;
  /* padding: 7px 14px; */
  border-radius: 7px;
  font-weight: 500;
}
.property-description {
  font-size: 14px;
  color: #555;
  margin-bottom: 10px;
}
.property-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.property-tag {
  background: #e0e0e0;
  color: #222;
  font-size: 10px;
  padding: 5px 12px;
  border-radius: 6px;
  font-weight: 600;
}
.agent-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 18px;
  width: 100%;
}
.agent-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.agent-buttons {
  /* buttons are inline-block by default */
  text-align: center;
  gap: 8px; /* gap only works with flex, include spacing via margin on buttons if needed */
}
.agent-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #ffe082;
}
.agent-info {
  display: flex;
  flex-direction: column;
}
.agent-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: #222;
}
.agent-badge {
  background: #ffeb3b;
  color: #000;
  font-size: 0.92rem;
  font-weight: 700;
  border-radius: 5px;
  padding: 3px 10px;
  margin-top: 3px;
  display: inline-block;
}
.property-actions {
  display: flex;
  gap: 18px;
  margin-top: 18px;
}
.details-btn {
  background: #fff;
  border: 2px solid var(--primary-blue);
  color: var(--primary-blue);
  font-weight: 700;
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border 0.2s;
  white-space: nowrap;
}
.details-btn:hover {
  background: var(--primary-blue);
  color: #fff;
  border: 2px solid var(--primary-blue);
}
.contact-btn {
  background: var(--primary-blue);
  color: #fff;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 1.05rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
}
.contact-btn:hover {
  background: #fff;
  color: var(--primary-blue);
  border: 2px solid var(--primary-blue);
}

/* Agent Section New (below property card) */
.agent-section-new {
  margin-bottom: 24px;
}
.asn-inner {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  padding: 22px 28px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.asn-photo-wrap {
  position: relative;
  flex-shrink: 0;
}
.asn-photo {
  width: 88px;
  height: 88px;
  border-radius: 8px;
  object-fit: cover;
  display: block;
}
.asn-badge-icon {
  position: absolute;
  bottom: -6px;
  right: -6px;
  width: 26px;
  height: 26px;
  background: #f5a623;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
  color: #fff;
  font-size: 11px;
}
.asn-info {
  flex: 1;
  min-width: 0;
}
.asn-name-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.asn-name {
  font-size: 19px;
  font-weight: 800;
  color: #1a1a2e;
}
.asn-verified {
  background: #e8f5e9;
  color: #2e7d32;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.asn-dot {
  width: 8px;
  height: 8px;
  background: #4caf50;
  border-radius: 50%;
  display: inline-block;
}
.asn-premium {
  background: #fff3e0;
  color: #e65100;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.asn-meta-row {
  display: flex;
  align-items: center;
  gap: 18px;
  color: #666;
  font-size: 13px;
  margin-bottom: 14px;
}
.asn-meta-row i {
  color: #999;
  margin-right: 3px;
}
.asn-stats-row {
  display: flex;
  align-items: center;
  gap: 20px;
}
.asn-stat-value {
  font-size: 19px;
  font-weight: 800;
  color: #1a1a2e;
  display: flex;
  align-items: center;
  gap: 4px;
}
.asn-star {
  color: #f5a623;
}
.asn-stat-label {
  font-size: 10px;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
  margin-top: 2px;
}
.asn-divider {
  width: 1.5px;
  height: 38px;
  background: #e8e8e8;
  flex-shrink: 0;
}
.asn-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
}
.asn-contact-btn {
  background: linear-gradient(135deg, #2962ff, #1565c0);
  color: #fff;
  border: none;
  padding: 13px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  transition: opacity 0.2s;
}
.asn-contact-btn:hover {
  opacity: 0.9;
}
.asn-view-btn {
  background: #fff;
  color: #1a1a2e;
  border: 1.5px solid #ddd;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  transition: border-color 0.2s, color 0.2s;
}
.asn-view-btn:hover {
  border-color: #2962ff;
  color: #2962ff;
}

/* ── Mobile Responsive ── */
@media (max-width: 768px) {
  .property-card {
    max-height: none;
    flex-direction: column;
  }
  .property-image {
    width: 100%;
    height: 200px;
    flex-shrink: 0;
  }
  .property-image img {
    border-radius: 8px 8px 0 0;
    height: 200px;
    object-fit: cover;
  }
  .property-details {
    padding: 16px 18px 14px;
  }
  .property-header h3 { font-size: 16px; }
  .property-price { font-size: 16px; padding: 5px 12px; }
  .property-actions { flex-direction: row; flex-wrap: wrap; gap: 10px; }
  .details-btn, .contact-btn { flex: 1; justify-content: center; }

  .asn-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 16px 18px;
  }
  .asn-photo { width: 72px; height: 72px; }
  .asn-actions { flex-direction: row; flex-wrap: wrap; gap: 8px; }
  .asn-contact-btn, .asn-view-btn { flex: 1; justify-content: center; }
}

@media (max-width: 480px) {
  .property-image { height: 170px; }
  .property-image img { height: 170px; }
  .property-price { font-size: 14px; margin-left: 8px; }
  .property-meta { flex-wrap: wrap; gap: 8px; }
  .property-actions { margin-top: 12px; }
}
