/* Listing card redesign — replaces the old .card/.card-header/.card-body based markup.
   Include this after the existing stylesheet(s) so these rules take priority. */

.listing-item {
	display: flex !important;
	flex-direction: row !important;
	flex-wrap: nowrap !important;
	align-items: flex-start;
	gap: 14px;
	padding: 16px;
	margin-bottom: 14px;
	background: #fff;
	border: 1px solid #e5e2d8;
	border-radius: 10px;
	box-shadow: 0 1px 3px rgba(0,0,0,.06);
	text-decoration: none;
}
.listing-item.is-featured {
	background: #fffaf2;
	border-color: #f3d4a8;
	box-shadow: 0 1px 4px rgba(255,128,0,.12);
}

/* thumbnail: real listing photo, cropped to a consistent square */
.listing-item .listing-thumb {
	flex: 0 0 64px !important;
	width: 64px !important;
	height: 64px !important;
	max-width: 64px;
	border-radius: 8px;
	overflow: hidden;
	display: block;
	background: #f4f1ea;
}
.listing-item .listing-thumb img {
	width: 64px !important;
	height: 64px !important;
	max-width: none;
	object-fit: cover;
	display: block;
}

.listing-item .listing-main {
	flex: 1 1 auto;
	min-width: 0;
}

.listing-tags {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
	margin-bottom: 6px;
}
.tag {
	display: inline-block;
	font-size: 11px;
	font-weight: 600;
	line-height: 1;
	padding: 4px 9px;
	border-radius: 20px;
	text-decoration: none;
	white-space: nowrap;
}
.tag-category {
	background: #fdece0;
	color: #b35900;
}
.tag-location {
	background: #f4f1ea;
	color: #5f5e5a;
}
.tag-featured {
	background: #FF8000;
	color: #fff;
}
.tag:hover {
	text-decoration: underline;
}

.listing-title {
	margin: 0 0 4px;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.3;
}
.listing-title a {
	color: #222;
	text-decoration: none;
}
.listing-title a:hover {
	color: #FF8000;
}

.listing-excerpt {
	margin: 0 0 6px;
	font-size: 13px;
	line-height: 1.5;
	color: #5f5e5a;
}

.listing-meta {
	display: flex;
	align-items: center;
	gap: 6px;
	flex-wrap: wrap;
	margin: 0;
	font-size: 12px;
	color: #8a8980;
}
.listing-meta-author {
	color: #8a8980;
	text-decoration: none;
	font-weight: 500;
}
.listing-meta-author:hover {
	color: #FF8000;
}
.listing-meta-author .gold {
	color: #d4a017;
	margin-right: 2px;
}
.listing-meta-dot {
	color: #cfccc0;
}
.listing-watch,
.listing-watching {
	margin-left: auto;
	font-size: 12px;
	text-decoration: none;
}
.listing-watch {
	color: #FF8000;
}
.listing-watching {
	color: #3b6d11;
}
.listing-watch.hidden,
.listing-watching.hidden {
	display: none;
}

@media (max-width: 480px) {
	.listing-item {
		padding: 12px;
	}
	.listing-item .listing-thumb,
	.listing-item .listing-thumb img {
		flex-basis: 52px !important;
		width: 52px !important;
		height: 52px !important;
	}
	.listing-watch,
	.listing-watching {
		margin-left: 0;
	}
}
