/* ==========================================================
   TRIP BUILDER — "Book" + "Customise trip" rows
   Shared by: Innova & Etios/Sedan sightseeing pages and the
   /munnar-sightseeing/ hub customise section.
   Behaviour: /js/trip-builder.js
========================================================== */
.tbRoutes { display: grid; gap: 18px; }
.tbRoute { padding: 26px 26px 22px; }
.tbHead { display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; }
.tbNum {
    width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
    background: var(--gradient); font-weight: 800; font-size: 15px; color: #fff;
    box-shadow: 0 10px 24px rgba(14, 107, 92, .4);
}
.tbHead h3 { margin: 0 0 4px; font-size: clamp(19px, 2.4vw, 24px); letter-spacing: -.01em; line-height: 1.2; }
.tbSum { margin: 0; font-size: 13.5px; line-height: 1.55; color: rgba(255, 255, 255, .68); }
.tbPrice { text-align: right; white-space: nowrap; }
.tbPrice small { display: block; font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .6); }
.tbPrice strong { display: block; font-size: clamp(26px, 3.4vw, 34px); line-height: 1.1; font-weight: 800; color: #fff; }
.tbPrice em { display: block; font-style: normal; font-size: 12.5px; color: #a9e6e0; margin-top: 2px; }
.tbActions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 20px; }
.tbActions .tsBtn { padding: 13px 22px; font-size: 14.5px; }
.tbToggle i { transition: transform .3s; }
.tbToggle[aria-expanded="true"] i { transform: rotate(45deg); }
.tbDetail { margin-left: auto; font-size: 13.5px; font-weight: 600; color: #a9e6e0; text-decoration: underline; text-underline-offset: 3px; }
.tbPanel { margin-top: 22px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .14); }
.tbPanel[hidden] { display: none; }
.tbGroup { margin-bottom: 20px; }
.tbGroup h4 { margin: 0 0 4px; font-size: 14px; font-weight: 700; letter-spacing: .02em; }
.tbGroup p { margin: 0 0 12px; font-size: 12.5px; color: rgba(255, 255, 255, .6); }
.tbChips { display: flex; flex-wrap: wrap; gap: 9px; }
.tbChip { position: relative; cursor: pointer; }
.tbChip input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.tbChip span {
    display: inline-flex; align-items: center; gap: 8px; padding: 9px 15px; border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .06);
    font-size: 13.5px; font-weight: 500; color: rgba(255, 255, 255, .82); transition: .25s; line-height: 1.2;
}
.tbChip span::before { content: "+"; font-weight: 700; color: var(--secondary-light); width: 12px; text-align: center; }
.tbChip input:checked + span {
    background: linear-gradient(135deg, rgba(28, 156, 134, .5), rgba(14, 107, 92, .5));
    border-color: rgba(141, 216, 210, .6); color: #fff;
}
.tbChip input:checked + span::before { content: "\2713"; color: #bff3ec; }
.tbChip input:focus-visible + span { outline: 2px solid #8dd8d2; outline-offset: 2px; }
.tbFields { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin: 6px 0 18px; }
.tbField label { display: block; margin-bottom: 6px; font-size: 12px; font-weight: 600; letter-spacing: .04em; color: rgba(255, 255, 255, .7); }
.tbField input, .tbField select {
    width: 100%; padding: 12px 14px; border-radius: 14px; border: 1px solid rgba(255, 255, 255, .22);
    background: rgba(6, 16, 14, .55); color: #fff; font: inherit; font-size: 14px; min-height: 46px;
}
.tbField select option { color: #111; background: #fff; }
.tbField input:focus, .tbField select:focus { outline: 2px solid #8dd8d2; outline-offset: 1px; }
.tbField--wide { grid-column: 1 / -1; }
.tbBar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.tbCount { font-size: 14px; font-weight: 700; color: #a9e6e0; margin-right: auto; }
.tbLink {
    background: none; border: 0; color: rgba(255, 255, 255, .75); font: inherit; font-size: 13.5px; font-weight: 600;
    text-decoration: underline; text-underline-offset: 3px; cursor: pointer; padding: 6px 4px;
}
.tbLink:hover { color: #fff; }
.tbHint { margin: 14px 0 0; font-size: 12.5px; color: rgba(255, 255, 255, .6); line-height: 1.6; }
@media (max-width: 720px) {
    .tbRoute { padding: 20px 16px 18px; }
    .tbHead { grid-template-columns: auto 1fr; gap: 14px; }
    .tbPrice { grid-column: 1 / -1; text-align: left; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
    .tbPrice small { display: inline; }
    .tbActions .tsBtn { flex: 1 1 100%; }
    .tbDetail { margin-left: 0; }
    .tbBar .tsBtn { flex: 1 1 100%; }
}

/* ---------- tables, quick answers ---------- */
.tsTableWrap { overflow-x: auto; border-radius: 20px; border: 1px solid rgba(255, 255, 255, .15); background: rgba(255, 255, 255, .04); -webkit-overflow-scrolling: touch; }
.tsTable { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 14.5px; }
.tsTable caption { text-align: left; padding: 14px 18px 0; font-size: 13px; color: rgba(255, 255, 255, .6); caption-side: bottom; padding-bottom: 12px; }
.tsTable th, .tsTable td { padding: 14px 18px; text-align: left; border-bottom: 1px solid rgba(255, 255, 255, .09); vertical-align: top; line-height: 1.5; }
.tsTable thead th { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: #a9e6e0; background: rgba(255, 255, 255, .05); }
.tsTable tbody th { font-weight: 700; color: #fff; }
.tsTable td { color: rgba(255, 255, 255, .8); }
.tsTable tbody tr:last-child th, .tsTable tbody tr:last-child td { border-bottom: 0; }
.tsQuick { padding: 8px 26px; display: grid; gap: 0; }
.tsQuickRow { padding: 20px 0; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.tsQuickRow:last-child { border-bottom: 0; }
.tsQuickRow h3 { margin: 0 0 6px; font-size: 16.5px; font-weight: 700; }
.tsQuickRow p { margin: 0; font-size: 15px; line-height: 1.7; color: rgba(255, 255, 255, .78); }
.tsDestKm { display: inline-block; margin: 0 0 10px; padding: 4px 11px; border-radius: 999px; background: rgba(193, 127, 69, .16); border: 1px solid rgba(217, 160, 107, .32); color: #ecc29a; font-size: 12px; font-weight: 700; }
.tsDestBtn { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 13.5px; font-weight: 700; color: #a9e6e0; text-decoration: none; }
.tsDestBtn:hover { color: #fff; }
.tsDestBtn i { color: #25D366; }
.tsFeature { padding: 28px 28px 24px; margin-bottom: 16px; }
.tsFeature h3 { margin: 0 0 8px; font-size: clamp(21px, 2.6vw, 27px); letter-spacing: -.01em; }
.tsFeature h4 { margin: 20px 0 6px; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; color: #a9e6e0; }
.tsFeature p { margin: 0 0 10px; font-size: 15px; line-height: 1.75; color: rgba(255, 255, 255, .8); }
@media (max-width: 720px) { .tsFeature { padding: 22px 18px 18px; } .tsQuick { padding: 4px 18px; } }
