/* Public tour pages (/tours, /tour/{id}, /tour-booking/{code}) and the tour parts of the home page. Prefix tr-. */

/* ------------------------------------------------------------------ tour card */
.lx-card--tour .lx-card__media.is-noimg, .lx-tc__noimg { display: grid; place-items: center; color: #b9b3a8; font-size: 2rem; }
.lx-card--tour .lx-tc__noimg { position: absolute; inset: 0; }
.lx-card--tour .lx-card__place span { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.lx-card--tour .lx-price strong { font-size: 1.12rem; }

/* ------------------------------------------------------------------ home */
.tr-htabs { display: inline-flex; gap: 4px; margin: var(--s5) 0 calc(-1 * var(--s2)); padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, .85); box-shadow: var(--lx-shadow); }
.tr-htabs button { display: inline-flex; align-items: center; gap: var(--s2); padding: 8px 18px; border: 0; border-radius: 999px; background: none; color: var(--lx-ink-2); font: inherit; font-weight: 600; font-size: .92rem; cursor: pointer; }
.tr-htabs button span { padding: 0 8px; border-radius: 999px; background: var(--lx-primary-soft); color: var(--lx-primary); font-size: .74rem; }
.tr-htabs button.is-active { background: var(--lx-primary); color: #fff; }
.tr-htabs button.is-active span { background: rgba(255, 255, 255, .22); color: #fff; }
.tr-htabs + .lx-search, .tr-htabs ~ .lx-search { margin-top: var(--s4); }
.tr-places { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--lx-gap); }
.tr-place { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: var(--lx-radius); overflow: hidden; background: linear-gradient(135deg, var(--lx-primary) 0%, var(--lx-dark-2) 100%); }
.tr-place img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.tr-place:hover img { transform: scale(1.04); }
.tr-place::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, .65)); }
.tr-place span { position: absolute; left: var(--s4); right: var(--s4); bottom: var(--s4); z-index: 1; color: #fff; }
.tr-place strong { display: block; font-size: 1.1rem; font-weight: 700; }
.tr-place small { font-size: .82rem; opacity: .9; }

/* ------------------------------------------------------------------ list (/tours) */
.tr-band { padding: var(--s6) 0 var(--s6); background: linear-gradient(180deg, var(--lx-primary-soft), var(--lx-bg)); }
.tr-band__title { margin: 0; font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 700; letter-spacing: -.02em; }
.tr-band__sub { margin: var(--s2) 0 var(--s5); color: var(--lx-ink-2); }
.tr-search { max-width: none; } /* as wide as the list below it */
.tr-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: var(--s6); align-items: start; padding-top: var(--s6); padding-bottom: var(--s7); }
.tr-filters { position: sticky; top: calc(var(--lx-header-h) + var(--s4)); display: flex; flex-direction: column; gap: var(--s4); }
.tr-filter { padding: var(--s4); border: 1px solid var(--lx-line); border-radius: var(--lx-radius); background: var(--lx-surface); }
.tr-filter h2 { margin: 0 0 var(--s2); font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--lx-muted); }
.tr-filter ul { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.tr-filter li a { display: flex; align-items: center; gap: var(--s2); padding: 7px var(--s2); border-radius: var(--lx-radius-sm); font-size: .9rem; color: var(--lx-ink-2); }
.tr-filter li a span { margin-left: auto; font-size: .76rem; color: var(--lx-muted); }
.tr-filter li a:hover { background: var(--lx-bg); }
.tr-filter li a.is-active { background: var(--lx-primary-soft); color: var(--lx-primary); font-weight: 600; }
.tr-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.tr-chip { padding: 5px 12px; border: 1px solid var(--lx-line); border-radius: 999px; font-size: .84rem; color: var(--lx-ink-2); background: var(--lx-surface); }
.tr-chip:hover { border-color: var(--lx-primary); color: var(--lx-primary); }
.tr-chip.is-active { border-color: var(--lx-primary); background: var(--lx-primary); color: #fff; }
.tr-help { display: flex; flex-direction: column; gap: var(--s2); padding: var(--s4); border-radius: var(--lx-radius); background: var(--lx-dark); color: var(--lx-on-dark); }
.tr-help > i { font-size: 1.5rem; color: #fff; }
.tr-help p { margin: 0; font-size: .86rem; }
.tr-help b { display: block; margin-bottom: 2px; color: #fff; font-size: .95rem; }
.tr-help .lx-btn { justify-content: center; }
.tr-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--s3); margin-bottom: var(--s4); }
.tr-toolbar p { margin: 0; color: var(--lx-ink-2); }
.tr-sort { display: flex; align-items: center; gap: var(--s2); font-size: .88rem; color: var(--lx-muted); }
.tr-sort .lx-select { min-width: 200px; }
.tr-grid { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.tr-gap { display: inline-grid; place-items: center; min-width: 24px; color: var(--lx-muted); }

/* ------------------------------------------------------------------ one tour */
.tr-page { padding-top: var(--s5); }
.tr-head { margin: 0 0 var(--s4); }
.tr-head h1 { margin: 0 0 var(--s2); font-size: clamp(1.5rem, 2.8vw, 2.1rem); font-weight: 700; letter-spacing: -.02em; line-height: 1.25; }
.tr-head__meta { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5); margin: 0; padding: 0; list-style: none; color: var(--lx-ink-2); font-size: .92rem; }
.tr-head__meta i { margin-right: 6px; color: var(--lx-primary); }
.tr-detail { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: var(--s6); align-items: start; margin-top: var(--s5); }
.tr-anchors { position: sticky; top: var(--lx-header-h); z-index: 5; display: flex; gap: var(--s1); margin: 0 0 var(--s4); padding: var(--s2) 0; overflow-x: auto; background: var(--lx-bg); border-bottom: 1px solid var(--lx-line); scrollbar-width: none; }
.tr-anchors a { padding: 8px 14px; border-radius: 999px; font-weight: 600; font-size: .9rem; color: var(--lx-ink-2); white-space: nowrap; }
.tr-anchors a:hover { background: var(--lx-surface); color: var(--lx-primary); }
.tr-sec { padding: var(--s5); margin-bottom: var(--s4); border: 1px solid var(--lx-line); border-radius: var(--lx-radius); background: var(--lx-surface); scroll-margin-top: calc(var(--lx-header-h) + 64px); }
.tr-sec h2 { margin: 0 0 var(--s4); font-size: 1.3rem; font-weight: 700; }
.tr-sec__head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s3); }
.tr-sec__head .lx-link { border: 0; background: none; font: inherit; cursor: pointer; }
.tr-lead { margin: 0 0 var(--s4); font-size: 1.05rem; line-height: 1.65; color: var(--lx-ink); }
.tr-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: var(--s3); margin: 0 0 var(--s5); }
.tr-facts > div { padding: var(--s3); border-radius: var(--lx-radius-md); background: var(--lx-bg); }
.tr-facts__wide { grid-column: 1 / -1; }
.tr-facts dt { display: flex; align-items: center; gap: 6px; margin-bottom: 2px; font-size: .76rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--lx-muted); }
.tr-facts dt i { color: var(--lx-primary); }
.tr-facts dd { margin: 0; font-weight: 600; }
.tr-rich { font-size: .95rem; line-height: 1.7; color: var(--lx-ink-2); overflow-wrap: anywhere; }
.tr-rich > :first-child { margin-top: 0; }
.tr-rich h1, .tr-rich h2, .tr-rich h3, .tr-rich h4 { margin: var(--s4) 0 var(--s2); font-size: 1.02rem; font-weight: 700; color: var(--lx-ink); }
.tr-rich p { margin: 0 0 var(--s3); }
.tr-rich ul, .tr-rich ol { margin: 0 0 var(--s3); padding-left: 22px; }
.tr-rich li { margin: 3px 0; }
.tr-rich img { max-width: 100%; height: auto; border-radius: var(--lx-radius-md); }
.tr-rich table { width: 100%; border-collapse: collapse; margin-bottom: var(--s3); font-size: .88rem; }
.tr-rich td, .tr-rich th { padding: 6px 8px; border: 1px solid var(--lx-line); }
.tr-rich--sm { font-size: .9rem; }
.tr-rich.is-clamped { max-height: 360px; overflow: hidden; -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent); mask-image: linear-gradient(180deg, #000 70%, transparent); }
.tr-more { display: inline-flex; align-items: center; gap: 6px; margin-top: var(--s2); padding: 0; border: 0; background: none; color: var(--lx-primary); font: inherit; font-weight: 600; cursor: pointer; }
.tr-more.is-open i { transform: rotate(180deg); }
.tr-days { display: grid; gap: var(--s2); margin: 0; padding: 0; list-style: none; }
.tr-day { border: 1px solid var(--lx-line); border-radius: var(--lx-radius-md); background: var(--lx-surface); }
.tr-day summary { display: flex; align-items: center; gap: var(--s3); padding: var(--s3); cursor: pointer; list-style: none; }
.tr-day summary::-webkit-details-marker { display: none; }
.tr-day__no { display: flex; flex-direction: column; align-items: center; justify-content: center; flex-shrink: 0; width: 52px; height: 52px; border-radius: var(--lx-radius-md); background: var(--lx-primary-soft); color: var(--lx-primary); font-size: 1.15rem; font-weight: 700; line-height: 1; }
.tr-day__no small { margin-bottom: 3px; font-size: .62rem; text-transform: uppercase; letter-spacing: .05em; }
.tr-day__title { flex: 1; min-width: 0; font-weight: 600; }
.tr-day__title small { display: block; margin-top: 2px; font-weight: 400; font-size: .8rem; color: var(--lx-muted); }
.tr-day__chev { color: var(--lx-muted); transition: transform .2s; }
.tr-day[open] .tr-day__chev { transform: rotate(180deg); }
.tr-day > .tr-rich { padding: 0 var(--s4) var(--s4) calc(52px + var(--s3) * 2); }
.tr-h3 { display: flex; align-items: center; gap: var(--s2); margin: var(--s4) 0 var(--s2); font-size: 1rem; font-weight: 700; }
.tr-h3:first-of-type { margin-top: 0; }
.tr-h3 i { color: var(--lx-primary); }
.tr-plist { display: grid; gap: var(--s2); }
.tr-prow { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: var(--s3); padding: var(--s3) var(--s4); border: 1px solid var(--lx-line); border-radius: var(--lx-radius-md); }
.tr-prow:hover { border-color: #cfc8bc; }
.tr-prow__main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tr-prow__main b { font-weight: 600; }
.tr-prow__main span { font-size: .84rem; color: var(--lx-muted); }
.tr-prow__note { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .78rem; color: var(--lx-muted); }
.tr-prow__price { display: flex; flex-direction: column; align-items: flex-end; text-align: right; }
.tr-prow__price strong { font-size: 1.08rem; font-weight: 700; white-space: nowrap; }
.tr-prow__price small { font-size: .74rem; color: var(--lx-muted); }
.tr-prow__price em { font-style: normal; font-size: .76rem; color: var(--lx-ink-2); white-space: nowrap; }
.tr-seats { font-weight: 600; color: var(--lx-ok) !important; }
.tr-seats.is-low { color: var(--lx-accent) !important; }
.tr-pick { padding: 8px 14px; }
.tr-note { display: flex; gap: var(--s2); margin: var(--s4) 0 0; font-size: .84rem; color: var(--lx-muted); }
.tr-why ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s4); margin: 0; padding: 0; list-style: none; }
.tr-why li { display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: var(--s3); }
.tr-why i { grid-row: span 2; display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--lx-radius-md); background: var(--lx-primary-soft); color: var(--lx-primary); font-size: 1.1rem; }
.tr-why b { font-weight: 700; }
.tr-why span { font-size: .86rem; color: var(--lx-muted); }

/* booking */
.tr-aside { display: flex; flex-direction: column; gap: var(--s3); scroll-margin-top: calc(var(--lx-header-h) + var(--s4)); }
.tr-book { display: flex; flex-direction: column; gap: var(--s3); padding: var(--s5); border: 1px solid var(--lx-line); border-radius: var(--lx-radius); background: var(--lx-surface); box-shadow: var(--lx-shadow-hover); }
.tr-book__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; padding-bottom: var(--s3); border-bottom: 1px dashed var(--lx-line); }
.tr-book__price small { color: var(--lx-muted); font-size: .84rem; }
.tr-book__price b { font-size: 1.6rem; font-weight: 700; letter-spacing: -.02em; color: var(--lx-ink); }
.tr-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.tr-field { display: flex; flex-direction: column; gap: 5px; margin: 0; font-size: .84rem; font-weight: 600; color: var(--lx-ink-2); }
.tr-field[hidden] { display: none; }
.tr-field input, .tr-field textarea { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--lx-line); border-radius: var(--lx-radius-md); background: var(--lx-surface); font: inherit; font-weight: 400; font-size: .95rem; color: var(--lx-ink); }
.tr-field textarea { min-height: 64px; resize: vertical; }
.tr-field input:focus, .tr-field textarea:focus { outline: none; border-color: var(--lx-primary); box-shadow: 0 0 0 3px var(--lx-primary-soft); }
.tr-field .lx-select { position: relative; }
.tr-field .lx-select__list { left: 0; right: 0; width: auto; min-width: 100%; max-height: 320px; overflow-y: auto; }
.tr-field .lx-select__button { min-height: 44px; border: 1px solid var(--lx-line); border-radius: var(--lx-radius-md); padding: 0 12px; }
.tr-book .is-invalid { border-color: #c0392b !important; }
.tr-book__hint { margin: -4px 0 0; font-size: .8rem; color: var(--lx-accent); font-weight: 600; }
.tr-book__hint[hidden] { display: none; }
.tr-pax { display: grid; gap: 2px; padding: var(--s2) 0; border-top: 1px solid var(--lx-line); border-bottom: 1px solid var(--lx-line); }
.tr-step { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); padding: 6px 0; }
.tr-step > span:first-child { display: flex; flex-direction: column; }
.tr-step b { font-size: .92rem; font-weight: 600; }
.tr-step small { font-size: .76rem; color: var(--lx-muted); }
.tr-step__ctl { display: inline-flex; align-items: center; gap: 4px; }
.tr-step__ctl button { width: 34px; height: 34px; border: 1px solid var(--lx-line); border-radius: 50%; background: var(--lx-surface); font-size: 1.1rem; line-height: 1; cursor: pointer; color: var(--lx-ink); }
.tr-step__ctl button:hover { border-color: var(--lx-primary); color: var(--lx-primary); }
.tr-step__ctl input { width: 44px; height: 34px; border: 0; background: none; text-align: center; font: inherit; font-weight: 700; -moz-appearance: textfield; }
.tr-step__ctl input::-webkit-outer-spin-button, .tr-step__ctl input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.tr-est { padding: var(--s3); border-radius: var(--lx-radius-md); background: var(--lx-bg); font-size: .86rem; }
.tr-est ul { display: grid; gap: 4px; margin: 0 0 var(--s2); padding: 0; list-style: none; color: var(--lx-ink-2); }
.tr-est li { display: flex; justify-content: space-between; gap: var(--s3); }
.tr-est li span + span { white-space: nowrap; }
.tr-est p { display: flex; justify-content: space-between; align-items: baseline; margin: 0; padding-top: var(--s2); border-top: 1px dashed var(--lx-line); font-weight: 600; }
.tr-est p b { font-size: 1.2rem; color: var(--lx-primary); }
.tr-contact { display: grid; gap: var(--s3); }
.tr-consent { display: flex; align-items: flex-start; gap: var(--s2); font-size: .82rem; color: var(--lx-ink-2); }
.tr-consent input { width: 18px; height: 18px; margin-top: 1px; flex-shrink: 0; accent-color: var(--lx-primary); }
.tr-book__error { margin: 0; padding: var(--s2) var(--s3); border-radius: var(--lx-radius-sm); background: #fdecea; color: #b42318; font-size: .86rem; }
.tr-book__error[hidden] { display: none; }
.tr-book__submit { min-height: 50px; font-size: 1rem; }
.tr-book__submit.is-busy { opacity: .7; pointer-events: none; }
.tr-book__small { display: flex; gap: 6px; margin: 0; font-size: .78rem; color: var(--lx-muted); }
.tr-book__small i { color: var(--lx-ok); }
.tr-callus { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s3); padding: var(--s3) var(--s4); border-radius: var(--lx-radius); background: var(--lx-surface); border: 1px solid var(--lx-line); font-size: .86rem; color: var(--lx-muted); }
.tr-callus a { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--lx-primary); }
.tr-related { padding-top: var(--s4); }
.tr-mbar { display: none; }

/* booked */
.tr-booked__card { display: flex; gap: var(--s4); align-items: flex-start; margin: var(--s5) 0; padding: var(--s4); border: 1px solid var(--lx-line); border-radius: var(--lx-radius); background: var(--lx-surface); text-align: left; }
.tr-booked__card img { width: 120px; height: 90px; object-fit: cover; border-radius: var(--lx-radius-md); flex-shrink: 0; }
.tr-booked__card dl { display: grid; gap: var(--s2); flex: 1; margin: 0; }
.tr-booked__card dl > div { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: var(--s3); font-size: .92rem; }
.tr-booked__card dt { color: var(--lx-muted); }
.tr-booked__card dd { margin: 0; }
.tr-booked__card dd small { display: block; color: var(--lx-muted); }
.tr-booked__next { display: flex; justify-content: center; gap: var(--s2); }

@media (max-width: 1100px) {
    .tr-detail { grid-template-columns: minmax(0, 1fr) 340px; }
    .tr-places { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
    .tr-layout { grid-template-columns: minmax(0, 1fr); }
    .tr-filters { position: static; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
    .tr-detail { grid-template-columns: minmax(0, 1fr); }
    .tr-aside { position: static; }
    .tr-mbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: var(--s3); padding: var(--s3) var(--lx-gutter); background: var(--lx-surface); border-top: 1px solid var(--lx-line); box-shadow: 0 -6px 20px rgba(21, 32, 43, .08); }
    .tr-mbar span { display: flex; flex-direction: column; }
    .tr-mbar small { font-size: .74rem; color: var(--lx-muted); }
    .tr-mbar b { font-size: 1.15rem; }
    .tr-page { padding-bottom: 80px; }
    .tr-places { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
    .tr-sec { padding: var(--s4); }
    .tr-prow { grid-template-columns: minmax(0, 1fr) auto; }
    .tr-prow .tr-pick { grid-column: 1 / -1; justify-content: center; }
    .tr-why ul { grid-template-columns: minmax(0, 1fr); }
    .tr-day > .tr-rich { padding: 0 var(--s3) var(--s3); }
    .tr-booked__card { flex-direction: column; }
    .tr-booked__card dl > div { grid-template-columns: 100px minmax(0, 1fr); }
    .tr-htabs { margin-top: var(--s4); }
    .tr-htabs button { padding: 8px 14px; }
}
.tr-booked__lines { width: 100%; margin: 0 0 var(--s5); border-collapse: collapse; font-size: .92rem; background: var(--lx-surface); border: 1px solid var(--lx-line); border-radius: var(--lx-radius); overflow: hidden; }
.tr-booked__lines td { padding: var(--s3) var(--s4); border-bottom: 1px solid var(--lx-line); text-align: left; }
.tr-booked__lines td:last-child { text-align: right; white-space: nowrap; font-weight: 600; }
.tr-booked__lines td:nth-child(2) { color: var(--lx-muted); white-space: nowrap; }
.tr-booked__lines tfoot td { border-bottom: 0; background: var(--lx-bg); }
.tr-booked__lines tfoot b { font-size: 1.15rem; color: var(--lx-primary); }
.tr-booked .tr-booked__card { margin-bottom: var(--s3); }

/* a booking request passed on to the supplier (public/tourRequest.jsp) */
.tr-req__status { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); margin: var(--s4) 0; padding: var(--s3) var(--s4); border-radius: var(--lx-radius-md); background: var(--lx-tint); text-align: left; }
.tr-req__status span { color: var(--lx-muted); font-size: .9rem; }
.tr-req__status b { color: var(--lx-ink); }
.tr-req__status--CONFIRMED, .tr-req__status--DEPOSITED, .tr-req__status--PAID, .tr-req__status--DONE { background: var(--lx-ok-soft); }
.tr-req__status--CONFIRMED b, .tr-req__status--DEPOSITED b, .tr-req__status--PAID b, .tr-req__status--DONE b { color: var(--lx-ok); }
.tr-req__status--CANCELLED, .tr-req__status--REJECTED { background: #fdecea; }
.tr-req__status--CANCELLED b, .tr-req__status--REJECTED b { color: #b42318; }
.tr-req__pay { display: inline-flex; align-items: center; gap: var(--s2); margin-top: var(--s4); }
.tr-req__paynote { margin: var(--s2) 0 0; font-size: .85rem; }
.tr-req__est { margin: var(--s5) 0 var(--s2); font-weight: 600; text-align: left; }
.tr-req__estnote { margin: var(--s2) 0 0; font-size: .85rem; text-align: left; }
.tr-req__hist { margin-top: var(--s5); text-align: left; }
.tr-req__hist h2 { margin: 0 0 var(--s2); font-size: 1rem; }
.tr-req__hist ol { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: var(--s2); }
.tr-req__hist li { display: flex; gap: var(--s3); font-size: .9rem; }
.tr-req__hist time { flex: none; color: var(--lx-muted); font-variant-numeric: tabular-nums; }
/* who runs the tour: apar passes requests on to its suppliers */
.lx-card__op { display: flex; align-items: center; gap: 6px; margin: 2px 0 var(--s2); color: var(--lx-primary); font-size: .82rem; font-weight: 600; }
.tr-head__op { color: var(--lx-primary); font-weight: 600; }
.tr-book__op { display: flex; gap: var(--s2); margin: 0 0 var(--s3); padding: var(--s2) var(--s3); border-radius: var(--lx-radius-sm); background: var(--lx-primary-soft); color: var(--lx-ink-2); font-size: .85rem; line-height: 1.45; }
.tr-book__op i { color: var(--lx-primary); margin-top: 2px; }

/* ---------------------------------------------------------------- tour request page (public/tourRequest.jsp) */
.trq { padding-top: 0; }
.trq-hero { position: relative; overflow: hidden; background: var(--lx-dark); color: #fff; }
.trq-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; filter: saturate(1.05); }
.trq-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(19, 32, 29, .25) 0%, rgba(19, 32, 29, .85) 100%); }
.trq-hero__in { position: relative; z-index: 1; padding-top: var(--s8); padding-bottom: var(--s7); }
.trq-hero__eyebrow { display: inline-flex; align-items: center; gap: var(--s2); margin: 0 0 var(--s2); padding: 4px 12px; border-radius: 999px; background: rgba(255, 255, 255, .16); font-size: .85rem; font-weight: 600; backdrop-filter: blur(6px); }
.trq-hero h1 { margin: 0 0 var(--s3); max-width: 820px; font-size: clamp(1.6rem, 3.2vw, 2.4rem); line-height: 1.2; color: #fff; }
.trq-hero__meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s4); font-size: .95rem; color: rgba(255, 255, 255, .9); }
.trq-hero__meta > span { display: inline-flex; align-items: center; gap: 6px; }
.trq-pill { padding: 4px 12px; border-radius: 999px; font-size: .85rem; font-weight: 700; background: #fff; color: var(--lx-ink); }
.trq-pill--SENT, .trq-pill--NEW, .trq-pill--RETRY { background: #fef3c7; color: #92400e; }
.trq-pill--CONFIRMED, .trq-pill--DEPOSITED, .trq-pill--PAID, .trq-pill--DONE { background: #dcfce7; color: #166534; }
.trq-pill--CANCELLED, .trq-pill--REJECTED { background: #fee2e2; color: #b91c1c; }

.trq-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: var(--s5); align-items: start; margin-top: calc(-1 * var(--s5)); position: relative; z-index: 2; padding-bottom: var(--s7); }
.trq-main, .trq-side { display: flex; flex-direction: column; gap: var(--s4); min-width: 0; }
.trq-side { position: sticky; top: calc(var(--lx-header-h) + var(--s4)); }
.trq-card { padding: var(--s5); border-radius: var(--lx-radius); background: var(--lx-surface); box-shadow: var(--lx-shadow); }
.trq-card h2 { display: flex; align-items: center; gap: var(--s2); margin: 0 0 var(--s4); font-size: 1.05rem; }
.trq-card h2 i { color: var(--lx-primary); }

/* steps */
.trq-steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin: 0; padding: var(--s5) var(--s4); list-style: none; border-radius: var(--lx-radius); background: var(--lx-surface); box-shadow: var(--lx-shadow); }
.trq-steps li { position: relative; display: flex; flex-direction: column; align-items: center; gap: var(--s2); text-align: center; color: var(--lx-muted); font-size: .85rem; }
.trq-steps li::before { content: ""; position: absolute; top: 17px; left: calc(-50% + 20px); right: calc(50% + 20px); height: 3px; border-radius: 3px; background: var(--lx-line); }
.trq-steps li:first-child::before { display: none; }
.trq-steps li.is-done::before, .trq-steps li.is-now::before { background: var(--lx-primary); }
.trq-steps__dot { position: relative; z-index: 1; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--lx-line); background: #fff; font-weight: 700; color: var(--lx-muted); }
.trq-steps li.is-done .trq-steps__dot { border-color: var(--lx-primary); background: var(--lx-primary); color: #fff; }
.trq-steps li.is-now .trq-steps__dot { border-color: var(--lx-primary); color: var(--lx-primary); box-shadow: 0 0 0 5px var(--lx-primary-soft); }
.trq-steps li.is-done, .trq-steps li.is-now { color: var(--lx-ink); font-weight: 600; }
.trq-steps__txt small { display: block; color: var(--lx-ok); font-weight: 600; }

.trq-alert { display: flex; gap: var(--s3); padding: var(--s4) var(--s5); border-radius: var(--lx-radius); background: #fdecea; color: #7f1d1d; box-shadow: var(--lx-shadow); }
.trq-alert > i { font-size: 1.5rem; color: #b42318; }
.trq-alert b { display: block; margin-bottom: 2px; color: #b42318; font-size: 1.05rem; }
.trq-alert p { margin: 0; }

/* tour */
.trq-tour { display: flex; gap: var(--s4); align-items: center; }
.trq-tour__img { flex: none; width: 132px; height: 92px; border-radius: var(--lx-radius-md); overflow: hidden; background: var(--lx-tint); }
.trq-tour__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.trq-tour__name { color: var(--lx-ink); font-size: 1.1rem; font-weight: 700; line-height: 1.35; text-decoration: none; }
.trq-tour__name:hover { color: var(--lx-primary); }
.trq-tour__txt p { margin: 4px 0 0; color: var(--lx-muted); font-size: .9rem; }
.trq-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s3); margin: var(--s4) 0 0; padding-top: var(--s4); border-top: 1px dashed var(--lx-line); }
.trq-facts dt { display: flex; align-items: center; gap: 6px; color: var(--lx-muted); font-size: .8rem; font-weight: 600; }
.trq-facts dt i { color: var(--lx-primary); }
.trq-facts dd { margin: 4px 0 0; color: var(--lx-ink); font-weight: 600; }

/* estimate */
.trq-lines { width: 100%; border-collapse: collapse; font-size: .95rem; }
.trq-lines td { padding: var(--s3) 0; border-bottom: 1px solid var(--lx-line); }
.trq-lines td:last-child { text-align: right; font-weight: 600; white-space: nowrap; }
.trq-lines__qty { color: var(--lx-muted); }
.trq-lines tfoot td { border-bottom: 0; padding-top: var(--s4); font-weight: 700; }
.trq-lines tfoot td:last-child { color: var(--lx-primary); font-size: 1.25rem; }
.trq-note { display: flex; gap: var(--s2); margin: var(--s3) 0 0; color: var(--lx-muted); font-size: .85rem; }

/* history */
.trq-hist { margin: 0; padding: 0; list-style: none; }
.trq-hist li { position: relative; display: flex; gap: var(--s3); padding-bottom: var(--s4); }
.trq-hist li.is-last { padding-bottom: 0; }
.trq-hist li:not(.is-last)::before { content: ""; position: absolute; left: 6px; top: 16px; bottom: 0; width: 2px; background: var(--lx-line); }
.trq-hist__dot { flex: none; width: 14px; height: 14px; margin-top: 3px; border-radius: 50%; background: var(--lx-primary-soft); border: 3px solid var(--lx-primary); }
.trq-hist li.is-last .trq-hist__dot { background: var(--lx-primary); }
.trq-hist b { display: block; color: var(--lx-ink); }
.trq-hist time { color: var(--lx-muted); font-size: .85rem; font-variant-numeric: tabular-nums; }

/* operator */
.trq-op { border-top: 4px solid var(--lx-primary); }
.trq-op__head { display: flex; align-items: center; gap: var(--s3); }
.trq-op__icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--lx-primary-soft); color: var(--lx-primary); font-size: 1.3rem; }
.trq-op__head small { display: block; color: var(--lx-muted); font-size: .8rem; font-weight: 600; }
.trq-op__head b { font-size: 1.15rem; color: var(--lx-ink); }
.trq-op__txt { margin: var(--s3) 0 0; color: var(--lx-ink-2); font-size: .9rem; line-height: 1.5; }
.trq-op__facts { margin: var(--s4) 0 0; padding: var(--s3) var(--s4); border-radius: var(--lx-radius-md); background: var(--lx-tint); }
.trq-op__facts div { display: flex; justify-content: space-between; gap: var(--s3); padding: 6px 0; }
.trq-op__facts div + div { border-top: 1px solid var(--lx-line); }
.trq-op__facts dt { color: var(--lx-muted); font-size: .85rem; }
.trq-op__facts dd { margin: 0; font-weight: 700; color: var(--lx-ink); text-align: right; }
.trq-op__amount { color: var(--lx-primary) !important; }
.trq-op__pay { display: flex; justify-content: center; gap: var(--s2); width: 100%; margin-top: var(--s4); }
.trq-op__sub { margin: var(--s3) 0 0; color: var(--lx-muted); font-size: .85rem; text-align: center; }
.trq-next p { margin: 0; color: var(--lx-ink-2); line-height: 1.55; }
.trq-actions { display: flex; flex-direction: column; gap: var(--s2); }
.trq-actions .lx-btn { justify-content: center; gap: var(--s2); }

@media (max-width: 991px) {
    .trq-grid { grid-template-columns: minmax(0, 1fr); margin-top: var(--s4); }
    .trq-side { position: static; }
}
@media (max-width: 639px) {
    .trq-hero__in { padding-top: var(--s7); padding-bottom: var(--s5); }
    .trq-steps { grid-template-columns: minmax(0, 1fr); gap: var(--s3); padding: var(--s4); }
    .trq-steps li { flex-direction: row; text-align: left; }
    .trq-steps li::before { display: none; }
    .trq-facts { grid-template-columns: minmax(0, 1fr); }
    .trq-tour__img { width: 96px; height: 72px; }
    .trq-card { padding: var(--s4); }
}
