/*
Theme Name: จัดทริป 2026
Theme URI: https://จัดทริป.com/
Template: tiewlok-theme
Author: จัดทริป.com
Description: ดีไซน์ใหม่ของจัดทริป.com (rebuild 2026-11-28) เป็น child theme ของ tiewlok-theme ใช้ฟีเจอร์เดิมทั้งหมด เปลี่ยนเปลือก หน้าแรก และระบบดีไซน์
Version: 1.0.0
Text Domain: tiewlok
*/

@font-face { font-family: "Noto Sans Thai"; src: url("assets/fonts/notothai-thai-100-900.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC; }
@font-face { font-family: "Noto Sans Thai"; src: url("assets/fonts/notothai-latin-100-900.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* 1. Design tokens: the parent theme is token driven, so this re-skins every component. */
:root {
  --tl-ink: #0f1b2d;
  --tl-muted: #4f5d70;
  --tl-line: #e5e0d6;
  --tl-bg: #fbf8f3;
  --tl-panel: #ffffff;
  --tl-sea: #0b6e79;
  --tl-sea-deep: #08525b;
  --tl-sky: #2563a8;
  --tl-coral: #c43c22;
  --tl-gold: #c98a12;
  --tl-leaf: #4c7a35;
  --tl-radius: 18px;
  --tl-radius-sm: 12px;
  --tl-radius-lg: 26px;
  --tl-shadow: 0 1px 2px rgba(15, 27, 45, .05), 0 10px 28px rgba(15, 27, 45, .08);
  --tl-shadow-float: 0 18px 44px rgba(15, 27, 45, .16);
  --tl-max: 1200px;
  --tl-footer-bg: #0f1b2d;
  --tl-footer-ink: #eef2f6;
  --tl-footer-muted: #a3b1c2;
  --tl-footer-card: rgba(255, 255, 255, .06);
  --font-display: "Noto Sans Thai", "Leelawadee UI", Tahoma, sans-serif;
  --font-body: "Noto Sans Thai", "Leelawadee UI", Tahoma, sans-serif;
  --jt-sun: #ffd27a;
}

body { font-size: 17px; line-height: 1.72; }
h1, h2, h3, h4, .site-title { font-weight: 700; letter-spacing: -.01em; }
h1 { line-height: 1.22; }
h2 { line-height: 1.3; }
.entry-content { font-size: 1.04rem; }
.entry-content p, .entry-content li { line-height: 1.85; }
.entry-content a { text-underline-offset: 3px; }
::selection { background: var(--jt-sun); color: var(--tl-ink); }
:focus-visible { outline: 3px solid var(--tl-coral); outline-offset: 2px; }

/* 2. Header */
.jt-head { position: sticky; top: 0; z-index: 60; background: rgba(251, 248, 243, .92); backdrop-filter: saturate(1.5) blur(12px); -webkit-backdrop-filter: saturate(1.5) blur(12px); border-bottom: 1px solid var(--tl-line); }
.admin-bar .jt-head { top: 32px; }
.jt-head__in { display: flex; align-items: center; gap: 18px; min-height: 68px; }
.jt-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--tl-ink); text-decoration: none; flex: none; }
.jt-brand:hover { color: var(--tl-ink); }
.jt-brand__mark { display: inline-flex; }
.jt-brand__name { font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; letter-spacing: -.02em; }
.jt-brand__name b { color: var(--tl-sea); font-weight: 700; }
.jt-nav { flex: 1; min-width: 0; }
.jt-nav__list { display: flex; justify-content: center; flex-wrap: wrap; gap: 2px; list-style: none; margin: 0; padding: 0; }
.jt-nav__list li { margin: 0; }
.jt-nav__list a { display: block; padding: 8px 13px; border-radius: 999px; color: var(--tl-ink); text-decoration: none; font-weight: 500; font-size: .98rem; white-space: nowrap; }
.jt-nav__list a:hover, .jt-nav__list .current-menu-item > a { background: #fff; box-shadow: 0 0 0 1px var(--tl-line); }
.jt-head__tools { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.jt-icon { list-style: none; display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 999px; cursor: pointer; color: var(--tl-ink); }
.jt-icon::-webkit-details-marker { display: none; }
.jt-icon:hover { background: #fff; box-shadow: 0 0 0 1px var(--tl-line); }
.jt-cta { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 18px; border-radius: 999px; background: var(--tl-coral); color: #fff; font-weight: 600; text-decoration: none; white-space: nowrap; }
.jt-cta:hover { background: #a8321b; color: #fff; }
.jt-cta--light { background: var(--jt-sun); color: var(--tl-ink); margin-top: 6px; }
.jt-cta--light:hover { background: #ffc552; color: var(--tl-ink); }
.jt-pop { position: relative; }
.jt-pop__panel { position: absolute; right: 0; top: calc(100% + 10px); width: min(92vw, 420px); background: #fff; border-radius: var(--tl-radius); box-shadow: var(--tl-shadow-float); padding: 14px; z-index: 70; }
.jt-pop__panel .search-form { display: flex; gap: 8px; }
.jt-pop__panel .search-form label { flex: 1; min-width: 0; }
.jt-pop__panel .search-field { width: 100%; min-height: 46px; border: 1.5px solid var(--tl-line); border-radius: 12px; padding: 8px 14px; font: inherit; font-size: 16px; }
.jt-pop__panel .search-submit { min-height: 46px; border: 0; border-radius: 12px; padding: 0 16px; background: var(--tl-sea); color: #fff; font: inherit; font-weight: 600; cursor: pointer; }
.jt-pop--menu { display: none; }
.jt-drawer { display: grid; gap: 10px; max-height: calc(100vh - 100px); overflow: auto; }
.jt-drawer__list, .jt-drawer__hubs { list-style: none; margin: 0; padding: 0; }
.jt-drawer__list li, .jt-drawer__hubs li { margin: 0; }
.jt-drawer__list a { display: block; padding: 12px 6px; border-bottom: 1px solid var(--tl-line); color: var(--tl-ink); text-decoration: none; font-weight: 600; }
.jt-drawer__label { margin: 6px 0 0; font-size: .82rem; color: var(--tl-muted); font-weight: 600; }
.jt-drawer__hubs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.jt-drawer__hubs a { display: block; padding: 10px; border-radius: 12px; background: var(--tl-bg); color: var(--tl-ink); text-decoration: none; font-size: .94rem; }
@media (max-width: 1060px) {
  .jt-nav { display: none; }
  .jt-pop--menu { display: block; }
}
@media (max-width: 520px) {
  .jt-cta { padding: 8px 14px; font-size: .92rem; }
  .jt-head .jt-pop--search { display: none; }
  .jt-brand__name { font-size: 1.15rem; }
  .jt-brand__mark svg { width: 28px; height: 28px; }
}

/* 3. Home hero refresh */
.tl-home-hero { border-radius: 0 0 var(--tl-radius-lg) var(--tl-radius-lg); }
.tl-home-hero::before { background: linear-gradient(90deg, rgba(15, 27, 45, .86) 0%, rgba(15, 27, 45, .5) 55%, rgba(15, 27, 45, .12) 100%), linear-gradient(180deg, transparent 50%, rgba(15, 27, 45, .5) 100%); }
.tl-home-hero h1 { font-size: clamp(2.1rem, 1.3rem + 3.2vw, 3.6rem); line-height: 1.18; max-width: 720px; }
.tl-home-hero__copy p:not(.tl-home-hero__season) { font-size: clamp(1.05rem, .95rem + .5vw, 1.3rem); font-weight: 500; max-width: 600px; }
.tl-home-hero h1 em { font-style: normal; color: var(--jt-sun); }
.tl-home-hero__season { display: inline-flex !important; padding: 4px 12px !important; border-radius: 999px; background: rgba(255, 255, 255, .16); font-weight: 600; font-size: .92rem; }
.tl-quick-plan { border: 1px solid var(--tl-line); box-shadow: var(--tl-shadow-float); }
.tl-quick-plan__submit { background: var(--tl-coral) !important; }
.tl-quick-plan__submit:hover { background: #a8321b !important; }

/* 4. Category hubs */
.jt-sec-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 10px 24px; margin-bottom: 22px; }
.jt-sec-head h2 { margin: 0; }
.jt-hubs__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 900px) { .jt-hubs__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.jt-hub { display: grid; grid-template-columns: 48px minmax(0, 1fr); grid-template-rows: auto auto auto; column-gap: 14px; row-gap: 2px; padding: 18px; background: var(--tl-panel); border: 1px solid var(--tl-line); border-radius: var(--tl-radius); color: var(--tl-ink); text-decoration: none; transition: transform .18s var(--tl-ease-out), box-shadow .18s; }
.jt-hub:hover { transform: translateY(-2px); box-shadow: var(--tl-shadow); color: var(--tl-ink); }
.jt-hub__icon { grid-row: 1 / span 3; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; background: var(--tl-bg); font-size: 1.4rem; }
.jt-hub b { font-size: 1.06rem; }
.jt-hub span:not(.jt-hub__icon) { color: var(--tl-muted); font-size: .93rem; line-height: 1.5; }
.jt-hub small { color: var(--tl-sea); font-weight: 600; font-size: .84rem; }
@media (max-width: 520px) {
  .jt-hubs__grid { gap: 10px; }
  .jt-hub { grid-template-columns: 1fr; padding: 14px; }
  .jt-hub__icon { grid-row: auto; width: 40px; height: 40px; margin-bottom: 6px; font-size: 1.2rem; }
  .jt-hub span:not(.jt-hub__icon) { display: none; }
}

/* 5. Article polish */
.single .entry-header .entry-title { font-size: clamp(1.8rem, 1.2rem + 2.2vw, 2.7rem); }
.entry-content h2 { margin-top: 2.2em; }
.entry-content h2::before { content: ""; display: block; width: 34px; height: 4px; border-radius: 4px; background: var(--tl-coral); margin-bottom: 12px; }
.entry-content table { border-radius: var(--tl-radius-sm); overflow: hidden; }
.jt-slot { margin: 28px 0; padding: 16px; border: 1px dashed var(--tl-line); border-radius: var(--tl-radius-sm); background: #fff; }

/* 6. Footer */
.jt-foot { background: var(--tl-footer-bg); color: var(--tl-footer-muted); padding: 48px 0 24px; margin-top: 56px; font-size: .95rem; }
.jt-foot a { color: var(--tl-footer-ink); text-decoration: none; }
.jt-foot a:hover { color: var(--jt-sun); }
.jt-foot__trust { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 36px; }
.jt-foot__trust > div { background: var(--tl-footer-card); border-radius: var(--tl-radius-sm); padding: 16px 18px; display: grid; gap: 4px; }
.jt-foot__trust strong { color: var(--tl-footer-ink); }
.jt-foot__grid { display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); gap: 30px; }
.jt-foot__about p { margin: 10px 0 12px; }
.jt-brand--foot .jt-brand__name { color: #fff; }
.jt-brand--foot .jt-brand__name b { color: var(--jt-sun); }
.jt-foot h2 { color: #fff; font-size: 1rem; margin: 0 0 10px; }
.jt-foot ul { list-style: none; margin: 0; padding: 0; }
.jt-foot li { margin: 0; }
.jt-foot li a { display: inline-block; padding: 5px 0; color: var(--tl-footer-muted); }
.jt-foot li a:hover { color: var(--jt-sun); }
.jt-foot__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 20px; border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 32px; padding-top: 18px; font-size: .86rem; }
.jt-foot__bottom .tl-image-credit { margin: 0; color: var(--tl-footer-muted); }
@media (max-width: 900px) { .jt-foot__trust { grid-template-columns: 1fr; } .jt-foot__grid { grid-template-columns: 1fr 1fr; } .jt-foot__about { grid-column: 1 / -1; } }
@media (max-width: 480px) { .jt-foot__grid { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) { .jt-hub { transition: none; } }
.jt-foot .jt-cta--light, .jt-foot .jt-cta--light:hover { color: var(--tl-ink); }
