/* Search Properties front-end styles */
.sp-wrapper { max-width: 1100px; margin: 0 auto; padding: 1rem; }
.sp-header { display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 0.5rem; margin-bottom: 1rem; }
.sp-header h3 { margin: 0.25rem 0 0; font-size: 1rem; font-weight: 500; color: #333; text-align: left; align-self: flex-start; order: 2; }
.sp-tabs { list-style: none; margin: 0; padding: 0; display: flex; gap: 0.5rem; flex-wrap: wrap; justify-content: center; order: 1; }
.sp-tab { cursor: pointer; padding: 0.5rem 0.75rem; border: 1px solid #ddd; border-radius: 6px; background: #f9f9f9; }
.sp-tab.active { background: #0073aa; color: #fff; border-color: #0073aa; }

.sp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; align-items: stretch; }
.sp-card { border: 1px solid #eee; border-radius: 8px; overflow: hidden; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,0.06); display: flex; flex-direction: column; }
.sp-image { width: 100%; height: 220px; background: #fafafa; display: flex; align-items: center; justify-content: center; }
.sp-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sp-no-image { color: #666; font-size: 0.9rem; }
.sp-content { padding: 0.7rem 0.9rem; }
.sp-title { margin: 0 0 0.35rem; font-size: 0.95rem; font-weight: 500; color: #333; line-height: 1.4; }
.sp-desc { color: #444; margin: 0 0 0.3rem; font-size: 0.95rem; line-height: 1.6; }
.sp-location { color: #333; margin: 0 0 0.3rem; font-size: 0.95rem; line-height: 1.6; }
.sp-price { font-weight: 600; color: #0a7; margin: 0.3rem 0; font-size: 0.95rem; line-height: 1.6; }
.sp-type { font-size: 0.95rem; color: #666; margin: 0; }

/* Headings wrap to next line when long */
.sp-title { white-space: normal; overflow-wrap: anywhere; }

/* Actions / Button */
.sp-actions { margin-top: 0.5rem; display: flex; justify-content: flex-start; }
.sp-button { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.5rem 0.75rem; border-radius: 6px; color: #fff; text-decoration: none; font-weight: 600; }
.sp-button:hover { filter: brightness(0.95); }
.sp-button .dashicons { font-size: 16px; line-height: 1; }
.sp-button-icon { font-size: 16px; line-height: 1; }

/* Global actions: Load More */
.sp-global-actions { display: flex; justify-content: center; margin: 1rem 0; }
.sp-load-more { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.6rem 0.9rem; border-radius: 6px; color: #fff; text-decoration: none; font-weight: 600; border: none; cursor: pointer; }
.sp-load-more:hover { filter: brightness(0.95); }

@media (max-width: 520px) {
  .sp-header { flex-direction: column; align-items: center; }
}