/* ============================================================
   ZooSpace Social Proof – Styles
   Brand: #f47c20 (orange) / #111236 (dark navy)
   ============================================================ */

/* ------------------------------------------------------------------ */
/*  1. Trending badge                                                   */
/* ------------------------------------------------------------------ */
.zsp-trending-badge {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	position: absolute;
	top: 10px;
	left: 10px;
	z-index: 10;
	background: linear-gradient(135deg, #f47c20 0%, #e05e00 100%);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	line-height: 1;
	padding: 4px 9px;
	border-radius: 20px;
	box-shadow: 0 2px 8px rgba(244, 124, 32, 0.45);
	letter-spacing: 0.3px;
	pointer-events: none;
	animation: zsp-pop 0.35s ease both;
}

@keyframes zsp-pop {
	from { transform: scale(0.7); opacity: 0; }
	to   { transform: scale(1);   opacity: 1; }
}

article.rtcl_listing,
.rtcl-listing {
	position: relative;
}

/* ------------------------------------------------------------------ */
/*  3. "X нови обяви днес" banner                                       */
/* ------------------------------------------------------------------ */
.zsp-new-today-banner {
	background: linear-gradient(90deg, #fff8f2 0%, #fff3e8 100%);
	border-left: 4px solid #f47c20;
	color: #1a2236;
	font-size: 14px;
	padding: 10px 18px;
	border-radius: 6px;
	margin-bottom: 18px;
	width: 100%;
	box-sizing: border-box;
	display: flex;
	align-items: center;
	gap: 6px;
	box-shadow: 0 1px 6px rgba(244,124,32,0.12);
}

.zsp-new-today-banner strong {
	color: #f47c20;
}

/* ------------------------------------------------------------------ */
/*  4. Expiry countdown label on archive cards                          */
/* ------------------------------------------------------------------ */
.zsp-expiry-label {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	position: absolute;
	bottom: 10px;
	right: 10px;
	z-index: 10;
	background: rgba(26, 34, 54, 0.82);
	color: #fff;
	font-size: 11px;
	font-weight: 600;
	padding: 3px 8px;
	border-radius: 20px;
	backdrop-filter: blur(3px);
	pointer-events: none;
}

.zsp-expiry-label.zsp-urgent {
	background: rgba(200, 30, 30, 0.85);
}

/* ------------------------------------------------------------------ */
/*  6. Related listings block                                           */
/* ------------------------------------------------------------------ */
.zsp-related-listings {
	margin: 36px 0 20px;
	padding: 24px;
	background: #f9fbfd;
	border-radius: 12px;
	border: 1px solid #e8edf5;
}

.zsp-related-title {
	font-size: 16px;
	font-weight: 700;
	color: #1a2236;
	margin: 0 0 18px;
}

.zsp-related-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
	gap: 14px;
}

.zsp-related-card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid #e3e8f2;
	border-radius: 10px;
	overflow: hidden;
	text-decoration: none;
	color: inherit;
	transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.zsp-related-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 6px 20px rgba(26,34,54,0.12);
	border-color: #f47c20;
}

.zsp-related-thumb {
	width: 100%;
	aspect-ratio: 4/3;
	overflow: hidden;
	background: #f0f3f8;
	display: flex;
	align-items: center;
	justify-content: center;
}

.zsp-related-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.zsp-related-no-img {
	font-size: 32px;
	opacity: 0.35;
}

.zsp-related-info {
	padding: 8px 10px 10px;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.zsp-related-name {
	font-size: 13px;
	font-weight: 600;
	color: #1a2236;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.zsp-related-price {
	font-size: 13px;
	font-weight: 700;
	color: #f47c20;
}

@media (max-width: 480px) {
	.zsp-related-grid {
		grid-template-columns: repeat(2, 1fr);
	}
	.zsp-related-listings {
		padding: 16px;
	}
}

/* ------------------------------------------------------------------ */
/*  7. Status Statistics Widget / Shortcode                             */
/* ------------------------------------------------------------------ */
.zsp-stats-widget {
	background: #111236;
	border-radius: 10px;
	overflow: hidden;
}

.zsp-sw-item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 16px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.zsp-sw-item:last-child {
	border-bottom: none;
}

/* Per-stat accent border */
.zsp-sw-adopted  { border-left: 3px solid #f47c20; }
.zsp-sw-found    { border-left: 3px solid #3b9eff; }
.zsp-sw-returned { border-left: 3px solid #22c55e; }

/* Icon wrapper circles */
.zsp-sw-icon-wrap {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	flex-shrink: 0;
}

.zsp-icon-heart  { background: rgba(244, 124, 32, 0.15); }
.zsp-icon-search { background: rgba(59, 158, 255, 0.15); }
.zsp-icon-home   { background: rgba(34, 197, 94, 0.15);  }

.zsp-sw-icon {
	font-size: 20px;
	line-height: 1;
}

.zsp-sw-text {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.zsp-sw-number {
	font-size: 22px;
	font-weight: 700;
	line-height: 1;
}

/* Per-stat number colours */
.zsp-num-adopted  { color: #f47c20; }
.zsp-num-found    { color: #3b9eff; }
.zsp-num-returned { color: #22c55e; }

.zsp-sw-label {
	font-size: 11px;
	color: rgba(255, 255, 255, 0.75);
	line-height: 1.3;
	text-transform: uppercase;
	letter-spacing: 0.4px;
}

.zsp-sw-sublabel {
	font-size: 11px;
	color: rgba(255, 255, 255, 0.4);
	line-height: 1.2;
	font-style: italic;
}

/* ---- Horizontal / inline layout ---- */
.zsp-stats-widget.zsp-inline {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	border-radius: 10px;
}

.zsp-stats-widget.zsp-inline .zsp-sw-item {
	flex: 1 1 auto;
	border-bottom: none;
	border-left: none;
	border-top: 3px solid transparent;
	border-right: 1px solid rgba(255, 255, 255, 0.08);
	justify-content: center;
	text-align: center;
	padding: 18px 20px;
	flex-direction: column;
	align-items: center;
	gap: 8px;
}

.zsp-stats-widget.zsp-inline .zsp-sw-adopted  { border-top-color: #f47c20; }
.zsp-stats-widget.zsp-inline .zsp-sw-found    { border-top-color: #3b9eff; }
.zsp-stats-widget.zsp-inline .zsp-sw-returned { border-top-color: #22c55e; }

.zsp-stats-widget.zsp-inline .zsp-sw-item:last-child {
	border-right: none;
}

.zsp-stats-widget.zsp-inline .zsp-sw-text {
	align-items: center;
}

@media (max-width: 520px) {
	.zsp-stats-widget.zsp-inline {
		flex-direction: column;
	}
	.zsp-stats-widget.zsp-inline .zsp-sw-item {
		border-right: none;
		border-top: none;
		border-bottom: 1px solid rgba(255, 255, 255, 0.08);
		border-left: 3px solid transparent;
		flex-direction: row;
		justify-content: flex-start;
		text-align: left;
		padding: 14px 16px;
	}
	.zsp-stats-widget.zsp-inline .zsp-sw-adopted  { border-left-color: #f47c20; }
	.zsp-stats-widget.zsp-inline .zsp-sw-found    { border-left-color: #3b9eff; }
	.zsp-stats-widget.zsp-inline .zsp-sw-returned { border-left-color: #22c55e; }
	.zsp-stats-widget.zsp-inline .zsp-sw-text {
		align-items: flex-start;
	}
	.zsp-stats-widget.zsp-inline .zsp-sw-item:last-child {
		border-bottom: none;
	}
}