/*
 * Hey Xi'an design layer (ported from the Chengdu Expat child theme).
 * Loaded after style.css. Additive: restyles listing pages, articles, archives and search.
 * Colours: --hx-accent is the deep sage derived from the Hey Xi'an brand sage (#7cbaa5).
 */
/*
 * Chengdu Expat — design refresh layer.
 * Loaded after style.css. Additive: only restyles, never removes content or
 * changes ad banner sizes. Dark mode follows html[data-theme] (auto from the
 * visitor's device setting, set by the toggle script in functions.php).
 */
:root {
	--hx-surface: #ffffff;
	--hx-ink: #1c2528;
	--hx-muted: #58666b;
	--hx-line: #dfe6e3;
	--hx-chip: #eef4f1;
	--hx-accent: #2a705a;
	--hx-radius: 18px;
	--hx-shadow: 0 10px 28px rgba(0, 0, 0, .10);
}
html[data-theme="dark"] {
	--hx-surface: #161a1a;
	--hx-ink: #eaf0ee;
	--hx-muted: #a3b1ad;
	--hx-line: #2a3330;
	--hx-chip: #232b29;
	--hx-shadow: 0 10px 28px rgba(0, 0, 0, .55);
}
/* ---- Listing (place / event) hero: fix the black strip, add a readable scrim ---- */
.listing-hero .jumbotron {
	padding: 0 !important;
	min-height: clamp(280px, 36vw, 440px);
	display: flex;
	align-items: flex-end;
}
.listing-hero .listing-hero-img {
	left: 0 !important;
	right: 0 !important;
	top: 0 !important;
	bottom: 0 !important;
	width: 100% !important;
}
.listing-hero .jumbotron:before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	background: linear-gradient(180deg, rgba(10, 8, 6, 0) 30%, rgba(10, 8, 6, .78) 100%);
}
.listing-hero .jumbotron > .container {
	position: relative;
	z-index: 2;
	padding-top: 0 !important;
	padding-bottom: 28px;
}
/* The hero content block already has its own top padding; on phones keep the stack compact */
@media (max-width: 576px) {
.listing-hero .listing-hero-content {
		padding-top: 120px !important;
		padding-bottom: 20px !important;
	}
.listing-hero .breadcrumb {
		font-size: 12px;
		margin-bottom: 6px;
	}
.listing-hero .right-info {
		margin-top: 8px !important;
	}
}
.listing-hero h1 {
	font-size: clamp(28px, 3.6vw, 44px) !important;
	line-height: 1.15;
	font-weight: 500;
	letter-spacing: -.01em;
	text-shadow: 0 2px 14px rgba(0, 0, 0, .35);
}
/* ---- Listing sidebar + body: calm panels ---- */
#listing-right-sidebar .card,
.details-page1 .content-area .card {
	border-radius: var(--hx-radius) !important;
	border: 1px solid var(--hx-line) !important;
	background: var(--hx-surface) !important;
	box-shadow: none !important;
}
#listing-right-sidebar .widget-area .card,
#listing-right-sidebar .card {
	margin-bottom: 20px;
}
#listing-right-sidebar .card:has(.geodir-map-canvas),
#listing-right-sidebar .card:has(.geodir-map-wrap) {
	overflow: hidden;
}
/* ---- Listing tabs bar ---- */
#listing-menu.listing-nav {
	border-bottom: 1px solid var(--hx-line);
	box-shadow: none;
}
#listing-menu .nav-link {
	font-weight: 500;
}
/* ---- Cards: calmer corners, gentle hover ---- */
.card.card-blog {
	border-radius: var(--hx-radius) !important;
	overflow: hidden;
	transition: box-shadow .2s ease, transform .2s ease;
}
.card.card-blog:hover {
	transform: translateY(-2px);
}
.card.card-blog .entry-title,
.card.card-blog .card-title {
	font-weight: 500;
	line-height: 1.3;
}
/* ---- Category chips ---- */
.card.card-blog .category a,
.entry-meta .cat-links a {
	border-radius: 999px;
}
/* ---- Home hero type ---- */
/* ---- Focus visibility (accessibility) ---- */
a:focus-visible,
button:focus-visible,
input:focus-visible {
	outline: 2px solid var(--hx-accent);
	outline-offset: 2px;
}
html[data-theme="dark"] a:focus-visible,
html[data-theme="dark"] button:focus-visible,
html[data-theme="dark"] input:focus-visible {
	outline-color: #8fd6bd;
}
@media (prefers-reduced-motion: reduce) {
.card.card-blog { transition: none; }
.card.card-blog:hover { transform: none; }
}
/* ==========================================================================
 * Step 2 — Home page
 * ========================================================================== */
/* Hero: readable scrim {
	position: relative;
}
/* Section headings */
/* Recent news: same image shape, cards in a row share one height */
/* ==========================================================================
 * Step 3 — Place / event detail pages
 * ========================================================================== */
/* Each tab section becomes a calm panel (GeoDirectory "tabs as list" layout) */
.geodir-tabs-content.geodir-tabs-as-list > div.mb-4 {
	background: var(--hx-surface);
	border: 1px solid var(--hx-line);
	border-radius: var(--hx-radius);
	padding: 26px 28px;
	margin-bottom: 24px !important;
}
.geodir-tabs-as-list .content-title {
	font-size: 22px;
	font-weight: 500;
	letter-spacing: -.01em;
	margin: 0 0 16px;
	padding: 0;
	border: 0 !important;
	display: flex;
	align-items: center;
	gap: 10px;
}
.geodir-tabs-as-list .content-title i {
	color: var(--hx-accent);
	font-size: 18px;
}
html[data-theme="dark"] .geodir-tabs-as-list .content-title i {
	color: #8fd6bd;
}
.geodir-tabs-as-list .geodir-field-post_content {
	font-size: 16px;
	line-height: 1.7;
}
.geodir-tabs-as-list .geodir-field-post_content img {
	border-radius: 12px;
	height: auto;
	max-width: 100%;
}
/* Facts list in the sidebar */
.geodir-output-location .list-group-item {
	background: transparent !important;
	border-color: var(--hx-line) !important;
	padding: 14px 4px !important;
	line-height: 1.5;
}
.geodir-output-location .list-group-item i.fa-fw,
.geodir-output-location .list-group-item > span:first-child i {
	color: var(--hx-accent);
}
html[data-theme="dark"] .geodir-output-location .list-group-item i.fa-fw {
	color: #8fd6bd;
}
.geodir-output-location .list-group-item a {
	font-weight: 500;
}
/* ==========================================================================
 * Step 4 — Articles and listing cards
 * ========================================================================== */
/* Warm page background in light mode (dark mode keeps its own) */
html:not([data-theme="dark"]) body {
	background-color: #f6f9f8;
}
/* Article: comfortable reading */
.single-post article.card-blog .card-description {
	font-size: 17px;
	line-height: 1.75;
}
html:not([data-theme="dark"]) .single-post article.card-blog .card-description {
	color: #2b2623;
}
.single-post article.card-blog .card-body {
	padding: clamp(20px, 4vw, 48px);
}
.single-post article.card-blog .card-description h1 {
	font-size: clamp(28px, 3.2vw, 38px);
	line-height: 1.2;
	font-weight: 500;
	letter-spacing: -.01em;
}
.single-post article.card-blog .card-description h2,
.single-post article.card-blog .card-description h3 {
	font-weight: 500;
	letter-spacing: -.01em;
	line-height: 1.3;
	margin-top: 1.8em;
}
.single-post article.card-blog .card-description img {
	border-radius: 12px;
	height: auto;
	max-width: 100%;
}
.single-post article.card-blog .card-description table {
	width: 100%;
	border-collapse: collapse;
	display: block;
	overflow-x: auto;
}
.single-post article.card-blog .card-description th,
.single-post article.card-blog .card-description td {
	border: 1px solid var(--hx-line);
	padding: 10px 12px;
}
.single-post article.card-blog .card-top {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 20px;
	font-size: 14px;
	color: var(--hx-muted);
	margin-bottom: 24px;
	padding-bottom: 16px;
	border-bottom: 1px solid var(--hx-line);
}
.single-post article.card-blog .card-top > div {
	margin: 0;
	float: none;
}
.single-post article.card-blog .card-top .category {
	margin-left: auto;
}
.single-post .card.card-blog:hover {
	transform: none;
}
/* GeoDirectory listing cards (events / places archives and widgets) */
.geodir-post .card.h-100 {
	border-radius: var(--hx-radius) !important;
	border: 1px solid var(--hx-line) !important;
	overflow: hidden;
	background: var(--hx-surface) !important;
	box-shadow: none !important;
	transition: box-shadow .2s ease, transform .2s ease;
}
.geodir-post .card.h-100:hover {
	box-shadow: var(--hx-shadow) !important;
	transform: translateY(-2px);
}
.geodir-post .card.h-100 .geodir-entry-title,
.geodir-post .card.h-100 .geodir-entry-title a {
	font-weight: 500;
	line-height: 1.3;
}
.geodir-post .card.h-100 .listing-card-body {
	padding-top: 64px !important;
	background: linear-gradient(180deg, rgba(10, 8, 6, 0) 0%, rgba(10, 8, 6, .62) 38%, rgba(10, 8, 6, .88) 100%) !important;
}
.geodir-post .card.h-100 .listing-card-body .geodir-field-post_category,
.geodir-post .card.h-100 .listing-card-body .geodir-field-post_category a {
	color: #fff !important;
	opacity: .9;
}
.geodir-post .card.h-100 .listing-card-body .geodir-entry-title a {
	color: #fff !important;
	text-shadow: 0 1px 8px rgba(0, 0, 0, .5);
}
.geodir-post .card.h-100 .geodir-output-location .list-group-item {
	background: transparent !important;
	border-color: var(--hx-line) !important;
}
@media (prefers-reduced-motion: reduce) {
.geodir-post .card.h-100 { transition: none; }
.geodir-post .card.h-100:hover { transform: none; }
}
/* ==========================================================================
 * Listing hero: legible badge, date, rating links and buttons on any photo
 * (the dark theme was painting red links and dark boxes on top of the image)
 * ========================================================================== */
html .listing-hero h1,
html .listing-hero .page-header {
	color: #fff !important;
}
html .listing-hero .details-cat .card {
	background: rgba(10, 8, 6, .55) !important;
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	border: 1px solid rgba(255, 255, 255, .3) !important;
	border-radius: 999px !important;
	box-shadow: none !important;
	overflow: hidden;
}
html .listing-hero .details-cat .card,
html .listing-hero .details-cat .card *,
html .listing-hero .details-cat a {
	color: #fff !important;
}
html .listing-hero .geodir-schedule-rows,
html .listing-hero .geodir-schedule-row.list-group-item {
	background: transparent !important;
	border: 0 !important;
	padding: 2px 0 !important;
}
html .listing-hero .geodir-event-schedules,
html .listing-hero .geodir-event-schedules * {
	color: #fff !important;
	text-shadow: 0 1px 8px rgba(0, 0, 0, .45);
}
html .listing-hero .left-info-mid a,
html .listing-hero .gd-list-rating-link {
	color: #fff !important;
	text-decoration: underline;
	text-underline-offset: 3px;
}
html .listing-hero .breadcrumb,
html .listing-hero .breadcrumb span {
	color: rgba(255, 255, 255, .88) !important;
}
html .listing-hero .breadcrumb a {
	color: #fff !important;
}
html .listing-hero .review-button {
	background: var(--hx-accent) !important;
	border-color: var(--hx-accent) !important;
	color: #fff !important;
	font-weight: 500;
	letter-spacing: .04em;
	border-radius: 999px !important;
	padding-left: 22px;
	padding-right: 22px;
}
html .listing-hero .share-btn {
	background: rgba(255, 255, 255, .16) !important;
	border: 1px solid rgba(255, 255, 255, .45) !important;
	color: #fff !important;
	border-radius: 999px !important;
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
}
html .listing-hero .gd-list-favorite,
html .listing-hero .geodir-addtofav {
	color: #fff !important;
}
/* Category badge in the listing hero: compact pill, icon in a white circle, text beside it */
html .listing-hero .details-cat .gd-cptcat-row .row {
	display: flex !important;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 10px !important;
}
html .listing-hero .details-cat .gd-cptcat-parent {
	flex: 0 0 auto !important;
	width: auto !important;
	max-width: none !important;
	padding: 0 !important;
	margin: 0 !important;
}
html .listing-hero .details-cat .gd-cptcat-parent .card {
	width: auto !important;
	display: inline-flex !important;
	height: auto !important;
	background: rgba(10, 8, 6, .5) !important;
	border: 1px solid rgba(255, 255, 255, .28) !important;
	border-radius: 999px !important;
	box-shadow: none !important;
}
html .listing-hero .details-cat .gd-cptcat-parent .card-body {
	padding: 4px 16px 4px 4px !important;
	border: 0 !important;
	background: transparent !important;
	display: flex;
	align-items: center;
	text-align: left !important;
	justify-content: flex-start !important;
}
html .listing-hero .details-cat .gd-cptcat-cat-right {
	display: flex;
	align-items: center;
	width: auto !important;
	height: auto !important;
	padding: 0 !important;
	overflow: visible !important;
	text-align: left !important;
}
html .listing-hero .details-cat .gd-cptcat-cat-right a {
	display: flex !important;
	align-items: center;
	gap: 10px;
	margin: 0 !important;
	font-size: 12px !important;
	font-weight: 500 !important;
	letter-spacing: .12em;
	line-height: 1;
	white-space: nowrap;
	color: #fff !important;
}
html .listing-hero .details-cat .iconbox {
	width: 30px !important;
	height: 30px !important;
	min-width: 30px;
	flex: none;
	border-radius: 50% !important;
	margin: 0 !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	background: #fff !important;
	background-image: none !important;
	box-shadow: none !important;
	border: 0 !important;
	line-height: 0;
	overflow: hidden;
}
html .listing-hero .details-cat .iconbox:before,
html .listing-hero .details-cat .iconbox:after {
	display: none !important;
}
html .listing-hero .details-cat .iconbox .gd-cptcat-icon {
	display: flex !important;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	line-height: 0;
}
html .listing-hero .details-cat .iconbox img {
	width: 18px !important;
	height: 18px !important;
	margin: 0 !important;
	display: block;
	object-fit: contain;
}
/* ==========================================================================
 * Home hero + header: dark mode and small screens
 * ========================================================================== */
/* Dark mode: the search pill matches the dark theme instead of a black field on a white pill */
/* Dark mode: the hamburger icon was black on the dark bar */
/* Phones/tablets: the header bar spans the full width instead of a small floating box */
/* ==========================================================================
 * Dark mode logo: the white/transparent version replaces the white badge
 * (the normal logo is a JPG with a baked-in white background).
 * ========================================================================== */
/* Favourite heart stays visible on pale photos */
.geodir-post .card.h-100 .gd-list-favorite,
.geodir-post .card.h-100 .geodir-addtofav {
	filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .6));
}
/* ==========================================================================
 * Article lists (category archives such as Tips & Essentials)
 * ========================================================================== */
/* Regular cards: same image shape,
compact type,
so rows stay even */
.archive.category .content-area .card.card-blog {
	position: relative;
}
.archive.category .content-area .card.card-blog:not(.card-featured) .card-image {
	aspect-ratio: 16 / 10;
	height: auto;
	overflow: hidden;
	background: var(--hx-chip);
}
.archive.category .content-area .card.card-blog:not(.card-featured) .card-image img {
	width: 100% !important;
	height: 100% !important;
	object-fit: cover;
}
/* Very small source images: show them whole, centred, instead of stretching them */
.archive.category .content-area .card.card-blog .card-image.hx-lowres a {
	display: flex;
	width: 100%;
	height: 100%;
	align-items: center;
	justify-content: center;
}
.archive.category .content-area .card.card-blog .card-image.hx-lowres img {
	object-fit: contain !important;
	width: auto !important;
	max-width: 100%;
	height: auto !important;
	max-height: 100%;
	border-radius: 8px;
}
.archive.category .content-area .card.card-blog:not(.card-featured) h2.entry-title {
	font-size: 1.25rem !important;
	line-height: 1.3;
	font-weight: 500;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.archive.category .content-area .card.card-blog:not(.card-featured) .card-description {
	font-size: .95rem;
	line-height: 1.6;
	display: -webkit-box;
	-webkit-line-clamp: 4;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
/* Whole card is clickable (the title link stretches over it) */
.archive.category .content-area .card.card-blog .entry-title a::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
}
/* "Read more" becomes a quiet text link */
.archive.category .content-area .card.card-blog .card-footer .btn {
	border: 0 !important;
	background: transparent !important;
	padding: 0 !important;
	color: var(--hx-accent) !important;
	font-weight: 500;
	box-shadow: none !important;
}
html[data-theme="dark"] .archive.category .content-area .card.card-blog .card-footer .btn {
	color: #8fd6bd !important;
}
.archive.category .content-area .card.card-blog .card-footer .btn::after {
	content: " →";
}
/* Pagination: round buttons, "Page X of Y" as a small caption */
html .pagination {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 0;
	margin: 32px 0 8px;
}
html .pagination .page-item {
	margin: 0;
}
html .pagination .page-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 42px;
	height: 42px;
	padding: 0 14px;
	border-radius: 999px !important;
	border: 1px solid var(--hx-line) !important;
	background: var(--hx-surface) !important;
	color: var(--hx-ink) !important;
	font-weight: 500;
	box-shadow: none !important;
}
html .pagination .page-item.active .page-link {
	background: var(--hx-accent) !important;
	border-color: var(--hx-accent) !important;
	color: #fff !important;
}
html .pagination .page-link:hover {
	border-color: var(--hx-accent) !important;
}
html .pagination .pagination-summary-item .page-link {
	border: 0 !important;
	background: transparent !important;
	color: var(--hx-muted) !important;
	font-size: 14px;
	font-weight: 400;
}
/* ==========================================================================
 * Detail pages: match the approved mockup (radius, spacing, facts card)
 * ========================================================================== */
/* The theme's own tab-panel rule (radius .25rem, padding 30px) is more specific than ours: out-rank it */
html body .geodir-tabs .geodir-tabs-content.geodir-tabs-as-list > div.mb-4 {
	border-radius: var(--hx-radius) !important;
	padding: 28px !important;
	box-shadow: 0 1px 2px rgba(30, 26, 23, .04);
}
/* Hero: the content block had a 320px top padding on desktop (hero ~660px tall) */
.listing-hero .listing-hero-content {
	padding-top: clamp(120px, 14vw, 200px) !important;
	padding-bottom: 36px !important;
}
/* Admin-only hint box: same rounded language */
.geodir-notifications .alert.alert-info {
	border-radius: 14px;
}
/* Facts card (sidebar): one clean list with hairline dividers instead of boxed rows */
html #listing-right-sidebar .list-group,
html #listing-right-sidebar .geodir-output-location {
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
}
html #listing-right-sidebar .list-group-item {
	border-width: 1px 0 0 0 !important;
	border-style: solid !important;
	border-color: var(--hx-line) !important;
	border-radius: 0 !important;
	padding: 14px 0 !important;
}
html #listing-right-sidebar .list-group-item:first-child {
	border-top-width: 0 !important;
	padding-top: 4px !important;
}
html #listing-right-sidebar .card-body {
	padding: 22px 24px !important;
}
/* ==========================================================================
 * Sidebars: widgets that list cards (News, Upcoming events, Latest news) have
 * no panel of their own — the cards themselves are the panels. Widgets that
 * are a single block (facts, map, actions) keep their card.
 * ========================================================================== */
html #listing-right-sidebar .card:has(.card.card-blog),
html #listing-right-sidebar .card:has(.geodir-post .card),
html #right-sidebar .sidebar-widget:has(.card.card-blog) {
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
	border-radius: 0 !important;
}
html #listing-right-sidebar .card:has(.card.card-blog) > .card-body,
html #listing-right-sidebar .card:has(.geodir-post .card) > .card-body,
html #right-sidebar .sidebar-widget:has(.card.card-blog) > .card-body {
	padding: 0 !important;
}
html #listing-right-sidebar .widget .card-title,
html #listing-right-sidebar .widget h2.card-title,
html #right-sidebar .widget .card-title {
	font-size: 18px;
	font-weight: 600;
	letter-spacing: -.005em;
	border: 0 !important;
	padding: 0 !important;
	margin: 0 0 14px 4px !important;
	text-align: left;
}
html #listing-right-sidebar .widget .widget-inner .row > [class*="col-"] {
	margin-bottom: 16px;
	flex: 0 0 100%;
	max-width: 100%;
}
/* The cards keep their border, radius and a hairline shadow */
html #listing-right-sidebar .card .card.card-blog,
html #right-sidebar .sidebar-widget .card.card-blog,
html #listing-right-sidebar .geodir-post .card.h-100 {
	border: 1px solid var(--hx-line) !important;
	background: var(--hx-surface) !important;
	border-radius: var(--hx-radius) !important;
	overflow: hidden;
	box-shadow: 0 1px 2px rgba(30, 26, 23, .04) !important;
}
/* Distance badge: neutral chip instead of the default blue */
html .geodir-post-distance .gd-badge {
	background: var(--hx-chip) !important;
	color: var(--hx-ink) !important;
	border-radius: 999px !important;
	font-weight: 500;
	padding: 5px 10px;
}
html .geodir-post-distance .gd-badge * {
	color: var(--hx-ink) !important;
}
/* ==========================================================================
 * Facts card (place/event sidebar): small label above each value, accent
 * icons, category/tag chips, no duplicated event title
 * ========================================================================== */
html #listing-right-sidebar .geodir-output-location-detail .geodir_post_meta.list-group-item {
	position: relative;
	background: transparent !important;
	border: 0 !important;
	border-top: 1px solid var(--hx-line) !important;
	border-radius: 0 !important;
	padding: 14px 0 14px 34px !important;
	font-size: 15px;
	line-height: 1.5;
	color: var(--hx-ink);
}
html #listing-right-sidebar .geodir-output-location-detail .geodir_post_meta.list-group-item:first-child {
	border-top: 0 !important;
	padding-top: 4px !important;
}
html #listing-right-sidebar .geodir-output-location-detail .geodir_post_meta.list-group-item > i,
html #listing-right-sidebar .geodir-output-location-detail .geodir_post_meta_icon i,
html #listing-right-sidebar .geodir-output-location-detail .geodir-i-datepicker i {
	position: absolute;
	left: 2px;
	top: 17px;
	color: var(--hx-accent);
	font-size: 16px;
	width: 20px;
	text-align: center;
}
html[data-theme="dark"] #listing-right-sidebar .geodir-output-location-detail .geodir_post_meta_icon i,
html[data-theme="dark"] #listing-right-sidebar .geodir-output-location-detail .geodir-i-datepicker i {
	color: #8fd6bd;
}
html #listing-right-sidebar .geodir-output-location-detail .geodir-field-event_dates i {
	top: 7px;
}
html #listing-right-sidebar .geodir-output-location-detail .geodir_post_meta_icon,
html #listing-right-sidebar .geodir-output-location-detail .geodir-i-datepicker {
	display: block;
	margin: 0 0 2px;
}
html #listing-right-sidebar .geodir-output-location-detail .geodir_post_meta_title,
html #listing-right-sidebar .geodir-output-location-detail .geodir-i-datepicker {
	font-size: 12px;
	letter-spacing: .07em;
	text-transform: uppercase;
	color: var(--hx-muted);
	font-weight: 500;
}
/* The event title is already the page heading */
html #listing-right-sidebar .geodir-output-location-detail .geodir-field-post_title {
	display: none !important;
}
/* Categories and tags as chips (font-size 0 hides the ", " and "and" between links) */
html #listing-right-sidebar .geodir-output-location-detail .geodir-field-post_tags,
html #listing-right-sidebar .geodir-output-location-detail .geodir-field-post_category {
	font-size: 0;
}
html #listing-right-sidebar .geodir-output-location-detail .geodir-field-post_tags .geodir_post_meta_title,
html #listing-right-sidebar .geodir-output-location-detail .geodir-field-post_category .geodir_post_meta_title {
	font-size: 12px;
}
html #listing-right-sidebar .geodir-output-location-detail .geodir-field-post_tags a,
html #listing-right-sidebar .geodir-output-location-detail .geodir-field-post_category a {
	display: inline-block;
	font-size: 13px;
	font-weight: 500;
	background: var(--hx-chip);
	color: var(--hx-ink) !important;
	padding: 4px 12px;
	border-radius: 999px;
	margin: 4px 6px 2px 0;
	text-decoration: none;
}
html #listing-right-sidebar .geodir-output-location-detail .geodir-field-address_pinyin p {
	margin: 0;
}
/* Address on one line: street, city, region */
html #listing-right-sidebar .geodir-output-location-detail .geodir-field-address br {
	display: none;
}
html #listing-right-sidebar .geodir-output-location-detail .geodir-field-address span[itemprop]:not(:last-of-type)::after {
	content: ",";
}
/* ==========================================================================
 * Map card: rounded map, pill-shaped directions field, no dead space
 * ========================================================================== */
html .geodir-map-wrap .geodir_map_container .map_background {
	border-radius: 14px;
	overflow: hidden;
}
html .geodir-map-wrap .leaflet-bar,
html .geodir-map-wrap .leaflet-control-zoom {
	border: 0 !important;
	border-radius: 12px !important;
	overflow: hidden;
	box-shadow: 0 2px 10px rgba(0, 0, 0, .18) !important;
}
html .geodir-map-wrap .leaflet-bar a {
	border-radius: 0 !important;
}
html .geodir-map-directions-wrap {
	margin-top: 14px !important;
}
html .geodir-map-directions-wrap .row {
	margin-left: 0;
	margin-right: 0;
}
html .geodir-map-directions-wrap .row > .col {
	padding-left: 0;
	padding-right: 0;
}
html .geodir-map-directions-wrap .form-group {
	margin-bottom: 0;
}
html .geodir-map-directions-wrap .input-group {
	flex-wrap: nowrap;
	border: 1px solid var(--hx-line);
	border-radius: 999px;
	overflow: hidden;
	background: var(--hx-surface);
}
html .geodir-map-directions-wrap .input-group .form-control {
	border: 0 !important;
	box-shadow: none !important;
	height: 46px;
	padding-left: 18px;
	background: transparent !important;
	border-radius: 0 !important;
}
html .geodir-map-directions-wrap .input-group .input-group-text,
html .geodir-map-directions-wrap .input-group .input-group-append .input-group-text,
html .geodir-map-directions-wrap .input-group .gd-directions-from-user {
	border: 0 !important;
	background: var(--hx-chip) !important;
	border-radius: 0 !important;
}
html .geodir-map-directions-wrap .input-group .btn {
	border: 0 !important;
	border-radius: 0 !important;
	background: var(--hx-accent) !important;
	color: #fff !important;
	font-weight: 500;
	letter-spacing: .04em;
	padding: 0 20px;
}
html .geodir-map-directions-wrap .table {
	margin-bottom: 0 !important;
}
/* ==========================================================================
 * Reviews and rating form (light + dark)
 * ========================================================================== */
/* File drop zone: Bootstrap's bg-light made a bright white box in dark mode */
html .geodir-add-files {
	background: var(--hx-surface) !important;
	color: var(--hx-ink) !important;
	border: 1.5px dashed var(--hx-line) !important;
	border-radius: 16px !important;
	box-shadow: none !important;
}
html .geodir-add-files .geodir-dropbox-title,
html .geodir-add-files .text-muted {
	color: var(--hx-muted) !important;
}
html .geodir-add-files .btn {
	border-radius: 999px !important;
	background: var(--hx-accent) !important;
	border-color: var(--hx-accent) !important;
	color: #fff !important;
}
html #commentform textarea.form-control,
html #commentform input.form-control:not([type="submit"]) {
	border-radius: 12px !important;
}
/* "Post review": brand button (the dark theme was turning it into a dark box) */
html #commentform input[type="submit"],
html #commentform .btn.btn-primary.form-control {
	background: var(--hx-accent) !important;
	border: 0 !important;
	color: #fff !important;
	border-radius: 999px !important;
	height: 48px;
	font-weight: 500;
	letter-spacing: .03em;
	text-align: center;
}
/* "Select a rating" tooltip: white text on light grey was unreadable */
html #commentform .gd-rating-text.badge,
html .gd-rating-input-wrap .badge {
	background: var(--hx-chip) !important;
	color: var(--hx-ink) !important;
	border: 0 !important;
	border-radius: 999px;
	font-weight: 500;
}
html #commentform .form-group.form-control.h-auto {
	border-radius: 14px !important;
}
/* Dark mode: body-size links in the red #c83232 only reach ~3:1 on the dark surface; lighten them */
html[data-theme="dark"] .geodir-tabs-content a:not(.btn),
html[data-theme="dark"] .comments-area a:not(.btn),
html[data-theme="dark"] .comment-respond a:not(.btn),
html[data-theme="dark"] .card-description a:not(.btn),
html[data-theme="dark"] .geodir-output-location a:not(.btn):not(.gd-badge) {
	color: #8fd6bd;
}
/* The row rule above (font-size 15px) out-ranked the chip rows' font-size:0, so the ", " and "and" between chips stayed visible */
html #listing-right-sidebar .geodir-output-location-detail .geodir_post_meta.list-group-item.geodir-field-post_tags,
html #listing-right-sidebar .geodir-output-location-detail .geodir_post_meta.list-group-item.geodir-field-post_category {
	font-size: 0;
}
html #listing-right-sidebar .geodir-output-location-detail .geodir_post_meta.list-group-item.geodir-field-post_tags .geodir_post_meta_title,
html #listing-right-sidebar .geodir-output-location-detail .geodir_post_meta.list-group-item.geodir-field-post_category .geodir_post_meta_title {
	font-size: 12px;
}
/* ==========================================================================
 * Section intro (category pages, see mu-plugins/hx-seo-content.php)
 * ========================================================================== */
.hx-section-intro {
	flex: 0 0 100%;
	max-width: 70ch;
	margin: 0 15px 24px;
	font-size: 1.1rem;
	line-height: 1.6;
	color: var(--hx-muted);
}
/* ==========================================================================
 * Forms, buttons, search badges, static pages and footer
 * ========================================================================== */
/* Form controls: rounded,
brand focus ring */
html .form-control,
html .custom-select,
html select.form-control,
html .input-group > .form-control {
	border-radius: 12px;
	border: 1px solid var(--hx-line);
	min-height: 44px;
	box-shadow: none;
}
html .form-control:focus,
html .custom-select:focus {
	border-color: var(--hx-accent);
	box-shadow: 0 0 0 3px rgba(42, 112, 90, .18) !important;
}
html textarea.form-control {
	min-height: 120px;
}
/* Buttons: brand red everywhere (the default outline buttons were blue/green) */
html .btn-primary:not(.input-group .btn) {
	border-radius: 999px;
}
html .btn-outline-primary {
	color: var(--hx-accent);
	border-color: var(--hx-accent);
	border-radius: 999px;
	background: transparent;
}
html .btn-outline-primary:hover,
html .btn-outline-primary:focus {
	background: var(--hx-accent);
	border-color: var(--hx-accent);
	color: #fff;
}
html[data-theme="dark"] .btn-outline-primary {
	color: #8fd6bd;
	border-color: #8fd6bd;
}
html[data-theme="dark"] .btn-outline-primary:hover,
html[data-theme="dark"] .btn-outline-primary:focus {
	background: #2a705a;
	border-color: #2a705a;
	color: #fff;
}
html .geodir_preview_button.btn-outline-primary {
	background: transparent !important;
}
/* Add Place / Add Event: labels above the fields instead of a left column */
html #geodirectory-add-post .form-group.row {
	flex-direction: column;
	margin: 0 0 22px;
}
html #geodirectory-add-post .form-group.row > [class*="col-"] {
	flex: 0 0 100%;
	max-width: 100%;
	padding-left: 0;
	padding-right: 0;
}
html #geodirectory-add-post label.col-form-label {
	padding: 0 0 6px;
	font-weight: 500;
	font-size: 15px;
}
html #geodirectory-add-post .form-text,
html #geodirectory-add-post small.text-muted {
	color: var(--hx-muted) !important;
	font-size: 13px;
}
html .geodir-add-listing h2,
html #geodirectory-add-post h3 {
	font-size: 22px;
	font-weight: 500;
	letter-spacing: -.01em;
}
/* Search results: type badges (Article / Event / Place) in one neutral style */
html .search-type-badge {
	background: rgba(10, 8, 6, .72) !important;
	color: #fff !important;
	border-radius: 999px !important;
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	font-weight: 500;
	letter-spacing: .06em;
}
/* Static pages (add listing, account, contact...): the content box matches the cards */
html #page-wrapper .content-area > .site-main {
	border-radius: var(--hx-radius) !important;
	border: 1px solid var(--hx-line);
	padding: 32px !important;
}
/* Shared site footer */
/* ==========================================================================
 * Hero thumbnails (mu-plugins/hx-listing-gallery.php): the other photos of a
 * listing as small rounded thumbnails inside the hero; "+N" opens the Photos section
 * ========================================================================== */
.hx-hero-thumbs {
	display: flex;
	gap: 8px;
	margin-top: 14px;
	justify-content: flex-end;
}
.hx-ht {
	position: relative;
	display: block;
	width: 92px;
	height: 68px;
	border-radius: 12px;
	overflow: hidden;
	border: 2px solid rgba(255, 255, 255, .85);
	box-shadow: 0 4px 14px rgba(0, 0, 0, .35);
	background: rgba(0, 0, 0, .3);
}
.hx-ht img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform .3s ease;
}
.hx-ht:hover img {
	transform: scale(1.06);
}
.hx-ht-more {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(10, 8, 6, .55);
	color: #fff;
	font-weight: 600;
	font-size: 15px;
}
@media (max-width: 991.98px) {
.hx-hero-thumbs { justify-content: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
.hx-ht img { transition: none; }
.hx-ht:hover img { transform: none; }
}
/* Reserve space for the mobile menu above the homepage hero. */
/* Compact split hero on the homepage. */
.hx-archive__header h1 em {
	font-family: Baskerville, Georgia, "Times New Roman", serif;
	font-style: italic;
	font-weight: 400;
	letter-spacing: -.025em;
}
/* Clean Home editorial sections and existing sponsor widgets. */
/* Homepage event discovery */
/* Single event pages */
.hx-event-redesign > #content {
	width: 100%;
	max-width: none;
	padding-inline: 15px;
}
.hx-event-redesign .listing-hero .jumbotron {
	min-height: clamp(360px, 41vw, 590px);
}
.hx-event-redesign .listing-hero .jumbotron::before {
	background: linear-gradient(0deg, #0e1220ed, #0e12201a 87%),
		linear-gradient(90deg, #0e12207a, transparent 81%);
}
.hx-event-redesign .listing-hero .listing-hero-content {
	padding-top: clamp(125px, 15vw, 245px) !important;
	padding-bottom: clamp(18px, 3vw, 42px) !important;
	gap: 12px 24px;
}
.hx-event-redesign .listing-hero h1 {
	font-size: clamp(32px, 4.4vw, 67px) !important;
	letter-spacing: -.035em;
	line-height: 1.04;
}
.hx-event-redesign .listing-hero .right-info { flex-shrink: 0; }
.hx-event-visit-link {
	display: inline-block;
	border-radius: 999px;
	padding: 9px 17px;
	margin-top: 12px;
	background: #f3faf7;
	color: #211c19 !important;
	font-weight: 500;
}
.hx-event-redesign #listing-menu:has(.listing-tabs:empty) { display: none; }
.hx-event-jump {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 24px;
	padding: 20px 0 15px;
	margin-bottom: 24px;
	border-bottom: 1px solid var(--hx-line);
}
.hx-event-jump button {
	border: 0;
	border-radius: 0;
	padding: 0 0 6px;
	background: transparent;
	color: var(--hx-ink);
	font: inherit;
	font-weight: 500;
}
.hx-event-jump button[aria-selected="true"] {
	box-shadow: inset 0 -2px currentColor;
}
.hx-event-redesign .hx-event-panel[hidden],
.hx-place-redesign .hx-event-panel[hidden] { display: none !important; }
.hx-event-redesign :is(#post_content, #post_images, #reviews, #respond, #post_map, #hx-event-visit, #hx-event-photos),
.hx-place-redesign :is(#post_content, #post_images, #reviews, #respond, #post_map) {
	scroll-margin-top: 125px;
}
.hx-event-redesign .hx-event-lower {
	display: grid;
	gap: clamp(24px, 4vw, 52px);
	padding-block: 24px 50px;
}
.hx-event-redesign .hx-event-lower > * {
	min-width: 0;
	margin: 0 !important;
}
.hx-event-redesign :is(.hx-event-lower, .hx-event-panel) h2 {
	color: var(--hx-ink);
	font-size: clamp(25px, 3vw, 37px);
	margin: 0 0 18px;
}
.hx-event-redesign #post_map > h2 { padding: 18px 18px 0; }
.hx-event-redesign #post_map {
	border-radius: var(--hx-radius);
	background: var(--hx-surface);
}
.hx-event-redesign .geodir-map-wrap { width: 100%; }
.hx-event-redesign #reviews {
	border-top: 1px solid var(--hx-line);
	padding-top: 22px;
}
.hx-event-redesign #reviews .comment-respond { max-width: 880px; }
.hx-event-photo-grid,
.hx-event-news__grid {
	display: grid;
	gap: 16px;
}
.hx-event-photo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hx-event-photo-grid a,
.hx-event-news__card {
	display: block;
	overflow: hidden;
	border-radius: var(--hx-radius);
	background: var(--hx-surface);
	color: var(--hx-ink) !important;
}
.hx-event-photo-grid img,
.hx-event-news__card img {
	width: 100%;
	aspect-ratio: 1.65;
	object-fit: cover;
	transition: transform 180ms ease;
}
.hx-event-photo-grid a:hover img,
.hx-event-news__card:hover img { transform: scale(1.035); }
.hx-event-news__card strong {
	display: block;
	padding: 13px 15px 16px;
	font-weight: 500;
	line-height: 1.25;
}
.hx-event-news__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 768px) {
.hx-event-news__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1100px) {
.hx-event-news__grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.hx-event-redesign #more-events .geodir-widget-posts > .geodir-post {
		flex: 0 0 20%;
		max-width: 20%;
	}
}
@media (max-width: 767px) {
.hx-event-photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
.hx-event-redesign img { transition: none; }
}
.hx-event-facts-title { color: var(--hx-ink); font-size: 1.4rem; margin: 16px 16px 8px; }
/* Article category archives */
.hx-archive {
	--hx-archive-accent: var(--hx-accent);
	width: 100%;
	max-width: 1536px;
	margin-inline: auto;
	padding: 28px clamp(15px, 3vw, 48px) 54px;
	color: var(--hx-ink);
}
html[data-theme="dark"] .hx-archive { --hx-archive-accent: #8fd6bd; }
.hx-archive a { color: inherit; }
.hx-archive a:hover { color: var(--hx-archive-accent); }
.hx-archive a:focus-visible { outline: 2px solid var(--hx-archive-accent); outline-offset: 3px; }
.hx-archive__breadcrumb,
.hx-archive__description,
.hx-archive-card time { color: var(--hx-muted); }
.hx-archive__breadcrumb { font-size: .875rem; }
.hx-archive__header h1 {
	margin: 12px 0;
	color: inherit;
	font-size: clamp(40px, 6vw, 86px);
	font-weight: 700;
	line-height: 1.04;
	letter-spacing: -.045em;
}
.hx-archive__header h1 em { color: var(--hx-archive-accent); }
.hx-archive__description { max-width: 70ch; font-size: 1.15rem; }
.hx-archive__topics {
	display: flex;
	gap: 24px;
	overflow-x: auto;
	margin: 13px 0 24px;
	border-bottom: 1px solid var(--hx-line);
}
.hx-archive__topics a {
	flex: 0 0 auto;
	padding-block: 12px;
	border-bottom: 3px solid transparent;
	font-weight: 600;
	text-decoration: none;
}
.hx-archive__topics [aria-current="page"] {
	color: var(--hx-archive-accent);
	border-color: currentColor;
}
.hx-archive__top,
.hx-archive__feature,
.hx-archive__grid { display: grid; gap: clamp(16px, 2vw, 28px); }
.hx-archive__top--sidebar { grid-template-columns: minmax(0, 1fr) minmax(225px, 23%); }
.hx-archive__feature { margin-bottom: 26px; }
.hx-archive__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.hx-archive__grid--five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.hx-archive__top + .hx-archive__grid { margin-top: 24px; }
.hx-archive h2 { color: inherit; font-size: clamp(22px, 2.4vw, 34px); letter-spacing: -.025em; }
.hx-archive__top .hx-archive__grid--essentials { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hx-archive-card {
	min-width: 0;
	border-radius: var(--hx-radius);
	background: var(--hx-surface);
}
.hx-archive-card a {
	display: block;
	height: 100%;
	overflow: hidden;
	border: 1px solid var(--hx-line);
	border-radius: inherit;
	text-decoration: none;
	transition: transform .15s ease;
}
.hx-archive-card a:hover { transform: translateY(-2px); }
.hx-archive-card__image { display: block; aspect-ratio: 1.72; overflow: hidden; }
.hx-archive-card--lead .hx-archive-card__image { aspect-ratio: 2.25; }
.hx-archive-card__image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hx-archive-card__copy { padding: 13px 15px 15px; }
.hx-archive-card__category {
	display: inline-block;
	margin-bottom: 8px;
	padding: 3px 9px;
	border-radius: 999px;
	background: var(--hx-chip);
	color: var(--hx-archive-accent);
	font-size: .75rem;
	font-weight: 700;
}
.hx-archive-card__copy h2,
.hx-archive-card__copy h3 { margin: 0; color: inherit; line-height: 1.2; }
.hx-archive-card__copy h3 { font-size: clamp(16px, 1.5vw, 22px); }
.hx-archive-card time { display: block; margin-top: 8px; font-size: .85rem; }
.hx-archive-card__excerpt { margin-top: 14px; color: var(--hx-muted); line-height: 1.55; }
.hx-archive-card__excerpt p:last-child { margin-bottom: 0; }
@media (min-width: 701px) {
.hx-archive-card--split > a {
		display: grid;
		grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
		min-height: clamp(200px, 19vw, 290px);
	}
.hx-archive-card--split .hx-archive-card__image { position: relative; aspect-ratio: auto; }
.hx-archive-card--split .hx-archive-card__image img { position: absolute; inset: 0; }
.hx-archive-card--split .hx-archive-card__copy {
		align-self: center;
		padding: clamp(16px, 2.2vw, 34px);
	}
}
.hx-archive__sidebar { min-width: 0; }
.hx-archive__sidebar img { max-width: 100%; height: auto; }
.hx-archive .pagination { margin-block: 24px 0; }
.hx-archive .nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.hx-archive .nav-links .page-numbers { display: inline-block; padding: 8px 12px; }
.hx-archive .nav-links .current { background: var(--hx-surface); border-radius: 8px; color: var(--hx-archive-accent); }
.hx-archive__related { margin-top: 34px; padding-top: 20px; border-top: 1px solid var(--hx-line); }
.hx-archive__related header { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; margin-bottom: 14px; }
.hx-archive__related header h2 { margin: 0; }
.hx-archive__related header a { color: var(--hx-archive-accent); font-weight: 600; }
.hx-archive__events .geodir-post .card { border-radius: var(--hx-radius); overflow: hidden; }
@media (max-width: 1100px) {
.hx-archive__top .hx-archive__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 850px) {
.hx-archive__top--sidebar { grid-template-columns: 1fr; }
.hx-archive__sidebar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.hx-archive__grid,
.hx-archive__grid--five { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 575px) {
.hx-archive__top .hx-archive__grid--essentials { grid-template-columns: 1fr; }
.hx-archive__grid,
.hx-archive__grid--five { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hx-archive-card__copy { padding: 11px; }
}
@media (prefers-reduced-motion: reduce) {
.hx-archive-card a { transition: none; }
}
/* Site search uses the same cards and title treatment as the article archives. */
.hx-search__form {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	max-width: 38rem;
}
.hx-search__form input[type="search"] {
	flex: 1 1 14rem;
	width: auto;
	min-width: 0;
}
.hx-search .hx-archive__header h1 { overflow-wrap: anywhere; }
.hx-search .hx-archive-card__copy h2 { font-size: clamp(17px, 1.55vw, 23px); }
.hx-search .hx-archive-card--lead .hx-archive-card__copy h2 { font-size: clamp(23px, 2.6vw, 37px); }
.hx-search .hx-archive-card:not(.hx-archive-card--lead) .hx-archive-card__excerpt { font-size: .9rem; }
@media (min-width: 900px) {
.hx-search__feature--pair { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hx-search .hx-search__feature--pair .hx-archive-card__copy h2 {
		font-size: clamp(20px, 1.8vw, 28px);
	}
.hx-search__feature--pair .hx-archive-card--split > a { min-height: 210px; }
.hx-search__feature--pair .hx-archive-card--split .hx-archive-card__copy {
		padding: clamp(14px, 1.5vw, 24px);
	}
}
/* About and Gap Club */
.hx-gap #single-wrapper > #content,
.hx-gap__nav {
	width: 100%;
	max-width: 1536px;
	margin-inline: auto;
	padding-inline: clamp(15px, 3vw, 48px);
}
.hx-gap #listing-menu { display: none; }
.hx-gap__nav {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 22px;
	margin-bottom: 24px;
}
.hx-gap__nav a { padding-block: 8px; color: var(--hx-ink); font-weight: 600; }
.hx-gap__nav a:hover { color: var(--hx-accent); text-decoration: underline; }
.hx-gap__visit { margin-bottom: 12px; font-size: 1.45rem; }
.hx-gap :is(#post_content, #post_images, #gd_map-4, #reviews, #respond) { scroll-margin-top: 110px; }
.hx-gap .geodir-field-post_content img { border-radius: var(--hx-radius); }
/* ==========================================================================
 * Design refresh v2 — accessibility, scale, seals.
 * China-hosting rules for this block: no web fonts, no CDN, no new requests.
 * Chinese glyphs use the visitor's installed CJK system font only.
 * ========================================================================== */
:root {
	--hx-cjk: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", "Noto Sans SC", "WenQuanYi Micro Hei", sans-serif;
	--hx-link-dark: #8fd6bd; /* 8.5:1 on #121212 — replaces rgb(200,50,50), 3.5:1 */
}
/* --- Home body copy to 16px; the rest of the site keeps the theme default for now --- */
/* --- Primary nav: 12.6px -> 14px, one weight, comfortable hit area --- */
/* --- Nothing below 12px --- */
.gd-cptcat-count { font-size: .75rem; }
/* --- 44px tap targets for homepage controls --- */
/* --- Dark mode: restore ink where the global link colour used to leak in --- */
/* --- Seals: one Chinese character per directory category (also what a driver can read) --- */
.tiles-card .cat-tiles-link .card-body > i,
.tiles-card .cat-tiles-link .card-body > img { display: none !important; }
/* old FA / map-pin icons: the seal replaces them */
.tiles-card .cat-tiles-link .card-body::before {
	content: "";
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	margin-bottom: 10px;
	border-radius: 6px;
	background: #2a705a;
	color: #fff;
	font: 700 22px/1 var(--hx-cjk);
	transform: rotate(-4deg);
}
.tiles-card .cat-tiles-link[href*="/restaurants"] .card-body::before { content: "食"; content: "食" / ""; }
.tiles-card .cat-tiles-link[href*="/shopping"]    .card-body::before { content: "购"; content: "购" / ""; }
.tiles-card .cat-tiles-link[href*="/coffee"]      .card-body::before { content: "茶"; content: "茶" / ""; }
.tiles-card .cat-tiles-link[href*="/nightlife"]   .card-body::before { content: "夜"; content: "夜" / ""; }
.tiles-card .cat-tiles-link[href*="/hotels"]      .card-body::before { content: "住"; content: "住" / ""; }
.tiles-card .cat-tiles-link[href*="/sports"]      .card-body::before { content: "动"; content: "动" / ""; }
.tiles-card .cat-tiles-link[href*="/services"]    .card-body::before { content: "务"; content: "务" / ""; }
.tiles-card .cat-tiles-link[href*="/travel"]      .card-body::before { content: "行"; content: "行" / ""; }
@media (prefers-contrast: more) {
.tiles-card .cat-tiles-link .card-body::before { outline: 2px solid #fff; }
}
/* --- Small inline controls: grow the hit area without changing the layout --- */
.gd-list-rating-link,
.sow-carousel-next,
.sow-carousel-previous { position: relative; }
.gd-list-rating-link::after,
.sow-carousel-next::after,
.sow-carousel-previous::after {
	content: "";
	position: absolute;
	inset: -12px -8px;
}
/* ==========================================================================
 * Design refresh v3 — articles, places and events archives.
 * Same China-hosting rules as v2: no new requests, no web fonts.
 * ========================================================================== */
/* Event dates and times were 11px: they are the key fact on an event card */
html .geodir-schedule .geodir-schedule-start,
html .geodir-schedule .geodir-schedule-sep,
html .geodir-schedule .geodir-schedule-end { font-size: .8125rem; }
/* Unrated places: five solid stars read as a perfect score, so show them as empty */
.gd-rating-wrap[title="No rating yet!"] { opacity: .4; }
/* 44px hit areas: pagination, sort / view buttons, search button, category lists, topic tabs */
html .page-numbers,
html .pagination .page-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
}
html .geodir-sort-by .btn,
html .geodir_submit_search { min-width: 44px; min-height: 44px; }
.cat-item > a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
}
.hx-archive__topics a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
}
/* Breadcrumbs stay compact; the clickable area grows invisibly */
.hx-archive__breadcrumb a { position: relative; }
.hx-archive__breadcrumb a::after {
	content: "";
	position: absolute;
	inset: -14px -4px;
}
/* ==========================================================================
 * Homepage section titles: one style. Plain, same size, left-aligned.
 * The red italic word stays in the hero headline only.
 * ========================================================================== */
/* ==========================================================================
 * Single place and event pages: the refreshed layout (class .hx-gap, set in
 * inc/listing-layout.php) now applies to every listing. Event-specific tuning.
 * ========================================================================== */
/* Primary buttons keep white text; the dark-mode link colour made "Get directions" unreadable */
html .btn-primary,
html[data-theme="dark"] .btn-primary { color: #fff !important; }
/* Events: date prefix pulled out of the title as a small red eyebrow */
.hx-gap__when {
	display: block;
	margin-bottom: 8px;
	color: var(--hx-accent);
	font-size: .8125rem;
	font-weight: 500;
	letter-spacing: .14em;
	text-transform: uppercase;
}
html[data-theme="dark"] .hx-gap__when { color: #8fd6bd; }
/* Every place and event (Gap Club included): full-width photo, text straight on it.
   Light mode: a soft light fade on the text side so the title can be black, with the
   last word in red italic serif. Dark mode: dark fade, white title, coral accent. */
.hx-gap .listing-hero .jumbotron { min-height: clamp(400px, 40vw, 540px); }
.hx-gap .listing-hero .jumbotron::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	background: linear-gradient(90deg, rgba(250, 248, 246, .94) 0%, rgba(250, 248, 246, .86) 30%, rgba(250, 248, 246, .5) 50%, rgba(250, 248, 246, 0) 72%) !important;
}
html[data-theme="dark"] .hx-gap .listing-hero .jumbotron::before {
	background: linear-gradient(90deg, rgba(10, 8, 6, .88) 0%, rgba(10, 8, 6, .7) 30%, rgba(10, 8, 6, .35) 50%, rgba(10, 8, 6, 0) 72%) !important;
}
/* Light mode: the text side is pale, so use dark text there (share / review stay on the photo side) */
html:not([data-theme="dark"]) .hx-gap .listing-hero :is(h1, .page-header, .gd-list-rating-link, .left-info-mid a, .gd-list-favorite, .geodir-addtofav) {
	color: var(--hx-ink) !important;
	text-shadow: none;
}
html:not([data-theme="dark"]) .hx-gap .listing-hero .breadcrumb,
html:not([data-theme="dark"]) .hx-gap .listing-hero .breadcrumb span { color: var(--hx-muted) !important; }
html:not([data-theme="dark"]) .hx-gap .listing-hero .breadcrumb a { color: var(--hx-ink) !important; }
html:not([data-theme="dark"]) .hx-gap .listing-hero .details-cat .card {
	background: var(--hx-chip) !important;
	border-color: var(--hx-line) !important;
	-webkit-backdrop-filter: none;
	backdrop-filter: none;
}
html:not([data-theme="dark"]) .hx-gap .listing-hero .details-cat .card,
html:not([data-theme="dark"]) .hx-gap .listing-hero .details-cat .card *,
html:not([data-theme="dark"]) .hx-gap .listing-hero .details-cat a { color: var(--hx-ink) !important; }
html:not([data-theme="dark"]) .hx-gap .listing-hero .geodir-event-schedules,
html:not([data-theme="dark"]) .hx-gap .listing-hero .geodir-event-schedules * { color: var(--hx-ink) !important; text-shadow: none; }
.hx-gap .listing-hero h1 {
	font-size: clamp(32px, 4vw, 56px) !important;
	line-height: 1.06;
}
.hx-gap--event .listing-hero h1 {
	font-size: clamp(26px, 3vw, 42px) !important;
	line-height: 1.15;
}
.hx-gap .listing-hero h1 em {
	font: italic 400 1em Baskerville, Georgia, "Times New Roman", serif;
	color: var(--hx-accent);
}
html[data-theme="dark"] .hx-gap .listing-hero h1 em { color: #8fd6bd; }
@media (max-width: 767px) {
/* Phone: the text sits low on the photo, so the fade comes from the bottom */
.hx-gap .listing-hero .jumbotron::before {
		background: linear-gradient(0deg, rgba(250, 248, 246, .96) 0%, rgba(250, 248, 246, .88) 55%, rgba(250, 248, 246, .2) 100%) !important;
	}
html[data-theme="dark"] .hx-gap .listing-hero .jumbotron::before {
		background: linear-gradient(0deg, rgba(10, 8, 6, .9) 0%, rgba(10, 8, 6, .7) 55%, rgba(10, 8, 6, .15) 100%) !important;
	}
}
/* Detail-page section headings: one size */
.hx-gap .geodir-tabs-content .content-title,
.hx-gap .hx-event-news h2,
.hx-gap .hx-gap__visit,
.hx-gap .hx-event-facts-title {
	font-size: clamp(22px, 2.2vw, 28px);
	font-weight: 500;
	letter-spacing: -.02em;
	line-height: 1.2;
}
/* In-page navigation: 44px targets */
.hx-gap__nav a { display: inline-flex; align-items: center; min-height: 44px; }
/* Place and event archive headings: "Restaurants in Chengdu", "What's on in Chengdu" */
.geodir-page h1.page-title.hx-geo-title {
	font-size: clamp(30px, 3.2vw, 46px);
	font-weight: 500;
	letter-spacing: -.035em;
	line-height: 1.05;
	margin: 0 0 18px;
}
.hx-geo-title em {
	font-family: Baskerville, Georgia, "Times New Roman", serif;
	font-style: italic;
	font-weight: 400;
	letter-spacing: -.025em;
	color: var(--hx-accent);
}
html[data-theme="dark"] .hx-geo-title em { color: #8fd6bd; }
/* Home widget titles (What are you looking for?, Most read, Places to know in Chengdu):
   same rule line, spacing and weight as Recent news / Useful info. */
/* ==========================================================================
 * Single place / event sidebar: use the space.
 * The facts column was a short stack beside a very long page. It now stays in
 * view while you read (js/sticky-sidebar.js), and the facts card is denser.
 * ========================================================================== */
@media (min-width: 768px) {
.hx-gap #listing-right-sidebar.hx-sticky {
		align-self: flex-start;
		position: sticky;
		top: 120px;
	}
}
/* Short facts sit side by side; long ones (date, address) keep the full width */
.hx-gap #listing-right-sidebar .geodir-output-location-detail {
	display: grid !important;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	grid-auto-flow: dense;
	column-gap: 12px;
}
.hx-gap #listing-right-sidebar .geodir-output-location-detail > .geodir_post_meta { grid-column: 1 / -1; }
.hx-gap #listing-right-sidebar .geodir-output-location-detail > :is(.geodir-field-timing, .geodir-field-business_hours, .geodir-field-post_category, .geodir-field-post_tags) {
	grid-column: auto;
}
html .hx-gap #listing-right-sidebar .geodir-output-location-detail .geodir_post_meta.list-group-item {
	padding: 10px 0 10px 34px !important;
	line-height: 1.4;
}
html .hx-gap #listing-right-sidebar .geodir-output-location-detail .geodir_post_meta.list-group-item > i,
html .hx-gap #listing-right-sidebar .geodir-output-location-detail .geodir_post_meta_icon i { top: 12px; }
html .hx-gap #listing-right-sidebar .card-body { padding: 14px 18px; }
@media (max-width: 991px) {
/* Narrow sidebar: one column again */
.hx-gap #listing-right-sidebar .geodir-output-location-detail > :is(.geodir-field-timing, .geodir-field-business_hours, .geodir-field-post_category, .geodir-field-post_tags) { grid-column: 1 / -1; }
}
/* Widget cards in the sidebar (news, upcoming events): shorter images */
.hx-gap #listing-right-sidebar .card.card-blog .card-image img,
.hx-gap #listing-right-sidebar .geodir-post .card-img-top,
.hx-gap #listing-right-sidebar .geodir-post .geodir-image-container img {
	max-height: 150px;
	object-fit: cover;
}
/* Home section titles: red italic last word (coral in dark mode), like the hero */
/* ==========================================================================
 * Single article (all posts): breadcrumb, eyebrow, big title with a red
 * italic last word, meta line, photo, readable text, sticky sidebar.
 * ========================================================================== */
.single-post .hx-article {
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
}
.single-post .hx-article .card-body { padding: 0 !important; }
.hx-article__header { max-width: 820px; margin: 10px 0 26px; }
.hx-article__breadcrumb { margin-bottom: 14px; color: var(--hx-muted); font-size: .875rem; }
.hx-article__breadcrumb a { position: relative; color: inherit; }
.hx-article__breadcrumb a::after { content: ""; position: absolute; inset: -14px -4px; }
.hx-article__breadcrumb a:hover { color: var(--hx-accent); }
.hx-article__kicker {
	display: inline-block;
	margin-bottom: 6px;
	color: var(--hx-accent);
	font-size: .8125rem;
	font-weight: 500;
	letter-spacing: .14em;
	text-transform: uppercase;
}
html[data-theme="dark"] .hx-article__kicker { color: #8fd6bd; }
.single-post .hx-article h1.hx-article__title {
	margin: 0 0 16px;
	color: var(--hx-ink);
	font-size: clamp(32px, 4.2vw, 58px) !important;
	font-weight: 500;
	letter-spacing: -.035em;
	line-height: 1.05;
	overflow-wrap: anywhere;
}
.hx-article__title em {
	font-family: Baskerville, Georgia, "Times New Roman", serif;
	font-style: italic;
	font-weight: 400;
	letter-spacing: -.025em;
	color: var(--hx-accent);
}
html[data-theme="dark"] .hx-article__title em { color: #8fd6bd; }
.hx-article__lead { max-width: 62ch; margin: 0 0 18px; color: var(--hx-muted); font-size: 1.25rem; line-height: 1.5; }
.hx-article__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 20px;
	color: var(--hx-muted);
	font-size: .9375rem;
}
.hx-article__author { display: inline-flex; align-items: center; gap: 10px; }
.hx-article__author img { width: 36px; height: 36px; border-radius: 50%; }
.hx-article__meta a { color: var(--hx-ink); }
.hx-article__hero { margin: 0 0 30px; }
.hx-article__hero img {
	display: block;
	width: 100%;
	height: auto;
	max-height: 540px;
	object-fit: cover;
	border-radius: var(--hx-radius);
}
.hx-article__body { font-size: 1.125rem; line-height: 1.75; }
.single-post .hx-article .hx-article__body p,
.single-post .hx-article .hx-article__body li {
	max-width: none;
	margin-left: 0 !important;
	margin-right: 0;
	line-height: 1.7 !important;
}
.single-post .hx-article .hx-article__body p { margin-bottom: 1em; }
.single-post .hx-article .hx-article__body,
.single-post .hx-article .hx-article__body :is(p, li) { color: var(--hx-ink); }
.hx-article__body h2,
.hx-article__body h3 { margin-top: 1.9em; font-weight: 500; letter-spacing: -.02em; line-height: 1.25; }
.hx-article__body a { color: var(--hx-accent); text-underline-offset: 3px; }
.hx-article__body blockquote {
	margin: 1.6em 0;
	padding: 2px 0 2px 20px;
	border-left: 3px solid var(--hx-accent);
	color: var(--hx-muted);
}
.hx-article__footer {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-top: 36px;
	padding-top: 18px;
	border-top: 1px solid var(--hx-line);
}
.hx-article__footer-label { margin-right: 6px; color: var(--hx-muted); font-size: .8125rem; letter-spacing: .08em; text-transform: uppercase; }
.hx-article__footer a {
	display: inline-flex;
	align-items: center;
	min-height: 36px;
	padding: 0 14px;
	border-radius: 999px;
	background: var(--hx-chip);
	color: var(--hx-ink) !important;
	font-size: .875rem;
}
.hx-article__footer a:hover { background: var(--hx-line); }
@media (min-width: 768px) {
body.single-post #right-sidebar.hx-sticky {
		align-self: flex-start;
		position: sticky;
		top: 120px;
	}
}
body.single-post #right-sidebar .card.card-blog .card-image img { max-height: 150px; object-fit: cover; }
/* ==========================================================================
 * Maps (places, events, single listings): clusters, markers, popups.
 * Clustering is switched on in functions.php (client side, library from the
 * GeoDirectory Marker Cluster add-on on this domain, nothing from outside China).
 * ========================================================================== */
.marker-cluster { background: rgba(42, 112, 90, .22); border-radius: 50%; }
.marker-cluster div {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	margin: 5px;
	border: 2px solid #fff;
	border-radius: 50%;
	background: #2a705a;
	color: #fff;
	font: 600 14px/1 Ubuntu, sans-serif;
	box-shadow: 0 2px 8px rgba(0, 0, 0, .35);
}
.marker-cluster span { line-height: 1; }
.marker-cluster-medium div { background: #8a0000; }
.marker-cluster-large div { width: 38px; height: 38px; background: #6b0000; }
.leaflet-container img.leaflet-marker-icon { filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .4)); }
.leaflet-popup-content-wrapper {
	padding: 0;
	overflow: hidden;
	border-radius: 14px;
	background: var(--hx-surface);
	color: var(--hx-ink);
	box-shadow: 0 12px 32px rgba(0, 0, 0, .3);
}
.leaflet-popup-tip { background: var(--hx-surface); }
.leaflet-popup-content { min-width: 200px; margin: 16px 18px; line-height: 1.35; }
.leaflet-popup-content .geodir-marker-popup h4 {
	margin: 0 24px 12px 0;
	color: var(--hx-ink) !important;
	font-size: 18px;
	font-weight: 500;
	line-height: 1.25;
}
.leaflet-popup-content a.geodir-marker-link {
	display: inline-flex;
	align-items: center;
	min-height: 40px;
	padding: 0 18px;
	border-radius: 999px;
	background: #2a705a;
	color: #fff !important;
	font-size: 14px;
	font-weight: 500;
	text-decoration: none;
}
.leaflet-container a.leaflet-popup-close-button {
	top: 8px !important;
	right: 8px !important;
	left: auto !important;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	color: var(--hx-muted);
	font-size: 22px;
	line-height: 30px;
	text-align: center;
}
/* Map popup card: photo, category, title, street, button */
.hx-map-popup .leaflet-popup-content { width: 260px !important; margin: 0; }
.geodir-marker-photo { display: block; height: 140px; background: var(--hx-chip); }
.geodir-marker-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.geodir-marker-body { padding: 14px 16px 16px; }
.geodir-marker-cat {
	display: block;
	margin-bottom: 4px;
	color: var(--hx-accent);
	font-size: 12px;
	font-weight: 500;
	letter-spacing: .1em;
	text-transform: uppercase;
}
html[data-theme="dark"] .geodir-marker-cat { color: #8fd6bd; }
.leaflet-popup-content .geodir-marker-photo + .geodir-marker-body h4 { margin: 0 0 6px; }
.leaflet-popup-content .geodir-marker-addr {
	margin: 0 0 12px;
	color: var(--hx-muted);
	font-size: 13px;
	line-height: 1.4;
}
.hx-map-popup .leaflet-popup-close-button {
	background: rgba(0, 0, 0, .5);
	color: #fff !important;
}

/* Hey Xi'an: the article layout has its own title and photo, so the old banner strip with the repeated title is hidden on single articles. */

/* Hero "Share" pill: always a light pill with dark text so it reads on any photo (was white-on-pale on light heroes). */
html .listing-hero .share-btn,
html .listing-hero .share-btn.btn-light {
	color: var(--hx-ink) !important;
	background: rgba(255, 255, 255, .85) !important;
	border-color: rgba(255, 255, 255, .85) !important;
}
html .listing-hero .share-btn:hover { background: #fff !important; }

/* Single articles, category archives and search have their own title block, so the old banner strip is hidden.
   On tablets and phones the site header floats above the page, so the strip becomes an empty spacer there. */
body.single-post .hero-section.transparent,
body.archive.category .hero-section.transparent,
body.search .hero-section.transparent { display: none; }
@media (max-width: 991.98px) {
	body.single-post .hero-section.transparent,
	body.archive.category .hero-section.transparent,
	body.search .hero-section.transparent { display: block; height: 112px; background: transparent; }
	body.single-post .hero-section.transparent .jumbotron,
	body.archive.category .hero-section.transparent .jumbotron,
	body.search .hero-section.transparent .jumbotron { display: none; }
}
/* Phones/tablets: the floating site header spans the full width on these pages (it shrink-wrapped to the logo). */
@media (max-width: 991.98px) {
	body.single-post #wrapper-navbar,
	body.archive.category #wrapper-navbar,
	body.search #wrapper-navbar { width: 100%; left: 0; right: 0; }
}
