/* Trek Booking popup: steps on the left, booking summary on the right */
.tb-open{
  display:block;width:100%;padding:11px 14px;border:0;border-radius:10px;cursor:pointer;
  background:#ef7330;color:#111;font:700 17px Georgia,'Times New Roman',serif;text-align:center;
}
.tb-open:hover{filter:brightness(1.05)}
.tb-wa{display:block;width:100%;padding:10px 14px;border:1.5px solid #25a35a;border-radius:10px;background:#fff;color:#18794e;text-align:center;font:600 15px 'Outfit',system-ui,sans-serif;text-decoration:none}
.tb-wa:hover{background:#f1fbf5}
.tb-open:focus-visible,.tb-wa:focus-visible{outline:3px solid #14123f;outline-offset:2px}

html.tb-lock{overflow:hidden}
.tb-modal{
  --o:#f26a10;--o2:#f7941d;--n:#14123f;--t:#3a3f4b;--l:#e6e7ee;--soft:#fff6ef;--cream:#fcf4ec;
  position:fixed;inset:0;z-index:99999;background:rgba(20,18,63,.55);
  display:flex;align-items:center;justify-content:center;padding:16px;
  font-family:'Outfit',system-ui,sans-serif;color:var(--t);
}
.tb-modal[hidden],.tb-modal.tb-hidden{display:none}
.tb-modal *{box-sizing:border-box}
.tb-modal :where(h2,h3,h4,p,div,span,strong,small,form,label,output,section,nav,aside,fieldset,legend){margin:0;padding:0}
.tb-modal :focus-visible{outline:3px solid var(--n);outline-offset:2px}
.tb-vh{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

.tb-panel{
  position:relative;display:grid;grid-template-columns:minmax(0,1fr) 320px;
  width:100%;max-width:1000px;height:min(680px,calc(100vh - 32px));
  background:#fff;border-radius:16px;overflow:hidden;box-shadow:0 20px 50px rgba(0,0,0,.28);
}
.tb-panel.tb-finished{grid-template-columns:minmax(0,1fr)}
.tb-panel.tb-finished .tb-aside{display:none}
.tb-x{position:absolute;top:10px;right:12px;z-index:3;width:34px;height:34px;border:0;border-radius:50%;background:transparent;color:#222;font-size:28px;line-height:1;cursor:pointer}
.tb-x:hover{background:rgba(0,0,0,.06)}

.tb-main{display:flex;flex-direction:column;min-width:0;min-height:0;padding:18px 24px 0}
.tb-body{flex:1;min-height:0;overflow-y:auto;padding:16px 4px 20px 0;outline:none}
.tb-aside{background:var(--cream);padding:48px 24px 24px;overflow-y:auto}

/* tabs */
.tb-tabs{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;padding-right:44px}
.tb-tab{border:0;background:none;padding:0;cursor:pointer;text-align:center;font:500 15px 'Outfit',system-ui,sans-serif;color:#8b90a0}
.tb-tab:disabled{cursor:default}
.tb-tab-l{display:flex;align-items:center;justify-content:center;gap:8px;padding:6px 0 10px}
.tb-tab svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.tb-bar{display:block;height:4px;border-radius:2px;background:#e3e4ea}
.tb-tab.is-active,.tb-tab.is-done{color:var(--n)}
.tb-tab.is-active svg,.tb-tab.is-done svg{stroke:var(--o2)}
.tb-tab.is-active .tb-bar,.tb-tab.is-done .tb-bar{background:var(--o2)}

/* messages */
.tb-msg{font-size:14px;line-height:1.6;padding:10px 0}
.tb-msg.tb-error{color:#a61b1b;background:#fdeeee;border-radius:8px;padding:9px 12px;margin:0 0 10px}
.tb-fine{font-size:12.5px;line-height:1.5;color:#6c7180;margin-top:6px}

/* aside summary */
.tb-kick{font-size:14px;letter-spacing:.04em;text-transform:uppercase;color:#6c7180;margin:0 0 8px}
.tb-trip{font-size:24px;font-weight:500;color:var(--n);line-height:1.25;margin:0 0 10px}
.tb-start{font-size:15px;margin:0 0 12px}
.tb-chip{display:inline-block;background:var(--o2);color:#fff;font-size:15px;padding:8px 12px;margin:0 0 6px}
.tb-occ{font-size:14px;margin:6px 0 0}
.tb-sec{font-size:18px;font-weight:500;color:var(--n);margin:16px 0 8px;padding-top:12px;border-top:1px solid #efe3d6}
.tb-r{display:flex;justify-content:space-between;gap:12px;font-size:14px;padding:3px 0}
.tb-r strong{font-weight:500;color:var(--n);text-align:right}
.tb-total{display:flex;justify-content:space-between;align-items:baseline;margin-top:12px;padding-top:12px;border-top:1px solid #efe3d6;font-size:20px;font-weight:700;color:var(--n)}
.tb-aside .tb-total{font-size:22px}

/* step 1: calendar */
.tb-cal-head{display:flex;align-items:center;gap:10px;justify-content:center;background:#f2f6f7;padding:14px 12px;border-radius:6px 6px 0 0}
.tb-sel{height:40px;padding:0 10px;border:0;border-radius:4px;background:#fff;font:400 15px 'Outfit',system-ui,sans-serif;color:#222}
.tb-navs{margin-left:auto;display:flex;gap:6px}
.tb-nav{width:34px;height:34px;border:0;border-radius:4px;background:#fff;color:var(--n);font-size:22px;line-height:1;cursor:pointer;box-shadow:0 1px 3px rgba(0,0,0,.18)}
.tb-nav:disabled{opacity:.35;cursor:default}
.tb-grid{display:grid;grid-template-columns:repeat(7,1fr);border-left:1px solid #eef0f3;border-top:1px solid #eef0f3}
.tb-dow{font-size:13px;font-weight:600;color:#222;text-align:center;padding:12px 0;border-right:1px solid #eef0f3;border-bottom:1px solid #eef0f3}
.tb-day{display:grid;place-items:center;height:46px;font-size:15px;border:0;border-right:1px solid #eef0f3;border-bottom:1px solid #eef0f3;background:#fff;color:var(--t);font-family:inherit;border-radius:0}
.tb-day.tb-blank{background:#fafbfc}
.tb-day.tb-in{background:#fde4d2}
.tb-day.tb-avail{color:#fff;font-weight:600;cursor:pointer}
.tb-day.st-ok{background:#2f9e6e}
.tb-day.st-fast{background:#f7941d}
.tb-day.st-last{background:#d94b4b}
.tb-day.tb-avail.tb-sel{background:var(--n)}
.tb-day.tb-full{color:#b3b6c1;text-decoration:line-through}

/* Available Group Departures */
.tb-dep{margin-top:20px;padding-top:16px;border-top:1px solid #d9dbe2}
.tb-dep > h3{font-size:19px;font-weight:600;color:var(--n);margin:0 0 8px}
.tb-leg{display:flex;flex-wrap:wrap;gap:6px 16px;list-style:none;margin:0 0 12px;padding:0;font-size:12.5px;color:#5a6070}
.tb-leg li{display:flex;align-items:center;gap:6px;margin:0;padding:0}
.tb-leg i{width:10px;height:10px;border-radius:50%;display:inline-block}
.tb-leg i.st-ok,.tb-bk i{background:#2f9e6e}
.tb-leg i.st-fast{background:#f7941d}
.tb-leg i.st-last{background:#d94b4b}
.tb-leg i.st-full{background:#b3b6c1}
.tb-mon{margin:0 0 14px}
.tb-mon h4{display:flex;align-items:baseline;justify-content:space-between;gap:10px;font-size:15px;font-weight:600;color:var(--n);margin:0 0 8px}
.tb-mon h4 small{font-size:12px;font-weight:400;color:#7a7f8c}
.tb-dcs{display:grid;grid-template-columns:repeat(auto-fill,minmax(112px,1fr));gap:8px}
.tb-dc{display:block;text-align:left;padding:8px 10px 9px;border:1.5px solid var(--l);border-left-width:4px;border-radius:8px;background:#fff;cursor:pointer;font-family:inherit;color:var(--t)}
.tb-dc.st-ok{border-left-color:#2f9e6e}
.tb-dc.st-fast{border-left-color:#f7941d}
.tb-dc.st-last{border-left-color:#d94b4b}
.tb-dc.st-full{border-left-color:#b3b6c1;background:#f6f6f8;cursor:default}
.tb-dc:disabled{opacity:.7}
.tb-dc:hover:not(:disabled){border-color:var(--o2)}
.tb-dc.tb-picked{background:var(--soft);box-shadow:0 0 0 2px var(--n);border-color:var(--n)}
.tb-dd{display:flex;align-items:baseline;gap:6px}
.tb-dd b{font-size:20px;font-weight:600;color:var(--n);line-height:1.1}
.tb-dd i{font-style:normal;font-size:12px;color:#7a7f8c}
.tb-bk{display:block;height:4px;border-radius:2px;background:#e8e9ef;margin:6px 0 5px;overflow:hidden}
.tb-bk i{display:block;height:100%;border-radius:2px}
.tb-dc.st-fast .tb-bk i{background:#f7941d}
.tb-dc.st-last .tb-bk i{background:#d94b4b}
.tb-dc.st-full .tb-bk i{background:#b3b6c1}
.tb-dl{display:block;font-size:13px;font-weight:600;color:#1f7a55}
.tb-dc.st-fast .tb-dl{color:#c26a00}
.tb-dc.st-last .tb-dl{color:#b83232}
.tb-dc.st-full .tb-dl{color:#7a7f8c}
.tb-db{display:block;font-size:11.5px;color:#7a7f8c;margin-top:1px}
.tb-picked-note{margin:0 0 8px;padding:8px 12px;border-radius:8px;background:var(--soft);font-size:13.5px;text-align:center}
.tb-foot{position:sticky;bottom:-20px;z-index:2;margin:14px -4px 0 0;padding:10px 0 24px;background:#fff;box-shadow:0 -10px 12px -10px rgba(20,18,63,.18)}
.tb-foot .tb-actions{margin-top:0}

/* buttons */
.tb-actions{margin-top:18px;display:flex;gap:12px;align-items:center}
.tb-center{justify-content:center}
.tb-split{justify-content:space-between}
.tb-primary{min-width:230px;padding:14px 26px;border:0;border-radius:999px;background:#e48e46;color:#fff;font:500 16px 'Outfit',system-ui,sans-serif;cursor:pointer}
.tb-primary:hover:not(:disabled){background:var(--o)}
.tb-primary:disabled{background:#efcdb0;cursor:default}
.tb-back{border:0;background:none;color:#1f9bd1;font:500 16px 'Outfit',system-ui,sans-serif;cursor:pointer;padding:8px 4px}

/* step 2: package */
.tb-pills{border:0;margin:0 0 14px;padding:0;min-width:0;display:flex;flex-wrap:wrap;gap:10px}
.tb-pills legend{width:100%;font-size:13px;font-weight:600;color:#6c7180;margin:0 0 8px;padding:0}
.tb-pill{position:relative;cursor:pointer}
.tb-pill input{position:absolute;opacity:0;width:1px;height:1px}
.tb-pill span{display:block;padding:12px 20px;border:1px solid #cfd2da;border-radius:4px;color:#8b90a0;font-size:17px;background:#fff}
.tb-pill small{display:block;font-size:12px}
.tb-pill input:checked + span{border-color:var(--o2);color:var(--o2)}
.tb-pill input:focus-visible + span{outline:3px solid var(--n);outline-offset:2px}
.tb-trav{border-top:1px solid #d9dbe2;margin-top:6px;padding-top:16px}
.tb-trav-h{display:flex;justify-content:space-between;font-size:15px;font-weight:600;color:#7a7f8c;margin:0 0 10px;text-transform:uppercase}
.tb-trav-row{display:flex;align-items:center;gap:14px;padding:16px;border-radius:8px;box-shadow:0 2px 10px rgba(20,18,63,.1);background:#fff}
.tb-trav-row strong{font-size:19px;font-weight:600;color:#333;margin-right:auto}
.tb-price{font-size:17px;color:#555;white-space:nowrap}
.tb-price s{color:#8b90a0;margin-right:4px}
.tb-price b{font-weight:500;font-size:19px;color:#333}
.tb-step{display:flex;align-items:center;border:1px solid #dcdde5;border-radius:4px}
.tb-step button{width:44px;height:48px;border:0;background:none;color:#4a4f9c;font-size:24px;cursor:pointer}
.tb-step button:disabled{opacity:.35;cursor:default}
.tb-step output{min-width:36px;text-align:center;font-size:18px}

/* step 3: checkout */
.tb-card{border:1px solid var(--l);border-radius:10px;padding:16px 18px;margin:0 0 14px}
.tb-card > h3{font-size:18px;font-weight:600;color:var(--n);margin:0 0 12px;padding-bottom:10px;border-bottom:1px solid var(--l)}
.tb-two{display:grid;grid-template-columns:1fr 1fr;gap:10px 14px}
.tb-f{display:block;font-size:13px;font-weight:500;color:var(--n)}
.tb-card > .tb-f{margin-top:10px}
.tb-f input,.tb-f textarea{
  display:block;width:100%;margin-top:4px;padding:11px 12px;border:1px solid #c9ccd6;border-radius:4px;
  font:400 15px 'Outfit',system-ui,sans-serif;color:#222;background:#fff;
}
.tb-f input:focus,.tb-f textarea:focus{border-color:var(--o2);outline:none}
.tb-pay{display:flex;gap:12px;align-items:flex-start;padding:12px 14px;border:1px solid var(--o2);border-radius:6px;background:var(--soft);cursor:default}
.tb-pay input{margin-top:3px;accent-color:var(--o)}
.tb-pay strong{display:block;font-size:15px;font-weight:600;color:var(--n)}
.tb-pay small{display:block;font-size:12.5px;line-height:1.5;color:#5a6070;margin-top:2px}
.tb-check{display:flex;gap:10px;align-items:flex-start;font-size:14px;line-height:1.5;margin:4px 0 6px}
.tb-check input{margin-top:3px;width:18px;height:18px;accent-color:var(--o)}
.tb-check a{color:var(--o);text-decoration:none}
.tb-hp{position:absolute !important;left:-9999px;width:1px;height:1px;opacity:0}

.tb-policy{margin:12px 0 0;border:1px solid var(--l);border-radius:8px;padding:0 12px}
.tb-policy summary{cursor:pointer;padding:10px 0;font-size:13px;font-weight:600;color:var(--n)}
.tb-policy h4{margin:8px 0 4px;font-size:12px;font-weight:600;color:#7a7f8c}
.tb-policy table{width:100%;border-collapse:collapse;margin:0 0 10px;font-size:12.5px}
.tb-policy th,.tb-policy td{text-align:left;vertical-align:top;padding:5px 6px 5px 0;border:0;border-top:1px solid var(--l);background:none;font-weight:400;line-height:1.45}
.tb-policy th{width:42%;font-weight:600;color:var(--n)}

/* thank you */
.tb-done > h3{font-size:22px;font-weight:600;color:var(--n);margin:0 0 6px}
.tb-done > p{font-size:14px;margin:0 0 14px}
.tb-dates{display:flex;align-items:center;gap:26px;margin:0 0 14px}
.tb-dates span{display:block;font-size:14px;color:#6c7180}
.tb-dates strong{display:block;font-size:15px;color:var(--n);margin-top:4px}
.tb-dates i{font-style:normal;color:#17a589;font-size:20px}
.tb-cols{display:grid;grid-template-columns:1fr 1fr;gap:18px;align-items:start}
.tb-i{margin:0 0 12px}
.tb-i span{display:block;font-size:13px;color:#6c7180}
.tb-i strong{display:block;font-size:15px;color:var(--n);margin-top:2px;word-break:break-word}
.tb-box{background:#f6f6f8;border-radius:10px;padding:14px 16px}
.tb-box h3{font-size:19px;font-weight:600;color:var(--n);margin:0 0 10px}
.tb-kv{display:flex;justify-content:space-between;gap:12px;font-size:13.5px;padding:4px 0}
.tb-kv strong{color:var(--n);text-align:right}
.tb-pay-box{margin-top:12px;padding:12px 14px;background:#fff6ef;border-radius:8px}
.tb-done .tb-total{font-size:18px}
.tb-wa-link{display:block;margin-top:14px;text-align:center;font-size:13px;font-weight:600;color:#18794e;text-decoration:none}
.tb-wa-link:hover{text-decoration:underline}

/* tablet and mobile: one column, summary under the steps */
@media (max-width:820px){
  .tb-modal{padding:0;align-items:flex-end}
  .tb-panel{display:block;max-width:none;height:auto;max-height:94vh;overflow-y:auto;border-radius:16px 16px 0 0}
  .tb-main{padding:14px 16px 0}
  .tb-body{overflow:visible;padding:12px 0 16px}
  .tb-aside{padding:18px 16px 22px}
  .tb-tabs{gap:6px;padding-right:38px}
  .tb-tab{font-size:12.5px}
  .tb-tab svg{display:none}
  .tb-trip{font-size:19px}
  .tb-dcs{grid-template-columns:repeat(2,minmax(0,1fr))}
  .tb-foot{bottom:0;padding-bottom:8px;margin-right:0}
  .tb-day{height:40px;font-size:14px}
  .tb-pill span{padding:10px 14px;font-size:15px}
  .tb-trav-row{flex-wrap:wrap;gap:10px;padding:12px}
  .tb-trav-row strong{font-size:16px}
  .tb-price,.tb-price b{font-size:15px}
  .tb-step button{height:42px;width:40px}
  .tb-two{grid-template-columns:1fr}
  .tb-cols{grid-template-columns:1fr}
  .tb-dates{gap:14px}
  .tb-primary{min-width:0;flex:1;padding:13px 16px;font-size:15px}
  .tb-actions{margin-top:14px}
  .tb-panel.tb-finished{display:block}
}
@media (prefers-reduced-motion:no-preference){
  .tb-panel{animation:tb-in .18s ease-out}
  @keyframes tb-in{from{transform:translateY(12px);opacity:0}to{transform:none;opacity:1}}
}

/* v1.4: payment options, coupon, invoice button */
.tb-pay{margin:0 0 10px;cursor:pointer;border-color:var(--l);background:#fff}
.tb-pay.is-on{border-color:var(--o2);background:var(--soft)}
.tb-pay b{color:var(--n);font-weight:700}
.tb-secure{margin-top:4px}
.tb-cp{display:flex;gap:10px}
.tb-cp input{flex:1;min-width:0;padding:11px 12px;border:1px solid var(--l);border-radius:6px;font:inherit;text-transform:uppercase}
.tb-cp input[readonly]{background:#f4f5f8}
.tb-apply{padding:0 22px;border:0;border-radius:6px;background:var(--n);color:#fff;font-family:inherit;font-size:15px;font-weight:500;cursor:pointer}
.tb-apply:disabled{opacity:.6;cursor:default}
.tb-fine.tb-ok{color:#1b7f3b;font-weight:600}
.tb-disc span,.tb-disc strong{color:#1b7f3b}
.tb-actions.tb-center{flex-wrap:wrap}
.tb-ghost{display:inline-flex;align-items:center;justify-content:center;padding:13px 24px;border:1px solid #e48e46;border-radius:999px;background:#fff;color:#c8691c;text-decoration:none;font:500 16px 'Outfit',system-ui,sans-serif}
.tb-ghost:hover{background:#fff6ef}
