/* ==============================================================
   SKYLINESPARROW — FLIGHT PAGES
   Loaded with @push('css') on: flight/index, searchflight, oneway,
   roundtrip, reviewDetails, payment, thankyou, ticket.
   All @media rules live in responsive.css.
   ============================================================== */

/* ====== BOOTSTRAP UTILITIES -> BRAND (flight pages) ======
   text-success / bg-success / text-secondary / text-dark -> navy,
   text-danger / bg-warning -> red, text-muted -> navy tint.
   Sirf navy + red; koi green / yellow / grey nahi. */
:root {
  --bs-success-rgb: var(--primary-rgb);
  --bs-secondary-rgb: var(--primary-rgb);
  --bs-dark-rgb: var(--primary-rgb);
  --bs-danger-rgb: var(--accent-rgb);
  --bs-warning-rgb: var(--accent-rgb);
  --bs-secondary-color: rgba(var(--primary-rgb), 0.65);
  --bs-secondary-bg-subtle: rgba(var(--primary-rgb), 0.08);
  --bs-link-color: var(--primary);
  --bs-link-color-rgb: var(--primary-rgb);
  --bs-link-hover-color: var(--accent);
  --bs-link-hover-color-rgb: var(--accent-rgb);
}
.table { --bs-table-color: var(--text); --bs-table-border-color: var(--border); }
.table-light { --bs-table-bg: var(--bg-light); --bs-table-color: var(--text); --bs-table-border-color: var(--border); }
.border-secondary-subtle, .border-light-subtle { border-color: var(--border) !important; }
.border-dashed { border-style: dashed !important; }

/* ====== PAGE HERO (flight search pages) ====== */
.page-hero.flight-hero { background: var(--primary); }
.page-hero.flight-hero::before { background-image: url('../images/photo-1436491865332-7a61a109cc05.jpg'); opacity: 0.18; }
.review-hero { background: var(--primary); }
.search-box-bar { background: var(--white); box-shadow: 0 6px 30px rgba(0, 0, 0, 0.12); position: relative; z-index: 5; }

/* ====== SEARCH RESULT DEAL CARDS ====== */
.deal-card { overflow: hidden; }
.deal-card:hover { border-color: var(--primary); }
.deal-card .card-img { height: 160px; object-fit: cover; width: 100%; }
.deal-card .airline-logo { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; background: var(--bg-light); border: 1px solid var(--border); }
.deal-price { font-size: 1.45rem; font-weight: 800; color: var(--accent); }
.deal-price span { font-size: 0.78rem; font-weight: 500; color: var(--text-light); }
.deal-route { font-size: 0.88rem; font-weight: 600; color: var(--dark); }
.deal-route .route-arrow { color: var(--primary); margin: 0 6px; }
.deal-date { font-size: 0.78rem; color: var(--text-light); }

.filter-sidebar { position: sticky; top: 20px; height: calc(100vh - 40px); }

/* ====== BETTER DEAL: thin phone strip (search pages) ====== */
.better-deal-phone { background: var(--accent); color: var(--white); padding: 12px 0; position: relative; overflow: hidden; }
.better-deal-phone::before { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.07) 0 12px, transparent 12px 24px); pointer-events: none; }
.bdp-inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; }
.bdp-left { display: flex; align-items: center; gap: 14px; min-width: 0; }
.bdp-img { width: 52px; height: 52px; flex: 0 0 52px; border-radius: 50%; overflow: hidden; border: 3px solid rgba(255, 255, 255, 0.85); box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18); }
.bdp-img img { width: 100%; height: 100%; object-fit: cover; }
.bdp-tag { display: inline-flex; align-items: center; gap: 5px; font-size: 0.66rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.8px; background: var(--dark); color: var(--gold); padding: 2px 10px; border-radius: var(--radius-pill); margin-bottom: 3px; }
.bdp-text b { display: block; font-size: 0.98rem; line-height: 1.3; }
.bdp-call { display: inline-flex; align-items: center; gap: 10px; background: var(--white); color: var(--dark); padding: 6px 20px 6px 6px; border-radius: var(--radius-pill); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15); transition: transform 0.2s ease; }
.bdp-call:hover { color: var(--dark); transform: translateY(-2px); }
.bdp-call-icon { width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--primary); color: var(--white); animation: bdp-ring 1.6s ease-in-out infinite; }
.bdp-call small { display: block; font-size: 0.66rem; font-weight: 700; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.5px; line-height: 1.2; }
.bdp-call b { display: block; font-size: 1rem; color: var(--primary); line-height: 1.2; }
.better-deal-phone .container { padding-right: 48px; }
.bdp-close { position: absolute; top: 50%; right: 14px; transform: translateY(-50%); z-index: 2; width: 28px; height: 28px; border: 0; border-radius: 50%; background: rgba(var(--primary-rgb), 0.25); color: var(--white); font-size: 0.85rem; display: flex; align-items: center; justify-content: center; transition: background 0.2s; }
.bdp-close:hover { background: var(--dark); }
@keyframes bdp-ring { 0%, 100% { box-shadow: 0 0 0 0 rgba(var(--primary-rgb), 0.45); } 50% { box-shadow: 0 0 0 7px rgba(var(--primary-rgb), 0); } }

/* ====== SEARCH RESULT PAGES ====== */
.splitviewStickyOuter { position: sticky; left: 0; right: 0; bottom: 0; width: 100%; z-index: 999; margin-top: 20px; }
.splitviewSticky { background: var(--dark-2); color: var(--white); border-radius: 12px; box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15); display: flex; gap: 20px; align-items: center; }
.split-item { display: flex; align-items: center; gap: 12px; padding-right: 20px; border-right: 1px solid rgba(255, 255, 255, 0.3); }
.split-item:last-child { border-right: none; }

.flightToggle.fa-angle-down { cursor: pointer; font-size: 22px; transition: 0.3s; }
.flightToggle.fa-angle-down.open, .flightToggle.fa-angle-down.rotate { transform: rotate(180deg); }
#flightTabs .nav-link { border: none; color: var(--text-light); font-weight: 600; }
#flightTabs .nav-link.active { color: var(--primary); border-bottom: 3px solid var(--primary); background: none; }
div#details { display: flex; justify-content: space-between; }
.layovertime-center.mb-3 { color: var(--accent); }
button.btn.btn-book.btn-sm { background: var(--accent); color: var(--white); font-weight: 700; font-size: 11px; border: none; border-radius: 10px; padding: 16px 17px; transition: all 0.22s; letter-spacing: 0.3px; }

/* ====== RESULT CARD PARTS ====== */
/* airline code tile (when no logo image) */
.fl-code-badge { width: 46px; height: 46px; border-radius: 10px; background: var(--primary); color: var(--white); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 0.8rem; }
/* airline logo image box */
.fl-logo-box { width: 46px; height: 46px; flex: 0 0 46px; display: flex; align-items: center; justify-content: center; }
.fl-logo-box img { width: 46px; height: 46px; object-fit: contain; }
.airline-logo-wrapper { width: 100px; height: 100px; display: flex; align-items: center; justify-content: center; }
.airline-logo-wrapper img { width: 100%; height: 100%; object-fit: contain; }
.airline-logo-wrapper .badge { font-size: 14px; font-weight: 600; }
/* dashed duration line with a plane in the middle */
.fl-route-line { border-top: 1.5px dashed var(--border); width: 80px; margin: 4px auto; position: relative; }
.fl-route-line i { position: absolute; top: -8px; left: 50%; transform: translateX(-50%); font-size: 0.75rem; }
.fl-line-icon { z-index: 2; font-size: 0.85rem; }
.deal-price-lg { font-size: 1.35rem; }
.fare-table { max-width: 450px; font-size: 0.85rem; }
.seg-class-label { font-size: 0.75rem; letter-spacing: 0.5px; }
.layover-alert { background-color: rgba(var(--accent-rgb), 0.08); }
.mw-80 { min-width: 80px; }
.mw-120 { min-width: 120px; }
.mw-150 { min-width: 150px; }
.mw-200 { min-width: 200px; }
.mw-220 { min-width: 220px; }
/* small AM / PM (+1 day) label next to a time */
.fl-ampm { font-size: 0.6em; line-height: 1; }

/* tabs inside a result card (Flight Details / Fare Summary / Fare Options) */
.deal-card .nav-pills { --bs-nav-link-color: var(--primary); --bs-nav-link-hover-color: var(--accent); --bs-nav-pills-link-active-bg: var(--primary); --bs-nav-pills-link-active-color: var(--white); }
.deal-card .nav-pills .nav-link { border-radius: var(--radius-pill); background: rgba(var(--primary-rgb), 0.07); }
.deal-card .nav-pills .nav-link.active { background: var(--primary); }
/* fare option cards (Fare Options tab) */
.fare-option-card { width: 240px; min-width: 240px; }
.fare-option-card.border-primary { box-shadow: 0 0 0 1px var(--primary); }
.fare-option-list li { margin-bottom: 0.55rem; }
.fare-option-list .fa { width: 14px; text-align: center; }

/* ==============================================================
   BOOKING FLOW — reviewDetails, payment, ticket
   ============================================================== */
body.page-ticket { background: var(--bg-light); font-family: Arial, sans-serif; }
body.page-payment { background: var(--bg-light); }

.price-box { position: sticky; top: 116px; }
.flight-line { border-top: 2px dashed var(--border); position: relative; margin: 15px 0; }
.flight-line i { position: absolute; left: 50%; top: -10px; transform: translateX(-50%); color: var(--primary); }

/* review details */
.details-card { background: var(--white); border-radius: 16px; padding: 25px; box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08); margin-bottom: 20px; }
.error-message { display: none; color: var(--accent); font-size: 13px; margin-top: 5px; }
.is-invalid { border-color: var(--accent) !important; }
.rv-slice-head { border-bottom: 1px dashed var(--border); padding-bottom: 0.75rem; margin-bottom: 1rem; }
.rv-amenities span { display: inline-flex; align-items: center; gap: 0.3rem; margin-right: 1rem; }
.rv-amenities .off { color: rgba(var(--primary-rgb), 0.4); }
.rv-tax-row { font-size: 0.85rem; }
.rv-timer { font-variant-numeric: tabular-nums; }

/* payment */
.payment-card { background: var(--white); border-radius: 15px; padding: 25px; box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08); }
.card-brand { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-size: 1.6rem; color: rgba(var(--primary-rgb), 0.65); pointer-events: none; }

/* thank you */
.ty-container { max-width: 860px; }
.ty-icon { width: 84px; height: 84px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: rgba(var(--primary-rgb), 0.08); color: var(--primary); font-size: 40px; }
.ty-ref { font-size: 1.6rem; letter-spacing: 3px; font-weight: 700; font-family: ui-monospace, Menlo, Consolas, monospace; }

/* ticket */
.ticket-container { max-width: 1000px; margin: auto; padding: 40px 0; }
.ticket { background: var(--white); border-radius: 20px; overflow: hidden; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08); }
.ticket-header { background: var(--primary); color: var(--white); padding: 25px; }
.ticket-logo { display: block; height: 56px; width: auto; background: var(--white); padding: 6px 12px; border-radius: 12px; margin-bottom: 14px; }
.ticket-body { padding: 25px; }
.info-box { background: var(--bg-light); border-radius: 10px; padding: 12px; margin-bottom: 12px; }
.barcode { font-family: monospace; font-size: 26px; letter-spacing: 3px; text-align: center; }
.tk-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.5px; color: rgba(var(--primary-rgb), 0.65); }
.tk-ref { font-family: ui-monospace, Menlo, Consolas, monospace; font-weight: 700; letter-spacing: 2px; font-size: 1.15rem; }
/* ticket status badge — har status ka alag color (brand palette se bahar, sirf yahin) */
.tk-status { color: var(--white); }
.tk-status.is-confirmed { background: #198754; }
.tk-status.is-pending { background: #ffc107; color: #212529; }
.tk-status.is-cancelled { background: #6c757d; }
.tk-status.is-failed { background: var(--accent); }

/* ====== AIRLINE BRAND BADGES (flight/index marquee) ====== */
.brand-aa { background: var(--primary); }
.brand-dl { background: var(--primary); }
.brand-ua { background: var(--primary); }
.brand-wn { background: var(--primary); }
.brand-b6 { background: var(--primary); }
.brand-as { background: var(--primary); }
.brand-nk { background: var(--primary); }
.brand-f9 { background: var(--primary); }
.brand-ha { background: var(--primary); }
.brand-g4 { background: var(--primary); }
