/**
 * WehfiGO Pages Chrome — archives, search, packages, 404, blog, auth (v2.15.0)
 * Brings stock Listeo surfaces onto WehfiGO tokens without rewriting templates.
 */

/* Page titles / breadcrumbs — light mode readable.
   EXCEPTION: photo page headers (Pricing, FAQ, etc.) keep white titles. */
html:not([data-theme="dark"]) body.wehfigo-v2:not(.wehfigo-page-header) #titlebar h1,
html:not([data-theme="dark"]) body.wehfigo-v2:not(.wehfigo-page-header) #titlebar h2,
html:not([data-theme="dark"]) body.wehfigo-v2 .page-title,
html:not([data-theme="dark"]) body.wehfigo-v2 .listing-titlebar-title h1,
body:not(#dark-mode).wehfigo-v2:not(.wehfigo-page-header) #titlebar h1,
body:not(#dark-mode).wehfigo-v2:not(.wehfigo-page-header) #titlebar h2 {
	color: #1a1a1a !important;
}

html:not([data-theme="dark"]) body.wehfigo-v2:not(.wehfigo-page-header) #titlebar span,
html:not([data-theme="dark"]) body.wehfigo-v2:not(.wehfigo-page-header) #titlebar p,
html:not([data-theme="dark"]) body.wehfigo-v2:not(.wehfigo-page-header) .breadcrumb,
html:not([data-theme="dark"]) body.wehfigo-v2:not(.wehfigo-page-header) .breadcrumb a,
body:not(#dark-mode).wehfigo-v2:not(.wehfigo-page-header) #titlebar span,
body:not(#dark-mode).wehfigo-v2:not(.wehfigo-page-header) .breadcrumb a {
	color: #555 !important;
}

/* Archive / search listing cards */
body.wehfigo-v2 .listing-item-container,
body.wehfigo-v2 .listing-item {
	border-radius: var(--radius-lg, 12px);
	overflow: hidden;
}

body.wehfigo-v2 .listing-item-content h3,
body.wehfigo-v2 .listing-item-content h3 a {
	font-family: var(--font-family-brand);
	color: var(--color-page-heading, #1a1a1a) !important;
}

html:not([data-theme="dark"]) body.wehfigo-v2 .listing-item-content h3 a,
html:not([data-theme="dark"]) body.wehfigo-v2 .listing-item-inner h3,
html:not([data-theme="dark"]) body.wehfigo-v2 .listing-item-container:not(.wehfigo-relcard) .listing-item span {
	color: #1a1a1a !important;
}

/* Stronger gradient overlay so titles read on busy images (compact overlay cards only) */
body.wehfigo-v2 .listing-item-container.list-layout .listing-item-content,
body.wehfigo-v2 .listing-item-container:not(.wehfigo-relcard) .listing-item-content {
	background: linear-gradient(to top, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.35) 55%, transparent 100%) !important;
}

body.wehfigo-v2 .listing-item-container:not(.wehfigo-relcard) .listing-item-content h3,
body.wehfigo-v2 .listing-item-container:not(.wehfigo-relcard) .listing-item-content h3 a,
body.wehfigo-v2 .listing-item-container:not(.wehfigo-relcard) .listing-item-content span,
body.wehfigo-v2 .listing-item-container:not(.wehfigo-relcard) .listing-item-content .listing-item-inner {
	color: #fff !important;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}

/* Eventchamp stacked cards: no overlay gradient */
body.wehfigo-v2 .wehfigo-relcard .listing-item-content,
body.wehfigo-v2 a.wehfigo-relcard .listing-item-content {
	background: #fff !important;
	background-image: none !important;
	text-shadow: none !important;
}

body.wehfigo-v2 .wehfigo-relcard .listing-item-content h3,
body.wehfigo-v2 .wehfigo-relcard .wehfigo-relcard__title {
	color: #111 !important;
	text-shadow: none !important;
}

body.wehfigo-v2 .wehfigo-relcard__chip {
	display: inline-flex !important;
	align-items: center !important;
	padding: 0.28rem 0.7rem !important;
	border-radius: 999px !important;
	background: #d6001c !important;
	background-color: #d6001c !important;
	color: #fff !important;
	-webkit-text-fill-color: #fff !important;
	font-size: 0.68rem !important;
	font-weight: 700 !important;
	letter-spacing: 0.06em !important;
	text-transform: uppercase !important;
	text-shadow: none !important;
}

body.wehfigo-v2 .wehfigo-relcard__date,
body.wehfigo-v2 .wehfigo-relcard__excerpt,
body.wehfigo-v2 .wehfigo-relcard__loc,
body.wehfigo-v2 .wehfigo-relcard__price {
	color: #666 !important;
	-webkit-text-fill-color: #666 !important;
	text-shadow: none !important;
}

body.wehfigo-v2 .wehfigo-relcard__loc,
body.wehfigo-v2 .wehfigo-relcard__price {
	color: #d6001c !important;
	-webkit-text-fill-color: #d6001c !important;
}

html[data-theme="dark"] body.wehfigo-v2 .wehfigo-relcard .listing-item-content {
	background: #161616 !important;
}

html[data-theme="dark"] body.wehfigo-v2 .wehfigo-relcard .listing-item-content h3,
html[data-theme="dark"] body.wehfigo-v2 .wehfigo-relcard .wehfigo-relcard__title {
	color: #f5f5f5 !important;
}

/* Related / carousel arrows always visible enough */
body.wehfigo-v2 .slick-prev,
body.wehfigo-v2 .slick-next,
body.wehfigo-v2 .simple-slick-carousel .slick-arrow {
	opacity: 0.85 !important;
	z-index: 5;
}

body.wehfigo-v2 .slick-prev:hover,
body.wehfigo-v2 .slick-next:hover {
	opacity: 1 !important;
}

/* Packages / pricing theme-rendered */
body.wehfigo-v2 .pricing-plans-container .plan,
body.wehfigo-v2 .pricing-plan-container,
body.wehfigo-v2 .package-details {
	border-radius: var(--radius-lg, 12px);
	border-color: var(--color-page-border, #e8e8e8);
}

html:not([data-theme="dark"]) body.wehfigo-v2 .pricing-plans-container .plan-price,
html:not([data-theme="dark"]) body.wehfigo-v2 .pricing-plans-container h3,
html:not([data-theme="dark"]) body.wehfigo-v2 .package-details h3,
html:not([data-theme="dark"]) body.wehfigo-v2 .pricing-plans-container .plan-price .value,
html:not([data-theme="dark"]) body.wehfigo-v2 .pricing-plans-container li,
html:not([data-theme="dark"]) body.wehfigo-v2 .pricing-plans-container p,
html:not([data-theme="dark"]) body.wehfigo-v2 .package-details,
html:not([data-theme="dark"]) body.wehfigo-v2 .package-details li,
html:not([data-theme="dark"]) body.wehfigo-v2 .pricing-plan-label,
html:not([data-theme="dark"]) body.page-id-pricing .elementor-widget-text-editor,
html:not([data-theme="dark"]) body.page .pricing-plans-container {
	color: #1a1a1a !important;
	-webkit-text-fill-color: #1a1a1a !important;
}

/* Photo page headers (Pricing, FAQ, Contact) — image first, no black box */
body.wehfigo-page-header #titlebar,
body.wehfigo-page-header #titlebar.wehfigo-page-hero,
body.wehfigo-v2 #titlebar[style*="background-image"],
body.wehfigo-v2 #titlebar.parallax,
body.wehfigo-v2 #titlebar.photo-bg {
	min-height: clamp(280px, 42vw, 460px) !important;
	background-size: cover !important;
	background-position: center center !important;
	background-color: transparent !important;
}

/* Kill the dark scrim — show the photo */
body.wehfigo-page-header #titlebar::before,
body.wehfigo-page-header #titlebar.wehfigo-page-hero::before,
body.wehfigo-v2 #titlebar[style*="background-image"]::before,
body.wehfigo-v2 #titlebar.parallax::before,
body.wehfigo-v2 #titlebar.photo-bg::before,
body.wehfigo-v2 #titlebar .parallax-overlay,
body.wehfigo-v2 #titlebar .gradient {
	display: none !important;
	opacity: 0 !important;
	background: none !important;
	content: none !important;
}

body.wehfigo-page-header #titlebar h1,
body.wehfigo-page-header #titlebar h2,
body.wehfigo-page-header #titlebar.wehfigo-page-hero h1,
body.wehfigo-v2 #titlebar[style*="background-image"] h1,
body.wehfigo-v2 #titlebar.parallax h1,
body.wehfigo-v2 #titlebar.photo-bg h1 {
	color: #fff !important;
	-webkit-text-fill-color: #fff !important;
	text-shadow: 0 2px 16px rgba(0, 0, 0, 0.65), 0 1px 3px rgba(0, 0, 0, 0.4);
	font-size: clamp(2.25rem, 4.5vw, 3.25rem) !important;
}

/* Pricing: one hero only — hide Listeo / shared #titlebar (keep gate hero) */
body.wehfigo-pricing-page #titlebar,
body.wehfigo-pricing-page #titlebar.wehfigo-page-hero,
body.wehfigo-pricing-gated #titlebar,
body.wehfigo-pricing-gated #titlebar.wehfigo-page-hero {
	display: none !important;
}

body.wehfigo-pricing-page #wrapper,
body.wehfigo-pricing-page #main,
body.wehfigo-pricing-page .fs-container,
body.wehfigo-pricing-page .fullwidth-elementor-content,
body.wehfigo-pricing-page .elementor,
body.wehfigo-pricing-gated #wrapper,
body.wehfigo-pricing-gated #main,
body.wehfigo-pricing-gated .elementor {
	padding-top: 0 !important;
	margin-top: 0 !important;
}

body.wehfigo-pricing-page #header-container,
body.wehfigo-pricing-page #header,
body.wehfigo-pricing-gated #header-container,
body.wehfigo-pricing-gated #header {
	margin-bottom: 0 !important;
	border-bottom: none !important;
	box-shadow: none !important;
}

body.wehfigo-page-header #titlebar #breadcrumbs ul li,
body.wehfigo-page-header #titlebar #breadcrumbs ul li a,
body.wehfigo-page-header #titlebar .breadcrumb,
body.wehfigo-page-header #titlebar .breadcrumb a {
	color: #fff !important;
	-webkit-text-fill-color: #fff !important;
}

/* Pricing packages — force dark readable ink on white cards */
html:not([data-theme="dark"]) body.wehfigo-v2 .wehfigo-pricing h2:not(.wehfigo-pricing__hero-title),
html:not([data-theme="dark"]) body.wehfigo-v2 .wehfigo-pricing .wehfigo-section__title,
html:not([data-theme="dark"]) body.wehfigo-v2 .wehfigo-pricing .wehfigo-section__lede,
html:not([data-theme="dark"]) body.wehfigo-v2 .wehfigo-pricing__name,
html:not([data-theme="dark"]) body.wehfigo-v2 .wehfigo-pricing__amount,
html:not([data-theme="dark"]) body.wehfigo-v2 .wehfigo-pricing__price,
html:not([data-theme="dark"]) body.wehfigo-v2 .wehfigo-pricing__features li,
html:not([data-theme="dark"]) body.wehfigo-v2 .wehfigo-pricing__note,
html:not([data-theme="dark"]) body.wehfigo-v2 .wehfigo-pricing__cta.wehfigo-btn--secondary,
html:not([data-theme="dark"]) body.wehfigo-v2 .pricing-plans-container *,
html:not([data-theme="dark"]) body.wehfigo-v2 .pricing-plans-container .plan-price,
html:not([data-theme="dark"]) body.wehfigo-v2 .pricing-plans-container .plan-price .value,
html:not([data-theme="dark"]) body.wehfigo-v2 .pricing-plans-container h3 {
	color: #1a1a1a !important;
	-webkit-text-fill-color: #1a1a1a !important;
}

html:not([data-theme="dark"]) body.wehfigo-v2 .wehfigo-pricing__cta.wehfigo-btn--secondary {
	border-color: #1a1a1a !important;
	background: #fff !important;
}

html:not([data-theme="dark"]) body.wehfigo-v2 .wehfigo-pricing__cta.wehfigo-btn--primary {
	color: #fff !important;
	-webkit-text-fill-color: #fff !important;
}

/* 404 */
body.error404.wehfigo-v2 #titlebar h1,
body.error404.wehfigo-v2 .not-found-content h2 {
	font-family: var(--font-family-brand);
	color: var(--color-page-heading, #1a1a1a) !important;
}

/* Login / register overlays — readable labels */
html:not([data-theme="dark"]) body.wehfigo-v2 .sign-in-form label,
html:not([data-theme="dark"]) body.wehfigo-v2 .mfp-content label,
html:not([data-theme="dark"]) body.wehfigo-v2 #sign-in-dialog label {
	color: #1a1a1a !important;
}

/* Footer credit arrow */
.wehfigo-footer__credit-link {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.wehfigo-footer__credit-arrow {
	display: inline-block;
	font-size: 1.05em;
	line-height: 1;
	transform: translateX(0);
	transition: transform 0.18s ease;
}

.wehfigo-footer__credit-link:hover .wehfigo-footer__credit-arrow {
	transform: translateX(3px);
}

/* Mobile: show Submit Your Listing in header / drawer */
.wehfigo-nav-submit-wrap--mobile {
	display: flex !important;
	width: 100%;
	padding: 0.75rem 1rem;
	box-sizing: border-box;
}

.wehfigo-nav-submit-wrap--mobile .wehfigo-nav-submit-btn {
	width: 100%;
	justify-content: center;
}

@media (max-width: 1023px) {
	body.wehfigo-v2 #header .right-side .wehfigo-nav-submit-wrap {
		display: flex !important;
		align-items: center;
	}

	body.wehfigo-v2 #header .right-side .wehfigo-nav-submit-wrap .wehfigo-nav-submit-btn {
		width: 40px !important;
		height: 40px !important;
		min-width: 40px !important;
		padding: 0 !important;
		border-radius: 50% !important;
		font-size: 0 !important;
	}
}

/* Save Search theme-aware shell lives in wehfigo-archive-search.css (single SSoT). */
