/* ===== ModTrip — สีแบรนด์ (จากแผ่นโลโก้: C85 Y50 / M100 Y95) ===== */
:root {
  --teal: #04A697;      /* เขียวหยกโลโก้ — พื้นหัวเว็บ, ของตกแต่ง */
  --teal-ink: #087567;  /* เขียวเข้มสำหรับตัวหนังสือ/ลิงก์ (อ่านง่ายบนพื้นอ่อน) */
  --teal-deep: #0B5E55; /* พื้นเข้ม ตัวหนังสือขาว */
  --red: #E3051A;       /* แดงธงสวิส — ปุ่มจอง */
  --red-dark: #B80415;
  --cream: #F4EEDF;
  --sand: #E4DDCB;
  --ink: #1E2A28;
  --muted: #4A5A56;
  --white: #FFFFFF;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--cream); color: var(--ink);
  font-family: 'Noto Sans Thai', sans-serif; font-size: 17px; line-height: 1.75;
}
h1, h2, h3, .display { font-family: 'Anuphan', sans-serif; line-height: 1.25; color: var(--teal-deep); }
h2 { font-size: clamp(28px, 4vw, 40px); margin: 0 0 24px; }
h3 { font-size: 22px; margin: 28px 0 8px; }
a { color: var(--teal-ink); }
a:hover { color: var(--red); }
img { max-width: 100%; height: auto; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 780px; }
.section { padding: 80px 0; }
.section.white { background: var(--white); }
.section.dark { background: var(--teal-deep); color: #F4EEDF; }
.section.dark h2, .section.dark h3 { color: var(--white); }
.section.dark a { color: var(--white); }
.lead { color: var(--muted); margin: -12px 0 32px; }

/* ปุ่ม */
.btn { display: inline-block; background: var(--red); color: var(--white) !important; text-decoration: none;
  padding: 13px 26px; border-radius: 6px; font-weight: 600; border: 0; font: inherit; font-weight: 600; cursor: pointer; }
.btn:hover { background: var(--red-dark); }
.btn.ghost { background: transparent; border: 1.5px solid currentColor; color: inherit !important; }
.btn.teal { background: var(--teal-ink); }
.btn.teal:hover { background: var(--teal-deep); }

/* หัวเว็บ */
.site-head { background: linear-gradient(90deg, var(--teal) 0%, var(--teal) 20%, #8AD6CC 38%, var(--white) 55%); border-bottom: 4px solid var(--teal); position: sticky; top: 0; z-index: 10; }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.site-head .logo img { height: 64px; width: auto; display: block; }
.site-nav { display: flex; flex-wrap: wrap; gap: 6px 22px; align-items: center; font-weight: 600; font-size: 16px; }
.site-nav a { color: var(--ink); text-decoration: none; padding: 6px 0; }
.site-nav a.active, .site-nav a:hover { color: var(--teal-ink); }
.site-nav a.btn { color: var(--white); padding: 9px 18px; }
.nav-mobile { display: none; }
@media (max-width: 720px) {
  .site-head { background: linear-gradient(90deg, var(--teal) 0%, var(--teal) 30%, #8AD6CC 50%, var(--white) 70%); }
  .site-head .wrap { flex-wrap: wrap; gap: 8px; padding-top: 6px; padding-bottom: 6px; }
  .site-head .logo img { height: 42px; }
  .nav-mobile { display: flex; align-items: center; gap: 8px; }
  .nav-mobile .btn { padding: 8px 14px; font-size: 15px; }
  .nav-toggle { width: 44px; height: 44px; border: 1px solid #CFC6AF; border-radius: 10px; background: var(--white); color: var(--teal-deep); display: grid; place-items: center; cursor: pointer; }
  .site-nav { display: none; flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 0; font-size: 16px; padding: 4px 0 8px; }
  .site-nav a { padding: 10px 4px; border-top: 1px solid var(--sand); }
  .site-nav a.btn { display: none; }
  .site-head.open .site-nav { display: flex; }
}

/* ภาพแรก */
.hero { background: var(--white); padding: 20px 0 60px; }
.hero-box { min-height: 600px; border-radius: 28px; padding: 40px; display: flex; flex-direction: column; justify-content: flex-end; gap: 18px;
  background-color: #0B5E55; background-image: linear-gradient(135deg, #2b8c80, #0B5E55); background-size: cover; background-position: center 35%; color: var(--white); }
.hero-box { position: relative; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center 35%; opacity: 0; transition: opacity 1.4s ease; }
.hero-bg.is-on { opacity: 1; }
.promo-badge { position: absolute; z-index: 2; top: 28px; right: 32px; width: 150px; height: 150px; border-radius: 50%; background: var(--red); color: var(--white) !important; text-decoration: none;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 14px; transform: rotate(-8deg);
  box-shadow: 0 8px 22px rgba(0,0,0,.25); border: 3px dashed rgba(255,255,255,.7); outline: 6px solid var(--red); outline-offset: 0; line-height: 1.2; }
.promo-badge:hover { background: var(--red-dark); outline-color: var(--red-dark); color: var(--white) !important; }
.promo-badge .big { font-family: 'Anuphan', sans-serif; font-weight: 700; font-size: 26px; }
.promo-badge .small { font-size: 12.5px; margin-top: 4px; }
@media (max-width: 720px) { .hero-box.has-promo { padding-top: 132px; } .promo-badge { width: 108px; height: 108px; top: 14px; right: 18px; padding: 10px; } .promo-badge .big { font-size: 20px; } .promo-badge .small { font-size: 11px; } }
.hero-card { position: relative; z-index: 1; background: rgba(255,255,255,.94); color: var(--ink); border-radius: 20px; padding: 26px 30px; max-width: 500px; display: flex; flex-direction: column; gap: 16px; }
.hero-card h1 { color: var(--teal-deep); font-size: clamp(26px, 3.2vw, 38px); margin: 0; white-space: pre-line; }
.hero-card p { margin: 0; color: var(--muted); font-size: 16px; }
.hero-card { gap: 12px; }
.hero-card .more { font-weight: 600; text-decoration: none; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
@media (max-width: 720px) { .hero-box { padding: 14px; min-height: 420px; border-radius: 18px; } .hero-card { padding: 24px; border-radius: 16px; } }

/* การ์ด */
.grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 32px; }
.peak { border-top: 3px solid var(--teal); padding-top: 14px; }
.peak .no { font-family: 'Anuphan', sans-serif; font-weight: 700; color: var(--red); }
.peak h3 { margin: 4px 0 0; font-size: 28px; }
.peak .alt { font-family: 'Anuphan', sans-serif; color: var(--muted); font-size: 19px; }
.trip-card { background: #EEF6F4; border-radius: 22px; overflow: hidden; display: flex; flex-direction: column; }
.pill-tag { align-self: flex-start; background: var(--white); color: var(--teal-deep); font-weight: 600; font-size: 14px; padding: 3px 14px; border-radius: 999px; }
.card-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin-top: auto; padding-top: 8px; }
.card-foot a { font-weight: 600; }
.family { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 48px; align-items: center; }
.family-img { width: 100%; aspect-ratio: 6 / 5; object-fit: cover; border-radius: 28px; background: #CFE6E1; display: block; }
.family-text { color: var(--muted); font-size: 17px; }
.family-text p { margin: 0 0 14px; }
.family-quote { margin: 20px 0; padding: 22px 26px; background: #EEF6F4; border-radius: 20px; font-size: 18px; }
.family-quote span { display: block; margin-top: 6px; color: var(--muted); font-size: 15px; }
.trip-card .ph { height: 220px; width: 100%; object-fit: cover; display: block; background: linear-gradient(135deg, #8fd3c9, #04A697); }
.trip-card .body { padding: 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.trip-card .tag { color: var(--red); font-weight: 600; font-size: 14px; }
.trip-card h3 { margin: 0; }
.trip-card .price { font-weight: 600; margin-top: auto; }

/* ทำไมต้อง ModTrip */
.why { padding-top: 64px; padding-bottom: 64px; }
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px 36px; }
.why-item { display: flex; gap: 16px; align-items: flex-start; }
.why-icon { flex: 0 0 56px; height: 56px; border-radius: 16px; background: #EEF6F4; color: var(--teal-ink); display: grid; place-items: center; }
.why-item h3 { margin: 4px 0 4px; font-size: 20px; }
.why-item p { margin: 0; color: var(--muted); font-size: 16px; }
.trip-card { background: var(--white); }

/* ตารางราคาหน้าแรก */
.price-card { background: var(--white); border-radius: 22px; padding: 8px 24px; overflow-x: auto; }
.price-table { width: 100%; border-collapse: collapse; min-width: 560px; }
.price-table th, .price-table td { text-align: left; padding: 7px 10px; border-bottom: 1px solid var(--sand); vertical-align: top; }
.price-table thead th { font-size: 14px; color: var(--muted); font-weight: 600; }
.price-table tbody th { font-weight: 600; white-space: nowrap; }
.price-table tbody tr:last-child th, .price-table tbody tr:last-child td { border-bottom: 0; }
.price-table tr.group-start th, .price-table tr.group-start td { border-top: 2px solid var(--teal); }
.price-table td strong { color: var(--teal-deep); }
.price-table td span { font-size: 13px; color: var(--muted); margin-left: 6px; white-space: nowrap; }
.price-table td { white-space: nowrap; }
.price-table .kind { display: inline-block; font-size: 12px; font-weight: 600; color: var(--teal-deep); background: #EEF6F4; border-radius: 999px; padding: 0 8px; margin-left: 4px; }

.charter-note { margin: 16px 0 0; padding: 12px 16px; background: #EEF6F4; border-left: 0; border-radius: 10px; color: var(--teal-deep); font-weight: 600; }

/* ตารางวันเดินทาง */
.dep { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; padding: 18px 0; border-top: 1px solid var(--sand); }
.dep .date { font-family: 'Anuphan', sans-serif; font-size: 24px; color: var(--teal-deep); min-width: 230px; }
.dep .trip { color: var(--muted); min-width: 150px; }
.dep .trip-cell { min-width: 170px; }
.dep a.trip { display: inline-flex; align-items: center; gap: 7px; padding: 5px 14px 5px 11px; border-radius: 999px; font-weight: 600; font-size: 15px; text-decoration: none; border: 1px solid transparent; transition: filter .15s; }
.dep a.trip:hover { filter: brightness(.95); text-decoration: underline; text-underline-offset: 3px; }
.dep a.trip-classic { background: #E2F2EE; color: #0B5E55; border-color: #B9DFD6; }
.dep a.trip-newexplore { background: #FCEBDD; color: #A0480F; border-color: #F2CBA9; }
.dep a.trip-small { background: #EEE9F7; color: #5B3E8A; border-color: #D8CDEC; }
.dep .seats { flex: 1; }
.dep .seats.few { color: var(--red); font-weight: 600; }
.dep .seats.full { color: var(--muted); text-decoration: line-through; }
.dep-names { display: block; font-size: 14px; color: var(--muted); font-weight: 400; text-decoration: none; }
.badge-high { display: inline-block; background: var(--cream); color: var(--teal-deep); border: 1px solid var(--teal); border-radius: 999px; font-size: 13px; padding: 0 10px; margin-left: 8px; vertical-align: middle; }

/* เครื่องคิดงบ */
.calc { background: var(--white); border-radius: 10px; padding: 32px; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 32px; }
.calc label { display: flex; flex-direction: column; gap: 4px; font-size: 15px; font-weight: 600; margin-bottom: 14px; }
.calc input { font: inherit; padding: 10px 12px; border: 1px solid #CFC6AF; border-radius: 6px; background: var(--white); }
.calc .hint { font-weight: 400; color: var(--muted); font-size: 13px; }
.calc table { width: 100%; border-collapse: collapse; font-size: 16px; }
.calc td { padding: 8px 0; border-bottom: 1px solid var(--sand); vertical-align: top; }
.calc td.num { text-align: right; white-space: nowrap; padding-left: 12px; }
.calc tr.tour td { color: var(--teal-ink); font-weight: 600; }
.calc tr.tour .hint { font-weight: 400; color: var(--teal-ink); }
.calc tr.self td { color: #8A948F; }
.calc tr.self small { font-size: 12px; color: #9AA39E; }
.calc tr.total td { font-family: 'Anuphan', sans-serif; font-size: 22px; color: var(--teal-deep); border-bottom: 0; padding-top: 16px; }
.calc select { font: inherit; padding: 10px 12px; border: 1px solid #CFC6AF; border-radius: 6px; background: var(--white); }
.calc-step { font-size: 15px; font-weight: 600; margin: 4px 0 6px; }
.calc-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.calc-pair.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 520px) { .calc-pair.three { grid-template-columns: 1fr 1fr; } }
.per-head { background: var(--teal-deep); color: var(--white); border-radius: 14px; padding: 20px 24px; margin-bottom: 18px; display: flex; flex-direction: column; gap: 2px; }
.per-head strong { font-family: 'Anuphan', sans-serif; font-size: clamp(36px, 5vw, 52px); line-height: 1.15; }
.per-head .hint { color: #CFE6E1; font-size: 14px; }
.calc .note { font-size: 13px; color: var(--muted); margin-top: 12px; }

/* กรุ๊ปเล็ก */
.callout { background: var(--red); color: var(--white); border-radius: 10px; padding: 40px; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 28px; align-items: center; }
.callout h2 { color: var(--white); margin: 0 0 8px; }
.callout .big { font-family: 'Anuphan', sans-serif; font-size: 44px; line-height: 1.1; }
.callout a { color: var(--white); }

/* รีวิว */
.review { max-width: 820px; margin: 0 auto; text-align: center; min-height: 190px; transition: opacity .5s; }
.review q { font-family: 'Anuphan', sans-serif; font-size: clamp(20px, 2.6vw, 28px); line-height: 1.5; color: var(--white); quotes: "“" "”"; }
.review .who { margin-top: 16px; color: #CFE6E1; }
.sample-badge { display: inline-block; background: #FFD34D; color: #1E2A28; font-size: 12px; font-weight: 700; padding: 0 8px; border-radius: 4px; margin-left: 6px; }

/* ฟอร์มจอง */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; background: var(--white); color: var(--ink); border-radius: 10px; padding: 28px; }
.form-grid label { display: flex; flex-direction: column; gap: 6px; font-size: 15px; }
.form-grid .full { grid-column: 1 / -1; }
.form-grid input, .form-grid select, .form-grid textarea { font: inherit; padding: 11px 12px; border: 1px solid #CFC6AF; border-radius: 6px; background: var(--white); width: 100%; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.msg-ok { background: #E3F4EF; border: 1px solid var(--teal); color: var(--teal-deep); padding: 14px 18px; border-radius: 8px; margin-bottom: 18px; }
.msg-err { background: #FDE8EA; border: 1px solid var(--red); color: #7A0410; padding: 14px 18px; border-radius: 8px; margin-bottom: 18px; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

/* เนื้อหายาว */
.prose h3 { color: var(--teal-deep); }
.prose ul { padding-left: 22px; }
.days { counter-reset: d; }
.day { display: grid; grid-template-columns: 90px 1fr; gap: 20px; padding: 22px 0; border-top: 1px solid var(--sand); }
.day .n { font-family: 'Anuphan', sans-serif; color: var(--red); font-weight: 700; font-size: 20px; }
.day h3 { margin: 0 0 6px; }
.day-img { width: 100%; max-height: 360px; object-fit: cover; border-radius: 14px; margin: 8px 0 6px; display: block; }
@media (max-width: 560px) { .day { grid-template-columns: 1fr; gap: 4px; } }

/* ท้ายเว็บ */
.site-foot { background: var(--teal); color: var(--white); padding: 40px 0; font-size: 15px; }
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: center; }
.site-foot a { color: var(--white); }
.site-foot img { height: 70px; width: auto; }

/* ===== ตารางเทียบรูปแบบการเที่ยว ===== */
.compare { background: #EEF6F4; }
.compare-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-top: 28px; border-radius: 16px; box-shadow: 0 1px 0 var(--sand); }
.compare-table { width: 100%; min-width: 680px; border-collapse: separate; border-spacing: 0; background: var(--white); font-size: 16px; line-height: 1.55; }
.compare-table th, .compare-table td { padding: 14px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--sand); }
.compare-table thead th { font-family: 'Anuphan', sans-serif; font-size: 17px; color: var(--teal-deep); background: #F7F4EC; }
.compare-table tbody th { color: var(--teal-deep); font-weight: 600; white-space: nowrap; background: var(--white); }
.compare-table td { color: var(--muted); }
.compare-table .us { background: var(--teal-ink); color: var(--white); font-weight: 600; }
.compare-table thead .us { background: var(--teal-deep); }
.compare-table tbody tr:last-child th, .compare-table tbody tr:last-child td { border-bottom: 0; }
.compare-cta { margin: 28px 0 0; text-align: center; }
@media (max-width: 720px) {
  /* มือถือ: แต่ละหัวข้อเป็นการ์ด ช่อง ModTrip ขึ้นก่อน */
  .compare-scroll { overflow: visible; box-shadow: none; border-radius: 0; }
  .compare-table { min-width: 0; background: transparent; }
  .compare-table thead { display: none; }
  .compare-table tbody, .compare-table th, .compare-table td { display: block; }
  .compare-table tr { display: flex; flex-direction: column; background: var(--white); border-radius: 14px; margin-bottom: 12px; padding-bottom: 12px; }
  .compare-table tbody th { order: 0; white-space: normal; padding: 14px 16px 6px; border: 0; font-size: 18px; font-family: 'Anuphan', sans-serif; }
  .compare-table td { order: 2; border: 0; padding: 3px 16px; font-size: 15px; }
  .compare-table td::before { content: attr(data-label) " · "; color: var(--teal-deep); font-weight: 600; }
  .compare-table td.us { order: 1; margin: 2px 12px 8px; padding: 10px 14px; border-radius: 10px; font-size: 16px; }
  .compare-table td.us::before { color: var(--white); }
}

/* ===== LINE ===== */
.foot-line { display: flex; align-items: center; gap: 14px; text-decoration: none; font-weight: 600; line-height: 1.4; }
.foot-line small { font-weight: 400; font-size: 14px; }
.site-foot .foot-line img { width: 96px; height: 96px; background: var(--white); padding: 4px; border-radius: 10px; }
.line-float { position: fixed; right: 16px; bottom: 16px; z-index: 60; display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; border-radius: 999px; background: #04913F; color: var(--white); font-family: 'Anuphan', sans-serif; font-weight: 700; font-size: 18px; text-decoration: none; box-shadow: 0 6px 18px rgba(0,0,0,0.22); }
.line-float:hover { background: #037A35; color: var(--white); }

/* ---------- อัลบั้มรูปใต้หัวข้อ ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin: 14px 0 26px; }
.gallery a { display: block; border-radius: 8px; overflow: hidden; aspect-ratio: 4/3; background: #eee; }
.gallery img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.gallery a:hover img { transform: scale(1.04); }
@media (max-width: 560px) { .gallery { grid-template-columns: repeat(2, 1fr); gap: 6px; } }
.lightbox { position: fixed; inset: 0; z-index: 1000; background: rgba(10,12,14,.92); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 50px 12px 20px; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 130px); object-fit: contain; border-radius: 4px; }
.lightbox p { color: #fff; margin: 12px 0 0; text-align: center; font-size: 16px; min-height: 1.4em; }
.lightbox button { position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; font-size: 30px; width: 52px; height: 52px; border-radius: 50%; cursor: pointer; line-height: 1; }
.lightbox .lb-close { top: 10px; right: 10px; }
.lightbox .lb-prev { left: 10px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 10px; top: 50%; transform: translateY(-50%); }

.foot-admin { color: inherit; opacity: .55; font-size: 13px; text-decoration: none; }
.foot-admin:hover { opacity: 1; text-decoration: underline; }

.trip-subnav { background: var(--cream, #F4EEDF); }
.site-head .trip-subnav .wrap { justify-content: flex-start; flex-wrap: nowrap; gap: 6px; overflow-x: auto; padding-top: 5px; padding-bottom: 5px; }
.trip-subnav a { flex: 0 0 auto; padding: 4px 10px; border-radius: 6px; color: var(--teal-deep); font-size: 14px; text-decoration: none; }
.trip-subnav a:hover, .trip-subnav a[aria-current="page"] { background: var(--teal-ink); color: var(--white); }
.trip-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.trip-tables { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px; }
.trip-tables details { min-width: 0; max-width: 100%; border: 1px solid var(--sand); border-radius: 8px; padding: 6px 10px; font-size: 13px; }
.trip-tables summary { cursor: pointer; font-weight: 600; color: var(--teal-deep); }
.trip-table-scroll { overflow-x: auto; }
.trip-table-scroll table { border-collapse: collapse; margin-top: 6px; text-align: left; }
.trip-table-scroll th, .trip-table-scroll td { border-bottom: 1px solid var(--sand); padding: 3px 6px; }
.trip-table-scroll th { white-space: nowrap; }
