/* IDIN ที่ดินนครนายก — โทนธรรมชาติ */
:root {
  --forest: #1E3A2B;
  --forest-2: #2B5039;
  --leaf: #3B6B4B;
  --accent: #2F6B45;
  --accent-hover: #24563A;
  --peach: #FFB68C;
  --cream: #F5F3EC;
  --sand: #F1EEE5;
  --sage: #E8EEE3;
  --card: #FFFFFF;
  --line: #E2DDD0;
  --line-green: #00953F;
  --line-green-dark: #007A33;
  --ink: #2B2F2A;
  --ink-2: #3F463C;
  --muted: #5A6157;
  --on-dark: #E4EBE1;
  --radius: 16px;
  --head: 'Anuphan', 'IBM Plex Sans Thai', system-ui, sans-serif;
  --body: 'IBM Plex Sans Thai', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.65; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
a:hover { color: var(--forest); }
h1, h2, h3 { font-family: var(--head); color: var(--forest); line-height: 1.3; margin: 0; }
h1 { font-size: clamp(28px, 4.2vw, 44px); }
h2 { font-size: clamp(24px, 3vw, 32px); }
h3 { font-size: 19px; }
p { margin: 0; }
ul.cards, ul.grid-4, ul.tags, ul.thumbs, ol.steps, ul.landmarks { list-style: none; margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--peach); outline-offset: 2px; border-radius: 6px; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section { padding: 48px 20px; display: flex; flex-direction: column; gap: 24px; }
.wrap.section { padding-left: 20px; padding-right: 20px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.center { text-align: center; }
.ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

.skip { position: absolute; left: -9999px; top: 0; background: #fff; padding: 10px 16px; z-index: 100; }
.skip:focus { left: 12px; top: 12px; }
.demo-bar { background: var(--peach); color: #3A1F0B; text-align: center; font-size: 14px; font-weight: 600; padding: 6px 12px; }

/* ปุ่ม */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px; border-radius: 999px; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; border: 2px solid transparent; transition: background .15s, color .15s; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); color: #fff; }
.btn-outline { border-color: var(--accent); color: var(--forest); background: transparent; }
.btn-outline:hover { background: var(--sage); color: var(--forest); }
.btn-light { background: #fff; color: var(--forest); }
.btn-light:hover { background: var(--sage); color: var(--forest); }
.btn-ghost-light { border-color: #fff; color: #fff; }
.btn-ghost-light:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn-block { width: 100%; border-radius: 12px; }
.btn-line { background: var(--line-green); color: #fff; border-color: var(--line-green); }
.btn-line:hover { background: var(--line-green-dark); border-color: var(--line-green-dark); color: #fff; }
.btn-line .ic { width: 26px; height: 26px; stroke-width: 2.1; }
.btn-icon { width: 52px; min-height: 52px; padding: 0; }
/* กล่องโทรบนคอมพิวเตอร์ */
.call-dialog { border: 0; border-radius: 18px; padding: 28px; max-width: 360px; width: calc(100% - 32px); text-align: center; color: var(--ink); box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.call-dialog::backdrop { background: rgba(20,40,30,.55); }
.call-dialog h2 { font-size: 20px; }
.call-num { display: block; font-family: var(--head); font-size: 34px; font-weight: 700; color: var(--forest); margin: 10px 0 4px; letter-spacing: .5px; user-select: all; }
.call-dialog .btn-row { justify-content: center; margin-top: 16px; }
.call-dialog .muted { font-size: 14px; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* ส่วนหัว */
.site-header { background: var(--forest); position: sticky; top: 0; z-index: 20; }
.head-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { width: 52px; height: 52px; flex: none; }
.brand-text { display: flex; flex-direction: column; gap: 3px; }
.brand-name { font-family: var(--head); font-weight: 700; font-size: 28px; line-height: 1; letter-spacing: 2px; color: var(--cream); }
.brand-sub { font-family: var(--body); font-weight: 600; font-size: 13.5px; line-height: 1.2; color: var(--peach); white-space: nowrap; }
.main-nav { display: flex; gap: 28px; }
.main-nav a { color: var(--on-dark); text-decoration: none; font-weight: 600; padding: 10px 0; }
.main-nav a:hover { color: var(--peach); }
.mobile-nav { display: none; }
.mobile-nav summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.35); color: #fff; font-weight: 600; cursor: pointer; }
.mobile-nav summary::-webkit-details-marker { display: none; }
.mobile-nav[open] summary { background: rgba(255,255,255,.12); }
.mobile-nav nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--forest); border-top: 1px solid rgba(255,255,255,.15); box-shadow: 0 12px 24px rgba(0,0,0,.25); display: flex; flex-direction: column; padding: 6px 20px 14px; }
.mobile-nav nav a { color: #fff; text-decoration: none; font-weight: 600; font-size: 17px; padding: 14px 4px; border-bottom: 1px solid rgba(255,255,255,.12); }
.mobile-nav nav a:last-child { border-bottom: 0; }
.mobile-nav nav a:hover { color: var(--peach); }
.head-call { min-height: 44px; background: var(--peach); color: var(--forest); }
.head-call:hover { background: #FFC9A8; color: var(--forest); }

/* hero */
.hero { background: var(--forest); color: #fff; }
.hero-inner { padding-top: 56px; padding-bottom: 8px; display: flex; flex-direction: column; gap: 18px; }
.hero h1 { color: #fff; max-width: 780px; font-size: clamp(32px, 5vw, 54px); line-height: 1.2; }
.eyebrow { color: #C9D6C6; font-weight: 600; font-size: 15px; }
.lead { color: var(--on-dark); font-size: 18px; max-width: 640px; }
.hills { display: block; width: 100%; height: 130px; margin-top: -8px; }

/* ฟอร์มค้นหา */
.search { background: #fff; color: var(--ink); border-radius: var(--radius); padding: 20px; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; align-items: end; max-width: 1120px; margin-top: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.18); }
.search-inline { box-shadow: none; border: 1px solid var(--line); max-width: none; margin: 4px 0 0; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.field select { min-height: 48px; border: 1px solid #C2BCAB; border-radius: 10px; padding: 0 12px; font: inherit; background: #FAF9F5; color: var(--ink); }
.search .btn { border-radius: 10px; }

/* ลักษณะที่ดินใน hero */
.hero-types { margin-top: 12px; max-width: 1120px; }
.hero-types ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.type-tile { display: flex; align-items: center; gap: 14px; height: 100%; padding: 16px 18px; background: #fff; border-radius: var(--radius); text-decoration: none; color: var(--ink); box-shadow: 0 10px 30px rgba(0,0,0,.18); transition: transform .15s, box-shadow .15s; }
.type-tile:hover { color: var(--ink); transform: translateY(-2px); box-shadow: 0 14px 34px rgba(0,0,0,.25); }
.type-tile .d-ic { flex: none; }
.t-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.type-tile .d-name { font-size: 17px; line-height: 1.35; }
.type-tile .muted { font-size: 14px; }
@media (max-width: 900px) { .hero-types ul { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .type-tile { padding: 14px; gap: 8px; flex-direction: column; align-items: flex-start; } .type-tile .d-ic { width: 36px; height: 36px; } .type-tile .d-name { font-size: 15px; } .type-tile .muted { font-size: 13px; } }

.sec-head { display: flex; flex-direction: column; gap: 4px; }
.sec-head.row { flex-direction: row; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 12px; }
.link-more { font-weight: 600; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }

/* อำเภอ */
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.district { display: flex; flex-direction: column; gap: 8px; padding: 22px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); height: 100%; transition: border-color .15s, transform .15s; }
.district:hover { border-color: var(--accent); color: var(--ink); transform: translateY(-2px); }
.d-ic { width: 44px; height: 44px; border-radius: 12px; background: var(--sage); color: var(--forest); display: flex; align-items: center; justify-content: center; }
.d-ic .ic { width: 24px; height: 24px; }
.d-name { font-family: var(--head); font-weight: 600; font-size: 20px; color: var(--forest); }

/* การ์ดแปลง */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.card { display: flex; flex-direction: column; height: 100%; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.card:hover { border-color: var(--accent); box-shadow: 0 8px 24px rgba(30,58,43,.10); }
.card-link { display: flex; flex-direction: column; flex: 1; text-decoration: none; color: var(--ink); }
.card-link:hover { color: var(--ink); }
.card-media { position: relative; aspect-ratio: 16 / 10; background: #DCE4D5; }
.card-img { width: 100%; height: 100%; object-fit: cover; }
.chip { display: inline-block; padding: 3px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.card-media .chip { position: absolute; top: 12px; left: 12px; }
.chip-ok { background: #E3EFE4; color: #1E5A33; }
.chip-hold { background: #F6E7C8; color: #6E4309; }
.chip-sold { background: #EADCD6; color: #6B2E1E; }
.chip-plain { background: var(--sand); color: var(--ink-2); }
.card-body { padding: 16px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.meta { font-size: 14px; color: var(--muted); }
.card-title { font-size: 19px; font-weight: 600; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; font-size: 14px; color: var(--ink-2); }
.tags li { background: var(--sand); padding: 2px 10px; border-radius: 8px; }
.card-foot { padding: 4px 20px 18px; display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.card-foot .more { text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.share-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--forest); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.share-btn:hover { border-color: var(--accent); background: var(--sage); }
.share-btn .ic { width: 18px; height: 18px; }
.price-box .share-btn { min-height: 48px; font-size: 16px; border-radius: 12px; border: 2px solid var(--accent); }
.share-list { display: grid; gap: 10px; margin-top: 14px; }
.share-list .btn { width: 100%; border-radius: 12px; }
.btn-fb { background: #1A56C4; color: #fff; }
.btn-fb:hover { background: #15449B; color: #fff; }
.btn-x { background: #111; color: #fff; }
.btn-x:hover { background: #333; color: #fff; }
.price { font-family: var(--head); font-weight: 700; font-size: 22px; color: var(--forest); }
.more { font-size: 14px; font-weight: 600; color: var(--accent); }

/* ความน่าเชื่อถือ */
.trust { background: var(--sage); border-radius: 24px; padding: 36px 28px; display: flex; flex-direction: column; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 24px; }
.grid-trust { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 24px; }
.trust-item { display: flex; flex-direction: column; gap: 8px; color: var(--ink-2); }
.trust-item .ic { width: 32px; height: 32px; color: var(--forest); stroke-width: 1.6; }

/* ขั้นตอน */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.steps li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 4px; }
.step-n { font-family: var(--head); font-size: 28px; font-weight: 700; color: var(--accent); }
.steps strong { color: var(--forest); }

/* ติดต่อ & ท้ายเว็บ */
.band-dark { background: var(--forest); color: #fff; }
.band-dark h2 { color: #fff; }
.on-dark-muted { color: #C9D6C6; margin-top: 6px; }
.contact-row { padding-top: 52px; padding-bottom: 52px; display: flex; gap: 24px; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.site-footer { background: #172E21; color: #C9D6C6; font-size: 14px; }
.foot-row { padding-top: 28px; padding-bottom: 28px; display: flex; gap: 16px; flex-wrap: wrap; justify-content: space-between; }
.site-footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
.site-footer a { color: var(--on-dark); }
.site-footer a:hover { color: var(--peach); }
.mobile-bar { display: none; }
.foot-info { display: flex; flex-direction: column; gap: 2px; }
.addr { display: flex; align-items: flex-start; gap: 6px; }
.addr .ic { margin-top: 3px; }

/* หน้าภายใน */
.page-top { padding-top: 20px; padding-bottom: 48px; display: flex; flex-direction: column; gap: 20px; }
.crumbs { font-size: 14px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 8px; }
.crumbs a { color: var(--muted); }
.result-count { font-weight: 600; color: var(--ink-2); }
.empty { background: var(--sand); padding: 20px; border-radius: 12px; }
.lead-dark { font-size: 18px; color: var(--ink-2); max-width: 760px; }

.plot-head { display: flex; flex-direction: column; gap: 10px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.loc { display: flex; align-items: center; gap: 6px; color: var(--muted); }
.gallery { display: grid; grid-template-columns: 2fr 1fr; gap: 12px; }
.gallery > img, .hero-img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 18px; background: #DCE4D5; }
.gallery > img:only-child { grid-column: 1 / -1; max-height: 520px; }
.thumbs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-content: start; }
.thumbs li:only-child { grid-column: 1 / -1; }
.thumb { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 12px; }

.plot-layout { display: flex; gap: 24px; flex-wrap: wrap; align-items: flex-start; }
.plot-main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.panel h2 { font-size: 24px; }
.facts { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); column-gap: 28px; }
.facts div { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid #EEEAE0; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; text-align: right; }
.map { min-height: 280px; border-radius: 14px; background: var(--sage); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 16px; text-align: center; }
.map iframe { width: 100%; height: 360px; border: 0; border-radius: 14px; }
.map.loaded { padding: 0; background: none; }
.landmarks { display: flex; flex-direction: column; gap: 6px; color: var(--ink-2); }
.note { padding: 14px 18px; border-radius: 14px; background: var(--sand); color: var(--ink-2); font-size: 15px; }
.price-box { flex: 1 1 300px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 24px; display: flex; flex-direction: column; gap: 12px; position: sticky; top: 96px; }
.price-big { font-family: var(--head); font-weight: 700; font-size: 34px; color: var(--forest); line-height: 1.2; }

/* รายละเอียดแปลง: จุดเด่น ภาพทั้งหมด แผนผัง */
.checks, .perks, .photos { list-style: none; margin: 0; padding: 0; }
.checks { display: flex; flex-direction: column; gap: 8px; }
.checks li, .perks li { position: relative; padding-left: 28px; }
.checks li::before, .perks li::before { content: ""; position: absolute; left: 4px; top: .55em; width: 12px; height: 7px; border-left: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent); transform: rotate(-45deg); }
.price-note { color: var(--ink-2); font-size: 15px; }
.perks { display: flex; flex-direction: column; gap: 6px; background: var(--sage); border-radius: 12px; padding: 12px 14px; font-weight: 600; color: var(--forest); font-size: 15px; }
.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.photo { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 10px; background: #DCE4D5; }
.diagram { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.diagram img { width: 100%; height: auto; border-radius: 12px; }
.diagram figcaption { color: var(--muted); font-size: 14px; }
.panel h3 { font-size: 18px; margin-top: 4px; }
.panel > .btn { align-self: flex-start; }
.landmarks li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid #EEEAE0; }
.landmarks .dist { font-weight: 600; white-space: nowrap; text-align: right; }

.prose { max-width: 760px; }
.prose h2 { font-size: 22px; margin-top: 8px; }

@media (max-width: 860px) {
  .main-nav { display: none; }
  .mobile-nav { display: block; }
  .head-row { gap: 10px; }
  .head-call { margin-left: auto; }
  .gallery { grid-template-columns: 1fr; }
  .price-box { position: static; }
}
@media (max-width: 720px) {
  .head-call { display: none; }
  .head-row { min-height: 64px; }
  .brand-mark { width: 44px; height: 44px; }
  .brand-name { font-size: 24px; }
  .brand-sub { font-size: 12.5px; }
  .mobile-bar { display: flex; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); }
  .mobile-bar .btn { flex: 1; border-radius: 12px; padding: 0 10px; }
  .mobile-bar .btn-icon { flex: 0 0 64px; }
  body { padding-bottom: 72px; }
  .hero-inner { padding-top: 36px; }
  .hills { height: 80px; }
  .section { padding-top: 36px; padding-bottom: 36px; }
  .trust { padding: 28px 20px; }
  .cards { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .district { padding: 16px; gap: 6px; }
  .d-ic { width: 36px; height: 36px; }
  .d-name { font-size: 17px; }
  .district .muted { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
section[id], aside[id] { scroll-margin-top: 92px; }
