/* ===== ذكاء الوجهات › «جهّز الرحلة» (2026-10-11) — route fields, the ready trip (flights, hotels, transport, days) ===== */
.di-chatbox { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.di-ws[data-center="trip"] .di-col--chat, .di-ws[data-center="chat"] .di-col--trip { display: none; }
.di-col--trip { padding: 0 0 14px; background: #fff; min-height: max(480px, calc(100vh - 262px)); }
.di-cswitch { display: flex; gap: 4px; padding: 6px; margin: 8px 8px 0; background: #f1efe9; border-radius: 12px; }
.di-cswitch button { flex: 1; border: 0; background: none; border-radius: 9px; padding: .45rem .6rem; font: inherit; font-weight: 800; font-size: .82rem; color: #57534e; display: inline-flex; justify-content: center; align-items: center; gap: 6px; cursor: pointer; transition: background .15s, color .15s; }
.di-cswitch button.is-on { background: #fff; color: var(--di-ink); box-shadow: 0 1px 3px rgba(15, 23, 42, .12); }
.di-ib { border: 1px solid var(--di-line); background: #fff; border-radius: 8px; width: 30px; height: 30px; display: inline-grid; place-items: center; cursor: pointer; color: var(--di-ink); flex: none; transition: border-color .15s; }
.di-ib:hover:not(:disabled) { border-color: var(--di-ink); }
.di-ib:disabled { opacity: .35; cursor: default; }

/* route fields in the brief */
.di-rt { display: flex; flex-direction: column; gap: 10px; border: 1.5px solid #fcd9cc; background: #fffaf7; border-radius: 12px; padding: 10px; }
.di-rt h4 { margin: 0; display: flex; gap: 6px; align-items: center; font-size: .9rem; }
.di-rt__rows { display: flex; flex-direction: column; gap: 6px; margin-bottom: 6px; }
.di-rt__row { display: flex; gap: 6px; align-items: center; }
.di-rt__n { width: 22px; height: 22px; border-radius: 50%; background: var(--di-ink); color: #fff; font-size: .72rem; font-weight: 800; display: grid; place-items: center; flex: none; }
.di-rt__row input { min-width: 0; border: 1.5px solid var(--di-line); border-radius: 9px; padding: .4rem .55rem; font: inherit; font-size: .84rem; background: #fff; }
.di-rt__city { flex: 1; }
.di-rt__nights { width: 64px; text-align: center; }
.di-chk { display: flex; gap: 8px; align-items: center; font-size: .82rem; font-weight: 700; cursor: pointer; }
.di-go { display: flex; justify-content: center; align-items: center; gap: 8px; width: 100%; border: 0; border-radius: 12px; padding: .8rem 1rem; background: var(--di-hot); color: #fff; font: inherit; font-weight: 800; font-size: .98rem; cursor: pointer; box-shadow: 0 6px 16px rgba(239, 91, 53, .28); transition: background .18s, transform .18s; }
.di-go:hover:not(:disabled) { background: #d94a26; transform: translateY(-1px); }
.di-go:disabled { opacity: .5; cursor: progress; }
.di-empty .di-go { width: auto; margin-top: 10px; }

/* progress */
.di-tp__run { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 48px 16px; text-align: center; color: var(--muted); }
.di-tp__run b { color: var(--di-ink); font-size: 1.05rem; }
.di-tp__run ol { list-style: none; padding: 0; margin: 10px 0 0; display: flex; flex-direction: column; gap: 8px; text-align: start; }
.di-tp__run li { display: flex; gap: 8px; align-items: center; font-weight: 700; font-size: .86rem; color: #a8a29e; }
.di-tp__run li.is-on { color: var(--di-hot); } .di-tp__run li.is-done { color: #15803d; }
.di-spin { width: 34px; height: 34px; border-radius: 50%; border: 4px solid #fde3da; border-top-color: var(--di-hot); animation: di-spin 1s linear infinite; }
@keyframes di-spin { to { transform: rotate(360deg); } }

/* result */
.di-tp { display: flex; flex-direction: column; gap: 14px; padding: 12px 14px 0; }
.di-tp__head { background: var(--di-ink); color: #fff; border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.di-tp__route { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.di-tp__route i { opacity: .55; display: inline-flex; }
.di-tp__stop { background: rgba(255, 255, 255, .1); border-radius: 10px; padding: .35rem .6rem; display: flex; flex-direction: column; }
.di-tp__stop small, .di-tp__kpis small { opacity: .75; font-size: .72rem; }
.di-tp__kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; }
.di-tp__kpis > span { display: flex; flex-direction: column; gap: 2px; background: rgba(255, 255, 255, .06); border-radius: 10px; padding: .45rem .6rem; }
.di-tp__total b { font-size: 1.25rem; color: #ffd2c2; }
.di-tp__lines { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .8rem; opacity: .9; }
.di-tp__lines span { display: inline-flex; gap: 5px; align-items: center; }
.di-tp__note { display: flex; gap: 6px; align-items: flex-start; margin: 0; font-size: .78rem; font-weight: 700; line-height: 1.6; color: #92400e; background: #fffbeb; border-radius: 9px; padding: .4rem .6rem; }
.di-tp__head .di-tp__note { background: rgba(255, 251, 235, .12); color: #fde68a; }
.di-tp__note--bad { color: #b91c1c; background: #fef2f2; }
.di-tp__acts { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.di-tp__acts small { opacity: .7; font-size: .72rem; }
.di-tp__head .di-btn--ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .35); }
.di-tp__sec { display: flex; flex-direction: column; gap: 10px; }
.di-tp__sec h3 { margin: 4px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 1rem; }
.di-tp__sec h3 small { color: var(--muted); font-weight: 600; font-size: .74rem; }
.di-leg { border: 1px solid var(--di-line); border-radius: 12px; padding: 10px; display: flex; flex-direction: column; gap: 8px; background: #fff; }
.di-leg__h { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; font-size: .82rem; color: var(--muted); }
.di-leg__h b { color: var(--di-ink); font-size: .92rem; }
.di-leg__f { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .76rem; color: var(--muted); }
.di-ext { color: #1d4ed8; font-weight: 700; text-decoration: none; white-space: nowrap; }
.di-ext:hover { text-decoration: underline; }
.di-mk { color: #0f766e; font-weight: 700; }
.di-fos, .di-hos { display: flex; flex-direction: column; gap: 6px; }
.di-fo, .di-ho { display: grid; align-items: center; gap: 8px 12px; text-align: start; width: 100%; border: 1.5px solid var(--di-line); background: #fff; border-radius: 11px; padding: .55rem .7rem; font: inherit; cursor: pointer; transition: border-color .15s, background .15s; }
.di-fo { grid-template-columns: minmax(130px, 1.2fr) minmax(110px, 1fr) minmax(90px, 1fr) auto; }
.di-fo:hover, .di-ho:hover { border-color: #f4a58b; }
.di-fo.is-on, .di-ho.is-on { border-color: var(--di-hot); background: var(--di-hot-l); box-shadow: inset 0 0 0 1px var(--di-hot); }
.di-fo span, .di-ho span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.di-fo small, .di-ho small { color: var(--muted); font-size: .72rem; font-weight: 600; }
.di-fo__al { flex-direction: row !important; align-items: center; gap: 8px !important; }
.di-fo__al img { border-radius: 6px; object-fit: contain; background: #fff; }
.di-fo__p, .di-ho__p { text-align: end; align-items: flex-end; }
.di-fo__p b, .di-ho__p b { color: var(--di-ink); white-space: nowrap; }
.di-fo__deal { color: #7c3aed !important; }
.di-fo__tags { grid-column: 1 / -1; flex-direction: row !important; flex-wrap: wrap; gap: 4px !important; }
.di-fo__tags:empty { display: none !important; }
.di-fo__tags em { font-style: normal; font-size: .68rem; font-weight: 800; background: #ecfdf5; color: #047857; border-radius: 999px; padding: .1rem .5rem; }
.di-fo--ground { grid-template-columns: auto auto 1fr; }
.di-ho { grid-template-columns: 76px minmax(0, 1fr) auto; }
.di-ho__img { width: 76px; height: 58px; border-radius: 9px; overflow: hidden; background: linear-gradient(135deg, #f5f0e8, #ece4d6); display: grid !important; place-items: center; color: #b8a98f; position: relative; }
.di-ho__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.di-stars { color: #f59e0b; font-size: .74rem; letter-spacing: 1px; }
.di-mv { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.di-mv li { display: flex; gap: 8px; align-items: flex-start; padding: .45rem .55rem; border-radius: 9px; background: #fafaf9; font-size: .82rem; }
.di-mv li.is-rec { background: #ecfdf5; }
.di-mv li span { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.di-mv li em { font-style: normal; font-size: .68rem; font-weight: 800; color: #047857; }
.di-mv li small { color: var(--muted); font-size: .74rem; line-height: 1.6; }
.di-mv__how { margin: 0; display: flex; gap: 6px; font-size: .82rem; line-height: 1.7; background: #f5f3ff; border-radius: 9px; padding: .45rem .6rem; }
.di-tp__sum { margin: 0; line-height: 1.8; font-size: .86rem; background: var(--di-sand); border-radius: 10px; padding: .6rem .75rem; }
.di-days { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.di-days > li { border: 1px solid var(--di-line); border-radius: 12px; padding: 10px; }
.di-days__h { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-bottom: 6px; }
.di-days__h small { color: var(--muted); font-size: .74rem; }
.di-days__n { background: var(--di-hot); color: #fff; font-size: .7rem; font-weight: 800; border-radius: 999px; padding: .12rem .55rem; }
.di-days ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 5px; }
.di-days ul li { display: grid; grid-template-columns: 18px 46px 1fr; gap: 6px; align-items: start; font-size: .84rem; line-height: 1.7; }
.di-days time { color: var(--muted); font-size: .76rem; font-weight: 700; padding-top: 2px; }
.di-tp__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.di-tp__box { border: 1px solid var(--di-line); border-radius: 12px; padding: 10px; }
.di-tp__box.is-warn { background: #fffbeb; border-color: #fde68a; }
.di-tp__box h4 { margin: 0 0 6px; display: flex; align-items: center; gap: 6px; font-size: .86rem; }
.di-tp__box h4 .di-ib { margin-inline-start: auto; width: 26px; height: 26px; }
.di-tp__box ul { margin: 0; padding-inline-start: 18px; display: flex; flex-direction: column; gap: 4px; font-size: .8rem; line-height: 1.7; }

@media (max-width: 820px) {
  .di-cswitch { display: none; }
  .di-ws[data-pane="trip"] .di-col--trip { display: block; min-height: 0; }
  .di-fo { grid-template-columns: 1fr auto; }
  .di-fo__t, .di-fo__b { grid-column: 1 / -1; }
  .di-ho { grid-template-columns: 64px 1fr; }
  .di-ho__img { width: 64px; height: 52px; }
  .di-ho__p { grid-column: 1 / -1; flex-direction: row !important; flex-wrap: wrap; justify-content: space-between; align-items: center !important; }
}

/* the ready trip takes the plan column's width too; the plan is one click away («الخطة والنقاش») */
@media (min-width: 821px) {
  .di-ws[data-center="trip"] { grid-template-columns: 300px minmax(0, 1fr); }
  .di-ws[data-center="trip"] .di-col--plan { display: none; }
}
@media (min-width: 821px) and (max-width: 1180px) {
  .di-ws[data-center="trip"] { grid-template-columns: minmax(0, 1fr); }
}
.di-brief .di-rt__row .di-rt__city { flex: 1 1 auto; width: auto; }
.di-brief .di-rt__row .di-rt__nights { flex: none; width: 64px; }
