:root {
  --marble: #f7f8f6;
  --paper: #ffffff;
  --ink: #1f2b2d;
  --muted: #5b6b6c;
  --line: #dce2e0;
  --deep: #2f4a1c;
  --pool: #6e9a33;
  --brand: #86b640;
  --oak: #9c7148;
  --serif: "Trirong", "Noto Serif Thai", serif;
  --sans: "Anuphan", "Noto Sans Thai", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--marble); color: var(--ink); font: 400 17px/1.7 var(--sans); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }
.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }

/* header */
.top { border-bottom: 1px solid var(--line); background: var(--paper); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: block; flex: none; }
.brand img { height: 40px; width: auto; max-width: none; margin: -7px 0 -7px -39px; }
.foot-logo { height: 34px; width: auto; max-width: none; margin: -6px 0 0 -33px; }
.top-tel { font-size: 15px; text-decoration: none; color: var(--muted); }
.top-tel b { color: var(--ink); font-weight: 500; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 26px; border-radius: 8px; border: 0; font: 500 17px/1 var(--sans); text-decoration: none; cursor: pointer; }
.btn-main { background: var(--deep); color: #fff; }
.btn-main:hover { background: #243915; }
.btn-line { background: #06c755; color: #fff; }
.btn-quiet { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.btn-quiet:hover { background: var(--ink); color: #fff; }

/* property hero */
.p-hero { padding: 44px 0 56px; }
.p-hero .wrap { display: grid; grid-template-columns: 5fr 7fr; gap: 56px; align-items: center; }
.p-project { color: var(--muted); font-size: 16px; margin: 0 0 14px; }
.p-title { font: 500 clamp(34px, 4.6vw, 56px)/1.18 var(--serif); margin: 0 0 20px; letter-spacing: -.01em; }
.p-lede { margin: 0 0 30px; color: var(--muted); max-width: 34em; }
.p-price { font: 500 clamp(30px, 3.4vw, 40px)/1.1 var(--serif); margin: 0; }
.p-perk { margin: 6px 0 30px; color: var(--oak); font-weight: 500; }
.p-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.p-hero figure { margin: 0; position: relative; }
.p-hero figure img { width: 100%; aspect-ratio: 4 / 3.2; object-fit: cover; border-radius: 6px; }
.p-hero figcaption { position: absolute; left: 16px; bottom: 16px; background: rgba(255,255,255,.92); padding: 6px 12px; border-radius: 6px; font-size: 14px; }

/* facts */
.facts { border-block: 1px solid var(--line); background: var(--paper); }
.facts dl { display: grid; grid-template-columns: repeat(5, 1fr); margin: 0; }
.facts div { padding: 22px 20px; border-left: 1px solid var(--line); }
.facts div:first-child { border-left: 0; padding-left: 0; }
.facts dt { font: 500 28px/1.1 var(--serif); }
.facts dd { margin: 4px 0 0; color: var(--muted); font-size: 15px; }
.p-status { margin: 0; padding: 14px 0; color: var(--muted); font-size: 15px; }

/* sections */
.sec { padding: 80px 0; }
.sec h2 { font: 500 clamp(28px, 3vw, 38px)/1.25 var(--serif); margin: 0 0 12px; }
.sec .sub { color: var(--muted); margin: 0 0 36px; max-width: 40em; }

/* gallery */
.mosaic { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 240px 240px; gap: 10px; }
.mosaic button { padding: 0; border: 0; cursor: zoom-in; position: relative; overflow: hidden; border-radius: 6px; background: var(--line); }
.mosaic button:first-child { grid-row: span 2; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; }
.mosaic span { position: absolute; left: 12px; bottom: 12px; background: rgba(255,255,255,.92); padding: 4px 10px; border-radius: 6px; font-size: 14px; }
.gallery-all { margin-top: 18px; }

/* lightbox */
dialog.lb { width: min(1100px, 100vw); max-height: 100vh; padding: 0; border: 0; border-radius: 0; background: var(--marble); }
dialog.lb::backdrop { background: rgba(15, 30, 32, .75); }
.lb-head { position: sticky; top: 0; display: flex; justify-content: space-between; align-items: center; padding: 14px 24px; background: var(--paper); border-bottom: 1px solid var(--line); z-index: 1; }
.lb-head nav { display: flex; gap: 6px; flex-wrap: wrap; }
.lb-head nav a { text-decoration: none; padding: 4px 12px; border-radius: 99px; border: 1px solid var(--line); font-size: 15px; }
.lb-close { border: 0; background: none; font: 500 16px var(--sans); cursor: pointer; padding: 8px; }
.lb-body { padding: 8px 24px 40px; }
.lb-body h3 { font: 500 22px var(--serif); margin: 30px 0 12px; }
.lb-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.lb-grid figure { margin: 0; }
.lb-grid img { width: 100%; border-radius: 6px; }
.lb-grid figcaption { font-size: 14px; color: var(--muted); padding: 6px 2px 0; }

/* included */
.incl { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.incl ul { list-style: none; margin: 0; padding: 0; }
.incl li { padding: 16px 0 16px 34px; border-top: 1px solid var(--line); position: relative; }
.incl li:last-child { border-bottom: 1px solid var(--line); }
.incl li::before { content: ""; position: absolute; left: 4px; top: 25px; width: 14px; height: 8px; border-left: 2px solid var(--pool); border-bottom: 2px solid var(--pool); transform: rotate(-45deg); }
.incl img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; }

/* location */
.loc { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.dist { margin: 0; }
.dist div { display: flex; justify-content: space-between; gap: 20px; padding: 14px 0; border-top: 1px solid var(--line); }
.dist div:last-child { border-bottom: 1px solid var(--line); }
.dist dd { margin: 0; font-weight: 500; white-space: nowrap; }
.loc p { color: var(--muted); }

/* booking */
.book { background: var(--deep); color: #fff; }
.book .wrap { display: grid; grid-template-columns: 5fr 7fr; gap: 56px; align-items: start; }
.book h2 { color: #fff; }
.book .sub { color: #d6e3c8; }
.agent { display: flex; gap: 16px; align-items: center; margin-top: 28px; }
.agent img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.agent p { margin: 0; color: #d6e3c8; font-size: 15px; }
.agent b { color: #fff; font-weight: 500; display: block; font-size: 17px; }
.agent a { color: #fff; }
.form { background: var(--paper); color: var(--ink); border-radius: 10px; padding: 32px; }
.form fieldset { border: 0; padding: 0; margin: 0 0 22px; }
.form legend, .form label.l { display: block; font-weight: 500; margin-bottom: 8px; padding: 0; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form input[type=text], .form input[type=tel], .form input[type=email], .form input[type=date] { width: 100%; font: 400 17px var(--sans); padding: 13px 14px; border: 1px solid #c9d1cf; border-radius: 8px; background: #fff; color: var(--ink); }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg label { cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: inline-block; padding: 10px 16px; border: 1px solid #c9d1cf; border-radius: 8px; font-size: 16px; }
.seg input:checked + span { border-color: var(--deep); background: #eef6e3; color: var(--deep); font-weight: 500; }
.seg input:focus-visible + span { outline: 3px solid var(--brand); outline-offset: 2px; }
.opt { color: var(--muted); font-weight: 400; font-size: 14px; }
.form .err { color: #b3261e; min-height: 1.4em; margin: 0 0 10px; font-size: 15px; }
.form .btn { width: 100%; }
.form .fine { font-size: 14px; color: var(--muted); margin: 12px 0 0; }
.done { display: none; }
.done h3 { font: 500 26px/1.3 var(--serif); margin: 0 0 10px; }
.done .btns { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }

/* hub */
.hub-head { padding: 72px 0 40px; }
.hub-head h1 { font: 500 clamp(36px, 5vw, 62px)/1.15 var(--serif); margin: 0 0 16px; max-width: 14em; letter-spacing: -.01em; }
.hub-head p { color: var(--muted); max-width: 36em; margin: 0; }
.listing { display: grid; grid-template-columns: 7fr 5fr; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; text-decoration: none; margin-bottom: 24px; }
.listing img { width: 100%; height: 100%; min-height: 360px; object-fit: cover; }
.listing .body { padding: 36px; display: flex; flex-direction: column; }
.listing .where { color: var(--muted); font-size: 15px; margin: 0 0 8px; }
.listing h2 { font: 500 30px/1.25 var(--serif); margin: 0 0 14px; }
.listing .spec { color: var(--muted); margin: 0 0 auto; padding-bottom: 24px; }
.listing .price { font: 500 30px/1.1 var(--serif); margin: 0 0 4px; }
.listing .perk { color: var(--oak); font-weight: 500; margin: 0 0 22px; }
.listing .go { align-self: flex-start; }
.listing:hover .go { background: #243915; }
.hub-more { padding: 8px 0 80px; color: var(--muted); }

/* footer */
.foot { padding: 48px 0 110px; border-top: 1px solid var(--line); color: var(--muted); font-size: 15px; }
.foot .wrap { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.foot b { color: var(--ink); font-weight: 500; }

/* mobile bar */
.mbar { display: none; }

@media (max-width: 880px) {
  body { font-size: 16px; }
  .p-hero { padding: 0 0 36px; }
  .p-hero .wrap { grid-template-columns: 1fr; gap: 26px; width: 100%; }
  .p-hero figure { order: -1; }
  .p-hero figure img { border-radius: 0; aspect-ratio: 4 / 3; }
  .p-hero .p-copy { padding-inline: 20px; }
  .facts dl { grid-template-columns: repeat(3, 1fr); }
  .facts div { padding: 16px 12px; }
  .facts div:nth-child(4) { border-left: 0; padding-left: 0; }
  .facts div:nth-child(n+4) { border-top: 1px solid var(--line); }
  .facts dt { font-size: 23px; }
  .sec { padding: 56px 0; }
  .mosaic { grid-template-columns: 1fr 1fr; grid-template-rows: 220px 130px 130px; }
  .mosaic button:first-child { grid-column: span 2; grid-row: auto; }
  .mosaic button:nth-child(n+6) { display: none; }
  .incl, .loc, .book .wrap { grid-template-columns: 1fr; gap: 32px; }
  .lb-grid { grid-template-columns: 1fr; }
  .form { padding: 22px; }
  .form .row { grid-template-columns: 1fr; gap: 12px; }
  .listing { grid-template-columns: 1fr; }
  .listing img { min-height: 0; aspect-ratio: 4 / 3; }
  .listing .body { padding: 24px; }
  .mbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 5; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--paper); border-top: 1px solid var(--line); }
  .mbar b { font: 500 20px var(--serif); }
  .mbar small { display: block; color: var(--oak); font-size: 13px; }
  .mbar .btn { min-height: 46px; padding: 0 20px; }
}
