/* TRAVELXPRESS booking - trip.css : "Design your trip" wizard (trip.php).
   17/11/2026 owner request; wizard look studied from TravelConnext's trip designer (step bar, step cards, summary).
   Scoped to .trip-* ; colours from site.css tokens ; no inline styles (CSP). ASCII only. */

/* hero (17/11/2026 owner: "a modern new hero scene" + "match the home page") :
   rounded card like the home's hx-hero-card, brand gradient, glow circles, route art, glass chips */
.trip-hero { padding: 16px 0 4px; margin-bottom: 16px; }
/* 17/11/2026 ผู้ใช้ขอ "เปลี่ยนภาพพื้นหลัง" : รูปถ่าย (ไฟล์จากเจ้าของ) + overlay เข้มด้านซ้ายให้อ่านตัวหนังสือออก */
.trip-hero-card { position: relative; border-radius: var(--r-xl); overflow: hidden; color: #fff; background: linear-gradient(96deg, rgba(22, 10, 15, .88) 0%, rgba(32, 12, 20, .68) 40%, rgba(20, 18, 20, .24) 70%, rgba(10, 14, 16, .1) 100%), url(../img/trip-hero.jpg?v=2) center 30% / cover no-repeat #15424a; box-shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 0 0 1px var(--line-200); padding: 32px 28px; margin-top: 10px; display: flex; align-items: center; min-height: 320px; }
.trip-hero-in { position: relative; max-width: 640px; }
.trip-hero-copy h1 { font-size: 24px; line-height: 32px; font-weight: 700; letter-spacing: -.015em; margin: 0 0 6px; text-wrap: balance; }
.trip-hero-copy p { font-size: 15px; line-height: 22px; color: rgba(255, 255, 255, .92); max-width: 560px; margin-bottom: 14px; }
.trip-hero-pts { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; }
.trip-hero-pts li { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 999px; background: rgba(12, 22, 26, .38); border: 1px solid rgba(255, 255, 255, .32); font-size: 13.5px; line-height: 18px; backdrop-filter: blur(4px); }
.trip-hero-pts .ico { width: 16px; height: 16px; flex: none; }
@media (max-width: 767px) {
	.trip-hero-card { min-height: 0; padding: 24px 18px; background: linear-gradient(rgba(24, 12, 17, .74), rgba(24, 12, 17, .74)), url(../img/trip-hero.jpg?v=2) center 30% / cover no-repeat #15424a; }
	.trip-hero-copy h1 { font-size: 24px; line-height: 32px; }
}

/* แคทตาล็อกรถรับส่ง แบบ TCX (17/11/2026 เจ้าของ: "ปรับรูปแบบการแสดงราคาเหมือนของ travelconnext") */
.trip-tfcat { margin: 14px 0 22px; border: 1px solid var(--line-200); border-radius: 12px; overflow: hidden; }	/* 17/11/2026 เจ้าของ: "เว้นระยะห่างจากข้างบน" — การ์ดอยู่บนสุดแล้ว เว้นช่องว่างก่อนแถวขาไป/ขากลับ */
.trip-tfcat-hd { display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: var(--surface-2); }
.trip-tfcat-hd > .ico { width: 22px; height: 22px; color: var(--accent-text); flex: none; }
.trip-tfcat-hd b { display: block; font-size: 14.5px; line-height: 20px; }
.trip-tfcat-hd small { color: var(--ink-500); font-size: 12.5px; line-height: 17px; }
.trip-tfcat-from { margin-left: auto; text-align: right; flex: none; }
.trip-tfcat-from small { display: block; color: var(--ink-500); font-size: 12px; line-height: 16px; }
.trip-tfcat-from b { font-size: 16px; line-height: 22px; color: var(--accent-text); }
.trip-tfcat-r { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--line-200); }
.trip-tfcat-ic { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line-200); border-radius: 10px; background: var(--surface-2); color: var(--ink-500); flex: none; }
.trip-tfcat-ic .ico { width: 20px; height: 20px; }
.trip-tfcat-n { flex: 1; min-width: 0; font-size: 14.5px; line-height: 20px; font-weight: 600; overflow-wrap: anywhere; }
.trip-tfcat-p { text-align: right; flex: none; }
.trip-tfcat-p b { display: block; font-size: 15px; line-height: 20px; }
.trip-tfcat-p small { color: var(--ink-500); font-size: 12px; line-height: 16px; }
.trip-tfcat-a { display: inline-flex; gap: 6px; flex: none; }
.trip-tfcat-btn { padding: 7px 12px; border: 1px solid var(--line-200); border-radius: var(--r-pill); background: var(--surface); color: var(--ink); font-size: 13px; line-height: 18px; cursor: pointer; white-space: nowrap; }
.trip-tfcat-btn:hover { border-color: var(--ink-500); }
.trip-tfcat-btn.on { border-color: var(--accent); color: var(--accent-text); font-weight: 600; }
.trip-tfcat[hidden], .trip-tfcat-r[hidden], .trip-tfcat-from[hidden], .trip-row[hidden] { display: none; }
/* 22/11/2026 owner "transfers have too many options" -> split out / return by airport + hotel area (BK121, trip.js buildLegs) */
.trip-tfleg-h { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 16px; border-top: 1px solid var(--line-200); background: var(--accent-soft); color: var(--ink); font-size: 15px; line-height: 22px; font-weight: 700; }	/* owner "make it stand out" */
.trip-tfleg-tag { display: inline-flex; align-items: center; padding: 2px 12px; border-radius: var(--r-pill); background: var(--accent); color: var(--ink-on); font-size: 13px; line-height: 20px; font-weight: 700; flex: none; }
.trip-tfleg-rt { min-width: 0; }
.trip-tfleg-d { margin-left: auto; color: var(--accent-text); font-size: 13px; line-height: 20px; font-weight: 600; }
.trip-tfleg-none { padding: 10px 16px; border-top: 1px solid var(--line-200); color: var(--ink-500); font-size: 13px; line-height: 18px; }
.trip-tflegs[hidden], .trip-tfall[hidden], .trip-tfall-btn[hidden] { display: none; }
/* 22/11/2026 owner "keep customers from getting lost: after a pick, scroll to the next choice" (BK122, trip.js guideTo) : short brand-colour pulse */
@keyframes trip-guide { 0% { box-shadow: 0 0 0 0 rgba(181, 26, 66, .5); } 100% { box-shadow: 0 0 0 12px rgba(181, 26, 66, 0); } }
.trip-guide { animation: trip-guide 1.1s ease-out 2; }
@media (prefers-reduced-motion: reduce) { .trip-guide { animation: none; outline: 2px solid var(--accent); outline-offset: 2px; } }
/* 22/11/2026 owner "click a product name to see more details, expand / collapse" (BK124, trip.js + trip_info.php) */
.trip-nm { padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; text-decoration: underline dotted var(--ink-400); text-underline-offset: 4px; }
.trip-nm::after { content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 2px 3px 8px; border-right: 2px solid var(--ink-400); border-bottom: 2px solid var(--ink-400); transform: rotate(45deg); transition: transform .15s; }
.trip-nm[aria-expanded="true"]::after { transform: rotate(-135deg); margin-bottom: 0; }
.trip-nm:hover, .trip-nm:focus-visible { color: var(--accent-text); text-decoration-color: var(--accent-text); }
.trip-info { display: flex; gap: 14px; padding: 12px 16px 14px 68px; border-top: 1px dashed var(--line-200); background: var(--surface-2); color: var(--ink-700); font-size: 13.5px; line-height: 20px; }
.trip-info[hidden], .trip-tfcat-r[hidden] + .trip-info { display: none; }
.trip-info-img { width: 112px; height: 84px; object-fit: cover; border-radius: 8px; flex: none; background: var(--surface); }
.trip-info-b { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.trip-info-lead, .trip-info-none { margin: 0; }
.trip-info-none { color: var(--ink-500); }
.trip-info-facts { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.trip-info-facts li { padding: 2px 10px; border: 1px solid var(--line-200); border-radius: var(--r-pill); background: var(--surface); font-size: 12.5px; line-height: 18px; }
.trip-info-inc { margin: 0; padding-left: 18px; }
.trip-info-more { align-self: flex-start; color: var(--accent-text); font-weight: 600; }
@media (max-width: 640px) { .trip-info { flex-direction: column; padding-left: 16px; } .trip-info-img { width: 100%; height: 150px; } }
/* 23/11/2026 owner "ลิงค์แสดงรายละเอียดเพิ่มเติม แสดงแบบ popup" (BK130) : full details popup ; frame = site.css .bkdlg (BK111) ;
   header and footer stay put, the body scrolls ; content uses the product page classes (gallery, specs, psec, prose-rt, itin, ticks, ht-rooms) */
.trip-dlg { width: min(760px, calc(100vw - 32px)); }
.trip-dlg[open] { display: flex; flex-direction: column; overflow: hidden; }
.trip-dlg-bd { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 16px 20px 20px; }
.trip-dlg-bd > * + * { margin-top: 18px; }
.trip-dlg-ft { display: flex; align-items: center; gap: 12px; padding: 12px 20px; border-top: 1px solid var(--line-200); }
.trip-dlg-ft .btn { margin-left: auto; }
.trip-dlg-open { font-size: 14px; line-height: 20px; font-weight: 600; color: var(--accent-text); }
.trip-dlg-open[hidden] { display: none; }
.trip-dlg-ld { margin: 0; color: var(--ink-500); }
.trip-dlg .gallery-main { aspect-ratio: 16 / 9; }
.trip-dlg .gallery-thumb { padding: 0; cursor: pointer; }
.trip-dlg .product-title .lead { margin-top: 6px; font-size: 16px; line-height: 25px; }
.trip-dlg .specs-lg { margin-top: 10px; }
.trip-dlg .psec { padding-top: 16px; }
.trip-dlg-h { margin: 0 0 10px; font-size: 17px; line-height: 24px; font-weight: 700; color: var(--ink); }
@media (max-width: 767px) {
	.trip-dlg { width: calc(100vw - 16px); max-height: calc(100dvh - 16px); }
	.trip-dlg-bd { padding: 14px 14px 16px; }
	.trip-dlg-ft { padding: 10px 14px; }
}
.trip-tfcat .trip-tfall-btn { color: var(--ink-500); font-weight: 500; }
/* 17/11/2026 เจ้าของ "รายการที่ไม่มีเวลา ให้แสดงไอคอนแทน" (เดิม --:--) */
.trip-noT { display: inline-grid; place-items: center; color: var(--ink-500); opacity: .75; vertical-align: middle; }
.trip-noT .ico { width: 16px; height: 16px; }
/* 17/11/2026 เจ้าของ "แสดงแบบ preview ไม่ใช่ edit" : การ์ดขาไป/ขากลับแบบอ่านอย่างเดียว (หน้าตาเดียวกับรายการทริปรายวัน) */
.trip-tf-pvs { margin: 0 0 6px; }
.trip-tf-pvs:not(:has(.trip-tf-pv:not([hidden]))) { display: none; }
.trip-it.trip-tf-pv { grid-template-columns: 96px 56px minmax(0, 1fr) auto auto; cursor: default; }
.trip-it.trip-tf-pv[hidden] { display: none; }
.trip-tf-pv-leg b { display: block; font-size: 13.5px; line-height: 18px; color: var(--ink); }
.trip-tf-pv-leg small { color: var(--ink-500); font-size: 12px; }
.trip-tf-pv-p { text-align: right; }
.trip-tf-pv-p b { display: block; color: var(--ink); }
.trip-tf-pv-p small { display: block; font-weight: 400; }
.trip-tf-done { padding: 8px 14px; }
/* 17/11/2026 เจ้าของ "ซ่อน" แถวขาไป/ขากลับ : แถบเปิดพิมพ์เองใต้แคทตาล็อก */
.trip-tf-ownbar { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin: -8px 0 14px; font-size: 13.5px; color: var(--ink-500); }
.trip-tf-ownbar[hidden], .trip-tf-ownbar .trip-add-ownt[hidden] { display: none; }
/* 17/11/2026 เจ้าของ "List รายการให้เลือกเหมือนรถรับส่ง" : แคทตาล็อกทัวร์/กิจกรรมต่อวัน (ใช้หน้าตาเดียวกับการ์ดรถรับส่ง) */
.trip-dcat { margin: 0 0 18px; }
.trip-dcat[hidden] { display: none; }
.trip-dcat [data-dcat-ic] { display: grid; flex: none; color: var(--accent-text); }
.trip-dcat [data-dcat-ic] .ico { width: 22px; height: 22px; }
.trip-dcat-more { display: block; width: 100%; padding: 10px 16px; border: 0; border-top: 1px solid var(--line-200); background: var(--surface); color: var(--accent-text); font-size: 13.5px; font-weight: 600; cursor: pointer; }
.trip-dcat-more:hover { background: var(--surface-2); }
/* 18/11/2026 ตารางบิน (ขั้นเที่ยวบิน) : รายการเที่ยวบินตรงในการ์ดขาไป / ขากลับ */
.trip-flcat { margin: 0 0 14px; border: 1px solid var(--line-200); border-radius: 10px; overflow: hidden; }
.trip-flcat[hidden] { display: none; }
.trip-flcat-st { padding: 10px 14px; background: var(--surface-2); color: var(--ink-500); font-size: 13px; line-height: 18px; }
.trip-flcat-st b { color: var(--ink); font-weight: 600; }
.trip-flcat .trip-tfcat-r { padding: 10px 14px; }
.trip-flcat .trip-tfcat-r[hidden] { display: none; }
.trip-flcat .trip-tfcat-n small { display: block; margin-top: 2px; color: var(--ink-500); font-size: 12.5px; font-weight: 400; line-height: 17px; }
/* 18/11/2026 เจ้าของ "ใช้แบบ preview ไม่ใช่ edit" : เที่ยวบินที่เลือก/กรอกแล้ว = การ์ดอ่านอย่างเดียว ; ช่องกรอกโผล่ตอนแก้ไข */
.trip-fl-pvs { margin: 0; }
.trip-fl-pvs[hidden], .trip-fl-add[hidden], .trip-fl-done[hidden], .trip-fl-leg .trip-grid[hidden] { display: none; }
.trip-fl-has .trip-flcat { display: none !important; }
/* 18/11/2026 เจ้าของ "ในแต่ละขา เราใส่ตัวกรองแต่ละสายการบินได้หรือไม่" : ชิปสายการบินเหนือรายการเที่ยวบิน */
.trip-flair { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 14px; border-top: 1px solid var(--line-200); }
.trip-flair button { display: inline-flex; align-items: center; gap: 5px; padding: 5px 11px; border: 1px solid var(--line-200); border-radius: var(--r-pill); background: var(--surface); color: var(--ink); font: inherit; font-size: 12.5px; line-height: 18px; cursor: pointer; }
.trip-flair button:hover { border-color: var(--ink-500); }
.trip-flair button.on { border-color: var(--accent); color: var(--accent-text); font-weight: 600; }
.trip-flair small { color: var(--ink-500); font-size: 11.5px; font-weight: 400; }
.trip-fl-add { margin: 0; }
.trip-fl-done { margin-top: 10px; }
.trip-dcat-more[hidden] { display: none; }
.trip-dcat-bar { margin: -6px 0 6px; }
@media (max-width: 767px) {
	.trip-tfcat-r { flex-wrap: wrap; }
	.trip-tfcat-a { width: 100%; justify-content: flex-end; }
}

/* แคทตาล็อกห้องพัก (17/11/2026 เจ้าของ: "เสนอแคทตาล็อกห้องพักให้ลูกค้าเลือกประเภทห้อง") */
.trip-rooms { margin-top: 12px; }
.trip-rooms-hd { font-size: 13.5px; font-weight: 600; color: var(--ink-500); margin: 0 0 8px; }
.trip-rooms-g { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.trip-room { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; text-align: left; padding: 10px 14px; border: 1px solid var(--line-200); border-radius: 10px; background: var(--surface); cursor: pointer; }
.trip-room b { font-size: 14px; line-height: 20px; color: var(--ink); }
.trip-room span { font-size: 13px; line-height: 18px; color: var(--ink-500); }
.trip-room:hover { border-color: var(--ink-500); }
.trip-room.on { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.trip-room.on span { color: var(--accent-text); font-weight: 600; }

/* step bar */
/* 22/11/2026 owner "เพิ่มขนาดให้ใหญ่ขึ้น" (BK127) : bigger step buttons (was 13.5px text, 8px 12px padding, 20px number) ; wide screens stretch the 7 steps across the row */
.trip-steps { display: flex; gap: 8px; margin-bottom: 20px; overflow-x: auto; padding-bottom: 4px; }
/* 22/11/2026 owner "เล็กลงอีกนิด" (BK128) : 44px tall, 14.5px text, 24px number (BK127 was 52px / 15.5px / 28px) */
.trip-step { flex: 1 0 auto; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 14px; border: 1px solid var(--line-200); border-radius: var(--r-pill); background: var(--surface); color: var(--ink-500); font-size: 14.5px; line-height: 22px; cursor: pointer; white-space: nowrap; }
.trip-step-n { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--surface-2); color: var(--ink-500); font-size: 12.5px; font-weight: 700; flex: none; }
@media (min-width: 900px) and (max-width: 1099px) { .trip-step { gap: 7px; padding: 8px 11px; font-size: 14px; } .trip-step-n { width: 22px; height: 22px; font-size: 12px; } }
.trip-step.on { border-color: var(--accent); color: var(--ink); font-weight: 600; }
.trip-step.on .trip-step-n { background: var(--accent); color: #fff; }
.trip-step.done:not(.on) .trip-step-n { background: #d9efdf; color: #1d6b3a; }
@media (max-width: 899px) { .trip-step-t { display: none; } .trip-step.on .trip-step-t { display: inline; } .trip-step { gap: 7px; padding: 8px 10px; font-size: 14.5px; } }	/* BK127 : labels hidden below 900px (was 767px) so the bigger steps still fit ; trip.js keeps the current step in view */

/* sections */
.trip-sec { margin-bottom: 16px; }
/* 18/11/2026 เจ้าของ "เพิ่มลิงค์ ลบทริป ในทุกๆ step" : มุมขวาบนของการ์ดขั้น (trip.js ใส่ให้) */
.trip-sec-c { position: relative; }
.trip-clear { position: absolute; top: 24px; right: 24px; display: inline-flex; align-items: center; gap: 5px; font-size: 13.5px; line-height: 20px; color: var(--accent-text); text-decoration: none; }
.trip-clear span { text-decoration: underline; text-underline-offset: 3px; }
.trip-clear .ico { width: 16px; height: 16px; flex: none; }
.trip-clear:hover { color: var(--ink); }
.trip-sec-c .trip-sec-t { padding-right: 96px; }
/* 23/11/2026 owner "บันทึกไว้คราวหลัง" beside "ลบทริป" on the summary step (BK134) : both links in one row at the top right ; note under the heading */
.trip-acts { position: absolute; top: 24px; right: 24px; display: inline-flex; align-items: center; gap: 18px; }
.trip-acts .trip-clear { position: static; }
.trip-save { display: inline-flex; align-items: center; gap: 5px; padding: 0; border: 0; background: none; font: inherit; font-size: 13.5px; line-height: 20px; color: var(--accent-text); cursor: pointer; }
.trip-save span { text-decoration: underline; text-underline-offset: 3px; }
.trip-save .ico { width: 16px; height: 16px; flex: none; }
.trip-save.on .ico { fill: currentColor; }
.trip-save:hover { color: var(--ink); }
.trip-sec-c2 .trip-sec-t { padding-right: 280px; }
.trip-save-msg { margin: 0 0 14px; }
.trip-save-msg[hidden] { display: none; }
@media (max-width: 767px) { .trip-acts { top: 2px; right: 0; gap: 12px; } .trip-sec-c2 .trip-sec-t { padding-right: 205px; } }
.trip-sec-t { font-size: 17px; line-height: 24px; font-weight: 700; color: var(--ink); margin-bottom: 12px; }
.trip-sec-s { display: block; margin-top: 2px; font-size: 13.5px; line-height: 20px; font-weight: 400; color: var(--ink-500); }
.trip-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 8px; }
.trip-grid-1 { grid-template-columns: 1fr; }
.trip-grid-pax { grid-template-columns: repeat(2, minmax(110px, 180px)); margin-top: 4px; }	/* adults / children on their own line (17/11/2026) */

/* province combobox (17/11/2026 owner: "a drop down list that can also be searched") */
.trip-cb { position: relative; }
.trip-cb-pop { position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: 40; background: var(--surface); border: 1px solid var(--line-200); border-radius: 10px; box-shadow: 0 10px 28px rgba(15, 23, 42, .14); max-height: 262px; overflow-y: auto; padding: 4px; }
.trip-cb-op { display: block; width: 100%; text-align: left; padding: 9px 12px; border: 0; border-radius: 7px; background: transparent; color: var(--ink); font-size: 14.5px; line-height: 20px; cursor: pointer; }
.trip-cb-op:hover, .trip-cb-op.on { background: var(--surface-2); }
.trip-check { display: flex; align-items: center; gap: 8px; font-size: 14.5px; line-height: 22px; color: var(--ink); margin-bottom: 10px; cursor: pointer; }
.trip-guide-days { max-width: 460px; grid-template-columns: repeat(2, minmax(140px, 1fr)); }	/* guide days + language on one row (17/11/2026) */

/* flight step: out | return legs with a divider (17/11/2026 owner's mark between the two) */
.trip-fl { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }	/* 17/11/2026 ขาไป / ขากลับ เป็นการ์ดละขา (ธีมรถรับส่ง) */
.trip-fl[hidden] { display: none; }
.trip-fl-leg { min-width: 0; }
@media (max-width: 767px) {
	.trip-fl { grid-template-columns: 1fr; }
}

/* 17/11/2026 เจ้าของ "ใช้ธีมเดียวกับรถรับส่ง ตลอดทั้ง wizard" : การ์ด .trip-tfcat + .trip-box ห่อเนื้อหาทุกขั้น
   overflow visible ให้ปฏิทิน / รายการจังหวัดที่ลอยออกนอกการ์ดไม่ถูกตัด -> มุมโค้งของหัวการ์ด / แถวสุดท้ายกำหนดเอง */
.trip-box { margin: 0 0 16px; overflow: visible; }
.trip-box:last-child { margin-bottom: 0; }
.trip-box > :first-child { border-top-left-radius: 11px; border-top-right-radius: 11px; }
.trip-box > :last-child { border-bottom-left-radius: 11px; border-bottom-right-radius: 11px; }
.trip-box > .trip-tfcat-r:first-child { border-top: 0; }
.trip-box-b { padding: 14px 16px 16px; border-top: 1px solid var(--line-200); }
.trip-box-b > .field-hint { margin-top: 8px; }
.trip-box-b textarea { display: block; width: 100%; }
.trip-tfcat-n small { display: block; margin-top: 1px; font-weight: 400; color: var(--ink-500); font-size: 12.5px; line-height: 17px; }
/* แถวตัวเลือก : ทั้งแถวเป็น label ของ checkbox (ซ่อนกล่อง) ; ปุ่มเม็ดยา + เพิ่ม / ✓ เพิ่มแล้ว ตามสถานะ */
.trip-opt { position: relative; cursor: pointer; }
.trip-opt:hover { background: var(--surface-2); }
.trip-opt > input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.trip-opt-btn { flex: none; }
.trip-opt-btn .on { display: none; }
.trip-opt:has(> input:checked) .trip-opt-btn { border-color: var(--accent); color: var(--accent-text); font-weight: 600; }
.trip-opt:has(> input:checked) .trip-opt-btn .on { display: inline; }
.trip-opt:has(> input:checked) .trip-opt-btn .off { display: none; }
.trip-opt:has(> input:focus-visible) .trip-opt-btn { outline: 2px solid var(--accent); outline-offset: 2px; }
.trip-opt-more { padding: 0 16px 16px 68px; }
.trip-opt-more[hidden] { display: none; }
@media (max-width: 767px) {
	.trip-opt-more { padding-left: 16px; }
}

/* day rows */
.trip-day-intro { margin-bottom: 16px; }
.trip-day { margin-bottom: 16px; }
.trip-day-t { font-size: 15.5px; line-height: 22px; font-weight: 700; color: var(--ink); margin-bottom: 10px; }
.trip-day-d { font-weight: 500; color: var(--ink-500); font-size: 13.5px; }
.trip-day-tag { margin-left: 8px; font-size: 12px; font-weight: 600; color: var(--accent-text); }
.trip-rows { display: grid; gap: 8px; }
.trip-row { display: grid; grid-template-columns: 104px 1.1fr 1fr; gap: 8px; align-items: center; }
.trip-row .trip-time { width: 104px; }
.trip-sec .trip-rows .trip-row:has(.trip-leg) { grid-template-columns: 130px 104px 1.1fr 1fr; }
/* แยกแถว ค้นหา | พิมพ์เอง ของขาไป/ขากลับ (17/11/2026 เจ้าของ: "ปรับ layout แยกระหว่าง ค้นหา และ พิมพ์เอง") — ต้องอยู่หลังกฎ :has ด้านบนให้ชนะ */
.trip-sec .trip-rows .trip-row.trip-row-tfh { grid-template-columns: 130px 104px 1fr; }
.trip-sec .trip-rows .trip-row.trip-row-tfs { grid-template-columns: 130px 104px 1fr auto auto; }	/* + ปุ่ม "เสร็จ" (17/11/2026 โหมดแก้ไขของ preview) */
.trip-sec .trip-rows .trip-row.trip-tf-own { grid-template-columns: 130px 1fr; }
.trip-leg { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.trip-leg span { display: block; font-weight: 400; color: var(--ink-500); font-size: 12.5px; }
.trip-row-head { font-size: 12.5px; line-height: 16px; color: var(--ink-500); margin-bottom: -2px; }
@media (max-width: 767px) {
	.trip-row, .trip-sec .trip-rows .trip-row:has(.trip-leg) { grid-template-columns: 104px 1fr; }
	.trip-leg { grid-column: 1 / -1; }
	.trip-row input[name$="_x[]"], .trip-row input[name$="_x"] { grid-column: 2; }
	.trip-row-head { display: none; }
	.trip-row-tfs .trip-add-ownt { grid-column: 1 / -1; justify-self: end; }
	.trip-row-tfs .trip-tf-done { grid-column: 1 / -1; }
	.trip-it.trip-tf-pv { grid-template-columns: auto 1fr auto; }
	.trip-tf-pv .trip-it-n { grid-column: 1 / -1; grid-row: 2; }
	.trip-tf-pv .trip-tf-pv-p { grid-column: 1 / 3; grid-row: 3; text-align: left; }
	.trip-tf-pv .trip-it-a { grid-column: 3; grid-row: 3; }
	.trip-sec .trip-rows .trip-row.trip-tf-own { grid-template-columns: 1fr; }
	.trip-tf-own .trip-leg { display: none; }
	.trip-tf-own input[name$="_x"] { grid-column: 1; }
}
.trip-add-p { margin-top: 10px; }

/* day items - picked cards + add row + drag between days (17/11/2026 owner: new layout, destination search, draggable) */
.trip-items { display: grid; gap: 8px; margin-bottom: 10px; }
.trip-it { display: grid; grid-template-columns: 18px 56px 1fr auto auto; gap: 10px; align-items: center; padding: 9px 12px; border: 1px solid var(--line-200); border-radius: 10px; background: var(--surface-2); cursor: grab; }
.trip-it.drag { opacity: .5; }
.trip-it-grip { color: var(--ink-500); font-size: 14px; letter-spacing: -2px; user-select: none; }
.trip-it-t { font-size: 13px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.trip-it-n { font-size: 14px; line-height: 20px; color: var(--ink); min-width: 0; overflow-wrap: anywhere; }
.trip-it-n small { display: block; font-size: 12.5px; color: var(--ink-500); }
.trip-it-p { font-size: 13px; font-weight: 600; color: var(--ink-500); white-space: nowrap; }
.trip-it-a { display: inline-flex; gap: 4px; }
.trip-it-b { display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 1px solid var(--line-200); border-radius: 7px; background: var(--surface); color: var(--ink-500); font-size: 11px; cursor: pointer; }
.trip-it-b:hover { color: var(--ink); border-color: var(--ink-500); }
.trip-it-x:hover { color: #b3261e; border-color: #b3261e; }
.trip-day.drop { outline: 2px dashed var(--accent); outline-offset: 2px; }
/* 17/11/2026 เจ้าของขอแยก layout ค้นหา|กรอกเอง : แถวค้นหาเป็นค่าเริ่มต้น แถวกรอกเอง (มีช่องเวลา) ซ่อนจนกดปุ่ม */
.trip-addrow { display: grid; gap: 8px; }
.trip-add-find { display: flex; gap: 8px; align-items: center; }
.trip-add-find .trip-addq { flex: 1; display: block; }
.trip-add-find .trip-addq .input { width: 100%; }
.trip-add-ownt { border: 0; background: none; padding: 8px 2px; color: var(--accent-text); font-size: 13.5px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.trip-add-ownt:hover { text-decoration: underline; }
.trip-add-own { display: grid; grid-template-columns: 104px 1fr auto; gap: 8px; align-items: start; }
.trip-add-own[hidden] { display: none; }
.trip-addrow .trip-time { width: 104px; }
.trip-cb-hd { padding: 6px 12px 4px; font-size: 12px; font-weight: 700; color: var(--accent-text); }
.trip-cb-op small { color: var(--ink-500); font-size: 12px; margin-left: 6px; }
@media (max-width: 767px) {
	.trip-it { grid-template-columns: 18px 48px 1fr; }
	.trip-it-p { grid-column: 3; }
	.trip-it-a { grid-column: 1 / -1; justify-content: flex-end; }
	.trip-add-own { grid-template-columns: 104px 1fr; }
	.trip-add-own .trip-addb { grid-column: 1 / -1; }
}

/* summary - itinerary layout (17/11/2026 owner: "change the layout") : fact tiles + day timeline + total bar */
.trip-sum { text-align: left; margin-bottom: 14px; }
.trip-sum-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; margin-bottom: 16px; }
.trip-sum-facts > div { border: 1px solid var(--line-200); border-radius: 10px; padding: 10px 14px; min-width: 0; background: var(--surface); }
.trip-sum-facts small { display: block; font-size: 11.5px; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-500); margin-bottom: 2px; }
.trip-sum-facts b { font-size: 14px; line-height: 20px; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
@media (max-width: 767px) { .trip-sum-facts { grid-template-columns: 1fr; } }	/* 23/11/2026 owner (phone screenshot of the summary) "เรียง 1 แถว" -> chose "แถวละ 1 การ์ด" (BK135) : route / flights / hotel cards one per line on phones (wizard summary + checkout) */

.trip-tl { list-style: none; margin: 0 0 4px; padding: 0; }
.trip-tl > li { position: relative; padding: 0 0 14px 44px; }
.trip-tl > li::before { content: ""; position: absolute; left: 13px; top: 28px; bottom: -2px; width: 2px; background: var(--line-200); }
.trip-tl > li:last-child::before { display: none; }
.trip-tl-dot { position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 13px; font-weight: 700; }
.trip-tl-d { font-size: 14.5px; line-height: 28px; font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.trip-tl-d em { font-style: normal; font-size: 12px; font-weight: 600; color: var(--accent-text); margin-left: 6px; }
.trip-tl-i { display: grid; grid-template-columns: 56px 1fr auto; gap: 10px; align-items: baseline; padding: 7px 10px; border: 1px solid var(--line-200); border-radius: 10px; margin-bottom: 6px; background: var(--surface); }
.trip-tl-i.trip-tl-tf { background: var(--surface-2); }
.trip-tl-t { font-size: 13px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.trip-tl-n { font-size: 14px; line-height: 21px; color: var(--ink); min-width: 0; overflow-wrap: anywhere; }
.trip-tl-n small { display: block; font-size: 12.5px; color: var(--ink-500); }
.trip-tl-p { font-size: 13.5px; font-weight: 700; color: var(--ink); white-space: nowrap; }
.trip-tl-q { font-size: 12.5px; color: var(--ink-500); white-space: nowrap; }
.trip-tl-free { font-size: 13px; color: var(--ink-500); padding: 2px 0; }
/* 17/11/2026 เจ้าของ (ป้าย "อยู่ในรายการแล้ว" หน้า checkout) "แก้ไข / ลบ" : ปุ่มแบบหน้าตะกร้า + ฟอร์มแก้จำนวนเต็มแถว (เปิดด้วย #tped-i : CSS :target) */
.trip-tl-a { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.trip-tl-act { display: inline-flex; align-items: center; gap: 4px; padding: 0; border: 0; background: none; color: var(--ink); font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; text-decoration: none; }
.trip-tl-act .ico { width: 16px; height: 16px; }
.trip-tl-act:hover { color: var(--accent-text); text-decoration: underline; }
.trip-tl-sep { color: var(--ink-500); }
.trip-tl-del { display: inline; margin: 0; }
.trip-tl-ed { display: none; grid-column: 1 / -1; margin-top: 6px; padding-top: 10px; border-top: 1px dashed var(--line-200); }
.trip-tl-ed:target { display: block; }
.trip-tl-ed .qty-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 220px)); gap: 10px; }
.trip-tl-edb { display: flex; gap: 8px; margin-top: 10px; }
@media (max-width: 767px) { .trip-tl-i { grid-template-columns: 48px 1fr; } .trip-tl-i .trip-tl-p, .trip-tl-i .trip-tl-q, .trip-tl-i .trip-tl-a { grid-column: 2; } }
/* 22/11/2026 owner "edit / delete each item" moved from checkout to the trip summary (BK125) : price + แก้ไข | ลบ in the right cell */
.trip-tl-r { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
@media (max-width: 767px) { .trip-tl-i .trip-tl-r { grid-column: 2; align-items: flex-start; } }

.trip-sum-ex { border: 1px dashed var(--line-200); border-radius: 10px; padding: 10px 14px; margin-bottom: 6px; font-size: 14px; color: var(--ink); }
.trip-sum-ex small { display: block; font-size: 11.5px; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-500); margin-bottom: 2px; }

.trip-est { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-radius: 10px; background: var(--surface-2); padding: 12px 16px; margin-bottom: 10px; font-size: 14px; color: var(--ink-500); }
.trip-est b { font-size: 22px; color: var(--ink); }

/* wizard nav */
.trip-nav { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 16px; }

/* trip plan card on the checkout page (17/11/2026 owner: "change the trip checkout layout") */
.trip-co { margin-bottom: 16px; }
.trip-co-top { margin-bottom: 24px; }	/* 22/11/2026 owner "move to the marked spot" (BK126) : trip plan header + facts full width above the checkout columns */
.trip-co .form-h { display: flex; align-items: center; gap: 8px; }
.trip-co-edit { margin-left: auto; font-size: 13.5px; }
.trip-co .trip-sum-facts { margin-top: 12px; }
.trip-co .trip-tl { margin-top: 4px; }

/* 22/11/2026 owner (phone screenshots of the hotel and flight steps) "ในมือถือ มีเส้นขอบและระยะห่างจากขอบ หลายชั้นซึ่งมากเกินไป
   ทำให้ข้อมูลเที่ยวบินถูกบีบจนแสดงได้ไม่ครบ ไม่สวยงาม" (BK129) : on phones only one frame is left -
   the step card loses its border / padding (page is white), the flight list sits flush inside its leg box,
   airline filters scroll sideways in one row, smaller row icons and padding,
   buttons stay on the name's line ; rows with a price put price + button on a 2nd line under the name */
@media (max-width: 767px) {
	.trip-sec.card, .trip-sec > .card { padding: 0; border: 0; border-radius: 0; background: transparent; }
	.trip-sec > .trip-day { padding-top: 16px; border-top: 1px solid var(--line-200); }
	.trip-clear { top: 2px; right: 0; }
	.trip-tfcat-hd { padding: 10px 12px; }
	.trip-tfcat-r { gap: 10px; padding: 10px 12px; }
	.trip-tfcat-ic { width: 32px; height: 32px; border-radius: 8px; }
	.trip-tfcat-ic .ico { width: 18px; height: 18px; }
	.trip-tfcat-a { width: auto; margin-left: auto; }
	.trip-tfcat-r:has(> .trip-tfcat-p) > .trip-tfcat-n { flex: 1 1 calc(100% - 50px); }
	.trip-tfcat-r:has(> .trip-tfcat-p) > .trip-tfcat-p { margin-left: 42px; text-align: left; }
	.trip-box-b { padding: 12px; }
	.trip-box-b > .trip-flcat { margin: -12px -12px 12px; border: 0; border-bottom: 1px solid var(--line-200); border-radius: 0; }
	.trip-flcat-st, .trip-flcat .trip-tfcat-r { padding: 10px 12px; }
	.trip-flair { flex-wrap: nowrap; overflow-x: auto; padding: 10px 12px; scrollbar-width: none; }
	.trip-flair::-webkit-scrollbar { display: none; }
	.trip-flair button { flex: none; }
	.trip-dcat-more { padding: 10px 12px; }
}
