
/* ===== ตัวแปรสี ===== */
:root {
  --primary: #12715B;
  --primary-hover: #0D5A48;
  --primary-soft: #E3F2EE;
  --sun: #C9A227;
  --navy: #0F3D33;
  --ink: #17201D;
  --ink-2: #3A4743;
  --muted: #66726E;
  --line: #DFE7E3;
  --bg: #F7F8F6;
  --card: #FFFFFF;
  --radius: 12px;
  --head: 'Anuphan', 'Sarabun', sans-serif;
  --body: 'Sarabun', 'Anuphan', sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.75; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-hover); text-decoration: underline; }
img { max-width: 100%; height: auto; }
h1, h2, h3, h4 { font-family: var(--head); line-height: 1.35; color: var(--ink); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.section, .widget { margin: 0; }

/* ===== ส่วนหัว ===== */
.site-header { background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.header-row { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none !important; flex-shrink: 0; }
.brand-icon { width: 36px; height: 36px; border-radius: 10px; background: var(--primary); display: flex; align-items: center; justify-content: center; }
.brand-icon svg { width: 20px; height: 20px; fill: #fff; }
.brand-name { font-family: var(--head); font-weight: 700; font-size: 19px; }
.brand img { max-height: 40px; width: auto; display: block; }
.search { margin-left: auto; display: flex; align-items: center; background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 0 6px 0 14px; height: 38px; }
.search input { border: none; background: transparent; outline: none; font-family: var(--body); font-size: 15px; width: 180px; color: var(--ink); }
.search button { border: none; background: transparent; cursor: pointer; color: var(--muted); display: flex; padding: 6px; }
.search button svg { width: 18px; height: 18px; fill: currentColor; }
.nav { border-top: 1px solid var(--line); }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.nav ul::-webkit-scrollbar { display: none; }
.nav li a { display: block; padding: 10px 12px; font-family: var(--head); font-weight: 500; font-size: 15px; color: var(--ink-2); white-space: nowrap; border-bottom: 2px solid transparent; }
.nav li a:hover, .nav li a.on { color: var(--primary); border-bottom-color: var(--primary); text-decoration: none; }

/* ===== หน้าแรก ===== */
.home-intro { padding: 28px 0 8px; }
.home-intro h1 { margin: 0; font-size: 28px; }
.home-intro p { margin: 4px 0 0; color: var(--muted); }
.list-title { font-family: var(--head); font-size: 22px; margin: 28px 0 14px; }
.featured { display: grid; grid-template-columns: 1.4fr 1fr; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-top: 20px; }
.featured .thumb { aspect-ratio: 16 / 10; }
.featured .body { padding: 28px; display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.featured h2 { margin: 0; font-size: 26px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .15s, transform .15s; }
.card:hover { box-shadow: 0 8px 24px rgba(16, 24, 40, .08); transform: translateY(-2px); }
.card .body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; }
.card h3 { margin: 0; font-size: 18px; }
.card h3 a, .featured h2 a { color: var(--ink); }
.thumb { display: block; aspect-ratio: 16 / 10; background: var(--primary-soft) center / cover no-repeat; }
.snippet { color: var(--muted); font-size: 15px; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-family: var(--head); font-size: 12.5px; font-weight: 500; padding: 2px 10px; border-radius: 999px; background: var(--primary-soft); color: var(--primary-hover); }
.chip:hover { text-decoration: none; background: #DAE7F7; }
.read-more { font-family: var(--head); font-weight: 600; font-size: 15px; }
.pager { display: flex; justify-content: space-between; margin: 32px 0; }
.pager a { font-family: var(--head); font-weight: 600; padding: 10px 18px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); }

/* ===== หน้าบทความ ===== */
.article { max-width: 760px; margin: 28px auto 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 36px 44px; }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 10px; }
.article h1 { font-size: 32px; margin: 0 0 10px; }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; color: var(--muted); font-size: 14px; margin-bottom: 24px; }
.post-body { font-size: 18px; }
.post-body h2 { font-size: 24px; margin: 34px 0 10px; padding-top: 6px; }
.post-body h3 { font-size: 20px; margin: 24px 0 8px; }
.post-body p { margin: 0 0 16px; }
.post-body ul, .post-body ol { padding-left: 24px; margin: 0 0 16px; }
.post-body li { margin-bottom: 6px; }
.post-body img { border-radius: 10px; }
.post-body figure { margin: 20px 0; }
.post-body blockquote { margin: 20px 0; padding: 12px 18px; border-left: 4px solid var(--primary); background: var(--primary-soft); border-radius: 0 10px 10px 0; }
.post-body .ab-disclosure { font-family: var(--body); }
.post-body .ab-hotel-card { box-shadow: 0 2px 10px rgba(16, 24, 40, .05); }
.post-body .ab-hotel-card a[rel~='sponsored'] { font-family: var(--head); }
.post-body .ab-hotel-card a[rel~='sponsored']:hover { background: var(--primary-hover) !important; text-decoration: none; }
.related { max-width: 760px; margin: 28px auto 0; }
.related h2 { font-size: 22px; margin: 0 0 14px; }
.related .grid { grid-template-columns: repeat(3, 1fr); }
.related .card h3 { font-size: 16px; }

/* ===== ท้ายเว็บ ===== */
.site-footer { margin-top: 56px; background: #0A1D38; color: #C9D6E8; padding: 36px 0; font-size: 15px; }
.site-footer a { color: #FFFFFF; }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; }
.footer-name { font-family: var(--head); font-weight: 700; color: #fff; font-size: 18px; }
.footer-note { max-width: 520px; margin: 6px 0 0; color: #A9BBD3; }
.footer-links { display: flex; gap: 18px; align-items: flex-start; }

/* ===== มือถือ ===== */
@media (max-width: 900px) {
  .grid, .related .grid { grid-template-columns: repeat(2, 1fr); }
  .featured { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 14px; }
  .search input { width: 110px; }
  .brand-name { font-size: 17px; }
  .grid, .related .grid { grid-template-columns: 1fr; }
  .featured .body { padding: 18px; }
  .featured h2 { font-size: 21px; }
  .article { padding: 22px 18px; border-radius: 0; border-left: none; border-right: none; margin-top: 0; }
  .article h1 { font-size: 25px; }
  .post-body { font-size: 17px; }
}

/* ===== ธีมกรุงเทพฯ: เขียวมรกต + ทอง ===== */
.site-header { background: var(--navy); border-bottom: none; }
.brand { color: #fff; }
.brand-icon { background: var(--sun); }
.brand-icon svg { fill: var(--navy); }
.search { background: rgba(255, 255, 255, .1); border-color: rgba(201, 162, 39, .45); }
.search input { color: #fff; }
.search input::placeholder { color: #AEB8CC; }
.search button { color: #D5DBE7; }
.nav { border-top: 1px solid rgba(255, 255, 255, .12); }
.nav li a { color: #D5DBE7; }
.nav li a:hover, .nav li a.on { color: #fff; border-bottom-color: var(--sun); }
.chip:hover { background: #CFE8E0; }
.site-footer { background: var(--navy); color: #D5DBE7; }
.footer-note { color: #AEB8CC; }
/* ปุ่มและกรอบใน Post (ระบบใส่สีน้ำเงินแบบ inline ไว้ จึงต้องทับด้วย !important) */
.post-body .ab-disclosure { border-left-color: var(--sun) !important; background: var(--primary-soft) !important; }
.post-body .ab-hotel-card a[rel~='sponsored'], .post-body .ab-cta a { background: var(--primary) !important; }
.post-body .ab-cta a:hover { background: var(--primary-hover) !important; text-decoration: none; }
.post-body .ab-hotel-card a[href*='google.com/maps'] { color: var(--primary) !important; border-color: var(--primary) !important; }
  