/* ซื้อ / เช่า / โครงการใหม่ (th/inc/market.php) ; class lbm- ; ใช้ร่วมกับ theme-light.css (hero / กล่อง / ปุ่ม) และ landing.css (การ์ด .lbl-tcard) */

.lbm :focus-visible { outline: 3px solid #2385e9; outline-offset: 3px; }
:where(.lbm) ul, :where(.lbm) ul li { margin: 0; padding: 0; list-style: none; }
.lbm-muted { margin: 0 0 12px !important; color: #6b7f89; font-size: 14.5px; }

/* ---------- ตัวกรอง (ใน hero) ---------- */
.lbm-filter { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; padding: 10px; border-radius: 22px; background: #fff; box-shadow: 0 18px 40px rgba(23, 50, 65, .08), 0 2px 6px rgba(23, 50, 65, .04); }
.lbm-f { display: flex; align-items: center; gap: 8px; min-height: 50px; margin: 0; padding: 0 14px; border-radius: 14px; background: #f4f7f9; }
.lbm-f-q { flex: 1 1 280px; }
.lbm-f svg { width: 19px; height: 19px; flex: none; fill: none; stroke: #455c66; stroke-width: 1.8; stroke-linecap: round; }
.lbm .lbm-f input, .lbm .lbm-f select { width: 100%; height: 46px; margin: 0; padding: 0; border: 0; background: transparent; box-shadow: none; color: #14252b; font: inherit; font-size: 15.5px; }
.lbm .lbm-f select { min-width: 140px; cursor: pointer; }
.lbm .lbm-f input:focus, .lbm .lbm-f select:focus { outline: 0; }
.lbm-f:focus-within { box-shadow: 0 0 0 3px rgba(97, 97, 255, .25); background: #fff; }
.lbm-filter .lbd-btn { height: 50px; padding: 0 28px; }

.lbm-types { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.lbm-types a { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 6px 14px 6px 7px; border-radius: 999px; background: #fff; border: 1px solid #d5dfe4; color: #14252b !important; font-size: 15px; transition: border-color .15s, background .15s; }
.lbm-types img { width: 28px; height: 28px; border-radius: 8px; }
.lbm-types a:hover { border-color: #6161ff; }
.lbm-types a[aria-current="page"] { background: #14252b; border-color: #14252b; color: #fff !important; }

/* ---------- รายการ ---------- */
.lbm-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.lbm-bar p { margin: 0 !important; color: #455c66; font-size: 15px; }
.lbm-bar b { color: #14252b; }
.lbm-post { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 8px 18px; border-radius: 999px; background: #6161ff; color: #fff !important; font-family: "Prompt", "IBM Plex Sans Thai Looped", sans-serif !important; font-size: 15px; white-space: nowrap; }
.lbm-post:hover { background: #5034ff; }
.lbm-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; padding-bottom: 8px !important; }
.lbl-tcard.is-grid { width: auto; }
.lbm-pages { display: flex; justify-content: center; gap: 6px; margin-top: 28px; }
.lbm-pages a { display: inline-flex; align-items: center; justify-content: center; min-width: 42px; height: 42px; border-radius: 999px; border: 1px solid #d5dfe4; background: #fff; color: #14252b !important; }
.lbm-pages a[aria-current="page"] { background: #14252b; border-color: #14252b; color: #fff !important; }
.lbm-empty { display: flex; align-items: center; gap: 16px; padding: 20px 22px; margin-bottom: 24px; border-radius: 22px; background: #fff; box-shadow: 0 10px 28px rgba(23, 50, 65, .06); }
.lbm-empty img { width: 56px; height: 56px; border-radius: 15px; flex: none; }
.lbm-empty > div { flex: 1; min-width: 0; }
.lbm-empty b { font-size: 17px; color: #14252b; }
.lbm-empty p { margin: 2px 0 0 !important; color: #455c66; font-size: 14.5px; }
.lbm-sample-h { margin: 0 0 14px !important; color: #39505e; font-size: 15px; font-weight: 600; }

/* การ์ดไม่มีรูป : ไอคอนประเภทบนพื้นจาง */
.lbl-tc-photo.is-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; background: linear-gradient(160deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .05)); }
.lbl-tc-photo.is-empty img { width: 84px; height: 84px; object-fit: contain; border-radius: 20px; box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .45); }
.lbl-tc-photo.is-empty small { color: rgba(255, 255, 255, .8); font-size: 13px; }
.lbl-tcard:hover .lbl-tc-photo.is-empty img { transform: none; }

/* ---------- รายละเอียด ---------- */
.lbm-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 10px !important; }
.lbm-chips span { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; background: #fff; border: 1px solid #d5dfe4; color: #14252b; font-size: 14px; }
.lbm-chips img { width: 20px; height: 20px; border-radius: 6px; }
.lbm-price { margin: 14px 0 0 !important; color: #16a34a; font-family: "Prompt", "IBM Plex Sans Thai Looped", sans-serif !important; font-size: clamp(28px, 3vw, 38px); font-weight: 600; line-height: 1.2; }
.lbm-price small { margin-left: 4px; color: #455c66; font-size: .5em; font-weight: 400; }
.lbm-specs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px !important; }
.lbm-specs li { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 12px; background: #fff; border: 1px solid #d5dfe4; color: #14252b; font-size: 15px; }
.lbm-specs .fa { color: #6161ff; }
.lbm-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
.lbm-main { display: grid; gap: 20px; min-width: 0; }
.lbm-main .lbdd-gallery { margin: 0; }
.lbm-nophoto { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; min-height: 240px; border-radius: 24px; background: linear-gradient(160deg, #eef2ff, #f6fbfe); color: #6b7f89; }
.lbm-nophoto img { width: 96px; height: 96px; border-radius: 24px; }
.lbm-map iframe { display: block; width: 100%; height: 320px; margin-bottom: 14px; border: 0; border-radius: 16px; background: #e8eef2; }
.lbm-aside { display: grid; gap: 18px; position: sticky; top: calc(var(--lbnav-h, 72px) + 16px); }
.lbm-contact h2, .lbm-manage h2, .lbm-main h2 { margin: 0 0 12px !important; font-size: 20px; }
.lbm-main h2.lbdd-h2 { margin-top: 26px !important; }	/* หัวข้อย่อยในกล่องเดียวกัน (รายละเอียด / สิ่งอำนวยความสะดวก) เว้นจากเนื้อหาด้านบน */
.lbm-owner { display: flex; align-items: center; gap: 12px; margin: 0 0 14px !important; }
.lbm-ava { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; background: linear-gradient(135deg, #6161ff, #9a9aff); color: #fff; font-family: "Prompt", sans-serif !important; font-size: 20px; flex: none; }
.lbm-owner b { display: block; color: #14252b; }
.lbm-owner small { display: block; color: #6b7f89; font-size: 13px; }

/* ---------- ขนาดจอ ---------- */
@media (max-width: 1200px) { .lbm-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 900px) {
	.lbm-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
	.lbm-layout { grid-template-columns: 1fr; }
	.lbm-aside { position: static; }
}
@media (max-width: 560px) {
	.lbm-grid { grid-template-columns: 1fr; }
	.lbm-f { flex: 1 1 100%; }
	.lbm-filter .lbd-btn { flex: 1 1 100%; }
	.lbm-bar { flex-direction: column; align-items: flex-start; }
	.lbm-empty { flex-wrap: wrap; }
}

/* ---------- ซื้อ / เช่า / โครงการใหม่ : หมวดค้นหาง่าย (สีตามหมวด) ; โครงสร้างกล่องค้นหา + ตัวกรองเหมือนหน้าที่พัก (home.css / directory.css) ---------- */
.lbh-scard .lbmk-group .lbx-tab[data-panel="transit"] { --lbx-color: #087857; --lbx-tint: #eaf7f2; }
.lbh-scard .lbmk-group .lbx-tab[data-panel="hot"] { --lbx-color: #7b2370; --lbx-tint: #f8effb; }
.lbh-scard .lbmk-group .lbx-tab[data-panel="work"] { --lbx-color: #2457bd; --lbx-tint: #eef3ff; }
.lbh-scard .lbmk-group .lbx-tab[data-panel="uni"] { --lbx-color: #2457bd; --lbx-tint: #eef3ff; }
.lbh-scard .lbmk-group .lbx-tab[data-panel="budget"] { --lbx-color: #15803d; --lbx-tint: #eaf7ef; }
.lbh-scard .lbmk-group .lbx-tab[data-panel="type"] { --lbx-color: #4f46e5; --lbx-tint: #eef0ff; }
.lbh-scard .lbmk-group .lbx-tab[data-panel="holiday"] { --lbx-color: #0b7fa6; --lbx-tint: #eaf6fb; }
.lbh-scard .lbmk-group .lbx-tab[data-panel="life"] { --lbx-color: #c5286b; --lbx-tint: #fff0f6; }
.lbh-scard .lbmk-group .lbx-tab[data-panel="status"] { --lbx-color: #b45309; --lbx-tint: #fff6e8; }
.lbh-scard .lbmk-group .lbx-tab[data-panel="dev"] { --lbx-color: #6d28d9; --lbx-tint: #f3effe; }
.lbh-scard .lbmk-group .lbx-tab[data-panel="province"] { --lbx-color: #087857; --lbx-tint: #eaf7f2; }
.lbmk-scard .lbx-chip.is-on { border-color: var(--lbd-accent); background: #eef0ff; color: var(--lbd-accent-dark) !important; }
.lbmk-scard .lbx-chip-type img { width: 22px; height: 22px; }
.lbm .lbd-resultbar .lbd-muted { font-weight: 400; }
.lbmk-group .lbx-tab .lbx-nw { font-style: normal; }
.lbmk-group .lbx-tab .lbx-nw:lang(th) { white-space: nowrap; }	/* ไม่ตัดคำไทยกลางวลี ; ภาษาอื่นตัดบรรทัดได้ (ไม่ล้นกล่อง) */
html body .lbmk-group .lbx-tab .lbx-nw { font-weight: inherit !important; color: inherit; font-size: inherit; line-height: inherit; }
