/* TRAVELXPRESS booking - home.css : home page design "showcase" + home design preview banner.
   14/11/2026 owner request (home page layout like the reference site, own brand / content / data) + admin chooses the home design.
   Loaded only by inc/home_showcase.php and by any ?design= preview. All rules are scoped (.hx / .hx-* / .home-preview), so the classic design is untouched.
   Colours come from the site.css tokens; no external images (hero art = assets/img/hero.svg drawn in-house). ASCII only. */

/* ---------- preview banner (index.php?design=...) ---------- */
.home-preview { background: #fff7e0; border-bottom: 1px solid #f1d58a; color: #5a4300; }
.home-preview-in { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding-block: 10px; font-size: 14px; line-height: 20px; }
.home-preview-in p { flex: 1 1 240px; }
.home-preview-x { font-weight: 600; color: inherit; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- base ---------- */
.hx { --g: 16px; --gap: 16px; --hx-panel: #4a0f22; --hx-panel-2: #6d1430; overflow-x: clip; }
.hx [hidden] { display: none !important; }
:where(.hx) ul, :where(.hx) ol { list-style: none; padding: 0; margin: 0; }	/* :where = lowest specificity, so .hx-row / .hx-steps spacing wins */
.hx-sec { padding-block: 32px; }
.hx-sec-alt { background: var(--surface-2); }
.hx-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px 16px; margin-bottom: 16px; }
.hx-head-t { min-width: 0; }
.hx-head h2 { font-size: 20px; line-height: 28px; font-weight: 700; color: var(--ink); letter-spacing: -.01em; }
.hx-head p { margin-top: 2px; font-size: 14px; line-height: 22px; color: var(--ink-500); }
.hx-head-tools { display: flex; align-items: center; gap: 12px; flex: none; height: 30px; }	/* height = h2 line-height: links / arrows centre on the title line */
.hx-all { font-size: 14px; line-height: 20px; font-weight: 600; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; padding-block: 12px; margin-block: -12px; white-space: nowrap; }
.hx-all:hover { color: var(--accent-text); }
.hx-nav { display: flex; gap: 8px; }
@media (max-width: 767px) { .hx .hx-nav { display: none !important; } }	/* phones swipe; the arrows are for wider screens */
.hx-arrow { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 1px solid var(--line-200); border-radius: var(--r-pill); background: var(--surface); color: var(--ink); cursor: pointer; transition: border-color .15s ease, opacity .15s ease; }
.hx-arrow .ico { width: 18px; height: 18px; }
.hx-arrow:hover:not(:disabled) { border-color: var(--ink-500); }
.hx-arrow:disabled { opacity: .4; cursor: default; }

/* ---------- swipe rows (CSS scroll-snap; works without JS) ---------- */
.hx-row { display: grid; grid-auto-flow: column; gap: var(--gap); overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: var(--g); margin-inline: calc(var(--g) * -1); padding: 2px var(--g) 8px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.hx-row::-webkit-scrollbar { display: none; }
.hx-row > li { scroll-snap-align: start; min-width: 0; position: relative; }
.hx-row:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 4px; }
.hx-row-prod { grid-auto-columns: 74%; }
.hx-row-dest { grid-auto-columns: 46%; }
.hx-row-tiles { grid-auto-columns: 46%; }
.hx-row-promo { grid-auto-columns: 86%; }
/* mouse users without JS (no arrow buttons) keep a thin scrollbar; home.js adds .hx-js and the arrows take over */
@media (hover: hover) and (pointer: fine) { .hx:not(.hx-js) .hx-row { scrollbar-width: thin; } .hx:not(.hx-js) .hx-row::-webkit-scrollbar { display: block; height: 6px; } .hx:not(.hx-js) .hx-row::-webkit-scrollbar-thumb { background: var(--line-200); border-radius: 3px; } }

/* media boxes (fixed aspect ratio = no layout shift) */
.hx-media { position: relative; display: block; overflow: hidden; border-radius: 12px; background: var(--surface-3); }
.hx-media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.hx-media-43 { aspect-ratio: 4 / 3; }
.hx-media-34 { aspect-ratio: 3 / 4; }
.hx-media-45 { aspect-ratio: 4 / 5; }
.hx-ph { position: absolute; inset: 0; display: grid; place-items: center; color: var(--ink-500); }
.hx-ph-brand { color: #fff; background: linear-gradient(160deg, var(--accent) 0%, var(--hx-panel) 100%); }
.hx-ph-dark { color: #fff; background: linear-gradient(160deg, #33404f 0%, var(--ink) 100%); }
.hx-tile:hover .hx-media img, .hx-card:hover .hx-media img { transform: scale(1.03); }

/* full-tile link: the caption link covers the whole tile / card */
.hx-stretch { color: inherit; }
.hx-stretch::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: 12px; }
.hx-stretch:focus-visible { outline: none; }
.hx-stretch:focus-visible::after { outline: 2px solid var(--ink); outline-offset: 2px; }

/* portrait tiles (service types, destinations) */
.hx-tile-t { display: block; margin-top: 10px; font-size: 15px; line-height: 22px; font-weight: 600; color: var(--ink); }
.hx-tile:hover .hx-tile-t { text-decoration: underline; text-underline-offset: 3px; }
.hx-tile-p { margin-top: 4px; font-size: 13px; line-height: 18px; color: var(--ink-500); }  /* 14/11/2026 related row on the product page: "from" price under the name */
.hx-tile-p .price { font-size: 15px; line-height: 22px; }
.hx-tile-p .price small { display: inline; margin-right: 4px; }
.hx-related .hx-sec { padding-block: 24px 40px; border-top: 1px solid var(--line-200); }
/* 14/11/2026 owner: home destination cards with the name on the photo (same look as the classic province cards) */
.hx-row-ov .hx-tile { position: relative; }
.hx-row-ov .hx-media { background: linear-gradient(160deg, #24343f, #1f2a37); }
.hx-row-ov .hx-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(15, 23, 32, .78) 0%, rgba(15, 23, 32, .18) 48%, rgba(15, 23, 32, 0) 70%); pointer-events: none; }
.hx-row-ov .hx-tile-t { position: absolute; inset: 0; z-index: 1; display: flex; align-items: flex-end; margin: 0; padding: 14px 14px 32px; color: #fff; font-size: 18px; line-height: 26px; font-weight: 700; overflow-wrap: anywhere; }
.hx-row-ov .hx-tile-s { position: absolute; left: 14px; right: 14px; bottom: 12px; z-index: 1; margin: 0; }
.hx-row-ov .hx-tile-s { bottom: 12px; color: rgba(255, 255, 255, .88); -webkit-line-clamp: 1; pointer-events: none; }
.hx-row-ov .hx-tile:hover .hx-tile-t { text-decoration: none; }
.hx-row-ov .hx-stretch:focus-visible::after { outline-color: var(--accent); }
.hx-tile-s { display: block; margin-top: 2px; font-size: 13px; line-height: 18px; color: var(--ink-500); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* product cards */
.hx-card { position: relative; display: flex; flex-direction: column; height: 100%; }
.hx-card-b { display: flex; flex-direction: column; flex: 1; padding-top: 10px; }
.hx-meta { font-size: 13px; line-height: 18px; color: var(--ink-500); }
.hx-card-t { margin-top: 4px; font-size: 16px; line-height: 24px; font-weight: 600; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hx-card:hover .hx-card-t a { text-decoration: underline; text-underline-offset: 3px; }
.hx-feat { display: flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 13px; line-height: 18px; color: var(--ink-700); }
.hx-feat .ico { width: 16px; height: 16px; color: var(--ink-500); }
.hx-card-p { margin-top: auto; padding-top: 12px; }
.hx-card .price { font-size: 18px; line-height: 24px; font-weight: 700; }
.hx-card .price small { font-size: 12px; line-height: 16px; }
.hx-card .price .per { font-size: 13px; }
.hx-card .price-quote { font-size: 15px; line-height: 22px; font-weight: 600; }

/* promotions */
.hx-promo { display: block; aspect-ratio: 12 / 5; border-radius: var(--r-lg); overflow: hidden; background: var(--surface-2); }
.hx-promo img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
a.hx-promo:hover img { transform: scale(1.03); }
a.hx-promo:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- hero image card + search ---------- */
.hx-hero { padding-top: 16px; }
.hx-hero-card { position: relative; border-radius: var(--r-xl); overflow: hidden; background: var(--surface); box-shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 0 0 1px var(--line-200); }
.hx-stage { position: relative; min-height: 300px; display: flex; background: var(--ink); color: #fff; isolation: isolate; }
.hx-slides { position: absolute; inset: 0; z-index: -2; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.hx-slides::-webkit-scrollbar { display: none; }
.hx-slide { flex: 0 0 100%; scroll-snap-align: start; position: relative; }
.hx-slide img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hx-slide-art { background: var(--ink) url("../img/hero.svg") center bottom / cover no-repeat; overflow: hidden; container-type: size; }
/* 15/11/2026 owner request: YouTube background video on slide 1 ; 16:9 frame scaled to cover the slide, not clickable */
.hx-vid { position: absolute; top: 50%; left: 50%; width: max(100cqw, 177.78cqh); height: max(100cqh, 56.25cqw); transform: translate(-50%, -50%); border: 0; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .hx-vid { display: none; } }
.hx-slides:focus-visible { outline: 2px solid #fff; outline-offset: -4px; }
.hx-stage::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(to top, rgba(15, 23, 32, .78) 0%, rgba(15, 23, 32, .30) 55%, rgba(15, 23, 32, 0) 80%); }
.hx-hero-copy { align-self: flex-end; padding: 20px 20px 28px; max-width: 600px; pointer-events: none; }
.hx-hero-t { font-size: 24px; line-height: 32px; font-weight: 700; letter-spacing: -.015em; text-wrap: balance; text-shadow: 0 1px 12px rgba(0, 0, 0, .25); }
.hx-hero-s { margin-top: 6px; font-size: 15px; line-height: 22px; color: rgba(255, 255, 255, .92); }
.hx-dots { position: absolute; right: 8px; bottom: 0; display: flex; gap: 0; align-items: center; }
/* 40 x 40 transparent tap box; the visible pill is drawn by ::before */
.hx-dot-b { position: relative; width: 24px; height: 40px; padding: 0; border: 0; border-radius: var(--r-md); background: none; cursor: pointer; transition: width .2s ease; }
.hx-dot-b::before { content: ""; position: absolute; top: 16px; bottom: 16px; left: 8px; right: 8px; border-radius: var(--r-pill); background: rgba(255, 255, 255, .55); transition: background-color .2s ease; }
.hx-dot-b[aria-current="true"] { width: 36px; }
.hx-dot-b[aria-current="true"]::before { background: #fff; }
.hx-dot-b:focus-visible { outline: 2px solid #fff; outline-offset: -4px; }

/* hero services ticker (25/11/2026 owner, BK141: "auto slide with the icon and name of our services here; click = that type's list page") :
   top right of the hero ; one service at a time (home.js [data-hx-svc] sets .is-on / .is-out) ; every item sits in the same grid cell,
   so the pill keeps the width of the longest name and does not jump ; without JavaScript the first item shows */
.hx-svc { position: absolute; top: 12px; right: 12px; z-index: 1; max-width: calc(100% - 24px); }
.hx-svc-list { display: grid; padding: 4px 14px 4px 4px; border: 1px solid rgba(255, 255, 255, .22); border-radius: var(--r-pill); background: rgba(15, 23, 32, .55); box-shadow: 0 6px 20px rgba(3, 18, 26, .22); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); overflow: hidden; }
.hx-svc-i { grid-area: 1 / 1; min-width: 0; opacity: 0; transform: translateY(14px); pointer-events: none; transition: opacity .45s ease, transform .45s ease; }
.hx-svc-i.is-on { opacity: 1; transform: none; pointer-events: auto; transition-delay: .15s; }	/* the new name comes in just after the old one has started to leave (less overlap) */
.hx-svc-i.is-out { opacity: 0; transform: translateY(-14px); transition-duration: .3s; }
.hx-svc-a { display: flex; align-items: center; gap: 10px; min-height: 36px; color: #fff; font-size: 15px; line-height: 22px; font-weight: 600; white-space: nowrap; }
.hx-svc-ic { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: var(--accent-on); }
.hx-svc-ic .ico { width: 18px; height: 18px; }
.hx-svc-t { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.hx-svc-go { flex: none; width: 16px; height: 16px; margin-left: auto; opacity: .85; }
.hx-svc-a:hover .hx-svc-t { text-decoration: underline; text-underline-offset: 3px; }
.hx-svc-a:focus-visible { outline: 2px solid #fff; outline-offset: -2px; border-radius: var(--r-pill); }
@media (min-width: 768px) { .hx-svc { top: 24px; right: 24px; } .hx-svc-list { padding: 5px 16px 5px 5px; } .hx-svc-a { font-size: 16px; line-height: 24px; } .hx-svc-ic { width: 34px; height: 34px; } }
@media (min-width: 1024px) { .hx-svc { top: 32px; right: 40px; } }
@media (prefers-reduced-motion: reduce) { .hx-svc-i, .hx-svc-i.is-out { transform: none; transition: none; } }

.hx-search { display: grid; gap: 8px; padding: 12px; background: var(--surface); }
.hx-f { display: grid; gap: 2px; min-width: 0; }
.hx-lb { font-size: 13px; line-height: 18px; font-weight: 600; color: var(--ink-700); padding-inline: 4px; }
.hx-in-ic { position: relative; display: block; }
.hx-in-ic .ico { position: absolute; left: 12px; top: 14px; width: 20px; height: 20px; color: var(--ink-500); pointer-events: none; }
.hx-in { width: 100%; height: 48px; padding: 0 12px; border: 1px solid var(--line-400); border-radius: 10px; background: var(--surface); color: var(--ink); font: 400 16px/24px var(--font); }
.hx-in-ic .hx-in { padding-left: 42px; }
.hx-in::placeholder { color: var(--ink-500); opacity: 1; }
.hx-in:hover { border-color: var(--ink-500); }
.hx-in:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
select.hx-in { padding-right: 36px; }
.hx-go { min-height: 52px; border-radius: 12px; margin-top: 4px; }

/* ---------- value strip ---------- */
.hx-values-sec { padding: 24px 0 32px; }
.hx-values { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 16px; }
.hx-values li { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.hx-vi { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 6px; border-radius: var(--r-md); background: var(--accent-soft); color: var(--accent-text); }
.hx-vi .ico { width: 22px; height: 22px; }
.hx-values b { font-size: 15px; line-height: 22px; font-weight: 600; color: var(--ink); }
.hx-values span:not(.hx-vi) { font-size: 13px; line-height: 20px; color: var(--ink-500); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- curation panel ---------- */
/* 14/11/2026 owner: light background for this panel (was dark maroon) */
.hx-panel { display: grid; gap: 24px; padding: 24px 20px; border-radius: var(--r-xl); color: var(--ink); background: linear-gradient(135deg, var(--accent-soft) 0%, #fdf4f6 55%, var(--surface-2) 100%); border: 1px solid #f3d3dc; overflow: hidden; }
.hx-panel h2 { font-size: 22px; line-height: 30px; font-weight: 700; letter-spacing: -.01em; }
.hx-panel-t > p { margin-top: 8px; font-size: 15px; line-height: 24px; color: var(--ink-500); max-width: 520px; }
.hx-steps { display: grid; gap: 10px; margin-top: 16px; }
.hx-steps li { display: flex; align-items: center; gap: 10px; font-size: 14px; line-height: 20px; }
.hx-steps li span { display: grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: var(--r-pill); background: var(--accent); color: var(--accent-on); font-weight: 700; font-size: 13px; }
.hx-panel-a { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.hx-panel-a .btn { border-radius: 12px; }
.hx-panel .btn-light { background: var(--accent); color: var(--accent-on); border-color: var(--accent); }
.hx-panel .btn-light:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.hx-btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line-400); }
.hx-btn-ghost:hover { background: var(--surface); border-color: var(--accent); color: var(--accent-text); }
.hx-panel :focus-visible { outline-color: var(--accent); }
/* 14/11/2026 owner: one large photo instead of the 5-photo collage */
/* 14/11/2026 owner: "full, no border" = the photo runs to the panel edges; the text side keeps the padding */
.hx-panel.has-collage { padding: 0; gap: 0; }
.hx-panel.has-collage .hx-panel-t { padding: 24px 20px; }
.hx-photo { margin: 0; order: -1; aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface-3); }
.hx-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hx-photo-fix img { object-position: 28% 50%; }	/* 17/11/2026 รูปคายัค : เรืออยู่ซ้ายของภาพ */

/* ---------- 480+ ---------- */
@media (min-width: 480px) {
  .hx-row-prod { grid-auto-columns: 58%; }
}
/* ---------- 640+ ---------- */
@media (min-width: 640px) {
  .hx { --g: 24px; --gap: 24px; }	/* gap = gutter below 1024: a snapped card leaves no sliver of the previous one */
  .hx-row-prod { grid-auto-columns: 44%; }
  .hx-row-dest { grid-auto-columns: 28%; }
  .hx-row-tiles { grid-auto-columns: 27%; }
  .hx-row-promo { grid-auto-columns: calc((100% - var(--gap)) / 2); }
  .hx-panel { padding: 32px; }
  .hx-panel.has-collage { padding: 0; }
  .hx-panel.has-collage .hx-panel-t { padding: 32px; }
}
/* ---------- 768+ ---------- */
@media (min-width: 768px) {
  .hx-sec { padding-block: 48px; }
  .hx-head h2 { font-size: 22px; line-height: 30px; }
  .hx-head { margin-bottom: 20px; }
  .hx-head-tools { height: 34px; }
  .hx-values-sec { padding-bottom: 48px; }
  .hx-row-prod { grid-auto-columns: 36%; }
  .hx-row-dest { grid-auto-columns: 22%; }
  .hx-row-tiles { grid-auto-columns: 21%; }
  .hx-hero { padding-top: 20px; }
  .hx-stage { min-height: 400px; }
  .hx-hero-copy { padding: 32px 32px 128px; }
  .hx-hero-t { font-size: 30px; line-height: 38px; }
  .hx-hero-s { font-size: 17px; line-height: 26px; }
  .hx-dots { right: 16px; bottom: 8px; }
  .hx-search { position: absolute; left: 32px; bottom: 32px; width: min(720px, calc(100% - 64px)); grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) auto; align-items: end; gap: 0; padding: 8px; border-radius: 16px; box-shadow: 0 12px 32px rgba(3, 18, 38, .22); }
  .hx-search .hx-lb { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
  .hx-search .hx-in { border-color: transparent; }
  .hx-search .hx-in:hover { background: var(--surface-2); }
  .hx-search .hx-in:focus { border-color: var(--ink); background: var(--surface); }
  .hx-f-k { border-left: 1px solid var(--line-200); padding-left: 4px; }
  .hx-go { margin: 0 0 0 8px; min-height: 48px; padding-inline: 24px; }
  .hx-values { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
  .hx-panel.has-collage { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: center; padding: 0; }
  .hx-panel.has-collage .hx-panel-t { padding: 40px; }
  .hx-photo { order: 0; align-self: stretch; aspect-ratio: auto; min-height: 340px; }
}
/* ---------- 1024+ ---------- */
@media (min-width: 1024px) {
  .hx { --gap: 16px; }
  .hx-sec { padding-block: 48px; }
  .hx-head h2 { font-size: 24px; line-height: 32px; }
  .hx-head-tools { height: 36px; }
  .hx-row { margin-inline: -4px; padding-inline: 4px; scroll-padding-inline: 4px; }	/* 4px room so focus rings are not clipped; the -4px keeps cards on the container edge */
  .hx-row-prod { grid-auto-columns: calc((100% - 3 * var(--gap)) / 4); }
  .hx-row-dest, .hx-row-tiles { grid-auto-columns: calc((100% - 5 * var(--gap)) / 6); }
  .hx-row-promo { grid-auto-columns: calc((100% - 2 * var(--gap)) / 3); }
  .hx-stage { min-height: 440px; }
  .hx-hero-copy { padding: 40px 40px 140px; }
  .hx-hero-t { font-size: 36px; line-height: 44px; }
  .hx-search { left: 40px; bottom: 40px; }
  .hx-panel.has-collage { padding: 0; gap: 0; }
  .hx-panel.has-collage .hx-panel-t { padding: 48px; }
  .hx-panel h2 { font-size: 26px; line-height: 34px; }
}
@media (min-width: 1280px) {
  .hx-stage { min-height: 460px; }
}

/* ---------- motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .hx-row, .hx-slides { scroll-behavior: auto; }
  .hx-media img, .hx-promo img, .hx-dot-b, .hx-arrow { transition: none; }
  .hx-tile:hover .hx-media img, .hx-card:hover .hx-media img, a.hx-promo:hover img { transform: none; }
}

/* 17/11/2026 เจ้าของ "ถ้าแถวไม่เต็มให้เอาแถวด้านล่างมาต่อได้เลย" : แพ็คเกจจอย 1-3 การ์ด + บริการแนะนำในแถวเดียวกัน (inc/home_showcase.php $hxPairN)
   จอเล็ก : เรียงบนลงล่าง (ระยะเท่าสองส่วนเดิม) ; >= 1024px : คอลัมน์ซ้ายกว้างเท่าการ์ดจอย (n ใน 4 ช่อง) ขวาเป็นการ์ดบริการแนะนำขนาดเดียวกัน */
.hx-pair .hx-part + .hx-part { margin-top: 64px; }
@media (min-width: 1024px) {
  .hx-pair-g { display: grid; gap: 0 var(--gap); align-items: start; }
  .hx-pair .hx-part { min-width: 0; }
  .hx-pair .hx-part + .hx-part { margin-top: 0; }
  .hx-pair .hx-row { margin-inline: 0; padding-inline: 0; scroll-padding-inline: 0; }
  .hx-pair-1 .hx-pair-g { grid-template-columns: calc((100% - 3 * var(--gap)) / 4) minmax(0, 1fr); }
  .hx-pair-2 .hx-pair-g { grid-template-columns: calc((100% - 3 * var(--gap)) / 2 + var(--gap)) minmax(0, 1fr); }
  .hx-pair-3 .hx-pair-g { grid-template-columns: calc((100% - 3 * var(--gap)) * 3 / 4 + 2 * var(--gap)) minmax(0, 1fr); }
  .hx-pair-1 .hx-part:first-child .hx-row-prod, .hx-pair-3 .hx-part:last-child .hx-row-prod { grid-auto-columns: 100%; }
  .hx-pair-2 .hx-part .hx-row-prod { grid-auto-columns: calc((100% - var(--gap)) / 2); }
  .hx-pair-3 .hx-part:first-child .hx-row-prod, .hx-pair-1 .hx-part:last-child .hx-row-prod { grid-auto-columns: calc((100% - 2 * var(--gap)) / 3); }
  /* 21/11/2026 ผู้ใช้ขอ "แพ็คเกจทัวร์ที่นี่ หากสินค้าเต็มทั้ง 3 ชนิด ให้แยกแถว" (BK101) : จอย + แพ็คเกจทัวร์ + บริการแนะนำ ในแถวเดียว (inc/home_showcase.php $hxRows) ;
     .hx-trio-<ช่องจอย><ช่องแพ็คเกจ> ส่วนท้าย = ช่องที่เหลือ ; การ์ดกว้างเท่าการ์ดแถวละ 4 เสมอ */
  .hx-trio-11 .hx-pair-g { grid-template-columns: calc((100% - 3 * var(--gap)) / 4) calc((100% - 3 * var(--gap)) / 4) minmax(0, 1fr); }
  .hx-trio-12 .hx-pair-g { grid-template-columns: calc((100% - 3 * var(--gap)) / 4) calc((100% - 3 * var(--gap)) / 2 + var(--gap)) minmax(0, 1fr); }
  .hx-trio-21 .hx-pair-g { grid-template-columns: calc((100% - 3 * var(--gap)) / 2 + var(--gap)) calc((100% - 3 * var(--gap)) / 4) minmax(0, 1fr); }
  .hx-trio-11 .hx-part:nth-child(-n+2) .hx-row-prod, .hx-trio-12 .hx-part:nth-child(odd) .hx-row-prod, .hx-trio-21 .hx-part:nth-child(n+2) .hx-row-prod { grid-auto-columns: 100%; }
  .hx-trio-11 .hx-part:nth-child(3) .hx-row-prod, .hx-trio-12 .hx-part:nth-child(2) .hx-row-prod, .hx-trio-21 .hx-part:first-child .hx-row-prod { grid-auto-columns: calc((100% - var(--gap)) / 2); }
  /* หัวส่วนที่แคบ 1 ช่อง (ชื่อ + ดูทั้งหมด + ลูกศร) อาจขึ้น 2 บรรทัด : หัวทุกส่วนในแถวใช้ความสูงเดียวกัน การ์ดจึงเริ่มระดับเดียวกัน (subgrid) */
  /* 21/11/2026 ผู้ใช้ขอ "แพ็คเกจทัวร์ที่นี่ หากสินค้าเต็มทั้ง 3 ชนิด ให้แยกแถว" (BK101 ตรวจงาน) : ส่วนกว้าง 1-2 ช่อง หัวข้อ + "ดูทั้งหมด" + ลูกศร ไม่พอบรรทัด = ย้าย "ดูทั้งหมด" / ลูกศร ลงบรรทัดใต้หัวข้อ
     (เดิมหัวข้อถูกบีบจนตัดคำ "แพ็คเกจ / ทัวร์" และคำอธิบาย 3 บรรทัด ที่ 1366px) ; ส่วนที่พอบรรทัดเดียวเหมือนเดิม */
  .hx-pair .hx-head { flex-wrap: wrap; }
  @supports (grid-template-rows: subgrid) {
    .hx-pair-g { grid-template-rows: auto auto; }
    .hx-pair .hx-part { display: grid; grid-row: span 2; grid-template-rows: subgrid; }
  }
}
