/* My trip page */
.itg-trip { font-family: 'Figtree', system-ui, sans-serif; color: #16232E; }
.itg-trip a { color: #1768B8; }
.tr-tabs { display: flex; gap: 6px; border-bottom: 1px solid #DDD6CB; }
.tr-tabs button { appearance: none; border: 0; background: none; padding: 12px 18px; font: 700 17px 'Figtree', system-ui, sans-serif; color: #55616B; border-bottom: 3px solid transparent; margin-bottom: -1px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.tr-tabs button[aria-selected="true"] { color: #1B3547; border-bottom-color: #1768B8; }
.tr-n:empty { display: none; }
.tr-n { min-width: 22px; height: 22px; padding: 0 7px; box-sizing: border-box; border-radius: 999px; background: #E8EEF3; color: #1B3547; font-size: 13px; display: inline-flex; align-items: center; justify-content: center; }
.tr-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid #1B3547; background: #1B3547; color: #FFFFFF !important; font: 600 15px 'Figtree', system-ui, sans-serif; text-decoration: none; cursor: pointer; box-sizing: border-box; }
.tr-btn.tr-ghost { background: #FFFFFF; color: #1B3547 !important; border-color: #DDD6CB; }
.tr-btn:focus-visible, .tr-link:focus-visible, .tr-tabs button:focus-visible { outline: 3px solid #1768B8; outline-offset: 2px; }
.tr-link { border: 0; background: none; color: #55616B; font: 600 14px 'Figtree', system-ui, sans-serif; text-decoration: underline; cursor: pointer; padding: 8px; }
.tr-empty { padding: 40px; background: #FFFFFF; border: 1px solid #DDD6CB; border-radius: 18px; text-align: center; }
.tr-empty h2 { margin: 0 0 8px; font-family: 'Fraunces', Georgia, serif; font-size: 28px; color: #1B3547; }
.tr-empty p { margin: 0 0 16px; font-size: 17px; color: #33424E; }
.tr-links { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.tr-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin: 20px 0 16px; font-size: 16px; color: #33424E; }
.tr-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.tr-card { position: relative; display: flex; flex-direction: column; background: #FFFFFF; border: 1px solid #DDD6CB; border-radius: 16px; overflow: hidden; }
.tr-pic img { display: block; width: 100%; height: 170px; object-fit: cover; }
.tr-x { position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; border-radius: 999px; border: 0; background: rgba(255,255,255,0.94); box-shadow: 0 2px 8px rgba(12,22,30,0.22); font-size: 22px; line-height: 1; color: #1B3547; cursor: pointer; }
.tr-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.tr-type { font-size: 12px; font-weight: 700; letter-spacing: 0.6px; color: #1768B8; text-transform: uppercase; }
.tr-title { font-size: 17px; font-weight: 700; line-height: 1.3; color: #16232E !important; text-decoration: none; }
.tr-meta { font-size: 14px; color: #55616B; }
.tr-price { font-size: 15px; color: #16232E; }
.tr-row { margin-top: auto; padding-top: 8px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.tr-chk { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; cursor: pointer; }
.tr-chk input { width: 18px; height: 18px; accent-color: #1768B8; }
.itg-trip select, .itg-trip input[type="date"], .itg-trip input[type="number"], .itg-trip input[type="text"] { height: 40px; padding: 0 10px; border: 1px solid #DDD6CB; border-radius: 10px; background: #FFFFFF; font: 500 14px 'Figtree', system-ui, sans-serif; color: #16232E; max-width: 100%; box-sizing: border-box; }
.tr-ok { font-size: 14px; font-weight: 600; color: #2E7D4F; }
.tr-hint { margin: 16px 0 0; color: #55616B; }
.tr-h2 { margin: 36px 0 14px; font-family: 'Fraunces', Georgia, serif; font-size: 30px; color: #1B3547; }
.tr-h3 { margin: 0 0 6px; font-size: 18px; color: #1B3547; }
.tr-small { margin: 0 0 12px; font-size: 14px; line-height: 1.5; color: #55616B; }
.tr-cmp-wrap { overflow-x: auto; background: #FFFFFF; border: 1px solid #DDD6CB; border-radius: 16px; }
.tr-cmp { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 560px; }
.tr-cmp th, .tr-cmp td { padding: 12px 14px; border-bottom: 1px solid #EEE8DF; text-align: left; vertical-align: top; }
.tr-cmp tbody th { width: 140px; color: #55616B; font-weight: 600; }
.tr-cmp thead th a { display: flex; flex-direction: column; gap: 8px; color: #16232E; text-decoration: none; font-weight: 700; }
.tr-cmp thead img { width: 100%; height: 110px; object-fit: cover; border-radius: 10px; }
.tr-cmp tr:last-child th, .tr-cmp tr:last-child td { border-bottom: 0; }
.tr-low { display: inline-block; margin-left: 4px; padding: 2px 8px; border-radius: 999px; background: #E3F2E8; color: #2E7D4F; font-size: 12px; font-weight: 700; }
.tr-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.tr-setup { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px; margin: 20px 0; padding: 18px 20px; background: #FFFFFF; border: 1px solid #DDD6CB; border-radius: 16px; }
.tr-setup label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; color: #33424E; }
.tr-setup input[type="number"] { width: 110px; }
.tr-setup-note { font-size: 14px; color: #55616B; padding-bottom: 10px; }
.tr-planner { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 24px; align-items: flex-start; }
.tr-side { position: sticky; top: 16px; padding: 18px; background: #FFFFFF; border: 1px solid #DDD6CB; border-radius: 16px; display: flex; flex-direction: column; gap: 10px; max-height: calc(100vh - 32px); overflow: auto; box-sizing: border-box; }
.tr-days { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.tr-day { background: #FFFFFF; border: 1px solid #DDD6CB; border-radius: 16px; padding: 14px; display: flex; flex-direction: column; gap: 10px; min-height: 150px; transition: border-color .12s, background .12s; }
.tr-day.tr-over { border-color: #1768B8; background: #F2F7FC; }
.tr-day header { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.tr-day header strong { font-size: 18px; color: #1B3547; }
.tr-day header span { font-size: 14px; color: #55616B; }
.tr-item { display: flex; gap: 10px; align-items: center; padding: 8px; background: #F6F3EE; border-radius: 12px; cursor: grab; }
.tr-item.tr-dragging { opacity: 0.5; }
.tr-item img { width: 56px; height: 48px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.tr-item > div { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1; }
.tr-item a { font-size: 14px; font-weight: 700; line-height: 1.3; color: #16232E !important; text-decoration: none; }
.tr-item span { font-size: 13px; color: #55616B; }
.tr-item select { height: 34px; font-size: 13px; }
.tr-item-act { flex: 0 0 auto !important; flex-direction: row !important; gap: 2px !important; }
.tr-item-act button { width: 30px; height: 30px; border: 0; border-radius: 8px; background: #FFFFFF; color: #1B3547; font-size: 15px; cursor: pointer; }
.tr-cont { padding: 8px 10px; border-radius: 10px; background: #E8EEF3; font-size: 13px; color: #33424E; }
.tr-free { margin: 0; font-size: 14px; color: #8A949C; }
.tr-warn { margin: 0; padding: 8px 10px; border-radius: 10px; background: #FFF6DE; border-left: 4px solid #E0A100; font-size: 13px; line-height: 1.45; color: #5B4300; }
.tr-add { margin-top: auto; }
.tr-total { margin-top: 24px; padding: 20px 22px; background: #FFFFFF; border: 1px solid #DDD6CB; border-radius: 16px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; align-items: center; }
.tr-total > div:first-child { display: flex; flex-direction: column; gap: 4px; font-size: 16px; }
.tr-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
#tr-share-box { flex-basis: 100%; }
#tr-share-box label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
#tr-share-box input { width: 100%; }
.tr-shared { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; background: #F2F7FC; border: 1px solid #B9D3EC; border-radius: 14px; font-size: 16px; }
.tr-shared span { display: flex; gap: 10px; }
.tr-loading { color: #55616B; }
@media (max-width: 1200px) { .tr-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 900px) {
  .itg-trip { padding: 24px 16px 56px !important; }
  .itg-trip h1 { font-size: 36px !important; }
  .tr-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .tr-planner { grid-template-columns: minmax(0, 1fr); }
  .tr-side { position: static; max-height: none; }
  .tr-days { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) { .tr-grid { grid-template-columns: 1fr; } .tr-pic img { height: 190px; } }
@media print {
  header, footer, .tr-tabs, .tr-side, .tr-setup, .tr-actions, .tr-add, .tr-item-act, .tr-x, .itg-mytrip, .itg-heart, #pane-favs, .tr-shared, nav { display: none !important; }
  #pane-plan { display: block !important; }
  .tr-days { grid-template-columns: 1fr 1fr; }
  .tr-day, .tr-total { break-inside: avoid; border-color: #999; }
}
.tr-air { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; border: 1px dashed #B9D3EC; border-radius: 12px; background: #F7FAFD; }
.tr-air.on { border-style: solid; background: #EEF5FC; }
.tr-air label { display: flex; flex-direction: column; gap: 6px; }
.tr-air-h { font-size: 13px; font-weight: 700; color: #1B3547; }
.tr-air select { height: 36px !important; font-size: 13px !important; width: 100%; }
.tr-air-sel, .tr-air-ok { font-size: 13px; line-height: 1.45; color: #33424E; }
.tr-air-sel a { font-weight: 700; white-space: nowrap; }

/* live prices in the planner */
.tr-px { font-size: 15px; color: #16232E; }
.tr-item .tr-lines { font-size: 12.5px; line-height: 1.4; }
.tr-busy { opacity: 0.5; }
.tr-item .tr-wait { font-style: italic; }
.tr-item .tr-bad, .tr-air .tr-bad { color: #8A2A16; font-weight: 600; font-size: 13px; line-height: 1.4; }
.tr-item .tr-few { color: #8A5A00; font-weight: 600; }
.tr-alts { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.tr-alt { border: 1px solid #1768B8; background: #FFFFFF; color: #1768B8; border-radius: 999px; padding: 4px 10px; font: 600 12.5px 'Figtree', system-ui, sans-serif; cursor: pointer; }
.tr-item .tr-altd { padding: 4px 8px; background: #FFFFFF; border-radius: 999px; }
.tr-time, .tr-pu { display: flex; align-items: center; gap: 6px; font-size: 13px; color: #33424E; cursor: default; }
.tr-time select { height: 32px !important; font-size: 13px !important; }
.tr-pu input { width: 17px; height: 17px; accent-color: #1768B8; }
.tr-sum { font-size: 18px; }
.tr-sum strong { font-size: 22px; }
.tr-total .tr-warn { max-width: 560px; }
.tr-btn.tr-book { background: #E0A100; border-color: #E0A100; color: #1B3547 !important; font-weight: 700; font-size: 16px; min-height: 50px; padding: 0 22px; }
.tr-btn.tr-book:disabled { background: #EDE7DD; border-color: #EDE7DD; color: #8A949C !important; cursor: not-allowed; }
.tr-cancelled { background: #FCE8E4; border-color: #F0C2B8; }
/* Book my whole trip form */
.trb-wrap { position: fixed; inset: 0; z-index: 1300; background: rgba(14, 28, 40, 0.55); display: flex; align-items: flex-start; justify-content: center; padding: 32px 16px; overflow-y: auto; font-family: 'Figtree', system-ui, sans-serif; }
.trb { position: relative; background: #FFFFFF; border-radius: 18px; max-width: 600px; width: 100%; box-sizing: border-box; padding: 26px 24px 22px; display: flex; flex-direction: column; gap: 12px; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3); color: #16232E; }
.trb h2 { margin: 0; font-family: 'Fraunces', Georgia, serif; font-weight: 600; font-size: 28px; color: #1B3547; }
.trb-x { position: absolute; top: 10px; right: 12px; width: 40px; height: 40px; border: 0; background: transparent; font-size: 28px; cursor: pointer; color: #55616B; }
.trb-test { padding: 8px 12px; background: #FFF1D6; color: #6B4A00; border-radius: 10px; font-size: 14px; }
.trb-sum { padding: 12px 14px; background: #F6F3EE; border-radius: 12px; font-size: 14px; line-height: 1.45; }
.trb-sum ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.trb-sum li { display: flex; justify-content: space-between; gap: 14px; }
.trb-sum li > strong { white-space: nowrap; }
.trb-sum small { color: #55616B; font-size: 12.5px; }
.trb-tot { display: flex; justify-content: space-between; gap: 14px; margin-top: 10px; padding-top: 10px; border-top: 1px solid #DDD6CB; font-size: 16px; }
.trb-tot strong { font-size: 18px; }
.trb-p { margin: 0; font-size: 14px; line-height: 1.5; color: #33424E; }
.trb-l { display: flex; flex-direction: column; gap: 5px; font-size: 14px; font-weight: 700; }
.trb-l input, .trb-l textarea { font: inherit; font-weight: 400; font-size: 16px; padding: 10px 12px; border: 1.5px solid #CFC7BA; border-radius: 10px; background: #FFFFFF; color: #16232E; box-sizing: border-box; width: 100%; }
.trb-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.trb-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.trb-c { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.5; }
.trb-c input { margin-top: 3px; width: 18px; height: 18px; flex-shrink: 0; }
.trb-c a { color: #1768B8; }
.trb-err { margin: 0; padding: 10px 12px; background: #FCE8E4; color: #8A2A16; border-radius: 10px; font-size: 14px; }
.trb-go { width: 100%; justify-content: center; font-size: 17px; }
.trb-go:disabled { opacity: 0.6; }
.trb-note { margin: 0; font-size: 12px; color: #55616B; text-align: center; }
@media (max-width: 560px) { .trb-wrap { padding: 0; } .trb { border-radius: 0; min-height: 100vh; } .trb-two { grid-template-columns: minmax(0, 1fr); } .tr-btn.tr-book { width: 100%; } }
@media print { .trb-wrap, .tr-time select, .tr-pu, .tr-alts { display: none !important; } }

/* planned tours with live prices: more room for the text, and nothing wider than the screen */
.tr-day { min-width: 0; }
.tr-day .tr-item { align-items: flex-start; }
.tr-day .tr-item-act { flex-direction: column !important; }
.tr-air label, .tr-side .tr-item > div { min-width: 0; }
.tr-air select, select.tr-add, .tr-item select[data-addday] { max-width: 100%; min-width: 0; }
select.tr-add { width: 100%; }

/* Plan my days for me: a short bar above the days, the long texts below the trip */
.tr-auto { display: flex; flex-direction: column; gap: 8px; padding: 12px 16px; margin: 0 0 16px; background: #FFF8E6; border: 1px solid #F0D48A; border-radius: 16px; scroll-margin-top: 90px; }
.tr-auto:focus { outline: none; }
.tr-auto.tr-auto-done { background: #EEF7F1; border-color: #B7DCC5; }
.tr-auto-top { display: flex; gap: 12px 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.tr-auto-top > div { display: flex; flex-direction: column; gap: 2px; flex: 1 1 320px; min-width: 0; }
.tr-auto-top strong { font-size: 16px; color: #1B3547; }
.tr-auto-top span { font-size: 14.5px; line-height: 1.5; color: #33424E; }
.tr-auto-top a { color: #1768B8; font-weight: 600; white-space: nowrap; }
.tr-btn.tr-auto-go { background: #E0A100; border-color: #E0A100; color: #16232E !important; font-weight: 700; }
.tr-bar-r { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.tr-btn.tr-auto-go:hover { background: #C98F00; border-color: #C98F00; }
.tr-btn.tr-auto-go[disabled] { opacity: 0.6; cursor: default; }
.tr-auto-msg { margin: 0; font-size: 14px; color: #6B4A00; font-style: italic; }
.tr-auto-act { display: flex; gap: 8px; flex-wrap: wrap; flex: 0 0 auto; }
.tr-auto-res, .tr-how { padding: 18px 20px; margin: 16px 0 0; border-radius: 16px; display: flex; flex-direction: column; gap: 10px; scroll-margin-top: 90px; }
.tr-auto-res { background: #EEF7F1; border: 1px solid #B7DCC5; }
.tr-how { background: #FFFFFF; border: 1px solid #DDD6CB; }
.tr-auto-res h2, .tr-how h2 { margin: 0; font-family: 'Fraunces', Georgia, serif; font-weight: 600; font-size: 22px; color: #1B3547; }
.tr-auto-res h3 { margin: 6px 0 0; font-size: 16px; color: #1B3547; }
.tr-auto-res p, .tr-how p { margin: 0; font-size: 14.5px; line-height: 1.5; color: #33424E; }
.tr-auto-res ul { margin: 0; padding: 0 0 0 18px; display: flex; flex-direction: column; gap: 6px; }
.tr-auto-res li, .tr-how li { font-size: 14.5px; line-height: 1.5; color: #23323D; }
.tr-why li::marker { content: '✓  '; color: #1B7A46; }
.tr-how ul { margin: 0; padding: 0 0 0 18px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 28px; }
@media (max-width: 900px) { .tr-how ul { grid-template-columns: minmax(0, 1fr); } .tr-btn.tr-auto-go { width: 100%; } }
@media print { .tr-auto, .tr-how { display: none !important; } }
