/* Lustia Featured Spot — frontend card with photo carousel
   Designed to feel embedded in the page rather than floating on top. */

.lfsp-card-wrap {
	width: 100%;
	max-width: 580px;
	margin: 0 auto;
	position: relative;
	z-index: 3;
	animation: lfsp-rise .6s cubic-bezier(.22, .8, .36, 1) both;
}

@keyframes lfsp-rise {
	from { opacity: 0; transform: translateY(12px); }
	to   { opacity: 1; transform: translateY(0); }
}

.lfsp-card {
	display: block;
	overflow: hidden;
	border-radius: 22px;
	background: rgba(14, 14, 16, 0.62);
	border: 1px solid rgba(255, 255, 255, 0.08);
	box-shadow:
		0 1px 1px rgba(0, 0, 0, .06),
		0 8px 24px rgba(0, 0, 0, .18),
		0 24px 48px rgba(0, 0, 0, .14);
	backdrop-filter: blur(18px) saturate(120%);
	-webkit-backdrop-filter: blur(18px) saturate(120%);
	transition: transform .35s cubic-bezier(.22, .8, .36, 1),
	            box-shadow .35s ease,
	            border-color .35s ease;
	color: inherit;
	text-decoration: none;
	will-change: transform;
}

.lfsp-card:hover {
	transform: translateY(-3px);
	border-color: rgba(214, 170, 92, 0.35);
	box-shadow:
		0 1px 1px rgba(0, 0, 0, .08),
		0 12px 32px rgba(0, 0, 0, .24),
		0 32px 64px rgba(0, 0, 0, .18);
}

/* ============================================================
 * VIP / Featured Profile treatment — gold border + top banner.
 * Border colour deliberately matches the top banner's brighter gold
 * (rgba(232, 195, 120, ...)) so the two read as one continuous gold
 * frame with no visual gap between border and banner.
 * ============================================================ */
.lfsp-vip .lfsp-card {
	border: 2px solid rgba(232, 195, 120, 0.95);
	box-shadow:
		0 1px 1px rgba(0, 0, 0, .06),
		0 8px 24px rgba(0, 0, 0, .20),
		0 24px 56px rgba(0, 0, 0, .18),
		0 0 32px rgba(214, 170, 92, 0.10);
}

.lfsp-vip .lfsp-card:hover {
	border-color: rgba(242, 215, 161, 1);
	box-shadow:
		0 1px 1px rgba(0, 0, 0, .08),
		0 12px 32px rgba(0, 0, 0, .26),
		0 32px 72px rgba(0, 0, 0, .22),
		0 0 48px rgba(214, 170, 92, 0.22);
}

.lfsp-top-banner {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 9px 14px;
	background: linear-gradient(90deg,
		rgba(180, 130, 60, 0.95) 0%,
		rgba(232, 195, 120, 0.95) 50%,
		rgba(180, 130, 60, 0.95) 100%);
	color: #1a1208;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .14em;
	text-transform: uppercase;
	text-align: center;
	/* Subtle dark hairline below the banner for separation against
	   the photo, but no gold border-bottom so the banner blends into
	   the surrounding gold frame seamlessly. */
	border-bottom: 1px solid rgba(0, 0, 0, .15);
	position: relative;
	overflow: hidden;
}

/* Subtle shimmer sweep on the banner */
.lfsp-top-banner::before {
	content: '';
	position: absolute;
	top: 0; left: -100%;
	width: 100%; height: 100%;
	background: linear-gradient(90deg,
		transparent 0%,
		rgba(255, 255, 255, .35) 50%,
		transparent 100%);
	animation: lfsp-shimmer 4s ease-in-out infinite;
}

@keyframes lfsp-shimmer {
	0%   { left: -100%; }
	60%  { left: 100%; }
	100% { left: 100%; }
}

.lfsp-top-banner svg {
	color: #1a1208;
	flex: 0 0 auto;
	position: relative;
	z-index: 1;
}

.lfsp-top-banner span {
	position: relative;
	z-index: 1;
}

/* Hide the regular FEATURED badge on VIP cards — the banner replaces it */
.lfsp-vip .lfsp-badge {
	display: none;
}

/* Gallery / carousel — wide and short to keep total card height in check */
.lfsp-gallery {
	position: relative;
	aspect-ratio: 21 / 9;
	background: rgba(255, 255, 255, 0.04);
	overflow: hidden;
}

.lfsp-track {
	display: flex;
	width: 100%;
	height: 100%;
	overflow-x: auto;
	overflow-y: hidden;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	scrollbar-width: none;
	-ms-overflow-style: none;
	-webkit-overflow-scrolling: touch;
	/* Prevent overscroll bleed from showing previous/next slide */
	overscroll-behavior-x: contain;
}

.lfsp-track::-webkit-scrollbar { display: none; }

.lfsp-slide {
	flex: 0 0 100%;
	width: 100%;
	height: 100%;
	min-width: 100%;
	scroll-snap-align: start;
	scroll-snap-stop: always;
	display: block;
	text-decoration: none;
	color: inherit;
	overflow: hidden;
}

.lfsp-slide img {
	width: 100%;
	height: 100%;
	display: block;
	object-fit: contain;
	background: #0a0a0c;
	transition: transform .45s ease;
}

.lfsp-card:hover .lfsp-slide img {
	transform: scale(1.015);
}

.lfsp-shade {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg,
		rgba(0, 0, 0, .12) 0%,
		rgba(0, 0, 0, 0) 30%,
		rgba(0, 0, 0, 0) 65%,
		rgba(0, 0, 0, .50) 100%);
	pointer-events: none;
}

.lfsp-badge {
	position: absolute;
	left: 14px;
	top: 14px;
	display: inline-flex;
	align-items: center;
	padding: 6px 11px;
	border-radius: 999px;
	background: rgba(17, 17, 19, .68);
	border: 1px solid rgba(255, 255, 255, .08);
	color: #f2d7a1;
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	z-index: 4;
}

/* Photo counter — replaces dots when there are 9+ photos */
.lfsp-counter {
	position: absolute;
	right: 14px;
	top: 14px;
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 5px 10px;
	border-radius: 999px;
	background: rgba(17, 17, 19, .68);
	border: 1px solid rgba(255, 255, 255, .08);
	color: rgba(255, 255, 255, .9);
	font-size: 11px;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	z-index: 4;
}

.lfsp-counter svg { opacity: .85; }

/* ============================================================
 * Inline meta badges — Verified (gold) + Available Now (green).
 * Live in the .lfsp-meta row alongside the location text.
 * ============================================================ */

.lfsp-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	row-gap: 6px;
}

.lfsp-meta-location {
	display: inline-flex;
	align-items: center;
}

/* --- Verified (gold pill, matches VIP treatment on the card border) --- */
.lfsp-verified-pill {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 4px 9px;
	border-radius: 999px;
	background: linear-gradient(135deg,
		rgba(214, 170, 92, 0.95) 0%,
		rgba(232, 195, 120, 0.95) 50%,
		rgba(214, 170, 92, 0.95) 100%);
	border: 1px solid rgba(232, 195, 120, 0.55);
	color: #1a1208;
	font-size: 10.5px;
	font-weight: 800;
	letter-spacing: .05em;
	text-transform: uppercase;
	line-height: 1;
	box-shadow: 0 2px 6px rgba(214, 170, 92, 0.25);
	/* Slow gold pulse — same cadence as the TEXT NOW button so they
	   feel like part of the same design system. */
	animation: lfsp-verified-pulse 2.4s ease-in-out infinite;
}

.lfsp-verified-pill svg {
	flex: 0 0 11px;
	color: #1a1208;
}

/* Pulse keyframes — expanding gold glow ring + subtle scale.
   Matches the structure of lfsp-cta-text-pulse for visual consistency. */
@keyframes lfsp-verified-pulse {
	0% {
		box-shadow: 0 0 0 0 rgba(232, 195, 120, .55),
		            0 2px 6px rgba(214, 170, 92, .25);
		transform: scale(1);
	}
	60% {
		box-shadow: 0 0 0 8px rgba(232, 195, 120, 0),
		            0 2px 8px rgba(214, 170, 92, .32);
		transform: scale(1.04);
	}
	100% {
		box-shadow: 0 0 0 0 rgba(232, 195, 120, 0),
		            0 2px 6px rgba(214, 170, 92, .25);
		transform: scale(1);
	}
}

@media (prefers-reduced-motion: reduce) {
	.lfsp-verified-pill {
		animation: none;
	}
}

/* --- Available Now (green pill, matches the homepage card style) --- */
.lfsp-available-pill {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 9px;
	border-radius: 999px;
	background: rgba(34, 197, 94, 0.18);
	border: 1px solid rgba(34, 197, 94, 0.6);
	color: #4ade80;
	font-size: 10.5px;
	font-weight: 800;
	letter-spacing: .05em;
	text-transform: uppercase;
	line-height: 1;
	box-shadow:
		0 0 12px rgba(34, 197, 94, 0.45),
		0 0 24px rgba(34, 197, 94, 0.25);
	animation: lfsp-pill-glow 1.8s ease-in-out infinite;
}

.lfsp-available-dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #22c55e;
	box-shadow:
		0 0 8px rgba(34, 197, 94, 0.9),
		0 0 16px rgba(34, 197, 94, 0.6);
	flex: 0 0 7px;
	animation: lfsp-pulse 1.4s ease-in-out infinite;
}

@keyframes lfsp-pulse {
	0%, 100% {
		opacity: 1;
		transform: scale(1.1);
		box-shadow:
			0 0 10px rgba(34, 197, 94, 1),
			0 0 20px rgba(34, 197, 94, 0.8);
	}
	50% {
		opacity: .55;
		transform: scale(.75);
		box-shadow:
			0 0 4px rgba(34, 197, 94, 0.4),
			0 0 8px rgba(34, 197, 94, 0.2);
	}
}

@keyframes lfsp-pill-glow {
	0%, 100% {
		box-shadow:
			0 0 12px rgba(34, 197, 94, 0.45),
			0 0 24px rgba(34, 197, 94, 0.25);
	}
	50% {
		box-shadow:
			0 0 18px rgba(34, 197, 94, 0.7),
			0 0 36px rgba(34, 197, 94, 0.4);
	}
}

/* Nav buttons */
.lfsp-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%) scale(.94);
	width: 34px;
	height: 34px;
	border-radius: 999px;
	background: rgba(17, 17, 19, .55);
	border: 1px solid rgba(255, 255, 255, .12);
	color: #fff;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	z-index: 5;
	opacity: 0;
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	transition: opacity .25s ease, background .2s ease, transform .2s ease;
}

.lfsp-card:hover .lfsp-nav,
.lfsp-gallery:focus-within .lfsp-nav {
	opacity: 1;
	transform: translateY(-50%) scale(1);
}

.lfsp-nav:hover { background: rgba(201, 150, 77, .85); }

.lfsp-prev { left: 10px; }
.lfsp-next { right: 10px; }

@media (hover: none) {
	.lfsp-nav { opacity: .8; transform: translateY(-50%) scale(1); }
}

/* Dots */
.lfsp-dots {
	position: absolute;
	bottom: 12px;
	left: 0;
	right: 0;
	display: flex;
	gap: 5px;
	justify-content: center;
	z-index: 5;
}

.lfsp-dot {
	width: 6px;
	height: 6px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, .45);
	cursor: pointer;
	transition: background .2s ease, width .25s ease;
}

.lfsp-dot.is-active {
	background: #f2d7a1;
	width: 18px;
	border-radius: 999px;
}

/* Content — compact to keep total card height tight */
.lfsp-content {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 14px 20px 14px;
	color: inherit;
}

.lfsp-content > * {
	min-width: 0;
}

.lfsp-content h3 {
	margin: 0 0 1px;
	color: #fff;
	font-size: 18px;
	line-height: 1.2;
	font-weight: 700;
	letter-spacing: -0.01em;
	min-width: 0;
}

.lfsp-meta {
	margin: 2px 0 0;
	color: rgba(255, 255, 255, .62);
	font-size: 11.5px;
	font-weight: 500;
	letter-spacing: .01em;
}

.lfsp-content p {
	margin: 4px 0 0;
	color: rgba(255, 255, 255, .80);
	font-size: 12px;
	line-height: 1.4;
}

/* Title/meta/description block on the left; this is its own link
   so tapping the name takes the user to the profile. */
.lfsp-content-text {
	flex: 1 1 auto;
	min-width: 0;
	text-decoration: none;
	color: inherit;
	display: block;
}

.lfsp-content-text:hover h3 {
	color: #f2d7a1;
}

/* CTA row holds Text Now + View Profile side by side. */
.lfsp-cta-row {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	gap: 8px;
}

.lfsp-cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-height: 36px;
	padding: 0 14px;
	border-radius: 999px;
	font-size: 11.5px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .04em;
	white-space: nowrap;
	text-decoration: none;
	transition: background .2s ease, box-shadow .2s ease, transform .15s ease, color .2s ease, border-color .2s ease;
}

/* "Text Now" — blue, matches the homepage / search mini-cards. */
.lfsp-cta-text {
	background: #1d6fff;
	color: #fff;
	border: 1px solid #1d6fff;
	/* Slow, inviting pulse to draw attention without becoming annoying. */
	animation: lfsp-cta-text-pulse 2.4s ease-in-out infinite;
}

.lfsp-cta-text svg {
	flex: 0 0 14px;
	opacity: .95;
}

.lfsp-cta-text:hover {
	background: #155bd0;
	border-color: #155bd0;
	color: #fff;
	/* Pause the pulse on hover so the hover state reads cleanly. */
	animation-play-state: paused;
}

/* Pulse keyframes — expanding glow ring + subtle scale.
   Uses box-shadow for the glow so it doesn't reflow neighbouring elements. */
@keyframes lfsp-cta-text-pulse {
	0% {
		box-shadow: 0 0 0 0 rgba(29, 111, 255, .55),
		            0 4px 12px rgba(29, 111, 255, .18);
		transform: scale(1);
	}
	60% {
		box-shadow: 0 0 0 10px rgba(29, 111, 255, 0),
		            0 4px 14px rgba(29, 111, 255, .22);
		transform: scale(1.02);
	}
	100% {
		box-shadow: 0 0 0 0 rgba(29, 111, 255, 0),
		            0 4px 12px rgba(29, 111, 255, .18);
		transform: scale(1);
	}
}

/* Accessibility: users who request reduced motion get a static button. */
@media (prefers-reduced-motion: reduce) {
	.lfsp-cta-text {
		animation: none;
	}
}

/* "View Profile" — primary style (same gold pill as before). */
.lfsp-cta-view {
	background: rgba(201, 150, 77, .92);
	color: #fff;
	box-shadow: 0 4px 12px rgba(201, 150, 77, .14);
}

.lfsp-card:hover .lfsp-cta-view {
	background: #d9a85f;
	box-shadow: 0 6px 18px rgba(201, 150, 77, .22);
}

/* VIP gets a nicer primary CTA */
.lfsp-vip .lfsp-cta-view {
	background: linear-gradient(135deg, #d9a85f 0%, #c9964d 100%);
	box-shadow: 0 4px 14px rgba(201, 150, 77, .28);
}

.lfsp-vip .lfsp-card:hover .lfsp-cta-view {
	background: linear-gradient(135deg, #e8b870 0%, #d9a85f 100%);
	box-shadow: 0 6px 20px rgba(214, 170, 92, .35);
}

@media (max-width: 1024px) {
	.lfsp-desktop-only { display: none !important; }
}

/* On mobile, the featured card matches the homepage mini-cards:
   same column width and the same 4:5 portrait photo aspect ratio. */
@media (max-width: 767px) {
	.lfsp-card-wrap {
		max-width: 100%;
	}

	.lfsp-gallery {
		aspect-ratio: 4 / 5;
	}

	/* Portrait gallery is much taller — keep nav arrows comfortably visible
	   and lower the gallery dots so they don't crowd the meta row below. */
	.lfsp-nav { opacity: 1; }
}

@media (max-width: 600px) {
	.lfsp-content {
		flex-direction: column;
		align-items: stretch;
		gap: 12px;
		padding: 14px 18px 16px;
	}
	.lfsp-content h3 { font-size: 18px; }

	/* Both CTAs share the row 50/50 on mobile, matching the mini-cards */
	.lfsp-cta-row {
		display: flex;
		gap: 8px;
	}
	.lfsp-cta {
		flex: 1 1 0;
		min-width: 0;
		padding: 0 12px;
	}

	.lfsp-meta { gap: 6px; }
	.lfsp-verified-pill,
	.lfsp-available-pill {
		font-size: 10px;
		padding: 3px 8px;
	}
}