/* ===================================================================
   FLIGHT DETAILS — refined boarding-pass redesign
   Prefix: .ft-   (self-contained; safe to append to summit.css or
   enqueue as its own stylesheet AFTER summit.css)

   Uses the theme's existing CSS custom properties (--cream, --coral,
   --teal, --dark-teal, --border, --white, --brown, --brown-soft, --faint,
   --teal-tint, --coral-tint). All are already defined in summit.css :root.
   Fonts used: "Fredoka", "Nunito", "Space Mono" — see README for enqueue.
   =================================================================== */

/* ---- shared eyebrow / note / section head ---- */
.ft-eyebrow {
    margin: 0 0 12px 4px;
    color: var(--teal);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 3px;
    text-transform: uppercase;
}
.ft-note {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 16px;
    padding: 12px 16px;
    border-left: 4px solid var(--sun);
    border-radius: 0 12px 12px 0;
    background: #fdf6e6;
}
.ft-note__tag {
    flex: none;
    margin-top: 2px;
    font-family: "Space Mono", monospace;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: #c98a1e;
}
.ft-note p {
    margin: 0;
    color: var(--brown-soft);
    font-size: 13.5px;
    line-height: 1.5;
    font-weight: 600;
}
.ft-section-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 12px;
    margin: 38px 0 18px;
    scroll-margin-top: 84px;
}
.ft-section-head h2 {
    margin: 0;
    font-family: "Fredoka", sans-serif;
    font-size: clamp(30px, 4.6vw, 42px);
    font-weight: 500;
    color: var(--brown);
}
.ft-section-head span {
    color: var(--faint);
    font-size: 14px;
    font-weight: 700;
}

/* ===================================================================
   BOARDING PASS (personal)
   =================================================================== */
.ft-pass {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    border-radius: 28px;
    overflow: hidden;
    background: var(--white);
    box-shadow: 0 22px 50px rgba(120, 90, 40, .20);
}
.ft-pass__main {
    flex: 1 1 480px;
    padding: clamp(22px, 3vw, 34px);
}
.ft-pass__brandrow {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.ft-pass__brand {
    display: flex;
    align-items: center;
    gap: 12px;
}
.ft-pass__brand-icon {
    width: 46px;
    height: 46px;
    border-radius: 13px;
    background: var(--teal-tint);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 23px;
    color: var(--teal);
}
.ft-pass__brand-name {
    font-family: "Fredoka", sans-serif;
    font-weight: 600;
    font-size: 19px;
    letter-spacing: 1px;
    color: var(--coral);
}
.ft-pass__brand-sub {
    font-family: "Space Mono", monospace;
    font-size: 10.5px;
    letter-spacing: 1.5px;
    color: var(--faint);
}
.ft-pass__badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 15px;
    border: 1.5px solid var(--border);
    border-radius: 999px;
    font-family: "Space Mono", monospace;
    font-size: 11px;
    letter-spacing: 1px;
    color: var(--brown-soft);
}

/* route */
.ft-route {
    display: flex;
    align-items: flex-end;
    gap: 16px;
    margin-top: 26px;
}
.ft-route__port--to { text-align: right; }
.ft-route__code {
    font-family: "Fredoka", sans-serif;
    font-weight: 600;
    font-size: clamp(42px, 6vw, 58px);
    line-height: .9;
}
.ft-route__code--from { color: var(--teal); }
.ft-route__code--to { color: var(--coral); }
.ft-route__city {
    font-family: "Space Mono", monospace;
    font-size: 11px;
    letter-spacing: 2px;
    color: var(--faint);
    margin-top: 4px;
}
.ft-route__line {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 7px;
    padding-bottom: 20px;
}
.ft-route__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex: none;
}
.ft-route__dot--from { background: var(--teal); }
.ft-route__dot--to { background: var(--coral); }
.ft-route__dash {
    flex: 1;
    border-top: 2px dashed #d8c7a6;
}
.ft-route__plane {
    font-size: 20px;
    color: var(--coral);
}

/* legs */
.ft-legs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
    margin-top: 24px;
}
.ft-leg {
    padding: 16px 18px;
    border-radius: 16px;
    background: #fff8eb;
    border: 1px solid #f0e6d2;
}
.ft-leg__label {
    font-family: "Space Mono", monospace;
    font-size: 10px;
    letter-spacing: 1.5px;
    color: var(--faint);
}
.ft-leg__time {
    font-family: "Fredoka", sans-serif;
    font-weight: 600;
    font-size: 26px;
    color: var(--brown);
    margin-top: 5px;
    line-height: 1;
}
.ft-leg__route {
    font-size: 12.5px;
    color: var(--brown-soft);
    font-weight: 700;
    margin-top: 5px;
}
.ft-leg__flightno {
    font-family: "Space Mono", monospace;
    font-size: 11px;
    color: var(--teal);
    margin-top: 3px;
}

/* companions */
.ft-companions {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid #f0e6d2;
    flex-wrap: wrap;
}
.ft-companions__avatars {
    display: flex;
    padding-left: 8px;
}
.ft-avatar {
    width: 34px;
    height: 34px;
    margin-left: -8px;
    border-radius: 50%;
    border: 2px solid var(--white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 800;
}
.ft-avatar--dark { background: var(--dark-teal); color: #fff; }
.ft-avatar--more { background: var(--teal-tint); color: var(--dark-teal); font-size: 10px; }
.ft-companions__text {
    font-size: 13.5px;
    color: var(--brown-soft);
    font-weight: 600;
}
.ft-companions__text b { color: var(--brown); }
.ft-companions__text a {
    color: var(--teal);
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}

/* stub */
.ft-pass__stub {
    flex: 0 0 300px;
    position: relative;
    padding: clamp(22px, 3vw, 30px);
    background: var(--dark-teal);
    color: #eafaf8;
    border-left: 2px dashed rgba(234, 250, 248, .35);
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.ft-pass__stub::before,
.ft-pass__stub::after {
    content: "";
    position: absolute;
    left: -15px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--cream);
}
.ft-pass__stub::before { top: -14px; }
.ft-pass__stub::after { bottom: -14px; }
.ft-stub__label {
    font-family: "Space Mono", monospace;
    font-size: 10px;
    letter-spacing: 2px;
    color: #7fc3bd;
}
.ft-stub__team {
    font-family: "Fredoka", sans-serif;
    font-weight: 600;
    font-size: 38px;
    line-height: 1;
    color: #fff;
    margin-top: 4px;
}
.ft-stub__name {
    font-size: 14px;
    font-weight: 700;
    color: #cdeae7;
    margin-top: 4px;
}
.ft-stub__fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 12px;
}
.ft-stub__field-label {
    font-family: "Space Mono", monospace;
    font-size: 9px;
    letter-spacing: 1.5px;
    color: #7fc3bd;
}
.ft-stub__field-value {
    font-family: "Space Mono", monospace;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
}
.ft-stub__foot { margin-top: auto; }
.ft-stub__barcode-box {
    background: #eafaf8;
    border-radius: 7px;
    padding: 9px 10px;
}
.ft-stub__barcode {
    height: 36px;
    background: repeating-linear-gradient(90deg, var(--dark-teal) 0 2px, transparent 2px 4px, var(--dark-teal) 4px 5px, transparent 5px 8px, var(--dark-teal) 8px 11px, transparent 11px 13px);
}
.ft-stub__code {
    font-family: "Space Mono", monospace;
    font-size: 10px;
    letter-spacing: 2px;
    color: #7fc3bd;
    text-align: center;
    margin-top: 8px;
}

/* ===================================================================
   FIND YOUR FLIGHT
   =================================================================== */
.ft-find {
    margin-top: 26px;
    padding: clamp(22px, 3vw, 32px);
    border-radius: 24px;
    background: rgba(255, 253, 248, .96);
    box-shadow: 0 14px 34px rgba(120, 90, 40, .14);
}
.ft-find__eyebrow {
    font-family: "Space Mono", monospace;
    font-size: 11px;
    letter-spacing: 2px;
    color: var(--teal);
    font-weight: 700;
}
.ft-find__title {
    font-family: "Fredoka", sans-serif;
    font-size: clamp(24px, 3.4vw, 30px);
    font-weight: 500;
    color: var(--brown);
    margin-top: 4px;
}
.ft-find__field {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 52px;
    margin-top: 16px;
    border: 1.5px solid var(--border);
    border-radius: 16px;
    padding: 0 16px;
    background: var(--white);
    max-width: 460px;
}
.ft-find__field:focus-within { border-color: var(--teal); }
.ft-find__icon { color: var(--faint); font-size: 16px; flex: none; }
.ft-find__field input {
    flex: 1;
    min-width: 0;
    border: 0;
    background: transparent;
    outline: none;
    font: 600 15px "Nunito", sans-serif;
    color: var(--brown);
}
.ft-find__hint {
    color: var(--faint);
    font-size: 13px;
    font-weight: 600;
    margin-top: 12px;
}
.ft-find__results:empty { display: none; }
.ft-find__results { margin-top: 16px; }
.ft-find__list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.ft-find__row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border: 1.5px solid #f0e6d2;
    border-radius: 16px;
    background: var(--white);
    flex-wrap: wrap;
}
.ft-find__row-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--dark-teal);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 800;
    flex: none;
}
.ft-find__row-info { flex: 1 1 160px; }
.ft-find__row-name {
    font-family: "Fredoka", sans-serif;
    font-size: 19px;
    font-weight: 500;
    color: var(--brown);
}
.ft-find__row-sub {
    font-size: 12.5px;
    color: var(--faint);
    font-weight: 600;
}
.ft-find__row-team {
    padding: 6px 13px;
    border-radius: 999px;
    background: var(--coral-tint);
    color: var(--deep-coral, #c43f29);
    font-size: 12px;
    font-weight: 800;
}
.ft-find__nomatch {
    border: 1.5px solid #f0a99c;
    border-radius: 16px;
    background: #fdf3f1;
    padding: 20px;
    text-align: center;
}
.ft-find__nomatch strong {
    display: block;
    font-family: "Fredoka", sans-serif;
    font-size: 20px;
    font-weight: 500;
    color: #c2502f;
}
.ft-find__nomatch p {
    margin: 4px 0 0;
    color: #9a8f80;
    font-size: 13px;
    font-weight: 600;
}
.ft-find__clear {
    margin-top: 12px;
    border: 0;
    background: transparent;
    color: var(--teal);
    font: 800 13px "Nunito", sans-serif;
    cursor: pointer;
    padding: 0;
}

/* ===================================================================
   TEAM CARDS
   =================================================================== */
.ft-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
    gap: 20px;
    align-items: start;
}
.ft-card {
    border-radius: 22px;
    background: var(--white);
    box-shadow: 0 14px 34px rgba(120, 90, 40, .14);
    overflow: hidden;
}
.ft-card__accent { height: 4px; background: var(--coral); }
.ft-card__body { padding: 24px; }
.ft-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.ft-card__title-wrap {
    display: flex;
    align-items: center;
    gap: 13px;
}
.ft-card__icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--coral);
}
.ft-card__title {
    font-family: "Fredoka", sans-serif;
    font-size: 28px;
    font-weight: 500;
    line-height: 1;
    color: var(--brown);
}
.ft-card__sub {
    font-size: 13px;
    color: var(--brown-soft);
    font-weight: 700;
    margin-top: 3px;
}
.ft-card__stamp {
    flex: none;
    padding: 5px 11px;
    border-radius: 999px;
    background: var(--coral);
    color: #fff;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 1.2px;
}
.ft-card__route {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 18px 0;
}
.ft-card__code {
    font-family: "Fredoka", sans-serif;
    font-weight: 600;
    font-size: 16px;
}
.ft-card__code--from { color: var(--teal); }
.ft-card__code--to { color: var(--coral); }
.ft-card__dash { flex: 1; border-top: 2px dashed var(--border); }
.ft-card__plane { font-size: 14px; color: var(--coral); }
.ft-card__legs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.ft-card__leg {
    padding: 12px 14px;
    border-radius: 13px;
    background: #fff8eb;
    border: 1px solid #f0e6d2;
}
.ft-card__leg-label {
    font-family: "Space Mono", monospace;
    font-size: 9.5px;
    letter-spacing: 1px;
    color: var(--faint);
}
.ft-card__leg-time {
    font-family: "Fredoka", sans-serif;
    font-size: 18px;
    font-weight: 500;
    color: var(--brown);
    margin-top: 3px;
}
.ft-card__lead {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    padding: 8px 14px;
    border-radius: 14px;
    background: var(--teal-tint);
    color: var(--teal);
    font-size: 13px;
    font-weight: 800;
}
.ft-card__toggle {
    width: 100%;
    margin-top: 16px;
    height: 46px;
    border: 1.5px solid var(--border);
    border-radius: 14px;
    background: var(--white);
    color: var(--brown-soft);
    font: 800 14px "Nunito", sans-serif;
    cursor: pointer;
    transition: border-color .15s ease, color .15s ease;
}
.ft-card__toggle:hover { border-color: var(--teal); color: var(--teal); }

/* collapsed by default */
.ft-card__roster { display: none; margin-top: 16px; padding-top: 16px; border-top: 1px solid #f0e6d2; }
.ft-card.is-roster-open .ft-card__roster { display: block; }

.ft-card__filter {
    width: 100%;
    height: 44px;
    border: 1.5px solid var(--border);
    border-radius: 12px;
    padding: 0 14px;
    background: var(--white);
    font: 600 14px "Nunito", sans-serif;
    color: var(--brown);
    outline: none;
}
.ft-card__filter:focus { border-color: var(--teal); }
.ft-card__count {
    font-family: "Space Mono", monospace;
    font-size: 11px;
    color: var(--faint);
    margin-top: 8px;
}
.ft-card__count:empty { display: none; }
.ft-card__pax-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 8px;
    margin-top: 12px;
}
.ft-pax {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px 10px;
    border-radius: 12px;
    background: #fff8eb;
}
.ft-pax__avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--dark-teal);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 800;
    flex: none;
}
.ft-pax__name {
    font-size: 13px;
    font-weight: 700;
    color: var(--brown);
    line-height: 1.15;
}
.ft-pax.is-you {
    background: var(--coral-tint);
    border: 1px solid #f3b7ab;
}
.ft-pax.is-you .ft-pax__avatar { background: var(--coral); }
.ft-pax.is-you .ft-pax__name { color: var(--deep-coral, #c43f29); font-weight: 800; }

/* ---- responsive ---- */
@media (max-width: 640px) {
    .ft-pass__stub {
        flex-basis: 100%;
        border-left: 0;
        border-top: 2px dashed rgba(234, 250, 248, .35);
    }
    .ft-pass__stub::before,
    .ft-pass__stub::after { display: none; }
}
@media (max-width: 560px) {
    .ft-grid { grid-template-columns: 1fr; }
}
