/* =====================================================================
   PHANGAN RESIDENCE — stylesheet
   พาเลตยึดจากภาพ 3 มิติในไฟล์ออกแบบ: ครีมอุ่น ไม้โอ๊ก ทราเวอร์ทีน เขียวมะกอก ส้มดินเผา
   ไม่มีอีโมจิ ไอคอนเป็น line SVG โมโนโครมทั้งหมด
   รองรับ RTL (ฮีบรู) ด้วย logical properties
   ===================================================================== */

:root {
  --bg:        #faf7f2;
  --bg-warm:   #f2ebe0;
  --bg-deep:   #e8dfd1;
  --surface:   #ffffff;
  --ink:       #1c1917;
  --ink-2:     #554e46;
  --ink-3:     #8b8177;
  --line:      #ddd2c1;
  --line-soft: #ebe3d6;
  --oak:       #c19a68;
  --oak-soft:  #e2cfae;
  --sage:      #74836a;
  --terra:     #b0603a;
  --dark:      #23201d;

  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans:  system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

  --wrap:  1240px;
  --gut:   clamp(20px, 5vw, 64px);
  --sec-y: clamp(72px, 10vw, 148px);

  --r:  2px;
  --r2: 4px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ภาษาไทย: serif ไทยสวย ๆ หายาก ใช้ sans ทั้งหัวเรื่องและเนื้อความ */
html[lang="th"] { --serif: 'Noto Sans Thai', 'Sarabun', 'Leelawadee UI', system-ui, sans-serif;
                  --sans:  'Noto Sans Thai', 'Sarabun', 'Leelawadee UI', system-ui, sans-serif; }
html[lang="he"] { --serif: 'Frank Ruhl Libre', 'David Libre', Georgia, serif;
                  --sans:  'Heebo', 'Arial Hebrew', system-ui, sans-serif; }

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--terra); outline-offset: 3px; }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }
.sec  { padding-block: var(--sec-y); position: relative; }
.sec--warm { background: var(--bg-warm); }
.sec--deep { background: var(--dark); color: #f2ece2; }

.eyebrow {
  font-family: var(--sans);
  font-size: 11px; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--terra);
  margin: 0 0 18px;
  display: flex; align-items: center; gap: 12px;
}
.eyebrow::before { content: ''; width: 28px; height: 1px; background: currentColor; flex: none; }
html[lang="th"] .eyebrow, html[lang="he"] .eyebrow { letter-spacing: .08em; }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.12; margin: 0; letter-spacing: -.005em; }
.h1 { font-size: clamp(40px, 7.2vw, 92px); }
.h2 { font-size: clamp(30px, 4.4vw, 56px); }
.h3 { font-size: clamp(21px, 2.2vw, 28px); line-height: 1.25; }
html[lang="th"] .h1 { font-size: clamp(32px, 5.6vw, 66px); line-height: 1.3; font-weight: 600; }
html[lang="th"] .h2 { font-size: clamp(25px, 3.6vw, 42px); line-height: 1.35; font-weight: 600; }
html[lang="th"] .h3 { font-size: clamp(19px, 2vw, 24px); line-height: 1.45; font-weight: 600; }

.lead { font-size: clamp(16.5px, 1.5vw, 19.5px); color: var(--ink-2); max-width: 62ch; margin: 20px 0 0; }
.sec--deep .lead { color: #c9c0b4; }

.hr { height: 1px; background: var(--line); border: 0; margin: 0; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 28px; border: 1px solid var(--ink); border-radius: var(--r);
  background: var(--ink); color: var(--bg);
  font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  cursor: pointer; transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
  white-space: nowrap;
}
.btn:hover { background: var(--terra); border-color: var(--terra); color: #fff; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.btn--light { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn--light:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn--wide { width: 100%; padding-block: 17px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
html[lang="th"] .btn, html[lang="he"] .btn { letter-spacing: .04em; text-transform: none; font-size: 14.5px; }

.link-u {
  font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  border-bottom: 1px solid var(--oak); padding-bottom: 3px; transition: border-color .25s, color .25s;
}
.link-u:hover { color: var(--terra); border-color: var(--terra); }
html[lang="th"] .link-u, html[lang="he"] .link-u { letter-spacing: .03em; text-transform: none; font-size: 15px; }

/* ---------- header ---------- */
.hdr {
  position: fixed; inset-block-start: 0; inset-inline: 0; z-index: 90;
  transition: background .35s var(--ease), border-color .35s, box-shadow .35s;
  border-bottom: 1px solid transparent;
}
.hdr__in { display: flex; align-items: center; gap: 24px; height: 74px; }
.hdr.is-solid { background: rgba(250,247,242,.94); backdrop-filter: blur(14px); border-bottom-color: var(--line-soft); }

.brand { display: flex; flex-direction: column; line-height: 1.05; margin-inline-end: auto; }
.brand b { font-family: var(--serif); font-size: 19px; font-weight: 500; letter-spacing: .16em; }
.brand span { font-size: 9.5px; letter-spacing: .3em; text-transform: uppercase; color: var(--ink-3); margin-top: 4px; }
.hdr:not(.is-solid) .brand, .hdr:not(.is-solid) .nav a { color: #fff; }
.hdr:not(.is-solid) .brand span { color: rgba(255,255,255,.75); }
html[lang="th"] .brand span, html[lang="he"] .brand span { letter-spacing: .1em; }

.nav { display: flex; align-items: center; gap: 30px; }
.nav a {
  font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  position: relative; padding-block: 6px; transition: color .25s;
}
.nav a::after {
  content: ''; position: absolute; inset-block-end: 0; inset-inline-start: 0;
  width: 0; height: 1px; background: currentColor; transition: width .3s var(--ease);
}
.nav a:hover::after { width: 100%; }
html[lang="th"] .nav a, html[lang="he"] .nav a { letter-spacing: .02em; text-transform: none; font-size: 15px; }

/* language switcher */
.lang { position: relative; }
.lang__btn {
  display: flex; align-items: center; gap: 7px; background: none; border: 1px solid var(--line);
  border-radius: var(--r); padding: 8px 12px; cursor: pointer;
  font-size: 11.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
}
.hdr:not(.is-solid) .lang__btn { border-color: rgba(255,255,255,.4); color: #fff; }
.lang__btn svg { width: 13px; height: 13px; }
.lang__list {
  position: absolute; inset-block-start: calc(100% + 8px); inset-inline-end: 0;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r2);
  min-width: 168px; padding: 6px; box-shadow: 0 18px 44px rgba(28,25,23,.14);
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: .22s var(--ease); z-index: 5;
}
.lang.is-open .lang__list { opacity: 1; visibility: visible; transform: none; }
.lang__list button {
  display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 10px;
  background: none; border: 0; padding: 10px 12px; cursor: pointer; text-align: start;
  font-size: 14.5px; border-radius: var(--r); color: var(--ink);
}
.lang__list button:hover { background: var(--bg-warm); }
.lang__list button[aria-selected="true"] { color: var(--terra); font-weight: 600; }
.lang__list small { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }

/* burger + drawer */
.burger { display: none; width: 42px; height: 42px; align-items: center; justify-content: center;
          background: none; border: 1px solid var(--line); border-radius: var(--r); cursor: pointer; }
.hdr:not(.is-solid) .burger { border-color: rgba(255,255,255,.4); }
.burger span { display: block; width: 17px; height: 1.5px; background: currentColor; position: relative; transition: .3s var(--ease); }
.burger span::before, .burger span::after { content: ''; position: absolute; inset-inline-start: 0; width: 17px; height: 1.5px; background: currentColor; transition: .3s var(--ease); }
.burger span::before { top: -6px; } .burger span::after { top: 6px; }
.hdr:not(.is-solid) .burger { color: #fff; }
body.is-drawer .burger span { background: transparent; }
body.is-drawer .burger span::before { top: 0; transform: rotate(45deg); }
body.is-drawer .burger span::after  { top: 0; transform: rotate(-45deg); }

.drawer {
  position: fixed; inset: 74px 0 0; z-index: 85; background: var(--bg);
  padding: 40px var(--gut) 60px; overflow-y: auto;
  opacity: 0; visibility: hidden; transform: translateY(-12px); transition: .3s var(--ease);
}
body.is-drawer .drawer { opacity: 1; visibility: visible; transform: none; }
.drawer a {
  display: block; font-family: var(--serif); font-size: 30px; padding-block: 15px;
  border-bottom: 1px solid var(--line-soft);
}
html[lang="th"] .drawer a, html[lang="he"] .drawer a { font-size: 22px; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; animation: heroZoom 22s var(--ease) forwards; }
@keyframes heroZoom { from { transform: scale(1.1); } to { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .hero__bg img { animation: none; } }
.hero__bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(28,25,23,.52) 0%, rgba(28,25,23,.12) 34%, rgba(28,25,23,.20) 60%, rgba(28,25,23,.78) 100%);
}
.hero__in { position: relative; z-index: 2; color: #fff; padding-block: 0 clamp(56px, 9vh, 104px); width: 100%; }
.hero .eyebrow { color: var(--oak-soft); }
.hero .h1 { max-width: 15ch; text-shadow: 0 2px 24px rgba(0,0,0,.28); }
.hero__sub { max-width: 54ch; margin: 26px 0 38px; font-size: clamp(16px, 1.6vw, 20px); color: rgba(255,255,255,.9); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__meta {
  margin-top: clamp(40px, 6vh, 70px); padding-top: 26px; border-top: 1px solid rgba(255,255,255,.22);
  display: flex; flex-wrap: wrap; gap: clamp(24px, 5vw, 64px);
}
.hero__meta div b { display: block; font-family: var(--serif); font-size: clamp(26px, 3vw, 38px); font-weight: 400; }
.hero__meta div span { font-size: 11.5px; letter-spacing: .13em; text-transform: uppercase; color: rgba(255,255,255,.72); }
html[lang="th"] .hero__meta div span, html[lang="he"] .hero__meta div span { letter-spacing: .02em; text-transform: none; font-size: 13.5px; }

/* ---------- intro ---------- */
.intro__grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(36px, 6vw, 96px); align-items: start; }
.intro__body p { margin: 0 0 20px; font-size: clamp(16px, 1.4vw, 18.5px); color: var(--ink-2); }
.intro__body p:first-child { color: var(--ink); font-size: clamp(17.5px, 1.7vw, 21px); line-height: 1.65; }

/* ---------- residences ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 40px 0 34px; }
.tab {
  background: none; border: 1px solid var(--line); border-radius: var(--r); cursor: pointer;
  padding: 11px 22px; font-size: 13px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase;
  color: var(--ink-2); transition: .22s var(--ease); display: flex; align-items: baseline; gap: 9px;
}
.tab small { font-size: 11.5px; letter-spacing: .04em; color: var(--ink-3); text-transform: none; }
.tab:hover { border-color: var(--ink-3); color: var(--ink); }
.tab[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.tab[aria-selected="true"] small { color: rgba(255,255,255,.66); }
html[lang="th"] .tab, html[lang="he"] .tab { letter-spacing: .02em; text-transform: none; font-size: 15px; }

.unit { display: grid; grid-template-columns: 1.32fr 1fr; gap: clamp(28px, 4vw, 60px); align-items: start; }
.unit__media { position: relative; background: var(--bg-deep); border-radius: var(--r2); overflow: hidden; }
.unit__media > img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.unit__thumbs { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.unit__thumbs button { width: 84px; height: 54px; padding: 0; border: 1px solid transparent; border-radius: var(--r); overflow: hidden; cursor: pointer; background: none; opacity: .55; transition: .22s; }
.unit__thumbs button:hover { opacity: .85; }
.unit__thumbs button[aria-selected="true"] { opacity: 1; border-color: var(--ink); }
.unit__thumbs img { width: 100%; height: 100%; object-fit: cover; }

.unit__specs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r2); overflow: hidden; margin: 26px 0; }
.unit__specs div { background: var(--bg); padding: 16px 18px; }
.unit__specs div:last-child:nth-child(odd) { grid-column: 1 / -1; }
.unit__specs dt { font-size: 10.5px; letter-spacing: .15em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 6px; }
.unit__specs dd { margin: 0; font-family: var(--serif); font-size: 25px; line-height: 1; }
.unit__specs dd small { font-family: var(--sans); font-size: 12.5px; color: var(--ink-2); margin-inline-start: 4px; }
html[lang="th"] .unit__specs dt, html[lang="he"] .unit__specs dt { letter-spacing: .02em; text-transform: none; font-size: 13px; }
html[lang="th"] .unit__specs dd, html[lang="he"] .unit__specs dd { font-size: 22px; font-weight: 600; }

.rooms { display: flex; flex-wrap: wrap; gap: 7px; margin: 0 0 26px; padding: 0; list-style: none; }
.rooms li { font-size: 13px; color: var(--ink-2); border: 1px solid var(--line); border-radius: 100px; padding: 5px 14px; background: var(--surface); }

.appl { margin: 0 0 28px; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px 20px; }
.appl li { display: flex; align-items: flex-start; gap: 9px; font-size: 14.5px; color: var(--ink-2); }
.appl li svg { width: 15px; height: 15px; flex: none; margin-top: 4px; color: var(--sage); }

.unit__actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.unit__note { background: var(--bg-warm); border-inline-start: 2px solid var(--oak); padding: 18px 22px; font-size: 15px; color: var(--ink-2); margin: 0 0 26px; }
.unit__note--full { background: rgba(176,96,58,.07); border-inline-start-color: var(--terra); }

/* ป้าย "เต็มแล้ว" */
.badge-full {
  display: inline-block; vertical-align: middle; margin-inline-start: 12px;
  font-family: var(--sans); font-size: 10.5px; font-weight: 700;
  letter-spacing: .13em; text-transform: uppercase;
  color: var(--terra); border: 1px solid rgba(176,96,58,.45);
  border-radius: 100px; padding: 4px 11px; white-space: nowrap;
}
html[lang="th"] .badge-full, html[lang="he"] .badge-full { letter-spacing: .02em; text-transform: none; font-size: 12.5px; }
.tab__full {
  font-style: normal; font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--terra); border: 1px solid currentColor; border-radius: 100px; padding: 2px 8px; margin-inline-start: 2px;
}
.tab[aria-selected="true"] .tab__full { color: #f0b191; }
html[lang="th"] .tab__full, html[lang="he"] .tab__full { letter-spacing: .02em; text-transform: none; font-size: 12px; }
.tab:has(.tab__full) { border-style: dashed; }

/* ---------- wellness ---------- */
.wcards { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 46px; }
.wcard { background: var(--bg); padding: 0; display: flex; flex-direction: column; }
.wcard img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.wcard__b { padding: 26px 26px 30px; display: flex; flex-direction: column; flex: 1; }
.wcard h3 { margin-bottom: 10px; }
.wcard__k { font-size: 10.5px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
            color: var(--terra); margin: 0 0 8px; }
html[lang="th"] .wcard__k, html[lang="he"] .wcard__k { letter-spacing: .03em; text-transform: none; font-size: 13px; }
.wcard__social { display: flex; flex-wrap: wrap; gap: 10px 20px; margin-top: 16px; }
.wcard__ig {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 13px; font-weight: 600; color: var(--ink-2);
  border-bottom: 1px solid var(--line); padding-bottom: 4px;
  transition: color .22s, border-color .22s;
}
.wcard__ig:hover { color: var(--terra); border-color: var(--terra); }
.wcard__ig svg { width: 16px; height: 16px; flex: none; }
.wcard p { margin: 0 0 16px; font-size: 15px; color: var(--ink-2); }
.wcard ul { list-style: none; margin: auto 0 0; padding: 0; border-top: 1px solid var(--line-soft); padding-top: 16px; }
.wcard li { font-size: 13.5px; color: var(--ink-2); padding-block: 5px; display: flex; gap: 9px; align-items: flex-start; }
.wcard li::before { content: ''; width: 4px; height: 4px; border-radius: 50%; background: var(--oak); flex: none; margin-top: 9px; }

.event-note {
  margin-top: 40px; padding: 30px clamp(24px, 4vw, 48px); background: var(--dark); color: #ece5da;
  font-family: var(--serif); font-size: clamp(19px, 2.1vw, 27px); line-height: 1.45; border-radius: var(--r2);
}
html[lang="th"] .event-note, html[lang="he"] .event-note { font-size: clamp(17px, 1.8vw, 21px); line-height: 1.6; }

/* ---------- finishes ---------- */
.fin { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.fin ul { list-style: none; margin: 30px 0 0; padding: 0; }
.fin li { display: flex; gap: 16px; padding-block: 15px; border-bottom: 1px solid var(--line-soft); font-size: 15.5px; color: var(--ink-2); }
.fin li b { font-family: var(--serif); font-size: 15px; color: var(--oak); min-width: 26px; font-weight: 500; }
.fin__img { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fin__img img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--r2); }
.fin__img img:first-child { grid-row: span 2; aspect-ratio: 3/4.6; }
.fin__img img:not(:first-child) { aspect-ratio: 4/3; }

/* ---------- pricing ---------- */
.toggle { display: inline-flex; background: var(--bg-deep); border-radius: 100px; padding: 4px; margin-top: 34px; }
.toggle button {
  background: none; border: 0; cursor: pointer; border-radius: 100px; padding: 11px 30px;
  font-size: 13px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--ink-2); transition: .25s var(--ease);
}
.toggle button[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 2px 10px rgba(28,25,23,.10); }
html[lang="th"] .toggle button, html[lang="he"] .toggle button { letter-spacing: .02em; text-transform: none; font-size: 15px; }

/* แถบโปรโมชั่นใต้ปุ่มรายเดือน/รายปี — พาเลตเดิม ไม่มีสีใหม่ ไม่มีอีโมจิ */
.promo { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 20px 0 0; }
.promo__tag { background: var(--terra); color: #fff; font-size: 10px; font-weight: 700;
              letter-spacing: .13em; text-transform: uppercase; padding: 5px 11px; }
.promo__line  { font-size: 15px; font-weight: 600; color: var(--ink); }
.promo__until { font-size: 14px; color: var(--ink-3); }
html[lang="th"] .promo__tag, html[lang="he"] .promo__tag { letter-spacing: .02em; text-transform: none; font-size: 12px; }

.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(248px, 1fr)); gap: 16px; margin-top: 40px; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r2); padding: 30px 26px 28px; display: flex; flex-direction: column; position: relative; }
.plan--top { border-color: var(--ink); }
.plan__tag { position: absolute; inset-block-start: -1px; inset-inline-end: 22px; background: var(--terra); color: #fff;
             font-size: 10px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; padding: 5px 11px; }
html[lang="th"] .plan__tag, html[lang="he"] .plan__tag { letter-spacing: .02em; text-transform: none; font-size: 12px; }
.plan h3 { margin-bottom: 10px; }
.plan__d { font-size: 14.5px; color: var(--ink-2); margin: 0 0 20px; min-height: 2.6em; }
.plan__price { font-family: var(--serif); font-size: clamp(38px, 4.4vw, 52px); line-height: 1; letter-spacing: -.02em; }
.plan__price sup { font-size: .3em; vertical-align: super; color: var(--ink-3); margin-inline-start: 7px; font-family: var(--sans); letter-spacing: .08em; font-weight: 600; }
.plan__per { font-size: 13px; color: var(--ink-3); margin: 8px 0 0; }
.plan__eff { font-size: 13px; color: var(--sage); margin: 6px 0 0; font-weight: 600; }
.plan__meta { list-style: none; margin: 24px 0 26px; padding: 20px 0 0; border-top: 1px solid var(--line-soft); }
.plan__meta li { font-size: 14px; color: var(--ink-2); padding-block: 4px; display: flex; gap: 9px; }
.plan__meta li svg { width: 15px; height: 15px; flex: none; margin-top: 4px; color: var(--sage); }
.plan .btn { margin-top: auto; }

.incl { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(28px, 5vw, 72px); margin-top: 56px; padding-top: 46px; border-top: 1px solid var(--line); }
.incl ul { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 40px; }
.incl li { font-size: 15px; color: var(--ink-2); padding-block: 8px; display: flex; gap: 10px; break-inside: avoid; }
.incl li svg { width: 15px; height: 15px; flex: none; margin-top: 5px; color: var(--sage); }
.incl__note { margin: 22px 0 0; font-size: 14px; color: var(--ink-3); }

/* ช่องล่อบอท — ต้องไม่ใช้ display:none เพราะบอทบางตัวข้ามช่องที่ซ่อนแบบนั้น
   วิธีนี้คนมองไม่เห็นและกดไม่โดน แต่บอทที่ไล่กรอกทุก input จะติดกับ */
.trap { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* ---------- gallery ---------- */
.gfilter { display: flex; flex-wrap: wrap; gap: 8px; margin: 34px 0 26px; }
.gfilter button {
  background: none; border: 1px solid var(--line); border-radius: 100px; cursor: pointer; padding: 8px 18px;
  font-size: 13px; color: var(--ink-2); transition: .22s var(--ease);
}
.gfilter button:hover { border-color: var(--ink-3); color: var(--ink); }
.gfilter button[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.grid button { padding: 0; border: 0; background: var(--bg-deep); cursor: pointer; overflow: hidden; border-radius: var(--r); position: relative; }
.grid img { width: 100%; aspect-ratio: 3/2; object-fit: cover; transition: transform .6s var(--ease); }
.grid button:hover img { transform: scale(1.05); }
.grid button.is-wide { grid-column: span 2; }
@media (max-width: 620px) { .grid button.is-wide { grid-column: span 1; } }

/* lightbox */
.lb { position: fixed; inset: 0; z-index: 120; background: rgba(24,21,19,.96); display: flex; align-items: center; justify-content: center;
      opacity: 0; visibility: hidden; transition: opacity .28s var(--ease); }
.lb.is-open { opacity: 1; visibility: visible; }
.lb img { max-width: 92vw; max-height: 84vh; object-fit: contain; border-radius: var(--r); }
.lb__x, .lb__nav {
  position: absolute; background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.22); color: #fff;
  width: 46px; height: 46px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background .22s;
}
.lb__x:hover, .lb__nav:hover { background: rgba(255,255,255,.2); }
.lb__x { inset-block-start: 22px; inset-inline-end: 22px; }
.lb__nav--p { inset-inline-start: 18px; } .lb__nav--n { inset-inline-end: 18px; }
.lb__nav svg, .lb__x svg { width: 19px; height: 19px; }
.lb__c { position: absolute; inset-block-end: 22px; inset-inline-start: 50%; transform: translateX(-50%);
         color: rgba(255,255,255,.66); font-size: 12.5px; letter-spacing: .1em; }

/* ---------- masterplan ---------- */
.mp { display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(28px, 4vw, 60px); align-items: center; margin-top: 44px; }
.mp__img { background: #fff; border: 1px solid var(--line); border-radius: var(--r2); padding: clamp(12px, 2vw, 26px); }
.mp__k { list-style: none; margin: 0; padding: 0; }
.mp__k li { display: flex; gap: 14px; align-items: baseline; padding-block: 13px; border-bottom: 1px solid var(--line-soft); font-size: 15px; color: var(--ink-2); }
.mp__k b { font-family: var(--serif); color: var(--oak); font-weight: 500; font-size: 14px; min-width: 22px; }

/* ---------- booking ---------- */
.bk { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: start; margin-top: 48px; }
.note {
  display: flex; gap: 13px; background: rgba(176,96,58,.07); border: 1px solid rgba(176,96,58,.24);
  border-radius: var(--r2); padding: 16px 20px; font-size: 14.5px; color: var(--ink-2); margin: 0 0 30px;
}
.note svg { width: 17px; height: 17px; flex: none; margin-top: 4px; color: var(--terra); }

.form { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.f { display: flex; flex-direction: column; gap: 8px; }
.f--full { grid-column: 1 / -1; }
.f label { font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
html[lang="th"] .f label, html[lang="he"] .f label { letter-spacing: .02em; text-transform: none; font-size: 13.5px; }
.f label i { color: var(--terra); font-style: normal; }
.f input, .f select, .f textarea {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 13px 15px;
  font-size: 15.5px; transition: border-color .22s; width: 100%;
}
.f input:focus, .f select:focus, .f textarea:focus { border-color: var(--ink); outline: none; }
.f input.is-bad, .f select.is-bad { border-color: var(--terra); background: rgba(176,96,58,.05); }
.f textarea { resize: vertical; min-height: 104px; line-height: 1.6; }
.f select { appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238b8177' stroke-width='1.6'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 17px; padding-inline-end: 40px; }
[dir="rtl"] .f select { background-position: left 14px center; }

.seg { display: flex; gap: 0; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.seg button { flex: 1; background: var(--surface); border: 0; cursor: pointer; padding: 13px 10px; font-size: 14.5px; font-weight: 500; color: var(--ink-2); transition: .22s var(--ease); }
.seg button + button { border-inline-start: 1px solid var(--line); }
.seg button[aria-selected="true"] { background: var(--ink); color: var(--bg); font-weight: 600; }

.sum { position: sticky; inset-block-start: 96px; background: var(--bg-warm); border: 1px solid var(--line); border-radius: var(--r2); padding: 30px 28px; }
.sum h3 { font-size: 22px; margin-bottom: 22px; }
.sum dl { margin: 0; display: grid; grid-template-columns: 1fr auto; gap: 13px 16px; align-items: baseline; }
.sum dt { font-size: 14px; color: var(--ink-2); }
.sum dd { margin: 0; text-align: end; font-size: 15.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.sum__rule { grid-column: 1 / -1; height: 1px; background: var(--line); margin-block: 6px; }
.sum__due dt { font-weight: 600; color: var(--ink); font-size: 15px; }
.sum__due dd { font-family: var(--serif); font-size: 30px; font-weight: 400; }
html[lang="th"] .sum__due dd, html[lang="he"] .sum__due dd { font-size: 25px; font-weight: 700; }
.sum__note { font-size: 12.5px; color: var(--ink-3); margin: 22px 0 0; line-height: 1.6; }

.msg { grid-column: 1 / -1; padding: 15px 18px; border-radius: var(--r2); font-size: 15px; display: none; gap: 11px; align-items: flex-start; }
.msg.is-on { display: flex; }
.msg svg { width: 17px; height: 17px; flex: none; margin-top: 4px; }
.msg--ok  { background: rgba(116,131,106,.12); border: 1px solid rgba(116,131,106,.4); color: #4d5946; }
.msg--bad { background: rgba(176,96,58,.09); border: 1px solid rgba(176,96,58,.4); color: #8d4526; }

/* ---------- contact ---------- */
.ct { display: grid; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); gap: 1px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.14); margin-top: 44px; }
.ct > div { background: var(--dark); padding: 30px 28px; }
.ct dt { font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: #a2988b; margin-bottom: 12px; }
html[lang="th"] .ct dt, html[lang="he"] .ct dt { letter-spacing: .02em; text-transform: none; font-size: 13px; }
.ct dd { margin: 0; font-size: 17px; color: #f2ece2; word-break: break-word; }
.ct dd a { border-bottom: 1px solid rgba(242,236,226,.34); padding-bottom: 2px; }
.ct dd a:hover { border-color: var(--oak); color: var(--oak-soft); }
.ct small { display: block; font-size: 13px; color: #a2988b; margin-top: 5px; }

.sec--deep .note { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.16); color: #cfc6b9; }
.sec--deep .note svg { color: var(--oak); }

/* ---------- footer ---------- */
.ft { background: var(--dark); color: #8f867b; padding-block: 46px 54px; border-top: 1px solid rgba(255,255,255,.1); }
.ft__in { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: flex-start; }
.ft p { margin: 0; font-size: 12.5px; max-width: 74ch; line-height: 1.7; }
.ft__brand { font-family: var(--serif); font-size: 17px; letter-spacing: .16em; color: #e6dfd4; }
.ft__by { margin-top: 8px; font-size: 13px; letter-spacing: .04em; color: #b8ac9e; }
.ft a:hover { color: var(--oak-soft); }

/* ---------- reveal ---------- */
.rv { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.rv.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; transition: none; } }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .intro__grid, .unit, .fin, .mp, .bk, .incl { grid-template-columns: 1fr; }
  .fin__img img:first-child { grid-row: auto; aspect-ratio: 4/3; }
  .sum { position: static; }
  .incl ul { columns: 1; }
}
@media (max-width: 860px) {
  .nav { display: none; }
  .burger { display: flex; }
  .hdr__in { height: 68px; }
  .drawer { inset-block-start: 68px; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .form, .unit__specs, .appl { grid-template-columns: 1fr; }
  .hero__meta { gap: 20px 30px; }
  .hero__cta .btn { width: 100%; }
  .toggle { width: 100%; } .toggle button { flex: 1; padding-inline: 10px; }
  .lb__nav { width: 40px; height: 40px; }
  .lb__nav--p { inset-inline-start: 8px; } .lb__nav--n { inset-inline-end: 8px; }
}

/* ---------- RTL ---------- */
[dir="rtl"] .lb__nav--p svg, [dir="rtl"] .lb__nav--n svg { transform: scaleX(-1); }
[dir="rtl"] .lb__c { transform: translateX(50%); }
[dir="rtl"] .plan__price { direction: ltr; text-align: right; }
[dir="rtl"] .unit__specs dd[dir="ltr"] { text-align: right; }

/* ---------- print ---------- */
@media print {
  .hdr, .drawer, .lb, .gfilter, .tabs, .hero__cta, .btn { display: none !important; }
  body { background: #fff; }
}
