/* นิว วิสต้า อินท. พร็อพเพอร์ตี้ส์ — หน้าเว็บ (ออกแบบเฉพาะงาน รอบพรีเมียม ตามเลย์เอาต์ของฟ็อก)
   โทน: น้ำเงินกรมท่าจากโลโก้ + ทองแชมเปญ บนพื้นงาช้าง · หรูแบบนิตยสารสถาปัตยกรรม · มือถือก่อน */

:root {
  --accent: #212c4b;
  --navy: #212c4b;
  --navy-2: #161e35;
  --navy-3: #2d3a60;
  --navy-deep: #0e1427;
  --gold: #b8893b;
  --gold-2: #d9b874;
  --gold-3: #ecd9ad;
  --gold-soft: #f4ebd9;
  --paper: #f6f2ea;
  --paper-2: #efe8db;
  --card: #ffffff;
  --ink: #1b2238;
  --muted: #5d6479;
  --line: #e4dccd;
  --line-dark: rgba(217, 184, 116, .22);
  --ok: #2f7a55;
  --bad: #b3403a;
  --radius: 6px;
  --radius-lg: 10px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --shadow: 0 1px 2px rgba(22, 30, 53, .05), 0 10px 30px -18px rgba(22, 30, 53, .28);
  --shadow-up: 0 2px 6px rgba(22, 30, 53, .06), 0 28px 50px -24px rgba(22, 30, 53, .42);
  --font: 'IBM Plex Sans Thai', 'Noto Sans TC', system-ui, sans-serif;
  --nav-h: 76px;
}
.lang-zh { --font: 'Noto Sans TC', 'IBM Plex Sans Thai', system-ui, sans-serif; }
.lang-cn { --font: 'Noto Sans SC', 'IBM Plex Sans Thai', system-ui, sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.7; color: var(--ink);
  background: var(--paper); padding-top: var(--nav-h); overflow-x: hidden;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
body.over-hero { padding-top: 0; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); }
h1, h2, h3 { line-height: 1.45; margin: 0 0 .5em; letter-spacing: -.01em; color: var(--navy-2); font-weight: 600; }
h1 { font-size: clamp(30px, 6vw, 52px); }
h2 { font-size: clamp(28px, 4.4vw, 44px); }
h3 { font-size: 18px; }
p { margin: 0 0 1em; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; flex: none; }
button, input, select, textarea { font: inherit; color: inherit; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: #fff; padding: 12px 16px; border-radius: 8px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 3px; }
.wrap { width: min(1240px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(820px, 100% - 40px); }
.narrow-left { max-width: 760px; }

/* ป้ายเล็กสีทองเหนือหัวข้อ */
.eyebrow { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; font-size: 14px; font-weight: 600; letter-spacing: .08em; color: var(--gold); line-height: 1.5; }
.eyebrow::before { content: ''; width: 36px; height: 1px; background: currentColor; flex: none; }
.sec-dark .eyebrow, .hero .eyebrow, .why .eyebrow { color: var(--gold-2); }

/* ---------- ปุ่ม ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 10px 26px;
  border-radius: 4px; border: 1px solid var(--navy); background: var(--navy); color: #fff; font-weight: 600; letter-spacing: .01em;
  text-decoration: none; cursor: pointer; line-height: 1.4; transition: transform .2s var(--ease), box-shadow .2s, background .2s, border-color .2s, color .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn:disabled { opacity: .6; cursor: progress; transform: none; }
.btn svg { width: 18px; height: 18px; }
.btn-gold { background: linear-gradient(135deg, var(--gold-3) 0%, var(--gold-2) 38%, var(--gold) 100%); border-color: transparent; color: var(--navy-deep); }
.btn-gold:hover { box-shadow: 0 14px 30px -14px rgba(184, 137, 59, .8); }
.btn-ghost { background: transparent; color: var(--navy); border-color: rgba(33, 44, 75, .28); }
.btn-ghost:hover { border-color: var(--navy); }
.btn-line { background: #06c755; border-color: #06c755; color: #fff; }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .45); }
.btn-outline-light:hover { border-color: var(--gold-2); color: var(--gold-3); }
.btn-block { width: 100%; }
.linkish { background: none; border: 0; padding: 0 4px; min-height: 44px; min-width: 44px; color: inherit; text-decoration: underline; cursor: pointer; }
.icon-btn { display: inline-grid; place-items: center; width: 50px; height: 50px; border-radius: 4px; border: 1px solid var(--line); background: #fff; color: var(--navy); cursor: pointer; }

/* ---------- หัวเว็บ ---------- */
/* หัวเว็บไม่มี backdrop-filter / transform / filter เพราะครอบเมนูมือถือ position: fixed (กฎเมนูเต็มจอ) */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--nav-h); background: var(--navy-2); border-bottom: 1px solid var(--line-dark); transition: background .35s, border-color .35s, box-shadow .35s; }
.over-hero:not(.scrolled):not(.nav-open) .nav { background: linear-gradient(180deg, rgba(10, 14, 28, .55), rgba(10, 14, 28, 0)); border-color: transparent; }
.scrolled .nav { box-shadow: 0 10px 30px -14px rgba(0, 0, 0, .55); }
.nav-in { height: 100%; display: flex; align-items: center; gap: 10px; }
.logo { display: flex; align-items: center; min-height: 44px; margin-right: auto; text-decoration: none; }
.logo-crop { display: block; width: 180px; aspect-ratio: 1520 / 250; overflow: hidden; position: relative; }
.logo-crop img { position: absolute; left: -1%; top: -54%; width: 105%; max-width: none; height: auto; }
.nav-fav, .nav-toggle {
  position: relative; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px;
  border-radius: 999px; border: 1px solid rgba(255, 255, 255, .24); background: transparent; color: #fff; cursor: pointer; text-decoration: none;
}
.fav-n { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; border-radius: 999px; background: var(--gold-2); color: var(--navy-2); font-size: 14px; line-height: 20px; text-align: center; font-weight: 700; }
.menu { display: none; }
.nav-open .menu {
  display: flex; position: fixed; inset: var(--nav-h) 0 0 0; z-index: 49; flex-direction: column; gap: 2px; padding: 24px 24px 40px;
  background: var(--navy-deep); overflow-y: auto;
}
.menu > a:not(.btn) { display: flex; align-items: center; min-height: 56px; padding: 0 4px; color: #fff; font-size: 20px; text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.menu > a[aria-current="page"] { color: var(--gold-2); }
.menu .nav-cta { margin-top: 18px; }
.langs { display: flex; gap: 6px; margin-top: 16px; }
.langs a { display: inline-flex; align-items: center; justify-content: center; min-width: 52px; min-height: 44px; padding: 0 10px; border-radius: 999px; color: #fff; text-decoration: none; border: 1px solid rgba(255, 255, 255, .25); font-size: 15px; }
.langs a[aria-current="true"] { background: var(--gold-2); color: var(--navy-2); border-color: var(--gold-2); font-weight: 600; }
.nav-open { overflow: hidden; }
/* แก้ด่วน 558: มือถือ ปุ่มเปลี่ยนภาษาอยู่บนหัวเว็บข้างปุ่ม 3 ขีด · จอใหญ่ใช้แถบภาษาในเมนูเหมือนเดิม */
.menu .langs { display: none; }
.lang-m { position: relative; flex: none; }
.lang-m summary { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .24); color: #fff; font-size: 14px; line-height: 1; cursor: pointer; list-style: none; -webkit-tap-highlight-color: transparent; user-select: none; }
.lang-m summary::-webkit-details-marker { display: none; }
.lang-m[open] summary { background: var(--gold-2); border-color: var(--gold-2); color: var(--navy-2); font-weight: 600; }
.lang-m-list { position: absolute; top: calc(100% + 10px); right: 0; z-index: 51; display: flex; flex-direction: column; gap: 2px; min-width: 112px; padding: 6px; border-radius: 14px; background: var(--navy-2); border: 1px solid rgba(255, 255, 255, .18); box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .7); }
.lang-m-list a { display: flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 10px; color: #fff; font-size: 16px; text-decoration: none; }
.lang-m-list a[aria-current="true"] { background: var(--gold-2); color: var(--navy-2); font-weight: 600; }
@media (max-width: 479px) { .logo-crop { width: min(180px, calc(100vw - 212px)); } }

@media (min-width: 1240px) {
  .lang-m { display: none; }
  .menu .langs { display: flex; }
  .nav-toggle { display: none; }
  .menu, .nav-open .menu { display: flex; position: static; flex-direction: row; align-items: center; gap: 2px; padding: 0; background: none; overflow: visible; }
  .menu > a:not(.btn) { position: relative; min-height: 44px; padding: 0 13px; font-size: 15.5px; border: 0; color: rgba(255, 255, 255, .86); }
  .menu > a:not(.btn)::after { content: ''; position: absolute; left: 13px; right: 13px; bottom: 6px; height: 1px; background: var(--gold-2); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
  .menu > a:not(.btn):hover { color: #fff; }
  .menu > a:not(.btn):hover::after, .menu > a[aria-current="page"]::after { transform: none; }
  .menu > a[aria-current="page"] { color: var(--gold-2); }
  .langs { margin: 0 8px 0 14px; padding-left: 14px; border-left: 1px solid rgba(255, 255, 255, .18); gap: 2px; }
  .langs a { min-width: 44px; padding: 0 8px; font-size: 14px; border-color: transparent; }
  .menu .nav-cta { margin: 0 0 0 6px; min-height: 44px; padding: 8px 20px; }
  .logo { margin-right: 22px; }
  .menu { margin-left: auto; }
  .logo-crop { width: 214px; }
}

/* ---------- แบนเนอร์ ---------- */
.hero { position: relative; overflow: hidden; background: var(--navy-deep); color: #fff; isolation: isolate; }
.hero-track { display: flex; transition: transform .7s var(--ease); }
.hero-slide { position: relative; flex: 0 0 100%; min-height: min(70vh, 640px); display: flex; align-items: flex-end; }
.hero-slide picture { position: absolute; inset: 0; overflow: hidden; }
.hero-slide picture img { position: absolute; inset: -6% 0 0; width: 100%; height: 106%; object-fit: cover; object-position: 72% 50%; will-change: transform; }
.hero-slide:first-child picture img { animation: hero-in 2.2s var(--ease) both; }
@keyframes hero-in { from { opacity: .4; scale: 1.08; } to { opacity: 1; scale: 1; } }
@media (prefers-reduced-motion: reduce) { .hero-slide picture img { animation: none !important; } }
/* ไล่เฉดน้ำเงินจากซ้ายและล่าง ให้ตัวหนังสืออ่านง่าย แต่ยังเห็นตึกด้านขวาชัด */
.hero-slide::after { content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 14, 28, .55) 0%, rgba(10, 14, 28, 0) 22%, rgba(10, 14, 28, 0) 50%, rgba(10, 14, 28, .88) 100%),
    linear-gradient(90deg, rgba(10, 14, 28, .86) 0%, rgba(10, 14, 28, .5) 40%, rgba(10, 14, 28, 0) 75%); }
@media (max-width: 719px) { .hero-slide::after { background: linear-gradient(180deg, rgba(10, 14, 28, .7) 0%, rgba(10, 14, 28, .35) 45%, rgba(10, 14, 28, .9) 100%); } }
.hero-body { position: relative; z-index: 2; width: min(1240px, 100% - 40px); margin: 0 auto; padding: calc(var(--nav-h) + 40px) 0 44px; }
.hero-title { color: #fff; font-size: clamp(32px, 6.6vw, 72px); font-weight: 600; line-height: 1.4; letter-spacing: -.015em; max-width: 13em; margin: 0 0 16px; text-wrap: pretty; text-shadow: 0 2px 24px rgba(0, 0, 0, .35); }
@media (min-width: 600px) { .hero-title .nw { white-space: nowrap; } }
.hero-sub { font-size: clamp(16px, 2.1vw, 21px); color: rgba(255, 255, 255, .88); max-width: 34em; margin-bottom: 24px; }
.hero-body > * { animation: rise-in .9s var(--ease) both; }
.hero-body > :nth-child(2) { animation-delay: .08s; } .hero-body > :nth-child(3) { animation-delay: .16s; } .hero-body > :nth-child(4) { animation-delay: .24s; }
@keyframes rise-in { from { opacity: 0; translate: 0 22px; } to { opacity: 1; translate: 0 0; } }
@media (prefers-reduced-motion: reduce) { .hero-body > * { animation: none; } }
.hero-home .hero-slide { min-height: min(70svh, 640px); }
.hero-home .hero-body { padding-bottom: 36px; }
@media (min-width: 900px) {
  .hero-home .hero-slide { min-height: max(680px, min(100svh, 940px)); align-items: center; }
  .hero-home .hero-body { padding-bottom: 210px; }
}
.hero-compact .hero-slide { min-height: 340px; }
.hero-compact .hero-body { padding-bottom: 44px; }
.hero-compact .hero-title { font-size: clamp(30px, 5vw, 54px); }
@media (min-width: 900px) { .hero-compact .hero-slide { min-height: 440px; } }
/* แก้ด่วน 546: รูปหัวหน้าโครงการสว่างขึ้น เหลือเฉดเข้มแค่หลังตัวหนังสือ */
.hero-project .hero-slide::after { background:
    linear-gradient(180deg, rgba(10, 14, 28, 0) 50%, rgba(10, 14, 28, .55) 100%),
    linear-gradient(90deg, rgba(10, 14, 28, .4) 0%, rgba(10, 14, 28, .14) 42%, rgba(10, 14, 28, 0) 70%); }
@media (max-width: 719px) { .hero-project .hero-slide::after { background: linear-gradient(180deg, rgba(10, 14, 28, .12) 0%, rgba(10, 14, 28, 0) 40%, rgba(10, 14, 28, .62) 100%); } }
.hero-project .hero-title, .hero-project .hero-sub { text-shadow: 0 1px 3px rgba(0, 0, 0, .45), 0 2px 20px rgba(0, 0, 0, .5); }
.hero::before { content: ''; position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(217, 184, 116, .75), transparent); pointer-events: none; }
.hero-dots { position: absolute; z-index: 3; left: 0; right: 0; bottom: 8px; display: flex; justify-content: center; }
.hero-dots button { width: 44px; height: 44px; border: 0; background: none; cursor: pointer; position: relative; }
.hero-dots button::before { content: ''; position: absolute; inset: 21px 8px; border-radius: 99px; background: rgba(255, 255, 255, .45); }
.hero-dots button[aria-current="true"]::before { background: var(--gold-2); }
.hero-search { position: relative; z-index: 4; margin-top: -8px; padding-bottom: 28px; }
@media (min-width: 900px) { .hero-search { position: absolute; left: 0; right: 0; bottom: 56px; margin: 0 auto; padding: 0; } }

/* ---------- กล่องค้นหา ---------- */
.search { background: var(--card); color: var(--ink); border-radius: var(--radius-lg); padding: 16px; box-shadow: var(--shadow-up); }
.hero .search { background: rgba(255, 255, 255, .94); border: 1px solid rgba(255, 255, 255, .6); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6); }
.deal-tabs { display: flex; gap: 4px; margin-bottom: 12px; }
.deal-tabs label { position: relative; }
.deal-tabs input { position: absolute; opacity: 0; inset: 0; }
.deal-tabs span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 22px; border-radius: 4px; cursor: pointer; font-weight: 600; color: var(--muted); border-bottom: 2px solid transparent; }
.deal-tabs input:checked + span { background: var(--navy-2); color: #fff; }
.deal-tabs input:focus-visible + span { outline: 2px solid var(--gold-2); }
.search-row { display: grid; gap: 10px; grid-template-columns: 1fr; }
.fld { display: flex; flex-direction: column; gap: 4px; }
.fld > span, .fld > label { font-size: 14px; color: var(--muted); font-weight: 500; }
.fld select, .fld input, .fld textarea {
  width: 100%; min-height: 50px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 4px; background: #fff; font-size: 16px;
  transition: border-color .2s, box-shadow .2s;
}
.fld select:focus, .fld input:focus, .fld textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(217, 184, 116, .25); }
.fld textarea { min-height: 104px; resize: vertical; }
.fld select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%);
  background-position: calc(100% - 20px) 22px, calc(100% - 15px) 22px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.search-row .btn { align-self: end; min-height: 50px; }
@media (min-width: 720px) {
  /* จำนวนช่องเปลี่ยนตามที่ติ๊กในหลังบ้าน (รอบแก้ 1 เพิ่มประเภทห้อง) จึงใช้ flex แทนกริดตายตัว */
  .search-row { display: flex; align-items: flex-end; gap: 0; }
  .search-row .fld { flex: 1 1 0; min-width: 0; }
  .search { padding: 18px 22px 22px; }
  .search-row .fld { padding: 0 16px; border-left: 1px solid var(--line); }
  .search-row .fld:first-child { padding-left: 0; border-left: 0; }
  .search-row .fld select { border: 0; padding-left: 0; min-height: 44px; font-weight: 600; color: var(--navy-2); background-color: transparent; }
  .search-row .fld select:focus { box-shadow: none; }
  .search-row .btn { min-width: 170px; margin-left: 12px; }
}
@media (min-width: 720px) and (max-width: 1023px) {
  .search-row .btn { min-width: 0; padding-inline: 18px; }
}

/* ---------- แถบตัวเลขใต้แบนเนอร์ ---------- */
.stats { background: var(--navy-deep); color: #fff; border-bottom: 1px solid var(--line-dark); }
.stats-in { display: grid; grid-template-columns: repeat(2, 1fr); }
.stat { display: flex; flex-direction: column; gap: 2px; padding: 22px 16px; border-left: 1px solid var(--line-dark); }
.stat:nth-child(2n + 1) { border-left: 0; padding-left: 0; }
.stat:nth-child(n + 3) { border-top: 1px solid var(--line-dark); }
.stat b { font-size: clamp(28px, 4vw, 40px); font-weight: 600; line-height: 1.2; color: var(--gold-2); font-variant-numeric: tabular-nums; }
.stat span { font-size: 14px; color: rgba(255, 255, 255, .72); line-height: 1.5; }
@media (min-width: 900px) {
  .stats-in { grid-template-columns: repeat(4, 1fr); }
  .stat { padding: 30px 28px; border-top: 0 !important; }
  .stat:nth-child(2n + 1) { border-left: 1px solid var(--line-dark); padding-left: 28px; }
  .stat:first-child { border-left: 0; padding-left: 0; }
}

/* ---------- ส่วนทั่วไป ---------- */
.sec { padding: clamp(64px, 9vw, 120px) 0; }
.sec-alt { background: var(--paper-2); }
/* พื้นน้ำเงิน: แสงทองจางๆ + เส้นกริดแบบแปลนสถาปัตย์ */
.sec-dark { position: relative; isolation: isolate; color: #fff;
  background:
    radial-gradient(60% 70% at 85% 0%, rgba(217, 184, 116, .16), transparent 60%),
    radial-gradient(50% 60% at 0% 100%, rgba(45, 58, 96, .9), transparent 70%),
    linear-gradient(160deg, var(--navy-deep), var(--navy-2) 55%, #1a2442); }
.sec-dark::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(217, 184, 116, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(217, 184, 116, .06) 1px, transparent 1px);
  background-size: 64px 64px; -webkit-mask-image: linear-gradient(180deg, #000, transparent 85%); mask-image: linear-gradient(180deg, #000, transparent 85%); }
.sec-dark h2 { color: #fff; }
.sec-head { margin-bottom: clamp(28px, 4vw, 48px); max-width: 780px; }
.sec-head h2 { margin-bottom: 0; text-wrap: pretty; }
.sec-head h2 + p, .sec-head > p:not(.eyebrow) { margin-top: 14px; }
.sec-head p:not(.eyebrow), .sec-intro { color: var(--muted); font-size: 17px; max-width: 40em; white-space: pre-line; }
.sec-dark .sec-head p:not(.eyebrow) { color: rgba(255, 255, 255, .72); }
.row-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 24px; max-width: none; flex-wrap: wrap; }
.row-head h2 { margin: 0; }
.more { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 600; text-decoration: none; color: var(--gold); border-bottom: 1px solid currentColor; }
.more svg { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.more:hover svg { transform: translateX(4px); }
.sec-dark .more { color: var(--gold-2); }
.empty { padding: 28px; background: var(--card); border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); }

/* ---------- การ์ดทรัพย์ ---------- */
.pgrid { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .pgrid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .pgrid { grid-template-columns: repeat(3, 1fr); gap: 28px; } }
.pcard { position: relative; display: flex; flex-direction: column; background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .3s var(--ease), box-shadow .3s; }
.pcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-up); }
.pcard[hidden] { display: none; }
.pcard-pic { display: block; aspect-ratio: 4 / 3; background: #d9d3c6; overflow: hidden; }
.pcard-pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.pcard:hover .pcard-pic img { transform: scale(1.05); }
.pcard-tags { position: absolute; top: 14px; left: 14px; right: 66px; display: flex; flex-wrap: wrap; gap: 6px; }
.pcard-tags.static { position: static; margin-bottom: 12px; }
.tag { display: inline-flex; align-items: center; min-height: 28px; padding: 0 10px; border-radius: 3px; font-size: 14px; font-weight: 600; line-height: 1.4; background: #fff; color: var(--navy); letter-spacing: .01em; }
.tag-deal { background: var(--navy-2); color: #fff; }
.tag-quota { background: linear-gradient(135deg, var(--gold-3), var(--gold-2)); color: var(--navy-deep); }
.tag-thai { background: rgba(255, 255, 255, .94); color: var(--navy); }
.tag-co { background: transparent; color: var(--navy-2); box-shadow: inset 0 0 0 1px var(--gold-2); }
.tag-sold { background: var(--bad); color: #fff; }
.is-sold .pcard-pic img { filter: grayscale(.7); }
.fav { position: absolute; top: 10px; right: 10px; width: 44px; height: 44px; border-radius: 999px; border: 0; background: rgba(255, 255, 255, .94); color: var(--navy); display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow); transition: transform .2s; }
.fav:hover { transform: scale(1.06); }
[data-fav][aria-pressed="true"] svg { fill: #c4463f; stroke: #c4463f; }
.pcard-body { padding: 18px 20px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.pcard-where { margin: 0; font-size: 14px; color: var(--muted); letter-spacing: .01em; }
.pcard-title { margin: 0; font-size: 18px; font-weight: 600; }
.pcard-title a { display: block; min-height: 44px; text-decoration: none; color: var(--navy-2); }
.pcard-title a::after { content: ''; position: absolute; inset: 0 0 64px; }
.pcard-price { margin: 0; font-size: 22px; font-weight: 700; color: var(--gold); line-height: 1.4; font-variant-numeric: tabular-nums; }
.pcard-price small, .prop-price small { font-size: 15px; font-weight: 500; color: var(--muted); }
.sep { margin: 0 8px; color: var(--line); }
.specs { display: flex; flex-wrap: wrap; gap: 4px 16px; list-style: none; margin: 4px 0 0; padding: 0; color: var(--muted); font-size: 15px; }
.specs li { display: inline-flex; align-items: center; gap: 6px; }
.specs svg { width: 18px; height: 18px; color: var(--gold); }
.pcard-foot { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pcard-code { font-size: 14px; color: var(--muted); letter-spacing: .06em; }
.cmp { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px; border-radius: 4px; border: 1px solid var(--line); background: #fff; cursor: pointer; font-size: 14px; color: var(--navy); }
.cmp[aria-pressed="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }

/* ---------- ทรัพย์แนะนำหน้าแรก: การ์ดใหญ่ซ้าย + การ์ดแนวนอนขวา (ตามเลย์เอาต์ฟ็อก) ---------- */
.feat { display: grid; gap: 20px; }
.feat + .pgrid { margin-top: 28px; }
@media (min-width: 1024px) {
  .feat { grid-template-columns: 1.25fr 1fr; grid-template-rows: 1fr 1fr; gap: 28px; }
  .feat-1 { grid-template-columns: 1fr; grid-template-rows: auto; }
  .feat-2 { grid-template-rows: auto; }
  /* การ์ดใหญ่: ภาพเต็มการ์ด ข้อความทับด้านล่าง */
  .feat .pcard:first-child { grid-row: 1 / -1; min-height: 600px; color: #fff; background: var(--navy-deep); }
  .feat .pcard:first-child .pcard-pic { position: absolute; inset: 0; aspect-ratio: auto; }
  .feat .pcard:first-child .pcard-pic::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 14, 28, .35) 0%, rgba(10, 14, 28, 0) 30%, rgba(10, 14, 28, .1) 50%, rgba(10, 14, 28, .92) 100%); }
  .feat .pcard:first-child .pcard-tags, .feat .pcard:first-child .fav { z-index: 2; }
  .feat .pcard:first-child .pcard-body { position: relative; z-index: 1; flex: none; margin-top: auto; padding: 32px 34px 22px; gap: 8px; }
  .feat .pcard:first-child .pcard-where { color: var(--gold-3); }
  .feat .pcard:first-child .pcard-title { font-size: 30px; line-height: 1.45; }
  .feat .pcard:first-child .pcard-title a { color: #fff; }
  .feat .pcard:first-child .pcard-price { font-size: 32px; color: var(--gold-2); order: -1; }
  .feat .pcard:first-child .pcard-price small { color: rgba(255, 255, 255, .7); }
  .feat .pcard:first-child .specs { color: rgba(255, 255, 255, .85); }
  .feat .pcard:first-child .specs svg { color: var(--gold-2); }
  .feat .pcard:first-child .pcard-foot { border-color: rgba(255, 255, 255, .18); }
  .feat .pcard:first-child .pcard-code { color: rgba(255, 255, 255, .7); }
  .feat .pcard:first-child .cmp { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .35); }
  .feat .pcard:first-child .cmp[aria-pressed="true"] { background: var(--gold-2); color: var(--navy-deep); }
  /* การ์ดแนวนอน: ภาพซ้าย ข้อมูลขวา */
  .feat .pcard:not(:first-child) { display: grid; grid-template-columns: 46% 1fr; }
  .feat .pcard:not(:first-child) .pcard-pic { aspect-ratio: auto; height: 100%; min-height: 270px; }
  .feat .pcard:not(:first-child) .pcard-tags { right: auto; max-width: calc(46% - 28px); }
  .feat .pcard:not(:first-child) .fav { left: calc(46% - 54px); right: auto; top: auto; bottom: 10px; }
  .feat .pcard:not(:first-child) .pcard-body { padding: 24px 24px 16px; }
  .feat .pcard:not(:first-child) .pcard-title { font-size: 19px; }
  .feat .pcard:not(:first-child) .pcard-price { order: -1; }
  .feat .pcard:not(:first-child) .pcard-title a::after { inset: 0; }
}

/* ---------- โครงการ / ทำเล ---------- */
.prj-grid { display: grid; gap: 14px; grid-auto-flow: column; grid-auto-columns: 78%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: -20px; padding: 4px 20px 10px; }
.prj-grid::-webkit-scrollbar { display: none; }
@media (min-width: 720px) { .prj-grid { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: repeat(2, 1fr); overflow: visible; margin: 0; padding: 0; gap: 24px; } }
@media (min-width: 1024px) { .prj-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); } }
.prj { position: relative; display: flex; flex-direction: column; scroll-snap-align: start; text-decoration: none; color: inherit; }
.prj-pic { position: relative; display: block; aspect-ratio: 4 / 5; background: #d9d3c6; overflow: hidden; border-radius: var(--radius); }
.prj-pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.prj:hover .prj-pic img { transform: scale(1.05); }
.prj-body { padding: 16px 2px 0; display: flex; flex-direction: column; gap: 2px; }
.prj-year { font-size: 14px; color: var(--gold); font-weight: 600; letter-spacing: .04em; }
.prj-body b { font-size: 20px; font-weight: 600; color: var(--navy-2); line-height: 1.4; }
.prj-body span { color: var(--muted); font-size: 15px; }
.prj-body .prj-count { display: inline-flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); color: var(--navy); font-weight: 600; }
.prj-count svg { width: 18px; height: 18px; color: var(--gold); transition: transform .25s var(--ease); }
.prj:hover .prj-count svg { transform: translateX(4px); }

.area-grid { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) {
  .area-grid { gap: 20px; grid-template-columns: repeat(4, 1fr); }
  .area-grid.area-n3 { grid-template-columns: repeat(3, 1fr); }
  .area-grid.area-n2 { grid-template-columns: repeat(2, 1fr); }
  .area-grid.area-n1 { grid-template-columns: 1fr; }
}
.acard { position: relative; display: block; aspect-ratio: 3 / 4; border-radius: var(--radius); overflow: hidden; color: #fff; text-decoration: none; background: var(--navy-3); outline: 1px solid var(--line-dark); outline-offset: -1px; }
.area-n1 .acard, .area-n2 .acard { aspect-ratio: 16 / 9; }
.acard img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.acard:hover img { transform: scale(1.06); }
.acard::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 14, 28, .1) 30%, rgba(10, 14, 28, .9)); }
.acard-txt { position: absolute; z-index: 1; left: 16px; right: 16px; bottom: 16px; display: flex; flex-direction: column; gap: 2px; }
.acard-n { font-size: 14px; color: var(--gold-2); }
.acard-txt b { font-size: clamp(18px, 2.2vw, 24px); font-weight: 600; line-height: 1.45; }
.acard-go { display: none; }
@media (min-width: 900px) {
  .acard-txt { left: 22px; right: 22px; bottom: 22px; }
  .acard-go { display: inline-flex; align-self: flex-start; align-items: center; gap: 8px; margin-top: 12px; padding: 6px 14px; min-height: 40px; border: 1px solid rgba(217, 184, 116, .6); border-radius: 3px; font-size: 14px; color: var(--gold-3); transition: background .25s, color .25s; }
  .acard-go svg { width: 16px; height: 16px; }
  .acard:hover .acard-go { background: var(--gold-2); color: var(--navy-deep); }
}

/* ---------- ทำไมต้องเรา (หน้าแรก): ข้อความซ้าย ภาพเล็กขวา + ปุ่ม (ลูกค้าขอ รอบแก้ 1) ---------- */
.why { background: var(--paper-2); }
.why-in { display: grid; gap: 36px; align-items: center; }
.why-pic { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow); }
.why-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.why-badge { position: absolute; left: 16px; bottom: 16px; display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 4px; background: rgba(14, 20, 39, .82); color: #fff; font-weight: 600; border: 1px solid var(--line-dark); font-size: 15px; }
.why-badge svg { color: var(--gold-2); }
.why-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
@media (min-width: 1000px) {
  .why-in { grid-template-columns: 1.25fr 1fr; gap: 64px; }
}
.features-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 0 32px; grid-template-columns: 1fr; counter-reset: f; }
@media (min-width: 600px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .sec-features .features-grid { grid-template-columns: repeat(var(--cols, 3), 1fr); } }
.feature { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; padding: 26px 0; border-top: 1px solid var(--line); }
.feature-n { grid-row: span 2; font-size: 44px; font-weight: 400; line-height: 1; color: var(--gold); font-variant-numeric: tabular-nums; letter-spacing: -.02em; min-width: 1.4em; }
.feature-icon { display: none; }
.feature h3 { margin: 4px 0 4px; font-size: 19px; }
.feature p { margin: 0; color: var(--muted); }
.sec-features .feature { grid-template-columns: 1fr; padding: 30px 0 0; }
.sec-features .feature-n { font-size: 40px; margin-bottom: 8px; }

/* ---------- เกี่ยวกับ ---------- */
.about { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .about { grid-template-columns: 1.05fr 1fr; gap: 80px; } .about.pic-right .about-pic { order: 2; } .about.pic-right { grid-template-columns: 1fr 1.05fr; } }
.about-pic { position: relative; }
.about-pic img { position: relative; width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-up); }
.about-pic::before { content: ''; position: absolute; inset: -14px 14px 14px -14px; border: 1px solid var(--gold-2); border-radius: var(--radius); }
.about.pic-right .about-pic::before { inset: -14px -14px 14px 14px; }
@media (min-width: 900px) { .about-pic::before { inset: -26px 26px 26px -26px; } .about.pic-right .about-pic::before { inset: -26px -26px 26px 26px; } }
.about-text h2 { font-size: clamp(28px, 3.6vw, 42px); margin-bottom: 20px; }
.about-text p { color: #3a4058; font-size: 17px; }
.about-text .btn { margin-top: 10px; }

.quotes { display: grid; gap: 20px; }
@media (min-width: 900px) { .quotes { grid-template-columns: repeat(3, 1fr); } }
.quote { margin: 0; padding: 28px; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); }
.quote blockquote { margin: 0 0 14px; font-size: 17px; line-height: 1.75; }
.quote figcaption { display: flex; align-items: center; gap: 10px; }
.quote figcaption img { width: 44px; height: 44px; border-radius: 99px; object-fit: cover; }
.quote figcaption span { display: flex; flex-direction: column; font-size: 14px; color: var(--muted); }

/* ---------- คำถามที่พบบ่อย: หัวข้อซ้าย รายการขวา ---------- */
.sec-faq { background: var(--card); }
.faq-layout { display: grid; gap: 28px; }
@media (min-width: 960px) { .faq-layout { grid-template-columns: 1fr 1.5fr; gap: 80px; align-items: start; } .faq-side { position: sticky; top: calc(var(--nav-h) + 32px); } }
.faq-ask { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; color: var(--navy); font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--gold-2); }
.faq-ask svg:first-child { color: #06c755; }
.faq-ask svg:last-child { width: 18px; height: 18px; color: var(--gold); }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 22px 0; min-height: 56px; font-weight: 600; font-size: 18px; list-style: none; display: flex; align-items: center; gap: 18px; line-height: 1.5; color: var(--navy-2); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary > span:nth-child(2) { flex: 1; }
.faq summary::after { content: ''; flex: none; width: 36px; height: 36px; border-radius: 999px; border: 1px solid var(--line);
  background: linear-gradient(var(--gold), var(--gold)) center / 12px 1.5px no-repeat, linear-gradient(var(--gold), var(--gold)) center / 1.5px 12px no-repeat; transition: transform .3s var(--ease), background-color .3s; }
.faq details[open] summary::after { transform: rotate(45deg); background-color: var(--gold-soft); }
.faq-n { font-size: 14px; color: var(--gold); font-weight: 600; font-variant-numeric: tabular-nums; }
.faq-a { padding: 0 54px 24px 40px; margin: 0; color: #3a4058; font-size: 16.5px; }

/* ---------- แถบชวนติดต่อ ---------- */
.cta-band { padding: clamp(56px, 8vw, 96px) 0; }
.cta-in { display: grid; gap: 24px; align-items: center; }
@media (min-width: 900px) { .cta-in { grid-template-columns: 1.4fr auto; gap: 48px; } }
.cta-band h2 { margin: 0; font-size: clamp(24px, 3.4vw, 38px); line-height: 1.45; text-wrap: pretty; }
.cta-btns { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-dark { position: relative; color: #fff; background: linear-gradient(90deg, rgba(10, 14, 28, .94) 0%, rgba(14, 20, 39, .78) 55%, rgba(10, 14, 28, .55) 100%), url(/img/hero-bangkok.jpg) center 62% / cover no-repeat var(--navy-2); border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); }
.cta-dark h2 { color: #fff; }
.cta-soft { background: radial-gradient(80% 120% at 50% 0%, #fbf5e8, var(--gold-soft) 70%); border-top: 1px solid rgba(184, 137, 59, .2); border-bottom: 1px solid rgba(184, 137, 59, .2); }
.prose p { font-size: 17px; color: #3a4058; }
.rt-head { margin-bottom: 14px; }

/* ---------- ติดต่อ / ฟอร์ม ---------- */
.contact { display: grid; gap: 36px; }
@media (min-width: 960px) { .contact { grid-template-columns: 1fr 1.05fr; gap: 72px; align-items: start; } }
.contact-info .sec-head { margin-bottom: 18px; }
.lead-note { font-size: 17px; color: #3a4058; }
.contact-list { list-style: none; padding: 0; margin: 22px 0 18px; display: grid; gap: 2px; }
.contact-list li { display: flex; align-items: center; gap: 14px; min-height: 46px; }
.contact-list svg { color: var(--gold); }
.contact-list a, .contact-list .linkish { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; font-weight: 500; color: inherit; padding: 0; }
.hours-box h3 { margin-top: 10px; font-size: 17px; }
.hours { list-style: none; padding: 0; margin: 0; max-width: 380px; }
.hours li { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--line); }
.closed { color: var(--bad); }
.form-card { background: var(--card); border-radius: var(--radius-lg); padding: clamp(22px, 3vw, 36px); box-shadow: var(--shadow-up); border-top: 3px solid var(--gold-2); }
.lead { display: grid; gap: 14px; }
.fld-2 { display: grid; gap: 14px; }
@media (min-width: 560px) { .fld-2 { grid-template-columns: 1fr 1fr; } }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; }
.msg { margin: 0; min-height: 1.6em; font-size: 15px; }
.msg.ok { color: var(--ok); }
.msg.bad { color: var(--bad); }
.map { width: 100%; aspect-ratio: 16 / 10; border: 0; border-radius: var(--radius); display: block; margin-bottom: 12px; }
.map-wrap { margin-top: 40px; }
.map-wrap .map { aspect-ratio: 21 / 8; min-height: 280px; filter: saturate(.85); }

/* ---------- หน้าค้นหา ---------- */
.sec-search { padding-top: 36px; }
.search-layout { display: grid; gap: 24px; }
@media (min-width: 1024px) { .search-layout { grid-template-columns: 310px 1fr; align-items: start; gap: 32px; } .filter-col { position: sticky; top: calc(var(--nav-h) + 16px); } }
.filters { background: var(--card); border-radius: var(--radius-lg); padding: 20px; box-shadow: var(--shadow); display: grid; gap: 12px; border-top: 3px solid var(--gold-2); }
.filters .search-row { display: grid; grid-template-columns: 1fr; gap: 10px; }
.filters .search-row .fld { padding: 0; border: 0; }
.filters .search-row .fld select { border: 1px solid var(--line); padding-left: 14px; min-height: 50px; font-weight: 400; color: inherit; background-color: #fff; }
@media (min-width: 560px) and (max-width: 1023px) { .filters .search-row { grid-template-columns: repeat(2, 1fr); } }
.more-f summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; font-weight: 600; color: var(--navy); }
.more-grid { display: grid; gap: 10px; padding-top: 6px; grid-template-columns: 1fr 1fr; }
.more-grid .fld { grid-column: span 1; }
.chk { display: flex; align-items: center; gap: 8px; min-height: 44px; grid-column: span 2; cursor: pointer; }
.chk input { width: 20px; height: 20px; accent-color: var(--navy); }
.chk span { display: inline-flex; align-items: center; gap: 8px; }
.chk svg { color: var(--gold); }
.filter-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-actions .btn { flex: 1; padding-inline: 14px; }
.result-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 18px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.result-bar .count { margin: 0 auto 0 0; font-weight: 600; font-size: 18px; color: var(--navy-2); }
.fld-inline { flex-direction: row; align-items: center; gap: 8px; }
.fld-inline select { min-width: 180px; }
.view-toggle { display: inline-flex; border: 1px solid var(--line); border-radius: 4px; padding: 3px; background: #fff; }
.view-toggle a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border-radius: 3px; text-decoration: none; color: var(--navy); font-weight: 500; }
.view-toggle a[aria-current="true"] { background: var(--navy-2); color: #fff; }
.pager { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 32px; }
.pager a { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 12px; border-radius: 4px; border: 1px solid var(--line); background: #fff; text-decoration: none; }
.pager a[aria-current="page"] { background: var(--navy-2); color: #fff; border-color: var(--navy-2); }

/* ---------- แผนที่ค้นหา ---------- */
.map-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 10px; }
.map-tools [hidden] { display: none; }
.draw-hint { margin: 0; color: var(--muted); font-size: 15px; flex-basis: 100%; }
.pmap { height: min(62vh, 580px); border-radius: var(--radius-lg); overflow: hidden; background: #e8e4da; z-index: 1; box-shadow: var(--shadow); }
.pmap.drawing { cursor: crosshair; outline: 3px solid var(--gold-2); }
.map-count { margin: 14px 0; font-weight: 600; }
.pin { background: none; border: 0; display: flex; align-items: flex-end; justify-content: center; }
.pin span { display: inline-block; padding: 4px 10px; border-radius: 4px; background: var(--navy-2); color: #fff; font-size: 14px; font-weight: 700; white-space: nowrap; box-shadow: 0 4px 12px rgba(0, 0, 0, .3); border: 2px solid var(--gold-2); }
.pin-pop { display: block; text-decoration: none; color: var(--ink); width: 220px; }
.pin-pop img { width: 100%; height: auto; border-radius: 4px; margin-bottom: 6px; }
.pin-pop b { display: block; font-size: 15px; line-height: 1.4; }
.pin-pop span { color: var(--gold); font-weight: 700; }
.leaflet-bar a { width: 44px !important; height: 44px !important; line-height: 44px !important; font-size: 22px !important; }
.leaflet-control-attribution { font-size: 14px !important; }

/* ---------- หน้าทรัพย์ ---------- */
.prop { padding-top: 24px; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; font-size: 15px; color: var(--muted); margin-bottom: 14px; }
.crumbs a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--gold); }
.pgal { position: relative; margin: 0 -20px 28px; }
.pgal-track { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 0 20px; }
.pgal-track::-webkit-scrollbar { display: none; }
.pgal-item { flex: 0 0 88%; scroll-snap-align: start; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; background: #d9d3c6; }
.pgal-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.pgal-item:hover img { transform: scale(1.03); }
.pgal-count { position: absolute; right: 30px; bottom: 12px; min-height: 44px; padding: 0 16px; border: 0; background: rgba(14, 20, 39, .82); color: #fff; border-radius: 4px; font: inherit; font-size: 14px; cursor: pointer; transition: background .2s; }
.pgal-count:hover { background: var(--navy-deep); }
@media (min-width: 900px) {
  .pgal { margin: 0 0 36px; }
  .pgal-track { padding: 0; display: grid; grid-template-columns: 2fr 1fr 1fr; grid-auto-rows: 240px; gap: 10px; overflow: visible; }
  .pgal-item { aspect-ratio: auto; }
  .pgal-item:first-child { grid-row: span 2; }
  .pgal-item:nth-child(n + 6) { display: none; }
  .pgal-count { right: 14px; }
}
.prop-layout { display: grid; gap: 32px; }
@media (min-width: 1024px) { .prop-layout { grid-template-columns: 1fr 390px; gap: 56px; } .prop-side { position: sticky; top: calc(var(--nav-h) + 16px); } }
.prop-head h1 { font-size: clamp(28px, 4.6vw, 42px); margin-bottom: 8px; }
.prop-short { color: var(--muted); font-size: 17px; }
.prop-price { font-size: clamp(28px, 4.4vw, 38px); font-weight: 700; color: var(--gold); margin: 6px 0 12px; line-height: 1.4; }
.specs-lg { font-size: 16px; gap: 8px 22px; }
.prop-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 6px; }
.prop-actions .btn { min-height: 46px; padding: 8px 16px; }
.block { padding: 30px 0; border-top: 1px solid var(--line); }
.block h2 { font-size: 23px; }
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 20px; margin: 0; }
@media (min-width: 720px) { .facts { grid-template-columns: repeat(3, 1fr); } }
.fact { padding: 12px 0; border-bottom: 1px solid var(--line); }
.fact dt { font-size: 14px; color: var(--muted); }
.fact dd { margin: 0; font-weight: 600; color: var(--navy-2); }
.fact svg { color: var(--ok); }
.facts-sm { margin-bottom: 12px; }
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 3px; background: var(--card); border: 1px solid var(--line); font-size: 15px; }
.chips svg { width: 16px; height: 16px; color: var(--gold); }
.nearby { list-style: none; padding: 0; margin: 0; }
.nearby li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.nearby b { color: var(--navy); font-weight: 600; white-space: nowrap; }
.disclaimer { font-size: 14px; color: var(--muted); padding-top: 16px; border-top: 1px solid var(--line); }
.side-card { background: var(--card); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow-up); border-top: 3px solid var(--gold-2); }
.side-card h2 { font-size: 22px; }
.side-note { margin: -4px 0 14px; color: var(--muted); font-size: 15px; }
/* เบอร์โทรแบบกดดู + LINE ID (รอบแก้ 1) */
.c-lines { margin: -4px 0 18px; display: grid; gap: 2px; }
.c-lines > div { display: grid; grid-template-columns: 76px 1fr; align-items: center; gap: 10px; min-height: 44px; border-bottom: 1px solid var(--line); }
.c-lines dt { font-size: 14px; color: var(--muted); }
.c-lines dd { margin: 0; font-weight: 600; color: var(--navy-2); }
.c-lines a { color: var(--navy-2); display: inline-flex; align-items: center; min-height: 44px; }
.reveal { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0; border: 0; background: none; font: inherit; color: var(--gold); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.reveal svg { width: 16px; height: 16px; }
.reveal.is-open { color: var(--navy-2); font-size: 18px; letter-spacing: .02em; }
.chat-btns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 18px; }
@media (min-width: 560px) { .contact-info .chat-btns { grid-template-columns: repeat(auto-fit, minmax(104px, 1fr)); max-width: 560px; } }
.chat { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 68px; border-radius: 4px; border: 1px solid var(--line); background: #fff; text-decoration: none; color: var(--navy); font-size: 14px; font-weight: 600; cursor: pointer; padding: 6px; transition: border-color .2s, transform .2s var(--ease); }
.chat:hover { border-color: var(--gold); transform: translateY(-2px); }
.chat-line svg { color: #06c755; }
.chat-wa svg { color: #25d366; }
.chat-wc svg { color: #07c160; }
.agent { margin-top: 16px; background: var(--card); border-radius: var(--radius-lg); padding: 22px; box-shadow: var(--shadow); }
.agent-top { display: flex; gap: 14px; align-items: center; }
.agent-pic { width: 68px; height: 68px; border-radius: 999px; object-fit: cover; flex: none; }
.agent-ini { display: grid; place-items: center; background: var(--navy-2); color: var(--gold-2); font-weight: 600; font-size: 26px; box-shadow: inset 0 0 0 1px var(--gold-2); }
.agent h3 { margin: 0; }
.agent-role { margin: 0; font-size: 14px; color: var(--gold); font-weight: 600; }
.agent-title { margin: 0; font-size: 14px; color: var(--muted); }
.agent-langs { display: flex; align-items: center; gap: 8px; margin: 14px 0 6px; font-size: 15px; }
.agent-langs svg { color: var(--gold); }
.agent-bio { margin: 0; color: var(--muted); font-size: 15px; }
.agent-grid { display: grid; gap: 20px; }
@media (min-width: 720px) { .agent-grid { grid-template-columns: repeat(3, 1fr); } }
.agent-grid .agent { margin: 0; }
.similar { margin-top: 48px; }
.m-ask { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); display: flex; }
.m-ask .btn { flex: 1; }
@media (min-width: 1024px) { .m-ask { display: none; } }
.prj-info { display: grid; gap: 24px; margin-bottom: 10px; }
@media (min-width: 900px) { .prj-info { grid-template-columns: 1.4fr 1fr; gap: 56px; } }
.gal { display: grid; gap: 10px; grid-template-columns: repeat(2, 1fr); margin: 24px 0; }
@media (min-width: 768px) { .gal { grid-template-columns: repeat(var(--cols, 3), 1fr); } }
.gal a { display: block; border-radius: var(--radius); overflow: hidden; }
.gal img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }

/* แก้ด่วน 542: แถววิว 360 องศา */
.tour { position: relative; display: block; margin-top: 8px; border-radius: var(--radius); overflow: hidden; background: var(--navy-deep); color: #fff; text-decoration: none; }
.tour img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.tour-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; padding: 18px 20px; background: var(--navy-deep); }
.tour-txt { display: grid; gap: 2px; min-width: 0; }
.tour-txt b { font-size: 20px; font-weight: 600; line-height: 1.4; }
.tour-txt small { font-size: 15px; line-height: 1.5; color: rgba(255, 255, 255, .78); }
.tour .btn { flex: 1 1 auto; }
.tour:hover .btn { transform: translateY(-2px); }
@media (min-width: 768px) {
  .tour img { aspect-ratio: 21 / 9; }
  .tour .btn { flex: none; }
  .tour:not(.tour-plain) .tour-bar { position: absolute; inset: auto 0 0; padding: 20px 28px; background: rgba(14, 20, 39, .86); }
}

/* แก้ด่วน 542: แถววิดีโอ จอใหญ่ + รายการข้างๆ */
.vid { display: grid; gap: 14px; margin-top: 8px; }
.vid-solo { max-width: 960px; }
.vid-stage { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--navy-deep); }
.vid-stage iframe, .vid-stage video { display: block; width: 100%; height: 100%; border: 0; background: #000; }
.vid-start { position: absolute; inset: 0; display: block; color: #fff; text-decoration: none; }
.vid-start img { width: 100%; height: 100%; object-fit: cover; }
.vid-start::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(14, 20, 39, .84), transparent 55%); }
.vid-play { position: absolute; z-index: 1; top: 50%; left: 50%; width: 72px; height: 72px; margin: -36px 0 0 -36px; display: grid; place-items: center; border-radius: 50%; background: var(--gold); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .7), var(--shadow); transition: transform .2s var(--ease); }
.vid-start:hover .vid-play { transform: scale(1.06); }
.vid-play svg { width: 30px; height: 30px; margin-left: 3px; fill: currentColor; }
.vid-cap { position: absolute; z-index: 1; left: 20px; right: 20px; bottom: 14px; font-size: 18px; font-weight: 600; line-height: 1.5; }
.vid-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.vid-item { display: grid; grid-template-columns: 132px 1fr; align-items: center; gap: 12px; padding: 8px; border: 1px solid transparent; border-radius: var(--radius); color: var(--navy-2); text-decoration: none; transition: background .2s, border-color .2s; }
.vid-item:hover { background: var(--card); }
.vid-item[aria-current="true"] { background: var(--card); border-color: var(--gold-2); }
.vid-thumb { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 3px; overflow: hidden; background: var(--navy-deep); color: #fff; }
.vid-thumb img { width: 100%; height: 100%; object-fit: cover; }
.vid-thumb svg { position: absolute; inset: 0; margin: auto; width: 26px; height: 26px; fill: currentColor; }
.vid-name { font-size: 15px; font-weight: 600; line-height: 1.5; min-width: 0; overflow-wrap: anywhere; }
@media (min-width: 900px) {
  .vid:not(.vid-solo) { grid-template-columns: 2fr 1fr; }
  .vid-side { position: relative; }
  .vid-list { position: absolute; inset: 0; align-content: start; overflow-y: auto; padding-right: 4px; }
}

/* ---------- เปรียบเทียบ ---------- */
.cmp-wrap { overflow-x: auto; border-radius: var(--radius-lg); background: var(--card); box-shadow: var(--shadow); }
.cmp-table { border-collapse: collapse; min-width: 640px; width: 100%; }
.cmp-table th, .cmp-table td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; line-height: 1.5; }
.cmp-table thead th { width: 23%; }
.cmp-table thead th a { display: block; min-height: 44px; text-decoration: none; font-weight: 600; }
.cmp-pic img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; margin-bottom: 8px; }
.cmp-table tbody th { color: var(--muted); font-weight: 500; white-space: nowrap; width: 150px; }
.cmp-bar { position: fixed; z-index: 40; left: 50%; bottom: 84px; transform: translateX(-50%); display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 18px; border-radius: 6px; background: var(--navy-deep); color: #fff; box-shadow: var(--shadow-up); border: 1px solid var(--line-dark); }
.cmp-bar[hidden] { display: none; }
.cmp-bar .linkish { color: rgba(255, 255, 255, .8); }
@media (min-width: 1024px) { .cmp-bar { bottom: 24px; } }

/* ---------- ปุ่มลอย / ท้ายเว็บ ---------- */
.float-contact { position: fixed; z-index: 35; right: 14px; bottom: calc(14px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 10px; }
.fl { display: flex; align-items: center; justify-content: center; gap: 6px; width: 56px; height: 56px; border-radius: 999px; color: #fff; text-decoration: none; box-shadow: var(--shadow-up); font-size: 0; transition: transform .2s var(--ease); }
.fl:hover { transform: translateY(-2px); }
.fl svg { width: 26px; height: 26px; }
.fl-line { background: #06c755; }
.fl-call { background: var(--navy-2); box-shadow: inset 0 0 0 1px var(--gold-2), var(--shadow-up); }
.prop ~ .float-contact, body:has(.m-ask) .float-contact { bottom: 88px; }
@media (min-width: 1024px) { body:has(.m-ask) .float-contact { bottom: 24px; } }
.foot { position: relative; background: radial-gradient(70% 90% at 100% 0%, rgba(217, 184, 116, .1), transparent 60%), var(--navy-deep); border-top: 1px solid var(--line-dark); color: rgba(255, 255, 255, .8); padding: 0 0 120px; }
@media (min-width: 1024px) { .foot { padding-bottom: 36px; } }
.foot a { color: #fff; }
.foot-cta { display: grid; gap: 20px; align-items: center; padding: 48px 0; margin-bottom: 48px; border-bottom: 1px solid var(--line-dark); }
@media (min-width: 900px) { .foot-cta { grid-template-columns: 1fr auto; padding: 64px 0; } }
.foot-cta-t { margin: 0; font-size: clamp(26px, 3.6vw, 42px); line-height: 1.45; font-weight: 600; color: #fff; text-wrap: pretty; }
.foot-cta-b { display: flex; flex-wrap: wrap; gap: 12px; }
.foot-cta-b .btn-gold { color: var(--navy-deep); }
.foot-grid { display: grid; gap: 36px; }
@media (min-width: 900px) { .foot-grid { grid-template-columns: 1.3fr 1fr 1fr; gap: 56px; } }
.foot-brand .logo-crop { width: 240px; margin-bottom: 18px; }
.foot-brand p { color: rgba(255, 255, 255, .7); font-size: 15px; max-width: 30em; }
.foot-h { font-size: 15px; letter-spacing: .08em; color: var(--gold-2); margin-bottom: 12px; font-weight: 600; }
.foot .contact-list { margin-top: 0; }
.foot .contact-list svg { color: var(--gold-2); }
.foot-links { list-style: none; padding: 0; margin: 0 0 14px; }
.foot-links a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; text-decoration: none; color: rgba(255, 255, 255, .85); }
.foot-links a:hover { color: var(--gold-3); }
.prj-box h2 a { display: inline-flex; align-items: center; min-height: 44px; }
.social { display: flex; gap: 8px; }
.social a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .25); }
.social a:hover { border-color: var(--gold-2); }
.copy { margin: 40px 0 0; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 14px; color: rgba(255, 255, 255, .55); }

/* ---------- กล่องลอย ---------- */
dialog.light, .wc-dialog { border: 0; padding: 0; background: transparent; max-width: min(1100px, 94vw); }
dialog.light::backdrop, .wc-dialog::backdrop { background: rgba(10, 14, 28, .86); }
dialog.light img { max-height: 86vh; width: auto; border-radius: 6px; }
.light-nav { position: absolute; top: 50%; width: 48px; height: 48px; margin-top: -24px; display: grid; place-items: center; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .92); color: var(--navy); cursor: pointer; box-shadow: var(--shadow); transition: background .2s; }
.light-nav:hover { background: #fff; }
.light-nav svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; }
.light-prev { left: 10px; }
.light-prev svg { transform: scaleX(-1); }
.light-next { right: 10px; }
.light-count { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); margin: 0; padding: 2px 12px; border-radius: 4px; background: rgba(14, 20, 39, .78); color: #fff; font-size: 14px; font-variant-numeric: tabular-nums; }
dialog.light.single .light-nav, dialog.light.single .light-count { display: none; }
dialog .x { position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; border: 0; border-radius: 999px; background: #fff; cursor: pointer; font-size: 26px; line-height: 1; display: grid; place-items: center; color: var(--navy); }
.wc-in { position: relative; background: #fff; border-radius: var(--radius-lg); padding: 28px 24px 22px; text-align: center; width: min(360px, 90vw); }
.wc-in h2 { font-size: 20px; margin: 8px 40px 14px; }
.wc-qr { width: 240px; height: 240px; object-fit: contain; margin: 0 auto 10px; }
.wc-id { margin: 0; }

/* ---------- 404 ---------- */
.nf { text-align: center; }
.nf-btns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin: 20px 0 40px; }

/* ---------- อนิเมชันตอนเลื่อนถึง ---------- */
.rise { opacity: 0; transform: translateY(22px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.rise.in { opacity: 1; transform: none; }
.pcard.rise.in:hover, .prj.rise.in:hover { transform: translateY(-4px); }

/* ---------- โบรชัวร์ PDF ---------- */
.brochure { background: #e9e6df; padding: 0; }
.br-bar { position: sticky; top: 0; z-index: 2; display: flex; justify-content: center; padding: 12px; background: var(--navy-2); }
.br-page { background: #fff; width: min(210mm, 100%); margin: 16px auto; padding: 14mm 14mm 10mm; }
.br-head { display: flex; justify-content: space-between; align-items: center; border-bottom: 2px solid var(--gold); padding-bottom: 8px; margin-bottom: 12px; }
.br-head .logo-crop { width: 220px; }
.br-code { font-weight: 700; color: var(--navy); }
.br-hero img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 4px; }
.br-thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 6px; }
.br-thumbs img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; }
.br-page h1 { font-size: 26px; margin: 14px 0 2px; }
.br-where { color: var(--muted); margin: 0; }
.br-price { font-size: 24px; font-weight: 700; color: var(--gold); margin: 4px 0 10px; }
.br-table { width: 100%; border-collapse: collapse; margin-bottom: 10px; }
.br-table th, .br-table td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--line); line-height: 1.5; }
.br-table th { color: var(--muted); font-weight: 500; width: 40%; }
.br-detail p { font-size: 15px; }
.br-foot { margin-top: 12px; padding-top: 10px; border-top: 2px solid var(--navy); display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
@media print {
  @page { size: A4; margin: 0; }
  .no-print { display: none !important; }
  .brochure { background: #fff; }
  .br-page { margin: 0; width: 210mm; }
}

/* ================= รอบแก้ 1 (ลูกค้าขอ) ================= */

/* การ์ดทรัพย์: ชื่อโครงการ + ห้องนอน พื้นที่ ชั้น + ราคา (รูปเล็กลง) */
.pcard-prj { margin: 0; display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--gold); line-height: 1.5; }
.pcard-prj svg { width: 16px; height: 16px; flex: none; }
.pcard-prj span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pcard-body { padding: 14px 16px 12px; gap: 4px; }
.pcard-title { font-size: 16.5px; line-height: 1.5; }
.pcard-title a { min-height: 0; padding-block: 10px; margin-block: -10px; }
.pcard-price { font-size: 19px; margin-top: 4px; }
.pcard-price small { font-size: 14px; }
.pcard .specs { font-size: 14px; gap: 2px 12px; }
.pcard .specs svg { width: 16px; height: 16px; }
.pcard-foot { padding-top: 10px; }

/* หน้าแรก: แถวละ 4 การ์ด (มือถือเลื่อนข้างแถวละ 2 ใบ) */
.sec-row + .sec-row { padding-top: 0; }
.row4 { display: grid; gap: 14px; grid-auto-flow: column; grid-auto-columns: calc(50% - 7px); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: -20px; padding: 4px 20px 12px; scroll-padding-inline: 20px; }
.row4::-webkit-scrollbar { display: none; }
.row4 > * { scroll-snap-align: start; min-width: 0; }
@media (max-width: 479px) { .row4 { grid-auto-columns: 72%; } }
@media (min-width: 900px) { .row4 { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: repeat(4, 1fr); overflow: visible; margin: 0; padding: 0; gap: 22px; } }
.row4.pgrid { grid-template-columns: none; }
@media (min-width: 900px) { .row4.pgrid { grid-template-columns: repeat(4, 1fr); } }
.row4 .pcard-foot .pcard-code { font-size: 13px; }
.row4 .cmp span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.row4 .cmp { padding: 0 10px; min-width: 44px; justify-content: center; }
.tile .prj-pic, .row4 .prj-pic { aspect-ratio: 4 / 3; }
.row4 .prj-body b { font-size: 17px; }
.row4 .prj-body .prj-count { font-size: 14px; }

/* แถบรูปโฆษณาเลื่อนได้ */
.promo { padding-block: clamp(36px, 5vw, 56px); }
.promo .sec-head { margin-bottom: 20px; align-items: center; }
.slider-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc(50% - 6px); gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.slider-track::-webkit-scrollbar { display: none; }
.slider-track:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 4px; }
@media (min-width: 900px) { .slider-track { grid-auto-columns: calc(25% - 15px); gap: 20px; } }
.slide { display: block; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: #d9d3c6; scroll-snap-align: start; box-shadow: var(--shadow); }
.slide img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
a.slide:hover img { transform: scale(1.04); }
/* แถบหน้าแรก: การ์ดห้องแบบเดียวกับห้องเช่าแนะนำ · เผื่อระยะบนล่างให้เงาการ์ดและตอนยกการ์ดไม่โดนตัด */
.promo-home .slider-track { padding-block: 6px 14px; margin-block: -6px -14px; }
@media (max-width: 479px) { .promo-home .slider-track { grid-auto-columns: 72%; } }
.slide-card { aspect-ratio: auto; overflow: visible; background: none; box-shadow: none; border-radius: 0; min-width: 0; }
.slide-card .pcard { height: 100%; }
.slide-card .pcard-pic img { height: 100%; }
.pcard-ad .pcard-title a::after { inset: 0; }
.pcard-ad .pcard-where { white-space: pre-line; }
.slide-card .pcard-foot .pcard-code { font-size: 13px; }
.slide-card .cmp span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.slide-card .cmp { padding: 0 10px; min-width: 44px; justify-content: center; }
/* รูปส่งมอบห้อง (หน้าเกี่ยวกับเรา): รูปมีโลโก้บน + แถบข้อมูลล่าง และมีแนวตั้งปน → แสดงเต็มรูป ไม่ตัดขอบ */
.promo-about .slide { aspect-ratio: 6 / 5; background: #ebe5d8; }
.promo-about .slide img { object-fit: contain; }
.slider-nav { display: flex; gap: 8px; }
.slider-nav button { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--navy); cursor: pointer; transition: background .2s, color .2s; }
.slider-nav button:hover { background: var(--navy-2); color: #fff; }
.slider-nav button svg { width: 18px; height: 18px; }
.slider-nav button[data-slide="-1"] svg { transform: scaleX(-1); }

/* หน้าโครงการ: จอคอม 4 คอลัมน์ รูป 4:3 เหมือนหน้าแรก มือถือ 2 คอลัมน์ */
.prj-grid-4 { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: repeat(2, 1fr); overflow: visible; margin: 0; padding: 0; gap: 14px; }
@media (min-width: 900px) { .prj-grid-4 { grid-template-columns: repeat(4, 1fr); gap: 22px; } }
.prj-grid-4 .prj-pic { aspect-ratio: 4 / 3; }
.prj-grid-4 .prj-body b { font-size: 17px; }
.prj-grid-4 .prj-body .prj-count { font-size: 14px; }
@media (max-width: 719px) { .prj-grid-4 .prj-body b { font-size: 16px; } .prj-grid-4 .prj-body span { font-size: 14px; } }

/* แบ่งหน้า + จำนวนประกาศต่อหน้า */
.pager-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 24px; margin-top: 32px; }
.pager-bar .pager { margin: 0; }
.fld-inline > span { white-space: nowrap; }
.sec-row { padding-block: clamp(40px, 5vw, 64px); }
.per-sel select { min-width: 84px; }

/* ช่องที่ต้องกรอก */
.req { color: var(--bad); font-weight: 700; }
