/* Transfer Booking Pro — frontend */
:root {
	--tfb-primary: #9a7b3c;
	--tfb-text: #1d2327;
	--tfb-muted: #646970;
	--tfb-line: #e4e7eb;
	--tfb-soft: #f5f7f8;
	--tfb-radius: 14px;
}

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

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

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

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

/* ป๊อปอัป */
html.tfb-lock { overflow: hidden; }
.tfb-modal[hidden] { display: none; }
.tfb-modal { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; padding: 16px; color: var(--tfb-text); font-size: 16px; line-height: 1.5; }
.tfb-modal__backdrop { position: absolute; inset: 0; background: rgba(15, 23, 32, .6); animation: tfbFade .2s; }
.tfb-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: tfbUp .25s ease-out; outline: none;
}
/* ปุ่มปิด: รีเซ็ตสไตล์ปุ่มของธีมทั้งหมด ไอคอนอยู่กลางวงกลมพอดี และติดมุมขวาบนแม้เลื่อนลง */
.tfb-modal .tfb-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;
}
.tfb-modal .tfb-modal__close svg { display: block; width: 20px; height: 20px; flex: none; }
.tfb-modal .tfb-modal__close:hover { background: #1d2327; color: #fff; transform: rotate(90deg); }
.tfb-modal .tfb-modal__close:focus-visible { outline: 3px solid color-mix(in srgb, var(--tfb-primary) 45%, transparent); outline-offset: 2px; }
.tfb-modal__body { padding: 0 0 1.25rem; }
@keyframes tfbFade { from { opacity: 0; } }
@keyframes tfbUp { from { opacity: 0; transform: translateY(16px); } }
@media (max-width: 600px) {
	.tfb-modal { padding: 0; align-items: flex-end; }
	.tfb-modal__dialog { max-height: 94vh; border-radius: 18px 18px 0 0; }
}

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

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

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

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

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

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

.tfb-review table { width: 100%; border-collapse: collapse; margin: 0; }
.tfb-review th, .tfb-review td { padding: .55rem 0; border-bottom: 1px solid var(--tfb-line); text-align: left; vertical-align: top; font-size: .95em; }
.tfb-review th { width: 34%; color: var(--tfb-muted); font-weight: 500; padding-right: 1rem; }
.tfb-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(--tfb-primary) 10%, #fff); }
.tfb-grand strong { font-size: 1.5em; color: var(--tfb-primary); }

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

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

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

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

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

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

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

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

/* แกลเลอรี */
.tfb-gallery { margin-bottom: 28px; }
.tfb-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); }
.tfb-gallery__main::before { content: ''; position: absolute; inset: -20px; background: var(--tfb-bg) center / cover no-repeat; filter: blur(18px) brightness(.85); opacity: .7; }
.tfb-gallery__img { position: relative; display: block; width: 100%; height: 100%; object-fit: contain; cursor: zoom-in; }
.tfb-gallery__zoom, .tfb-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; }
.tfb-gallery__zoom:hover, .tfb-gallery__nav:hover { background: rgba(0, 0, 0, .7); }
.tfb-gallery__zoom { right: 14px; bottom: 14px; width: 42px; height: 42px; }
.tfb-gallery__nav { top: 50%; width: 42px; height: 42px; transform: translateY(-50%); }
.tfb-gallery__nav--prev { left: 14px; }
.tfb-gallery__nav--next { right: 14px; }
.tfb-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; }
.tfb-gallery__thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; padding-bottom: 4px; }
.tfb-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; }
.tfb-gallery__thumbs button.is-active, .tfb-gallery__thumbs button:hover { opacity: 1; border-color: var(--tfb-primary); }
.tfb-gallery__thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }

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

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

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

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

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

@media (max-width: 900px) {
	.tfb-single { padding-bottom: 110px; }
	.tfb-single__grid { grid-template-columns: 1fr; gap: 0; }
	.tfb-single__side { position: static; order: -1; margin-bottom: 24px; }
	.tfb-single__main { display: contents; }
	.tfb-gallery { order: -3; }
	.tfb-single__title { order: -2; }
	.tfb-chips { order: -2; }
	.tfb-single__lead { order: -2; }
	.tfb-block { padding: 20px; }
	.tfb-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(--tfb-line); box-shadow: 0 -6px 24px rgba(0, 0, 0, .08);
	}
	.tfb-mbar__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 8px; line-height: 1.2; }
	.tfb-mbar__price small { width: 100%; color: var(--tfb-muted); font-size: .75em; }
	.tfb-mbar__price strong { font-size: 1.35em; color: var(--tfb-primary); }
	.tfb-mbar__price del { color: #8c8f94; font-size: .85em; }
	.tfb-mbar .tfb-btn { padding: .8em 1.6em; }
}
@media (max-width: 600px) {
	.tfb-gallery__main { border-radius: 12px; aspect-ratio: 4 / 3; }
	.tfb-gallery__nav { width: 36px; height: 36px; }
}

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

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

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

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

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

/* คลังคำสำหรับ GTranslate: ซ่อนจากสายตา แต่ยังอยู่ในหน้าเพื่อให้ถูกแปล */
.tfb-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%); }
.tfb-i18n span { display: block; }

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

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

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

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

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

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

.tfb-grid .tfb-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;
}
.tfb-grid .tfb-card:hover { box-shadow: 0 18px 40px -12px rgba(17, 24, 39, .18); transform: translateY(-3px); }
.tfb-grid .tfb-card__media { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #f3f4f6; }
.tfb-grid .tfb-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.tfb-grid .tfb-card:hover .tfb-card__media img { transform: scale(1.05); }
.tfb-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); }
.tfb-grid .tfb-card__body { display: flex; flex-direction: column; flex: 1; gap: 0; padding: 20px 22px 22px; }
.tfb-card__eyebrow { min-height: 1.5em; margin: 0 0 6px; font-size: .72em; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--tfb-primary); line-height: 1.5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tfb-grid .tfb-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; }
.tfb-grid .tfb-card__title a { color: #111827; text-decoration: none; }
.tfb-grid .tfb-card__title a:hover { color: var(--tfb-primary); }
.tfb-grid .tfb-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; }
.tfb-grid .tfb-card__meta span { overflow: hidden; text-overflow: ellipsis; }
.tfb-grid .tfb-card__meta .tfb-ico { width: 15px; height: 15px; flex: none; color: #9ca3af; }
.tfb-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; }
.tfb-card__price { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.tfb-card__price small { font-size: .72em; letter-spacing: .08em; text-transform: uppercase; color: #9ca3af; }
.tfb-card__amount { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.tfb-card__amount strong { font-size: 1.35rem; font-weight: 700; color: #111827; letter-spacing: -.01em; }
.tfb-card__amount del { font-size: .82em; color: #9ca3af; }
.tfb-card__child { font-size: .8em; color: #6b7280; }
.tfb-grid .tfb-card__actions { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; margin: 0; padding: 0; flex: none; }
.tfb-grid .tfb-card__actions .tfb-btn { flex: none; padding: .6em 1.25em; font-size: .9em; border-radius: 999px; }
.tfb-card__link { font-size: .82em; font-weight: 500; color: #6b7280; text-decoration: none; white-space: nowrap; }
.tfb-card__link:hover { color: var(--tfb-primary); }
.tfb-card__link span { display: inline-block; transition: transform .2s; }
.tfb-card__link:hover span { transform: translateX(3px); }

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

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

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

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

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

/* ปุ่มลูกศร / ขยาย: ล้างสไตล์ปุ่มของธีม ไอคอนอยู่กลางวงกลมพอดี */
.tfb-gallery .tfb-gallery__nav, .tfb-gallery .tfb-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;
}
.tfb-gallery .tfb-gallery__nav { top: 50%; transform: translateY(-50%); }
.tfb-gallery .tfb-gallery__nav--prev { left: 14px; right: auto; }
.tfb-gallery .tfb-gallery__nav--next { right: 14px; left: auto; }
.tfb-gallery .tfb-gallery__zoom { right: 14px; bottom: 14px; top: auto; left: auto; }
.tfb-gallery .tfb-gallery__nav:hover { background: #fff; transform: translateY(-50%) scale(1.06); }
.tfb-gallery .tfb-gallery__zoom:hover { background: #fff; transform: scale(1.06); }
.tfb-gallery .tfb-gallery__nav:focus-visible, .tfb-gallery .tfb-gallery__zoom:focus-visible { outline: 3px solid color-mix(in srgb, var(--tfb-primary) 55%, transparent); outline-offset: 2px; }
.tfb-gallery .tfb-gallery__nav svg, .tfb-gallery .tfb-gallery__zoom svg { display: block; width: 20px; height: 20px; flex: none; margin: 0; stroke-width: 2.2; }
.tfb-gallery .tfb-gallery__nav--prev svg { margin-left: -2px; }
.tfb-gallery .tfb-gallery__nav--next svg { margin-right: -2px; }
.tfb-gallery__count { z-index: 3; }

/* รูปย่อ: ล้างสไตล์ปุ่มของธีม */
.tfb-gallery .tfb-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;
}
.tfb-gallery .tfb-gallery__thumbs button.is-active, .tfb-gallery .tfb-gallery__thumbs button:hover { opacity: 1; border-color: var(--tfb-primary); }
.tfb-gallery .tfb-gallery__thumbs button:focus-visible { outline: 2px solid var(--tfb-primary); outline-offset: 2px; }
.tfb-gallery .tfb-gallery__thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tfb-gallery--section .tfb-gallery__thumbs button { width: 70px; height: 52px; }
.tfb-gallery--section .tfb-gallery__nav, .tfb-gallery--section .tfb-gallery__zoom { width: 38px; height: 38px; }
.tfb-gallery--section .tfb-gallery__nav svg, .tfb-gallery--section .tfb-gallery__zoom svg { width: 18px; height: 18px; }
@media (max-width: 600px) {
	.tfb-gallery .tfb-gallery__nav { width: 38px; height: 38px; }
	.tfb-gallery .tfb-gallery__nav--prev { left: 10px; }
	.tfb-gallery .tfb-gallery__nav--next { right: 10px; }
}

/* ลูกศรในหน้าดูรูปเต็มจอ */
.tfb-lightbox .tfb-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;
}
.tfb-lightbox .tfb-lightbox__nav:hover { background: rgba(255, 255, 255, .3); }
.tfb-lightbox .tfb-lightbox__nav--prev { left: 16px; }
.tfb-lightbox .tfb-lightbox__nav--next { right: 16px; }
.tfb-lightbox .tfb-lightbox__nav svg { display: block; width: 24px; height: 24px; }
.tfb-lightbox.is-single .tfb-lightbox__nav { display: none; }

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

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

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

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

/* ===================== การ์ดทัวร์นูนเล็กน้อย =====================
 * เงาซ้อน 2 ชั้น (ใกล้ + ไกล) + ขอบไฮไลต์ด้านบน ให้ดูยกขึ้นจากพื้นแบบนุ่ม ๆ
 */
.tfb-grid .tfb-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);
}
.tfb-grid .tfb-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);
}
.tfb-grid .tfb-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) {
	.tfb-grid .tfb-card, .tfb-grid .tfb-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);
	}
	.tfb-grid .tfb-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);
	}
}


/* ===================== เอฟเฟกต์ตอนแตะการ์ดบนมือถือ =====================
 * ย่อลงเล็กน้อย + ไฮไลต์สีเด่นจาง ๆ ทั้งการ์ด แล้วเด้งกลับนุ่ม ๆ (ไม่จม)
 */
.tfb-grid .tfb-card::before {
	content: ''; position: absolute; inset: 0; z-index: 3; pointer-events: none; border-radius: inherit;
	background: var(--tfb-primary); opacity: 0; transition: opacity .35s ease;
}
.tfb-grid .tfb-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);
}
.tfb-grid .tfb-card.is-tap::before { opacity: .07; transition: opacity .1s ease-out; }
.tfb-grid .tfb-card:not(.is-tap) { transition: transform .35s cubic-bezier(.34, 1.56, .64, 1), box-shadow .35s ease; }
@media (prefers-reduced-motion: reduce) {
	.tfb-grid .tfb-card.is-tap { transform: none; }
}

/* ===================== ปัดลงเพื่อปิดป๊อปอัปจอง (เฉพาะโทรศัพท์) ===================== */
.tfb-modal__grab { display: none; }
@media (max-width: 600px) and (pointer: coarse) {
	.tfb-modal__grab {
		display: block; position: absolute; top: 0; left: 0; right: 0; z-index: 6; height: 26px;
		touch-action: none; cursor: grab;
	}
	.tfb-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);
	}
	.tfb-modal__dialog { overscroll-behavior: contain; will-change: transform; }
}


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

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

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

/* =====================================================================
 * เรือ & รถรับส่ง — ส่วนเพิ่มของฟอร์มจอง (ใช้หน้าตาเดียวกับป๊อปอัปจองทัวร์)
 * ================================================================== */
/* ฟอร์มในหน้า (ไม่ใช่ป๊อปอัป) */
.tfb-modal.tfb-modal--inline { position: static; inset: auto; z-index: auto; display: block; padding: 0; }
.tfb-modal--inline .tfb-modal__dialog { position: static; max-width: 760px; max-height: none; margin: 0 auto; overflow: visible; animation: none; box-shadow: 0 6px 28px rgba(0, 0, 0, .08); border: 1px solid var(--tfb-line); }
.tfb-modal--inline .tfb-modal__close, .tfb-modal--inline .tfb-modal__grab { display: none; }
@media (max-width: 600px) { .tfb-modal--inline .tfb-modal__dialog { border-radius: 14px; } }

/* หัวข้อส่วนในแต่ละขั้น (Program / Booking Details / Customer Detail) */
.tfb-sec-h { display: flex; align-items: center; gap: 12px; margin: 1.25rem 0 .75rem; font-size: 1.05em; font-weight: 700; color: var(--tfb-modal-text, var(--tfb-text)); }
.tfb-sec-h::after { content: ''; flex: 1; height: 1px; background: var(--tfb-border, var(--tfb-line)); }
.tfb-step > .tfb-sec-h:first-child { margin-top: .25rem; }

/* จอย / เหมา */
.tfb-modes { display: flex; gap: 6px; padding: 5px; margin: 0 0 1rem; border: 1px solid var(--tfb-field-border, #c3c4c7); border-radius: 999px; background: var(--tfb-panel-bg, var(--tfb-soft)); }
.tfb-modes label { flex: 1; margin: 0; cursor: pointer; }
.tfb-modes input { position: absolute; opacity: 0; pointer-events: none; }
.tfb-modes span { display: block; padding: .55em 1em; border-radius: 999px; text-align: center; font-weight: 600; color: var(--tfb-modal-muted, var(--tfb-muted)); transition: background .15s, color .15s; }
.tfb-modes input:checked + span { background: var(--tfb-primary); color: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .12); }
.tfb-modes input:focus-visible + span { outline: 2px solid var(--tfb-primary); outline-offset: 2px; }

/* รายการรอบเดินทาง */
.tfb-deps { display: flex; flex-direction: column; gap: 8px; }
.tfb-dep { display: flex; align-items: center; gap: .8em; padding: .8em 1em; margin: 0; border: 1px solid var(--tfb-field-border, #c3c4c7); border-radius: 12px; background: var(--tfb-field-bg, #fff); cursor: pointer; line-height: 1.4; transition: border-color .15s, background .15s; }
.tfb-dep:hover { border-color: var(--tfb-primary); }
.tfb-dep input { flex: none; width: 18px; height: 18px; margin: 0; accent-color: var(--tfb-primary); }
.tfb-dep.is-on { border-color: var(--tfb-primary); background: color-mix(in srgb, var(--tfb-primary) 8%, var(--tfb-field-bg, #fff)); box-shadow: 0 0 0 1px var(--tfb-primary) inset; }
.tfb-dep.is-off { opacity: .5; cursor: not-allowed; }
.tfb-dep__txt { flex: 1; min-width: 0; }
.tfb-dep__txt strong { display: block; font-weight: 600; }
.tfb-dep__txt small { display: block; color: var(--tfb-modal-muted, var(--tfb-muted)); font-size: .86em; }
.tfb-dep__price { flex: none; text-align: right; font-weight: 700; color: var(--tfb-primary); white-space: nowrap; }
.tfb-dep__price small { display: block; font-weight: 500; font-size: .78em; color: var(--tfb-modal-muted, var(--tfb-muted)); }
.tfb-dep__price em { font-style: normal; color: #b32d2e; font-size: .88em; }
.tfb-tag { display: inline-block; vertical-align: middle; margin-left: .35em; padding: .05em .55em; border-radius: 999px; font-size: .72em; font-weight: 700; background: color-mix(in srgb, var(--tfb-primary) 14%, #fff); color: var(--tfb-primary); }
.tfb-empty-deps { margin: 0; padding: .9em 1em; border: 1px dashed var(--tfb-border, var(--tfb-line)); border-radius: 12px; text-align: center; color: var(--tfb-modal-muted, var(--tfb-muted)); }

/* ขากลับ */
.tfb-ret { margin: 1rem 0; }
.tfb-ret__toggle { display: flex; align-items: center; gap: .6em; padding: .85em 1em; border: 1px solid var(--tfb-field-border, #c3c4c7); border-radius: 12px; background: var(--tfb-panel-bg, var(--tfb-soft)); cursor: pointer; font-weight: 600; }
.tfb-ret__toggle input { width: 18px; height: 18px; margin: 0; accent-color: var(--tfb-primary); }
.tfb-ret__body { margin-top: 1rem; padding-top: .25rem; }
.tfb-info { margin: 0 0 1rem; padding: .7em 1em; border-radius: 10px; background: var(--tfb-panel-bg, var(--tfb-soft)); color: var(--tfb-modal-muted, var(--tfb-muted)); font-size: .9em; white-space: pre-line; }

/* วันที่จอง / วันเดินทาง (อ่านอย่างเดียว) */
.tfb-kv { display: flex; justify-content: space-between; gap: 1rem; padding: .45rem 0; border-bottom: 1px solid var(--tfb-border, var(--tfb-line)); font-size: .95em; }
.tfb-kv:last-child { border-bottom: 0; }
.tfb-kv span { color: var(--tfb-modal-muted, var(--tfb-muted)); }
.tfb-kv strong { text-align: right; font-weight: 600; }
.tfb-kv small { display: block; font-weight: 400; color: var(--tfb-modal-muted, var(--tfb-muted)); }
.tfb-kvs { margin: 0 0 1rem; padding: .5rem 1rem; border-radius: 12px; background: var(--tfb-panel-bg, var(--tfb-soft)); }
.tfb-privnote { margin: .5rem 0 0; }

/* รอยืนยันยอดโอน → ปุ่มวอเชอร์ */
.tfb-vwait { display: flex; align-items: center; gap: .6em; margin-top: 1rem; padding: .8em 1em; border-radius: 12px; background: var(--tfb-panel-bg, var(--tfb-soft)); color: var(--tfb-modal-muted, var(--tfb-muted)); font-size: .9em; text-align: left; }
.tfb-vwait__dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--tfb-primary); animation: tfbPulse 1.4s infinite; }
.tfb-vwait.is-ready { flex-direction: column; text-align: center; }
@keyframes tfbPulse { 50% { opacity: .25; } }

/* กันธีม/ปลั๊กอินอื่นทับปุ่มในปฏิทิน (กดเลือกวันได้เสมอ) */
.tfb-modal .tfb-cal .tfb-cal__day, .tfb-modal .tfb-cal .tfb-cal__nav { pointer-events: auto !important; touch-action: manipulation; -webkit-user-select: none; user-select: none; }
.tfb-modal .tfb-cal .tfb-cal__day.is-open { cursor: pointer !important; }
.tfb-modal .tfb-cal .tfb-cal__day * { pointer-events: none; }

/* =====================================================================
 * หน้าจองเต็มหน้า (layout = page) — Program / Booking Details / Customer Detail / ชำระเงิน
 * ================================================================== */
.tfb-modal--page { --tfb-pcard-bg: var(--tfb-panel-bg, #fbf8f2); --tfb-pline: var(--tfb-border, #e8dfcf); --tfb-pserif: Georgia, "Times New Roman", serif; }
.tfb-modal--page .tfb-modal__dialog { max-width: 1050px; background: transparent; border: 0; box-shadow: none; border-radius: 0; }
.tfb-modal--page .tfb-modal__body { padding: 0; }
.tfb-pbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 6px 0 22px; margin-bottom: 28px; border-bottom: 1px solid var(--tfb-pline); }
.tfb-pbar__logo img { display: block; max-height: 64px; width: auto; }
.tfb-pbar__steps { display: flex; align-items: center; margin: 0 0 0 auto; padding: 0; list-style: none; }
.tfb-pbar__steps li { margin: 0; padding-bottom: 4px; color: var(--tfb-modal-muted, var(--tfb-muted)); font-size: 17px; border-bottom: 2px solid transparent; }
.tfb-pbar__steps li + li::before { content: ''; display: inline-block; width: 32px; height: 1px; margin: 0 16px; vertical-align: middle; background: var(--tfb-primary); opacity: .6; }
.tfb-pbar__steps li.is-done { color: var(--tfb-primary); }
.tfb-pbar__steps li.is-on { color: var(--tfb-primary); font-weight: 700; border-bottom-color: var(--tfb-primary); }
.tfb-ph { display: flex; align-items: center; gap: 22px; margin: 0 0 18px; font-family: var(--tfb-pserif); font-weight: 400; font-size: 27px; color: var(--tfb-primary); }
.tfb-ph::after { content: ''; flex: 1; height: 1px; background: var(--tfb-primary); opacity: .45; }
.tfb-modal--page section { margin-bottom: 34px; }
.tfb-pcard { padding: 28px 30px; background: var(--tfb-pcard-bg); border: 1px solid var(--tfb-pline); border-radius: 16px; box-shadow: 0 2px 12px rgba(120, 95, 40, .05); }
.tfb-pcard .tfb-field > label, .tfb-plabel { color: var(--tfb-modal-muted, var(--tfb-muted)); font-weight: 500; font-size: 16px; margin: 0 0 10px; }
.tfb-pcard .tfb-cal { background: #fff; }
.tfb-pcard .tfb-dep { padding: 16px 20px; }
.tfb-pcard .tfb-dep__txt strong { font-size: 1.08em; }
.tfb-ppax { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.tfb-pbox { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; background: #fff; border: 1px solid var(--tfb-pline); border-radius: 12px; }
.tfb-pbox strong { display: block; font-weight: 600; font-size: 1.05em; }
.tfb-pbox small { display: block; color: var(--tfb-modal-muted, var(--tfb-muted)); }
.tfb-pbox .tfb-stepper { border: 0; gap: 6px; }
.tfb-pbox .tfb-stepper button { width: 38px; height: 38px; border: 1.5px solid var(--tfb-primary); border-radius: 50%; color: var(--tfb-primary); font-size: 20px; line-height: 1; }
.tfb-pbox .tfb-stepper button[disabled] { border-color: var(--tfb-pline); color: #ccc; }
.tfb-pbox .tfb-stepper output { min-width: 1.6em; font-size: 1.15em; }
.tfb-phr { margin: 22px 0; border: 0; border-top: 1px solid var(--tfb-pline); }
.tfb-pkv, .tfb-pform .tfb-field { display: grid; grid-template-columns: 240px minmax(0, 1fr); align-items: center; gap: 6px 20px; margin: 0 0 14px; }
.tfb-pkv > span, .tfb-pform .tfb-field > label { margin: 0; color: var(--tfb-modal-text, var(--tfb-text)); font-size: 17px; font-weight: 500; }
.tfb-pkv input { width: 100%; padding: .7em .9em; border: 1px solid var(--tfb-pline); border-radius: 10px; background: color-mix(in srgb, var(--tfb-primary) 7%, #fff); color: var(--tfb-modal-muted, var(--tfb-muted)); font: inherit; }
.tfb-pkv small { display: block; margin-top: 6px; color: var(--tfb-modal-muted, var(--tfb-muted)); font-size: 14px; }
.tfb-pform .tfb-field--check, .tfb-pform .tfb-form-heading { grid-template-columns: 1fr; }
.tfb-pform .tfb-field input, .tfb-pform .tfb-field textarea, .tfb-pform .tfb-field select { background: #fff; }
.tfb-psum .tfb-pline { display: flex; justify-content: space-between; gap: 16px; padding: 6px 0; color: var(--tfb-modal-muted, var(--tfb-muted)); font-size: 17px; }
.tfb-ptotal { display: flex; justify-content: space-between; align-items: baseline; margin: 16px 0 20px; padding-top: 18px; border-top: 1px solid var(--tfb-pline); font-size: 18px; }
.tfb-ptotal strong { font-family: var(--tfb-pserif); font-size: 38px; color: var(--tfb-total-text, var(--tfb-primary)); }
.tfb-pbtn { margin-top: 14px; padding: 1em; font-size: 1.05em; letter-spacing: .12em; text-transform: uppercase; }
.tfb-pdone { max-width: 760px; margin: 0 auto; }
@media (max-width: 800px) {
	.tfb-pcard { padding: 20px; }
	.tfb-ppax { grid-template-columns: 1fr; }
	.tfb-pkv, .tfb-pform .tfb-field { grid-template-columns: 1fr; }
	.tfb-pbar { flex-direction: column; align-items: flex-start; }
	.tfb-pbar__steps { margin: 0; }
	.tfb-pbar__steps li { font-size: 14px; }
	.tfb-pbar__steps li + li::before { width: 16px; margin: 0 8px; }
	.tfb-ph { font-size: 22px; }
}
.tfb-modal--page, .tfb-modal--page *, .tfb-modal--page *::before, .tfb-modal--page *::after { box-sizing: border-box; }
.tfb-modal .tfb-ptotal strong.notranslate { font: 400 38px/1.2 var(--tfb-pserif); color: var(--tfb-total-text, var(--tfb-primary)); }
.tfb-modal .tfb-pkv input.notranslate { font-size: 16px; }
.tfb-pfoot { margin: 0 0 10px; text-align: center; color: var(--tfb-modal-muted, var(--tfb-muted)); font-size: 13px; }
.tfb-pform .tfb-field select { width: 100%; }

/* ---------- 1.2.0: เวลาเรือเหมา/รถ · รูปในรายการ · หน้าจองไม่มีพื้นหลัง ---------- */
.tfb-timepick:empty { display: none; }
.tfb-timepick select { width: 100%; max-width: 260px; font-size: 1.05em; }
.tfb-timepick small { display: block; margin-top: .35em; }
.tfb-dep__img { flex: none; width: 64px; height: 46px; object-fit: cover; border-radius: 8px; }
.tfb-modal--inline { --tfb-panel-bg: transparent; --tfb-soft: transparent; }
.tfb-modal--inline .tfb-modal__dialog { background: transparent; border: 0; box-shadow: none; }
.tfb-modal--inline .tfb-kvs, .tfb-modal--inline .tfb-info, .tfb-modal--inline .tfb-breakdown, .tfb-modal--inline .tfb-sum__group, .tfb-modal--inline .tfb-pcard, .tfb-modal--inline .tfb-ret__toggle, .tfb-modal--inline .tfb-details, .tfb-modal--inline .tfb-vwait { border: 1px solid var(--tfb-border, var(--tfb-line, #e5e5e5)); }
.tfb-modal--inline .tfb-modes { background: transparent; }
/* หน้าจอง: ไม่มีพื้นหลังสี (รวมสีอ่อนจากสีหลัก) — ใช้เส้นขอบแทน */
.tfb-modal--inline { --tfb-modal-bg: transparent; --tfb-cal-open-bg: transparent; --tfb-total-bg: transparent; --tfb-ghost-hover-bg: transparent; background: transparent; }
.tfb-modal--inline .tfb-modal__dialog, .tfb-modal--inline .tfb-modal__body, .tfb-modal--inline .tfb-modal__head, .tfb-modal--inline .tfb-modal__foot, .tfb-modal--inline .tfb-head, .tfb-modal--inline .tfb-steps { background: transparent !important; }
.tfb-modal--inline .tfb-cal .tfb-cal__day.is-open { background: transparent; border-color: var(--tfb-primary); }
.tfb-modal--inline .tfb-cal .tfb-cal__day.is-open:hover { background: transparent; }
.tfb-modal--inline .tfb-radio:has(input:checked), .tfb-modal--inline .tfb-paym__opt:has(input:checked), .tfb-modal--inline .tfb-dep.is-on { background: transparent; }
.tfb-modal--inline .tfb-grand { background: transparent; border: 1px solid var(--tfb-primary); }
.tfb-modal--inline .tfb-pkv input, .tfb-modal--inline .tfb-pcard { background: transparent; }
.tfb-modal--inline .tfb-tag, .tfb-modal--inline .tfb-card__tag { background: transparent; border: 1px solid currentColor; }
.tfb-modal--inline .tfb-btn--ghost:hover { background: transparent; }
/* ปฏิทินหน้าจอง: ช่องวันขนาดเท่ากันทุกช่อง (ไม่ยืดเป็นสี่เหลี่ยมยาว) */
.tfb-modal .tfb-cal .tfb-cal__day { width: 100%; max-width: 64px; min-height: 0; height: auto; aspect-ratio: 1 / 1; margin: 0 auto; padding: 2px; border-radius: 12px; }
.tfb-modal .tfb-cal .tfb-cal__day.is-open, .tfb-modal--inline .tfb-cal .tfb-cal__day.is-open { color: var(--tfb-text); background: transparent; border-color: transparent; }
.tfb-modal .tfb-cal .tfb-cal__day.is-open .tfb-cal__num { font-weight: 700; }
.tfb-modal .tfb-cal .tfb-cal__day.is-open:hover { border-color: var(--tfb-primary); }
.tfb-modal .tfb-cal .tfb-cal__day.is-selected { background: var(--tfb-primary); border-color: var(--tfb-primary); color: #fff; box-shadow: none; }
.tfb-modal .tfb-cal .tfb-cal__day:not(.is-open):not(.is-selected) .tfb-cal__num { font-weight: 400; }
.tfb-modal .tfb-cal { background: transparent; }
@media (max-width: 640px) { .tfb-modal .tfb-cal .tfb-cal__day { max-width: 46px; border-radius: 10px; } }
