/* =========================================================================
   Trip summary — standalone document pages (/Booking/Trip, /Booking/TripSummary)
   -------------------------------------------------------------------------
   Self-contained on purpose. These pages render without the site header and
   footer and WITHOUT site.css, so every rule here is scoped under .trip-body
   and nothing in this file can reach any other page.
   ========================================================================= */

:root {
    --t-navy:       #0B2C6B;
    --t-navy-700:   #0F3580;
    --t-blue:       #1E6BE6;
    --t-blue-50:    #F2F7FF;
    --t-blue-100:   #E8F1FF;
    --t-ink:        #1F2937;
    --t-muted:      #64748B;
    --t-faint:      #94A3B8;
    --t-bg:         #EEF3FA;
    --t-surface:    #FFFFFF;
    --t-border:     #E5EAF1;
    --t-hairline:   #F1F4F9;
    --t-danger:     #DC2626;
    --t-success:    #16A34A;
    --t-amber:      #B45309;

    --t-radius:     16px;
    --t-radius-sm:  10px;
    --t-shadow-lg:  0 18px 40px rgba(11, 44, 107, .12);

    --t-ff:         "Inter", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    --t-ff-display: "Plus Jakarta Sans", "Inter", "Segoe UI", Arial, sans-serif;
}

.trip-body *,
.trip-body *::before,
.trip-body *::after { box-sizing: border-box; }

.trip-body {
    margin: 0;
    padding: 0;
    font-family: var(--t-ff);
    font-size: 15px;
    line-height: 1.55;
    color: var(--t-ink);
    background: var(--t-bg);
    -webkit-font-smoothing: antialiased;
}

.trip-body img,
.trip-body svg { max-width: 100%; display: block; }

.trip-body a { color: var(--t-blue); text-decoration: none; }
.trip-body a:hover { text-decoration: underline; }

.trip-body h1, .trip-body h2, .trip-body h3, .trip-body h4 {
    font-family: var(--t-ff-display);
    color: var(--t-navy);
    line-height: 1.2;
    margin: 0;
    letter-spacing: -.01em;
}

.trip-body p { margin: 0 0 1rem; }
.trip-body p:last-child { margin-bottom: 0; }

/* Shell ------------------------------------------------------------------ */

.trip-shell {
    max-width: 940px;
    margin: 0 auto;
    padding: 28px 16px 56px;
}

.trip-doc {
    background: var(--t-surface);
    border-radius: var(--t-radius);
    box-shadow: var(--t-shadow-lg);
    overflow: hidden;
}

/* Document header -------------------------------------------------------- */

.trip-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    padding: 26px 28px;
    border-bottom: 2px solid var(--t-navy);
}

.trip-head__brand {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--t-muted);
    margin: 0 0 4px;
}

.trip-head h1 { font-size: 26px; font-weight: 700; }

/* Wide carrier artwork (150x50) — shown at its natural aspect ratio. */
.trip-head__logo img {
    max-height: 50px;
    max-width: 170px;
    width: auto;
    object-fit: contain;
}

/* Reference band --------------------------------------------------------- */

.trip-ref {
    padding: 22px 28px;
    border-bottom: 1px solid var(--t-border);
}

.trip-ref h2 { font-size: 18px; font-weight: 600; margin: 0 0 10px; }
.trip-ref h2 strong { font-weight: 800; letter-spacing: .04em; }

.trip-ref__intro { color: var(--t-muted); font-size: 14px; }
.trip-ref__intro strong { color: var(--t-ink); display: block; margin-bottom: 2px; }

.trip-ref__facts {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 32px;
    margin-top: 16px;
}

.trip-ref__facts div { min-width: 140px; }

.trip-ref__facts small {
    display: block;
    font-size: 11px;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--t-faint);
    margin-bottom: 2px;
}

.trip-ref__facts strong { font-size: 15px; color: var(--t-ink); }

.trip-status { display: inline-flex; align-items: center; gap: 7px; }

.trip-status::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--t-muted);
}

.trip-status.is-ok::before      { background: var(--t-success); }
.trip-status.is-bad::before     { background: var(--t-danger); }
.trip-status.is-pending::before { background: var(--t-amber); }

.trip-status.is-ok      { color: var(--t-success); }
.trip-status.is-bad     { color: var(--t-danger); }
.trip-status.is-pending { color: var(--t-amber); }

/* Section ---------------------------------------------------------------- */

.trip-section {
    padding: 26px 28px;
    border-bottom: 1px solid var(--t-border);
}

.trip-section:last-child { border-bottom: 0; }

.trip-section__title { font-size: 26px; font-weight: 700; margin: 0 0 4px; }

.trip-eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--t-muted);
    margin: 0 0 8px;
}

/* Route line ------------------------------------------------------------- */

.trip-route {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 6px 14px;
    margin: 10px 0 16px;
}

.trip-route__city {
    font-family: var(--t-ff-display);
    font-size: 28px;
    font-weight: 700;
    color: var(--t-navy);
    line-height: 1.15;
}

.trip-route__arrow {
    color: var(--t-blue);
    font-size: 22px;
    line-height: 1;
    transform: translateY(-2px);
}

.trip-route__date {
    margin-left: auto;
    font-size: 13px;
    color: var(--t-muted);
    white-space: nowrap;
}

/* Passenger table -------------------------------------------------------- */

.trip-table { width: 100%; }

.trip-table__row {
    display: grid;
    grid-template-columns:
        minmax(150px, 1.5fr)  /* passenger   */
        minmax(115px, 1fr)    /* e-ticket    */
        minmax(85px, .8fr)    /* airline pnr */
        minmax(80px, .7fr)    /* class       */
        minmax(130px, 1.2fr); /* 2d barcode  */
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid var(--t-hairline);
    align-items: start;
}

.trip-table__row:last-child { border-bottom: 0; }

.trip-table__row--head {
    border-top: 1px solid var(--t-border);
    border-bottom: 1px solid var(--t-border);
    padding: 10px 0;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--t-navy);
}

/* Second and subsequent directions in the passenger-details section need
   breathing room from the table above them. */
.trip-table + .trip-route { margin-top: 28px; }

.trip-table__row span { font-size: 14px; color: var(--t-muted); }
.trip-table__row strong { color: var(--t-ink); font-weight: 600; }
.trip-table__stack { display: block; }
.trip-table__stack + .trip-table__stack { margin-top: 2px; }
.trip-pending { color: var(--t-faint); font-style: italic; }

/* Pure black on white — scanners need the contrast, so this one element does
   NOT follow the palette. White padding supplies part of the quiet zone. */
.trip-barcode {
    display: block;
    width: 100%;
    max-width: 150px;
    height: 34px;
    fill: #000;
    background: #fff;
    padding: 2px;
}

/* Flight card ------------------------------------------------------------ */

.trip-flight {
    border: 1px solid var(--t-border);
    border-radius: var(--t-radius);
    padding: 20px 22px;
    background: var(--t-surface);
}

.trip-flight + .trip-flight { margin-top: 18px; }

.trip-seg {
    display: grid;
    grid-template-columns: 1fr 118px 1fr 200px 118px;
    gap: 18px;
    align-items: start;
    padding-top: 16px;
    border-top: 1px solid var(--t-border);
}

.trip-seg__head {
    display: grid;
    grid-template-columns: 1fr 118px 1fr 200px 118px;
    gap: 18px;
    padding-bottom: 10px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--t-navy);
}

.trip-point__date {
    display: block;
    font-size: 12px;
    color: var(--t-muted);
    margin-bottom: 6px;
}

.trip-point__time {
    font-family: var(--t-ff-display);
    font-size: 34px;
    font-weight: 300;
    color: var(--t-ink);
    line-height: 1;
    margin-bottom: 6px;
}

.trip-point__code {
    font-family: var(--t-ff-display);
    font-size: 17px;
    font-weight: 700;
    color: var(--t-navy);
    display: block;
    margin-bottom: 6px;
}

.trip-point__place { font-size: 13px; color: var(--t-muted); display: block; }

.trip-point__terminal {
    font-size: 12px;
    color: var(--t-faint);
    display: block;
    margin-top: 2px;
}

/* Departure-to-arrival connector. Carries no duration label, so it is aligned
   on the large time rather than sitting above it. */
.trip-seg__dur {
    text-align: center;
    padding-top: 42px;
    font-size: 13px;
    color: var(--t-muted);
}

.trip-seg__dur .bar {
    display: block;
    height: 2px;
    background: var(--t-blue-100);
    border-radius: 2px;
    margin: 0;
    position: relative;
}

.trip-seg__dur .bar::after {
    content: "";
    position: absolute;
    right: -1px;
    top: -3px;
    border-left: 7px solid var(--t-blue);
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
}

.trip-seg__airline {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 13px;
    color: var(--t-muted);
    padding-top: 22px;
}

/* Square carrier artwork (100x100) — fixed box so every airline's badge lines
   up regardless of how much padding its source image carries. */
.trip-seg__airline img {
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    object-fit: contain;
    border-radius: 4px;
}

.trip-seg__airline strong { display: block; color: var(--t-ink); font-weight: 600; }

.trip-seg__cabin { padding-top: 22px; font-size: 13px; color: var(--t-muted); }

.trip-seg__cabin strong {
    display: inline-block;
    background: var(--t-blue-50);
    color: var(--t-navy);
    border-radius: 999px;
    padding: 3px 11px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .02em;
}

.trip-conn {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 18px 0 2px;
    font-size: 12.5px;
    color: var(--t-muted);
}

.trip-conn::before,
.trip-conn::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--t-border);
}

/* Contact + info --------------------------------------------------------- */

.trip-contact { display: flex; flex-wrap: wrap; gap: 10px 40px; }
.trip-contact div { min-width: 200px; }

.trip-contact small {
    display: block;
    font-size: 11px;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--t-faint);
    margin-bottom: 2px;
}

.trip-info { font-size: 13.5px; color: var(--t-muted); }
.trip-info h3 { font-size: 17px; margin-bottom: 10px; }

.trip-baggage {
    margin: 12px 0 0;
    padding: 0;
    list-style: none;
    font-size: 13.5px;
    color: var(--t-muted);
}

.trip-baggage li {
    position: relative;
    padding: 7px 0 7px 20px;
    border-bottom: 1px solid var(--t-hairline);
}

.trip-baggage li:last-child { border-bottom: 0; }

.trip-baggage li::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 15px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--t-blue);
}

.trip-baggage strong { color: var(--t-ink); font-weight: 600; }

.trip-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

/* Buttons ---------------------------------------------------------------- */

.trip-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--t-ff);
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
    padding: 13px 22px;
    border-radius: 10px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease, color .15s ease;
}

.trip-btn:hover { text-decoration: none; }

.trip-btn--primary { background: var(--t-blue); color: #fff; }
.trip-btn--primary:hover { background: var(--t-navy-700); color: #fff; }

.trip-btn--ghost {
    background: transparent;
    color: var(--t-navy);
    border-color: var(--t-border);
}

.trip-btn--ghost:hover { background: var(--t-blue-50); color: var(--t-navy); }

.trip-btn--block { width: 100%; }

/* Lookup form ------------------------------------------------------------ */

.trip-lookup {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 16px;
}

.trip-lookup__card {
    width: 100%;
    max-width: 460px;
    background: var(--t-surface);
    border-radius: var(--t-radius);
    box-shadow: var(--t-shadow-lg);
    padding: 34px 30px;
}

.trip-lookup__logo { margin-bottom: 22px; }
.trip-lookup__logo img { max-height: 48px; width: auto; }

.trip-lookup h1 { font-size: 25px; font-weight: 700; margin-bottom: 6px; }
.trip-lookup__sub { color: var(--t-muted); font-size: 14px; margin-bottom: 24px; }

.trip-field { margin-bottom: 16px; }

.trip-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--t-navy);
    margin-bottom: 6px;
}

.trip-field input {
    width: 100%;
    font-family: var(--t-ff);
    font-size: 15px;
    color: var(--t-ink);
    background: var(--t-surface);
    border: 1px solid var(--t-border);
    border-radius: 10px;
    padding: 12px 14px;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.trip-field input:focus {
    outline: none;
    border-color: var(--t-blue);
    box-shadow: 0 0 0 3px rgba(30, 107, 230, .14);
}

.trip-field input::placeholder { color: var(--t-faint); }

.trip-field--ref input {
    text-transform: uppercase;
    letter-spacing: .12em;
    font-weight: 600;
}

/* The hint reads as a hint, not as a reference already typed in. */
.trip-field--ref input::placeholder {
    text-transform: none;
    letter-spacing: normal;
    font-weight: 400;
}

.trip-error { display: block; color: var(--t-danger); font-size: 12.5px; margin-top: 5px; }

.trip-alert {
    background: #FEF2F2;
    border: 1px solid #FECACA;
    color: #991B1B;
    border-radius: var(--t-radius-sm);
    padding: 12px 14px;
    font-size: 13.5px;
    margin-bottom: 18px;
}

.trip-alert ul { margin: 0; padding-left: 18px; }
.trip-alert li { margin: 2px 0; }

.trip-lookup__help {
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid var(--t-hairline);
    font-size: 13px;
    color: var(--t-muted);
}

.trip-lookup__help strong { color: var(--t-navy); }

/* Responsive ------------------------------------------------------------- */

@media (max-width: 860px) {
    .trip-seg,
    .trip-seg__head { grid-template-columns: 1fr 90px 1fr; }
    .trip-seg__airline,
    .trip-seg__cabin { grid-column: 1 / -1; padding-top: 4px; }
    .trip-seg__head span:nth-child(4),
    .trip-seg__head span:nth-child(5) { display: none; }
    .trip-point__time { font-size: 28px; }
    .trip-route__city { font-size: 23px; }
    .trip-route__date { margin-left: 0; width: 100%; }
}

@media (max-width: 620px) {
    .trip-shell { padding: 16px 10px 40px; }
    .trip-head, .trip-ref, .trip-section { padding-left: 18px; padding-right: 18px; }
    .trip-section__title { font-size: 21px; }
    .trip-flight { padding: 16px 14px; }

    .trip-table__row { grid-template-columns: 1fr 1fr; gap: 8px 14px; }
    .trip-table__row--head { display: none; }
    .trip-table__row span::before {
        content: attr(data-label);
        display: block;
        font-size: 10.5px;
        letter-spacing: .06em;
        text-transform: uppercase;
        color: var(--t-faint);
        margin-bottom: 1px;
    }

    .trip-seg,
    .trip-seg__head { grid-template-columns: 1fr; gap: 10px; }
    .trip-seg__head { display: none; }
    .trip-seg__dur { text-align: left; padding-top: 0; }
    .trip-seg__dur .bar { max-width: 120px; }
    .trip-seg__airline { padding-top: 0; }

    /* Drop the flanking rules so the label wraps instead of being squeezed. */
    .trip-conn { display: block; text-align: center; }
    .trip-conn::before,
    .trip-conn::after { display: none; }
}

/* Print — the summary is meant to be kept -------------------------------- */

@media print {
    .trip-body { background: #fff; }
    .trip-shell { max-width: none; padding: 0; }
    .trip-doc { box-shadow: none; border-radius: 0; }
    .trip-actions, .trip-no-print { display: none !important; }
    .trip-flight { break-inside: avoid; page-break-inside: avoid; }
    .trip-section { break-inside: avoid; page-break-inside: avoid; }
}
