/* ==========================================================================
   Exchange Hub — Phase 1 styling
   Visual language matched to the ListPress directory theme reference:
   coral-orange accent, underline-accent headings, bordered white cards,
   badge pills, and a filter-chip row. The active WordPress theme still
   owns the site header, nav and footer — this file styles the
   marketplace grid, filter sidebar and single-listing content that sit
   inside them.
   ========================================================================== */

:root {
	--eh-accent: #ef4a17;
	--eh-accent-dark: #d43e0f;
	--eh-accent-tint: #fdeee8;
	--eh-ink: inherit;   /* primary text — follows the active theme's own color */
	--eh-body: inherit;  /* paragraph/description text — follows the active theme's own color */
	--eh-muted: #767676; /* secondary/meta text — an intentional muted tone, not overridden */
	--eh-border: #e7e5e3;
	--eh-surface: #ffffff;
	--eh-surface-alt: #faf9f7;
	--eh-footer-bg: #131313;
	--eh-radius: 8px;
	--eh-shadow: 0 1px 3px rgba(20, 16, 10, 0.06), 0 4px 14px rgba(20, 16, 10, 0.05);
	--eh-shadow-hover: 0 4px 10px rgba(20, 16, 10, 0.08), 0 10px 26px rgba(20, 16, 10, 0.08);
}

.eh-directory,
.eh-single,
.eh-directory-page {
	line-height: inherit;
}

.eh-directory a,
.eh-single a {
	color: inherit;
}

/* ---------------------------------------------------------------------
   Shared: underline-accent heading device
   --------------------------------------------------------------------- */

.eh-single__detail h3,
.eh-related h2,
.eh-directory-page__header h1 {
	position: relative;
	font-weight: 700;
	color: var(--eh-ink);
	padding-bottom: 12px;
	margin-bottom: 14px;
}

.eh-single__detail h3::after,
.eh-related h2::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 42px;
	height: 3px;
	background: var(--eh-accent);
	border-radius: 2px;
}

/* ---------------------------------------------------------------------
   Badges, chips, ratings — reused everywhere
   --------------------------------------------------------------------- */

.eh-badge {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 0.72rem;
	font-weight: 700;
	text-transform: capitalize;
	padding: 4px 10px;
	border-radius: 20px;
	background: var(--eh-accent);
	color: #fff;
}

.eh-listing-card__category {
	display: inline-block;
	font-size: 0.78rem;
	font-weight: 600;
	color: var(--eh-accent);
	margin-bottom: 4px;
}

.eh-rating-placeholder {
	font-size: 0.8rem;
	color: #f0b429;
	margin: 0 0 6px;
	display: flex;
	align-items: center;
	gap: 6px;
}

.eh-rating-placeholder [aria-hidden] i { margin-right: 1px; }

.eh-rating-placeholder em {
	font-style: normal;
	color: var(--eh-muted);
}

.eh-single__meta i,
.eh-listing-card__location i,
.eh-directory__search > i {
	color: var(--eh-muted);
	opacity: 0.75;
	margin-right: 3px;
}

/* ---------------------------------------------------------------------
   Directory topbar: search, sort, view toggle
   --------------------------------------------------------------------- */

.eh-directory__topbar {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 14px;
	margin-bottom: 22px;
}

.eh-directory__search {
	display: flex;
	align-items: center;
	gap: 8px;
	background: var(--eh-surface);
	border: 1px solid var(--eh-border);
	border-radius: 30px;
	padding: 8px 8px 8px 18px;
	flex: 1 1 340px;
	max-width: 480px;
}

.eh-directory__search input[type="text"] {
	border: none;
	outline: none;
	flex: 1;
	font-size: 0.92rem;
	background: transparent;
}

.eh-directory__search button {
	border: none;
	background: var(--eh-accent);
	color: #fff;
	font-weight: 600;
	padding: 9px 20px;
	border-radius: 24px;
	cursor: pointer;
	font-size: 0.85rem;
}

.eh-directory__search button:hover { background: var(--eh-accent-dark); }

.eh-directory__controls {
	display: flex;
	align-items: center;
	gap: 16px;
}

.eh-directory__sort {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 0.85rem;
	color: var(--eh-muted);
}

.eh-directory__sort select {
	border: 1px solid var(--eh-border);
	border-radius: 6px;
	padding: 7px 10px;
	font-size: 0.85rem;
	color: var(--eh-ink);
	background: var(--eh-surface);
}

.eh-directory__view-toggle {
	display: flex;
	gap: 4px;
}

.eh-view-btn {
	width: 36px;
	height: 36px;
	border: 1px solid var(--eh-border);
	background: var(--eh-surface);
	border-radius: 6px;
	cursor: pointer;
	color: var(--eh-muted);
	font-size: 0.95rem;
}

.eh-view-btn.is-active {
	background: var(--eh-accent);
	border-color: var(--eh-accent);
	color: #fff;
}

/* ---------------------------------------------------------------------
   Layout: sidebar + main
   --------------------------------------------------------------------- */

.eh-directory__layout {
	display: grid;
	grid-template-columns: 270px 1fr;
	gap: 28px;
	align-items: start;
}

.eh-directory__sidebar {
	background: var(--eh-surface);
	border-radius: var(--eh-radius);
	box-shadow: var(--eh-shadow);
	padding: 20px;
}

.eh-filters-toggle {
	display: none;
	width: 100%;
	padding: 10px;
	margin-bottom: 12px;
	border: 1px solid var(--eh-border);
	border-radius: 6px;
	background: var(--eh-surface-alt);
	font-weight: 600;
	cursor: pointer;
}

.eh-filters__group {
	margin-bottom: 20px;
	padding-bottom: 18px;
	border-bottom: 1px solid var(--eh-border);
}

.eh-filters__group:last-of-type {
	border-bottom: none;
	margin-bottom: 10px;
}

.eh-filters__group h3 {
	font-size: 0.92rem;
	font-weight: 700;
	color: var(--eh-ink);
	margin: 0 0 10px;
}

.eh-filters__radio {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 0.86rem;
	color: var(--eh-body);
	margin-bottom: 8px;
	cursor: pointer;
}

.eh-filters__radio input {
	accent-color: var(--eh-accent);
}

.eh-filters__apply {
	width: 100%;
	padding: 11px;
	background: var(--eh-accent);
	color: #fff;
	border: none;
	border-radius: 6px;
	font-weight: 700;
	cursor: pointer;
}

.eh-filters__apply:hover { background: var(--eh-accent-dark); }

/* ---------------------------------------------------------------------
   Results: meta row, filter chips, empty state
   --------------------------------------------------------------------- */

.eh-directory__meta-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 16px;
}

.eh-directory__count {
	margin: 0;
	font-size: 0.9rem;
	color: var(--eh-muted);
}

.eh-active-filters {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	background: var(--eh-surface-alt);
	border: 1px solid var(--eh-border);
	border-radius: 6px;
	padding: 10px 14px;
	width: 100%;
}

.eh-chip {
	background: var(--eh-accent-tint);
	color: var(--eh-accent-dark);
	font-size: 0.78rem;
	font-weight: 600;
	padding: 4px 10px;
	border-radius: 16px;
}

.eh-active-filters__clear {
	margin-left: auto;
	font-size: 0.8rem;
	color: var(--eh-muted);
	text-decoration: underline;
}

.eh-empty-state {
	background: var(--eh-surface-alt);
	border: 1px dashed var(--eh-border);
	border-radius: var(--eh-radius);
	padding: 40px 20px;
	text-align: center;
	color: var(--eh-muted);
}

/* ---------------------------------------------------------------------
   Listing cards — grid & list view
   --------------------------------------------------------------------- */

.eh-listing-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
	gap: 20px;
}

.eh-listing-rows {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.eh-listing-card,
.eh-listing-row {
	background: var(--eh-surface);
	border-radius: var(--eh-radius);
	overflow: hidden;
	box-shadow: var(--eh-shadow);
	transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.eh-listing-card:hover,
.eh-listing-row:hover {
	box-shadow: var(--eh-shadow-hover);
	transform: translateY(-2px);
}

.eh-listing-row { display: flex; }

.eh-listing-card__thumb {
	position: relative;
	display: block;
	background: var(--eh-surface-alt);
}

.eh-listing-row .eh-listing-card__thumb {
	flex: 0 0 220px;
}

.eh-listing-card__thumb img {
	width: 100%;
	height: 170px;
	object-fit: cover;
	display: block;
}

.eh-listing-row .eh-listing-card__thumb img {
	height: 100%;
}

.eh-listing-card__thumb-fallback {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 170px;
	font-size: 2.4rem;
	font-weight: 700;
	color: var(--eh-border);
	background: var(--eh-surface-alt);
}

.eh-listing-card__thumb .eh-badge {
	position: absolute;
	top: 10px;
	left: 10px;
}

.eh-save-btn {
	position: absolute;
	top: 10px;
	right: 10px;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	border: none;
	background: rgba(255, 255, 255, 0.9);
	color: var(--eh-accent);
	font-size: 0.95rem;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
}

.eh-save-btn.is-saved { color: var(--eh-accent-dark); }

.eh-listing-card__body {
	padding: 14px 16px 16px;
	flex: 1;
}

.eh-listing-card__title {
	margin: 2px 0 6px;
	font-size: 1.02rem;
	line-height: 1.35;
}

.eh-listing-card__title a { text-decoration: none; color: var(--eh-ink); }

.eh-listing-card__location {
	font-size: 0.82rem;
	color: var(--eh-muted);
	margin: 0 0 8px;
}

.eh-listing-card__excerpt {
	font-size: 0.86rem;
	color: var(--eh-body);
	margin: 0 0 10px;
}

.eh-listing-card__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding-top: 10px;
	border-top: 1px solid var(--eh-border);
	font-size: 0.78rem;
}

.eh-listing-card__trade-type {
	color: var(--eh-muted);
	font-weight: 600;
}

.eh-listing-card__connect {
	color: var(--eh-accent-dark);
	font-weight: 700;
}

.eh-directory__pagination {
	display: flex;
	gap: 6px;
	margin-top: 30px;
	justify-content: center;
}

.eh-directory__pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 34px;
	height: 34px;
	border: 1px solid var(--eh-border);
	border-radius: 6px;
	padding: 0 8px;
	text-decoration: none;
	color: var(--eh-body);
	font-size: 0.85rem;
}

.eh-directory__pagination .page-numbers.current {
	background: var(--eh-accent);
	border-color: var(--eh-accent);
	color: #fff;
}

/* ---------------------------------------------------------------------
   Directory archive page header
   --------------------------------------------------------------------- */

.eh-directory-page {
	/* No max-width here on purpose — the theme's own page/content
	   container sets the width. A fixed max-width here fought with
	   narrower theme containers and made category/archive pages look
	   cramped compared to the rest of the site. Horizontal padding is
	   still needed though — removing it entirely (an earlier version
	   of this fix) made content touch the screen edges on themes whose
	   own container has no inner gutter. */
	width: 100%;
	box-sizing: border-box;
	padding: 30px 20px 70px;
}

.eh-directory-page__header {
	margin-bottom: 26px;
}

.eh-directory-page__header h1 {
	font-size: 1.8rem;
	display: inline-block;
}

.eh-directory-page__header p {
	color: var(--eh-muted);
	margin: 0;
}

/* ---------------------------------------------------------------------
   Single listing page
   --------------------------------------------------------------------- */

.eh-single {
	max-width: 1100px;
	margin: 0 auto;
	padding: 24px 20px 70px;
}

.eh-breadcrumb {
	font-size: 0.82rem;
	color: var(--eh-muted);
	margin-bottom: 14px;
}

.eh-breadcrumb a { text-decoration: none; color: var(--eh-muted); }
.eh-breadcrumb span[aria-hidden] { margin: 0 6px; }
.eh-breadcrumb span:last-child { color: var(--eh-ink); font-weight: 600; }

.eh-single__hero {
	border-radius: var(--eh-radius);
	overflow: hidden;
	margin-bottom: 22px;
	background: var(--eh-surface-alt);
}

.eh-single__hero-image {
	width: 100%;
	max-height: 420px;
	object-fit: cover;
	display: block;
}

.eh-single__hero-fallback {
	height: 260px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 4rem;
	font-weight: 700;
	color: var(--eh-border);
}

/* ---------------------------------------------------------------------
   Photo gallery (main image + thumbnail strip)
   --------------------------------------------------------------------- */

.eh-gallery__main {
	position: relative;
}

.eh-gallery__arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 40px;
	height: 40px;
	border-radius: 50%;
	border: none;
	background: rgba(255, 255, 255, 0.9);
	box-shadow: var(--eh-shadow);
	color: var(--eh-ink);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 2;
}

.eh-gallery__arrow:hover { background: #fff; }
.eh-gallery__arrow--prev { left: 14px; }
.eh-gallery__arrow--next { right: 14px; }

.eh-gallery__thumbs {
	display: flex;
	gap: 10px;
	margin-top: 10px;
	overflow-x: auto;
	padding-bottom: 2px;
}

.eh-gallery__thumb {
	flex: 0 0 auto;
	width: 72px;
	height: 72px;
	padding: 0;
	border: none;
	border-radius: 8px;
	overflow: hidden;
	cursor: pointer;
	opacity: 0.6;
	box-shadow: var(--eh-shadow);
	transition: opacity 0.15s ease, box-shadow 0.15s ease;
}

.eh-gallery__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.eh-gallery__thumb:hover { opacity: 0.85; }

.eh-gallery__thumb.is-active {
	opacity: 1;
	box-shadow: 0 0 0 2px var(--eh-accent);
}

.eh-single__layout {
	display: grid;
	grid-template-columns: 1fr 320px;
	gap: 32px;
	align-items: start;
}

.eh-single__title-row {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 20px;
	flex-wrap: wrap;
}

.eh-single__badges {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
	margin-bottom: 8px;
}

.eh-single__title-block h1 {
	font-size: 1.7rem;
	margin: 4px 0 10px;
	color: var(--eh-ink);
}

.eh-single__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	font-size: 0.84rem;
	color: var(--eh-muted);
	margin-bottom: 20px;
}

.eh-single__actions {
	display: flex;
	gap: 8px;
}

.eh-icon-btn {
	width: 38px;
	height: 38px;
	border-radius: 50%;
	border: 1px solid var(--eh-border);
	background: var(--eh-surface);
	color: var(--eh-accent);
	cursor: pointer;
	font-size: 1rem;
	display: flex;
	align-items: center;
	justify-content: center;
}

.eh-icon-btn:disabled {
	color: var(--eh-muted);
	cursor: not-allowed;
	opacity: 0.6;
}

.eh-tabs {
	display: flex;
	gap: 4px;
	border-bottom: 1px solid var(--eh-border);
	margin-bottom: 20px;
}

.eh-tabs__btn {
	padding: 10px 18px;
	border: none;
	background: none;
	font-weight: 600;
	font-size: 0.9rem;
	color: var(--eh-muted);
	cursor: pointer;
	border-bottom: 2px solid transparent;
	margin-bottom: -1px;
}

.eh-tabs__btn.is-active {
	color: var(--eh-accent-dark);
	border-bottom-color: var(--eh-accent);
}

.eh-tabs__panel { display: none; }
.eh-tabs__panel.is-active { display: block; }

.eh-single__content { margin-bottom: 18px; }

.eh-single__detail { margin-bottom: 22px; }

.eh-single__detail p { margin: 0; }

.eh-single__value-note {
	font-size: 0.8rem;
	color: var(--eh-muted);
	margin-top: 6px !important;
}

.eh-single__sidebar { position: sticky; top: 20px; }

.eh-connect-card {
	background: var(--eh-surface);
	border-radius: var(--eh-radius);
	box-shadow: var(--eh-shadow);
	padding: 22px;
}

.eh-connect-card__price {
	font-size: 1.7rem;
	font-weight: 800;
	color: var(--eh-ink);
	margin: 0 0 14px;
}

.eh-connect-card__price span {
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--eh-muted);
}

.eh-connect-btn,
.eh-connect-btn--full {
	display: block;
	width: 100%;
	padding: 13px;
	border: none;
	border-radius: 6px;
	background: var(--eh-accent);
	color: #fff;
	font-weight: 700;
	font-size: 0.95rem;
	cursor: pointer;
	text-align: center;
	text-decoration: none;
	box-sizing: border-box;
}

.eh-connect-btn:hover { background: var(--eh-accent-dark); }

.eh-connect-btn:disabled {
	background: var(--eh-border);
	color: #8a8a8a;
	cursor: not-allowed;
}

.eh-connect-card__balance {
	font-size: 0.8rem;
	color: var(--eh-muted);
	margin: -8px 0 12px;
}

.eh-connect-card__error {
	font-size: 0.8rem;
	color: #c0392b;
	margin-top: 10px;
}

.eh-connect-card__connected-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 0.82rem;
	font-weight: 700;
	color: #1c7a4d;
	background: #eef7f1;
	padding: 4px 10px;
	border-radius: 16px;
	margin: 0 0 12px;
}

.eh-points-balance-display {
	font-weight: 700;
	color: var(--eh-accent-dark);
}

.eh-connect-card__note {
	font-size: 0.78rem;
	color: var(--eh-muted);
	margin: 10px 0 18px;
}

.eh-connect-card__facts {
	margin: 0;
	padding-top: 16px;
	border-top: 1px solid var(--eh-border);
}

.eh-connect-card__facts dt {
	font-size: 0.72rem;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	color: var(--eh-muted);
	margin-top: 10px;
}

.eh-connect-card__facts dd {
	margin: 2px 0 0;
	font-size: 0.88rem;
	color: var(--eh-ink);
	font-weight: 600;
}

.eh-related {
	margin-top: 50px;
	padding-top: 30px;
	border-top: 1px solid var(--eh-border);
}

/* ---------------------------------------------------------------------
   Front-end profile form
   --------------------------------------------------------------------- */

.eh-profile-summary {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
	margin-bottom: 24px;
	max-width: 760px;
}

.eh-points-card {
	background: var(--eh-surface-alt);
	border-radius: var(--eh-radius);
	box-shadow: var(--eh-shadow);
	padding: 20px;
}

.eh-points-card__eyebrow {
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	color: var(--eh-accent-dark);
	margin: 0 0 8px;
	text-transform: uppercase;
}

.eh-points-card__balance {
	font-size: 1.8rem;
	font-weight: 800;
	color: var(--eh-ink);
	margin: 0 0 8px;
}

.eh-points-card__balance span {
	font-size: 0.95rem;
	font-weight: 600;
	color: var(--eh-muted);
}

.eh-points-card__note {
	font-size: 0.82rem;
	color: var(--eh-muted);
	margin: 0;
}

.eh-points-card__history {
	margin-top: 14px;
	padding-top: 14px;
	border-top: 1px solid var(--eh-border);
}

.eh-points-card__history summary {
	cursor: pointer;
	font-size: 0.82rem;
	font-weight: 700;
	color: var(--eh-accent-dark);
	list-style: none;
}

.eh-points-card__history summary::-webkit-details-marker { display: none; }

.eh-points-history {
	width: 100%;
	border-collapse: collapse;
	margin-top: 12px;
	font-size: 0.82rem;
}

.eh-points-history th,
.eh-points-history td {
	text-align: left;
	padding: 8px 6px;
	border-bottom: 1px solid var(--eh-border);
}

.eh-points-history th {
	font-size: 0.7rem;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	color: var(--eh-muted);
}

.eh-points-history__delta.is-credit { color: #1c7a4d; font-weight: 700; }
.eh-points-history__delta.is-debit { color: #c0392b; font-weight: 700; }

.eh-profile-form { max-width: 760px; }

.eh-profile-form__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
	align-items: start;
}

.eh-field { display: flex; flex-direction: column; }
.eh-field--full { grid-column: 1 / -1; }

.eh-field label {
	font-weight: 600;
	font-size: 0.88rem;
	color: var(--eh-ink);
	margin-bottom: 6px;
}

.eh-field__radios {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding-top: 2px;
}

.eh-field__radios label {
	font-weight: 400;
	display: flex;
	align-items: center;
	gap: 6px;
	margin-bottom: 0;
}

.eh-field input[type="text"],
.eh-field select,
.eh-field textarea {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid var(--eh-border);
	border-radius: 6px;
	font-size: 0.92rem;
	font-family: inherit;
	box-sizing: border-box;
}

.eh-field textarea { resize: vertical; }

.eh-business-fields.eh-field--full { display: block; }
.eh-business-fields .eh-profile-form__grid { margin-top: 4px; }

@media (max-width: 640px) {
	.eh-profile-summary,
	.eh-profile-form__grid,
	.eh-business-fields .eh-profile-form__grid {
		grid-template-columns: 1fr;
	}
}

.eh-button {
	padding: 10px 24px;
	border: none;
	border-radius: 24px;
	background: var(--eh-accent);
	color: #fff;
	font-weight: 700;
	cursor: pointer;
}

.eh-button:hover { background: var(--eh-accent-dark); }

.eh-notice {
	padding: 16px;
	background: var(--eh-surface-alt);
	border-radius: var(--eh-radius);
	color: var(--eh-muted);
}

/* ---------------------------------------------------------------------
   Front-end listing submission form
   --------------------------------------------------------------------- */

.eh-submission-form {
	max-width: 640px;
}

.eh-submission-form p {
	margin-bottom: 16px;
}

.eh-submission-form label {
	display: block;
	font-weight: 600;
	font-size: 0.88rem;
	color: var(--eh-ink);
	margin-bottom: 6px;
}

.eh-submission-form .eh-inline-radio {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-weight: 400;
	margin-right: 18px;
}

.eh-submission-form input[type="text"],
.eh-submission-form input[type="file"],
.eh-submission-form select,
.eh-submission-form textarea {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid var(--eh-border);
	border-radius: 6px;
	font-size: 0.92rem;
	box-sizing: border-box;
	font-family: inherit;
}

.eh-submission-form textarea { resize: vertical; }

.eh-form-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
	align-items: end;
}

.eh-form-current-image {
	display: inline-block;
	margin-top: 8px;
}

.eh-form-current-image img {
	width: 60px;
	height: 60px;
	object-fit: cover;
	border-radius: 6px;
}

.eh-field-hint {
	display: block;
	font-size: 0.78rem;
	color: var(--eh-muted);
	font-weight: 400;
	margin-top: 4px;
}

.eh-form-current-gallery {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 10px;
}

.eh-form-current-gallery img {
	width: 60px;
	height: 60px;
	object-fit: cover;
	border-radius: 6px;
}

.eh-form-notice {
	padding: 12px 16px;
	border-radius: 6px;
	font-size: 0.88rem;
	margin-bottom: 18px;
}

.eh-form-notice--success {
	background: #eef7f1;
	color: #1c7a4d;
}

.eh-form-notice--error {
	background: #fdeceb;
	color: #c0392b;
}

/* ---------------------------------------------------------------------
   My Listings dashboard
   --------------------------------------------------------------------- */

.eh-my-listings__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 18px;
}

.eh-my-listings__header h2 { margin: 0; }

.eh-my-listings__table {
	width: 100%;
	border-collapse: collapse;
	background: var(--eh-surface);
	border-radius: var(--eh-radius);
	box-shadow: var(--eh-shadow);
	overflow: hidden;
}

.eh-my-listings__table th,
.eh-my-listings__table td {
	text-align: left;
	padding: 12px 14px;
	border-bottom: 1px solid var(--eh-border);
	font-size: 0.88rem;
}

.eh-my-listings__table th {
	background: var(--eh-surface-alt);
	font-weight: 700;
	color: var(--eh-muted);
	font-size: 0.76rem;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.eh-my-listings__table tr:last-child td { border-bottom: none; }

.eh-my-listings__actions {
	display: flex;
	align-items: center;
	gap: 12px;
}

.eh-my-listings__actions form { margin: 0; }

.eh-link-btn {
	background: none;
	border: none;
	padding: 0;
	color: #c0392b;
	cursor: pointer;
	font-size: 0.88rem;
	text-decoration: underline;
}

.eh-status-badge {
	display: inline-block;
	font-size: 0.74rem;
	font-weight: 700;
	padding: 3px 9px;
	border-radius: 14px;
	background: var(--eh-surface-alt);
	color: var(--eh-muted);
}

.eh-status-badge--publish {
	background: #eef7f1;
	color: #1c7a4d;
}

.eh-status-badge--pending {
	background: #fdf3e3;
	color: #b7791f;
}

.eh-status-badge--draft {
	background: var(--eh-surface-alt);
	color: var(--eh-muted);
}

/* ---------------------------------------------------------------------
   Messaging: inbox + thread
   --------------------------------------------------------------------- */

.eh-inbox, .eh-thread { max-width: 720px; }

.eh-inbox__list {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.eh-inbox__row {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 16px;
	background: var(--eh-surface);
	border-radius: var(--eh-radius);
	box-shadow: var(--eh-shadow);
	text-decoration: none;
	color: var(--eh-ink);
	transition: box-shadow 0.15s ease;
}

.eh-inbox__row:hover { box-shadow: var(--eh-shadow-hover); }

.eh-inbox__row-title { font-weight: 700; }

.eh-inbox__row-with {
	color: var(--eh-muted);
	font-size: 0.86rem;
	flex: 1;
}

.eh-inbox__row--unread {
	border-color: var(--eh-accent);
	background: var(--eh-accent-tint);
}

.eh-inbox__row--unread .eh-inbox__row-title { font-weight: 800; }

.eh-inbox__row-unread-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 20px;
	height: 20px;
	padding: 0 6px;
	border-radius: 10px;
	background: var(--eh-accent);
	color: #fff;
	font-size: 0.72rem;
	font-weight: 700;
}

.eh-unread-notice {
	background: var(--eh-accent-tint);
	border: 1px solid var(--eh-accent);
	border-radius: var(--eh-radius);
	padding: 12px 16px;
	margin-bottom: 16px;
	font-size: 0.88rem;
	font-weight: 600;
	color: var(--eh-accent-dark);
	max-width: 640px;
}

.eh-unread-notice a { color: inherit; text-decoration: underline; }

.eh-thread__back { margin-bottom: 12px; }
.eh-thread__back a { color: var(--eh-muted); text-decoration: none; font-size: 0.86rem; }

.eh-thread__header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	padding-bottom: 16px;
	margin-bottom: 16px;
	border-bottom: 1px solid var(--eh-border);
}

.eh-thread__header h2 { margin: 0 0 4px; }
.eh-thread__header p { margin: 0; color: var(--eh-muted); font-size: 0.88rem; }

.eh-thread__messages {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-bottom: 20px;
	max-height: 420px;
	overflow-y: auto;
}

.eh-thread__message {
	background: var(--eh-surface-alt);
	border-radius: 10px;
	padding: 10px 14px;
	max-width: 80%;
	align-self: flex-start;
}

.eh-thread__message--mine {
	background: var(--eh-accent-tint);
	align-self: flex-end;
}

.eh-thread__message-body { margin: 0; font-size: 0.92rem; }
.eh-thread__message-meta {
	margin: 4px 0 0;
	font-size: 0.72rem;
	color: var(--eh-muted);
}

.eh-thread__reply {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-bottom: 24px;
}

.eh-thread__reply textarea {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid var(--eh-border);
	border-radius: 6px;
	font-family: inherit;
	font-size: 0.92rem;
	box-sizing: border-box;
	resize: vertical;
}

.eh-thread__trade-status {
	padding-top: 20px;
	border-top: 1px solid var(--eh-border);
}

.eh-button--outline {
	background: none;
	border: 1px solid var(--eh-accent);
	color: var(--eh-accent-dark);
}

.eh-button--outline:hover { background: var(--eh-accent-tint); }

.eh-review-form h3 { font-size: 1rem; margin: 0 0 12px; }

.eh-review-form form {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.eh-review-form__stars {
	display: flex;
	flex-direction: row-reverse;
	justify-content: flex-end;
	gap: 2px;
	font-size: 1.6rem;
}

.eh-review-form__stars input { position: absolute; opacity: 0; width: 1px; height: 1px; }

.eh-review-form__stars label {
	cursor: pointer;
	color: var(--eh-border);
}

.eh-review-form__stars input:checked ~ label,
.eh-review-form__stars label:hover,
.eh-review-form__stars label:hover ~ label {
	color: #f0b429;
}

.eh-review-form textarea {
	padding: 10px 12px;
	border: 1px solid var(--eh-border);
	border-radius: 6px;
	font-family: inherit;
	font-size: 0.9rem;
	resize: vertical;
}

.eh-notice--success {
	background: #eef7f1;
	color: #1c7a4d;
}

/* ---------------------------------------------------------------------
   Phase 4: levels, badges, reporting, blocking
   --------------------------------------------------------------------- */

.eh-level-badge {
	display: inline-flex;
	align-items: center;
	font-size: 0.72rem;
	font-weight: 700;
	padding: 3px 9px;
	border-radius: 14px;
	background: var(--eh-surface-alt);
	border: 1px solid var(--eh-border);
	color: var(--eh-muted);
}

.eh-level-card {
	background: var(--eh-surface);
	border-radius: var(--eh-radius);
	box-shadow: var(--eh-shadow);
	padding: 20px;
}

.eh-level-card__level {
	font-size: 1.3rem;
	font-weight: 800;
	color: var(--eh-ink);
	margin: 0 0 4px;
}

.eh-level-card__level span {
	font-size: 1rem;
	font-weight: 600;
	color: var(--eh-accent-dark);
	margin-left: 6px;
}

.eh-level-card__note {
	font-size: 0.82rem;
	color: var(--eh-muted);
	margin: 0 0 12px;
}

.eh-badge-list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.eh-badge-chip {
	background: var(--eh-accent-tint);
	color: var(--eh-accent-dark);
	font-size: 0.78rem;
	font-weight: 700;
	padding: 6px 12px;
	border-radius: 16px;
}

/* ---------------------------------------------------------------------
   Category grid ("Top Search Categories" style)
   --------------------------------------------------------------------- */

.eh-category-grid-section {
	max-width: 1100px;
	margin: 0 auto;
	padding: 10px 0 30px;
	text-align: center;
}

.eh-category-grid__title {
	font-size: 1.6rem;
	font-weight: 800;
	color: var(--eh-ink);
	margin: 0 0 6px;
}

.eh-category-grid__subtitle {
	color: var(--eh-muted);
	margin: 0 0 24px;
}

.eh-category-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 16px;
	text-align: left;
}

.eh-category-card {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 18px;
	background: var(--eh-surface);
	border-radius: var(--eh-radius);
	box-shadow: var(--eh-shadow);
	text-decoration: none;
	color: inherit;
	transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.eh-category-card:hover {
	box-shadow: var(--eh-shadow-hover);
	transform: translateY(-2px);
}

.eh-category-card__icon {
	font-size: 1.5rem;
	line-height: 1;
	flex-shrink: 0;
	color: var(--eh-accent);
	width: 32px;
	text-align: center;
}

.eh-category-card__text {
	display: flex;
	flex-direction: column;
}

.eh-category-card__name {
	display: block;
	font-weight: 700;
	color: var(--eh-ink);
	font-size: 0.95rem;
}

.eh-category-card__count {
	display: block;
	font-size: 0.8rem;
	color: var(--eh-accent-dark);
	font-weight: 600;
	margin-top: 2px;
}

/* Report disclosure (native <details>, no JS needed) */

.eh-report-disclosure {
	position: relative;
}

.eh-report-disclosure summary {
	list-style: none;
	cursor: pointer;
}

.eh-report-disclosure summary::-webkit-details-marker { display: none; }

.eh-share-disclosure {
	position: relative;
}

.eh-share-disclosure summary {
	list-style: none;
	cursor: pointer;
}

.eh-share-disclosure summary::-webkit-details-marker { display: none; }

.eh-share-menu {
	position: absolute;
	top: calc(100% + 8px);
	right: 0;
	z-index: 5;
	width: 190px;
	background: var(--eh-surface);
	border-radius: var(--eh-radius);
	padding: 8px;
	box-shadow: var(--eh-shadow-hover);
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.eh-share-menu a,
.eh-share-menu button {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 10px;
	border-radius: 6px;
	color: var(--eh-ink);
	text-decoration: none;
	font-size: 0.86rem;
	width: 100%;
	background: none;
	border: none;
	cursor: pointer;
	font-family: inherit;
	text-align: left;
}

.eh-share-menu a:hover,
.eh-share-menu button:hover {
	background: var(--eh-surface-alt);
}

.eh-share-menu a i,
.eh-share-menu button i {
	width: 16px;
	text-align: center;
	color: var(--eh-accent);
}

.eh-report-form {
	position: absolute;
	top: calc(100% + 8px);
	right: 0;
	z-index: 5;
	width: 260px;
	background: var(--eh-surface);
	border-radius: var(--eh-radius);
	padding: 16px;
	box-shadow: var(--eh-shadow-hover);
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.eh-report-form label {
	font-size: 0.8rem;
	font-weight: 600;
	color: var(--eh-ink);
}

.eh-report-form select,
.eh-report-form textarea {
	width: 100%;
	padding: 8px 10px;
	border: 1px solid var(--eh-border);
	border-radius: 6px;
	font-size: 0.85rem;
	font-family: inherit;
	box-sizing: border-box;
}

.eh-block-form { margin: 0; }

.eh-thread__header-actions {
	display: flex;
	align-items: center;
	gap: 10px;
}

.eh-thread__header-actions form { margin: 0; }

/* ---------------------------------------------------------------------
   Phase 5: potential matches
   --------------------------------------------------------------------- */

.eh-badge--match {
	background: #2b4fa3;
}

.eh-match-callout {
	display: flex;
	align-items: center;
	gap: 10px;
	background: #eef2fb;
	border: 1px solid #2b4fa3;
	border-radius: var(--eh-radius);
	padding: 12px 16px;
	margin-bottom: 20px;
	font-size: 0.88rem;
	font-weight: 600;
	color: #2b4fa3;
	max-width: 1100px;
}

.eh-matches__list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 16px;
}

.eh-match-card {
	background: var(--eh-surface);
	border-radius: var(--eh-radius);
	box-shadow: var(--eh-shadow);
	padding: 18px;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.eh-match-card__reason {
	margin: 0;
	font-size: 0.9rem;
	color: var(--eh-body);
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
}

/* ---------------------------------------------------------------------
   Reviews tab (single listing page)
   --------------------------------------------------------------------- */

.eh-reviews-list {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.eh-review-item {
	background: var(--eh-surface);
	border-radius: var(--eh-radius);
	box-shadow: var(--eh-shadow);
	padding: 4px 16px;
}

.eh-review-item summary {
	cursor: pointer;
	list-style: none;
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 0;
	flex-wrap: wrap;
}

.eh-review-item summary::-webkit-details-marker { display: none; }

.eh-review-item__chevron {
	margin-left: auto;
	color: var(--eh-muted);
	font-size: 0.78rem;
	transition: transform 0.15s ease;
}

.eh-review-item[open] .eh-review-item__chevron {
	transform: rotate(180deg);
}

.eh-review-item__by {
	margin: 0 0 12px;
	font-size: 0.8rem;
	color: var(--eh-muted);
}

.eh-review-item__stars {
	color: #f0b429;
	font-size: 0.82rem;
	white-space: nowrap;
}

.eh-review-item__stars i { margin-right: 1px; }

.eh-review-item__name {
	font-weight: 700;
	color: var(--eh-ink);
	font-size: 0.9rem;
}

.eh-review-item__date {
	color: var(--eh-muted);
	font-size: 0.8rem;
	margin-left: auto;
}

.eh-review-item__text {
	margin: 0 0 14px;
	font-size: 0.9rem;
	color: var(--eh-body);
	padding-top: 4px;
	border-top: 1px solid var(--eh-border);
}

.eh-trader-link {
	text-decoration: underline;
	text-decoration-color: var(--eh-border);
	text-underline-offset: 2px;
}

.eh-trader-link:hover { text-decoration-color: var(--eh-accent); }

/* ---------------------------------------------------------------------
   Trader snapshot ([eh_trader_snapshot])
   --------------------------------------------------------------------- */

.eh-trader-snapshot {
	max-width: 640px;
	background: var(--eh-surface);
	border-radius: var(--eh-radius);
	box-shadow: var(--eh-shadow);
	padding: 28px;
}

.eh-trader-snapshot__header {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
	margin-bottom: 12px;
}

.eh-trader-snapshot__header h1 {
	font-size: 1.6rem;
	margin: 0;
}

.eh-trader-snapshot__bio {
	color: var(--eh-muted);
	font-size: 0.94rem;
	margin: 0 0 18px;
}

.eh-trader-snapshot__facts {
	display: flex;
	flex-wrap: wrap;
	gap: 18px;
	padding: 16px 0;
	margin-bottom: 16px;
	border-top: 1px solid var(--eh-border);
	border-bottom: 1px solid var(--eh-border);
}

.eh-trader-snapshot__fact {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 0.88rem;
	color: var(--eh-body);
}

.eh-trader-snapshot__fact i {
	color: var(--eh-accent);
}

/* ---------------------------------------------------------------------
   Responsive
   --------------------------------------------------------------------- */

@media (max-width: 900px) {
	.eh-directory__layout { grid-template-columns: 1fr; }
	.eh-single__layout { grid-template-columns: 1fr; }
	.eh-single__sidebar { position: static; }

	.eh-filters-toggle { display: block; }
	.eh-filters { display: none; }
	.eh-directory__sidebar.is-open .eh-filters { display: block; }

	.eh-listing-row { flex-direction: column; }
	.eh-listing-row .eh-listing-card__thumb { flex: none; }
	.eh-listing-row .eh-listing-card__thumb img { height: 170px; }
}
