/* =================================================================
   Flight results + enquiry page styles — KNKP Travels replica
   (NEW pages, Phase 2 — these pages do not exist on the original,
   so there is no original stylesheet to copy; these rules sit on top
   of the site's own Bootstrap + theme CSS.)
   -----------------------------------------------------------------
   MANUAL CHANGE: colours, spacing and the card layout live here and
   nowhere else — edit this file to restyle result cards, the route
   bar, or the enquiry form without touching any original stylesheet.
   ================================================================= */

/* Route bar above the results (route, dates, travellers, Modify). */
#results-route {
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 12px 15px;
    margin-bottom: 15px;
    font-size: 15px;
}

/* Controls row: sort + stops filter + airline filter. */
.knkp-controls { margin-bottom: 15px; }
.knkp-controls label { font-weight: normal; margin-right: 15px; }
.knkp-controls select { margin-left: 5px; }

/* Result cards (Bootstrap panel + these rules). Price is the most
   prominent element, per the owner's price-only display rule. */
.knkp-card { margin-bottom: 15px; }
.knkp-card-airline { font-weight: bold; margin-bottom: 8px; }
.knkp-leg { margin-bottom: 10px; }
.knkp-leg-label { font-size: 12px; color: #777; text-transform: uppercase; }
.knkp-airline { font-size: 13px; color: #555; margin-top: 4px; }
.knkp-card-price { border-left: 1px solid #eee; }
.knkp-price { font-size: 26px; font-weight: bold; color: #337ab7; }
.knkp-per-person { font-size: 13px; color: #777; }
.knkp-total { font-size: 13px; margin: 6px 0 12px; }
.knkp-book-btn { min-width: 120px; }

/* Enquiry page: selected-flight summary box + form spacing. */
#knkp-selected-flight {
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 12px 15px;
    margin-bottom: 20px;
}
#knkp-selected-flight:empty { display: none; }
.knkp-enquiry-field { margin-bottom: 15px; }

/* =================================================================
   KNKP ORIGINAL RESULTS LAYOUT (2026-11-02 override + refinement)
   -----------------------------------------------------------------
   Orange MODIFY strip, dark-blue filter sidebar, airline matrix,
   sort tabs, KNKP row style, pagination, and the Complete booking
   page panels. Colours: KNKP orange #f58220, dark blue #123f6d.
   To restyle, edit here only — never the site's original CSS.
   ================================================================= */
.knkp-orange-strip { background: #f58220; padding: 12px 15px; margin-bottom: 15px; border-radius: 4px; color: #fff; }
.knkp-orange-strip label { font-weight: normal; margin-right: 12px; color: #fff; }
.knkp-strip-row1 { margin-bottom: 8px; }
.knkp-strip-row2 { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.knkp-strip-field { flex: 1 1 140px; min-width: 140px; }
.knkp-strip-field label { display: block; }
/* Date inputs carry a native calendar icon: give them room so the
   icon + date are never squeezed/clipped when the row wraps. */
.knkp-strip-field input[type="date"] { min-width: 150px; }
/* Travellers: three aligned rows (label left, input right), like the
   TripEchoes pax rows. The field keeps its own width so the rows
   never squeeze into a ragged stack. */
.knkp-strip-pax { flex: 0 1 250px; min-width: 235px; }
.knkp-strip-pax span { display: flex; justify-content: space-between; align-items: center; margin: 3px 0; }
.knkp-strip-pax input { width: 60px; flex: 0 0 60px; text-align: center; }
.knkp-strip-modify { flex: 0 0 auto; }
.knkp-filter-mobile-btn { display: none; margin-bottom: 10px; }
.knkp-sidebar { border: 1px solid #ddd; border-radius: 4px; margin-bottom: 15px; overflow: hidden; }
.knkp-filter-header { background: #123f6d; color: #fff; padding: 10px 12px; font-weight: bold; display: flex; justify-content: space-between; align-items: center; }
.knkp-filter-header button { background: none; border: none; color: #fff; font-size: 16px; }
.knkp-filter-collapsed #knkp-filter-body { display: none; }
#knkp-filter-body { padding: 12px; }
.knkp-filter-section { margin-bottom: 16px; }
.knkp-filter-section h4 { margin: 0 0 8px; font-size: 15px; }
.knkp-filter-section label { display: block; font-weight: normal; }
#knkp-price-label { margin-bottom: 6px; font-weight: bold; }
#knkp-price-min, #knkp-price-max { width: 100%; }
.knkp-band-btn { margin: 2px; padding: 4px 8px; background: #f5f5f5; border: 1px solid #ddd; border-radius: 4px; }
.knkp-band-btn.knkp-band-active { background: #123f6d; color: #fff; border-color: #123f6d; }
.knkp-cant-find { border-top: 1px solid #ddd; padding: 12px; background: #f9f9f9; }
.knkp-matrix-scroll { overflow-x: auto; margin-bottom: 10px; }
.knkp-matrix-table { border-collapse: collapse; min-width: 100%; }
.knkp-matrix-table th, .knkp-matrix-table td { border: 1px solid #ddd; padding: 8px; text-align: center; white-space: nowrap; }
.knkp-matrix-table th:first-child, .knkp-matrix-table td:first-child { text-align: left; }
.knkp-matrix-logo { display: inline-block; width: 26px; height: 26px; line-height: 26px; border-radius: 50%; background: #123f6d; color: #fff; font-size: 11px; text-align: center; margin-right: 4px; }
.knkp-matrix-cell { background: none; border: none; color: #337ab7; font-weight: bold; cursor: pointer; }
.knkp-disclaimer { font-size: 13px; color: #555; }
#knkp-results-header { background: #f5f5f5; border: 1px solid #ddd; border-radius: 4px; padding: 12px 15px; margin-bottom: 12px; }
.knkp-showing { font-weight: bold; font-size: 16px; }
.knkp-header-mode { font-weight: bold; margin-top: 4px; }
.knkp-header-route, .knkp-header-pax { color: #555; }
#knkp-sort-tabs { margin-bottom: 12px; }
.knkp-tab { padding: 8px 16px; margin-right: 6px; background: #f5f5f5; border: 1px solid #ddd; border-radius: 4px; }
.knkp-tab-active { background: #123f6d; color: #fff; border-color: #123f6d; }
.knkp-tab-top { display: block; font-size: 12px; margin-top: 2px; }
.knkp-row { margin-bottom: 15px; }
.knkp-row-main { display: flex; gap: 15px; align-items: flex-start; flex-wrap: wrap; }
.knkp-row-logo { width: 48px; height: 48px; line-height: 48px; border-radius: 50%; background: #123f6d; color: #fff; text-align: center; font-weight: bold; flex: 0 0 auto; }
.knkp-row-legs { flex: 1 1 300px; }
.knkp-row-airline { font-weight: bold; margin-bottom: 6px; }
.knkp-row-leg { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
.knkp-leg-end { flex: 1 1 180px; }
.knkp-leg-mid { flex: 0 0 auto; color: #555; }
.knkp-row-price { flex: 0 0 auto; text-align: right; }
.knkp-row-perperson { font-size: 20px; font-weight: bold; color: #337ab7; }
.knkp-row-total { margin: 4px 0 10px; color: #555; }
.knkp-row-footer { border-top: 1px solid #eee; margin-top: 10px; padding-top: 10px; display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.knkp-expander summary { cursor: pointer; font-weight: bold; color: #337ab7; }
.knkp-baggage-chip { background: #eef6ee; border: 1px solid #b5d8b5; border-radius: 12px; padding: 2px 10px; font-size: 13px; }
#knkp-pagination { margin: 15px 0; text-align: center; }
.knkp-page-btn { margin: 2px; padding: 4px 10px; background: #f5f5f5; border: 1px solid #ddd; border-radius: 4px; }
.knkp-page-btn.knkp-page-active { background: #123f6d; color: #fff; border-color: #123f6d; }
.knkp-breadcrumb { margin: 15px 0 5px; color: #555; }
.knkp-step { font-weight: bold; color: #123f6d; }
.knkp-fare-sticky { position: sticky; top: 15px; }
.knkp-passport { margin-top: 10px; }
.knkp-passport summary { cursor: pointer; font-weight: bold; color: #337ab7; }
@media (max-width: 991px) {
  .knkp-filter-mobile-btn { display: inline-block; }
  .knkp-sidebar { display: none; }
  .knkp-sidebar.knkp-filter-open { display: block; }
}

/* =================================================================
   KNKP ORIGINAL BOOKING LAYOUT (2026-11-02 rebuild, booking page
   only — the results page does not use these rules).
   To restyle the booking page, edit here only.
   - .knkp-route-bar: dark-blue route bar (route ⇄, passenger
     count, local-time note, Change Flight button).
   - .knkp-book-leg: one selected-flight leg row (airline line,
     Depart / arrow+elapsed / Arrive ends).
   - .knkp-countdown-sticky / .knkp-hold-expired: the 20-minute
     page-load hold timer panel and its expiry notice.
   - .knkp-fare-rules-panel: the honest generic fare-rules text,
     toggled by the FARE RULES link (never invented rules).
   ================================================================= */
.knkp-route-bar { background: #123f6d; color: #fff; padding: 12px 15px; margin: 15px 0; border-radius: 4px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.knkp-route-codes { font-size: 18px; font-weight: bold; }
.knkp-route-pax, .knkp-route-local { color: #dbe8f5; }
.knkp-change-flight { margin-left: auto; }
.knkp-panel-head { display: flex; justify-content: space-between; align-items: center; }
.knkp-panel-head h3 { margin-top: 0; }
.knkp-fare-rules-link { font-weight: bold; white-space: nowrap; }
.knkp-fare-rules-panel { background: #f5f5f5; border: 1px solid #ddd; border-radius: 4px; padding: 10px 12px; margin-bottom: 12px; }
.knkp-book-leg { margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid #eee; }
.knkp-book-leg:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.knkp-book-airline { font-weight: bold; margin-bottom: 6px; }
.knkp-book-times { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-start; }
.knkp-book-end { flex: 1 1 180px; }
.knkp-book-arrow { flex: 0 0 auto; color: #555; font-weight: bold; }
.knkp-countdown-sticky { position: sticky; top: 15px; }
.knkp-countdown-line { font-size: 18px; font-weight: bold; color: #123f6d; }
.knkp-hold-expired { color: #a94442; font-weight: bold; }
.knkp-terms-row { margin-bottom: 12px; }
.knkp-taxes-note { margin-top: 8px; }
