/* Trip Semporna public site - Booking view (manage link and My bookings > View).
   Part of the public CSS: the files in assets/css/public/ load in name order (TRIPSEM_Public::assets()). */

/* ---- Booking page (customer): staff-style layout, guests view only ---- */
.tsv { display: flex; flex-direction: column; gap: 18px; padding-top: 26px; padding-bottom: 56px; }
.tsv-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; }
.tsv-bar-right { display: flex; flex-wrap: wrap; gap: 8px; }
.tsv-card { background: #fff; border: 1px solid var(--tsp-line); border-radius: 20px; overflow: hidden; min-width: 0; }
.tsv-head { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 20px; padding: 20px 22px; }
.tsv-thumb { width: 84px; height: 84px; flex: 0 0 auto; border-radius: 16px; overflow: hidden; background: linear-gradient(135deg, #5fd0e6 0%, #1d8fc4 100%); }
.tsv-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tsv-head-main { flex: 1 1 280px; min-width: 0; }
.tsp .tsv-eyebrow { margin: 0; font-size: .74rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #8a8a80; }
.tsp .tsv-head h1 { margin: 2px 0 8px; font-size: clamp(1.45rem, 3vw, 1.8rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.2; }
.tsv-grid { display: flex; flex-wrap: wrap; gap: 18px; align-items: flex-start; }
.tsv-main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.tsv-side { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.tsv-ch { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 20px; border-bottom: 1px solid #edeef0; }
.tsp .tsv-ch h2 { margin: 0; font-size: 1rem; font-weight: 800; }
.tsv-ch > span { font-size: .82rem; color: var(--tsp-muted); }
.tsv-lock { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }
.tsv-lock .tsh-ico { width: 15px; height: 15px; }
.tsv-count { display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 7px; box-sizing: border-box; border-radius: 99px; background: #f0f1f3; color: var(--tsp-text) !important; font-weight: 800; font-size: .74rem !important; }
.tsv-sec { padding: 4px 20px 12px; }
.tsp .tsv-sec h3 { margin: 12px 0 2px; font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #8a8a80; }
.tsp .tsv-rows { margin: 0; }
.tsv-rows > div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid #f2f3f5; font-size: .92rem; }
.tsv-rows > div:last-child { border-bottom: 0; }
.tsv-rows dt { color: var(--tsp-muted); }
.tsp .tsv-rows dd { margin: 0; font-weight: 700; text-align: right; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.tsv-rows dd.is-green { color: var(--tsp-green); }
.tsv-guests { margin: 12px 20px 0; border: 1px solid #edeef0; border-radius: 14px; overflow: hidden; }
.tsv-guests-head, .tsv-guest { display: grid; grid-template-columns: 44px minmax(0, 1.4fr) minmax(0, 1fr) 90px; gap: 10px; align-items: center; padding: 11px 14px; }
.tsv-guests-head { background: var(--tsp-bg); font-size: .7rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #8a8a80; }
.tsv-guest { border-top: 1px solid #edeef0; font-size: .9rem; }
.tsv-guest b { overflow-wrap: anywhere; }
.tsv-no { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: #f0f1f3; font-weight: 800; font-size: .78rem; }
.tsp .tsv-note { margin: 12px 20px 18px; font-size: .84rem; color: var(--tsp-muted); }
.tsv-note a { font-weight: 700; }
.tsv-pay { display: flex; flex-direction: column; gap: 10px; padding: 16px 20px 20px; }
.tsv-break { border: 1px solid #f3dc6b; background: #f8f9fb; border-radius: 14px; padding: 12px 14px; display: grid; gap: 8px; }
.tsv-break > small { font-size: .74rem; font-weight: 700; color: #7a5b00; }
.tsv-break > div { display: flex; justify-content: space-between; gap: 12px; font-size: .9rem; }
.tsv-break span small { display: block; color: var(--tsp-muted); font-size: .78rem; }
.tsv-break b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.tsv-lock-note { font-size: .78rem; color: var(--tsp-muted); }
.tsv .tsp-pay-form { margin: 4px 0 0; }
.tsv .tsp-pay-form .tsp-field { margin-bottom: 10px; }
.tsv .tsp-pay-form .tsh-ico { width: 18px; height: 18px; }
.tsv-hist { display: grid; }
.tsv-hist > div { display: flex; align-items: center; gap: 12px; padding: 12px 20px; border-top: 1px solid #f2f3f5; }
.tsv-hist > div:first-child { border-top: 0; }
.tsv-hist i { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: #e3f5ec; color: var(--tsp-green); flex: 0 0 auto; }
.tsv-hist i .tsh-ico { width: 18px; height: 18px; }
.tsv-hist span { flex: 1 1 auto; min-width: 0; }
.tsv-hist strong { font-size: .9rem; }
.tsv-hist small { display: block; font-size: .8rem; color: var(--tsp-muted); }
.tsv-hist b { font-variant-numeric: tabular-nums; }
@media (max-width: 899px) {
    .tsv-grid { flex-direction: column; align-items: stretch; }
    .tsv-side { display: contents; }
    .tsv-side > :first-child { order: -1; }
    .tsv-main { display: contents; }
    .tsv-side > *, .tsv-main > * { width: 100%; }
}
@media (max-width: 560px) {
    .tsv { padding-top: 16px; gap: 14px; }
    .tsv-head { padding: 16px; gap: 12px; }
    .tsv-thumb { display: none; }
    .tsv-wa-text { display: none; }
    .tsv-ch, .tsv-sec, .tsv-pay { padding-left: 16px; padding-right: 16px; }
    .tsv-guests { margin-left: 16px; margin-right: 16px; border: 0; border-radius: 0; display: grid; gap: 8px; }
    .tsv-guests-head { display: none; }
    .tsv-guest { grid-template-columns: 36px minmax(0, 1fr); grid-template-areas: "n name" "n meta"; gap: 0 10px; border: 1px solid #edeef0; border-radius: 12px; padding: 10px 12px; }
    .tsv-guest .tsv-no { grid-area: n; }
    .tsv-guest b { grid-area: name; }
    .tsv-guest span:nth-of-type(2) { grid-area: meta; font-size: .8rem; color: var(--tsp-muted); }
    .tsv-guest span:nth-of-type(3) { display: none; }
    .tsp .tsv-note { margin-left: 16px; margin-right: 16px; }
    .tsv-hist > div { padding: 12px 16px; }
}
.tsv-order { display: flex; align-items: center; gap: 10px; margin: 0 16px 14px; padding: 10px 12px; border: 1px solid #e6deff; border-radius: 12px; background: #f7f4ff; color: #3d2a8c; font-size: 13px; text-decoration: none; }
.tsv-order svg { width: 17px; height: 17px; flex: 0 0 auto; }
.tsv-order span { flex: 1 1 auto; min-width: 0; }
.tsv-order em { font-style: normal; font-weight: 700; white-space: nowrap; }
.tsv-order:hover { background: #efe9ff; color: #2e1f6e; }
/* Booking view: Payment summary on a white card. Price lines plain, the Total in a soft grey box, Invoice at the foot (like the staff view) */
.tsv-paycard .tsv-break { background: none; border: 0; border-radius: 0; padding: 0; gap: 10px; }
.tsv-paycard .tsv-break > small { color: var(--tsp-muted); text-transform: uppercase; letter-spacing: .06em; font-size: .7rem; font-weight: 800; }
.tsv-total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 14px 16px; border-radius: 14px; background: #f4f5f7; }
.tsv-total span { font-weight: 700; }
.tsv-total b { font-size: 1.4rem; font-weight: 800; letter-spacing: -.01em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tsv-paycard .tsv-rows > div { padding: 8px 0; }
.tsv-invoice { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; margin-top: 2px; border-radius: 14px; background: var(--tsp-yellow); color: var(--tsp-black) !important; font-weight: 700; font-size: .92rem; text-decoration: none; transition: background .15s; }
.tsv-invoice .tsh-ico { width: 18px; height: 18px; }
.tsv-invoice:hover { background: #f2cf00; }
