/* Moje inzeráty — custom owner listing cards (Mega-style) */

.love-ol {
	width: 100%;
}

.love-ol-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin: 0 0 1.25rem;
	flex-wrap: wrap;
}

.love-ol-toolbar__count {
	margin: 0;
	color: #64748b;
	font-size: 0.92rem;
}

.love-ol-toolbar__add,
body.page-id-7468 a.love-add-listing-cta,
.page-moje-inzeraty a.love-add-listing-cta {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	gap: 0.35rem;
	padding: 0.7rem 1.15rem !important;
	border-radius: 8px !important;
	background: #0f766e !important;
	color: #fff !important;
	font-size: 0.95rem !important;
	font-weight: 600 !important;
	line-height: 1.2 !important;
	text-decoration: none !important;
	border: none !important;
	cursor: pointer;
	box-shadow: 0 4px 12px rgba(15, 118, 110, 0.22);
}

.love-ol-toolbar__add:hover,
body.page-id-7468 a.love-add-listing-cta:hover,
.love-ol-page a.love-add-listing-cta:hover {
	background: #0d9488 !important;
	color: #fff !important;
}

/* Marked by JS after detecting duplicate Add CTAs */
body.love-ol-page [data-love-hidden-add="1"],
body.page-id-7468 [data-love-hidden-add="1"] {
	display: none !important;
}

.love-ol-section {
	margin: 0 0 1.75rem;
}

.love-ol-section__title {
	margin: 0 0 0.85rem;
	color: #3d4a28;
	font-size: 1.15rem;
	font-weight: 700;
}

.love-ol-list {
	display: flex;
	flex-direction: column;
	gap: 0.85rem;
}

.love-ol-card {
	display: grid;
	grid-template-columns: 148px minmax(0, 1fr) auto;
	gap: 1.1rem;
	align-items: stretch;
	padding: 0.9rem 1.1rem;
	border: 1px solid #e2e6ec;
	border-radius: 12px;
	background: #fff;
	transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.love-ol-card:hover {
	border-color: #c8d0da;
	box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.love-ol-card__media {
	position: relative;
	width: 148px;
	height: 108px;
	border-radius: 10px;
	overflow: hidden;
	background: #eef1f5;
	flex-shrink: 0;
}

.love-ol-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.love-ol-card__media--empty {
	display: flex;
	align-items: center;
	justify-content: center;
}

.love-ol-card__media-placeholder {
	color: #94a3b8;
	font-size: 0.8rem;
	font-weight: 600;
}

.love-ol-card__badge {
	position: absolute;
	left: 8px;
	bottom: 8px;
	z-index: 2;
	padding: 0.22rem 0.55rem;
	border-radius: 6px;
	background: rgba(15, 23, 42, 0.72);
	color: #fff;
	font-size: 0.72rem;
	font-weight: 600;
	line-height: 1.2;
	backdrop-filter: blur(4px);
}

.love-ol-card__status {
	position: absolute;
	top: 8px;
	right: 8px;
	z-index: 2;
	padding: 0.18rem 0.5rem;
	border-radius: 999px;
	font-size: 0.68rem;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0.01em;
}

.love-ol-card__status--active {
	background: #dcfce7;
	color: #166534;
}

.love-ol-card__status--pending {
	background: #fef3c7;
	color: #92400e;
}

.love-ol-card__status--draft {
	background: #e2e8f0;
	color: #334155;
}

.love-ol-card__status--trash {
	background: #fee2e2;
	color: #991b1b;
}

.love-ol-card__body {
	min-width: 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 0.25rem;
}

.love-ol-card__title {
	margin: 0;
	font-size: 1.05rem;
	font-weight: 700;
	line-height: 1.3;
	color: #2c3a1f;
}

.love-ol-card__title a {
	color: inherit;
	text-decoration: none;
}

.love-ol-card__title a:hover {
	color: #0f766e;
}

.love-ol-card__meta {
	margin: 0;
	color: #64748b;
	font-size: 0.88rem;
	line-height: 1.35;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.35rem 0.45rem;
}

.love-ol-card__meta-warn {
	color: #b45309;
}

.love-ol-card__reviews {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	padding: 0.12rem 0.45rem;
	border-radius: 8px;
	background: #ccfbf1;
	color: #115e59;
	font-weight: 700;
	font-size: 0.82rem;
	white-space: nowrap;
}

.love-ol-card__score {
	font-weight: 800;
	font-size: 0.92rem;
}

.love-ol-card__review-count {
	color: #0f766e;
	font-weight: 600;
}

.love-ol-card__reviews--empty {
	background: transparent;
	padding: 0;
	color: #94a3b8;
	font-weight: 500;
}

.love-ol-card__progress {
	display: flex;
	align-items: center;
	gap: 0.55rem;
	margin-top: 0.35rem;
	max-width: 280px;
}

.love-ol-card__progress-bar {
	flex: 1 1 auto;
	height: 6px;
	border-radius: 999px;
	background: #e2e8f0;
	overflow: hidden;
}

.love-ol-card__progress-bar > span {
	display: block;
	height: 100%;
	border-radius: 999px;
	background: linear-gradient(90deg, #0f766e, #14b8a6);
}

.love-ol-card__progress-label {
	flex: 0 0 auto;
	color: #64748b;
	font-size: 0.75rem;
	font-weight: 600;
	white-space: nowrap;
}

.love-ol-card__hint {
	margin: 0.1rem 0 0;
	color: #94a3b8;
	font-size: 0.75rem;
	line-height: 1.3;
}

.love-ol-card__aside {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	justify-content: center;
	gap: 0.55rem;
	min-width: 0;
}

.love-ol-card__price {
	margin: 0;
	color: #2c3a1f;
	font-size: 1.05rem;
	font-weight: 700;
	line-height: 1.2;
	white-space: nowrap;
	text-align: right;
}

.love-ol-card__price-unit {
	font-size: 0.78rem;
	font-weight: 500;
	color: #64748b;
}

.love-ol-card__price--empty {
	color: #94a3b8;
	font-size: 0.88rem;
	font-weight: 600;
}

.love-ol-card__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: 0.4rem;
}

.love-ol-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.42rem 0.75rem;
	border-radius: 8px;
	font-size: 0.8rem;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none !important;
	white-space: nowrap;
	border: 1px solid transparent;
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.love-ol-btn--view {
	background: #f1f5f9;
	color: #334155 !important;
	border-color: #e2e8f0;
}

.love-ol-btn--view:hover {
	background: #e2e8f0;
	color: #0f172a !important;
}

.love-ol-btn--edit {
	background: #0f766e;
	color: #fff !important;
	border-color: #0f766e;
}

.love-ol-btn--edit:hover {
	background: #0d9488;
	border-color: #0d9488;
	color: #fff !important;
}

.love-ol-btn--cal {
	background: #fff;
	color: #0f766e !important;
	border-color: #99f6e4;
}

.love-ol-btn--cal:hover {
	background: #f0fdfa;
	color: #0f766e !important;
}

.love-ol-btn--delete {
	background: transparent;
	color: #b91c1c !important;
	border-color: #fecaca;
}

.love-ol-btn--delete:hover {
	background: #fef2f2;
	border-color: #f87171;
	color: #991b1b !important;
}

.love-ol-empty,
.love-ol-login {
	margin: 1rem 0;
	padding: 1.25rem;
	border: 1px dashed #cbd5e1;
	border-radius: 12px;
	color: #64748b;
	text-align: center;
}

/* Hide leftover Jet grids / orphan footer heading if still present */
body.page-id-7468 .jet-listing-grid,
.page-moje-inzeraty .jet-listing-grid {
	display: none !important;
}

body.page-id-7468 .elementor-widget-heading .elementor-heading-title,
.page-moje-inzeraty .elementor-widget-heading .elementor-heading-title {
	color: #3d4a28;
}

/* Public catalog polish (homepage / archive cards) */
.elementor-widget-icon-list .elementor-icon-list-text {
	letter-spacing: 0;
}

@media (max-width: 900px) {
	.love-ol-card {
		grid-template-columns: 120px minmax(0, 1fr);
	}

	.love-ol-card__media {
		width: 120px;
		height: 96px;
	}

	.love-ol-card__aside {
		grid-column: 1 / -1;
		align-items: stretch;
		flex-direction: row;
		flex-wrap: wrap;
		justify-content: space-between;
	}

	.love-ol-card__actions {
		justify-content: flex-start;
	}

	.love-ol-card__price {
		text-align: left;
	}
}

@media (max-width: 560px) {
	.love-ol-card {
		grid-template-columns: 1fr;
		padding: 0.85rem;
	}

	.love-ol-card__media {
		width: 100%;
		height: 160px;
	}
}
