/* MY Lucky Plus+ — ระบบดีไซน์
   โทนทอง-ดำตามโลโก้ เนื้อหาพื้นสว่างอ่านง่าย ตัวหนังสือใหญ่สำหรับลูกค้าผู้ใหญ่ */

:root {
  /* ทอง — ทองเข้มใช้กับตัวหนังสือบนพื้นสว่าง ทองสว่างใช้บนพื้นมืดและปุ่ม */
  --gold-600: #a8801a;
  --gold-500: #c9a227;
  --gold-400: #edc021;
  --gold-300: #f2d98b;
  --gold-soft: #fbf3de;
  --gold-line: #e5d2a0;
  --gold-sheen: linear-gradient(100deg, #b8901f 0%, #edc94f 38%, #a8801a 72%, #e0b93f 100%);

  /* ดำ-เทา */
  --ink-900: #08080a;
  --ink-800: #131317;
  --ink-700: #202026;
  --ink-600: #3a3a42;

  /* พื้นและตัวอักษร */
  --bg: #faf7f1;
  --surface: #ffffff;
  --surface-2: #f2eee5;
  --text: #16161a;
  --text-2: #4f4d47;
  --text-3: #807d74;
  --line: #e4ded1;
  --on-dark: #f4f1e9;
  --on-dark-2: #b6b2a8;

  --danger: #b4231d;
  --ok: #1d6b3f;
  --warn: #a1651a;
  --warn-bg: #fdf1dd;

  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --serif: 'Noto Serif Thai', 'IBM Plex Sans Thai', Georgia, serif;

  --shadow-1: 0 1px 2px rgba(28, 22, 8, .04), 0 4px 16px rgba(28, 22, 8, .05);
  --shadow-2: 0 2px 6px rgba(28, 22, 8, .06), 0 18px 44px rgba(28, 22, 8, .12);
  --shadow-gold: 0 18px 44px rgba(140, 106, 20, .16);

  --wrap: 1180px;
  --gut: 20px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

*, *::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(--text);
  font-family: 'IBM Plex Sans Thai', 'Noto Sans Thai', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.68;
  font-weight: 400;
  overflow-x: hidden;
}
@media (min-width: 768px) { body { font-size: 18px; } }

img, svg, video { max-width: 100%; }
img { height: auto; display: block; }

h1, h2, h3, h4 { line-height: 1.42; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.015em; }
h1, h2 { font-family: var(--serif); font-weight: 600; letter-spacing: -.02em; }
h1 { font-size: clamp(31px, 6.4vw, 60px); }
h2 { font-size: clamp(26px, 4.6vw, 44px); }
h3 { font-size: clamp(19px, 2.4vw, 24px); }
p { margin: 0 0 1em; }
a { color: inherit; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }
.section { padding-block: clamp(56px, 8.5vw, 112px); }
.section--tight { padding-block: clamp(36px, 5vw, 60px); }
.section--dark { position: relative; background: var(--ink-900); color: var(--on-dark); overflow: hidden; }
.section--dark::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(70% 120% at 15% 0%, rgba(201, 162, 39, .16) 0%, transparent 62%);
}
.section--dark > * { position: relative; }
.section--soft { background: var(--surface-2); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 14px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold-600); margin-bottom: 14px;
}
.eyebrow::before { content: ''; width: 34px; height: 1px; background: var(--gold-500); }
.section--dark .eyebrow::before { background: var(--gold-300); }
.section--dark .eyebrow { color: var(--gold-300); }

.lede { font-size: clamp(17px, 2.1vw, 20px); line-height: 1.72; color: var(--text-2); max-width: 62ch; }
.section--dark .lede { color: var(--on-dark-2); }

.head { max-width: 62ch; margin-bottom: clamp(28px, 4vw, 44px); }
.head--center { margin-inline: auto; text-align: center; }

/* ── ปุ่ม ───────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 13px 30px;
  border: 1.5px solid transparent; border-radius: 999px;
  font: inherit; font-weight: 600; font-size: 17px; letter-spacing: .01em; text-decoration: none;
  cursor: pointer; transition: transform .2s var(--ease), background-color .2s, border-color .2s, color .2s;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 20px; height: 20px; flex: none; }

.btn--gold {
  background: linear-gradient(180deg, #f4cf49 0%, var(--gold-400) 55%, #d9ad16 100%);
  color: #1a1305; border-color: transparent;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .5) inset, 0 6px 18px rgba(180, 140, 20, .28);
}
.btn--gold:hover {
  background: linear-gradient(180deg, #f8dc72 0%, #f0c92f 55%, #e0b520 100%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .6) inset, 0 10px 26px rgba(180, 140, 20, .36);
}

.btn--dark { background: var(--ink-900); color: var(--on-dark); border-color: var(--ink-900); }
.btn--dark:hover { background: var(--ink-700); border-color: var(--ink-700); }

.btn--ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink-900); }
:is(.section--dark, .hero) .btn--ghost { color: var(--on-dark); border-color: rgba(244, 241, 233, .38); }
:is(.section--dark, .hero) .btn--ghost:hover { border-color: var(--gold-400); color: var(--gold-300); }

.btn--line { background: #06c755; color: #fff; border-color: #06c755; }
.btn--line:hover { background: #05b34c; border-color: #05b34c; }

.btn--sm { min-height: 44px; padding: 9px 20px; font-size: 15px; }   /* 44px คือขนาดต่ำสุดที่นิ้วกดติดแน่ */
.btn--block { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ── หัวเว็บ ─────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(8, 8, 10, .94); color: var(--on-dark);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid rgba(242, 217, 139, .16);
}
.site-header__bar { display: flex; align-items: center; gap: 16px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; margin-right: auto; }
.brand img { width: 46px; height: 46px; border-radius: 10px; object-fit: cover; }
.brand__name { display: block; font-weight: 700; font-size: 18px; line-height: 1.4; letter-spacing: .01em; }
.brand__sub { display: block; font-size: 14px; color: var(--on-dark-2); line-height: 1.4; }

.nav { display: none; gap: 4px; align-items: center; }
.nav a {
  text-decoration: none; padding: 9px 14px; border-radius: 999px;
  font-size: 16px; font-weight: 500; color: var(--on-dark);
  transition: background-color .2s, color .2s;
}
.nav a:hover { background: rgba(244, 241, 233, .1); }
.nav a[aria-current='page'] { color: var(--gold-300); font-weight: 600; }
.brand img { box-shadow: 0 0 0 1px rgba(242, 217, 139, .28); }

.header-cta { display: none; }
.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 12px;
  background: rgba(244, 241, 233, .1); border: 0; color: var(--on-dark); cursor: pointer;
}
.nav-toggle svg { width: 24px; height: 24px; }

@media (min-width: 1024px) {
  .nav { display: flex; }
  .header-cta { display: inline-flex; }
  .nav-toggle { display: none; }
}

.mobile-nav { display: none; padding: 8px 0 20px; border-top: 1px solid rgba(244, 241, 233, .1); }
.mobile-nav.is-open { display: block; }
.mobile-nav a {
  display: block; padding: 13px 4px; text-decoration: none; font-size: 18px; font-weight: 500;
  border-bottom: 1px solid rgba(244, 241, 233, .08);
}
.mobile-nav a[aria-current='page'] { color: var(--gold-300); }
.mobile-nav .btn-row { margin-top: 16px; }
@media (min-width: 1024px) { .mobile-nav { display: none !important; } }

/* ── แบนเนอร์ ───────────────────────────────────────────────────── */
.hero { position: relative; background: var(--ink-900); color: var(--on-dark); overflow: hidden; }
.hero__media { position: absolute; inset: 0; }
.hero__slide {
  position: absolute; inset: 0; opacity: 0;
  transition: opacity 1s var(--ease);
}
.hero__slide.is-active { opacity: 1; }
.hero__slide img { width: 100%; height: 100%; object-fit: cover; }
.hero__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(6, 6, 8, .72) 0%, rgba(6, 6, 8, .3) 36%, rgba(6, 6, 8, .88) 100%),
    linear-gradient(100deg, rgba(6, 6, 8, .74) 0%, rgba(6, 6, 8, .04) 70%),
    radial-gradient(60% 90% at 12% 40%, rgba(201, 162, 39, .18) 0%, transparent 60%);
}
/* เส้นทองบางๆ คั่นก่อนหัวข้อ */
.hero__inner::before {
  content: ''; width: 62px; height: 2px; margin-bottom: 20px;
  background: var(--gold-sheen); border-radius: 2px;
}
.hero .eyebrow::before { display: none; }
.hero__inner {
  position: relative;
  min-height: 62vh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding-block: clamp(40px, 9vw, 104px);
}
@media (min-width: 768px) { .hero__inner { min-height: 74vh; justify-content: center; } }

.hero h1 {
  font-size: clamp(27px, 5.4vw, 54px); color: #fff; max-width: 19ch; margin-bottom: .34em;
  letter-spacing: -.025em; text-shadow: 0 2px 30px rgba(0, 0, 0, .55);
}
.hero__slogan {
  font-family: var(--serif);
  font-size: clamp(16px, 2.4vw, 22px); color: var(--gold-300); font-weight: 500;
  max-width: 42ch; margin-bottom: 1.1em; letter-spacing: .005em;
}
.hero__note { margin: 16px 0 0; font-size: 15px; color: #cfcabd; }
.hero__desc { display: none; color: #e8e4da; max-width: 48ch; margin-bottom: 1.6em; }
@media (min-width: 768px) { .hero__desc { display: block; } }
.hero .btn-row { margin-bottom: 4px; }

.hero__dots { display: flex; gap: 8px; margin-top: 26px; }
.hero__dots button {
  width: 34px; height: 4px; border: 0; padding: 0; border-radius: 999px; cursor: pointer;
  background: rgba(255, 255, 255, .32); transition: background-color .3s;
}
.hero__dots button[aria-current='true'] { background: var(--gold-400); }

.hero__stats {
  position: relative; display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 2px; background: rgba(244, 241, 233, .13);
  border-top: 1px solid rgba(244, 241, 233, .13);
}
.hero__stats div { background: var(--ink-900); padding: 22px 12px; text-align: center; }
.hero__stats b {
  display: block; font-family: var(--serif); font-weight: 600;
  font-size: clamp(21px, 3.8vw, 34px); color: var(--gold-300); line-height: 1.4;
}
.hero__stats span { font-size: 14px; line-height: 1.45; color: var(--on-dark-2); }

/* ── การ์ดรถ ────────────────────────────────────────────────────── */
.car-grid { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 768px) { .car-grid { gap: 20px; grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .car-grid { gap: 24px; } }

.car-card {
  display: flex; flex-direction: column; position: relative;
  background: var(--surface); border-radius: var(--r); overflow: hidden;
  text-decoration: none; color: inherit; box-shadow: var(--shadow-1);
  outline: 1px solid rgba(228, 222, 209, .9); outline-offset: -1px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), outline-color .25s;
}
.car-card:hover {
  transform: translateY(-4px); box-shadow: var(--shadow-2);
  outline-color: var(--gold-line);
}
.car-card__media { position: relative; background: var(--surface-2); overflow: hidden; }
.car-card__media img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  transition: transform .7s var(--ease);
}
.car-card:hover .car-card__media img { transform: scale(1.045); }
@media (prefers-reduced-motion: reduce) { .car-card:hover .car-card__media img { transform: none; } }

.car-card__flag {
  position: absolute; top: 12px; left: 12px;
  padding: 5px 13px; border-radius: 999px;
  font-size: 14px; font-weight: 600; letter-spacing: .02em; line-height: 1.45;
  background: rgba(8, 8, 10, .8); color: var(--gold-300);
  border: 1px solid rgba(242, 217, 139, .3); backdrop-filter: blur(6px);
}
.car-card__flag--sold { background: rgba(180, 35, 29, .93); color: #fff; }
.car-card__flag--reserved { background: rgba(161, 101, 26, .93); color: #fff; }

.car-card__body { padding: 14px 14px 16px; display: flex; flex-direction: column; flex: 1; }
@media (min-width: 768px) { .car-card__body { padding: 18px 18px 20px; } }
.car-card__title {
  font-size: 16.5px; font-weight: 600; line-height: 1.42; margin: 0 0 6px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
@media (min-width: 768px) { .car-card__title { font-size: 18px; } }
.car-card__meta {
  font-size: 14px; color: var(--text-3); margin-bottom: 12px;
  display: flex; flex-wrap: wrap; gap: 4px 10px;
}
.car-card__price {
  margin-top: auto; font-family: var(--serif); font-weight: 600;
  font-size: clamp(20px, 2.7vw, 25px); color: var(--text); letter-spacing: -.02em;
}
.car-card__price small { font-size: 14px; font-weight: 500; color: var(--text-3); margin-left: 3px; }
.car-card--sold .car-card__media img { filter: grayscale(.85) brightness(.92); }

.badge-row { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.badge {
  font-size: 14px; font-weight: 500; line-height: 1.5; padding: 4px 12px; border-radius: 999px;
  background: var(--gold-soft); color: var(--gold-600); border: 1px solid var(--gold-line);
}

/* ── ตัวกรอง ────────────────────────────────────────────────────── */
.filters { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; }
@media (min-width: 768px) { .filters { padding: 22px; } }
.filters__grid { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .filters__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .filters__grid { grid-template-columns: repeat(4, 1fr); } }

.field { display: flex; flex-direction: column; gap: 6px; }
.field > label { font-size: 14.5px; font-weight: 600; color: var(--text-2); }
.field__hint { font-size: 14px; line-height: 1.5; color: var(--text-3); }
.field__error { font-size: 14px; color: var(--danger); font-weight: 500; }

/* ทุกช่องกรอกต้อง 16px ขึ้นไป ไม่งั้น iOS ซูมเข้าเอง (รวมช่องที่ไม่ได้จัดสไตล์ด้วย) */
input, select, textarea { font-size: 16px; }

input[type='text'], input[type='search'], input[type='tel'], input[type='email'],
input[type='number'], input[type='password'], input[type='url'], select, textarea {
  width: 100%; min-height: 50px; padding: 11px 14px;
  font: inherit; font-size: 16px; /* ห้ามต่ำกว่า 16px ไม่งั้น iOS ซูมเอง */
  color: var(--text); background: var(--surface);
  border: 1.5px solid var(--line); border-radius: var(--r-sm);
  transition: border-color .18s, box-shadow .18s;
}
textarea { min-height: 122px; resize: vertical; line-height: 1.6; }
select {
  appearance: none; padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2355534d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
}
:is(input, select, textarea):focus-visible {
  outline: 0; border-color: var(--gold-500); box-shadow: 0 0 0 3px rgba(227, 167, 18, .22);
}
:is(input, select, textarea)[aria-invalid='true'] { border-color: var(--danger); }

a:focus-visible, button:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--gold-500); outline-offset: 2px; border-radius: 4px;
}

.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 16px; border-radius: 999px; text-decoration: none;
  font-size: 15px; font-weight: 500;
  background: var(--surface); color: var(--text-2); border: 1.5px solid var(--line);
  transition: border-color .2s, color .2s, background-color .2s;
}
.chip:hover { border-color: var(--gold-500); color: var(--text); }
.chip[aria-current='true'] { background: var(--ink-900); border-color: var(--ink-900); color: var(--gold-300); }
.chip:hover { box-shadow: 0 4px 14px rgba(28, 22, 8, .08); }
.chip span { font-size: 14px; opacity: .7; }

.result-bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
  margin: 26px 0 18px; padding-bottom: 14px; border-bottom: 1px solid var(--line);
}
.result-bar__count { font-weight: 600; margin-right: auto; }
.result-bar__count b { color: var(--gold-600); font-family: var(--serif); font-size: 1.14em; }

/* ── หน้ารายละเอียดรถ ───────────────────────────────────────────── */
.crumbs { font-size: 14.5px; color: var(--text-3); padding-top: 8px; }
.crumbs a {
  display: inline-flex; align-items: center; min-height: 44px;
  color: var(--text-2); text-decoration: none;
}
.crumbs a:hover { text-decoration: underline; }
.crumbs span { margin: 0 6px; }

.detail { display: grid; gap: clamp(24px, 4vw, 44px); align-items: start; }
@media (min-width: 900px) {
  .detail {
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, .8fr);
    grid-template-areas: 'gal buy' 'body buy';
  }
  .detail__gallery { grid-area: gal; }
  .detail__buy { grid-area: buy; }
  .detail__body { grid-area: body; }
}

.gallery__main { background: var(--surface-2); border-radius: var(--r); overflow: hidden; }
.gallery__main img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery__thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 8px; }
.gallery__thumbs button {
  padding: 0; border: 2px solid transparent; border-radius: var(--r-sm);
  background: var(--surface-2); cursor: pointer; overflow: hidden; line-height: 0;
}
.gallery__thumbs button[aria-current='true'] { border-color: var(--gold-500); }
.gallery__thumbs img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

.buybox {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); padding: 24px; box-shadow: var(--shadow-1); overflow: hidden;
}
.buybox::before {
  content: ''; position: absolute; inset: 0 0 auto; height: 3px; background: var(--gold-sheen);
}
@media (min-width: 900px) { .buybox { position: sticky; top: 88px; } }
.buybox__price {
  font-family: var(--serif); font-size: clamp(31px, 5vw, 42px); font-weight: 600;
  line-height: 1.4; letter-spacing: -.03em;
}
.buybox__price small { font-size: 17px; font-weight: 500; color: var(--text-3); }
.buybox__status { display: inline-block; margin-bottom: 10px; }
.buybox hr { border: 0; border-top: 1px solid var(--line); margin: 18px 0; }

.status-pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 13px; border-radius: 999px; font-size: 14px; font-weight: 600;
}
.status-pill::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.status-pill--available { background: #e4f2e9; color: var(--ok); }
.status-pill--reserved { background: var(--warn-bg); color: var(--warn); }
.status-pill--sold { background: #f9e5e4; color: var(--danger); }

.spec-table { width: 100%; border-collapse: collapse; }
.spec-table th, .spec-table td { text-align: left; padding: 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec-table th { font-weight: 500; color: var(--text-3); width: 42%; font-size: 15.5px; letter-spacing: .01em; }
.spec-table td { font-weight: 600; }
.spec-table tr:last-child :is(th, td) { border-bottom: 0; }

/* ── ตารางราคา ──────────────────────────────────────────────────── */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); }
.price-table { width: 100%; min-width: 680px; border-collapse: collapse; font-size: 16px; }
.price-table :is(th, td) { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
.price-table th { background: var(--surface-2); font-size: 14.5px; font-weight: 600; color: var(--text-2); position: sticky; top: 0; }
.price-table td:first-child { white-space: normal; min-width: 240px; font-weight: 600; }
.price-table a { display: inline-flex; align-items: center; min-height: 44px; color: inherit; text-decoration: none; }
.price-table a:hover { color: var(--gold-500); text-decoration: underline; }
.price-table tbody tr:hover { background: var(--gold-soft); }
.price-table td.num b { font-family: var(--serif); font-size: 1.08em; letter-spacing: -.01em; }
.price-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.price-table tr:last-child :is(th, td) { border-bottom: 0; }

/* ── แกลเลอรี (รูปลอย ไม่มีกรอบ ไม่มีเงา) ──────────────────────── */
.photo-grid { display: grid; gap: 10px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 480px) { .photo-grid { gap: 12px; grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .photo-grid { gap: 16px; grid-template-columns: repeat(3, 1fr); } }
.photo-grid { --ph-r: var(--r-sm); }
.photo-grid img {
  width: 100%; border-radius: var(--ph-r); display: block;
  transition: transform .6s var(--ease), box-shadow .35s var(--ease);
}
.photo-grid img:hover { transform: scale(1.015); box-shadow: var(--shadow-2); }
@media (prefers-reduced-motion: reduce) { .photo-grid img:hover { transform: none; } }
.photo-grid--square { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 768px) { .photo-grid--square { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .photo-grid--square { grid-template-columns: repeat(5, 1fr); } }

/* ── จุดเด่น ────────────────────────────────────────────────────── */
.feature-grid { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 768px) { .feature-grid { gap: 20px; grid-template-columns: repeat(4, 1fr); } }
.feature {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); padding: 24px 22px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s;
}
a.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); border-color: var(--gold-line); }
.section--dark .feature { background: rgba(255, 255, 255, .04); border-color: rgba(242, 217, 139, .16); }
.feature__icon {
  width: 48px; height: 48px; border-radius: 14px; margin-bottom: 16px;
  display: grid; place-items: center;
  background: var(--gold-soft); color: var(--gold-600);
  border: 1px solid var(--gold-line);
}
.section--dark .feature__icon {
  background: rgba(201, 162, 39, .16); color: var(--gold-300); border-color: rgba(242, 217, 139, .26);
}
.feature__icon svg { width: 24px; height: 24px; }
.feature h3 { font-size: 17.5px; margin-bottom: 4px; }
.feature p { font-size: 15px; color: var(--text-2); margin: 0; }
.section--dark .feature p { color: var(--on-dark-2); }
.feature--soon { border-style: dashed; background: transparent; }
/* กลุ่มรถมี 9 กลุ่ม ใช้ 3 คอลัมน์จะลงตัวพอดี 3 แถว ไม่เหลือใบเดียวโดดท้ายแถว */
@media (min-width: 768px) { .feature-grid--groups { grid-template-columns: repeat(3, 1fr); } }
.feature--soon .feature__icon { background: var(--surface-2); color: var(--text-3); }

/* ── ติดต่อ ─────────────────────────────────────────────────────── */
.contact-grid { display: grid; gap: clamp(24px, 4vw, 40px); }
@media (min-width: 900px) { .contact-grid { grid-template-columns: minmax(0, 1fr) minmax(0, .95fr); } }

.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.contact-list li {
  display: flex; gap: 14px; align-items: flex-start; padding: 16px 0; border-bottom: 1px solid var(--line);
}
.contact-list li:last-child { border-bottom: 0; }
.contact-list .ico { flex: none; width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: var(--gold-soft); color: #7a5405; }
.contact-list .ico svg { width: 21px; height: 21px; }
.contact-list dt, .contact-list b { display: block; font-size: 14px; font-weight: 600; color: var(--text-3); }
.contact-list a {
  display: inline-flex; align-items: center; min-height: 44px;
  font-weight: 600; text-decoration: none; word-break: break-word;
}
.contact-list a:hover { color: var(--gold-500); text-decoration: underline; }

.map-embed { border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); background: var(--surface-2); }
.map-embed iframe { display: block; width: 100%; height: 340px; border: 0; }

.form-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: 22px; box-shadow: var(--shadow-1);
}
@media (min-width: 768px) { .form-card { padding: 28px; } }
.form-grid { display: grid; gap: 16px; }
@media (min-width: 560px) { .form-grid--2 { grid-template-columns: repeat(2, 1fr); } }
.form-note { font-size: 14px; color: var(--text-3); }

.alert { border-radius: var(--r-sm); padding: 14px 16px; font-size: 16px; margin-bottom: 18px; }
.alert--ok { background: #e4f2e9; color: #14522f; border: 1px solid #b9dcc7; }
.alert--err { background: #f9e5e4; color: #83201b; border: 1px solid #eec3c0; }
.alert--warn { background: var(--warn-bg); color: #7a4c10; border: 1px solid #ecd2a6; }

.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ── ท้ายเว็บ ───────────────────────────────────────────────────── */
.site-footer {
  position: relative; background: var(--ink-900); color: var(--on-dark-2);
  padding-block: clamp(44px, 6vw, 72px) 0;
  border-top: 1px solid rgba(242, 217, 139, .18);
}
.site-footer::before {
  content: ''; position: absolute; inset: 0 0 auto; height: 1px; background: var(--gold-sheen); opacity: .55;
}
.site-footer h4 { font-family: var(--serif); font-weight: 600; }
.footer-grid { display: grid; gap: 32px; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1.2fr; gap: 40px; } }
.site-footer h4 { color: var(--on-dark); font-size: 16px; margin-bottom: 14px; }
.site-footer a { color: var(--on-dark-2); text-decoration: none; }
.site-footer a:hover { color: var(--gold-300); }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; font-size: 15.5px; }
.footer-links li { display: flex; }
.footer-links :is(a, span) { display: inline-flex; align-items: center; min-height: 44px; }
.footer-bottom {
  margin-top: 36px; padding-block: 20px; border-top: 1px solid rgba(244, 241, 233, .1);
  font-size: 14px; display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center;
}
.footer-bottom a { display: inline-flex; align-items: center; min-height: 44px; }
.footer-bottom .sp { margin-left: auto; }

/* ── แถบปุ่มลอยบนมือถือ ─────────────────────────────────────────── */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
  background: rgba(230, 225, 214, .9);
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
}
.sticky-cta a {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 56px; text-decoration: none; font-weight: 600; font-size: 16.5px;
}
.sticky-cta a svg { width: 21px; height: 21px; }
.sticky-cta .c-call { background: var(--ink-900); color: var(--gold-300); border-top: 1px solid rgba(242, 217, 139, .22); }
.sticky-cta .c-line { background: #06c755; color: #fff; }
body { padding-bottom: 57px; }
@media (min-width: 1024px) {
  .sticky-cta { display: none; }
  body { padding-bottom: 0; }
}

/* ── อนิเมชัน (เล่นครั้งเดียว) ─────────────────────────────────── */
.js .reveal { opacity: 0; transform: translateY(20px); }
.js .reveal.is-in { opacity: 1; transform: none; transition: opacity .55s var(--ease), transform .55s var(--ease); }
@media (prefers-reduced-motion: reduce) {
  .js .reveal, .js .reveal.is-in { opacity: 1; transform: none; transition: none; }
  .car-card, .btn { transition: none; }
  .hero__slide { transition: none; }
}

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--gold-400); color: #1a1305; padding: 12px 18px; border-radius: 0 0 10px 10px;
  font-weight: 600; text-decoration: none; transition: top .2s;
}
.skip-link:focus { top: 0; }

.empty {
  text-align: center; padding: 56px 20px; background: var(--surface);
  border: 1px dashed var(--line); border-radius: var(--r); color: var(--text-2);
}
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.prose { max-width: 68ch; }
.prose h3 { margin-top: 1.7em; }
.prose ul { padding-left: 1.25em; }
.prose li { margin-bottom: .5em; }
