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

/* ====== 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; }

/* ==============================================================
   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: 20px; }
.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; }

/* payment */
.payment-card { background: var(--white); border-radius: 15px; padding: 25px; box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08); }

/* 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-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; }

/* ====== 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); }
