/* ITA trip booking widget (inline card + pop-up). Uses the site colors from style.css */
.td-book { position: static; }
.td-book-card .td-route { display: none !important; }
.td-book-card [data-ita-booking] { margin-top: 4px; }
.tw-lock { overflow: hidden; }

.tw { --tw-line: var(--line, rgba(11,19,64,.12)); --tw-ink: var(--ink, #070c2b); --tw-muted: var(--muted, #5b6080); --tw-accent: var(--red, #ee364c); --tw-navy: var(--indigo, #282c69); --tw-soft: var(--cream, #f5f2ec);
  display: grid; gap: 16px; font-family: var(--sans, 'Inter', system-ui, sans-serif); color: var(--tw-ink); font-size: 14px; line-height: 1.45; text-align: left; }
.tw h4 { font-family: inherit; font-size: 15px; font-weight: 700; letter-spacing: -.01em; margin: 0; }
.tw small, .tw-dialog small { font-size: 12px; color: var(--tw-muted); }

.tw-dep { margin: 0; font-size: 15px; color: var(--tw-muted); }
.tw-dep b { color: var(--tw-ink); font-weight: 700; margin-left: 4px; }

/* fields */
.tw-field { display: grid; gap: 6px; }
.tw-field > span { font-size: 12px; font-weight: 600; letter-spacing: .02em; color: var(--tw-muted); }
.tw-field select, .tw-field input, .tw-field textarea { width: 100%; min-height: 46px; padding: 11px 14px; border: 1px solid var(--tw-line); border-radius: 12px; background: #fff; color: var(--tw-ink); font: inherit; font-size: 15px; transition: border-color .15s, box-shadow .15s; }
.tw-field select { appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%235b6080' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.tw-field textarea { resize: vertical; min-height: 84px; }
.tw-field select:hover, .tw-field input:hover, .tw-field textarea:hover { border-color: rgba(11,19,64,.32); }
.tw-field select:focus-visible, .tw-field input:focus-visible, .tw-field textarea:focus-visible, .tw-check input:focus-visible { outline: 2px solid var(--tw-accent); outline-offset: 1px; border-color: var(--tw-accent); }
.tw-field [aria-invalid="true"] { border-color: #ee364c; box-shadow: 0 0 0 1px #ee364c; }
.tw-dates { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tw-ferr { display: block; font-style: normal; font-size: 12.5px; color: #ee364c; }
.tw-ferr::before { content: '! '; font-weight: 700; }
.tw-hint { margin: 0; font-size: 12.5px; color: var(--tw-muted); }
.tw-seats { margin: -6px 0 0; font-size: 12.5px; font-weight: 600; color: #a35a1f; }

/* route box */
.tw-route { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; padding: 16px 18px; border-radius: 16px; background: var(--tw-soft); }
.tw-city { display: grid; gap: 1px; min-width: 0; }
.tw-city b { font-size: 15px; font-weight: 700; overflow-wrap: anywhere; }
.tw-city span { font-size: 12.5px; font-weight: 600; color: var(--tw-ink); }
.tw-city small { font-size: 11.5px; letter-spacing: .04em; text-transform: uppercase; }
.tw-city.end { text-align: right; }
.tw-line { display: grid; justify-items: center; gap: 8px; min-width: 104px; }
.tw-line em { font-style: normal; font-size: 12px; font-weight: 700; color: var(--tw-ink); text-align: center; white-space: nowrap; }
.tw-line i { display: block; width: 100%; height: 8px; background:
  radial-gradient(circle, #a9acc0 0 4px, transparent 4.5px) left center / 8px 8px no-repeat,
  radial-gradient(circle, #a9acc0 0 4px, transparent 4.5px) right center / 8px 8px no-repeat,
  repeating-linear-gradient(to right, #b9bcd0 0 4px, transparent 4px 8px) center / calc(100% - 20px) 1.5px no-repeat; }

/* sections */
.tw-sec { display: grid; gap: 4px; padding-top: 16px; border-top: 1px solid var(--tw-line); }
.tw-sec-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; margin-bottom: 4px; }
.tw-sec-head span { font-size: 12.5px; color: var(--tw-muted); }
.tw-row { display: grid; grid-template-columns: 44px 1fr auto auto; align-items: center; gap: 12px; padding: 10px 0; }
.tw-row + .tw-row { border-top: 1px dashed var(--tw-line); }
.tw-ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--tw-line); background: #fff; color: var(--tw-muted); }
.tw-ico svg { width: 22px; height: 22px; }
.tw-rt { display: grid; min-width: 0; }
.tw-rt b { font-size: 14.5px; font-weight: 700; }
.tw-rp { font-size: 13px; font-weight: 700; color: var(--tw-ink); white-space: nowrap; text-align: right; }
.tw-step { display: flex; align-items: center; gap: 10px; }
.tw-step button { width: 32px; height: 32px; border-radius: 50%; border: 0; background: #eceef5; color: var(--tw-ink); font-size: 18px; line-height: 1; cursor: pointer; transition: background .15s, color .15s, transform .1s; }
.tw-step button:hover:not(:disabled) { background: var(--tw-accent); color: #fff; }
.tw-step button:active:not(:disabled) { transform: scale(.94); }
.tw-step button:disabled { opacity: .35; cursor: not-allowed; }
.tw-step button:focus-visible { outline: 2px solid var(--tw-accent); outline-offset: 2px; }
.tw-step output { min-width: 20px; text-align: center; font-weight: 700; font-size: 15px; font-variant-numeric: tabular-nums; }
.tw-count { margin: 6px 0 0; text-align: right; font-weight: 700; color: var(--tw-navy); font-size: 15px; }
.tw-note { margin: 0; padding: 10px 12px; border-radius: 12px; background: var(--tw-soft); font-size: 12.5px; color: var(--tw-muted); }
.tw-note b { color: var(--tw-ink); }

/* good to know chips */
.tw-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.tw-chips li { padding: 5px 11px; border-radius: 99px; border: 1px solid var(--tw-line); background: #fff; font-size: 12px; font-weight: 600; color: var(--tw-muted); }
.tw-incl { margin-top: 10px; }
.tw-incl li { display: inline-flex; align-items: center; gap: 6px; }
.tw-tick { display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: #e6f1de; color: #4f7d3a; }
.tw-tick svg { width: 10px; height: 10px; }
.tw-more { border-top: 1px solid var(--tw-line); padding-top: 12px; }
.tw-more summary { cursor: pointer; font-weight: 700; font-size: 14px; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.tw-more summary::after { content: '+'; font-size: 18px; color: var(--tw-muted); }
.tw-more[open] summary::after { content: '−'; }
.tw-more summary::-webkit-details-marker { display: none; }

/* payment options */
.tw-pay { display: grid; gap: 10px; }
.tw-opt { display: grid; grid-template-columns: auto 1fr auto; align-items: start; gap: 12px; padding: 14px 16px; border: 1px solid var(--tw-line); border-radius: 14px; background: #fff; cursor: pointer; transition: border-color .15s, background .15s, box-shadow .15s; }
.tw-opt:hover { border-color: rgba(11,19,64,.32); }
.tw-opt.is-on { border-color: var(--tw-accent); background: #fdf3f4; box-shadow: 0 0 0 1px var(--tw-accent) inset; }
.tw-opt input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--tw-accent); }
.tw-opt-main { display: grid; gap: 2px; min-width: 0; }
.tw-opt-main b { font-size: 14.5px; font-weight: 700; }
.tw-opt-main small { line-height: 1.4; }
.tw-badge { justify-self: start; margin-top: 4px; padding: 2px 9px; border-radius: 99px; background: var(--tw-navy); color: #fff; font-style: normal; font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.tw-opt-amt { font-size: 18px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }

/* totals + buttons */
.tw-total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-top: 14px; border-top: 1px solid var(--tw-line); }
.tw-total span { font-size: 13px; font-weight: 600; color: var(--tw-muted); }
.tw-total b { font-size: 24px; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.tw-total.due { border-top: 0; padding-top: 4px; }
.tw-total.due b { font-size: 20px; color: var(--tw-accent); }
.tw-due { margin: -10px 0 0; font-size: 12.5px; color: var(--tw-muted); text-align: right; }
.tw-due b { color: var(--tw-ink); }
.tw-err { margin: 0; padding: 10px 12px; border-radius: 12px; background: #fbeaec; color: #8e2430; font-size: 13px; font-weight: 600; }
.tw-actions { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 10px; }
.tw-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 12px 18px; border-radius: 14px; border: 1.5px solid transparent; font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; transition: transform .1s, background .15s, color .15s, border-color .15s, box-shadow .15s; }
.tw-btn:active:not(:disabled) { transform: translateY(1px); }
.tw-btn:disabled { opacity: .6; cursor: wait; }
.tw-btn:focus-visible { outline: 2px solid var(--tw-accent); outline-offset: 2px; }
.tw-primary { background: var(--tw-navy); color: #fff; box-shadow: 0 10px 24px -12px rgba(40,44,105,.7); }
.tw-primary:hover:not(:disabled) { background: #1d2052; }
.tw-ghost { background: #fff; color: var(--tw-ink); border-color: var(--tw-ink); }
.tw-ghost:hover:not(:disabled) { background: var(--tw-ink); color: #fff; }
.tw-link { display: inline-flex; align-items: center; gap: 10px; justify-self: start; padding: 4px 0; background: none; border: 0; font: inherit; font-size: 15px; font-weight: 700; color: var(--tw-ink); cursor: pointer; }
.tw-link svg { width: 20px; height: 20px; }
.tw-link:hover span { text-decoration: underline; }
.tw-link:focus-visible { outline: 2px solid var(--tw-accent); outline-offset: 3px; border-radius: 6px; }

/* pop-up */
.tw-dialog { border: 0; padding: 0; margin: auto; border-radius: 24px; width: min(520px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); background: #fff; color: var(--ink, #070c2b); box-shadow: 0 40px 90px -30px rgba(7,12,43,.6); font-family: var(--sans, 'Inter', system-ui, sans-serif); }
.tw-dialog::backdrop { background: rgba(7,12,43,.62); backdrop-filter: blur(4px); }
.tw-dialog[open] { display: block; overflow-y: auto; overscroll-behavior: contain; }
.tw-d-body { position: relative; display: grid; gap: 14px; padding: 28px 28px 26px; }
.tw-d-title { margin: 0; padding-right: 44px; font-family: var(--display, inherit); font-size: 22px; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; outline: none; }
.tw-x { position: absolute; top: 18px; right: 18px; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--ink, #070c2b); font-size: 13px; cursor: pointer; }
.tw-x:hover { border-color: var(--red, #ee364c); color: var(--red, #ee364c); }
.tw-sum { display: grid; gap: 0; margin: 0; padding: 4px 16px; border-radius: 14px; background: var(--cream, #f5f2ec); }
.tw-sum div { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; font-size: 13.5px; }
.tw-sum div + div { border-top: 1px solid rgba(11,19,64,.08); }
.tw-sum dt { color: var(--muted, #5b6080); }
.tw-sum dd { margin: 0; font-weight: 600; text-align: right; }
.tw-lines { list-style: none; margin: 0; padding: 0; display: grid; }
.tw-lines li { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.tw-lines b { font-variant-numeric: tabular-nums; }
.tw-d-body .tw-total { padding-top: 6px; border-top: 0; }
.tw-check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.tw-check input { width: 20px; height: 20px; margin-top: 1px; accent-color: var(--red, #ee364c); flex: none; }
.tw-check a { text-decoration: underline; }
.tw-done { text-align: center; justify-items: center; padding-top: 40px; }
.tw-done .tw-d-title { padding-right: 0; }
.tw-done p { margin: 0; color: var(--muted, #5b6080); }
.tw-done-ico { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: #e6f1de; color: #4f7d3a; }
.tw-done-ico svg { width: 26px; height: 26px; }
.tw-d-body .tw-field span { font-size: 12px; font-weight: 600; color: var(--muted, #5b6080); }

@media (max-width: 480px) {
  .tw-row { grid-template-columns: 40px 1fr auto; row-gap: 8px; }
  .tw-row .tw-rp { grid-column: 2; text-align: left; order: 3; }
  .tw-row .tw-step { grid-column: 3; grid-row: 1; }
  .tw-ico { width: 40px; height: 40px; }
  .tw-route { grid-template-columns: 1fr; text-align: center; }
  .tw-city.end { text-align: center; }
  .tw-actions { grid-auto-flow: row; }
  .tw-d-body { padding: 24px 18px 20px; }
}
@media (prefers-reduced-motion: reduce) { .tw * , .tw-dialog * { transition: none !important; } }

/* extras: soft colored icon tiles */
.tw-row .tw-ico svg { width: 22px; height: 22px; }

/* pop-up: photo banner and form fields */
.tw-dialog { width: min(540px, calc(100vw - 24px)); overflow: hidden; }
.tw-dialog[open] { display: block; overflow-y: auto; }
.tw-hero { position: relative; display: grid; align-content: end; gap: 2px; min-height: 178px; padding: 24px 28px 22px; color: #fff; background: linear-gradient(135deg, #282c69, #ee364c) center / cover no-repeat; }
.tw-hero small { font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.8); }
.tw-hero .tw-d-title { font-size: 26px; line-height: 1.15; color: #fff; padding-right: 40px; }
.tw-hero p { margin: 4px 0 0; font-size: 13.5px; color: rgba(255,255,255,.85); }
.tw-hero .tw-x { top: 16px; right: 16px; border-color: rgba(255,255,255,.55); background: rgba(7,12,43,.35); color: #fff; backdrop-filter: blur(4px); }
.tw-hero .tw-x:hover { background: #fff; color: var(--ink, #070c2b); border-color: #fff; }
.tw-lead { margin: 0; font-size: 14.5px; color: var(--muted, #5b6080); }
.tw-sumchips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tw-sumchips li { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px 6px 8px; border-radius: 99px; background: var(--cream, #f5f2ec); font-size: 12.5px; font-weight: 600; color: var(--ink, #070c2b); }
.tw-sumchips li span { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #fff; color: var(--red, #ee364c); }
.tw-sumchips svg { width: 13px; height: 13px; }
.tw-f-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.tw-f { display: grid; gap: 6px; }
.tw-f-l { font-size: 12.5px; font-weight: 700; color: var(--ink, #070c2b); }
.tw-opt-tag { font-style: normal; font-weight: 600; font-size: 11px; color: var(--muted, #5b6080); margin-left: 4px; }
.tw-f-w { position: relative; display: block; }
.tw-f-i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 18px; height: 18px; color: #8a8fab; pointer-events: none; }
.tw-f-i svg { width: 18px; height: 18px; }
.tw-f-w input, .tw-f-w textarea { width: 100%; min-height: 50px; padding: 12px 14px 12px 44px; border: 1.5px solid var(--line, rgba(11,19,64,.12)); border-radius: 14px; background: #fbfaf7; color: var(--ink, #070c2b); font: inherit; font-size: 15px; transition: border-color .15s, background .15s, box-shadow .15s; }
.tw-f-w input:hover, .tw-f-w textarea:hover { border-color: rgba(11,19,64,.3); }
.tw-f-w input:focus-visible, .tw-f-w textarea:focus-visible { outline: none; border-color: var(--red, #ee364c); background: #fff; box-shadow: 0 0 0 4px rgba(238,54,76,.14); }
.tw-f-w.is-bad input, .tw-f-w.is-bad textarea { border-color: #ee364c; background: #fdf6f6; }
.tw-f-area .tw-f-i { top: 18px; transform: none; }
.tw-f-area textarea { resize: vertical; min-height: 110px; line-height: 1.5; }
.tw-wide { width: 100%; gap: 10px; }
.tw-btn-i { display: inline-grid; place-items: center; width: 20px; height: 20px; }
.tw-btn-i svg { width: 18px; height: 18px; }
.tw-x-plain { position: absolute; top: 18px; right: 18px; }
@media (max-width: 480px) {
  .tw-f-grid { grid-template-columns: 1fr; }
  .tw-hero { min-height: 150px; padding: 20px 20px 18px; }
  .tw-hero .tw-d-title { font-size: 22px; }
}

/* package type tags (from the admin) */
.tw-tags { display: grid; gap: 6px; }
.tw-tags ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.tw-tags li { padding: 5px 12px; border-radius: 99px; background: var(--tw-soft); border: 1px solid var(--tw-line); font-size: 12px; font-weight: 700; color: var(--tw-ink); }
.tw-tags p { margin: 0; font-size: 12.5px; color: var(--tw-muted); }
.tw-tags p b { color: var(--tw-ink); }

/* Tour type + What's included tags (under Duration in the card) */
.tw-tg { display: grid; gap: 16px; margin: -6px 0 18px; }
.tw-tg-label { margin: 0 0 8px; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted, #5b6080); }
.tw-tg-list { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.tw-tg-list li { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 99px; border: 1px solid var(--line, rgba(11,19,64,.12)); background: var(--cream, #f5f2ec); font-size: 12.5px; font-weight: 600; line-height: 1.3; color: var(--ink, #070c2b); }
.tw-tg .tw-tick { flex: none; display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: #e6f1de; color: #4f7d3a; }
.tw-tg .tw-tick svg { width: 10px; height: 10px; }
/* Extra traveler forms in the Reserve pop-up */
.tw-guests { display: grid; gap: 12px; }
.tw-guest { display: grid; gap: 10px; margin: 0; padding: 12px 14px 14px; border: 1px solid var(--tw-line); border-radius: 14px; background: var(--tw-soft); }
.tw-guest legend { padding: 0 6px; font-size: 12.5px; font-weight: 700; color: var(--tw-navy); }
.tw-people li b { text-align: right; }

/* The pop-up sits outside .tw, so it needs the colours too (fixes the white, invisible buttons) */
.tw-dialog { --tw-line: var(--line, rgba(11,19,64,.12)); --tw-ink: var(--ink, #070c2b); --tw-muted: var(--muted, #5b6080); --tw-accent: var(--red, #ee364c); --tw-navy: var(--indigo, #282c69); --tw-soft: var(--cream, #f5f2ec); }
.tw-dialog .tw-primary { background: #282c69; background: var(--tw-navy); color: #fff; }
.tw-dialog .tw-ghost { background: #fff; color: #070c2b; color: var(--tw-ink); border-color: #070c2b; border-color: var(--tw-ink); }
.tw-dialog .tw-actions { gap: 12px; margin-top: 6px; }
.tw-dialog .tw-wide { margin-top: 6px; }
.tw-dialog .tw-d-body { gap: 14px; }

/* Space between Book now row, WhatsApp button and contact lines */
.td-book-card [data-ita-booking] + .td-book-btn { margin-top: 14px; }
.td-book-card .td-book-contact { margin-top: 18px; line-height: 1.7; }
.tw .tw-actions { gap: 12px; }