/* ============================================
   MARLTOS REIZEN - Flight Results Page
   ============================================ */

.flights-page {
    padding-top: calc(var(--header-offset) + 24px);
    min-height: 100vh;
}

/* Compact Search Bar */
.search-bar-compact {
    background: linear-gradient(180deg, #f8fbff 0%, #f3f8ff 100%);
    border-bottom: 1px solid #cfdbea;
    padding: 14px 0;
    margin-bottom: 20px;
    box-shadow: 0 10px 26px -24px rgba(8, 28, 52, 0.55);
}

.search-bar-summary {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.search-bar-route {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1rem;
    color: #0f2b4d;
    letter-spacing: 0.15px;
}

.search-bar-route svg {
    color: #2f5f8a;
    width: 18px;
    height: 18px;
}

.search-bar-details {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #30465e;
    font-size: 0.83rem;
    flex-wrap: wrap;
}

.search-bar-detail {
    display: flex;
    align-items: center;
    gap: 6px;
    min-height: 32px;
    padding: 0 10px;
    border-radius: 999px;
    border: 1px solid #ccd9e7;
    background: #ffffff;
    font-weight: 600;
    color: #2a3f56;
    white-space: nowrap;
}

.search-bar-detail-icon {
    width: 15px;
    height: 15px;
    color: #2f5f8a;
    display: inline-flex;
    flex-shrink: 0;
}

.search-bar-detail-icon svg {
    width: 15px;
    height: 15px;
    display: block;
}

.search-bar-modify {
    margin-left: auto;
}

.search-bar-modify .btn {
    border-color: #9cb3ca;
    color: #163658;
    background: #ffffff;
    min-height: 34px;
    border-radius: 9px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.35px;
}

.search-bar-modify .btn:hover {
    border-color: #6f8fac;
    background: #edf4fc;
    color: #0f2b4d;
}

/* Results Layout */
.flights-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 24px;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px 60px;
}

/* Filter Sidebar */
.filter-sidebar {
    align-self: start;
    position: static;
    top: auto;
    height: fit-content;
    max-height: none;
    overflow: visible;
    scrollbar-width: thin;
    scrollbar-color: #9bb4cf transparent;
}

.filter-card {
    --filter-navy-900: #0d2848;
    --filter-navy-700: #1f4f78;
    --filter-blue-600: #0056a9;
    --filter-blue-100: #ecf4ff;
    --filter-blue-050: #f6faff;
    --filter-border: #c8d8e9;
    --filter-border-strong: #a8bfd8;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    border-radius: 16px;
    border: 1px solid var(--filter-border);
    box-shadow: 0 16px 34px -26px rgba(6, 26, 49, 0.55);
    padding: 18px;
}

.filter-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.filter-header h3 {
    font-size: 1.02rem;
    font-family: 'Poppins', sans-serif;
    color: #0d2848;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 0.25px;
    margin: 0;
}

.filter-reset {
    min-height: 30px;
    padding: 0 11px;
    border-radius: 999px;
    border: 1px solid #b7cae0;
    background: #ffffff;
    font-size: 0.72rem;
    letter-spacing: 0.44px;
    text-transform: uppercase;
    color: #1f4f78;
    cursor: pointer;
    font-weight: 700;
    transition: border-color var(--transition), background var(--transition), color var(--transition);
    white-space: nowrap;
}

.filter-reset:hover {
    border-color: #7c9fc1;
    background: #eef5fd;
    color: #0d2848;
}

.filter-subtitle {
    margin: 4px 0 0;
    font-size: 0.74rem;
    color: #58728d;
}

.filter-status {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    margin-bottom: 14px;
}

.filter-results-pill,
.filter-active-pill {
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    border-radius: 10px;
    border: 1px solid #d2e0ef;
    background: #ffffff;
    margin: 0;
    font-size: 0.72rem;
    font-weight: 600;
    color: #34516c;
    padding: 0 10px;
}

.filter-results-pill {
    justify-content: center;
}

.filter-results-pill strong {
    margin-right: 4px;
    color: #0d2848;
    font-size: 0.84rem;
}

.filter-active-pill {
    background: #edf5ff;
    border-color: #c1d7ed;
    color: #1f4f78;
}

.filter-active-pill #active-filter-count {
    font-weight: 700;
    margin-right: 4px;
    color: #0d2848;
}

.filter-section {
    margin-bottom: 14px;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid #d6e3f1;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.filter-section:last-child {
    margin-bottom: 0;
}

.filter-section h4 {
    font-size: 0.78rem;
    font-weight: 700;
    margin: 0 0 10px;
    color: #1b476f;
    text-transform: uppercase;
    letter-spacing: 0.54px;
}

.filter-price-range {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 0.78rem;
    color: #57708a;
}

.filter-price-value {
    font-weight: 700;
    color: #0d2848;
}

.filter-section .range-slider {
    height: 4px;
    border-radius: 999px;
    background: #c5d7e9;
}

.filter-section .range-slider::-webkit-slider-thumb {
    width: 18px;
    height: 18px;
    background: #0056a9;
    border: 2px solid #ffffff;
    box-shadow: 0 6px 12px rgba(0, 63, 122, 0.35);
}

.filter-section .range-slider::-webkit-slider-thumb:hover {
    transform: scale(1.08);
}

.filter-stops .checkbox-label {
    justify-content: space-between;
}

.filter-stops .stop-count {
    font-size: 0.7rem;
    color: #4f6f90;
    background: #eef4fb;
    border: 1px solid #d3e0ee;
    padding: 2px 7px;
    border-radius: 999px;
}

.filter-card .checkbox-group {
    gap: 7px;
}

.filter-card .checkbox-label {
    justify-content: space-between;
    gap: 10px;
    min-height: 34px;
    border-radius: 9px;
    border: 1px solid #d8e4f1;
    background: #ffffff;
    padding: 0 10px;
    color: #1f3145;
    font-size: 0.8rem;
    font-weight: 600;
    transition: border-color var(--transition), background var(--transition);
}

.filter-card .checkbox-label:hover {
    border-color: #a8bfd7;
    background: #f4f9ff;
}

.filter-card .checkbox-label input[type="checkbox"] {
    width: 15px;
    height: 15px;
    accent-color: #0056a9;
    flex-shrink: 0;
}

.filter-card .checkbox-label span:nth-child(2) {
    flex: 1;
    min-width: 0;
}

.filter-time-slots {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px;
}

.time-slot {
    padding: 9px 8px;
    border: 1px solid #cfdeec;
    border-radius: 10px;
    background: #ffffff;
    text-align: center;
    cursor: pointer;
    transition: border-color var(--transition), background var(--transition), color var(--transition), transform var(--transition);
    font-size: 0.74rem;
}

.time-slot:hover {
    border-color: #8eb0d0;
    background: #f3f8ff;
}

.time-slot.active {
    border-color: #0056a9;
    background: #eaf4ff;
    color: #0d2848;
    transform: translateY(-1px);
}

.time-slot-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    margin-bottom: 4px;
}

.time-slot-icon svg {
    width: 18px;
    height: 18px;
    display: block;
    color: #255987;
}

.time-slot-label {
    font-weight: 700;
}

.time-slot-time {
    margin-top: 2px;
    font-size: 0.66rem;
    color: #5a758f;
}

/* Mobile Filter Button */
.filter-mobile-btn {
    display: none;
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    box-shadow: var(--shadow-xl);
}

.filter-overlay {
    display: none;
}

/* Results Area */
.results-area {
    min-width: 0;
}

.results-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 12px;
}

.results-count {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.results-count strong {
    color: var(--text-primary);
}

.results-sort {
    display: flex;
    align-items: center;
    gap: 8px;
}

.results-sort label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    white-space: nowrap;
}

.results-sort select {
    padding: 8px 36px 8px 12px;
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.85rem;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
}

/* ── CheapTickets-style Flight Card ── */
.fc {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid #d2dcea;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(8, 28, 52, 0.07);
    margin-bottom: 12px;
    overflow: hidden;
    transition: border-color 0.18s, box-shadow 0.18s;
}

.fc:hover {
    border-color: #9ab4cc;
    box-shadow: 0 6px 20px rgba(8, 28, 52, 0.12);
}

.fc-body {
    display: grid;
    grid-template-columns: 1fr 210px;
}

.fc-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 8px 16px;
    border-top: 1px solid #e8eff7;
    background: #fafcff;
}

.fc-details-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    color: #1a5faa;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 0;
    text-decoration: underline;
    text-underline-offset: 3px;
    font-family: inherit;
}

.fc-details-link:hover {
    color: #0f4080;
}

/* Left: flight info */
.fc-main {
    padding: 16px 20px 12px;
    min-width: 0;
}

.fc-leg-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.fc-badge-deal {
    display: inline-flex;
    align-items: center;
    background: #f5c518;
    color: #0f2040;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.65px;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 6px;
    flex-shrink: 0;
}

.fc-leg-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #3a5270;
}

/* Flight row */
.fc-leg {
    display: flex;
    align-items: center;
    gap: 10px;
}

.fc-airline-icon {
    width: 36px;
    height: 36px;
    border-radius: 0;
    border: 1px solid #d7deea !important;
    background: #ffffff !important;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.fc-airline-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 5px;
    display: block;
}

.fc-airline-img--ba { padding: 3px; }

.fc-airline-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 0.6rem;
    font-weight: 700;
}

.fc-time {
    text-align: center;
    min-width: 70px;
}

.fc-time-val {
    font-family: 'Poppins', sans-serif;
    font-size: 1.45rem;
    font-weight: 700;
    color: #0f2040;
    line-height: 1;
}

.fc-time-sub {
    font-size: 0.72rem;
    color: #4e6278;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-top: 3px;
}

.fc-time-city {
    font-size: 0.68rem;
    color: #8aa4be;
    margin-top: 1px;
}

/* Route line */
.fc-route {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 0 4px;
    min-width: 0;
}

.fc-route-dur {
    font-size: 0.73rem;
    color: #5a7590;
    font-weight: 600;
}

.fc-route-line {
    display: flex;
    align-items: center;
    width: 100%;
}

.fc-route-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #28a745;
    flex-shrink: 0;
}

.fc-route-track {
    flex: 1;
    height: 2px;
    background: #28a745;
}

.fc-route-badge {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 999px;
    border: 1.5px solid;
    white-space: nowrap;
}

.fc-route-badge.direct {
    color: #1a7a3c;
    border-color: #28a745;
    background: transparent;
}

.fc-route-badge.has-stops {
    color: #7b4f00;
    border-color: #d97706;
    background: transparent;
}

/* Baggage icons */
.fc-baggage {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.fc-bag-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    min-width: 26px;
    padding: 4px 6px;
    border: 1px solid #dce8f5;
    border-radius: 7px;
    background: #f5f9ff;
}

.fc-bag-item svg {
    width: 16px;
    height: 16px;
    color: #7ea5c8;
}

.fc-bag-item span {
    font-size: 0.65rem;
    font-weight: 700;
    color: #3a5a7a;
    line-height: 1;
}

/* Divider between legs */
.fc-divider {
    border: none;
    border-top: 1px solid #e5edf5;
    margin: 14px 0;
}

.fc-footnote {
    margin-top: 12px;
    font-size: 0.67rem;
    color: #9ab0c5;
}

/* Right: price panel */
.fc-price-panel {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 14px;
    border-left: 1px solid #e0eaf4;
    background: #f8fbff;
    gap: 5px;
    min-width: 0;
}

.fc-urgency {
    font-size: 0.71rem;
    font-weight: 700;
    color: #0f2b4d;
}

.fc-price-amount {
    display: flex;
    align-items: flex-start;
    gap: 1px;
    line-height: 1;
    color: #0f2040;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    margin-top: 2px;
}

.fc-price-eu {
    font-size: 1rem;
    margin-top: 5px;
}

.fc-price-int {
    font-size: 2.1rem;
    letter-spacing: -0.02em;
}

.fc-price-dec {
    font-size: 0.88rem;
    margin-top: 5px;
}

.fc-price-pp {
    font-size: 0.74rem;
    color: #6a8090;
    margin-top: -2px;
}

.fc-price-total {
    font-size: 0.68rem;
    color: #8aa0b5;
}

.fc-book-btn {
    width: 100%;
    min-height: 44px;
    background: #f5c518;
    color: #0f2040;
    border: none;
    border-radius: 999px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.18s, transform 0.15s;
    margin-top: 6px;
}

.fc-book-btn:hover {
    background: #e6b800;
    transform: translateY(-1px);
}

/* Loading Skeleton */
.flight-skeleton {
    background: var(--surface);
    border-radius: var(--radius-md);
    padding: 24px;
    margin-bottom: 16px;
    box-shadow: var(--shadow);
}

.flight-skeleton-inner {
    display: grid;
    grid-template-columns: 120px 1fr auto;
    gap: 24px;
    align-items: center;
}

.flight-skeleton .skeleton {
    border-radius: 4px;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 80px 24px;
    background: var(--surface);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow);
}

.no-results-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto;
    margin-bottom: 20px;
    color: #2f5f8a;
}

.no-results-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.no-results h3 {
    margin-bottom: 8px;
}

.no-results p {
    color: var(--text-secondary);
    max-width: 400px;
    margin: 0 auto 24px;
}

.no-results-suggestions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.no-results-suggestions span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* ── Flight Details Sidepanel ── */
body.flight-sidepanel-open {
    overflow: hidden;
}

.flight-sidepanel-overlay {
    position: fixed;
    inset: 0;
    background: rgba(4, 20, 38, 0.5);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    z-index: 1250;
}

.flight-sidepanel-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.flight-sidepanel {
    --panel-blue-900: #0f2b4d;
    --panel-blue-700: #0056a9;
    --panel-blue-100: #eaf3ff;
    --panel-orange-600: #e68517;
    --panel-orange-100: #fff3e4;
    position: fixed;
    top: 0;
    right: 0;
    width: clamp(320px, 90vw, 860px);
    height: 100vh;
    height: 100dvh;
    background: #f6faff;
    border-left: 1px solid #c6d5e5;
    box-shadow: -26px 0 42px -32px rgba(7, 26, 47, 0.7);
    transform: translateX(100%);
    transition: transform 0.28s ease;
    z-index: 1260;
    display: flex;
    flex-direction: column;
}

.flight-sidepanel.open {
    transform: translateX(0);
}

.flight-sidepanel-header {
    padding: 14px 14px 12px;
    background: #ff6a00;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 10px;
}

.flight-sidepanel-header-info {
    min-width: 0;
}

.flight-sidepanel-route-label {
    font-family: 'Poppins', sans-serif;
    font-size: 1.34rem;
    font-weight: 700;
    line-height: 1.2;
    color: #ffffff;
    letter-spacing: 0.2px;
}

.flight-sidepanel-meta {
    margin-top: 5px;
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.68rem;
    font-weight: 600;
}

.flight-sidepanel-header-price {
    min-width: 180px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 0;
    border: 0;
    background: transparent;
    grid-column: 1;
    grid-row: 2;
}

.flight-sidepanel-close {
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #ffffff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    justify-self: end;
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: start;
}

.flight-sidepanel-close svg {
    width: 20px;
    height: 20px;
}

.flight-sidepanel-discount {
    display: inline-flex;
    align-items: center;
    min-height: 20px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.36);
    padding: 0 8px;
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.45px;
    text-transform: uppercase;
    gap: 5px;
}

.flight-sidepanel-discount svg {
    width: 11px;
    height: 11px;
}

.flight-sidepanel-price {
    font-family: 'Poppins', sans-serif;
    font-size: 2.02rem;
    line-height: 1;
    color: #ffffff;
    font-weight: 700;
}

.flight-sidepanel-price-suffix {
    font-size: 0.38em;
    font-weight: 700;
    opacity: 0.95;
    margin-left: 4px;
}

.flight-sidepanel-header-book {
    width: 100%;
    min-height: 46px;
    border: 0;
    border-radius: 8px;
    background: #1f5fdd;
    color: #ffffff;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: background var(--transition), transform var(--transition);
}

.flight-sidepanel-header-book:hover {
    background: #1a52c1;
}

.flight-sidepanel-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-bottom: 1px solid #d9e4ef;
    background: #ffffff;
}

.flight-sidepanel-tab {
    border: 0;
    border-right: 1px solid #e2eaf2;
    background: #ffffff;
    min-height: 44px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    color: #3f5b76;
    font-size: 0.73rem;
    font-weight: 700;
    letter-spacing: 0.28px;
    cursor: pointer;
}

.flight-sidepanel-tab:last-child {
    border-right: 0;
}

.flight-sidepanel-tab.active {
    background: var(--panel-blue-100);
    color: var(--panel-blue-900);
    box-shadow: inset 0 -2px 0 0 var(--panel-orange-600);
}

.flight-sidepanel-body {
    flex: 1;
    overflow-y: auto;
    padding: 14px 18px 24px;
}

.flight-sidepanel-loading {
    position: absolute;
    inset: 0;
    z-index: 40;
    background: rgba(6, 24, 45, 0.38);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 700;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.flight-sidepanel-loading.active {
    opacity: 1;
    pointer-events: auto;
}

.flight-sidepanel-loading-spinner {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.28);
    border-top-color: #ff8c2b;
    animation: spin 0.9s linear infinite;
}

.flight-sidepanel-header-book.is-loading {
    opacity: 0.9;
    cursor: wait;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.flight-sidepanel-empty {
    min-height: 260px;
    border: 1px dashed #c7d8e8;
    border-radius: 12px;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-align: center;
    color: #557089;
    padding: 22px;
    font-size: 0.82rem;
}

.flight-sidepanel-tabpanel {
    display: none;
    flex-direction: column;
    gap: 12px;
}

.flight-sidepanel-tabpanel.is-active {
    display: flex;
}

.flight-sidepanel-block {
    background: #ffffff;
    border: 1px solid #d9e4ef;
    border-radius: 12px;
    padding: 12px;
}

.flight-sidepanel-block h4 {
    margin: 0 0 10px;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.46px;
    color: var(--panel-blue-700);
}

.flight-bound-summary {
    position: relative;
    display: block;
    padding: 10px 12px 9px;
    border: 1px solid #d4e1ef;
    border-radius: 10px;
    background: #ffffff;
    margin-bottom: 10px;
    min-height: 88px;
}

.flight-bound-summary-left h4 {
    margin: 0;
    color: #0f2b4d;
    font-size: 0.88rem;
    text-transform: none;
    padding-right: 88px;
}

.flight-bound-summary-left h4 span {
    display: inline-flex;
    align-items: center;
    margin-left: 6px;
    min-height: 18px;
    padding: 0 6px;
    border-radius: 999px;
    border: 1px solid #b9cee3;
    background: #edf4fc;
    color: #24527b;
    font-size: 0.65rem;
    font-weight: 700;
}

.flight-bound-summary-meta {
    margin-top: 4px;
    font-size: 0.7rem;
    color: #3f5670;
}

.flight-bound-summary-duration {
    margin-top: 4px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #123a61;
}

.flight-bound-airline-logo {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 62px;
    height: 30px;
    border-radius: 8px;
    background: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.flight-bound-airline-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 3px;
}

.flight-bound-airline-fallback {
    font-size: 0.75rem;
    font-weight: 700;
    color: #164770;
}

.flight-timeline {
    border: 1px solid #d4e1ef;
    border-radius: 11px;
    background: #ffffff;
    padding: 10px;
}

.flight-timeline-stop,
.flight-timeline-join,
.flight-timeline-layover {
    display: grid;
    grid-template-columns: 78px 62px minmax(0, 1fr);
    gap: 8px;
    align-items: center;
}

.flight-timeline-col-left { text-align: left; }

.flight-timeline-col-center {
    display: flex;
    justify-content: center;
    position: relative;
}

.flight-timeline-time {
    font-size: 1rem;
    font-weight: 700;
    color: #0f2b4d;
    font-family: 'Poppins', sans-serif;
    line-height: 1.1;
}

.flight-timeline-time small {
    margin-left: 5px;
    font-size: 0.62rem;
    color: #ff6a00;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
}

.flight-timeline-icon {
    width: 48px;
    height: 48px;
    border-radius: 999px;
    border: 2px solid #ff6a00;
    background: #ffffff;
    color: #132f4f;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.flight-timeline-icon svg { width: 24px; height: 24px; }

.flight-timeline-icon-image {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.flight-timeline-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #111111;
    border: 3px solid #ffffff;
    box-shadow: 0 0 0 2px #ff6a00;
}

.flight-timeline-stop .flight-timeline-col-center::before,
.flight-timeline-stop .flight-timeline-col-center::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    background: #ff6a00;
}

.flight-timeline-stop .flight-timeline-col-center::before { top: -11px; height: 11px; }
.flight-timeline-stop .flight-timeline-col-center::after  { bottom: -11px; height: 11px; }

.flight-timeline-stop.is-first .flight-timeline-col-center::before,
.flight-timeline-stop.is-last  .flight-timeline-col-center::after { display: none; }

.flight-timeline-city {
    font-size: 0.95rem;
    font-weight: 700;
    color: #102d4b;
    line-height: 1.15;
}

.flight-timeline-airport { margin-top: 2px; font-size: 0.8rem; color: #5a7490; }
.flight-timeline-date    { margin-top: 2px; font-size: 0.68rem; color: #6d8399; }

.flight-timeline-join {
    margin: 8px 0;
    padding: 8px 0;
    border-top: 1px solid #e7eef6;
    border-bottom: 1px solid #e7eef6;
}

.flight-timeline-duration { font-size: 0.78rem; color: #173b60; }

.flight-timeline-line {
    width: 2px;
    height: 38px;
    background: #ff6a00;
    border-radius: 999px;
}

.flight-timeline-airline { font-size: 0.82rem; font-weight: 700; color: #173b60; }
.flight-timeline-flight  { margin-top: 2px; font-size: 0.74rem; color: #4b6783; }

.flight-timeline-services { margin-top: 6px; }

.flight-timeline-services summary {
    list-style: none;
    cursor: pointer;
    font-size: 0.74rem;
    font-weight: 700;
    color: #1b2f45;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.flight-timeline-services summary::-webkit-details-marker { display: none; }

.flight-timeline-services summary::after {
    content: '';
    width: 7px;
    height: 7px;
    border-right: 1.8px solid currentColor;
    border-bottom: 1.8px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
}

.flight-timeline-services[open] summary::after {
    transform: rotate(-135deg) translateY(1px);
}

.flight-timeline-services-list {
    margin-top: 7px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.flight-timeline-services-list span {
    font-size: 0.67rem;
    color: #43617c;
    border: 1px solid #d6e3f1;
    background: #f6faff;
    border-radius: 999px;
    padding: 3px 7px;
}

.flight-timeline-layover { margin-top: 6px; }
.flight-timeline-layover strong { font-size: 0.74rem; color: #133a5f; }
.flight-timeline-layover span   { font-size: 0.75rem; color: #45617d; }

.flight-timeline-dots {
    display: inline-flex;
    flex-direction: column;
    gap: 5px;
    align-items: center;
}

.flight-timeline-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #111111;
}

.flight-return-section {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed #d4e1ef;
}

.flight-return-label {
    margin: 0 0 8px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.42px;
    color: #2b4d6d;
}

.flight-sidepanel-route {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 140px minmax(0, 1fr);
    gap: 8px;
    align-items: center;
}

.flight-sidepanel-route-col {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.flight-sidepanel-route-col .time {
    font-size: 1.1rem;
    color: var(--panel-blue-900);
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
}

.flight-sidepanel-route-col .city { font-size: 0.8rem; font-weight: 700; color: #203f61; }
.flight-sidepanel-route-col .meta { font-size: 0.68rem; color: #5c748d; }

.flight-sidepanel-route-line {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-align: center;
    font-size: 0.67rem;
    color: #5e7690;
    font-weight: 700;
    text-transform: uppercase;
}

.flight-sidepanel-route-line .line {
    width: 100%;
    height: 2px;
    background: #c7d6e6;
    border-radius: 999px;
}

.flight-sidepanel-facts {
    margin-top: 10px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.flight-sidepanel-facts .fact {
    border: 1px solid #d9e4ef;
    border-radius: 9px;
    background: #f5f9fd;
    padding: 6px 8px;
    color: #49647e;
    font-size: 0.72rem;
    line-height: 1.3;
}

.flight-sidepanel-facts .fact strong { color: var(--panel-blue-700); margin-right: 4px; }

.flight-sidepanel-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.flight-sidepanel-list-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: #3a5670;
    font-size: 0.75rem;
    line-height: 1.4;
}

.flight-sidepanel-list-item svg {
    width: 14px;
    height: 14px;
    color: var(--panel-blue-700);
    margin-top: 1px;
    flex-shrink: 0;
}

.flight-sidepanel-baggage-item {
    display: flex;
    gap: 10px;
    padding: 10px;
    border-radius: 10px;
    border: 1px solid #d7e4f2;
    background: #ffffff;
    margin-bottom: 8px;
    box-shadow: 0 5px 14px -13px rgba(14, 42, 72, 0.55);
}

.flight-sidepanel-baggage-item .icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    border: 1px solid #c9d9ea;
    background: #f3f8ff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #204f79;
    flex-shrink: 0;
}

.flight-sidepanel-baggage-item .icon svg { width: 16px; height: 16px; }
.flight-sidepanel-baggage-item .content strong { display: block; font-size: 0.78rem; color: #123658; }
.flight-sidepanel-baggage-item .content p { margin: 3px 0 0; font-size: 0.72rem; color: #45617b; }

.flight-sidepanel-baggage-item .content small.status {
    display: inline-block;
    margin-top: 6px;
    min-height: 20px;
    padding: 0 8px;
    border-radius: 999px;
    border: 1px solid #e7bc86;
    background: #fff5ea;
    color: #975307;
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.35px;
    text-transform: uppercase;
    line-height: 20px;
}

.flight-sidepanel-baggage-item.included .content small.status {
    border-color: #9cd3b7;
    background: #ecf8f1;
    color: #0f6a3c;
}

.flight-sidepanel-baggage-item .content small.note {
    display: block;
    margin-top: 5px;
    color: #537089;
    font-size: 0.66rem;
    font-weight: 600;
}

.flight-sidepanel-note {
    font-size: 0.7rem;
    color: #5d758f;
    line-height: 1.45;
    border: 1px dashed #cfdced;
    border-radius: 10px;
    background: #f9fcff;
    padding: 10px 12px;
}

.flight-sidepanel-price-table {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.flight-sidepanel-price-table div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 0.74rem;
    color: #4c6681;
}

.flight-sidepanel-price-table div strong { color: #113457; font-weight: 700; }
.flight-sidepanel-price-table div.discount strong { color: var(--panel-orange-600); }

/* ── Sidepanel Trustpilot ── */
.sidepanel-trustpilot {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #0a1f5c 0%, #0057B8 60%, #1a6fd4 100%);
    border-top: 1px solid rgba(255,255,255,0.1);
}

.sidepanel-tp-logo {
    height: 20px;
    width: auto;
    filter: brightness(0) invert(1);
    flex-shrink: 0;
}

.sidepanel-tp-score {
    font-size: 0.85rem;
    font-weight: 700;
    color: white;
}

.sidepanel-tp-sep {
    color: rgba(255,255,255,0.35);
    font-size: 0.75rem;
}

.sidepanel-tp-reviews {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.7);
}

/* ── Sidepanel Promo ── */
.sidepanel-promo {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: #f7f9fc;
    border-top: 1px solid #e2eaf2;
}

.sidepanel-promo-input {
    flex: 1;
    min-width: 120px;
    height: 36px;
    padding: 0 12px;
    border: 1px solid #ccd8e8;
    border-radius: 6px;
    font-size: 0.82rem;
    background: white;
    color: var(--text-primary);
    outline: none;
    transition: border-color 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.sidepanel-promo-input:focus {
    border-color: var(--primary);
}

.sidepanel-promo-btn {
    height: 36px;
    padding: 0 16px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}

.sidepanel-promo-btn:hover {
    background: var(--primary-dark);
}

.sidepanel-promo-status {
    width: 100%;
    font-size: 0.78rem;
    font-weight: 500;
    min-height: 0;
}

.sidepanel-promo-status.error {
    color: #e53e3e;
}

.sidepanel-promo-status.success {
    color: #38a169;
}

/* ── Sidepanel Footer ── */
.flight-sidepanel-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 20px;
    background: white;
    border-top: 1px solid #e2eaf2;
}

/* ── Responsive: flight card ── */
@media (max-width: 860px) {
    .fc-body {
        grid-template-columns: 1fr;
    }
    .fc-price-panel {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        border-left: none;
        border-top: 1px solid #e0eaf4;
        padding: 12px 16px;
        gap: 10px;
    }
    .fc-price-amount { margin-top: 0; }
    .fc-price-pp { margin-top: 0; align-self: flex-end; padding-bottom: 2px; }
    .fc-urgency { width: 100%; }
    .fc-price-total { width: 100%; margin-top: -4px; }
    .fc-book-btn { flex: 1; min-width: 130px; margin-top: 0; border-radius: 8px; }
}

@media (max-width: 600px) {
    .flights-layout {
        padding: 0 12px 48px;
    }
    .fc-main { padding: 12px 14px 10px; }
    .fc-time-val { font-size: 1.2rem; }
    .fc-baggage { display: none; }
    .fc-route-dur { font-size: 0.68rem; }
    .fc-leg { gap: 7px; }
    .fc-time { min-width: 56px; }
    .fc-airline-icon { width: 30px; height: 30px; }
}

/* ── Responsive: sidepanel ── */
@media (max-width: 600px) {
    .flight-sidepanel {
        width: 100vw;
        border-left: none;
    }
    .flight-sidepanel-route-label { font-size: 1.1rem; }
    .flight-sidepanel-body { padding: 12px 14px 20px; }
    .flight-timeline-stop,
    .flight-timeline-join,
    .flight-timeline-layover {
        grid-template-columns: 64px 52px minmax(0, 1fr);
        gap: 6px;
    }
}
