/*
Theme Name: ChillJourney Tour
Theme URI: https://chilljourney.com/
Author: ChillJourney
Description: ธีมทัวร์แบบเบาและคลีน ออกแบบมาให้อ่านง่ายบนมือถือ มีระบบทริป ค้นหาตามชื่อและเดือน โปรแกรมทัวร์วันต่อวัน และแกลเลอรีรูปภาพ ติดตั้งแล้วใช้งานได้ทันทีโดยไม่ต้องพึ่งปลั๊กอินใด ๆ
Version: 1.1.1
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: chilljourney
Tags: travel, tour, custom-post-type, one-column, responsive
*/

/* ============================================================
   1. ตัวแปรและพื้นฐาน
   ============================================================ */

/* สีตาม CI ของแบรนด์
   Alpine Blue #1E3A5F · Sunrise Terracotta #E07A5F · Forest Green #2F5D4A · Warm Sand #E6D6B8 */
:root {
	--cj-brand: #1e3a5f;
	--cj-brand-rgb: 30, 58, 95;
	--cj-accent: #e07a5f;
	--cj-accent-rgb: 224, 122, 95;
	--cj-forest: #2f5d4a;
	--cj-sand: #e6d6b8;
	--cj-ink: #17263a;
	--cj-body: #4a5563;
	--cj-muted: #7d8795;
	--cj-line: #e6e1d7;
	--cj-bg: #fbf9f5;
	--cj-card: #ffffff;
	--cj-soft: #f4f0e8;
	--cj-green: #06c755;
	--cj-amber: #a9601f;
	--cj-red: #b02a2a;
	--cj-radius: 16px;
	--cj-radius-sm: 10px;
	--cj-shadow: 0 1px 2px rgba(23, 38, 58, .04), 0 10px 28px rgba(23, 38, 58, .08);
	--cj-shadow-sm: 0 1px 2px rgba(23, 38, 58, .06);
	--cj-wrap: 1120px;
	--cj-header-h: 60px;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--cj-header-h) + 56px);
}

body {
	margin: 0;
	background: var(--cj-bg);
	color: var(--cj-body);
	/* Poppins สำหรับอังกฤษ + Noto Sans Thai สำหรับไทย (เบราว์เซอร์เลือกให้อัตโนมัติ) */
	font-family: "Poppins", "Noto Sans Thai", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 16px;
	line-height: 1.8;
	overflow-wrap: break-word;
	-webkit-font-smoothing: antialiased;
}

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

a {
	color: var(--cj-brand);
	text-decoration: none;
}

a:hover {
	text-decoration: underline;
}

h1, h2, h3, h4 {
	color: var(--cj-ink);
	font-weight: 600;
	line-height: 1.45;
	margin: 0 0 .5em;
	letter-spacing: -.01em;
}

p {
	margin: 0 0 1em;
}

button,
input,
select,
textarea {
	font: inherit;
	color: inherit;
}

.cj-wrap {
	width: 100%;
	max-width: var(--cj-wrap);
	margin: 0 auto;
	padding: 0 20px;
}

.cj-sr {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.cj-skip {
	position: absolute;
	left: -9999px;
	top: 0;
	background: var(--cj-ink);
	color: #fff;
	padding: 10px 16px;
	z-index: 999;
}

.cj-skip:focus {
	left: 8px;
	top: 8px;
}

:focus-visible {
	outline: 2px solid var(--cj-brand);
	outline-offset: 2px;
	border-radius: 4px;
}

/* ============================================================
   2. ปุ่ม
   ============================================================ */

.cj-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 46px;
	padding: 10px 20px;
	border: 1px solid transparent;
	border-radius: 999px;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.3;
	text-align: center;
	cursor: pointer;
	transition: transform .12s ease, opacity .15s ease, background .15s ease;
	text-decoration: none;
}

.cj-btn:hover {
	text-decoration: none;
	opacity: .92;
}

.cj-btn:active {
	transform: translateY(1px);
}

.cj-btn-primary {
	background: var(--cj-brand);
	color: #fff;
}

.cj-btn-ghost {
	background: var(--cj-card);
	color: var(--cj-ink);
	border-color: var(--cj-line);
}

.cj-btn-line {
	background: var(--cj-green);
	color: #fff;
}

.cj-btn-block {
	display: flex;
	width: 100%;
}

/* ============================================================
   3. ส่วนหัวเว็บ
   ============================================================ */

.cj-header {
	position: sticky;
	top: 0;
	z-index: 60;
	background: rgba(251, 249, 245, .92);
	backdrop-filter: saturate(180%) blur(12px);
	border-bottom: 1px solid var(--cj-line);
}

.cj-header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: var(--cj-header-h);
}

.cj-brand-text {
	color: var(--cj-ink);
	font-size: 18px;
	font-weight: 700;
	letter-spacing: -.02em;
}

.cj-brand img {
	max-height: 38px;
	width: auto;
}

.cj-nav-toggle {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 42px;
	height: 42px;
	padding: 0 9px;
	background: none;
	border: 0;
	cursor: pointer;
}

.cj-nav-toggle span {
	display: block;
	height: 2px;
	background: var(--cj-ink);
	border-radius: 2px;
	transition: transform .2s ease, opacity .2s ease;
}

.cj-nav-toggle[aria-expanded="true"] span:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}

.cj-nav-toggle[aria-expanded="true"] span:nth-child(2) {
	opacity: 0;
}

.cj-nav-toggle[aria-expanded="true"] span:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

.cj-nav {
	display: none;
	position: absolute;
	left: 0;
	right: 0;
	top: 100%;
	background: var(--cj-card);
	border-bottom: 1px solid var(--cj-line);
	padding: 8px 20px 20px;
	box-shadow: var(--cj-shadow);
}

.cj-nav.is-open {
	display: block;
}

.cj-menu {
	list-style: none;
	margin: 0 0 12px;
	padding: 0;
}

.cj-menu li a {
	display: block;
	padding: 12px 0;
	color: var(--cj-ink);
	font-weight: 500;
	border-bottom: 1px solid var(--cj-line);
}

.cj-menu .sub-menu {
	list-style: none;
	margin: 0;
	padding-left: 16px;
}

.cj-nav-cta {
	width: 100%;
}

@media (min-width: 900px) {
	:root {
		--cj-header-h: 72px;
	}

	.cj-nav-toggle {
		display: none;
	}

	.cj-nav {
		display: flex !important;
		position: static;
		align-items: center;
		gap: 24px;
		padding: 0;
		border: 0;
		box-shadow: none;
		background: none;
	}

	.cj-menu {
		display: flex;
		align-items: center;
		gap: 22px;
		margin: 0;
	}

	.cj-menu li {
		position: relative;
	}

	.cj-menu li a {
		padding: 8px 0;
		border: 0;
		font-size: 15px;
	}

	.cj-menu .sub-menu {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		min-width: 190px;
		background: var(--cj-card);
		border: 1px solid var(--cj-line);
		border-radius: var(--cj-radius-sm);
		box-shadow: var(--cj-shadow);
		padding: 6px 12px;
	}

	.cj-menu li:hover > .sub-menu {
		display: block;
	}

	.cj-nav-cta {
		width: auto;
		min-height: 42px;
		padding: 8px 18px;
	}
}

/* ============================================================
   4. หัวหน้าแรก
   ============================================================ */

.cj-hero {
	padding: 36px 0 60px;
	background: var(--cj-soft);
	text-align: center;
}

.cj-hero.has-image {
	position: relative;
	background-size: cover;
	background-position: center;
	padding: 74px 0 84px;
}

.cj-hero.has-image::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(0, 0, 0, .34), rgba(0, 0, 0, .58));
}

.cj-hero.has-image .cj-wrap {
	position: relative;
}

.cj-hero.has-image .cj-hero-title,
.cj-hero.has-image .cj-hero-sub {
	color: #fff;
	text-shadow: 0 1px 14px rgba(0, 0, 0, .3);
}

.cj-hero-title {
	font-size: 26px;
	margin-bottom: 8px;
}

.cj-hero-sub {
	max-width: 620px;
	margin: 0 auto;
	color: var(--cj-muted);
	font-size: 15px;
}

@media (min-width: 768px) {
	.cj-hero {
		padding: 60px 0 76px;
	}

	.cj-hero.has-image {
		padding: 110px 0 100px;
	}

	.cj-hero-title {
		font-size: 36px;
	}

	.cj-hero-sub {
		font-size: 17px;
	}
}

/* ============================================================
   5. ค้นหาและตัวกรอง
   ============================================================ */

.cj-list-wrap {
	padding-top: 20px;
	padding-bottom: 56px;
}

.cj-search {
	background: var(--cj-card);
	border: 1px solid var(--cj-line);
	border-radius: var(--cj-radius);
	box-shadow: var(--cj-shadow-sm);
	padding: 14px;
	margin: -58px auto 18px;
	position: relative;
	z-index: 2;
	max-width: 860px;
}

.cj-search-row {
	display: grid;
	gap: 10px;
}

.cj-search-field input,
.cj-search-field select {
	width: 100%;
	min-height: 48px;
	padding: 10px 14px;
	background: var(--cj-soft);
	border: 1px solid var(--cj-line);
	border-radius: var(--cj-radius-sm);
	font-size: 16px; /* 16px กัน iOS ซูมอัตโนมัติ */
	appearance: none;
}

.cj-search-field select {
	background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237c868f' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
	background-size: 18px;
	padding-right: 38px;
}

.cj-search-field input:focus,
.cj-search-field select:focus {
	background: var(--cj-card);
	border-color: var(--cj-brand);
	outline: none;
	box-shadow: 0 0 0 3px rgba(var(--cj-brand-rgb), .12);
}

.cj-search-btn {
	width: 100%;
}

@media (min-width: 768px) {
	.cj-search-row {
		grid-template-columns: 1fr 260px auto;
		align-items: center;
	}

	.cj-search-btn {
		width: auto;
		padding: 10px 28px;
		min-height: 48px;
	}
}

.cj-chips {
	display: flex;
	gap: 8px;
	overflow-x: auto;
	padding: 4px 0 10px;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}

.cj-chips::-webkit-scrollbar {
	display: none;
}

.cj-chip {
	flex: 0 0 auto;
	padding: 7px 15px;
	border: 1px solid var(--cj-line);
	border-radius: 999px;
	background: var(--cj-card);
	color: var(--cj-body);
	font-size: 14px;
	white-space: nowrap;
}

.cj-chip:hover {
	text-decoration: none;
	border-color: var(--cj-brand);
}

.cj-chip.is-on {
	background: var(--cj-brand);
	border-color: var(--cj-brand);
	color: #fff;
}

.cj-active-filters {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 14px;
	margin: 0 0 12px;
}

.cj-tag {
	background: var(--cj-soft);
	border-radius: 999px;
	padding: 4px 12px;
	color: var(--cj-muted);
}

.cj-result-count {
	color: var(--cj-muted);
	font-size: 14px;
	margin: 0 0 14px;
}

/* ============================================================
   6. การ์ดทริป
   ============================================================ */

.cj-grid-cards {
	display: grid;
	grid-template-columns: 1fr;
	gap: 18px;
}

@media (min-width: 620px) {
	.cj-grid-cards {
		grid-template-columns: repeat(2, 1fr);
		gap: 22px;
	}
}

@media (min-width: 1000px) {
	.cj-grid-cards {
		grid-template-columns: repeat(3, 1fr);
	}
}

.cj-card {
	background: var(--cj-card);
	border: 1px solid var(--cj-line);
	border-radius: var(--cj-radius);
	overflow: hidden;
	transition: transform .18s ease, box-shadow .18s ease;
}

.cj-card:hover {
	transform: translateY(-3px);
	box-shadow: var(--cj-shadow);
}

.cj-card-link,
.cj-card-link:hover {
	color: inherit;
	text-decoration: none;
	display: block;
}

.cj-card-media {
	position: relative;
	aspect-ratio: 10 / 7;
	background: var(--cj-soft);
	overflow: hidden;
}

.cj-card-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .4s ease;
}

.cj-card:hover .cj-card-media img {
	transform: scale(1.04);
}

.cj-card-month {
	position: absolute;
	top: 12px;
	left: 12px;
	background: rgba(255, 255, 255, .95);
	color: var(--cj-ink);
	font-size: 13px;
	font-weight: 600;
	padding: 4px 11px;
	border-radius: 999px;
}

.cj-badge {
	display: inline-block;
	font-size: 12.5px;
	font-weight: 600;
	padding: 4px 11px;
	border-radius: 999px;
	background: var(--cj-soft);
	color: var(--cj-body);
	line-height: 1.5;
}

.cj-card-media .cj-badge {
	position: absolute;
	top: 12px;
	right: 12px;
	background: rgba(255, 255, 255, .95);
	box-shadow: 0 1px 6px rgba(0, 0, 0, .18);
}

.cj-card-media .cj-badge-open {
	color: var(--cj-forest);
}

.cj-card-media .cj-badge-few {
	color: #8a5712;
}

.cj-card-media .cj-badge-full,
.cj-card-media .cj-badge-closed {
	color: #9e2222;
}

.cj-badge-open {
	background: rgba(47, 93, 74, .13);
	color: var(--cj-forest);
}

.cj-badge-few {
	background: rgba(var(--cj-accent-rgb), .16);
	color: var(--cj-amber);
}

.cj-badge-full,
.cj-badge-closed {
	background: rgba(176, 42, 42, .11);
	color: var(--cj-red);
}

.cj-card-body {
	padding: 16px 16px 18px;
}

.cj-card-dest {
	margin: 0 0 4px;
	font-size: 13px;
	color: var(--cj-muted);
	letter-spacing: .01em;
}

.cj-card-title {
	font-size: 18px;
	margin: 0 0 10px;
	color: var(--cj-ink);
}

.cj-card-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 14px;
	margin: 0 0 14px;
	font-size: 14px;
	color: var(--cj-body);
	line-height: 1.6;
}

.cj-meta-item {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.cj-meta-item svg {
	flex: 0 0 auto;
	width: 15px;
	height: 15px;
	stroke: var(--cj-muted);
	fill: none;
	stroke-width: 1.7;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.cj-card-foot {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 10px;
	padding-top: 12px;
	border-top: 1px solid var(--cj-line);
}

.cj-card-price {
	color: var(--cj-ink);
	font-size: 17px;
	font-weight: 700;
}

.cj-card-price small {
	font-size: 12.5px;
	font-weight: 400;
	color: var(--cj-muted);
}

.cj-card-more {
	font-size: 14px;
	font-weight: 600;
	color: var(--cj-brand);
	white-space: nowrap;
}

.cj-card-full .cj-card-media img,
.cj-card-closed .cj-card-media img {
	filter: grayscale(.45);
}

/* ============================================================
   7. สถานะว่าง / แบ่งหน้า
   ============================================================ */

.cj-empty {
	text-align: center;
	padding: 48px 16px;
	background: var(--cj-soft);
	border-radius: var(--cj-radius);
}

.cj-empty-title {
	font-size: 18px;
	font-weight: 600;
	color: var(--cj-ink);
	margin-bottom: 4px;
}

.cj-pagination {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 14px;
	margin: 32px 0 8px;
	font-size: 15px;
	flex-wrap: wrap;
}

.cj-page-btn {
	padding: 9px 18px;
	border: 1px solid var(--cj-line);
	border-radius: 999px;
	color: var(--cj-ink);
	font-weight: 500;
}

.cj-page-btn:hover {
	text-decoration: none;
	border-color: var(--cj-brand);
	color: var(--cj-brand);
}

.cj-page-now {
	color: var(--cj-muted);
	font-size: 14px;
}

.cj-past-toggle {
	text-align: center;
	margin: 28px 0 0;
	font-size: 14.5px;
}

/* ============================================================
   8. หน้าโปรแกรมทัวร์
   ============================================================ */

.cj-trip-hero-media {
	position: relative;
	aspect-ratio: 4 / 3;
	background: var(--cj-soft);
	overflow: hidden;
}

.cj-trip-hero-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

@media (min-width: 768px) {
	.cj-trip-hero-media {
		aspect-ratio: 21 / 9;
		max-height: 68vh;
	}
}

.cj-trip-hero-body {
	padding-top: 22px;
	padding-bottom: 6px;
}

.cj-trip-dest {
	margin: 0 0 6px;
	color: var(--cj-muted);
	font-size: 14px;
}

.cj-trip-title {
	font-size: 25px;
	margin: 0 0 18px;
}

@media (min-width: 768px) {
	.cj-trip-title {
		font-size: 38px;
	}

	.cj-trip-hero-body {
		padding-top: 32px;
	}
}

.cj-facts {
	list-style: none;
	margin: 0;
	padding: 16px;
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 14px 12px;
	background: var(--cj-soft);
	border-radius: var(--cj-radius);
}

@media (min-width: 768px) {
	.cj-facts {
		grid-template-columns: repeat(4, 1fr);
		padding: 20px 24px;
	}
}

.cj-fact-label {
	display: block;
	font-size: 12.5px;
	color: var(--cj-muted);
	margin-bottom: 2px;
}

.cj-fact-value {
	display: block;
	font-size: 15px;
	font-weight: 600;
	color: var(--cj-ink);
	line-height: 1.5;
}

.cj-fact-price small {
	font-size: 12.5px;
	font-weight: 400;
	color: var(--cj-muted);
}

/* เมนูลัดในหน้า */
.cj-anchors {
	position: sticky;
	top: var(--cj-header-h);
	z-index: 40;
	background: rgba(251, 249, 245, .94);
	backdrop-filter: saturate(180%) blur(10px);
	border-bottom: 1px solid var(--cj-line);
	margin-top: 24px;
}

.cj-anchors-inner {
	display: flex;
	gap: 22px;
	overflow-x: auto;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}

.cj-anchors-inner::-webkit-scrollbar {
	display: none;
}

.cj-anchors a {
	flex: 0 0 auto;
	padding: 13px 0;
	color: var(--cj-body);
	font-size: 15px;
	font-weight: 500;
	white-space: nowrap;
	border-bottom: 2px solid transparent;
}

.cj-anchors a:hover,
.cj-anchors a.is-active {
	color: var(--cj-brand);
	border-bottom-color: var(--cj-brand);
	text-decoration: none;
}

.cj-trip-body {
	padding-top: 8px;
	padding-bottom: 40px;
	max-width: 820px;
}

.cj-section {
	padding: 30px 0;
	border-bottom: 1px solid var(--cj-line);
}

.cj-section:last-of-type {
	border-bottom: 0;
}

.cj-h2 {
	font-size: 21px;
	margin: 0 0 16px;
}

@media (min-width: 768px) {
	.cj-h2 {
		font-size: 25px;
	}

	.cj-section {
		padding: 40px 0;
	}
}

.cj-section-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 16px;
}

.cj-section-head .cj-h2 {
	margin: 0;
}

.cj-toggle-all {
	background: none;
	border: 1px solid var(--cj-line);
	border-radius: 999px;
	padding: 6px 14px;
	font-size: 13.5px;
	color: var(--cj-body);
	cursor: pointer;
	white-space: nowrap;
}

.cj-toggle-all:hover {
	border-color: var(--cj-brand);
	color: var(--cj-brand);
}

/* เนื้อหาแบบข้อความ */
.cj-prose {
	color: var(--cj-body);
	font-size: 16px;
	line-height: 1.85;
}

.cj-prose > *:last-child {
	margin-bottom: 0;
}

.cj-prose h2,
.cj-prose h3 {
	margin-top: 1.4em;
	font-size: 19px;
}

.cj-prose ul,
.cj-prose ol {
	padding-left: 1.3em;
	margin: 0 0 1em;
}

.cj-prose li {
	margin-bottom: .4em;
}

.cj-prose img {
	border-radius: var(--cj-radius-sm);
	margin: 1em 0;
}

.cj-prose blockquote {
	margin: 1.2em 0;
	padding: 2px 0 2px 18px;
	border-left: 3px solid var(--cj-brand);
	color: var(--cj-ink);
}

/* โปรแกรมวันต่อวัน */
.cj-program {
	display: grid;
	gap: 12px;
}

.cj-day {
	background: var(--cj-card);
	border: 1px solid var(--cj-line);
	border-radius: var(--cj-radius);
	overflow: hidden;
}

.cj-day[open] {
	box-shadow: var(--cj-shadow-sm);
}

.cj-day-summary {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 15px 16px;
	cursor: pointer;
	list-style: none;
	user-select: none;
}

.cj-day-summary::-webkit-details-marker {
	display: none;
}

.cj-day-badge {
	flex: 0 0 auto;
	background: var(--cj-brand);
	color: #fff;
	font-size: 12.5px;
	font-weight: 600;
	padding: 4px 11px;
	border-radius: 999px;
	white-space: nowrap;
}

.cj-day-heading {
	flex: 1 1 auto;
	color: var(--cj-ink);
	font-weight: 600;
	font-size: 16px;
	line-height: 1.55;
}

.cj-day-arrow {
	flex: 0 0 auto;
	width: 11px;
	height: 11px;
	border-right: 2px solid var(--cj-muted);
	border-bottom: 2px solid var(--cj-muted);
	transform: rotate(45deg);
	transition: transform .2s ease;
	margin-top: -4px;
}

.cj-day[open] .cj-day-arrow {
	transform: rotate(-135deg);
	margin-top: 4px;
}

.cj-day-content {
	margin: 0 16px;
	padding: 14px 0 16px;
	border-top: 1px solid var(--cj-line);
}

.cj-meal-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin: 14px 0 0;
	font-size: 13.5px;
}

.cj-meal-label {
	color: var(--cj-muted);
}

.cj-meal {
	padding: 3px 11px;
	border-radius: 999px;
	background: var(--cj-soft);
	color: #a9b2b9;
	text-decoration: line-through;
}

.cj-meal.is-on {
	background: rgba(47, 93, 74, .13);
	color: var(--cj-forest);
	text-decoration: none;
	font-weight: 500;
}

/* แกลเลอรี */
.cj-gallery {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 8px;
}

@media (min-width: 620px) {
	.cj-gallery {
		grid-template-columns: repeat(3, 1fr);
		gap: 10px;
	}
}

@media (min-width: 1000px) {
	.cj-gallery {
		grid-template-columns: repeat(4, 1fr);
	}
}

.cj-gallery-item {
	position: relative;
	padding: 0;
	border: 0;
	background: var(--cj-soft);
	border-radius: var(--cj-radius-sm);
	overflow: hidden;
	aspect-ratio: 1 / 1;
	cursor: zoom-in;
}

.cj-gallery-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .35s ease;
}

.cj-gallery-item:hover img {
	transform: scale(1.05);
}

/* CTA */
.cj-cta {
	text-align: center;
	background: var(--cj-soft);
	border-radius: var(--cj-radius);
	padding: 28px 20px;
	border-bottom: 0;
	margin-top: 12px;
}

.cj-cta-sub {
	color: var(--cj-muted);
	font-size: 15px;
	margin-bottom: 18px;
}

.cj-cta-actions {
	display: grid;
	gap: 10px;
	max-width: 380px;
	margin: 0 auto;
}

.cj-back {
	margin-top: 24px;
	font-size: 15px;
}

/* ============================================================
   9. แถบล่างสำหรับมือถือ
   ============================================================ */

.cj-sticky-bar {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 70;
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
	background: rgba(251, 249, 245, .97);
	backdrop-filter: blur(10px);
	border-top: 1px solid var(--cj-line);
	box-shadow: 0 -4px 20px rgba(20, 24, 27, .07);
}

.cj-sticky-info {
	flex: 1 1 auto;
	min-width: 0;
	line-height: 1.3;
}

.cj-sticky-price {
	display: block;
	font-size: 16px;
	font-weight: 700;
	color: var(--cj-ink);
	white-space: nowrap;
}

.cj-sticky-note {
	display: block;
	font-size: 12px;
	color: var(--cj-muted);
}

.cj-sticky-bar .cj-btn {
	min-height: 42px;
	padding: 8px 16px;
	font-size: 14.5px;
	flex: 0 0 auto;
}

body.cj-single-trip {
	padding-bottom: 78px;
}

@media (min-width: 900px) {
	.cj-sticky-bar {
		display: none;
	}

	body.cj-single-trip {
		padding-bottom: 0;
	}
}

/* ============================================================
   10. กล่องดูรูปขนาดใหญ่
   ============================================================ */

.cj-lightbox {
	position: fixed;
	inset: 0;
	z-index: 200;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(10, 12, 14, .94);
	padding: 16px;
}

.cj-lightbox[hidden] {
	display: none;
}

.cj-lb-img {
	max-width: 100%;
	max-height: 86vh;
	object-fit: contain;
	border-radius: 6px;
	user-select: none;
}

.cj-lightbox button {
	position: absolute;
	background: rgba(255, 255, 255, .12);
	color: #fff;
	border: 0;
	border-radius: 50%;
	cursor: pointer;
	line-height: 1;
	display: flex;
	align-items: center;
	justify-content: center;
}

.cj-lb-close {
	top: max(14px, env(safe-area-inset-top));
	right: 14px;
	width: 44px;
	height: 44px;
	font-size: 28px;
}

.cj-lb-prev,
.cj-lb-next {
	top: 50%;
	transform: translateY(-50%);
	width: 48px;
	height: 48px;
	font-size: 34px;
	padding-bottom: 4px;
}

.cj-lb-prev {
	left: 10px;
}

.cj-lb-next {
	right: 10px;
}

.cj-lb-count {
	position: absolute;
	bottom: max(18px, env(safe-area-inset-bottom));
	left: 50%;
	transform: translateX(-50%);
	color: rgba(255, 255, 255, .8);
	font-size: 14px;
}

/* ============================================================
   11. ฟอร์ม
   ============================================================ */

.cj-form-hp {
	position: absolute;
	left: -9999px;
}

.cj-form label {
	display: block;
	font-size: 14px;
	color: var(--cj-body);
	margin-bottom: 5px;
	font-weight: 500;
}

.cj-req {
	color: var(--cj-red);
}

.cj-form input,
.cj-form textarea {
	width: 100%;
	min-height: 48px;
	padding: 11px 14px;
	background: var(--cj-card);
	border: 1px solid var(--cj-line);
	border-radius: var(--cj-radius-sm);
	font-size: 16px;
}

.cj-form textarea {
	min-height: 110px;
	line-height: 1.7;
	resize: vertical;
}

.cj-form input:focus,
.cj-form textarea:focus {
	outline: none;
	border-color: var(--cj-brand);
	box-shadow: 0 0 0 3px rgba(var(--cj-brand-rgb), .12);
}

.cj-form-grid {
	display: grid;
	gap: 14px;
}

@media (min-width: 620px) {
	.cj-form-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

.cj-form-grid p,
.cj-form-full {
	margin: 0 0 14px;
}

.cj-form-full button {
	max-width: 360px;
}

.cj-alert {
	padding: 13px 16px;
	border-radius: var(--cj-radius-sm);
	margin-bottom: 16px;
	font-size: 15px;
}

.cj-alert-ok {
	background: rgba(6, 150, 90, .1);
	color: var(--cj-forest);
}

.cj-alert-err {
	background: rgba(176, 42, 42, .09);
	color: var(--cj-red);
}

.cj-search-simple {
	display: flex;
	gap: 8px;
}

.cj-search-simple input {
	flex: 1;
	min-height: 46px;
	padding: 10px 14px;
	border: 1px solid var(--cj-line);
	border-radius: var(--cj-radius-sm);
	font-size: 16px;
}

/* ============================================================
   12. หน้าเนื้อหาทั่วไป และท้ายเว็บ
   ============================================================ */

.cj-page {
	padding-top: 32px;
	padding-bottom: 56px;
	max-width: 820px;
}

.cj-page-title {
	font-size: 26px;
	margin-bottom: 16px;
}

@media (min-width: 768px) {
	.cj-page-title {
		font-size: 34px;
	}
}

.cj-page-media {
	margin-bottom: 22px;
}

.cj-page-media img {
	border-radius: var(--cj-radius);
}

.cj-postlist {
	display: grid;
	gap: 22px;
}

.cj-postitem {
	display: grid;
	gap: 14px;
	padding-bottom: 22px;
	border-bottom: 1px solid var(--cj-line);
}

@media (min-width: 620px) {
	.cj-postitem {
		grid-template-columns: 220px 1fr;
		align-items: start;
	}
}

.cj-postitem-media img {
	border-radius: var(--cj-radius-sm);
	width: 100%;
	object-fit: cover;
}

.cj-postitem-title {
	font-size: 19px;
	margin-bottom: 4px;
}

.cj-postitem-title a {
	color: var(--cj-ink);
}

.cj-postitem-date {
	font-size: 13px;
	color: var(--cj-muted);
	margin-bottom: 8px;
}

.cj-postitem-excerpt {
	font-size: 15px;
	margin: 0;
}

.cj-404 {
	text-align: center;
	padding-top: 64px;
	padding-bottom: 80px;
}

.cj-footer {
	background: var(--cj-soft);
	border-top: 1px solid var(--cj-line);
	padding: 34px 0 30px;
	margin-top: 20px;
}

.cj-footer-top {
	display: grid;
	gap: 18px;
	padding-bottom: 20px;
	border-bottom: 1px solid var(--cj-line);
}

@media (min-width: 768px) {
	.cj-footer-top {
		grid-template-columns: 1fr auto;
		align-items: center;
	}
}

.cj-footer-name {
	font-size: 17px;
	font-weight: 700;
	color: var(--cj-ink);
	margin: 0 0 2px;
}

.cj-footer-desc {
	margin: 0;
	color: var(--cj-muted);
	font-size: 14.5px;
}

.cj-footer-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.cj-footer-text {
	margin: 18px 0 0;
	font-size: 14.5px;
	color: var(--cj-muted);
}

.cj-copy {
	margin: 16px 0 0;
	font-size: 13.5px;
	color: var(--cj-muted);
}

/* ============================================================
   13. รอบเดินทาง / จุดเด่น / ไฮไลท์ / ตารางสรุป
   ============================================================ */

.cj-section-plain {
	border-bottom: 0;
	padding-top: 8px;
}

.cj-section-sub {
	margin: -8px 0 16px;
	color: var(--cj-muted);
	font-size: 14.5px;
}

.cj-h3 {
	font-size: 16px;
	margin: 0 0 10px;
}

.cj-btn-sm {
	min-height: 40px;
	padding: 6px 16px;
	font-size: 13.5px;
}

.cj-btn-fb {
	background: #1877f2;
	color: #fff;
}

.cj-card-rounds {
	margin: -6px 0 12px;
	font-size: 13px;
	font-weight: 600;
	color: var(--cj-brand);
}

/* รอบเดินทาง */
.cj-rounds {
	display: grid;
	gap: 10px;
}

.cj-round {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px 16px;
	padding: 14px 16px;
	background: var(--cj-card);
	border: 1px solid var(--cj-line);
	border-radius: var(--cj-radius);
}

.cj-round.is-past {
	background: var(--cj-soft);
	opacity: .72;
}

.cj-round-main {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 12px;
	min-width: 0;
}

.cj-round-tag {
	background: rgba(var(--cj-brand-rgb), .1);
	color: var(--cj-brand);
	font-size: 12.5px;
	font-weight: 600;
	padding: 3px 11px;
	border-radius: 999px;
	white-space: nowrap;
}

.cj-round-date {
	font-size: 16px;
	font-weight: 600;
	color: var(--cj-ink);
}

.cj-round-note {
	flex-basis: 100%;
	font-size: 13.5px;
	color: var(--cj-muted);
}

.cj-round-side {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}

.cj-round-price {
	font-size: 15px;
	font-weight: 700;
	color: var(--cj-ink);
	white-space: nowrap;
}

/* จุดเด่นของทริป */
.cj-features {
	display: grid;
	gap: 12px;
}

@media (min-width: 800px) {
	.cj-features {
		grid-template-columns: repeat(3, 1fr);
	}
}

.cj-feature {
	display: flex;
	align-items: flex-start;
	gap: 13px;
	padding: 16px;
	background: var(--cj-soft);
	border-radius: var(--cj-radius);
}

.cj-feature-icon {
	flex: 0 0 auto;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: rgba(var(--cj-brand-rgb), .1);
	display: flex;
	align-items: center;
	justify-content: center;
}

.cj-feature-icon svg {
	width: 21px;
	height: 21px;
	fill: none;
	stroke: var(--cj-brand);
	stroke-width: 1.7;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.cj-feature-title {
	margin: 0 0 2px;
	font-weight: 600;
	color: var(--cj-ink);
	font-size: 16px;
	line-height: 1.45;
}

.cj-feature-desc {
	margin: 0;
	font-size: 14px;
	color: var(--cj-body);
	line-height: 1.65;
}

/* ไฮไลท์ */
.cj-hl-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 10px;
}

@media (min-width: 700px) {
	.cj-hl-grid {
		grid-template-columns: repeat(3, 1fr);
		gap: 12px;
	}
}

.cj-hl-card {
	position: relative;
	display: block;
	width: 100%;
	padding: 0;
	border: 0;
	background: var(--cj-soft);
	border-radius: var(--cj-radius-sm);
	overflow: hidden;
	aspect-ratio: 4 / 3;
	cursor: zoom-in;
	text-align: left;
}

.cj-hl-card img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .35s ease;
}

.cj-hl-card:hover img {
	transform: scale(1.05);
}

.cj-hl-card .cj-hl-name {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 22px 12px 10px;
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, .72));
}

.cj-hl-card-text {
	aspect-ratio: auto;
	cursor: default;
	background: var(--cj-soft);
	padding: 14px 14px;
}

.cj-hl-card-text .cj-hl-name {
	position: static;
	padding: 0;
	color: var(--cj-ink);
	background: none;
}

.cj-hl-simple {
	display: grid;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

@media (min-width: 700px) {
	.cj-hl-simple {
		grid-template-columns: repeat(2, 1fr);
	}
}

.cj-hl-simple li {
	position: relative;
	padding: 9px 14px 9px 34px;
	background: var(--cj-soft);
	border-radius: var(--cj-radius-sm);
	font-size: 15px;
	color: var(--cj-ink);
	line-height: 1.6;
}

.cj-hl-simple li::before {
	content: "";
	position: absolute;
	left: 14px;
	top: 17px;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--cj-brand);
}

/* ตารางสรุปโปรแกรม */
.cj-table-wrap {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.cj-plan {
	width: 100%;
	border-collapse: collapse;
	font-size: 15px;
}

.cj-plan th {
	text-align: left;
	font-size: 13px;
	font-weight: 600;
	color: var(--cj-muted);
	padding: 0 12px 8px 0;
	border-bottom: 1px solid var(--cj-line);
	white-space: nowrap;
}

.cj-plan td {
	padding: 11px 12px 11px 0;
	border-bottom: 1px solid var(--cj-line);
	vertical-align: top;
	line-height: 1.6;
}

.cj-plan tr:last-child td {
	border-bottom: 0;
}

.cj-plan-day {
	font-weight: 700;
	color: var(--cj-brand);
	white-space: nowrap;
	width: 1%;
}

.cj-plan-hotel {
	color: var(--cj-body);
	font-size: 14.5px;
}

@media (max-width: 639px) {
	.cj-plan thead {
		display: none;
	}

	.cj-plan,
	.cj-plan tbody,
	.cj-plan tr,
	.cj-plan td {
		display: block;
		width: 100%;
	}

	.cj-plan tr {
		padding: 11px 0;
		border-bottom: 1px solid var(--cj-line);
	}

	.cj-plan td {
		padding: 0;
		border: 0;
	}

	.cj-plan td.cj-plan-day {
		display: inline-block;
		background: rgba(var(--cj-brand-rgb), .1);
		border-radius: 999px;
		padding: 2px 10px;
		font-size: 12.5px;
		margin-bottom: 5px;
		width: auto;
	}

	.cj-plan-hotel::before {
		content: "ที่พัก: ";
		color: var(--cj-muted);
	}
}

.cj-note {
	margin: 14px 0 0;
	padding: 11px 14px;
	background: var(--cj-soft);
	border-radius: var(--cj-radius-sm);
	font-size: 14px;
	color: var(--cj-muted);
	line-height: 1.7;
}

/* ============================================================
   14. รูปในโปรแกรมแต่ละวัน
   ============================================================ */

.cj-day-photos {
	display: grid;
	gap: 6px;
	margin-bottom: 15px;
}

.cj-day-photos .cj-photo {
	padding: 0;
	border: 0;
	background: var(--cj-soft);
	border-radius: 10px;
	overflow: hidden;
	cursor: zoom-in;
	aspect-ratio: 4 / 3;
}

.cj-day-photos .cj-photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .35s ease;
}

.cj-day-photos .cj-photo:hover img {
	transform: scale(1.04);
}

.cj-day-photos[data-count="1"] .cj-photo {
	aspect-ratio: 16 / 10;
}

.cj-day-photos[data-count="2"],
.cj-day-photos[data-count="3"],
.cj-day-photos[data-count="4"] {
	grid-template-columns: repeat(2, 1fr);
}

.cj-day-photos[data-count="3"] .cj-photo:first-child {
	grid-column: 1 / -1;
	aspect-ratio: 16 / 10;
}

@media (min-width: 700px) {
	.cj-day-photos {
		gap: 8px;
	}

	.cj-day-photos[data-count="3"] {
		grid-template-columns: repeat(3, 1fr);
	}

	.cj-day-photos[data-count="3"] .cj-photo:first-child {
		grid-column: auto;
		aspect-ratio: 4 / 3;
	}
}

.cj-day-hotel {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin: 12px 0 0;
	padding: 10px 12px;
	background: var(--cj-soft);
	border-radius: var(--cj-radius-sm);
	font-size: 14px;
	color: var(--cj-body);
	line-height: 1.6;
}

.cj-day-hotel svg {
	flex: 0 0 auto;
	width: 17px;
	height: 17px;
	margin-top: 2px;
	fill: none;
	stroke: var(--cj-muted);
	stroke-width: 1.6;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.cj-day-hotel strong {
	color: var(--cj-ink);
	font-weight: 600;
}

/* ============================================================
   15. ราคารวม / ไม่รวม และวิธีจอง
   ============================================================ */

.cj-incexc {
	display: grid;
	gap: 16px;
}

@media (min-width: 700px) {
	.cj-incexc {
		grid-template-columns: repeat(2, 1fr);
		gap: 20px;
	}
}

.cj-incexc > div {
	padding: 16px 18px;
	border-radius: var(--cj-radius);
	background: var(--cj-soft);
}

.cj-incexc ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.cj-incexc li {
	position: relative;
	padding-left: 26px;
	margin-bottom: 8px;
	font-size: 15px;
	line-height: 1.65;
}

.cj-incexc li:last-child {
	margin-bottom: 0;
}

.cj-inc li::before,
.cj-exc li::before {
	position: absolute;
	left: 0;
	top: 0;
	font-weight: 700;
}

.cj-inc li::before {
	content: "✓";
	color: var(--cj-forest);
}

.cj-exc li::before {
	content: "✕";
	color: var(--cj-red);
}

.cj-booking-steps {
	counter-reset: cj-step;
	list-style: none;
	margin: 0 auto 20px;
	padding: 0;
	max-width: 520px;
	text-align: left;
}

.cj-booking-steps li {
	counter-increment: cj-step;
	position: relative;
	padding: 8px 0 8px 38px;
	font-size: 15px;
	line-height: 1.7;
	color: var(--cj-body);
}

.cj-booking-steps li::before {
	content: counter(cj-step);
	position: absolute;
	left: 0;
	top: 9px;
	width: 25px;
	height: 25px;
	border-radius: 50%;
	background: var(--cj-brand);
	color: #fff;
	font-size: 13px;
	font-weight: 600;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* ============================================================
   16. จุดที่ใช้สีรอง (Sunrise Terracotta / Warm Sand) ตาม CI
   ============================================================ */

.cj-card-more,
.cj-card-rounds {
	color: var(--cj-accent);
}

.cj-round-tag {
	background: rgba(var(--cj-accent-rgb), .14);
	color: #a04a2e;
}

.cj-anchors a:hover,
.cj-anchors a.is-active {
	color: var(--cj-accent);
	border-bottom-color: var(--cj-accent);
}

.cj-hl-simple li::before {
	background: var(--cj-accent);
}

.cj-badge-few {
	color: #a04a2e;
}

.cj-card-media .cj-badge-few {
	color: #a04a2e;
}

.cj-feature {
	background: rgba(230, 214, 184, .34);
}

.cj-feature-icon {
	background: rgba(var(--cj-brand-rgb), .1);
}

.cj-feature:nth-child(2) .cj-feature-icon {
	background: rgba(var(--cj-accent-rgb), .16);
}

.cj-feature:nth-child(2) .cj-feature-icon svg {
	stroke: #b8543a;
}

.cj-feature:nth-child(3) .cj-feature-icon {
	background: rgba(47, 93, 74, .13);
}

.cj-feature:nth-child(3) .cj-feature-icon svg {
	stroke: var(--cj-forest);
}

.cj-h2 {
	position: relative;
	padding-left: 14px;
}

.cj-h2::before {
	content: "";
	position: absolute;
	left: 0;
	top: .28em;
	bottom: .28em;
	width: 4px;
	border-radius: 3px;
	background: var(--cj-accent);
}

.cj-hero-title,
.cj-trip-title,
.cj-page-title {
	padding-left: 0;
}

.cj-hero-title::before,
.cj-trip-title::before,
.cj-page-title::before {
	content: none;
}

.cj-btn-primary:hover {
	background: #17304f;
	opacity: 1;
}

/* พิมพ์หน้าโปรแกรมทัวร์ */
@media print {
	.cj-header,
	.cj-anchors,
	.cj-sticky-bar,
	.cj-footer,
	.cj-cta,
	#cj-form,
	.cj-back {
		display: none !important;
	}

	.cj-day-content {
		display: block !important;
	}
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: .001ms !important;
		transition-duration: .001ms !important;
		scroll-behavior: auto !important;
	}
}
