/* =====================================================================
   Shared flight views (Views/Shared in Ventrip.Web.Common): segment timeline, FLIGHT DETAILS card, fare policy,
   e-ticket / voucher cards. Loaded by both sites as _content/Ventrip.Web.Common/css/flight-details.css.
   Theme tokens come from the site's :root when defined (B2C), otherwise the fallbacks here apply (B2B).
   ===================================================================== */
.stop-0 { color: #067647; font-weight: 700; }
.stop-n { color: #b54708; font-weight: 600; }
/* airline badges (brand-ish colours; no external logos) */
.al-badge { flex: none; width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; font-weight: 800; font-size: .8rem; color: #fff; background: var(--navy-2, #13306e); font-family: var(--font-head, system-ui, sans-serif); letter-spacing: .3px; }
.al-badge.al-sm { width: 28px; height: 28px; border-radius: 7px; font-size: .66rem; }
.al-6e { background: #1b1b9c; }
.al-ai { background: #d7263d; }
.al-ix { background: #e2231a; }
.al-sg { background: #e41e26; }
.al-qp { background: #ff6d00; }
.al-uk { background: #5b2d86; }
.al-i5 { background: #c8102e; }
.al-9i { background: #00539b; }
.al-s5 { background: #0f4c81; }
.al-ek { background: #c8102e; }
.al-qr { background: #5c0632; }
.al-fz { background: #004b87; }
.al-ey { background: #b8913f; }
.al-sq { background: #1c3b6f; }


/* =====================================================================
   Flight details tabs (_FlightCard.cshtml) & segment timeline (_JourneySegments.cshtml)
   ===================================================================== */
.fcard-details { padding: 0; background: #f6f7fb; }
.ftabs { display: flex; overflow-x: auto; background: #fff; border-bottom: 1px solid var(--line, #e7e9f0); scrollbar-width: none; }
.ftabs::-webkit-scrollbar { display: none; }
.ftabs [role="tab"] { flex: none; background: none; border: 0; padding: .7rem 1.1rem; font-size: .9rem; font-weight: 600; text-transform: uppercase; letter-spacing: .3px; color: #6b7bd3; white-space: nowrap; }
.ftabs [role="tab"]:hover { color: var(--navy-2, #13306e); }
.ftabs [role="tab"].is-active { color: #fff; background: linear-gradient(90deg, #2f6fe4, #5aa9ff); }
.ftabs [role="tab"]:focus-visible { outline: 3px solid rgba(242, 140, 40, .6); outline-offset: -3px; }
.ftab-panel { padding: .9rem 1rem 1rem; }
.journey-title { font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; color: var(--saffron-deep, #e8590c); margin: .2rem 0 .5rem; }
.journey + .journey-title { margin-top: 1.2rem; }

.journey { background: #fff; border-radius: 10px; border: 1px solid var(--line, #e7e9f0); overflow: hidden; }
.jseg { position: relative; display: grid; grid-template-columns: 56px 1fr; padding: 1.4rem 1rem 1rem 0; }
.jseg-refund { position: absolute; top: .5rem; right: .9rem; font-size: .8rem; font-weight: 700; }
.is-refundable { color: #16a34a; }
.is-nonrefundable { color: #d92d20; }
.jseg-track { display: flex; flex-direction: column; align-items: center; padding: .35rem 0 3.3rem; }
.jseg-track span { width: 12px; height: 12px; border-radius: 50%; background: #2f6fe4; box-shadow: 0 0 0 2px #cfe0ff; flex: none; }
.jseg-track::before { content: ""; order: 1; flex: 1; width: 0; border-left: 2px dotted #2f6fe4; margin: 2px 0; }
.jseg-track span:last-child { order: 2; }
.jseg-body { min-width: 0; }
.jseg-point { margin: 0; font-size: 1.05rem; color: var(--ink, #1c2437); }
.jseg-point strong { font-weight: 600; }
.jseg-point small { color: var(--muted, #5f6b80); font-size: .75rem; margin-left: .35rem; white-space: nowrap; }
.jseg-duration { margin: .55rem 0 .1rem; font-size: .8rem; color: var(--muted, #5f6b80); }
.jseg-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem 1rem; margin-top: .8rem; color: #5b6475; font-size: .86rem; }
.jseg-class { color: #9aa3b5; }
.jseg-aircraft::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #4ade80; margin-right: .35rem; vertical-align: 1px; }
.al-badge.al-round { width: 34px; height: 34px; border-radius: 50%; font-size: .68rem; }
.jseg-layover { position: relative; text-align: center; padding: .25rem 1rem; background: #f6f7fb; }
.jseg-layover::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 3px solid #dfe3ea; }
.jseg-layover span { position: relative; display: inline-flex; flex-direction: column; min-width: min(420px, 100%); background: #e5e7eb; border: 1px solid #c9ced8; border-radius: 12px; padding: .25rem 1rem; }
.jseg-layover strong { font-size: .75rem; color: #4b5563; }
.jseg-layover small { font-size: .72rem; color: #6b7280; }

.breakup-table, .baggage-table, .policy-table { background: #fff; border-radius: 10px; overflow: hidden; margin-bottom: .6rem; font-size: .88rem; }
.breakup-table td small { color: var(--muted, #5f6b80); }
.breakup-table tfoot th { font-family: var(--font-head, system-ui, sans-serif); color: var(--navy, #0b1f4b); border-bottom: 0; }
.baggage-table thead th, .policy-table thead th { background: #eef4ff; color: var(--navy, #0b1f4b); font-size: .78rem; text-transform: uppercase; letter-spacing: .3px; }
.fare-policy h6 { font-size: .9rem; display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem; margin: 0 0 .5rem; }
.policy-refund { font-size: .78rem; font-weight: 700; }
.policy-leg + .policy-leg { margin-top: 1rem; }
.policy-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.fare-rules-body { margin-top: .7rem; max-height: 360px; overflow: auto; background: #fff; border: 1px solid var(--line, #e7e9f0); border-radius: 10px; padding: .8rem 1rem; }
.rule-text + .rule-text { margin-top: 1rem; padding-top: 1rem; border-top: 1px dashed var(--line, #e7e9f0); }
.rule-text h6 { font-size: .85rem; }
.rule-text div { white-space: pre-line; font-size: .82rem; color: #3d4556; overflow-wrap: anywhere; }

/* =====================================================================
   Review page flight card (_ReviewFlights.cshtml)
   ===================================================================== */
.review-card { background: #fff; border-radius: 14px; box-shadow: var(--shadow-sm, 0 2px 8px rgba(11, 31, 75, .06)); border: 1px solid var(--line, #e7e9f0); margin-bottom: 1rem; overflow: hidden; }
.review-head { display: flex; align-items: center; gap: .75rem; padding: .75rem 1rem; background: #f7f7f8; border-bottom: 1px solid var(--line, #e7e9f0); }
.review-icon { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: #e6e8ee; color: #5b8def; font-size: 1.35rem; }
.review-icon .bi-airplane-fill { display: inline-block; transform: rotate(45deg); }
.review-head h2 { margin: 0; font-family: var(--font-body, system-ui, sans-serif); font-size: 1.25rem; font-weight: 500; text-transform: uppercase; color: #1a5ae0; }
.review-change { margin-left: auto; font-size: .88rem; font-weight: 600; text-transform: uppercase; color: #1a5ae0; text-decoration: none; }
.review-change:hover { text-decoration: underline; }
.review-leg { padding: .8rem 1.4rem 1rem; }
.review-leg + .modal + .review-leg, .review-leg + .review-leg { border-top: 1px solid var(--line, #e7e9f0); }
.review-leg-top { display: flex; justify-content: space-between; align-items: center; gap: .5rem; margin-bottom: .55rem; }
.journey-pill { display: inline-flex; align-items: center; gap: .45rem; background: #fdd7da; color: #3f3f46; font-weight: 700; font-size: .88rem; padding: .2rem .8rem; border-radius: 6px; }
.journey-pill i { color: #6b7280; transform: rotate(45deg); display: inline-block; }
.journey-pill i.rot-180 { transform: rotate(-135deg); }
.policy-link { display: inline-flex; align-items: center; gap: .35rem; background: #d7e5ff; color: #1a5ae0; border: 0; border-radius: 6px; padding: .25rem .7rem; font-size: .88rem; font-weight: 500; }
.policy-link i { color: #4f46e5; font-size: 1.05rem; }
.policy-link:hover { background: #c5d9ff; }
.baggage-bar { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem 1.4rem; background: linear-gradient(90deg, #1e6fd9 0%, #13a39b 55%, #10c47a 100%); color: #fff; border-radius: 999px; padding: .5rem 1.1rem; font-size: .92rem; }
.baggage-bar strong { font-weight: 700; }
.bb-label { font-weight: 700; }
.bb-meals { margin-left: auto; display: inline-flex; gap: 1.2rem; }
.review-row { display: grid; grid-template-columns: 110px minmax(0, 1fr) minmax(0, .85fr) minmax(0, 1fr); gap: .8rem; align-items: center; padding: 1.1rem 0 .6rem; }
.review-airline { display: flex; flex-direction: column; gap: .25rem; font-size: .9rem; color: var(--ink, #1c2437); }
.review-airline small { font-size: .88rem; white-space: nowrap; }
.review-point { display: flex; flex-direction: column; align-items: flex-end; text-align: right; }
.review-point.is-end { align-items: flex-start; text-align: left; }
.rp-time { font-size: 1.3rem; font-weight: 700; color: #111827; }
.rp-place { font-weight: 700; font-size: 1.05rem; color: #1f2937; }
.rp-place small { font-weight: 400; font-size: .95rem; }
.rp-date { font-weight: 700; font-size: 1.02rem; color: #1f2937; }
.review-path { text-align: center; color: #4b5563; font-size: 1rem; }
.review-path small { display: block; font-size: .78rem; margin-top: .15rem; }
.rp-line { display: block; position: relative; height: 0; border-top: 2px dotted #3b82f6; margin: .75rem .5rem .4rem; }
.rp-line::before, .rp-line::after { content: ""; position: absolute; top: -7px; width: 12px; height: 12px; border-radius: 50%; background: #3b82f6; }
.rp-line::before { left: -6px; }
.rp-line::after { right: -6px; }
.review-foot { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.1rem; }
.aircraft-chip { background: #22a652; color: #fff; border-radius: 999px; padding: .1rem .7rem; font-size: .78rem; font-weight: 500; }
.info-link { background: #1a73e8; color: #fff; border: 0; border-radius: 999px; padding: .2rem .8rem; font-size: .82rem; font-weight: 700; box-shadow: 0 2px 4px rgba(26, 115, 232, .3); }
.info-link:hover { background: #1557b0; }
.review-class { font-size: .88rem; color: #111827; }
.refund-badge { margin-left: auto; border-radius: 999px; padding: .35rem 1.1rem; font-size: .98rem; font-weight: 500; color: #fff; box-shadow: 0 3px 6px rgba(0, 0, 0, .2); }
.refund-badge.is-refundable { background: #2fbf1f; color: #fff; }
.refund-badge.is-nonrefundable { background: #d92d20; color: #fff; }
.review-info { margin-top: .8rem; }

@media (max-width: 767.98px) {
    .policy-grid { grid-template-columns: 1fr; }
    .review-leg { padding: .8rem .9rem 1rem; }
    .review-row { grid-template-columns: minmax(0, 1fr) minmax(0, .8fr) minmax(0, 1fr); row-gap: .6rem; }
    .review-airline { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: .6rem; }
    .review-point { align-items: flex-start; text-align: left; }
    .review-point.is-end { align-items: flex-end; text-align: right; }
    .rp-time { font-size: 1.1rem; }
    .rp-place, .rp-date { font-size: .85rem; }
    .baggage-bar { border-radius: 14px; font-size: .84rem; }
    .bb-meals { margin-left: 0; }
    .refund-badge { font-size: .85rem; }
}
@media (max-width: 575.98px) {
    .jseg { grid-template-columns: 36px 1fr; padding-right: .6rem; }
    .jseg-point { font-size: .92rem; }
    .jseg-refund { font-size: .72rem; }
    .ftabs [role="tab"] { padding: .6rem .8rem; font-size: .8rem; }
}

/* =====================================================================
   E-ticket (Trips/Ticket.cshtml) — same cards as the review page
   ===================================================================== */
.ticket-page .review-head h2 { line-height: 1.2; }
.ticket-icon.is-ok { background: #dcfce7; color: #16a34a; }
.ticket-icon.is-wait { background: #fef3c7; color: #d97706; }
.ticket-icon.is-bad { background: #fee2e2; color: #d92d20; }
.ticket-status { margin-left: auto; border-radius: 999px; padding: .25rem .9rem; font-size: .82rem; font-weight: 700; }
.ticket-status.is-ok { background: #2fbf1f; color: #fff; }
.ticket-status.is-wait { background: #f59e0b; color: #fff; }
.ticket-status.is-bad { background: #d92d20; color: #fff; }
.ticket-facts { display: grid; grid-template-columns: 1.1fr 1.4fr 1fr 1.3fr; gap: 1rem; padding: 1rem 1.4rem; }
.ticket-facts small { display: block; color: var(--muted, #5f6b80); font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; margin-bottom: .15rem; }
.ticket-facts span { font-size: .92rem; color: var(--ink, #1c2437); }
.ticket-pnr strong { font-family: var(--font-head, system-ui, sans-serif); font-size: 1.7rem; letter-spacing: 2px; color: #1a5ae0; line-height: 1; }
.ticket-table thead th { background: #eef4ff; color: var(--navy, #0b1f4b); font-size: .78rem; text-transform: uppercase; letter-spacing: .3px; }
.ticket-table td, .ticket-table th { padding: .6rem 1.4rem; vertical-align: middle; }
.ticket-no { color: var(--navy-2, #13306e); font-size: .9rem; background: #f1f5ff; padding: .1rem .45rem; border-radius: 6px; }
.ticket-pay td, .ticket-pay th { padding: .55rem 1.4rem; }
.ticket-pay tfoot th { font-family: var(--font-head, system-ui, sans-serif); color: var(--navy, #0b1f4b); border-bottom: 0; }
.ticket-notes { margin: 0; padding: .9rem 1.4rem .9rem 2.6rem; font-size: .88rem; color: #3d4556; }
.ticket-notes li + li { margin-top: .35rem; }
@media (max-width: 767.98px) {
    .ticket-facts { grid-template-columns: 1fr 1fr; padding: .9rem; }
    .ticket-table td, .ticket-table th, .ticket-pay td, .ticket-pay th { padding-left: .9rem; padding-right: .9rem; }
}
@media print {
    .review-card { box-shadow: none; break-inside: avoid; }
    .policy-link, .info-link, .modal { display: none !important; }
    .review-card .collapse { display: block !important; }
    .baggage-bar, .refund-badge, .aircraft-chip, .ticket-status { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
.ticket-pay .ticket-pay-sub td { color: var(--muted, #5f6b80); font-size: .85rem; border-bottom: 0; padding-top: .2rem; padding-bottom: .2rem; }
