/*
 * Layout integration only.
 * Actual listing-card appearance comes from Listeo's own content-listing-grid
 * template and Listeo theme stylesheet.
 */

.lyz-profile-listings,
.lyz-overview-listings-wrap {
	width: 100%;
}

.lyz-profile-listings {
	padding: 25px;
}

.lyz-overview-listings-wrap {
	padding: 25px;
}

.lyz-listeo-grid.new-grid-layout-nl {
	width: 100%;
}

/* Overview: two Listeo cards where space allows. */
.lyz-overview-listings.new-grid-layout-nl {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px;
}

/* Activity should stay one card wide inside the Youzify feed. */
.lyz-activity-listing-grid.new-grid-layout-nl {
	grid-template-columns: minmax(0, 1fr);
	gap: 0;
}

.lyz-activity-listing-embed {
	margin-top: 15px;
	width: 100%;
}


.lyz-no-listings {
	padding: 35px;
	text-align: center;
}

.lyz-pagination {
	margin-top: 25px;
}

.lyz-pagination ul.page-numbers {
	display: flex;
	justify-content: center;
	gap: 8px;
	list-style: none;
	margin: 0;
	padding: 0;
}

/* Only used if Listeo Core is inactive and native card rendering is unavailable. */
.lyz-fallback-card {
	border: 1px solid #e0e0e0;
	border-radius: 6px;
	overflow: hidden;
	background: #fff;
}

.lyz-fallback-card > a {
	display: block;
	color: inherit;
	text-decoration: none;
}

.lyz-fallback-card img {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover;
}

.lyz-fallback-card-content {
	padding: 20px;
}

.lyz-fallback-card-content h3 {
	margin: 0 0 8px;
}

.lyz-fallback-card-content p {
	margin: 0;
}

@media (max-width: 767px) {
	.lyz-profile-listings,
	.lyz-overview-listings-wrap {
		padding: 15px;
	}

	.lyz-overview-listings.new-grid-layout-nl {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* Keep this integration clean: no View All / Show All controls inside the
 * 4Diamond Se7en widget, profile grid, or activity embed. */
.lyz-overview-listings-wrap .youzify-show-all-less,
.lyz-overview-listings-wrap .youzify-show-all,
.lyz-overview-listings-wrap .youzify-view-all,
.lyz-overview-listings-wrap .show-all,
.lyz-profile-listings .youzify-show-all-less,
.lyz-profile-listings .youzify-show-all,
.lyz-profile-listings .youzify-view-all,
.lyz-profile-listings .show-all,
.lyz-activity-listing-embed .youzify-show-all-less,
.lyz-activity-listing-embed .youzify-show-all,
.lyz-activity-listing-embed .youzify-view-all,
.lyz-activity-listing-embed .show-all {
	display: none !important;
}
