/* ════════════════════════════════════════════════
   FLIGHT RESULTS PAGE — flight-results.css
   Airline Tickets Services
════════════════════════════════════════════════ */

/* ── Results Page Wrapper ── */
#fsp-results-page {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #111827;
}

/* ── Results Search Bar ── */
.fsp-results-search-bar {
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    padding: 20px 0 16px;
    margin-bottom: 0;
}

/* ── Layout ── */
.fsp-results-layout {
    display: flex;
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 20px 60px;
    align-items: flex-start;
}

/* ── Sidebar ── */
.fsp-sidebar {
    width: 240px;
    flex-shrink: 0;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    position: sticky;
    top: 100px;
}

.fsp-sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid #f0f0f0;
}
.fsp-sidebar-header h3 {
    font-size: 16px;
    font-weight: 700;
    color: #111827;
    margin: 0;
}
#fsp-filter-icon {
    background: none;
    border: none;
    cursor: pointer;
    color: #6b7280;
    padding: 4px;
    border-radius: 4px;
    display: flex;
}
#fsp-filter-icon:hover { color: #e81e1d; background: #f0fdf9; }

.fsp-filter-section {
    margin-bottom: 22px;
    padding-bottom: 22px;
    border-bottom: 1px solid #f3f4f6;
}
.fsp-filter-section:last-of-type { border-bottom: none; margin-bottom: 0; }
.fsp-filter-section h4 {
    font-size: 13px;
    font-weight: 700;
    color: #374151;
    margin: 0 0 12px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* Sort Radio */
.fsp-radio {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #374151;
    margin-bottom: 8px;
    cursor: pointer;
}
.fsp-radio input[type="radio"] {
    accent-color: #e81e1d;
    width: 15px; height: 15px;
    cursor: pointer;
}

/* Price Range */
.fsp-range-wrap { margin-top: 8px; }
#fsp-price-range {
    width: 100%;
    accent-color: #e81e1d;
    cursor: pointer;
}
.fsp-range-labels {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    margin-top: 6px;
}

/* Airlines checkboxes */
.fsp-airline-check {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #374151;
    margin-bottom: 8px;
    cursor: pointer;
}
.fsp-airline-check input[type="checkbox"] {
    accent-color: #e81e1d;
    width: 15px; height: 15px;
    cursor: pointer;
}

/* Clear filters */
.fsp-clear-filters {
    width: 100%;
    padding: 9px;
    background: none;
    border: 1.5px solid #e5e7eb;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    margin-top: 16px;
    transition: all 0.15s;
    font-family: inherit;
}
.fsp-clear-filters:hover { border-color: #e81e1d; color: #e81e1d; background: #f0fdf9; }

/* ── Results Main ── */
.fsp-results-main { flex: 1; min-width: 0; }

.fsp-results-count {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 16px;
    font-weight: 500;
}
.fsp-results-count strong { color: #111827; }

/* ── Flight Card ── */
.fsp-flight-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px 22px;
    margin-bottom: 12px;
    display: grid;
    grid-template-columns: 1fr auto 1fr 200px;
    align-items: center;
    gap: 20px;
    transition: border-color 0.2s, box-shadow 0.2s;
    position: relative;
}
.fsp-flight-card:hover {
    border-color: #e81e1d;
    box-shadow: 0 4px 20px rgba(15,118,110,0.1);
}

/* Airline logo + name */
.fsp-fc-airline {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}
.fsp-fc-airline-logo {
    width: 34px; height: 34px;
    /*border-radius: 50%;*/
    background: linear-gradient(135deg, #ffffff, #ffffff);
    display: flex; align-items: center; justify-content: center;
    font-size: 10px;
    font-weight: 800;
    color: #e81e1d;
    letter-spacing: -0.5px;
    flex-shrink: 0;
    border: 0px solid #e5e7eb;
    overflow: hidden;
}
.fsp-fc-airline-logo img { width: 100%; height: 100%; object-fit: contain; }
.fsp-fc-airline-name { font-size: 13px; font-weight: 600; color: #374151; }

.fsp-fc-left {min-width: 160px;}

.fsp-fc-times {
    display: flex;
    align-items: center;
    gap: 0;
}
.fsp-fc-dep, .fsp-fc-arr { flex: 1;min-width: 90px; }
.fsp-fc-dep { }
.fsp-fc-arr { text-align: right; }

.fsp-fc-time {
    font-size: 20px;
    font-weight: 700;
    color: #111827;
    letter-spacing: -0.02em;
    line-height: 1;
}
.fsp-fc-code {
    font-size: 13px;
    color: #6b7280;
    font-weight: 500;
    margin-top: 3px;
}
.fsp-fc-date {
    font-size: 11px;
    color: #9ca3af;
    margin-top: 1px;
}

/* Middle route line */
.fsp-fc-route {
    flex-shrink: 0;
    text-align: center;
    padding: 0 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 175px;
}
.fsp-fc-duration { font-size: 12px; color: #6b7280; font-weight: 500; }
.fsp-fc-line {
    display: flex;
    align-items: center;
    gap: 4px;
    width: 100%;
    margin: 2px 0;
}
.fsp-fc-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    border: 2px solid #e81e1d;
    flex-shrink: 0;
}
.fsp-fc-dashes {
    flex: 1;
    height: 1.5px;
    background: repeating-linear-gradient(90deg, #e81e1d 0, #e81e1d 4px, transparent 4px, transparent 8px);
    opacity: 0.5;
}
.fsp-fc-plane-icon { color: #e81e1d; transform: rotate(90deg); }
.fsp-fc-stops {
    font-size: 11px;
    color: #6b7280;
    font-weight: 500;
}

/* Badges */
.fsp-fc-badges {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 8px;
    min-height: 20px;
}
.fsp-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}
.fsp-badge--seats {
    background: #fef3f2;
    color: #dc2626;
    border: 1px solid #fee2e2;
}
.fsp-badge--seats::before {
    content: '●';
    font-size: 8px;
}
.fsp-badge--cabin {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #e5e7eb;
}

/* Price column */
.fsp-fc-price-col {
    text-align: right;
    border-left: 1px solid #f0f0f0;
    padding-left: 20px;
}
.fsp-fc-regular {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 13px;
    color: #6b7280;
    font-weight: 500;
}
.fsp-fc-regular-price { font-size: 16px; font-weight: 700; color: #374151; }

.fsp-call-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 11px 12px;
    background: #e81e1d;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    text-decoration: none !important;
    transition: background 0.15s;
    line-height: 1;
    white-space: nowrap;
}
.fsp-call-btn:hover { background: #000000; color: #ffffff;}
.fsp-call-btn svg { flex-shrink: 0; }
.fsp-call-btn-price { font-size: 16px; margin-top: 1px; }

/* ── Promo Banner ── */
.fsp-promo-banner {
    background: linear-gradient(105deg, #f0fdf4 0%, #e6fffa 100%);
    border: 1px solid #a7f3d0;
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.fsp-promo-text h3 {
    font-size: 17px;
    font-weight: 700;
    color: #065f46;
    margin: 0 0 6px;
}
.fsp-promo-text p {
    font-size: 13px;
    color: #047857;
    margin: 0;
    line-height: 1.5;
}
.fsp-promo-call {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: #e81e1d;
    color: #fff;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    white-space: nowrap;
    transition: background 0.15s;
    border: none;
    cursor: pointer;
    font-family: inherit;
}
.fsp-promo-call:hover { background: #065f46; }

/* ── Skeleton Loading ── */
.fsp-skeleton {
    background: #f3f4f6;
    border-radius: 12px;
    padding: 20px 22px;
    margin-bottom: 12px;
    height: 120px;
    animation: fspShimmer 1.5s infinite;
    background: linear-gradient(90deg, #f3f4f6 25%, #e5e7eb 50%, #f3f4f6 75%);
    background-size: 200% 100%;
}
@keyframes fspShimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ── Empty State (no search yet) ── */
.fsp-empty-state {
    text-align: center;
    padding: 70px 30px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
}
.fsp-empty-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #f0fdf9, #e6fffa);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    color: #e81e1d;
    border: 1px solid #a7f3d0;
}
.fsp-empty-state h2 {
    font-size: 22px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 10px;
}
.fsp-empty-state p {
    font-size: 15px;
    color: #6b7280;
    max-width: 400px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ── No Results ── */
.fsp-no-results {
    text-align: center;
    padding: 60px 20px;
    color: #6b7280;
}
.fsp-no-results svg { color: #d1d5db; margin-bottom: 16px; }
.fsp-no-results h3 { font-size: 18px; color: #374151; margin-bottom: 8px; }

/* ── Pagination ── */
.fsp-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 32px;
    flex-wrap: wrap;
}
.fsp-page-btn {
    width: 38px; height: 38px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #374151;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.15s;
}
.fsp-page-btn:hover { border-color: #e81e1d; color: #e81e1d; background: #f0fdf9; }
.fsp-page-btn.active { background: #111827; color: #fff; border-color: #111827; }
.fsp-page-btn.dots { border: none; background: none; cursor: default; color: #9ca3af; }
.fsp-page-btn.nav { gap: 4px; width: auto; padding: 0 14px; font-size: 13px; }
.fsp-page-btn.nav:disabled { opacity: 0.4; cursor: not-allowed; }

/* ── Responsive ── */
@media (max-width: 1024px) {
    .fsp-results-layout { flex-direction: column; }
    .fsp-sidebar { width: 100%; position: static; }
    .fsp-filter-section { display: inline-block; margin-right: 32px; vertical-align: top; }
}

@media (max-width: 768px) {
    .fsp-flight-card {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .fsp-fc-times { gap: 20px; }
    .fsp-fc-price-col {
        border-left: none;
        border-top: 1px solid #f0f0f0;
        padding-left: 0;
        padding-top: 14px;
    }
    .fsp-promo-banner { flex-direction: column; text-align: center; }
}
