/**
 * PRO listing cards — gold accent frame, featured badge, subtle motion.
 */

.es-listing__image {
	position: relative;
}

/* ---- Badge: solid gold + dark text for contrast on any photo ---- */
.ls-pro-badge {
	position: absolute;
	top: 10px;
	left: 10px;
	z-index: 6;
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	padding: 0.4rem 0.72rem 0.4rem 0.55rem;
	background: #c9a84c !important;
	color: #1a1a1a !important;
	font-family: var(--ls-brand-font, "Source Sans 3", sans-serif);
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	line-height: 1;
	border: 1px solid #a88b35;
	border-radius: 3px;
	box-shadow:
		0 2px 10px rgba(0, 0, 0, 0.4),
		0 0 0 1px rgba(255, 255, 255, 0.15);
	pointer-events: none;
	overflow: hidden;
}

.ls-pro-badge__icon {
	display: block;
	width: 11px;
	height: 11px;
	flex-shrink: 0;
	fill: #1a1a1a;
}

.ls-pro-badge__text {
	position: relative;
	z-index: 1;
	color: #1a1a1a !important;
}

/* No shine overlay — it washed out the label on busy photos */
.ls-pro-badge::after {
	display: none !important;
	content: none !important;
	animation: none !important;
}

/* Sit Estatik rounded labels below PRO badge */
.es-listing__image .ls-pro-badge + .es-badges--rounded,
.es-listing__image:has(.ls-pro-badge) .es-badges--rounded,
.es-listing__image .es-badges--rounded:has(+ .ls-pro-badge),
.es-listing__image:has(.ls-pro-badge) .es-badges {
	top: 42px;
}

/* ---- Card chrome ----
   Do NOT use overflow:hidden on the card — it clips footer text
   ("Land For Sell…") when equal-height flex crushes content.
   Clip photos on .es-listing__image instead. */
.type-properties.ls-listing--pro .es-listing,
.es-listing.ls-listing--pro,
.es-listings .type-properties.ls-listing--pro,
article.ls-listing--pro .es-listing {
	position: relative;
	border-radius: 6px;
	overflow: visible;
	background: #fff;
	box-shadow:
		0 0 0 1px rgba(201, 168, 76, 0.55),
		0 8px 22px rgba(42, 43, 44, 0.12);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.type-properties.ls-listing--pro .es-listing__image,
.es-listing.ls-listing--pro .es-listing__image,
article.ls-listing--pro .es-listing__image {
	overflow: hidden;
	border-radius: 6px 6px 0 0;
}

/* Gold top rail */
.type-properties.ls-listing--pro .es-listing::before,
.es-listing.ls-listing--pro::before,
article.ls-listing--pro .es-listing::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	z-index: 7;
	background: linear-gradient(90deg, #8a7340 0%, #c9a84c 40%, #e8d090 50%, #c9a84c 60%, #8a7340 100%);
	background-size: 200% 100%;
	animation: ls-pro-rail 8s linear infinite;
	pointer-events: none;
}

@keyframes ls-pro-rail {
	0% {
		background-position: 0% 0;
	}
	100% {
		background-position: 200% 0;
	}
}

.type-properties.ls-listing--pro .es-listing:hover,
.es-listing.ls-listing--pro:hover,
article.ls-listing--pro .es-listing:hover {
	transform: translateY(-3px);
	box-shadow:
		0 0 0 1px rgba(201, 168, 76, 0.7),
		0 14px 28px rgba(42, 43, 44, 0.16);
}

/* Image: slight warm overlay at bottom so PRO feels “featured” */
.type-properties.ls-listing--pro .es-listing__image::after,
.es-listing.ls-listing--pro .es-listing__image::after,
article.ls-listing--pro .es-listing__image::after {
	content: "";
	position: absolute;
	inset: auto 0 0 0;
	height: 42%;
	z-index: 2;
	background: linear-gradient(
		180deg,
		transparent 0%,
		rgba(42, 43, 44, 0.08) 55%,
		rgba(42, 43, 44, 0.22) 100%
	);
	pointer-events: none;
}

/* White PRO cards — dark text (regular listings stay brand-dark) */
.type-properties.ls-listing--pro .es-listing,
.es-listing.ls-listing--pro,
article.ls-listing--pro .es-listing,
.type-properties.ls-listing--pro .es-listing__content,
.es-listing.ls-listing--pro .es-listing__content {
	background: #fff !important;
	color: #1a1a1a !important;
}

.type-properties.ls-listing--pro .es-listing__title,
.type-properties.ls-listing--pro .es-listing__title a,
.es-listing.ls-listing--pro .es-listing__title,
.es-listing.ls-listing--pro .es-listing__title a,
article.ls-listing--pro .es-listing__title,
article.ls-listing--pro .es-listing__title a {
	color: #1a1a1a !important;
}

.type-properties.ls-listing--pro .es-listing__meta,
.type-properties.ls-listing--pro .es-address,
.type-properties.ls-listing--pro .es-listing__terms,
.type-properties.ls-listing--pro .es-listing__terms a,
.es-listing.ls-listing--pro .es-listing__meta,
.es-listing.ls-listing--pro .es-address,
.es-listing.ls-listing--pro .es-listing__terms,
.es-listing.ls-listing--pro .es-listing__terms a {
	color: #444 !important;
}

/* Content accent — price tip of gold for PRO cards */
.type-properties.ls-listing--pro .es-price,
.es-listing.ls-listing--pro .es-price,
article.ls-listing--pro .es-price,
.type-properties.ls-listing--pro .es-listing__price,
.es-listing.ls-listing--pro .es-listing__price {
	color: #8a7340 !important;
	font-weight: 800 !important;
}

@media (prefers-reduced-motion: reduce) {
	.type-properties.ls-listing--pro .es-listing::before,
	.es-listing.ls-listing--pro::before,
	article.ls-listing--pro .es-listing::before {
		animation: none;
	}

	.type-properties.ls-listing--pro .es-listing:hover,
	.es-listing.ls-listing--pro:hover,
	article.ls-listing--pro .es-listing:hover {
		transform: none;
	}
}
