/* หน้าต่างเลือกหมวดก่อนลงประกาศ (2026-12-02 ; th/inc/post-pick.php) รอบ 2 : การ์ดรูปจริง 3 x 2 (มือถือ 2 คอลัมน์ แผ่นเลื่อนจากด้านล่าง)
   รูปด้านบน + ไอคอนหมวดซ้อนขอบรูป + ชื่อตัวใหญ่ + คำอธิบายบรรทัดเดียว (อ่านง่าย คนทั่วไปเข้าใจทันที) ; สีตามหมวดเหมือน promote-cats.css
   สีธีม accent #6161ff , ส้มปุ่มลงประกาศ #f07a12 , ink #14252b , เส้น #e3e9ee */
.lbpp { position: fixed; z-index: 10050; inset: 0; display: grid; place-items: center; padding: 24px; background: rgba(15, 23, 42, .55); opacity: 0; transition: opacity .16s ease; }
.lbpp[hidden] { display: none; }
.lbpp.is-open { opacity: 1; }
html.lbpp-on, html.lbpp-on body { overflow: hidden; }
.lbpp-box { position: relative; box-sizing: border-box; width: min(880px, 100%); max-height: calc(100vh - 48px); overflow: auto; padding: 32px; border-radius: 28px; background: #fff; box-shadow: 0 40px 90px -30px rgba(15, 23, 42, .55); transform: translateY(12px) scale(.985); transition: transform .2s cubic-bezier(.2, .8, .2, 1); font-family: inherit; }
.lbpp.is-open .lbpp-box { transform: none; }
.lbpp-x { position: absolute; top: 18px; right: 18px; display: grid; place-items: center; width: 40px; height: 40px; margin: 0; padding: 0; border: 0; border-radius: 50%; background: #f2f4f8; color: #475467; cursor: pointer; }
.lbpp-x:hover { background: #e6e9f0; color: #14252b; }
.lbpp-x svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
/* หัว : ป้ายฟรี + คำถามตรง ๆ + คำแนะนำสั้น (กึ่งกลาง สมมาตรกับตาราง) */
.lbpp-head { margin: 0 44px 24px; text-align: center; }
.lbpp-free { display: inline-flex; align-items: center; height: 26px; padding: 0 12px; border-radius: 999px; background: #fff1e6; color: #c25e08; font-size: 13px; font-weight: 700; }
.lbpp-head h2 { margin: 10px 0 4px !important; color: #14252b; font-size: 26px; font-weight: 700; line-height: 1.35; }
.lbpp-head p { margin: 0 !important; color: #5b6774; font-size: 15.5px; line-height: 1.6; }
/* การ์ด */
.lbpp-cats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.lbpp-cat.m-stay { --c: #4153b8; --t: #eceffd; --h: -12deg; } .lbpp-cat.m-travel { --c: #167a93; --t: #e5f5f8; --h: -52deg; } .lbpp-cat.m-buy { --c: #187655; --t: #e5f5ee; --h: -86deg; }
.lbpp-cat.m-rent { --c: #6f45c2; --t: #f1ebfc; --h: 16deg; } .lbpp-cat.m-new-projects { --c: #b85a22; --t: #fcefe6; --h: 138deg; } .lbpp-cat.m-services { --c: #22566f; --t: #e6f0f4; --h: -45deg; }
.lbpp-cat { position: relative; display: flex; flex-direction: column; min-width: 0; overflow: hidden; border: 1.5px solid #e3e9ee; border-radius: 20px; background: #fff; color: #14252b !important; text-decoration: none !important; transition: border-color .18s, box-shadow .18s, transform .18s; }
.lbpp-cat-img { display: block; aspect-ratio: 16 / 9; background: #eef0f6 center / cover no-repeat; transition: transform .35s ease; }
.lbpp-cat-ico { position: absolute; left: 16px; top: calc((100% - 0px) * 0); display: grid; place-items: center; width: 48px; height: 48px; margin-top: calc(56.25% * 1 - 24px); border-radius: 14px; background: var(--t); box-shadow: 0 0 0 4px #fff, 0 8px 18px -8px rgba(15, 23, 42, .35); }	/* ซ้อนขอบล่างของรูป (รูป 16:9 = 56.25% ของความกว้าง) */
.lbpp-cat-ico img { width: 30px; height: 30px; border-radius: 8px; filter: hue-rotate(var(--h)) saturate(1.1); }
.lbpp-cat.m-services .lbpp-cat-ico img { filter: hue-rotate(var(--h)) saturate(.75); }
.lbpp-cat-t { display: grid; gap: 2px; padding: 32px 16px 16px; }
.lbpp-cat-t b { color: #14252b; font-size: 18px; font-weight: 700; line-height: 1.4; }
.lbpp-cat-t small { overflow: hidden; color: #5b6774; font-size: 14px; line-height: 1.55; white-space: nowrap; text-overflow: ellipsis; }
.lbpp-cat > .fa { position: absolute; right: 14px; bottom: 18px; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--t); color: var(--c); font-size: 14px; transition: background-color .18s, color .18s, transform .18s; }
.lbpp-cat:hover, .lbpp-cat:focus-visible { border-color: var(--c); box-shadow: 0 18px 34px -20px var(--c); transform: translateY(-3px); outline: 0; }
.lbpp-cat:hover .lbpp-cat-img, .lbpp-cat:focus-visible .lbpp-cat-img { transform: scale(1.04); }
.lbpp-cat:hover > .fa, .lbpp-cat:focus-visible > .fa { background: var(--c); color: #fff; transform: translateX(2px); }
/* ท้าย : 2 ข้อความสั้น ซ้าย-ขวา */
.lbpp-foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 20px; margin-top: 22px; padding-top: 18px; border-top: 1px solid #eef1f5; font-size: 14.5px; }
.lbpp-foot span { color: #5b6774; } .lbpp-foot span .fa { color: #0f8a5f; margin-right: 4px; }
.lbpp-foot a { color: #4f46e5 !important; font-weight: 600; text-decoration: none !important; }
.lbpp-foot a:hover { text-decoration: underline !important; text-underline-offset: 3px; }
@media (max-width: 820px) { .lbpp-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) {
	.lbpp { align-items: end; padding: 0; }
	.lbpp-box { width: 100%; max-height: 90vh; padding: 22px 14px 18px; border-radius: 24px 24px 0 0; transform: translateY(28px); }	/* มือถือ : แผ่นเลื่อนขึ้นจากด้านล่าง */
	.lbpp-head { margin: 0 40px 16px; } .lbpp-head h2 { font-size: 20px; } .lbpp-head p { font-size: 14px; }
	.lbpp-cats { gap: 10px; }
	.lbpp-cat { border-radius: 16px; }
	.lbpp-cat-ico { left: 10px; width: 38px; height: 38px; margin-top: calc(56.25% - 19px); border-radius: 11px; box-shadow: 0 0 0 3px #fff, 0 6px 14px -6px rgba(15, 23, 42, .35); }
	.lbpp-cat-ico img { width: 24px; height: 24px; }
	.lbpp-cat-t { padding: 24px 10px 12px; } .lbpp-cat-t b { font-size: 16px; } .lbpp-cat-t small { font-size: 12.5px; white-space: normal; }
	.lbpp-cat > .fa { display: none; }
	.lbpp-foot { flex-direction: column; justify-content: center; text-align: center; margin-top: 16px; padding-top: 14px; font-size: 13.5px; }
}
@media (prefers-reduced-motion: reduce) { .lbpp, .lbpp-box, .lbpp-cat, .lbpp-cat-img, .lbpp-cat > .fa { transition: none; } }
