/* ============================================================
   Cargolux Tracking Page — tracking.css
   ============================================================ */


.trk-summary-item{
    margin-top: 0;
}
.content-main *{line-height: 1.5-1.7;letter-spacing: 0.01em;word-spacing: 0.05em;font-variant-ligatures: common-ligatures;-webkit-font-smoothing: subpixel-antialiased;-webkit-font-smoothing: antialiased;-webkit-font-smoothing: antialiased;-webkit-font-smoothing: subpixel-antialiased;text-rendering: optimizeLegibility;-moz-osx-font-smoothing: grayscale;font-smooth: always;margin-top: 0;}
/* ------------------------------------------------------------------ */
/* Hero Banner                                                          */
/* ------------------------------------------------------------------ */
.trk-hero {
    position: relative;
    min-height: 420px;
    display: flex;
    align-items: flex-end;
    background: #0c0c0c;
    overflow: hidden;
}
.trk-hero-bg {
    position: absolute;
    inset: 0;
    background-image: url('../_resources/www.cargolux.com/media/vltklslx/cover_cv_website_2026_q9c2ec3.jpg');
    background-size: cover;
    background-position: center 35%;
    opacity: 0.6;
    background-color: #0c0c0c;
}
.trk-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(12,12,12,0.15) 0%, rgba(12,12,12,0.72) 100%);
}
.trk-hero-content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 56px 24px 48px;
}
.trk-hero-eyebrow {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #fff;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.35);
    padding: 4px 12px;
    margin-bottom: 18px;
    margin-top: 30px;
    border-radius: 2px;
}
.trk-hero-title {
    font-size: clamp(2rem, 4.5vw, 3.25rem);
    font-weight: 700;
    color: #fff;
    line-height: 1.08;
    margin: 0 0 10px;
    letter-spacing: -0.01em;
}
.trk-hero-subtitle {
    font-size: 15px;
    color: rgba(255,255,255,0.88);
    margin: 0 0 24px;
    max-width: 540px;
    line-height: 1.55;
}

/* ------------------------------------------------------------------ */
/* Search Card                                                          */
/* ------------------------------------------------------------------ */
.trk-search-card {
    background: #fff;
    padding: 20px 24px 18px;
    display: inline-flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    max-width: 600px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.35);
}
.trk-search-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #888;
    margin: 0;
}

/* Row: input group + button */
.trk-search-row {
    display: flex;
    gap: 0;
    align-items: stretch;
}

/* Prefix badge + text input fused together */
.trk-input-group {
    flex: 1;
    display: flex;
    align-items: stretch;
    border: 2px solid #d0d0d0;
    background: #fff;
    transition: border-color 0.18s;
    min-width: 0;
    height: 40px;
}
.trk-input-group:focus-within {
    border-color: #ba0c2f;
}
.trk-prefix-badge {
    display: flex;
    align-items: center;
    padding: 0 13px;
    background: #f2f2f2;
    color: #333;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.04em;
    white-space: nowrap;
    border-right: 2px solid #d0d0d0;
    user-select: none;
    flex-shrink: 0;
    cursor: default;
}
.trk-search-input {
    flex: 1;
    height: 40px;
    padding: 0 14px;
    font-size: 15px;
    border: none;
    outline: none;
    font-family: inherit;
    color: #0c0c0c;
    background: transparent;
    min-width: 0;
    border-radius: 0;
    -webkit-appearance: none;
    appearance: none;
    letter-spacing: 0.06em;
}
.trk-search-input::placeholder {
    color: #bbb;
    letter-spacing: 0.04em;
}
.trk-search-btn {
    height: 44px;
    padding: 0 22px;
    background: #ba0c2f;
    color: #fff;
    border: none;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.18s;
    white-space: nowrap;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border-radius: 0;
    margin-left: 2px;
    margin-top: 0px;
}
.trk-search-btn:hover,
.trk-search-btn:focus {
    background: #9a0a27;
    outline: none;
}
.trk-search-hint {
    font-size: 11px;
    color: #999;
    margin: 0;
    line-height: 1.5;
}

/* ------------------------------------------------------------------ */
/* Error / message banner                                               */
/* ------------------------------------------------------------------ */
.trk-message {
    padding: 10px 14px;
    font-size: 0.85rem;
    border-left: 3px solid #ba0c2f;
    background: #fff1f3;
    color: #7a0a22;
    line-height: 1.5;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

/* ------------------------------------------------------------------ */
/* Info Cards Section (search page)                                     */
/* ------------------------------------------------------------------ */
.trk-info-section {
    background: #f5f5f5;
    padding: 72px 24px;
}
.trk-info-inner {
    max-width: 1200px;
    margin: 0 auto;
}
.trk-info-eyebrow {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #ba0c2f;
    margin: 0 0 36px;
    display: block;
}
.trk-info-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: #e0e0e0;
}
.trk-info-card {
    background: #fff;
    padding: 32px 28px;
    border-top: 3px solid transparent;
    transition: border-color 0.25s, box-shadow 0.25s;
}
.trk-info-card:hover {
    border-color: #ba0c2f;
    box-shadow: 0 4px 24px rgba(0,0,0,0.07);
}
.trk-info-card-icon {
    width: 36px;
    height: 36px;
    margin-bottom: 18px;
    fill: #ba0c2f;
}
.trk-info-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: #0c0c0c;
    margin: 0 0 10px;
}
.trk-info-card-desc {
    font-size: 0.875rem;
    color: #666;
    line-height: 1.65;
    margin: 0;
}
.trk-info-card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 18px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #ba0c2f;
    text-decoration: none;
}
.trk-info-card-link:hover { text-decoration: underline; }
.trk-info-card-link svg {
    width: 14px; height: 14px;
    fill: none; stroke: currentColor; stroke-width: 1.5;
}

/* ================================================================== */
/* RESULTS PAGE STYLES (prompt2)                                        */
/* ================================================================== */

/* Page wrap */
.trk-wrap {
    max-width: 1320px;
    margin: 0 auto;
    padding: 36px 0px 20px;
}
/* Info panels grid (above AWB document) */
.trk-panels-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

/* ================================================================== */
/* Main results layout: info col (left) + AWB doc (right)              */
/* ================================================================== */
.trk-main-layout {
    display: flex;
    gap: 25px;
    align-items: flex-start;
}

/* Left info column */
.trk-info-col {
    flex: 0 0 460px;
    max-width: 480px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* 2-col pairs grid inside info column */
.trk-pairs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
.trk-card-placeholder {
    /* empty cell to maintain grid alignment when a conditional card is absent */
    display: block;
}

/* AWB scroll hint bar */
.trk-awb-scroll-hint {
    font-size: 14px;
    color: #888;
    padding: 5px 18px;
    background: #fafafa;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 0;
}

/* AWB inner: always scrollable horizontally */
.trk-awb-inner {
    padding: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-top: 0;
}
/* Top action bar */
.trk-result-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 4px;
    margin-top: 50px;
}
.trk-result-topbar h1 {
    font-size: 1.45rem;
    font-weight: 700;
    color: #0c0c0c;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.trk-awb-badge {
    font-size: 0.85rem;
    background: #f0f0f0;
    color: #555;
    padding: 4px 12px;
    border-radius: 20px;
    font-family: monospace;
    letter-spacing: 0.06em;
    font-weight: 600;
}
.trk-action-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.trk-btn {
    padding: 8px 16px;
    background: #0c0c0c;
    color: #fff;
    border: none;
    border-radius: 3px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    font-family: inherit;
    white-space: nowrap;
    line-height: normal;
    letter-spacing: 0.04em;
}
.trk-btn:hover { background: #ba0c2f; color: #fff; }
.trk-btn-ghost {
    background: transparent;
    border: 1px solid #ccc;
    color: #444;
}
.trk-btn-ghost:hover { border-color: #ba0c2f; color: #ba0c2f; background: transparent; }

/* Summary strip */
.trk-summary {
    background: #0c0c0c;
    color: #fff;
    border-radius: 4px;
    padding: 20px 28px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px 32px;
    align-items: center;
    margin-bottom: 20px;
}
.trk-summary-item label {
    display: block;
    font-size: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.8px;
    color: rgba(255,255,255,0.45);
    margin-bottom: 3px;
}
.trk-summary-item .sv {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
}

/* Generic card */
.trk-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    overflow: hidden;
    margin-top: 0;
}
.trk-card-header {
    background: #f5f5f5;
    border-bottom: 1px solid #e5e5e5;
    padding: 5px 11px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.trk-card-header h3 {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #000;
    margin: 0;
    font-weight: 600;
}
.trk-card-icon {color: #ba0c2f;font-size: 12px;}
.trk-card-body {padding: 0px 10px;}
.trk-card-body p { font-size: 0.95rem; color: #555; line-height: 1.7; }

/* Field label helper */
.trk-field-lbl {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #999;
}

/* Divider */
.trk-divider {
    height: 1px;
    background: #ebebeb;
    margin: 12px 0;
}
.trk-field {margin-top: 0;}
/* Data grid */
.trk-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 3px 11px;
}
/* Fixed 2-column grid — never collapses regardless of screen width */
.trk-grid-2col {
    grid-template-columns: 1fr 1fr !important;
}
.trk-field label {
    display: block;
    font-size: 0.66rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #999;
    margin-bottom: 3px;
}
.trk-field .fv {
    font-size: 0.95rem;
    color: #0c0c0c;
    font-weight: 500;
    white-space: pre-line;
    margin-top: 0;
    margin-bottom: 5px;
}

/* Flight route visual */
.trk-route {
    display: flex;
    align-items: center;
    padding: 10px 0px;
    background: #fff;
    flex-wrap: wrap;
    gap: 4px;
}
.trk-route-airport {text-align: center;min-width: 57px;margin-top: 0;}
.trk-route-airport .iata {
    font-size: 1.6rem;
    font-weight: 700;
    color: #0c0c0c;
    font-family: monospace;
}
.trk-route-arrow {
    flex: 1;
    min-width: 40px;
    text-align: center;
    position: relative;
    padding: 0 6px;
    margin-top: 0;
    margin-top: -8px;
}
.trk-route-arrow::before {
    content: '';
    display: block;
    height: 2px;
    background: #e8e8e8;
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    margin-top: 4px;
}
.trk-route-arrow .flight-tag {
    background: #fff;
    position: relative;
    z-index: 1;
    display: inline-block;
    font-size: 0.82rem;
    color: #ba0c2f;
    font-weight: 700;
    padding: 0px 6px;
    border: 1px solid #f0d0d4;
    border-radius: 10px;
    white-space: nowrap;
    /* margin-top: -13px; */
}

/* Shipment timeline */
.trk-timeline {
    display: flex;
    align-items: flex-start;
    padding: 8px 0;
    position: relative;
}
.trk-timeline::before {
    content: '';
    position: absolute;
    top: 22px;
    left: 7px;
    right: 7px;
    height: 2px;
    background: #e5e5e5;
    z-index: 0;
}
.trk-tl-step {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 1;
    margin-top: 0;
}
.trk-tl-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #ddd;
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px #ddd;
    margin: 4px auto 6px;
}
.trk-tl-step.tl-done  .trk-tl-dot { background: #155724; box-shadow: 0 0 0 2px #155724; }
.trk-tl-step.tl-active .trk-tl-dot { background: #ba0c2f; box-shadow: 0 0 0 2px #ba0c2f; }
.trk-tl-lbl {
    font-size: 0.7rem;
    font-weight: 900;
    color: #bbb;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    line-height: 1.3;
}
.trk-tl-step.tl-done   .trk-tl-lbl { color: #155724; }
.trk-tl-step.tl-active .trk-tl-lbl { color: #ba0c2f; }

/* Two-column layout */
.trk-two-col {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 24px;
    align-items: start;
}
.trk-left-col { display: flex; flex-direction: column; gap: 18px; }

/* AWB template embed (right column) */
.trk-awb-embed {
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    overflow: hidden;
    background: #fff;
    position: sticky;
    top: 16px;
    margin-top: 0;
    width: 100%;
    max-width: 840px;
}
.trk-awb-embed-header {
    background: #f5f5f5;
    border-bottom: 1px solid #e5e5e5;
    padding: 6px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 0;
}
.trk-awb-embed-header h3 {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #000;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}
/* (trk-awb-inner defined in main-layout section above) */

/* ------------------------------------------------------------------ */
/* Print                                                                */
/* ------------------------------------------------------------------ */
@media print {
    @page {
        size: A4 portrait;
        margin: 10mm 14mm 10mm 10mm;
    }
    html, body { overflow: visible !important; padding: 0 !important; margin: 0 !important; }
    .site-canvas, .site-canvas-inner { padding: 0 !important; margin: 0 !important; max-width: 100% !important; overflow: visible !important; }
    .site-header, .site-footer,
    .trk-hero, .trk-result-topbar,
    .trk-action-row, .trk-search-card,
    .trk-info-section, .trk-summary,
    .trk-awb-scroll-hint,
    .trk-awb-embed-header { display: none !important; }
    .trk-main-layout { display: block !important; }
    .trk-info-col { display: none !important; }
    .trk-wrap { padding: 0 !important; max-width: 100% !important; width: 100% !important; }
    .trk-awb-embed { border: none !important; position: static !important; max-width: 100% !important; width: 100% !important; overflow: visible !important; }
    .trk-awb-inner { overflow: visible !important; }
    #awb-doc-frame { min-height: 100vh !important; width: 100% !important; }
}

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

/* Large desktop: shrink info col slightly */
@media (max-width: 1280px) {
    .trk-info-col { flex: 0 0 460px; max-width: 460px; }
}

/* Tablet landscape: stack main layout, AWB below */
@media (max-width: 1024px) {
    .trk-info-col { flex: 0 0 420px; max-width: 420px; }
    /* Summary strip: 4 columns on tablet */
    .trk-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px 16px; }
}

/* Tablet portrait + mobile: full stack */
@media (max-width: 900px) {
    .trk-main-layout { flex-direction: column; }
    .trk-info-col { flex: none; max-width: 100%; width: 100%; }
    .trk-awb-embed { max-width: 100%; width: 100%; position: static; }
    .trk-info-cards { grid-template-columns: repeat(2, 1fr); }
    .trk-panels-grid { grid-template-columns: 1fr; }
    /* Pairs grid stays 2-col on tablet portrait */
    .trk-pairs-grid { grid-template-columns: 1fr 1fr; }
    /* Summary strip: 3 columns on mobile/tablet */
    .trk-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px 14px; }
}
@media (max-width: 768px) {
    .trk-hero { min-height: 360px; }
    .trk-result-topbar { flex-direction: column; align-items: flex-start; }
    .trk-grid { grid-template-columns: 1fr 1fr; }
    .trk-wrap { padding: 24px 16px 48px; }
    /* Pairs grid: keep 2-col on mobile */
    .trk-pairs-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
}
@media (max-width: 600px) {
    .trk-hero { min-height: 300px; }
    .trk-hero-content { padding: 36px 16px 32px; }
    .trk-search-card { padding: 16px 14px 14px; max-width: 100%; }
    .trk-search-row { flex-direction: column; gap: 0; }
    .trk-input-group { width: 100%; border-bottom: none; }
    .trk-search-btn {
        width: 100%;
        justify-content: center;
        height: 44px;
        margin-left: 0;
        margin-top: 2px;
    }
    .trk-info-section { padding: 48px 16px; }
    .trk-info-cards { grid-template-columns: 1fr; }
    .trk-grid { grid-template-columns: 1fr; }
    .trk-tl-lbl { font-size: 0.6rem; }
    /* Summary: 3 columns on small mobile */
    .trk-summary { grid-template-columns: repeat(3, 1fr); }
    /* Pairs: 2-col on small mobile */
    .trk-pairs-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
}
@media (max-width: 480px) {
    .trk-hero-title { font-size: 1.7rem; }
    .trk-wrap { padding: 20px 12px 40px; }
}
