/* ฟีดประกาศใหม่ /th/feed/ (th/inc/feed.php) : กำแพงรูปแบบ masonry (CSS columns) สไตล์ social network บนธีมเว็บ (การ์ดขาวมุมมน , accent #6161ff)
   คอลัมน์ : 4 (จอกว้าง) / 3 / 2 (แท็บเล็ต + มือถือ แบบ Pinterest) ; การ์ดสูงตามสัดส่วนรูปจริง (สูงสุด 1 : 1.35) */
.lbfd-page { background: #f3f5fa; }
.lbfd-hero { padding-bottom: 8px !important; }
.lbfd-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.lbfd-live { display: inline-flex; align-items: center; gap: 8px; flex: none; margin-bottom: 6px; padding: 7px 14px; border-radius: 999px; background: #fff; color: #0f6e4b; font-size: 13.5px; font-weight: 700; box-shadow: 0 4px 14px -6px rgba(23, 50, 65, .25); }
.lbfd-live i { width: 8px; height: 8px; border-radius: 50%; background: #12b76a; box-shadow: 0 0 0 0 rgba(18, 183, 106, .5); animation: lbfd-pulse 1.8s ease-out infinite; }
@keyframes lbfd-pulse { to { box-shadow: 0 0 0 9px rgba(18, 183, 106, 0); } }
/* แถบหมวด : ลำดับตามเมนู , ไอคอนธีม , เลือกอยู่ = ขอบ + พื้นสีหมวด */
.lbfd-cats { display: flex; gap: 10px; margin-top: 20px; padding: 2px 2px 8px; overflow-x: auto; scrollbar-width: none; }
.lbfd-cats::-webkit-scrollbar { display: none; }
.lbfd-cat { --cc: #6161ff; display: inline-flex; align-items: center; gap: 9px; flex: none; height: 48px; padding: 0 18px 0 7px; border: 1px solid #e3e8ef; border-radius: 999px; background: #fff; color: var(--lbd-ink) !important; font-size: 15px; font-weight: 600; text-decoration: none !important; box-shadow: 0 2px 8px rgba(16, 24, 40, .05); transition: border-color .15s, box-shadow .15s, transform .15s; }
.lbfd-cat:hover { border-color: color-mix(in srgb, var(--cc) 45%, #fff); transform: translateY(-1px); }
.lbfd-cat.is-on { border-color: var(--cc); background: color-mix(in srgb, var(--cc) 9%, #fff); color: color-mix(in srgb, var(--cc) 85%, #000) !important; box-shadow: 0 6px 16px -8px color-mix(in srgb, var(--cc) 60%, transparent); }
.lbfd-cat-ico { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: color-mix(in srgb, var(--cc) 12%, #fff); }
.lbfd-cat-ico.is-all { background: #eef0ff; color: var(--lbd-accent); font-size: 15px; }
.lbfd-cat-ico img { width: 22px; height: 22px; }
/* ลิงก์ไปหน้าหมวด (เมื่อกรอง) */
.lbfd-goto { --cc: #6161ff; display: flex; align-items: center; gap: 14px; margin: 0 0 18px; padding: 12px 18px; border: 1px solid color-mix(in srgb, var(--cc) 30%, #fff); border-radius: 16px; background: #fff; color: var(--lbd-ink) !important; text-decoration: none !important; }
.lbfd-goto span { display: grid; flex: 1; }
.lbfd-goto b { font-size: 15px; }
.lbfd-goto small { color: #7a8794; font-size: 13px; }
.lbfd-goto .fa { color: var(--cc); }
.lbfd-goto:hover { box-shadow: 0 8px 20px -10px color-mix(in srgb, var(--cc) 60%, transparent); }

/* ---------- กำแพง ---------- */
.lbfd-wall { columns: 4 250px; column-gap: 18px; }
.lbfd-card { --cc: #6161ff; position: relative; display: inline-block; width: 100%; margin: 0 0 18px; overflow: hidden; break-inside: avoid; border: 1px solid #e3e8f0; border-radius: 20px; background: #fff; box-shadow: 0 10px 26px -14px rgba(23, 50, 65, .2); transition: transform .2s ease, box-shadow .2s ease; }
.lbfd-card:hover { transform: translateY(-3px); box-shadow: 0 20px 40px -16px rgba(30, 27, 75, .3); }
/* รูปเป็นหลัก (2026-11-28) : กรอบสัดส่วนสลับ (inline aspect-ratio) รูปเต็มกรอบ , ข้อความน้อย */
.lbfd-media { position: relative; display: block; overflow: hidden; background: #eef1f6; }
.lbfd-media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.lbfd-card:hover .lbfd-media img { transform: scale(1.04); }
.lbfd-noimg { display: grid; place-items: center; width: 100%; height: 100%; background: linear-gradient(135deg, color-mix(in srgb, var(--cc) 12%, #fff), #f6f7fb); }
.lbfd-noimg img { width: 56px !important; height: 56px !important; opacity: .85; }
/* แถบบนรูป (ล่าง) : ประเภท + ราคา บนไล่เงาดำ */
.lbfd-over { position: absolute; left: 0; right: 0; bottom: 0; display: grid; gap: 1px; padding: 34px 14px 12px; background: linear-gradient(180deg, transparent, rgba(10, 14, 25, .72)); color: #fff; }
.lbfd-type { color: rgba(255, 255, 255, .88); font-size: 12px; font-weight: 600; text-shadow: 0 1px 2px rgba(0, 0, 0, .3); }
.lbfd-price { color: #fff; font-size: 19px; font-weight: 800; line-height: 1.25; text-shadow: 0 1px 3px rgba(0, 0, 0, .35); }
.lbfd-price small, .lbfd-price .lbm-pre { color: rgba(255, 255, 255, .85); font-size: 12.5px; font-weight: 600; }
.lbfd-price .lbl-ask { color: #fff; font-size: 14px; }
/* ป้ายหมวด (ลิงก์ไปหน้าหมวด) */
.lbfd-label { position: absolute; top: 12px; left: 12px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px 0 6px; border-radius: 999px; background: rgba(255, 255, 255, .95); color: color-mix(in srgb, var(--cc) 85%, #000) !important; font-size: 12.5px; font-weight: 700; text-decoration: none !important; box-shadow: 0 4px 12px -4px rgba(0, 0, 0, .25); }
.lbfd-label img { width: 18px; height: 18px; padding: 2px; border-radius: 50%; background: color-mix(in srgb, var(--cc) 14%, #fff); box-sizing: border-box; }
.lbfd-label:hover { background: #fff; }
.lbfd-card .lbd-fav-btn { top: 10px; right: 10px; z-index: 2; }
/* ใต้รูป : ชื่อ 2 บรรทัด + แถวผู้ลงประกาศ / ทำเล */
.lbfd-body { padding: 11px 14px 13px; }
.lbfd-body h2 { margin: 0 !important; font-size: 15px; line-height: 1.45; }
.lbfd-body h2 a { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--lbd-ink) !important; text-decoration: none !important; }
.lbfd-body h2 a::after { content: ""; position: absolute; inset: 0; z-index: 1; }	/* ทั้งการ์ดกดได้ (ป้ายหมวด / หัวใจ / ผู้ลงประกาศ อยู่เหนือ) */
.lbfd-meta { position: relative; z-index: 2; display: flex; align-items: center; gap: 9px; margin-top: 9px; }
.lbfd-who { display: inline-flex; flex: none; text-decoration: none !important; }
.lbfd-sub { display: grid; min-width: 0; }
.lbfd-loc { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: #55677a; font-size: 12.5px; }
.lbfd-loc .fa { color: #e5484d; }
.lbfd-sub small { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: #94a3b8; font-size: 11.5px; }
.lbfd-ava { display: inline-grid; place-items: center; flex: none; width: 30px; height: 30px; overflow: hidden; border-radius: 9px; background: linear-gradient(135deg, #7b7bff, #4f46e5); color: #fff; font-size: 13px; font-weight: 700; }
.lbfd-ava img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.lbfd-empty { padding: 60px 20px; color: #7a8794; text-align: center; }
.lbfd .lbd-more { break-before: column; }

@media (max-width: 1100px) { .lbfd-wall { columns: 3 220px; } }
@media (max-width: 820px) {
	.lbfd-wall { columns: 2; column-gap: 12px; }
	.lbfd-card { margin-bottom: 12px; border-radius: 16px; }
	.lbfd-head { flex-direction: column; align-items: flex-start; gap: 6px; }
	.lbfd-live { order: -1; margin: 0; padding: 5px 12px; font-size: 12.5px; }
	.lbfd-cat { height: 42px; padding: 0 14px 0 5px; font-size: 14px; }
	.lbfd-cat-ico { width: 32px; height: 32px; }
}
@media (max-width: 520px) {
	.lbfd-wall { column-gap: 10px; }
	.lbfd-card { margin-bottom: 10px; border-radius: 14px; }
	.lbfd-body { padding: 9px 10px 10px; }
	.lbfd-body h2 { font-size: 13.5px; }
	.lbfd-over { padding: 26px 10px 9px; }
	.lbfd-price { font-size: 15.5px; }
	.lbfd-type { font-size: 11px; }
	.lbfd-ava { width: 24px; height: 24px; border-radius: 7px; font-size: 11px; }
	.lbfd-loc { font-size: 11.5px; }
	.lbfd-sub small { display: none; }
	.lbfd-label { top: 8px; left: 8px; height: 26px; font-size: 11.5px; }
	.lbfd-card .lbd-fav-btn { top: 6px; right: 6px; }
}
@media (prefers-reduced-motion: reduce) { .lbfd-live i { animation: none; } .lbfd-card, .lbfd-cat { transition: none; } }

/* หัวฟีดบรรทัดเดียว (2026-11-28) : ใต้เมนู (fixed 73 / 65px) แล้วเป็นกำแพงทันที */
.lbfd-top { padding: 92px 0 14px; }
.lbfd-line { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; margin: 0 !important; color: var(--lbd-ink); font-size: 18px; font-weight: 400; line-height: 1.4; }
.lbfd-line b { font-weight: 700; }
.lbfd-line .lbfd-live { margin: 0; padding: 4px 11px; font-size: 12.5px; box-shadow: 0 2px 8px -3px rgba(23, 50, 65, .25); }
.lbfd-line-sub { color: #6b7a89; font-size: 14px; }
.lbfd .lbd-body { padding-top: 0 !important; }
@media (max-width: 1100px) { .lbfd-top { padding-top: 80px; } }
@media (max-width: 640px) { .lbfd-top { padding: 76px 0 10px; } .lbfd-line { font-size: 16px; } .lbfd-line-sub { display: none; } }

/* เพดานฟีด : ผู้เยี่ยมชม 50 -> ชวนเข้าสู่ระบบ (500) */
.lbfd-cap { display: flex; align-items: center; gap: 14px; margin: 8px auto 30px; max-width: 760px; padding: 18px 20px; border: 1px solid #d9dbff; border-radius: 20px; background: radial-gradient(260px circle at 0 0, rgba(97, 97, 255, .1), transparent 70%), #fff; box-shadow: 0 12px 30px -16px rgba(30, 27, 75, .3); }
.lbfd-cap > span:nth-child(2) { display: grid; flex: 1; gap: 2px; }
.lbfd-cap b { color: var(--lbd-ink); font-size: 16px; }
.lbfd-cap small { color: #55677a; font-size: 13.5px; line-height: 1.5; }
.lbfd-cap-ico { display: inline-grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 14px; background: #eef0ff; color: var(--lbd-accent); font-size: 20px; }
.lbfd-cap .lbd-btn { flex: none; }
.lbfd-capnote { margin: 8px 0 30px; color: #6b7a89; font-size: 14px; text-align: center; }
@media (max-width: 640px) { .lbfd-cap { flex-wrap: wrap; } .lbfd-cap .lbd-btn { flex: 1; justify-content: center; } }
.lbfd-cap[hidden] { display: none; }

/* ประกาศที่ยังไม่มีรูป (2026-11-28) : การ์ดโปสเตอร์สีหมวด แทนพื้นจาง + ไอคอนเล็ก (ดูเหมือนรูปหาย)
   พื้นไล่สีตามหมวด (--cc) + วงกลมตกแต่ง + ไอคอนในกรอบขาว + ชื่อหมวด + ทำเล ; ป้ายประเภท / ราคาเดิมยังอยู่บนการ์ด */
.lbfd-noimg { position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 6px; width: 100%; height: 100%; min-height: 180px; box-sizing: border-box; padding: 22px 20px 70px;
	background: linear-gradient(150deg, color-mix(in srgb, var(--cc) 70%, #fff) 0%, var(--cc) 55%, color-mix(in srgb, var(--cc) 70%, #1e1b4b) 100%); color: #fff; text-align: left; }
.lbfd-noimg::before, .lbfd-noimg::after { content: ""; position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .12); pointer-events: none; }
.lbfd-noimg::before { width: 70%; aspect-ratio: 1; right: -22%; top: -18%; }
.lbfd-noimg::after { width: 42%; aspect-ratio: 1; left: -12%; bottom: 8%; background: rgba(255, 255, 255, .08); }
.lbfd-noimg-ico { position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; width: 54px; height: 54px; margin-bottom: 6px; border-radius: 16px; background: #fff; box-shadow: 0 10px 22px -10px rgba(0, 0, 0, .4); }
.lbfd-noimg-ico img { width: 38px !important; height: 38px !important; opacity: 1 !important; }
.lbfd-noimg b { position: relative; z-index: 1; font-family: "Prompt", "IBM Plex Sans Thai Looped", sans-serif; font-size: 20px; font-weight: 600; line-height: 1.25; text-shadow: 0 1px 8px rgba(0, 0, 0, .18); }
.lbfd-noimg small { position: relative; z-index: 1; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: rgba(255, 255, 255, .92); font-size: 13px; line-height: 1.45; }
.lbfd-noimg small .fa { margin-right: 3px; }
.lbfd-line-name { margin-left: 6px; font-weight: 500; }
.lbfd-media:has(.lbfd-noimg) .lbfd-type { display: none; }	/* ไม่มีรูป : ประเภทอยู่ในโปสเตอร์แล้ว */
