/* Home page Marketplace Spotlight (Marketplace Phase 8, 2026-12-03).
   Markup: template_bi_market_showcase_new() in Themes/Steyle_V2/BoardIndex.template.php, which links this file
   with ?v=<file time>. Cover pictures: market_media/ (seller) or images/marketplace/cover-<type>-v1.jpg (default). */
.tmh { margin: 10px 0 4px; padding: 14px; border: 1px solid rgba(167, 197, 225, .72); border-radius: 12px; background: linear-gradient(180deg, rgba(255, 255, 255, .97), rgba(244, 248, 255, .95)); box-shadow: 0 10px 24px rgba(26, 55, 91, .1); }
.tmh-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 12px; }
.tmh-icon { flex: 0 0 auto; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 11px; font-size: 18px; color: #ffd36b; background: radial-gradient(circle at 30% 25%, #4f7fcb, #1b3560 72%); box-shadow: 0 6px 14px rgba(27, 53, 96, .25); }
.tmh-title { flex: 1 1 220px; min-width: 0; display: grid; gap: 1px; }
.tmh-title strong { font-size: 16px; line-height: 1.2; color: #14305a; }
.tmh-title small { font-size: 12.5px; line-height: 1.3; color: #5b6b82; }
.tmh-count { padding: 5px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700; white-space: nowrap; color: #0f6b47; background: #e3f5ec; }
.tmh-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.tmh-actions a { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border: 1px solid #c9d8ec; border-radius: 9px; background: #fff; font-size: 13px; font-weight: 700; color: #1b3a66 !important; text-decoration: none !important; }
.tmh-actions a:hover { border-color: #7aa6dd; background: #f3f8ff; }
.tmh-actions a.is-gold { border-color: #f2b632; background: linear-gradient(180deg, #ffc94f, #f59e0b); color: #3a2400 !important; }
.tmh-actions a.is-gold:hover { filter: brightness(1.04); }
.tmh-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.tmh-card { display: flex; flex-direction: column; min-width: 0; overflow: hidden; border: 1px solid #d6e2f1; border-radius: 10px; background: #fff; color: inherit !important; text-decoration: none !important; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.tmh-card:hover { transform: translateY(-2px); border-color: #8fb4e3; box-shadow: 0 12px 22px rgba(26, 55, 91, .14); }
.tmh-card:focus-visible { outline: 3px solid #2563eb; outline-offset: 2px; }
.tmh-pic { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: linear-gradient(135deg, #1f4f8f, #3f7fc9); }
.tmh-pic img { display: block; width: 100%; height: 100%; object-fit: cover; }
.tmh-type, .tmh-featured { position: absolute; top: 8px; display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border-radius: 7px; font-size: 11.5px; font-weight: 800; line-height: 1.4; }
.tmh-type { left: 8px; color: #fff; background: #2563eb; }
.tmh-type.is-wanted { background: #7c3aed; }
.tmh-type.is-service { background: #0f766e; }
.tmh-featured { right: 8px; color: #3a2400; background: linear-gradient(180deg, #ffd36b, #f59e0b); }
.tmh-price { position: absolute; right: 8px; bottom: 8px; max-width: calc(100% - 16px); overflow: hidden; padding: 4px 9px; border-radius: 8px; font-size: 12px; font-weight: 800; white-space: nowrap; text-overflow: ellipsis; color: #14305a; background: rgba(255, 255, 255, .95); box-shadow: 0 2px 8px rgba(0, 0, 0, .18); }
.tmh-body { display: grid; gap: 6px; padding: 9px 10px 10px; }
.tmh-name { display: -webkit-box; min-height: 2.6em; overflow: hidden; font-size: 13.5px; line-height: 1.3; color: #14305a; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.tmh-card:hover .tmh-name { color: #1d4ed8; }
.tmh-meta { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: #5b6b82; }
.tmh-meta span { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.tmh-meta i { margin-right: 4px; opacity: .75; }
.tmh-promo { display: grid; align-content: center; justify-items: start; gap: 6px; padding: 14px; border: 1px dashed #b9cce6; border-radius: 10px; background: linear-gradient(180deg, #f7faff, #fff); }
.tmh-promo strong { font-size: 14px; color: #14305a; }
.tmh-promo span { font-size: 12.5px; color: #5b6b82; }
.tmh-promo a { margin-top: 4px; padding: 6px 11px; border-radius: 8px; font-size: 12.5px; font-weight: 800; color: #3a2400 !important; background: linear-gradient(180deg, #ffc94f, #f59e0b); text-decoration: none !important; }
@media (max-width: 1000px) { .tmh-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) {
	.tmh { padding: 12px; }
	.tmh-actions { width: 100%; }
	.tmh-actions a { flex: 1 1 auto; justify-content: center; }
	.tmh-grid { gap: 10px; }
	.tmh-name { font-size: 13px; }
	.tmh-meta { flex-direction: column; gap: 2px; }
}
@media (prefers-reduced-motion: reduce) { .tmh-card { transition: none; } .tmh-card:hover { transform: none; } }
/* Forum list (owner 2026-12-03): the Marketplace card alone replaces the old "Buy and Sell" board row. */
.up_contain.tmh-only { display: block; padding: 2px 10px 8px; }
.up_contain.tmh-only .tmh { margin: 8px 0 2px; }
@media (max-width: 480px) { .up_contain.tmh-only { padding: 2px 6px 6px; } }
