/* Tour Booking Pro — frontend */
:root {
	--tbp-primary: #0e7c66;
	--tbp-text: #1d2327;
	--tbp-muted: #646970;
	--tbp-line: #e4e7eb;
	--tbp-soft: #f5f7f8;
	--tbp-radius: 14px;
}

.tbp-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .4em;
	padding: .7em 1.4em; border: 2px solid var(--tbp-primary); border-radius: 999px;
	background: var(--tbp-primary); color: #fff; font: inherit; font-weight: 600; line-height: 1.2;
	cursor: pointer; text-decoration: none; transition: filter .15s, transform .05s;
}
.tbp-btn:hover { filter: brightness(1.08); color: #fff; }
.tbp-btn:active { transform: translateY(1px); }
.tbp-btn:focus-visible { outline: 3px solid color-mix(in srgb, var(--tbp-primary) 40%, transparent); outline-offset: 2px; }
.tbp-btn[disabled], .tbp-btn--disabled { opacity: .5; cursor: not-allowed; }
.tbp-btn--ghost { background: transparent; color: var(--tbp-primary); }
.tbp-btn--ghost:hover { color: var(--tbp-primary); background: color-mix(in srgb, var(--tbp-primary) 8%, transparent); }
.tbp-btn--lg { padding: .9em 2em; font-size: 1.05em; }
.tbp-btn--block { width: 100%; }

/* กล่องข้อมูลทัวร์ */
.tbp-info {
	display: grid; gap: 1.25rem; margin: 0 0 2rem; padding: 1.5rem;
	border: 1px solid var(--tbp-line); border-radius: var(--tbp-radius); background: #fff;
	box-shadow: 0 6px 24px rgba(0, 0, 0, .05);
}
.tbp-info__prices { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem; }
.tbp-price { padding: 1rem; border-radius: 10px; background: var(--tbp-soft); }
.tbp-price__label { display: block; color: var(--tbp-muted); font-size: .9em; }
.tbp-price__value { font-size: 1.6em; font-weight: 700; color: var(--tbp-primary); }
.tbp-price__unit { color: var(--tbp-muted); font-size: .85em; margin-left: .25em; }
.tbp-info__meta { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: .5rem 1.5rem; }
.tbp-info__meta li { margin: 0; }
.tbp-info__meta span { display: block; font-size: .8em; color: var(--tbp-muted); text-transform: uppercase; letter-spacing: .03em; }

.tbp-extras { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; margin: 2rem 0; }
.tbp-extras__col { padding: 1.25rem; border-radius: var(--tbp-radius); background: var(--tbp-soft); }
.tbp-extras__col h3 { margin: 0 0 .5rem; font-size: 1.05em; }
.tbp-extras__col ul { margin: 0; padding-left: 1.2em; }
.tbp-extras__col--inc li::marker { content: '✓  '; color: var(--tbp-primary); }
.tbp-extras__col--exc li::marker { content: '✕  '; color: #b32d2e; }
.tbp-bottom-cta { margin: 2rem 0; }

/* กริดรายการทัวร์ */
.tbp-grid { display: grid; grid-template-columns: repeat(var(--tbp-cols, 3), minmax(0, 1fr)); gap: 1.5rem; }
@media (max-width: 900px) { .tbp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .tbp-grid { grid-template-columns: 1fr; } }
.tbp-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--tbp-line); border-radius: var(--tbp-radius); background: #fff; transition: box-shadow .2s, transform .2s; }
.tbp-card:hover { box-shadow: 0 10px 30px rgba(0, 0, 0, .08); transform: translateY(-2px); }
.tbp-card__media { display: block; aspect-ratio: 4 / 3; background: var(--tbp-soft); }
.tbp-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tbp-card__placeholder { display: block; width: 100%; height: 100%; background: linear-gradient(135deg, var(--tbp-soft), var(--tbp-line)); }
.tbp-card__body { display: flex; flex-direction: column; gap: .5rem; flex: 1; padding: 1rem 1.1rem 1.2rem; }
.tbp-card__tag { align-self: flex-start; padding: .15em .7em; border-radius: 999px; font-size: .75em; background: color-mix(in srgb, var(--tbp-primary) 12%, transparent); color: var(--tbp-primary); font-weight: 600; }
.tbp-card__title { margin: 0; font-size: 1.1em; line-height: 1.35; }
.tbp-card__title a { color: inherit; text-decoration: none; }
.tbp-card__meta { margin: 0; color: var(--tbp-muted); font-size: .9em; }
.tbp-card__prices { display: flex; gap: 1rem; flex-wrap: wrap; font-size: .92em; color: var(--tbp-muted); }
.tbp-card__prices strong { color: var(--tbp-primary); font-size: 1.1em; }
.tbp-card__actions { display: flex; gap: .5rem; margin-top: auto; padding-top: .5rem; }
.tbp-card__actions .tbp-btn { flex: 1; padding: .6em 1em; }

/* ป๊อปอัป */
html.tbp-lock { overflow: hidden; }
.tbp-modal[hidden] { display: none; }
.tbp-modal { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; padding: 16px; color: var(--tbp-text); font-size: 16px; line-height: 1.5; }
.tbp-modal__backdrop { position: absolute; inset: 0; background: rgba(15, 23, 32, .6); animation: tbpFade .2s; }
.tbp-modal__dialog {
	position: relative; width: 100%; max-width: 620px; max-height: calc(100vh - 32px); overflow-y: auto;
	background: #fff; border-radius: 18px; box-shadow: 0 24px 60px rgba(0, 0, 0, .3); animation: tbpUp .25s ease-out; outline: none;
}
/* ปุ่มปิด: รีเซ็ตสไตล์ปุ่มของธีมทั้งหมด ไอคอนอยู่กลางวงกลมพอดี และติดมุมขวาบนแม้เลื่อนลง */
.tbp-modal .tbp-modal__close {
	all: unset; box-sizing: border-box;
	position: sticky; top: 12px; z-index: 5;
	display: flex; align-items: center; justify-content: center;
	width: 40px; height: 40px; margin: 12px 12px -52px auto;
	border-radius: 50%; background: rgba(255, 255, 255, .96); color: #1d2327;
	box-shadow: 0 2px 10px rgba(0, 0, 0, .18); cursor: pointer;
	transition: background .15s, color .15s, transform .15s;
}
.tbp-modal .tbp-modal__close svg { display: block; width: 20px; height: 20px; flex: none; }
.tbp-modal .tbp-modal__close:hover { background: #1d2327; color: #fff; transform: rotate(90deg); }
.tbp-modal .tbp-modal__close:focus-visible { outline: 3px solid color-mix(in srgb, var(--tbp-primary) 45%, transparent); outline-offset: 2px; }
.tbp-modal__body { padding: 0 0 1.25rem; }
@keyframes tbpFade { from { opacity: 0; } }
@keyframes tbpUp { from { opacity: 0; transform: translateY(16px); } }
@media (max-width: 600px) {
	.tbp-modal { padding: 0; align-items: flex-end; }
	.tbp-modal__dialog { max-height: 94vh; border-radius: 18px 18px 0 0; }
}

.tbp-head { position: relative; }
.tbp-head__img { display: block; width: 100%; height: 160px; object-fit: cover; }
.tbp-head__text { padding: 1rem 1.25rem 0; }
.tbp-head h2 { margin: 0 2rem .25rem 0; font-size: 1.3em; line-height: 1.3; }
.tbp-head__meta { display: flex; flex-wrap: wrap; gap: .25rem 1rem; color: var(--tbp-muted); font-size: .9em; }

.tbp-steps { display: flex; gap: .5rem; list-style: none; margin: 1rem 1.25rem 0; padding: 0; font-size: .78em; color: var(--tbp-muted); }
.tbp-steps li { flex: 1; display: flex; align-items: center; gap: .4em; margin: 0; padding-top: .5rem; border-top: 3px solid var(--tbp-line); }
.tbp-steps li span { display: inline-grid; place-items: center; width: 1.6em; height: 1.6em; border-radius: 50%; background: var(--tbp-line); font-weight: 700; flex: none; }
.tbp-steps li.is-active, .tbp-steps li.is-done { color: var(--tbp-text); border-color: var(--tbp-primary); }
.tbp-steps li.is-active span, .tbp-steps li.is-done span { background: var(--tbp-primary); color: #fff; }

.tbp-step { padding: 1rem 1.25rem 0; }
.tbp-field { margin-bottom: 1rem; }
.tbp-field > label { display: block; margin-bottom: .35rem; font-weight: 600; font-size: .92em; }
.tbp-field em { color: #b32d2e; font-style: normal; }
.tbp-field input, .tbp-field select, .tbp-field textarea {
	width: 100%; box-sizing: border-box; padding: .65em .8em; border: 1px solid #c3c4c7; border-radius: 10px; font: inherit; background: #fff; color: inherit;
}
.tbp-field input:focus, .tbp-field select:focus, .tbp-field textarea:focus { outline: none; border-color: var(--tbp-primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--tbp-primary) 20%, transparent); }

.tbp-pax { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .75rem 0; border-bottom: 1px solid var(--tbp-line); }
.tbp-pax:last-child { border-bottom: 0; }
.tbp-pax__label { display: flex; flex-direction: column; }
.tbp-pax__label small { color: var(--tbp-muted); }
.tbp-pax__price { color: var(--tbp-primary); font-weight: 600; font-size: .92em; }
.tbp-stepper { display: flex; align-items: center; border: 1px solid #c3c4c7; border-radius: 999px; overflow: hidden; flex: none; }
.tbp-stepper button { width: 40px; height: 40px; border: 0; background: transparent; font-size: 20px; cursor: pointer; color: var(--tbp-primary); padding: 0; }
.tbp-stepper button:hover:not([disabled]) { background: var(--tbp-soft); }
.tbp-stepper button[disabled] { color: #c3c4c7; cursor: not-allowed; }
.tbp-stepper output { min-width: 2.2em; text-align: center; font-weight: 700; }

.tbp-details { margin: 0 0 1rem; padding: .75rem 1rem; border-radius: 10px; background: var(--tbp-soft); font-size: .92em; }
.tbp-details summary { cursor: pointer; font-weight: 600; }
.tbp-list { margin-top: .75rem; }
.tbp-list ul { margin: .25rem 0 0; padding-left: 1.2em; }
.tbp-list--inc li::marker { content: '✓  '; color: var(--tbp-primary); }
.tbp-list--exc li::marker { content: '✕  '; color: #b32d2e; }

.tbp-breakdown { padding: 1rem; border-radius: 12px; background: var(--tbp-soft); }
.tbp-breakdown > div { display: flex; justify-content: space-between; gap: 1rem; padding: .2rem 0; }
.tbp-breakdown__total { margin-top: .5rem; padding-top: .6rem !important; border-top: 1px dashed #c3c4c7; font-weight: 700; font-size: 1.15em; }
.tbp-breakdown__total span:last-child { color: var(--tbp-primary); }

.tbp-review table { width: 100%; border-collapse: collapse; margin: 0; }
.tbp-review th, .tbp-review td { padding: .55rem 0; border-bottom: 1px solid var(--tbp-line); text-align: left; vertical-align: top; font-size: .95em; }
.tbp-review th { width: 34%; color: var(--tbp-muted); font-weight: 500; padding-right: 1rem; }
.tbp-grand { display: flex; justify-content: space-between; align-items: center; margin: 1rem 0; padding: 1rem 1.1rem; border-radius: 12px; background: color-mix(in srgb, var(--tbp-primary) 10%, #fff); }
.tbp-grand strong { font-size: 1.5em; color: var(--tbp-primary); }

.tbp-terms { margin-bottom: 1rem; }
.tbp-terms__text { max-height: 120px; overflow-y: auto; padding: .75rem; border: 1px solid var(--tbp-line); border-radius: 10px; font-size: .85em; color: var(--tbp-muted); margin-bottom: .5rem; }
.tbp-terms label { display: flex; gap: .5em; align-items: flex-start; cursor: pointer; }

.tbp-muted { color: var(--tbp-muted); font-size: .88em; }
.tbp-error { margin: 1rem 0 0; padding: .7rem 1rem; border-radius: 10px; background: #fcf0f1; color: #8a2424; font-size: .92em; }
.tbp-error[hidden] { display: none; }
.tbp-actions { display: flex; justify-content: space-between; gap: .75rem; margin-top: 1.25rem; }
.tbp-actions .tbp-btn--pay { flex: 1; }

.tbp-result { text-align: center; }
.tbp-result__icon { display: grid; place-items: center; width: 56px; height: 56px; margin: .5rem auto; border-radius: 50%; background: var(--tbp-primary); color: #fff; font-size: 28px; font-weight: 700; }
.tbp-result h3 { margin: .25rem 0 .5rem; }
.tbp-result .tbp-summary-table { margin: 1rem 0; text-align: left; font-size: .92em; }
.tbp-pay { margin-top: 1rem; padding: 1rem; border: 2px dashed var(--tbp-primary); border-radius: 12px; text-align: center; }
.tbp-pay h3 { margin: 0 0 .75rem; font-size: 1.05em; }
.tbp-pay__bank { margin-bottom: .75rem; }
.tbp-qr { display: inline-block; padding: 10px; background: #fff; border-radius: 8px; }
.tbp-qr img, .tbp-qr canvas { display: block; }
.tbp-spinner { width: 40px; height: 40px; margin: 1.5rem auto 1rem; border: 4px solid var(--tbp-line); border-top-color: var(--tbp-primary); border-radius: 50%; animation: tbpSpin .8s linear infinite; }
@keyframes tbpSpin { to { transform: rotate(360deg); } }

/* หน้าตรวจสอบการจอง */
.tbp-lookup { display: grid; grid-template-columns: 1fr 1fr auto; gap: .75rem; align-items: end; margin-bottom: 1.5rem; }
.tbp-lookup label { display: flex; flex-direction: column; gap: .3rem; font-weight: 600; font-size: .92em; }
.tbp-lookup input { padding: .65em .8em; border: 1px solid #c3c4c7; border-radius: 10px; font: inherit; }
@media (max-width: 600px) { .tbp-lookup { grid-template-columns: 1fr; } }
.tbp-lookup__result { padding: 1.25rem; border: 1px solid var(--tbp-line); border-radius: var(--tbp-radius); }
.tbp-status { display: inline-block; padding: .15em .8em; border-radius: 999px; font-weight: 600; font-size: .9em; background: var(--tbp-soft); }
.tbp-status--pending { background: #fcf9e8; color: #8a6d00; }
.tbp-status--paid, .tbp-status--confirmed { background: #edfaef; color: #1a7a33; }
.tbp-status--cancelled { background: #fcf0f1; color: #8a2424; }

@media (prefers-reduced-motion: reduce) {
	.tbp-modal__backdrop, .tbp-modal__dialog, .tbp-card { animation: none; transition: none; }
}

/* ===================== ปุ่มจอง (สีตั้งค่าได้) ===================== */
.tbp-btn--book { background: var(--tbp-btn, #facc15); border-color: var(--tbp-btn, #facc15); color: var(--tbp-btn-text, #1d2327); border-radius: 12px; }
.tbp-btn--book:hover { color: var(--tbp-btn-text, #1d2327); filter: brightness(1.04); box-shadow: 0 6px 18px color-mix(in srgb, var(--tbp-btn, #facc15) 45%, transparent); }

/* ===================== หน้าทัวร์ดีไซน์ใหม่ ===================== */
.tbp-main { width: 100%; }
.tbp-single { --tbp-side-w: 340px; max-width: 1120px; margin: 0 auto; padding: 24px 16px 64px; box-sizing: border-box; color: var(--tbp-text); }
.tbp-single *, .tbp-single *::before, .tbp-single *::after { box-sizing: border-box; }
.tbp-crumbs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 18px; font-size: .85em; color: var(--tbp-muted); }
.tbp-crumbs a { color: var(--tbp-muted); text-decoration: none; }
.tbp-crumbs a:hover { color: var(--tbp-primary); }
.tbp-crumbs [aria-current] { color: var(--tbp-text); }

.tbp-single__grid { display: grid; grid-template-columns: minmax(0, 1fr) var(--tbp-side-w); gap: 36px; align-items: start; }
.tbp-single__side { position: sticky; top: 24px; }
.admin-bar .tbp-single__side { top: 56px; }

/* แกลเลอรี */
.tbp-gallery { margin-bottom: 28px; }
.tbp-gallery__main { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 16px; background: #c9ccd1; box-shadow: 0 10px 30px rgba(0, 0, 0, .08); }
.tbp-gallery__main::before { content: ''; position: absolute; inset: -20px; background: var(--tbp-bg) center / cover no-repeat; filter: blur(18px) brightness(.85); opacity: .7; }
.tbp-gallery__img { position: relative; display: block; width: 100%; height: 100%; object-fit: contain; cursor: zoom-in; }
.tbp-gallery__zoom, .tbp-gallery__nav { position: absolute; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .45); color: #fff; cursor: pointer; transition: background .15s; }
.tbp-gallery__zoom:hover, .tbp-gallery__nav:hover { background: rgba(0, 0, 0, .7); }
.tbp-gallery__zoom { right: 14px; bottom: 14px; width: 42px; height: 42px; }
.tbp-gallery__nav { top: 50%; width: 42px; height: 42px; transform: translateY(-50%); }
.tbp-gallery__nav--prev { left: 14px; }
.tbp-gallery__nav--next { right: 14px; }
.tbp-gallery__count { position: absolute; left: 14px; bottom: 14px; padding: 4px 10px; border-radius: 999px; background: rgba(0, 0, 0, .5); color: #fff; font-size: .8em; }
.tbp-gallery__thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; padding-bottom: 4px; }
.tbp-gallery__thumbs button { flex: none; width: 84px; height: 64px; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; cursor: pointer; opacity: .65; background: none; transition: opacity .15s, border-color .15s; }
.tbp-gallery__thumbs button.is-active, .tbp-gallery__thumbs button:hover { opacity: 1; border-color: var(--tbp-primary); }
.tbp-gallery__thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }

.tbp-single__title { margin: 0 0 16px; font-size: clamp(1.7rem, 3.4vw, 2.5rem); line-height: 1.2; font-weight: 700; }
.tbp-single__lead { font-size: 1.08em; color: var(--tbp-muted); margin: 0 0 24px; }
.tbp-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.tbp-chip { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border: 1px solid var(--tbp-line); border-radius: 10px; background: #fff; font-size: .95em; box-shadow: 0 2px 8px rgba(0, 0, 0, .04); color: var(--tbp-text); text-decoration: none; }
.tbp-chip .tbp-ico { color: var(--tbp-primary); flex: none; }
.tbp-chip--link:hover { border-color: var(--tbp-primary); color: var(--tbp-primary); }

/* การ์ดหัวข้อ */
.tbp-block { margin: 0 0 22px; padding: 26px 30px; border: 1px solid var(--tbp-line); border-radius: 16px; background: #fff; box-shadow: 0 4px 18px rgba(0, 0, 0, .04); }
.tbp-block > h2 { margin: 0 0 16px; padding-bottom: 12px; border-bottom: 1px solid var(--tbp-line); font-size: 1.2em; font-weight: 700; }
.tbp-block__text { line-height: 1.75; color: #3c434a; }
.tbp-block__text > :first-child { margin-top: 0; }
.tbp-block__text > :last-child { margin-bottom: 0; }
.tbp-block__text ul { padding-left: 1.3em; }
.tbp-block__text li { margin-bottom: .3em; }
.tbp-block__text img { max-width: 100%; height: auto; border-radius: 10px; }
.tbp-block__img { margin: 0 0 16px; }
.tbp-block__img img { display: block; width: 100%; height: auto; border-radius: 12px; }
.tbp-block--extras .tbp-extras { margin: 0; }

.tbp-timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.tbp-timeline::before { content: ''; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: var(--tbp-line); }
.tbp-timeline li { position: relative; display: grid; grid-template-columns: 110px 1fr; gap: 12px; margin: 0; padding: 0 0 16px 30px; }
.tbp-timeline li::before { content: ''; position: absolute; left: 0; top: 5px; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 3px solid var(--tbp-primary); }
.tbp-timeline__time { font-weight: 700; color: var(--tbp-primary); }
@media (max-width: 600px) { .tbp-timeline li { grid-template-columns: 1fr; gap: 2px; } }

/* กล่องราคาด้านข้าง */
.tbp-side { padding: 24px; border: 1px solid var(--tbp-line); border-radius: 18px; background: #fff; box-shadow: 0 12px 36px rgba(0, 0, 0, .07); }
.tbp-side__note { margin: 0 0 6px; font-size: .85em; color: var(--tbp-muted); }
.tbp-side__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-bottom: 6px; }
.tbp-side__now { font-size: 2.2em; font-weight: 800; line-height: 1.1; color: var(--tbp-primary); }
.tbp-side__unit { font-size: .85em; color: var(--tbp-muted); }
.tbp-side__price del { color: #8c8f94; font-weight: 600; }
.tbp-side__off { padding: 2px 8px; border-radius: 6px; background: #e11d48; color: #fff; font-size: .75em; font-weight: 700; }
.tbp-side__child { margin: 0 0 16px; font-size: .92em; color: var(--tbp-muted); }
.tbp-side__child strong { color: var(--tbp-text); }
.tbp-side__checks { list-style: none; margin: 0 0 20px; padding: 0; }
.tbp-side__checks li { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 10px; font-size: .95em; }
.tbp-side__checks .tbp-ico { flex: none; width: 20px; height: 20px; padding: 3px; border-radius: 50%; background: #22a35a; color: #fff; stroke-width: 3; }
.tbp-side .tbp-btn--lg { font-size: 1.1em; padding: 1em 1.4em; }
.tbp-side__contact { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 14px 0 0; font-size: .88em; color: var(--tbp-muted); }
.tbp-side__contact a { color: var(--tbp-primary); font-weight: 600; text-decoration: none; }
.tbp-side__contact .tbp-ico { width: 16px; height: 16px; }

/* แถบจองด้านล่าง (มือถือ) */
.tbp-mbar { display: none; }

@media (max-width: 900px) {
	.tbp-single { padding-bottom: 110px; }
	.tbp-single__grid { grid-template-columns: 1fr; gap: 0; }
	.tbp-single__side { position: static; order: -1; margin-bottom: 24px; }
	.tbp-single__main { display: contents; }
	.tbp-gallery { order: -3; }
	.tbp-single__title { order: -2; }
	.tbp-chips { order: -2; }
	.tbp-single__lead { order: -2; }
	.tbp-block { padding: 20px; }
	.tbp-mbar {
		display: flex; align-items: center; justify-content: space-between; gap: 12px;
		position: fixed; left: 0; right: 0; bottom: 0; z-index: 9990;
		padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: #fff;
		border-top: 1px solid var(--tbp-line); box-shadow: 0 -6px 24px rgba(0, 0, 0, .08);
	}
	.tbp-mbar__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 8px; line-height: 1.2; }
	.tbp-mbar__price small { width: 100%; color: var(--tbp-muted); font-size: .75em; }
	.tbp-mbar__price strong { font-size: 1.35em; color: var(--tbp-primary); }
	.tbp-mbar__price del { color: #8c8f94; font-size: .85em; }
	.tbp-mbar .tbp-btn { padding: .8em 1.6em; }
}
@media (max-width: 600px) {
	.tbp-gallery__main { border-radius: 12px; aspect-ratio: 4 / 3; }
	.tbp-gallery__nav { width: 36px; height: 36px; }
}

/* ดูรูปเต็มจอ */
.tbp-lightbox { position: fixed; inset: 0; z-index: 100001; display: flex; align-items: center; justify-content: center; background: rgba(10, 12, 16, .94); }
.tbp-lightbox[hidden] { display: none; }
.tbp-lightbox img { max-width: 92vw; max-height: 86vh; object-fit: contain; border-radius: 6px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
.tbp-lightbox button { position: absolute; border: 0; background: rgba(255, 255, 255, .12); color: #fff; cursor: pointer; border-radius: 50%; display: grid; place-items: center; }
.tbp-lightbox button:hover { background: rgba(255, 255, 255, .25); }
.tbp-lightbox .tbp-lightbox__close { all: unset; box-sizing: border-box; position: absolute; top: 16px; right: 16px; display: flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 50%; background: rgba(255, 255, 255, .14); color: #fff; cursor: pointer; }
.tbp-lightbox .tbp-lightbox__close:hover { background: rgba(255, 255, 255, .3); }
.tbp-lightbox .tbp-lightbox__close svg { display: block; width: 22px; height: 22px; }
.tbp-lightbox__nav { top: 50%; width: 52px; height: 52px; transform: translateY(-50%); font-size: 34px; line-height: 1; }
.tbp-lightbox__nav--prev { left: 16px; }
.tbp-lightbox__nav--next { right: 16px; }
.tbp-lightbox.is-single .tbp-lightbox__nav { display: none; }
.tbp-lightbox__count { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); color: #fff; font-size: .9em; opacity: .8; }

.tbp-card__prices del { color: #8c8f94; font-size: .9em; }

/* ===================== ปฏิทินเลือกวัน (ป๊อปอัปจอง) ===================== */
.tbp-cal { padding: 14px; border: 1px solid var(--tbp-line); border-radius: 14px; background: #fff; }
.tbp-cal__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.tbp-cal__head strong { font-size: 1.15em; }
.tbp-modal .tbp-cal button { all: unset; box-sizing: border-box; cursor: pointer; font-family: inherit; }
.tbp-modal .tbp-cal .tbp-cal__nav { display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--tbp-line); font-size: 26px; line-height: 1; color: var(--tbp-text); padding-bottom: 3px; }
.tbp-modal .tbp-cal .tbp-cal__nav:hover:not([disabled]) { background: var(--tbp-soft); }
.tbp-modal .tbp-cal .tbp-cal__nav[disabled] { opacity: .3; cursor: not-allowed; }
.tbp-cal__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.tbp-cal__dow { text-align: center; font-size: .82em; font-weight: 600; color: var(--tbp-muted); padding: 4px 0; }
.tbp-modal .tbp-cal .tbp-cal__day {
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
	min-height: 58px; border-radius: 12px; border: 1px solid transparent; text-align: center;
	color: #b0b4b9; background: transparent; transition: background .12s, border-color .12s, transform .05s;
}
.tbp-cal__num { font-size: 1.15em; font-weight: 600; line-height: 1.1; }
.tbp-cal__day small { font-size: .66em; line-height: 1.1; white-space: nowrap; }
.tbp-modal .tbp-cal .tbp-cal__day.is-open { color: var(--tbp-text); background: color-mix(in srgb, var(--tbp-primary) 8%, #fff); border-color: color-mix(in srgb, var(--tbp-primary) 22%, #fff); }
.tbp-modal .tbp-cal .tbp-cal__day.is-open small { color: var(--tbp-primary); }
.tbp-modal .tbp-cal .tbp-cal__day.is-open:hover { border-color: var(--tbp-primary); }
.tbp-modal .tbp-cal .tbp-cal__day.is-open:active { transform: scale(.96); }
.tbp-modal .tbp-cal .tbp-cal__day.is-today .tbp-cal__num { text-decoration: underline; text-underline-offset: 3px; }
.tbp-modal .tbp-cal .tbp-cal__day.is-full { color: #c3c4c7; text-decoration: line-through; }
.tbp-modal .tbp-cal .tbp-cal__day.is-full small { color: #b32d2e; text-decoration: none; }
.tbp-modal .tbp-cal .tbp-cal__day.is-selected { background: var(--tbp-primary); border-color: var(--tbp-primary); color: #fff; box-shadow: 0 4px 12px color-mix(in srgb, var(--tbp-primary) 40%, transparent); }
.tbp-modal .tbp-cal .tbp-cal__day.is-selected small { color: #fff; }
.tbp-modal .tbp-cal .tbp-cal__day[disabled] { cursor: default; }
.tbp-modal .tbp-cal .tbp-cal__day:focus-visible, .tbp-modal .tbp-cal .tbp-cal__nav:focus-visible { outline: 3px solid color-mix(in srgb, var(--tbp-primary) 45%, transparent); outline-offset: 1px; }
.tbp-cal__picked { margin: 12px 0 0; text-align: center; font-size: .95em; color: var(--tbp-muted); }
.tbp-cal__picked strong { color: var(--tbp-text); }
@media (max-width: 420px) {
	.tbp-cal { padding: 10px 6px; }
	.tbp-cal__grid { gap: 4px; }
	.tbp-modal .tbp-cal .tbp-cal__day { min-height: 50px; border-radius: 10px; }
	.tbp-cal__num { font-size: 1.05em; }
}

/* สไลด์รูปในหัวข้อเนื้อหา */
.tbp-gallery--section { margin: 0 0 18px; }
.tbp-gallery--section .tbp-gallery__main { border-radius: 12px; box-shadow: none; }
.tbp-gallery--section .tbp-gallery__thumbs button { width: 70px; height: 52px; }

/* ===================== หัวข้อที่เพิ่มเองในฟอร์มการจอง ===================== */
.tbp-form-heading { margin: 1.4rem 0 .8rem; padding-top: 1rem; border-top: 1px solid var(--tbp-line); font-size: 1em; font-weight: 700; }
.tbp-field--check label { display: flex; align-items: flex-start; gap: .5em; font-weight: 500; cursor: pointer; }
.tbp-field--check input { width: auto; margin-top: .3em; }
.tbp-radios { display: flex; flex-wrap: wrap; gap: 8px; }
.tbp-radio { display: inline-flex; align-items: center; gap: .45em; padding: .55em .9em; border: 1px solid #c3c4c7; border-radius: 10px; cursor: pointer; font-weight: 500; }
.tbp-radio input { width: auto; margin: 0; }
.tbp-radio:has(input:checked) { border-color: var(--tbp-primary); background: color-mix(in srgb, var(--tbp-primary) 8%, #fff); }
.tbp-modal .notranslate { font: inherit; }
.tbp-field .tbp-radio input, .tbp-field--check input { padding: 0; border-radius: 0; box-shadow: none; }

/* คลังคำสำหรับ GTranslate: ซ่อนจากสายตา แต่ยังอยู่ในหน้าเพื่อให้ถูกแปล */
.tbp-i18n { position: absolute !important; left: -10000px !important; top: auto !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); }
.tbp-i18n span { display: block; }

/* ตัวเลือกภาษา GTranslate บนหน้าทัวร์ */
.tbp-gt { display: flex; justify-content: flex-end; margin: -8px 0 10px; position: relative; z-index: 20; }
.tbp-gt select { padding: 6px 10px; border: 1px solid var(--tbp-line); border-radius: 8px; background: #fff; font: inherit; font-size: .9em; }

/* ===================== สรุปการจอง (เรียบ ไม่มีเส้นตาราง) ===================== */
.tbp-sum { display: grid; gap: 12px; text-align: left; }
.tbp-sum__group { padding: 14px 18px 10px; border-radius: 14px; background: var(--tbp-soft); }
.tbp-sum__group h4 { margin: 0 0 6px; font-size: .78em; font-weight: 700; letter-spacing: .03em; color: var(--tbp-muted); line-height: 1.5; }
.tbp-sum__row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 7px 0; line-height: 1.55; }
.tbp-sum__label { flex: 0 1 auto; max-width: 45%; color: var(--tbp-muted); font-size: .95em; }
.tbp-sum__value { flex: 1 1 auto; min-width: 0; text-align: right; font-weight: 600; color: var(--tbp-text); overflow-wrap: anywhere; }
.tbp-sum__row--block { flex-direction: column; align-items: stretch; gap: 2px; }
.tbp-sum__row--block .tbp-sum__label { max-width: none; }
.tbp-sum__row--block .tbp-sum__value { text-align: left; font-weight: 500; }
.tbp-review .tbp-grand { margin-top: 12px; }
.tbp-result .tbp-sum { margin: 1rem 0 0; }

/* ===================== กันตัวอักษรซ้อนกันเมื่อแปลเป็นภาษาอื่น ===================== */
/* ภาษาที่สระ/วรรณยุกต์สูง (ไทย ลาว พม่า เขมร ฮินดี อาหรับ) และคำยาว (เยอรมัน รัสเซีย) ต้องการระยะบรรทัดมากขึ้นและตัดคำได้ */
.tbp-modal, .tbp-single, .tbp-grid, .tbp-lookup-wrap { overflow-wrap: break-word; }
.tbp-modal *, .tbp-single *, .tbp-grid * { min-width: 0; }
.tbp-modal { line-height: 1.6; }
.tbp-btn { line-height: 1.4; white-space: normal; text-align: center; }
.tbp-head h2, .tbp-single__title, .tbp-card__title { line-height: 1.4; overflow-wrap: anywhere; }
.tbp-side__now { line-height: 1.25; }
.tbp-price__value { line-height: 1.3; }
.tbp-steps li { align-items: flex-start; line-height: 1.4; overflow-wrap: anywhere; }
.tbp-steps li span { margin-top: .05em; }
.tbp-pax__label, .tbp-pax__label strong, .tbp-pax__label small { line-height: 1.45; overflow-wrap: anywhere; }
.tbp-breakdown > div { flex-wrap: wrap; line-height: 1.5; }
.tbp-breakdown > div > span:last-child { white-space: nowrap; margin-left: auto; }
.tbp-grand { flex-wrap: wrap; gap: 6px 12px; line-height: 1.4; }
.tbp-cal__head strong { line-height: 1.4; text-align: center; }
.tbp-cal__dow { line-height: 1.4; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tbp-modal .tbp-cal .tbp-cal__day { overflow: hidden; padding: 4px 2px; }
.tbp-cal__num { line-height: 1.3; }
.tbp-cal__day small { display: block; max-width: 100%; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tbp-field > label, .tbp-terms label, .tbp-radio, .tbp-field--check label { line-height: 1.5; }
.tbp-chip { line-height: 1.45; }
.tbp-side__checks li, .tbp-side__child, .tbp-side__note, .tbp-side__contact { line-height: 1.5; }
.tbp-side__contact { flex-wrap: wrap; text-align: center; }
.tbp-mbar__price { line-height: 1.35; }
.tbp-crumbs { line-height: 1.5; }
.tbp-block > h2, .tbp-extras__col h3 { line-height: 1.45; }
.tbp-timeline li { line-height: 1.55; }

/* ===================== สีที่ตั้งเองได้ (ตั้งค่า → สีและข้อความปุ่ม) =====================
 * ทุกค่ามีค่าสำรอง = สีเดิม ถ้าไม่ได้ตั้ง หน้าตาจะเหมือนเดิมทุกอย่าง
 */
/* ปุ่มหลัก (ถัดไป / ตรวจสอบสรุป / ชำระเงิน) */
.tbp-btn { background: var(--tbp-act-bg, var(--tbp-primary)); border-color: var(--tbp-act-bg, var(--tbp-primary)); color: var(--tbp-act-text, #fff); }
.tbp-btn:hover, .tbp-btn:focus-visible, .tbp-btn:active {
	background: var(--tbp-act-hover-bg, var(--tbp-act-bg, var(--tbp-primary)));
	border-color: var(--tbp-act-hover-bg, var(--tbp-act-bg, var(--tbp-primary)));
	color: var(--tbp-act-hover-text, var(--tbp-act-text, #fff));
	filter: var(--tbp-act-filter, brightness(1.08));
}
/* ปุ่มรอง (ย้อนกลับ / แก้ไข / รายละเอียด) */
.tbp-btn--ghost { background: transparent; border-color: var(--tbp-ghost, var(--tbp-primary)); color: var(--tbp-ghost, var(--tbp-primary)); }
.tbp-btn--ghost:hover, .tbp-btn--ghost:focus-visible, .tbp-btn--ghost:active {
	background: var(--tbp-ghost-hover-bg, color-mix(in srgb, var(--tbp-ghost, var(--tbp-primary)) 8%, transparent));
	border-color: var(--tbp-ghost, var(--tbp-primary));
	color: var(--tbp-ghost-hover-text, var(--tbp-ghost, var(--tbp-primary)));
	filter: none;
}
/* ปุ่มจอง (จองเลย / จองแพ็กเกจนี้) */
.tbp-btn--book { background: var(--tbp-btn, #facc15); border-color: var(--tbp-btn, #facc15); color: var(--tbp-btn-text, #1d2327); }
.tbp-btn--book:hover, .tbp-btn--book:focus-visible, .tbp-btn--book:active {
	background: var(--tbp-btn-hover, var(--tbp-btn, #facc15));
	border-color: var(--tbp-btn-hover, var(--tbp-btn, #facc15));
	color: var(--tbp-btn-hover-text, var(--tbp-btn-text, #1d2327));
	filter: var(--tbp-btn-filter, brightness(1.04));
}
.tbp-btn[disabled], .tbp-btn[disabled]:hover { filter: none; }

/* หน้าฟอร์มจอง */
.tbp-modal {
	--tbp-text: var(--tbp-modal-text, #1d2327);
	--tbp-muted: var(--tbp-modal-muted, #646970);
	--tbp-soft: var(--tbp-panel-bg, #f5f7f8);
	--tbp-line: var(--tbp-border, #e4e7eb);
}
.tbp-modal__dialog { background: var(--tbp-modal-bg, #fff); color: var(--tbp-text); }
.tbp-modal .tbp-cal { background: var(--tbp-modal-bg, #fff); }
.tbp-field input, .tbp-field select, .tbp-field textarea, .tbp-lookup input {
	background: var(--tbp-field-bg, #fff); border-color: var(--tbp-field-border, #c3c4c7); color: var(--tbp-text);
}
.tbp-field input:focus, .tbp-field select:focus, .tbp-field textarea:focus {
	border-color: var(--tbp-focus, var(--tbp-primary));
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--tbp-focus, var(--tbp-primary)) 20%, transparent);
}
.tbp-stepper, .tbp-radio { border-color: var(--tbp-field-border, #c3c4c7); }
.tbp-modal .tbp-cal .tbp-cal__day.is-open {
	background: var(--tbp-cal-open-bg, color-mix(in srgb, var(--tbp-primary) 8%, #fff));
	border-color: var(--tbp-cal-open-bg, color-mix(in srgb, var(--tbp-primary) 22%, #fff));
	color: var(--tbp-text);
}
.tbp-modal .tbp-cal .tbp-cal__day.is-open:hover { border-color: var(--tbp-cal-sel-bg, var(--tbp-primary)); }
.tbp-modal .tbp-cal .tbp-cal__day.is-selected,
.tbp-modal .tbp-cal .tbp-cal__day.is-open.is-selected {
	background: var(--tbp-cal-sel-bg, var(--tbp-primary));
	border-color: var(--tbp-cal-sel-bg, var(--tbp-primary));
	color: var(--tbp-cal-sel-text, #fff);
	box-shadow: 0 4px 12px color-mix(in srgb, var(--tbp-cal-sel-bg, var(--tbp-primary)) 40%, transparent);
}
.tbp-modal .tbp-cal .tbp-cal__day.is-selected small { color: var(--tbp-cal-sel-text, #fff); }
.tbp-grand { background: var(--tbp-total-bg, color-mix(in srgb, var(--tbp-primary) 10%, #fff)); }
.tbp-grand strong { color: var(--tbp-total-text, var(--tbp-primary)); }

/* ===================== การ์ดทัวร์ (เรียบ หรู มินิมอล) =====================
 * ขนาดการ์ดคงที่ไม่ว่าจะวางตรงไหน · แถวละไม่เกิน 3 ใบ · พื้นที่แคบจะเรียงลงแถวเดียว
 */
.tbp-grid-wrap { container-type: inline-size; width: 100%; }
.tbp-grid {
	--tbp-card-w: 340px; --tbp-gap: 28px;
	display: grid; grid-template-columns: repeat(auto-fill, var(--tbp-card-w)); gap: 36px var(--tbp-gap);
	justify-content: center; width: 100%; margin: 0 auto;
	max-width: calc(var(--tbp-cols, 3) * var(--tbp-card-w) + (var(--tbp-cols, 3) - 1) * var(--tbp-gap));
}
@container (max-width: 380px) { .tbp-grid { grid-template-columns: minmax(0, var(--tbp-card-w)); } }
@media (max-width: 400px) { .tbp-grid { grid-template-columns: minmax(0, 1fr); } }

.tbp-grid .tbp-card {
	display: flex; flex-direction: column; width: 100%; overflow: hidden; margin: 0;
	border: 1px solid rgba(17, 24, 39, .06); border-radius: 18px; background: #fff;
	box-shadow: 0 1px 2px rgba(17, 24, 39, .04); transform: none;
	transition: box-shadow .35s ease, transform .35s ease;
}
.tbp-grid .tbp-card:hover { box-shadow: 0 18px 40px -12px rgba(17, 24, 39, .18); transform: translateY(-3px); }
.tbp-grid .tbp-card__media { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #f3f4f6; }
.tbp-grid .tbp-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.tbp-grid .tbp-card:hover .tbp-card__media img { transform: scale(1.05); }
.tbp-card__badge { position: absolute; top: 14px; left: 14px; padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, .92); color: #b91c1c; font-size: .75em; font-weight: 700; letter-spacing: .02em; backdrop-filter: blur(4px); }
.tbp-grid .tbp-card__body { display: flex; flex-direction: column; flex: 1; gap: 0; padding: 20px 22px 22px; }
.tbp-card__eyebrow { min-height: 1.5em; margin: 0 0 6px; font-size: .72em; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--tbp-primary); line-height: 1.5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tbp-grid .tbp-card__title { margin: 0; font-size: 1.12rem; font-weight: 600; line-height: 1.45; letter-spacing: -.005em; min-height: calc(1.45em * 2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tbp-grid .tbp-card__title a { color: #111827; text-decoration: none; }
.tbp-grid .tbp-card__title a:hover { color: var(--tbp-primary); }
.tbp-grid .tbp-card__meta { display: flex; align-items: center; gap: 6px; min-height: 1.5em; margin: 8px 0 0; font-size: .86em; color: #6b7280; line-height: 1.5; white-space: nowrap; overflow: hidden; }
.tbp-grid .tbp-card__meta span { overflow: hidden; text-overflow: ellipsis; }
.tbp-grid .tbp-card__meta .tbp-ico { width: 15px; height: 15px; flex: none; color: #9ca3af; }
.tbp-card__foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 18px; border-top: 1px solid rgba(17, 24, 39, .06); margin-top: 18px; }
.tbp-card__price { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.tbp-card__price small { font-size: .72em; letter-spacing: .08em; text-transform: uppercase; color: #9ca3af; }
.tbp-card__amount { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.tbp-card__amount strong { font-size: 1.35rem; font-weight: 700; color: #111827; letter-spacing: -.01em; }
.tbp-card__amount del { font-size: .82em; color: #9ca3af; }
.tbp-card__child { font-size: .8em; color: #6b7280; }
.tbp-grid .tbp-card__actions { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; margin: 0; padding: 0; flex: none; }
.tbp-grid .tbp-card__actions .tbp-btn { flex: none; padding: .6em 1.25em; font-size: .9em; border-radius: 999px; }
.tbp-card__link { font-size: .82em; font-weight: 500; color: #6b7280; text-decoration: none; white-space: nowrap; }
.tbp-card__link:hover { color: var(--tbp-primary); }
.tbp-card__link span { display: inline-block; transition: transform .2s; }
.tbp-card__link:hover span { transform: translateX(3px); }

/* วิดเจ็ต "ทัวร์ทั้งหมด": ไม่มีพื้นหลัง กลืนกับหน้าเว็บ */
.tbp-grid-wrap, .tbp-grid-wrap--all { background: transparent; padding: 0; border: 0; box-shadow: none; }

/* ===================== แกลเลอรี: สไลด์ / เฟด + ปุ่มลูกศรใหม่ ===================== */
.tbp-gallery__main::before { content: none; }
.tbp-gallery__main { touch-action: pan-y; }
.tbp-gallery__track { position: absolute; inset: 0; }
.tbp-gallery__slide { position: absolute; inset: 0; overflow: hidden; background: #c9ccd1; }
.tbp-gallery__slide::before { content: ''; position: absolute; inset: -20px; background: var(--tbp-bg) center / cover no-repeat; filter: blur(18px) brightness(.85); opacity: .7; }
.tbp-gallery__slide img { position: relative; display: block; width: 100%; height: 100%; object-fit: contain; cursor: zoom-in; user-select: none; -webkit-user-drag: none; }

/* แบบสไลด์: เลื่อนซ้าย–ขวา */
.tbp-gallery--slide .tbp-gallery__track { display: flex; transition: transform .6s cubic-bezier(.22, .7, .2, 1); will-change: transform; }
.tbp-gallery--slide .tbp-gallery__slide { position: relative; inset: auto; flex: 0 0 100%; height: 100%; }

/* แบบเฟด: ค่อย ๆ จางเปลี่ยน */
.tbp-gallery--fade .tbp-gallery__slide { opacity: 0; visibility: hidden; transition: opacity .8s ease, visibility 0s linear .8s; }
.tbp-gallery--fade .tbp-gallery__slide.is-active { opacity: 1; visibility: visible; transition: opacity .8s ease, visibility 0s; z-index: 1; }

@media (prefers-reduced-motion: reduce) {
	.tbp-gallery--slide .tbp-gallery__track, .tbp-gallery--fade .tbp-gallery__slide { transition: none; }
}

/* ปุ่มลูกศร / ขยาย: ล้างสไตล์ปุ่มของธีม ไอคอนอยู่กลางวงกลมพอดี */
.tbp-gallery .tbp-gallery__nav, .tbp-gallery .tbp-gallery__zoom {
	all: unset; box-sizing: border-box; position: absolute; z-index: 3;
	display: flex; align-items: center; justify-content: center;
	width: 44px; height: 44px; border-radius: 50%;
	background: rgba(255, 255, 255, .92); color: #111827; cursor: pointer;
	box-shadow: 0 4px 14px rgba(0, 0, 0, .18);
	transition: background .2s, transform .2s, opacity .2s;
}
.tbp-gallery .tbp-gallery__nav { top: 50%; transform: translateY(-50%); }
.tbp-gallery .tbp-gallery__nav--prev { left: 14px; right: auto; }
.tbp-gallery .tbp-gallery__nav--next { right: 14px; left: auto; }
.tbp-gallery .tbp-gallery__zoom { right: 14px; bottom: 14px; top: auto; left: auto; }
.tbp-gallery .tbp-gallery__nav:hover { background: #fff; transform: translateY(-50%) scale(1.06); }
.tbp-gallery .tbp-gallery__zoom:hover { background: #fff; transform: scale(1.06); }
.tbp-gallery .tbp-gallery__nav:focus-visible, .tbp-gallery .tbp-gallery__zoom:focus-visible { outline: 3px solid color-mix(in srgb, var(--tbp-primary) 55%, transparent); outline-offset: 2px; }
.tbp-gallery .tbp-gallery__nav svg, .tbp-gallery .tbp-gallery__zoom svg { display: block; width: 20px; height: 20px; flex: none; margin: 0; stroke-width: 2.2; }
.tbp-gallery .tbp-gallery__nav--prev svg { margin-left: -2px; }
.tbp-gallery .tbp-gallery__nav--next svg { margin-right: -2px; }
.tbp-gallery__count { z-index: 3; }

/* รูปย่อ: ล้างสไตล์ปุ่มของธีม */
.tbp-gallery .tbp-gallery__thumbs button {
	all: unset; box-sizing: border-box; flex: none; display: block;
	width: 84px; height: 64px; border: 2px solid transparent; border-radius: 10px; overflow: hidden;
	cursor: pointer; opacity: .6; transition: opacity .2s, border-color .2s;
}
.tbp-gallery .tbp-gallery__thumbs button.is-active, .tbp-gallery .tbp-gallery__thumbs button:hover { opacity: 1; border-color: var(--tbp-primary); }
.tbp-gallery .tbp-gallery__thumbs button:focus-visible { outline: 2px solid var(--tbp-primary); outline-offset: 2px; }
.tbp-gallery .tbp-gallery__thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tbp-gallery--section .tbp-gallery__thumbs button { width: 70px; height: 52px; }
.tbp-gallery--section .tbp-gallery__nav, .tbp-gallery--section .tbp-gallery__zoom { width: 38px; height: 38px; }
.tbp-gallery--section .tbp-gallery__nav svg, .tbp-gallery--section .tbp-gallery__zoom svg { width: 18px; height: 18px; }
@media (max-width: 600px) {
	.tbp-gallery .tbp-gallery__nav { width: 38px; height: 38px; }
	.tbp-gallery .tbp-gallery__nav--prev { left: 10px; }
	.tbp-gallery .tbp-gallery__nav--next { right: 10px; }
}

/* ลูกศรในหน้าดูรูปเต็มจอ */
.tbp-lightbox .tbp-lightbox__nav {
	all: unset; box-sizing: border-box; position: absolute; top: 50%; transform: translateY(-50%);
	display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 50%;
	background: rgba(255, 255, 255, .14); color: #fff; cursor: pointer; transition: background .2s;
}
.tbp-lightbox .tbp-lightbox__nav:hover { background: rgba(255, 255, 255, .3); }
.tbp-lightbox .tbp-lightbox__nav--prev { left: 16px; }
.tbp-lightbox .tbp-lightbox__nav--next { right: 16px; }
.tbp-lightbox .tbp-lightbox__nav svg { display: block; width: 24px; height: 24px; }
.tbp-lightbox.is-single .tbp-lightbox__nav { display: none; }

/* ===================== รูปเต็มกรอบ (ไม่เว้นขอบ) ===================== */
.tbp-gallery__slide { background: #e5e7eb; }
.tbp-gallery__slide::before { content: none; }
.tbp-gallery__slide img { object-fit: cover; object-position: center; }

/* ===================== ตัวอักษรไม่ห่าง ทุกจุด =====================
 * ล้างระยะห่างตัวอักษร และกันธีมจัดข้อความแบบ "เต็มแนว (justify)" ซึ่งทำให้ภาษาไทยถูกยืดห่างกัน
 */
.tbp-single, .tbp-single *, .tbp-modal, .tbp-modal *, .tbp-grid, .tbp-grid *,
.tbp-lookup-wrap, .tbp-lookup-wrap *, .tbp-lightbox, .tbp-lightbox *, .tbp-info, .tbp-info *, .tbp-extras, .tbp-extras * {
	letter-spacing: normal !important;
	word-spacing: normal !important;
	text-justify: none;
}
.tbp-block__text, .tbp-block__text *, .tbp-single__lead, .tbp-sum, .tbp-sum *, .tbp-terms__text,
.tbp-extras, .tbp-extras *, .tbp-timeline, .tbp-timeline *, .tbp-card__body, .tbp-card__body *,
.tbp-side__checks, .tbp-side__checks *, .tbp-side__note, .tbp-side__child, .tbp-list, .tbp-list *,
.tbp-field > label, .tbp-pax__label, .tbp-pax__label *, .tbp-breakdown, .tbp-breakdown *,
.tbp-head__text, .tbp-head__text *, .tbp-crumbs, .tbp-chips, .tbp-single__title, .tbp-block > h2,
.tbp-pay__bank, .tbp-summary-table, .tbp-summary-table * {
	text-align: left;
}
.tbp-sum__value { text-align: right; }
.tbp-sum__row--block .tbp-sum__value { text-align: left; }
.tbp-card__actions { text-align: right; }
.tbp-card__eyebrow, .tbp-card__price small { text-transform: none; }

/* ===================== การ์ดทัวร์กดได้ทั้งใบ (ดูเป็นปุ่ม ชัดบนมือถือ) =====================
 * ลิงก์ชื่อทัวร์ขยายคลุมทั้งการ์ด · ปุ่ม "จองเลย" และ "รายละเอียด" ยังกดแยกได้ตามเดิม
 */
.tbp-grid .tbp-card { position: relative; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.tbp-grid .tbp-card__title a::after { content: ''; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.tbp-grid .tbp-card__actions, .tbp-grid .tbp-card__badge { position: relative; z-index: 2; }
.tbp-grid .tbp-card__badge { position: absolute; }
.tbp-grid .tbp-card:hover .tbp-card__title a { color: var(--tbp-primary); }
.tbp-grid .tbp-card:has(.tbp-card__title a:focus-visible) { outline: 3px solid color-mix(in srgb, var(--tbp-primary) 55%, transparent); outline-offset: 3px; }
.tbp-grid .tbp-card__title a:focus-visible { outline: none; }
.tbp-grid .tbp-card:active { transform: scale(.985); box-shadow: 0 6px 16px -8px rgba(17, 24, 39, .25); transition-duration: .1s; }
.tbp-grid .tbp-card__actions .tbp-btn:active { transform: scale(.96); }

/* มือถือ / แท็บเล็ต (จอสัมผัส): ทำให้ดูเป็นปุ่มชัดเจน */
@media (hover: none), (max-width: 782px) {
	.tbp-grid .tbp-card { border-color: rgba(17, 24, 39, .1); box-shadow: 0 8px 24px -10px rgba(17, 24, 39, .22); }
	.tbp-grid .tbp-card:hover { transform: none; box-shadow: 0 8px 24px -10px rgba(17, 24, 39, .22); }
	.tbp-grid .tbp-card:hover .tbp-card__media img { transform: none; }
	.tbp-grid .tbp-card:active { transform: scale(.98); background: #fafafa; }
	.tbp-card__link {
		display: inline-flex; align-items: center; gap: 4px; padding: .45em .9em; border-radius: 999px;
		background: color-mix(in srgb, var(--tbp-primary) 10%, #fff); color: var(--tbp-primary); font-weight: 600;
	}
	.tbp-grid .tbp-card__actions .tbp-btn { padding: .7em 1.4em; font-size: .95em; }
}

/* ===================== การ์ดทัวร์นูนเล็กน้อย =====================
 * เงาซ้อน 2 ชั้น (ใกล้ + ไกล) + ขอบไฮไลต์ด้านบน ให้ดูยกขึ้นจากพื้นแบบนุ่ม ๆ
 */
.tbp-grid .tbp-card {
	background: linear-gradient(180deg, #ffffff 0%, #fbfbfc 100%);
	border: 1px solid rgba(17, 24, 39, .08);
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, .9),
		0 1px 2px rgba(17, 24, 39, .06),
		0 6px 16px -6px rgba(17, 24, 39, .14);
}
.tbp-grid .tbp-card:hover {
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, .9),
		0 2px 4px rgba(17, 24, 39, .06),
		0 20px 40px -14px rgba(17, 24, 39, .24);
}
.tbp-grid .tbp-card:active {
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, .9),
		0 1px 2px rgba(17, 24, 39, .08),
		0 3px 8px -4px rgba(17, 24, 39, .2);
}
@media (hover: none), (max-width: 782px) {
	.tbp-grid .tbp-card, .tbp-grid .tbp-card:hover {
		box-shadow:
			inset 0 1px 0 rgba(255, 255, 255, .9),
			0 1px 3px rgba(17, 24, 39, .08),
			0 10px 24px -10px rgba(17, 24, 39, .26);
	}
	.tbp-grid .tbp-card:active {
		background: linear-gradient(180deg, #fafafa 0%, #f5f5f6 100%);
		box-shadow:
			inset 0 1px 0 rgba(255, 255, 255, .7),
			0 1px 2px rgba(17, 24, 39, .1),
			0 3px 8px -4px rgba(17, 24, 39, .22);
	}
}


/* ===================== เอฟเฟกต์ตอนแตะการ์ดบนมือถือ =====================
 * ย่อลงเล็กน้อย + ไฮไลต์สีเด่นจาง ๆ ทั้งการ์ด แล้วเด้งกลับนุ่ม ๆ (ไม่จม)
 */
.tbp-grid .tbp-card::before {
	content: ''; position: absolute; inset: 0; z-index: 3; pointer-events: none; border-radius: inherit;
	background: var(--tbp-primary); opacity: 0; transition: opacity .35s ease;
}
.tbp-grid .tbp-card.is-tap {
	transform: scale(.975);
	transition: transform .12s ease-out, box-shadow .12s ease-out;
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, .9),
		0 1px 2px rgba(17, 24, 39, .08),
		0 4px 12px -6px rgba(17, 24, 39, .22);
}
.tbp-grid .tbp-card.is-tap::before { opacity: .07; transition: opacity .1s ease-out; }
.tbp-grid .tbp-card:not(.is-tap) { transition: transform .35s cubic-bezier(.34, 1.56, .64, 1), box-shadow .35s ease; }
@media (prefers-reduced-motion: reduce) {
	.tbp-grid .tbp-card.is-tap { transform: none; }
}

/* ===================== ปัดลงเพื่อปิดป๊อปอัปจอง (เฉพาะโทรศัพท์) ===================== */
.tbp-modal__grab { display: none; }
@media (max-width: 600px) and (pointer: coarse) {
	.tbp-modal__grab {
		display: block; position: absolute; top: 0; left: 0; right: 0; z-index: 6; height: 26px;
		touch-action: none; cursor: grab;
	}
	.tbp-modal__grab::after {
		content: ''; position: absolute; top: 9px; left: 50%; width: 44px; height: 5px; margin-left: -22px;
		border-radius: 999px; background: rgba(120, 124, 130, .6); box-shadow: 0 0 0 1px rgba(255, 255, 255, .55);
	}
	.tbp-modal__dialog { overscroll-behavior: contain; will-change: transform; }
}


/* ===================== โทรศัพท์: ซ่อนปุ่ม × ของป๊อปอัปจอง (ปิดด้วยการปัดลง / แตะพื้นหลัง) ===================== */
@media (max-width: 600px) and (pointer: coarse) {
	.tbp-modal .tbp-modal__close { display: none; }
}

/* ---------- เลือกวิธีชำระเงิน (Stripe) ---------- */
.tbp-paym { margin: 0 0 1rem; }
.tbp-paym > strong { display: block; margin-bottom: .5rem; font-size: .95em; }
.tbp-paym__opt { display: flex; align-items: center; gap: .75em; margin-bottom: .5rem; padding: .8em 1em; border: 1px solid var(--tbp-field-border, #c3c4c7); border-radius: 12px; background: var(--tbp-field-bg, #fff); cursor: pointer; line-height: 1.4; }
.tbp-paym__opt input { width: auto; margin: 0; flex: none; accent-color: var(--tbp-primary); }
.tbp-paym__opt span { flex: 1; font-weight: 600; }
.tbp-paym__opt small { display: block; font-weight: 400; color: var(--tbp-muted); font-size: .85em; }
.tbp-paym__opt:has(input:checked) { border-color: var(--tbp-primary); background: color-mix(in srgb, var(--tbp-primary) 8%, var(--tbp-field-bg, #fff)); box-shadow: 0 0 0 1px var(--tbp-primary); }
.tbp-paym__icons { flex: none; display: inline-flex; gap: 4px; }
.tbp-paym__icons i { display: inline-block; padding: 2px 6px; border: 1px solid var(--tbp-line); border-radius: 4px; font-style: normal; font-size: .7em; font-weight: 700; color: var(--tbp-muted); background: #fff; }
.tbp-paym__sim { display: inline-block; margin-left: .4em; padding: 0 .5em; border-radius: 4px; background: #fef3c7; color: #92400e; font-size: .75em; font-weight: 700; }
.tbp-voucher-link { margin-top: .75rem; }

/* โอนเงินเอง: รอร้านยืนยัน → ปุ่มวอเชอร์ */
.tbp-vwait { margin-top: 1rem; padding: .85rem 1rem; border-radius: 12px; background: rgba(0,0,0,.04); text-align: center; font-size: .92em; line-height: 1.55; }
.tbp-vwait__dot { display: inline-block; width: 9px; height: 9px; margin-right: .5em; border-radius: 50%; background: var(--tbp-primary); vertical-align: middle; animation: tbp-vpulse 1.4s ease-in-out infinite; }
.tbp-vwait.is-ready { background: transparent; border: 2px solid var(--tbp-primary); }
.tbp-vwait.is-ready p { margin: 0 0 .6rem; }
.tbp-vwait.is-ready .tbp-btn { display: inline-block; text-decoration: none; }
@keyframes tbp-vpulse { 0%, 100% { opacity: .3; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .tbp-vwait__dot { animation: none; } }

/* ===================== แกลเลอรีแบบกริด (รูปใหญ่ 1 + รูปเล็ก 4) ===================== */
.tbp-ggrid { position: relative; display: grid; gap: 10px; aspect-ratio: 16 / 7; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; }
.tbp-gallery .tbp-ggrid__item { all: unset; box-sizing: border-box; position: relative; display: block; min-width: 0; min-height: 0; overflow: hidden; border-radius: 14px; background: #c9ccd1; cursor: zoom-in; }
.tbp-gallery .tbp-ggrid__item img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.22, .7, .2, 1); user-select: none; -webkit-user-drag: none; }
.tbp-gallery .tbp-ggrid__item:hover img { transform: scale(1.04); }
.tbp-gallery .tbp-ggrid__item::after { content: ''; position: absolute; inset: 0; background: rgba(0, 0, 0, 0); transition: background .25s; pointer-events: none; }
.tbp-gallery .tbp-ggrid__item:hover::after { background: rgba(0, 0, 0, .08); }
.tbp-gallery .tbp-ggrid__item:focus-visible { outline: 3px solid color-mix(in srgb, var(--tbp-primary) 55%, transparent); outline-offset: 2px; }
.tbp-gallery .tbp-ggrid__item--main { grid-row: 1 / 3; }
/* จำนวนรูปน้อยกว่า 5 */
.tbp-ggrid--1 .tbp-ggrid { grid-template-columns: 1fr; grid-template-rows: 1fr; aspect-ratio: 16 / 9; }
.tbp-gallery.tbp-ggrid--1 .tbp-ggrid__item--main { grid-row: auto; }
.tbp-ggrid--2 .tbp-ggrid { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr; }
.tbp-gallery.tbp-ggrid--2 .tbp-ggrid__item--main { grid-row: auto; }
.tbp-ggrid--3 .tbp-ggrid { grid-template-columns: 2fr 1fr; }
.tbp-gallery.tbp-ggrid--4 .tbp-ggrid__item:nth-child(2) { grid-column: 2 / 4; }
/* ปุ่ม "แกลเลอรี" มุมขวาล่าง */
.tbp-gallery .tbp-ggrid__all {
	all: unset; box-sizing: border-box; position: absolute; right: 16px; bottom: 16px; z-index: 2;
	display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px;
	background: #fff; color: #111827; font: inherit; font-size: .95em; font-weight: 500; line-height: 1; cursor: pointer;
	box-shadow: 0 4px 14px rgba(0, 0, 0, .18); transition: transform .2s, box-shadow .2s;
}
.tbp-gallery .tbp-ggrid__all:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(0, 0, 0, .24); }
.tbp-gallery .tbp-ggrid__all .tbp-ico { width: 18px; height: 18px; }
.tbp-gallery .tbp-ggrid__all small { padding: 2px 7px; border-radius: 999px; background: var(--tbp-soft, #f0f0f1); font-size: .8em; font-weight: 600; }
.tbp-ggrid--1 .tbp-ggrid__all { display: none; }
@media (max-width: 900px) {
	.tbp-ggrid { gap: 8px; }
}
/* มือถือ: รูปใหญ่ด้านบน รูปเล็กเรียงแถวเดียวด้านล่าง */
@media (max-width: 600px) {
	.tbp-gallery--grid .tbp-ggrid { aspect-ratio: auto; grid-template-columns: repeat(var(--tbp-gn, 4), minmax(0, 1fr)); grid-template-rows: auto; gap: 6px; }
	.tbp-gallery.tbp-gallery--grid .tbp-ggrid__item--main { grid-row: auto; grid-column: 1 / -1; aspect-ratio: 4 / 3; border-radius: 12px; }
	.tbp-gallery.tbp-gallery--grid .tbp-ggrid__item:not(.tbp-ggrid__item--main) { grid-column: auto; aspect-ratio: 1 / 1; border-radius: 10px; }
	.tbp-gallery.tbp-ggrid--2 .tbp-ggrid__item:not(.tbp-ggrid__item--main) { aspect-ratio: 16 / 9; }
	.tbp-gallery--grid .tbp-ggrid__all { right: 10px; bottom: auto; top: 10px; padding: 8px 14px; font-size: .88em; }
}
@media (prefers-reduced-motion: reduce) {
	.tbp-gallery .tbp-ggrid__item img { transition: none; }
}

/* ===================== ปฏิทินจอง: ปัดซ้าย/ขวาเปลี่ยนเดือน ===================== */
.tbp-modal .tbp-cal { touch-action: pan-y; }
.tbp-cal__grid.is-in-next { animation: tbp-cal-in-next .28s cubic-bezier(.22, .7, .2, 1); }
.tbp-cal__grid.is-in-prev { animation: tbp-cal-in-prev .28s cubic-bezier(.22, .7, .2, 1); }
@keyframes tbp-cal-in-next { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: none; } }
@keyframes tbp-cal-in-prev { from { opacity: 0; transform: translateX(-28px); } to { opacity: 1; transform: none; } }

/* ===================== แบบกริด: แสดงเต็มความกว้างด้านบนเหมือนหัวเว็บ ===================== */
.tbp-single.tbp-single--hero { --tbp-side-w: 380px; max-width: 1400px; padding-left: 20px; padding-right: 20px; }
.tbp-hero { width: auto; margin: 0 0 32px; }
.tbp-hero .tbp-gallery { margin: 0; }
/* ความสูงคำนวณจากความกว้างจอ (ไม่ใช้ aspect-ratio + max-height เพราะจะบีบความกว้างจนรูปชิดซ้ายเมื่อซูม) */
.tbp-hero .tbp-ggrid { aspect-ratio: auto; width: 100%; height: min(78vh, calc((min(100vw, 1400px) - 40px) * 7 / 16)); min-height: 300px; gap: 12px; }
.tbp-hero .tbp-ggrid--1 .tbp-ggrid, .tbp-hero .tbp-gallery.tbp-ggrid--1 .tbp-ggrid { aspect-ratio: 16 / 7; }
.tbp-hero .tbp-gallery .tbp-ggrid__item { border-radius: 18px; }
.tbp-hero .tbp-gallery .tbp-ggrid__all { right: 20px; bottom: 20px; padding: 12px 22px; font-size: 1em; }
@media (max-width: 1100px) {
	.tbp-single.tbp-single--hero { --tbp-side-w: 340px; }
}
@media (max-width: 900px) {
	.tbp-hero { margin: 0 0 22px; }
	.tbp-hero .tbp-ggrid { max-height: none; gap: 8px; }
}
@media (max-width: 600px) {
	.tbp-single.tbp-single--hero { padding-left: 16px; padding-right: 16px; }
	.tbp-hero { margin: 0 -16px 18px; }
	.tbp-hero .tbp-gallery--grid .tbp-ggrid { aspect-ratio: auto; padding: 0 16px; }
	.tbp-hero .tbp-gallery.tbp-gallery--grid .tbp-ggrid__item--main { margin: 0 -16px; border-radius: 0; }
	.tbp-hero .tbp-gallery.tbp-gallery--grid .tbp-ggrid__item:not(.tbp-ggrid__item--main) { border-radius: 10px; }
	.tbp-hero .tbp-gallery--grid .tbp-ggrid__all { right: 12px; top: 12px; bottom: auto; padding: 8px 14px; font-size: .88em; }
}

/* ===================== จุดเด่นแบบไอคอน ===================== */
.tbp-feats { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 36px; margin: 6px 0 30px; padding: 26px 0 4px; border-top: 1px solid var(--tbp-line); }
.tbp-feat { display: flex; align-items: center; gap: 18px; margin: 0; padding: 0; }
.tbp-feat__ico { flex: none; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 16px; background: color-mix(in srgb, var(--tbp-primary) 9%, #fff); color: var(--tbp-text); }
.tbp-feat__ico svg { width: 30px; height: 30px; }
.tbp-feat__text { display: flex; flex-direction: column; gap: 3px; line-height: 1.45; text-align: left; }
.tbp-feat__text strong { font-size: 1.08em; font-weight: 700; color: var(--tbp-text); }
.tbp-feat__text span { color: var(--tbp-muted); font-size: .97em; }
.tbp-side__checks small { color: var(--tbp-muted); font-size: .9em; }
@media (max-width: 900px) {
	.tbp-feats { order: -2; }
}
@media (max-width: 600px) {
	.tbp-feats { grid-template-columns: 1fr; gap: 18px; padding-top: 20px; }
	.tbp-feat { gap: 14px; }
	.tbp-feat__ico { width: 54px; height: 54px; border-radius: 14px; }
	.tbp-feat__ico svg { width: 26px; height: 26px; }
}

/* ข้อความที่จัดรูปแบบจากเครื่องมือ */
.tbp-block__text h3, .tbp-block__text h4, .tbp-block__text h5 { margin: 1.2em 0 .5em; line-height: 1.35; color: var(--tbp-text); font-weight: 700; }
.tbp-block__text h3 { font-size: 1.25em; }
.tbp-block__text h4 { font-size: 1.1em; }
.tbp-block__text h5 { font-size: 1em; }
.tbp-block__text ol { padding-left: 1.5em; }
.tbp-block__text blockquote { margin: 1em 0; padding: 10px 16px; border-left: 4px solid var(--tbp-primary); background: color-mix(in srgb, var(--tbp-primary) 6%, #fff); border-radius: 0 8px 8px 0; }
.tbp-block__text hr { border: 0; border-top: 1px solid var(--tbp-line); margin: 1.4em 0; }
.tbp-block__text a { color: var(--tbp-primary); text-decoration: underline; }
.tbp-block__text [style*="text-align: center"], .tbp-block__text [style*="text-align:center"] { text-align: center !important; }
.tbp-block__text [style*="text-align: right"], .tbp-block__text [style*="text-align:right"] { text-align: right !important; }
.tbp-block__text ul[style*="text-align: center"], .tbp-block__text ol[style*="text-align: center"] { list-style-position: inside; padding-left: 0; }

/* ===================== ราคาผู้ใหญ่ / เด็ก (2 ช่องเท่ากัน) ===================== */
.tbp-prices { display: grid; grid-template-columns: 1fr 1fr; margin: 4px 0 18px; padding: 14px 0; border-top: 1px solid var(--tbp-line); border-bottom: 1px solid var(--tbp-line); }
.tbp-prices__col { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 0 14px; }
.tbp-prices__col:first-child { padding-left: 0; }
.tbp-prices__col + .tbp-prices__col { border-left: 1px solid var(--tbp-line); padding-right: 0; }
.tbp-prices__label { font-size: .85em; font-weight: 600; color: var(--tbp-muted); line-height: 1.4; }
.tbp-prices__age { font-weight: 400; }
.tbp-prices__amt { font-size: 1.85em; font-weight: 800; line-height: 1.25; color: var(--tbp-primary); white-space: nowrap; letter-spacing: -.01em; }
.tbp-prices__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; min-height: 1.6em; font-size: .82em; color: var(--tbp-muted); line-height: 1.4; }
.tbp-prices__meta del { color: #8c8f94; font-weight: 600; }
.tbp-prices__off { padding: 1px 7px; border-radius: 6px; background: #e11d48; color: #fff; font-size: .92em; font-weight: 700; }
.tbp-prices, .tbp-prices * { text-align: left; }
@media (max-width: 1100px) and (min-width: 901px) {
	.tbp-prices__amt { font-size: 1.55em; }
}
@media (max-width: 380px) {
	.tbp-prices__amt { font-size: 1.5em; }
	.tbp-prices__col { padding: 0 10px; }
}

/* แบบกริด: รูปใหญ่ปัดเลื่อนได้ */
.tbp-gallery .tbp-ggrid__item--main { touch-action: pan-y; }
.tbp-ggrid__item--main > img:first-child:not(:only-child) { display: none; }
.tbp-ggrid__track { display: flex; width: 100%; height: 100%; transition: transform .38s cubic-bezier(.22, .7, .2, 1); will-change: transform; }
.tbp-gallery .tbp-ggrid__track img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; }
.tbp-gallery .tbp-ggrid__item--main:hover .tbp-ggrid__track img { transform: none; }
.tbp-ggrid__count { display: none; position: absolute; left: 12px; bottom: 12px; z-index: 1; padding: 4px 10px; border-radius: 999px; background: rgba(0, 0, 0, .55); color: #fff; font-size: .8em; font-weight: 600; line-height: 1.3; pointer-events: none; }
@media (max-width: 600px), (hover: none) {
	.tbp-ggrid__count { display: block; }
}
.tbp-lightbox { touch-action: pan-y; }
@media (prefers-reduced-motion: reduce) { .tbp-ggrid__track { transition: none; } }

/* ===================== ทัวร์ทั้งหมด: 4–5 ใบต่อแถว =====================
 * การ์ดย่อขนาดให้พอดีแถว (ไม่เกินจำนวนที่เลือก) · พื้นที่แคบลงจะลดจำนวนต่อแถวเอง (การ์ดกว้างอย่างน้อย 210px)
 */
.tbp-grid.tbp-grid--many {
	--tbp-gap: 20px;
	grid-template-columns: repeat(auto-fill, minmax(max(210px, calc((100% - (var(--tbp-cols) - 1) * var(--tbp-gap)) / var(--tbp-cols))), 1fr));
	gap: 28px var(--tbp-gap);
	max-width: none;
}
.tbp-grid--many .tbp-card__body { padding: 14px 16px 16px; }
.tbp-grid--many .tbp-card__title { font-size: 1.02em; }
@media (max-width: 400px) { .tbp-grid.tbp-grid--many { grid-template-columns: minmax(0, 1fr); } }

/* หน้าจอง: กดรูป/ชื่อทัวร์ไปหน้ารายละเอียด */
.tbp-head__link { display: block; overflow: hidden; }
.tbp-head__link .tbp-head__img { transition: transform .6s cubic-bezier(.2, .7, .2, 1), filter .3s; }
.tbp-head__link:hover .tbp-head__img { transform: scale(1.03); filter: brightness(.95); }
.tbp-modal .tbp-head__title-link { color: inherit; text-decoration: none; }
.tbp-modal .tbp-head__title-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.tbp-modal .tbp-head__title-link::after { content: ' ›'; color: var(--tbp-muted); font-weight: 400; }

/* ===================== หัวข้อเนื้อหาแบบไม่มีกล่อง ===================== */
.tbp-single--plain .tbp-block { margin: 0; padding: 30px 0; border: 0; border-top: 1px solid var(--tbp-line); border-radius: 0; background: transparent; box-shadow: none; }
.tbp-single--plain .tbp-single__main > .tbp-block:first-of-type { border-top: 0; padding-top: 18px; }
.tbp-single--plain .tbp-block > h2 { margin: 0 0 14px; padding: 0; border: 0; font-size: 1.35em; }
.tbp-single--plain .tbp-feats { border-top: 0; }
@media (max-width: 600px) {
	.tbp-single--plain .tbp-block { padding: 24px 0; }
}

/* ===================== ทัวร์แนะนำท้ายหน้า (สไลด์) ===================== */
.tbp-related { margin: 48px 0 0; padding-top: 36px; border-top: 1px solid var(--tbp-line); }
.tbp-related__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.tbp-related__head h2 { margin: 0; font-size: 1.75em; line-height: 1.3; }
.tbp-related__tools { display: flex; align-items: center; gap: 14px; flex: none; }
.tbp-related__all { color: var(--tbp-primary); font-weight: 600; text-decoration: none; white-space: nowrap; }
.tbp-related__all:hover { text-decoration: underline; }
.tbp-related__nav { display: flex; gap: 8px; }
.tbp-related .tbp-related__btn {
	all: unset; box-sizing: border-box; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
	border: 1px solid var(--tbp-line); background: #fff; color: var(--tbp-text); cursor: pointer;
	box-shadow: 0 2px 8px rgba(0, 0, 0, .06); transition: background .2s, color .2s, opacity .2s;
}
.tbp-related .tbp-related__btn:hover { background: var(--tbp-primary); border-color: var(--tbp-primary); color: #fff; }
.tbp-related .tbp-related__btn:focus-visible { outline: 3px solid color-mix(in srgb, var(--tbp-primary) 45%, transparent); outline-offset: 2px; }
.tbp-related .tbp-related__btn svg { width: 18px; height: 18px; }
.tbp-related.is-static .tbp-related__nav { display: none; }
.tbp-related .tbp-grid-wrap { width: 100%; }
.tbp-related .tbp-grid, .tbp-related .tbp-grid.tbp-grid--many {
	--tbp-rgap: 22px;
	display: grid; grid-auto-flow: column; grid-template-columns: none;
	--tbp-rv: var(--tbp-rn, 4);
	grid-auto-columns: calc((100% - (var(--tbp-rv) - 1) * var(--tbp-rgap)) / var(--tbp-rv));
	gap: var(--tbp-rgap); justify-content: start; max-width: none; margin: 0;
	overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-behavior: smooth;
	padding: 4px 0 16px; scrollbar-width: none;
}
.tbp-related .tbp-grid::-webkit-scrollbar { display: none; }
.tbp-related .tbp-grid .tbp-card { scroll-snap-align: start; }
@media (max-width: 1000px) {
	.tbp-related .tbp-grid, .tbp-related .tbp-grid.tbp-grid--many { --tbp-rv: min(3, var(--tbp-rn, 3)); }
}
@media (max-width: 760px) {
	.tbp-related .tbp-grid, .tbp-related .tbp-grid.tbp-grid--many { --tbp-rv: min(2, var(--tbp-rn, 2)); }
}
@media (max-width: 600px) {
	.tbp-related { margin-top: 36px; padding-top: 28px; }
	.tbp-related__head { flex-wrap: wrap; align-items: center; }
	.tbp-related__head h2 { font-size: 1.4em; }
	.tbp-related .tbp-related__btn { width: 36px; height: 36px; }
	.tbp-related .tbp-grid-wrap { margin: 0 -16px; width: auto; }
	.tbp-related .tbp-grid, .tbp-related .tbp-grid.tbp-grid--many { --tbp-rgap: 14px; grid-auto-columns: 78%; padding: 4px 16px 14px; scroll-padding: 0 16px; }
	.tbp-related .tbp-grid .tbp-card:hover { transform: none; }
}
@media (prefers-reduced-motion: reduce) { .tbp-related .tbp-grid { scroll-behavior: auto; } }

/* ===================== รวม/ไม่รวมในราคา: ไม่มีพื้นหลัง เรียงคนละบรรทัด ===================== */
.tbp-block--extras .tbp-extras { display: block; margin: 0; }
.tbp-block--extras .tbp-extras__col { padding: 0; border-radius: 0; background: none; }
.tbp-block--extras .tbp-extras__col + .tbp-extras__col { margin-top: 22px; }
.tbp-block--extras .tbp-extras__col h3 { margin: 0 0 8px; }
.tbp-block--extras .tbp-extras__col li { margin: 0 0 6px; }

/* ===================== ตารางเวลา: คอลัมน์เวลากว้างพอดีข้อความ ===================== */
@supports (grid-template-columns: subgrid) {
	.tbp-timeline { display: grid; grid-template-columns: fit-content(45%) 1fr; column-gap: 24px; padding-left: 30px; }
	.tbp-timeline::before { left: 7px; }
	.tbp-timeline li { grid-column: 1 / -1; grid-template-columns: subgrid; gap: 0; column-gap: 24px; padding-left: 0; }
	.tbp-timeline li::before { left: -30px; }
	@media (max-width: 600px) {
		.tbp-timeline { grid-template-columns: 1fr; }
		.tbp-timeline li { row-gap: 2px; }
	}
}

/* ===================== หัวข้อด้านซ้าย เนื้อหาด้านขวา ===================== */
@media (min-width: 761px) {
	.tbp-single--side .tbp-block { display: grid; grid-template-columns: minmax(150px, 26%) minmax(0, 1fr); column-gap: 36px; row-gap: 0; align-items: start; }
	.tbp-single--side .tbp-block > h2 { grid-column: 1; grid-row: 1 / span 20; margin: 0; font-size: 1.45em; line-height: 1.3; }
	.tbp-single--side .tbp-block > :not(h2) { grid-column: 2; min-width: 0; }
	.tbp-single--side .tbp-block > :not(h2) + :not(h2) { margin-top: 14px; }
}
/* ตารางเวลา: เวลาตัวหนาด้านบน รายละเอียดด้านล่าง */
.tbp-single--side .tbp-timeline { display: block; padding-left: 0; }
.tbp-single--side .tbp-timeline li { display: block; padding: 0 0 22px 34px; }
.tbp-single--side .tbp-timeline li:last-child { padding-bottom: 4px; }
.tbp-single--side .tbp-timeline li::before { left: 0; top: 4px; width: 18px; height: 18px; border-width: 2.5px; }
.tbp-single--side .tbp-timeline::before { left: 8px; }
.tbp-single--side .tbp-timeline__time { display: block; margin-bottom: 2px; font-size: 1.08em; color: var(--tbp-text); }
.tbp-single--side .tbp-timeline__text { display: block; color: var(--tbp-muted); }

/* ลูกศรทัวร์แนะนำ: ซ้าย/ขวาของแถวการ์ด กึ่งกลางรูป */
.tbp-related__stage { position: relative; }
.tbp-related .tbp-related__btn { position: absolute; z-index: 3; top: calc(var(--tbp-rimg, 110px)); transform: translateY(-50%); width: 46px; height: 46px; }
.tbp-related .tbp-related__btn--prev { left: -23px; }
.tbp-related .tbp-related__btn--next { right: -23px; }
.tbp-related.is-static .tbp-related__btn { display: none; }
@media (max-width: 1240px) {
	.tbp-related .tbp-related__btn--prev { left: 6px; }
	.tbp-related .tbp-related__btn--next { right: 6px; }
}
@media (max-width: 600px) {
	.tbp-related .tbp-related__btn { width: 38px; height: 38px; }
	.tbp-related .tbp-related__btn--prev { left: 8px; }
	.tbp-related .tbp-related__btn--next { right: 8px; }
}

/* ขนาดตัวอักษรเนื้อหาหัวข้อ (ตั้งค่าได้) */
.tbp-single .tbp-block__text, .tbp-single .tbp-timeline, .tbp-single .tbp-extras { font-size: var(--tbp-body-size, inherit); }
.tbp-single .tbp-block__text p, .tbp-single .tbp-block__text li, .tbp-single .tbp-block__text span:not([style*="font-size"]) { font-size: inherit; }


/* คำโปรยบนการ์ดทัวร์: ความสูงคงที่ตามจำนวนบรรทัด → การ์ดสูงเท่ากัน */
.tbp-card .tbp-card__desc {
	--tbp-cd-lh: 1.55;
	flex: none; margin: 10px 0 0; color: #4b5563;
	font-size: var(--tbp-cd-size, 15px); font-weight: var(--tbp-cd-weight, 400); line-height: var(--tbp-cd-lh);
	height: calc(var(--tbp-cd-lines, 2) * var(--tbp-cd-lh) * 1em);
	display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: var(--tbp-cd-lines, 2); line-clamp: var(--tbp-cd-lines, 2);
	overflow: hidden; overflow-wrap: anywhere;
}
.tbp-card .tbp-card__desc, .tbp-card .tbp-card__desc * { font-size: var(--tbp-cd-size, 15px) !important; }

@media (max-width: 900px) {
	.tbp-hero .tbp-ggrid { height: auto; min-height: 0; aspect-ratio: 16 / 8; }
}
@media (max-width: 600px) {
	.tbp-hero .tbp-gallery--grid .tbp-ggrid { aspect-ratio: auto; }
}
