/* =========================================
   Search Results Page
========================================= */

.sj-results-page {
    max-width: 1380px;
    margin: 20px auto 40px;
    padding: 0 14px;
    box-sizing: border-box;
    font-family: Inter, Arial, sans-serif;
    color: #1f2937;
}

.sj-results-wrap {
    display: grid;
    grid-template-columns: 255px 1fr;
    gap: 16px;
    align-items: start;
}

.sj-filter-sidebar {
    position: sticky;
    top: 80px;
}

.sj-filter-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 14px 14px 18px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.04);
}

.sj-filter-card h3 {
    margin: 0 0 14px;
    font-size: clamp(14px, 1.2vw, 16px);
    font-weight: 700;
    color: #111827;
}

.sj-filter-group {
    border-top: 1px solid #e5e7eb;
    padding-top: 14px;
    margin-top: 14px;
}

.sj-filter-group:first-of-type {
    border-top: none;
    padding-top: 0;
    margin-top: 0;
}

.sj-filter-group h4 {
    margin: 0 0 10px;
    font-size: clamp(12px, 1vw, 13px);
    font-weight: 700;
    color: #111827;
}

.sj-filter-option {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 9px;
    font-size: clamp(12px, 1vw, 14px);
    line-height: 1.4;
    color: #374151;
    cursor: pointer;
}

.sj-filter-option input[type="checkbox"] {
    width: 15px;
    height: 15px;
    accent-color: #1d4ed8;
    cursor: pointer;
    flex-shrink: 0;
}

.sj-filter-option span {
    flex: 1;
}

.sj-filter-option small,
.sj-muted,
.sj-price-range {
    font-size: clamp(11px, 0.95vw, 13px);
}

.sj-muted {
    color: #6b7280;
    margin: 0;
}

.sj-price-range {
    color: #111827;
    font-weight: 600;
    margin: 0;
}

.sj-results-main {
    min-width: 0;
}

.sj-route-header {
    background: linear-gradient(90deg, #0c2d96 0%, #173cae 100%);
    border-radius: 14px 14px 0 0;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
}

.sj-route-badge {
    background: rgba(255,255,255,0.12);
    border-radius: 999px;
    padding: 7px 12px;
    font-size: clamp(11px, 1vw, 13px);
    font-weight: 700;
    line-height: 1;
}

.sj-route-header h2 {
    margin: 0;
    font-size: clamp(13px, 1.1vw, 16px);
    font-weight: 700;
    color: #fff;
}

.sj-summary-boxes {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 12px 0;
}

.sj-summary-box {
    background: #fff;
    border: 1px solid #c7d2fe;
    border-radius: 14px;
    padding: 14px 16px;
    min-height: 54px;
}

.sj-summary-box strong {
    display: block;
    font-size: clamp(12px, 1vw, 14px);
    font-weight: 700;
    color: #0b2d91;
    margin-bottom: 4px;
}

.sj-summary-box span {
    display: block;
    font-size: clamp(12px, 1vw, 14px);
    color: #6b7280;
}

.sj-search-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 12px 14px;
    margin-bottom: 14px;
}

.sj-search-meta div {
    font-size: clamp(11px, 0.95vw, 13px);
    color: #4b5563;
}

.sj-search-meta strong {
    color: #111827;
}

.sj-no-results {
    background: #fff;
    border: 1px solid #fecaca;
    color: #b91c1c;
    border-radius: 14px;
    padding: 12px 14px;
    font-size: clamp(12px, 1vw, 14px);
    font-weight: 600;
}

#sj-flight-results {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.sj-flight-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    position: relative;
}

.sj-flight-top {
    display: grid;
    grid-template-columns: minmax(190px, 220px) 100px 1fr 100px 190px;
    gap: 10px;
    align-items: center;
    padding: 14px 16px;
}

.sj-airline-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.sj-airline-logo {
    width: 42px;
    height: 42px;
    object-fit: contain;
    flex-shrink: 0;
}

.sj-airline-logo-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #eff6ff;
    color: #1d4ed8;
    font-weight: 700;
    font-size: 12px;
}

.sj-airline-name {
    font-size: clamp(13px, 1.1vw, 15px);
    font-weight: 700;
    color: #111827;
    line-height: 1.35;
    margin-bottom: 3px;
}

.sj-flight-number {
    font-size: clamp(11px, 0.95vw, 13px);
    color: #6b7280;
    line-height: 1.4;
}

.sj-time-col {
    text-align: center;
}

.sj-time-main {
    font-size: clamp(18px, 1.6vw, 22px);
    font-weight: 700;
    color: #111827;
    line-height: 1;
    margin-bottom: 4px;
}

.sj-airport-code,
.sj-duration-text,
.sj-stop-text,
.sj-starting-text,
.sj-details-date,
.sj-details-airport-sub,
.sj-details-flight-info {
    font-size: clamp(11px, 0.95vw, 13px);
}

.sj-airport-code {
    color: #4b5563;
    line-height: 1.3;
}

.sj-duration-col {
    text-align: center;
    min-width: 0;
}

.sj-duration-text,
.sj-stop-text,
.sj-starting-text {
    color: #6b7280;
    line-height: 1.3;
}

.sj-duration-line {
    position: relative;
    height: 2px;
    background: #9db4ea;
    margin: 0 14px 6px;
}

.sj-duration-line::before,
.sj-duration-line::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 9px;
    height: 9px;
    border: 1.5px solid #6b8fe6;
    background: #fff;
    border-radius: 50%;
    transform: translateY(-50%);
}

.sj-duration-line::before {
    left: -1px;
}

.sj-duration-line::after {
    right: -1px;
}

.sj-price-col {
    text-align: right;
}

.sj-price {
    font-size: clamp(18px, 1.45vw, 22px);
    font-weight: 800;
    color: #0b2d91;
    line-height: 1.2;
    margin-bottom: 8px;
}

.sj-view-fares-btn,
.sj-fare-select-btn {
    border: none;
    background: #facc15;
    color: #111827;
    font-size: clamp(12px, 1vw, 14px);
    font-weight: 700;
    padding: 10px 14px;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.sj-view-fares-btn:hover,
.sj-fare-select-btn:hover {
    background: #eab308;
}

.sj-view-fares-btn.active {
    background: #0b2d91;
    color: #fff;
}

.sj-flight-bottom {
    display: flex;
    justify-content: flex-end;
    padding: 0 16px 12px;
}

.sj-toggle-details {
    border: none;
    background: transparent;
    color: #1d4ed8;
    font-size: clamp(12px, 1vw, 14px);
    font-weight: 600;
    cursor: pointer;
    padding: 0;
}

.sj-toggle-details:hover,
.sj-fare-more:hover {
    text-decoration: underline;
}

.sj-flight-details-template {
    display: none !important;
}

.sj-next-day {
    font-size: 10px;
    color: #ef4444;
    margin-left: 4px;
    font-weight: 700;
    vertical-align: top;
}

.sj-flight-card::after {
    content: "Up to 18% off with selected cards during payment";
    display: block;
    background: #edf8ee;
    color: #166534;
    font-size: clamp(11px, 0.95vw, 12px);
    text-align: center;
    padding: 10px 14px;
    border-top: 1px solid #d1fae5;
}

.sj-fares-expand {
    display: none;
    background: linear-gradient(180deg, #edf3fb 0%, #f6f9ff 100%);
    border-top: 1px solid #e5e7eb;
}

.sj-fares-expand.active {
    display: block;
}

.sj-fares-inner {
    padding: 18px 16px 16px;
}

.sj-fares-title {
    margin: 0 0 14px;
    font-size: clamp(18px, 1.45vw, 22px);
    font-weight: 700;
    color: #0f172a;
}

.sj-fares-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}

.sj-fare-box {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #dfe7f2;
    padding: 14px;
    min-width: 0;
    box-shadow: 0 8px 22px rgba(12, 37, 111, 0.06);
    display: flex;
    flex-direction: column;
}

.sj-fare-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e5e7eb;
}

.sj-fare-book-form {
    margin-left: auto;
}

.sj-fare-select-btn {
    border: none;
    background: #facc15;
    color: #111827;
    font-size: clamp(13px, 1vw, 14px);
    font-weight: 800;
    padding: 10px 20px;
    border-radius: 10px;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 8px 18px rgba(250, 204, 21, 0.24);
}

.sj-fare-select-btn:hover {
    background: #eab308;
}

.sj-fare-class {
    font-size: clamp(13px, 1vw, 14px);
    color: #6b7280;
    margin-bottom: 8px;
}

.sj-fare-price {
    font-size: clamp(18px, 1.45vw, 22px);
    font-weight: 800;
    color: #0b2d91;
    margin-bottom: 4px;
}

.sj-fare-sub,
.sj-fare-line,
.sj-fare-meta {
    font-size: clamp(12px, 1vw, 14px);
}

.sj-fare-sub {
    color: #6b7280;
}

.sj-fare-section-title {
    font-size: clamp(13px, 1vw, 14px);
    font-weight: 700;
    color: #6b7280;
    margin: 12px 0 8px;
}

.sj-fare-line {
    color: #0f172a;
    line-height: 1.55;
    margin-bottom: 6px;
}

.sj-fare-policy-bad {
    color: #dc2626;
    font-weight: 500;
}

.sj-fare-policy-good {
    color: #15803d;
    font-weight: 500;
}

.sj-fare-meta {
    margin-top: 12px;
    color: #6b7280;
}

.sj-details-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.35);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
}

.sj-details-overlay.active {
    opacity: 1;
    visibility: visible;
}

.sj-details-drawer {
    position: fixed;
    top: 0;
    right: -470px;
    width: 440px;
    max-width: calc(100vw - 20px);
    height: 100vh;
    background: #eef3fb;
    z-index: 9999;
    box-shadow: -8px 0 30px rgba(0,0,0,0.18);
    transition: right 0.28s ease;
    display: flex;
    flex-direction: column;
}

.sj-details-drawer.active {
    right: 0;
}

.sj-details-header {
    background: #132b92;
    color: #fff;
    padding: 16px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sj-details-header h3 {
    margin: 0;
    font-size: clamp(13px, 1vw, 16px);
    font-weight: 700;
    color: #fff;
}

.sj-details-close {
    border: none;
    background: transparent;
    color: #fff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
}

.sj-details-body {
    padding: 14px;
    overflow-y: auto;
}

.sj-details-card {
    background: #fff;
    border-radius: 14px;
    padding: 16px;
    border: 1px solid #e5e7eb;
}

.sj-details-section-title,
.sj-details-airline,
.sj-details-route,
.sj-details-time {
    font-size: clamp(13px, 1vw, 15px);
}

.sj-details-section-title {
    font-weight: 700;
    color: #132b92;
    margin: 0 0 14px;
}

.sj-details-airline,
.sj-details-route,
.sj-details-time {
    font-weight: 700;
    color: #111827;
    margin-bottom: 6px;
}

.sj-details-sub {
    font-size: clamp(11px, 0.95vw, 13px);
    color: #6b7280;
    line-height: 1.5;
    margin-bottom: 14px;
}

.sj-details-timeline {
    position: relative;
    margin-top: 12px;
    padding-left: 42px;
}

.sj-details-timeline::before {
    content: "";
    position: absolute;
    left: 18px;
    top: 10px;
    bottom: 10px;
    width: 2px;
    background: #7da2ea;
}

.sj-details-stop {
    position: relative;
    margin-bottom: 26px;
}

.sj-details-stop:last-child {
    margin-bottom: 0;
}

.sj-details-stop::before {
    content: "";
    position: absolute;
    left: -29px;
    top: 6px;
    width: 10px;
    height: 10px;
    background: #fff;
    border: 2px solid #3b82f6;
    border-radius: 50%;
}

.sj-details-airport {
    font-size: clamp(12px, 1vw, 14px);
    font-weight: 700;
    color: #111827;
    margin-bottom: 3px;
}

.sj-details-duration-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 10px 0 18px;
    color: #4b5563;
    font-size: clamp(11px, 0.95vw, 13px);
    font-weight: 600;
}

@media (max-width: 1200px) {
    .sj-flight-top {
        grid-template-columns: minmax(170px, 190px) 90px 1fr 90px 170px;
    }
}

@media (max-width: 991px) {
    .sj-results-wrap {
        grid-template-columns: 1fr;
    }

    .sj-filter-sidebar {
        position: static;
    }

    .sj-summary-boxes {
        grid-template-columns: 1fr;
    }

    .sj-flight-top {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 14px;
    }

    .sj-airline-brand,
    .sj-airline-col,
    .sj-time-col,
    .sj-price-col {
        justify-content: center;
        text-align: center;
    }

    .sj-airline-brand {
        flex-direction: column;
    }

    .sj-flight-bottom {
        justify-content: center;
    }

    .sj-duration-line {
        max-width: 240px;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 640px) {
    .sj-results-page {
        padding: 0 10px;
    }

    .sj-route-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .sj-details-drawer {
        width: 100%;
        max-width: 100%;
        right: -100%;
    }

    .sj-details-header {
        padding: 14px 16px;
    }

    .sj-details-body,
    .sj-fares-inner {
        padding: 12px;
    }

    .sj-details-card {
        padding: 14px;
    }

    .sj-fare-head {
        flex-direction: column;
        align-items: stretch;
    }

    .sj-fare-select-btn,
    .sj-view-fares-btn {
        width: 100%;
    }
}

/* =========================================
   Fare cards like screenshot
========================================= */

.sj-fares-title {
    margin: 0 0 16px;
    font-size: 34px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.1;
}

.sj-fare-box {
    padding: 16px;
    border-radius: 18px;
    min-height: 100%;
}

.sj-fare-head {
    align-items: flex-start;
    gap: 16px;
}

.sj-fare-head-main {
    min-width: 0;
}

.sj-fare-badge {
    display: inline-block;
    background: #2352c8;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    padding: 4px 8px;
    border-radius: 4px;
    margin-bottom: 10px;
}

.sj-fare-price {
    font-size: 22px;
    font-weight: 800;
    color: #0b2d91;
    margin-bottom: 6px;
}

.sj-fare-sub {
    font-size: 14px;
    color: #667085;
    line-height: 1.35;
}

.sj-fare-section-title {
    font-size: 15px;
    font-weight: 700;
    color: #667085;
    margin: 14px 0 8px;
}

.sj-fare-line {
    position: relative;
    padding-left: 26px;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 8px;
}

.sj-fare-line-icon::before {
    content: "";
    position: absolute;
    left: 0;
    top: 3px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
}

.sj-fare-line-bag::before {
    background: #dbeafe;
    border: 1px solid #93c5fd;
}

.sj-fare-policy-bad::before {
    background: #fee2e2;
    border: 1px solid #fca5a5;
}

.sj-fare-policy-good::before {
    background: #dcfce7;
    border: 1px solid #86efac;
}

.sj-fare-policy-bad {
    color: #c62828;
    font-weight: 500;
}

.sj-fare-policy-good {
    color: #15803d;
    font-weight: 500;
}

.sj-fare-more-toggle {
    margin-top: 8px;
    padding: 0;
    border: none;
    background: transparent;
    color: #2352c8;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: underline;
}

.sj-fare-more-panel {
    display: none;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #e5e7eb;
}

.sj-fare-more-panel.active {
    display: block;
}

.sj-fare-meta {
    font-size: 13px;
    color: #4b5563;
    line-height: 1.5;
    margin-bottom: 6px;
}

@media (max-width: 640px) {
    .sj-fares-title {
        font-size: 24px;
    }

    .sj-fare-price {
        font-size: 20px;
    }

    .sj-fare-head {
        flex-direction: column;
        align-items: stretch;
    }

    .sj-fare-book-form,
    .sj-fare-select-btn {
        width: 100%;
    }
}



/* =========================================
   Smaller search results typography + fare boxes
========================================= */

.sj-results-page {
    font-size: 13px;
}

.sj-route-header h2 {
    font-size: clamp(12px, 1vw, 15px);
}

.sj-summary-box strong,
.sj-summary-box span,
.sj-search-meta div,
.sj-filter-card h3,
.sj-filter-group h4,
.sj-filter-option,
.sj-price-range,
.sj-muted,
.sj-airline-name,
.sj-flight-number,
.sj-airport-code,
.sj-duration-text,
.sj-stop-text,
.sj-starting-text,
.sj-toggle-details,
.sj-fare-sub,
.sj-fare-line,
.sj-fare-meta,
.sj-details-sub,
.sj-details-airport,
.sj-details-airport-sub,
.sj-details-flight-info,
.sj-details-duration-row {
    font-size: clamp(11px, 0.92vw, 13px);
}

.sj-time-main {
    font-size: clamp(16px, 1.35vw, 20px);
}

.sj-price,
.sj-fare-price {
    font-size: clamp(17px, 1.25vw, 21px);
}

.sj-view-fares-btn,
.sj-fare-select-btn {
    font-size: clamp(11px, 0.92vw, 13px);
    padding: 9px 12px;
}

.sj-fares-title {
    font-size: clamp(17px, 1.3vw, 21px);
}

.sj-fares-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.sj-fare-box {
    border-radius: 14px;
    padding: 14px 14px 12px;
}

.sj-fare-head {
    gap: 12px;
    margin-bottom: 12px;
    padding-bottom: 10px;
}

.sj-fare-badge {
    font-size: 11px;
    padding: 4px 7px;
    border-radius: 5px;
}

.sj-fare-section-title {
    font-size: 13px;
    margin: 12px 0 7px;
}

.sj-fare-line {
    position: relative;
    padding-left: 28px;
    margin-bottom: 7px;
    line-height: 1.45;
}

.sj-fare-line-icon::before {
    content: "";
    position: absolute;
    left: 0;
    top: 2px;
    width: 16px;
    height: 16px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 16px 16px;
}

.sj-fare-line-bag-carry::before,
.sj-fare-line-bag-checked::before {
    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='%232352c8' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='7' width='14' height='12' rx='2'/%3E%3Cpath d='M9 7V5a3 3 0 0 1 6 0v2'/%3E%3Cpath d='M9 11v4'/%3E%3Cpath d='M15 11v4'/%3E%3C/svg%3E");
}

.sj-fare-policy-bad::before {
    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='%23dc2626' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M8 8l8 8'/%3E%3C/svg%3E");
}

.sj-fare-policy-good::before {
    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='%2315803d' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M8.5 12.5l2.2 2.2 4.8-5.2'/%3E%3C/svg%3E");
}

.sj-fare-more-toggle {
    margin-top: 8px;
    font-size: 13px;
}

@media (max-width: 1199px) {
    .sj-flight-top {
        grid-template-columns: minmax(160px, 190px) 84px 1fr 84px 160px;
        gap: 8px;
    }

    .sj-fares-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 991px) {
    .sj-results-page {
        font-size: 12px;
    }

    .sj-fares-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .sj-results-page {
        padding: 0 8px;
        font-size: 12px;
    }

    .sj-fares-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .sj-fare-box {
        padding: 12px;
    }

    .sj-fare-line {
        padding-left: 26px;
    }

    .sj-fares-title {
        font-size: 18px;
    }
}


/* =========================================
   Strong mobile fixes for results cards
========================================= */

.sj-airline-col {
    min-width: 0;
}

@media (max-width: 991px) {
    .sj-results-page {
        margin: 12px auto 96px;
        padding: 0 10px;
    }

    .sj-summary-boxes {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .sj-search-meta {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px 10px;
        padding: 12px;
    }

    .sj-flight-card {
        border-radius: 18px;
    }

    .sj-flight-top {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 12px;
        padding: 14px 12px;
        text-align: center;
    }

    .sj-airline-col,
    .sj-time-col,
    .sj-duration-col,
    .sj-price-col {
        width: 100%;
        min-width: 0;
    }

    .sj-airline-brand {
        justify-content: center;
        align-items: center;
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .sj-airline-logo {
        width: 54px;
        height: 54px;
    }

    .sj-flight-number {
        word-break: break-word;
    }

    .sj-duration-col {
        max-width: 260px;
        margin: 0 auto;
    }

    .sj-price-col {
        text-align: center;
    }

    .sj-price {
        margin-bottom: 10px;
    }

    .sj-view-fares-btn {
        width: 100%;
        max-width: 220px;
        margin: 0 auto;
    }

    .sj-flight-bottom {
        justify-content: center;
        padding: 0 12px 12px;
    }
}

@media (max-width: 640px) {
    .sj-results-page {
        margin: 10px auto 96px;
        padding: 0 8px;
    }

    .sj-route-header,
    .sj-summary-box,
    .sj-search-meta,
    .sj-filter-card,
    .sj-flight-card,
    .sj-fare-box,
    .sj-details-card {
        border-radius: 16px;
    }

    .sj-search-meta {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .sj-search-meta div,
    .sj-summary-box strong,
    .sj-summary-box span,
    .sj-airline-name,
    .sj-flight-number,
    .sj-airport-code,
    .sj-duration-text,
    .sj-stop-text,
    .sj-starting-text,
    .sj-toggle-details,
    .sj-fare-sub,
    .sj-fare-line,
    .sj-fare-meta {
        font-size: 12px !important;
    }

    .sj-time-main {
        font-size: 18px !important;
    }

    .sj-price,
    .sj-fare-price {
        font-size: 19px !important;
    }

    .sj-fares-inner {
        padding: 12px 10px 10px;
    }

    .sj-fares-title {
        font-size: 18px !important;
    }

    .sj-fare-head {
        gap: 10px;
    }

    .sj-fare-select-btn,
    .sj-view-fares-btn {
        min-height: 42px;
        font-size: 13px !important;
    }
}

/* =========================================
   Visible baggage icons
========================================= */

.sj-fare-line-icon::before {
    opacity: 1 !important;
}

.sj-fare-line-bag-carry::before,
.sj-fare-line-bag-checked::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%232352c8' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='7' width='14' height='12' rx='2'/%3E%3Cpath d='M9 7V5a3 3 0 0 1 6 0v2'/%3E%3Cpath d='M9 11v4'/%3E%3Cpath d='M15 11v4'/%3E%3C/svg%3E") !important;
    background-size: 18px 18px !important;
    width: 18px !important;
    height: 18px !important;
    top: 1px !important;
}

/* =========================================
   Debug panel styling
========================================= */

.sj-baggage-debug-box {
    margin-top: 10px;
    padding: 10px;
    border: 1px dashed #f59e0b;
    border-radius: 10px;
    background: #fffbeb;
}

.sj-baggage-debug-box summary {
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
    color: #92400e;
}

.sj-baggage-debug-box pre {
    margin: 8px 0 0;
    white-space: pre-wrap;
    word-break: break-word;
    font-size: 11px;
    line-height: 1.45;
    color: #1f2937;
}

/* =========================================
   Fare quick summary + sliding details
========================================= */

.sj-fare-quick-summary {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 8px 0 12px;
}

.sj-fare-summary-chip {
    display: flex;
    align-items: center;
    min-height: 42px;
    padding: 10px 12px;
    border: 1px solid #dbe4f0;
    border-radius: 12px;
    background: #f8fbff;
    color: #173fa8;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.45;
}

.sj-fare-more-toggle {
    width: 100%;
    min-height: 42px;
    margin-top: auto;
    padding: 10px 12px;
    border: 1px solid #dbe4f0;
    border-radius: 12px;
    background: #ffffff;
    color: #2352c8;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.22s ease;
}

.sj-fare-more-toggle:hover {
    background: #f8fbff;
    border-color: #bfd7ff;
}

.sj-fare-more-toggle.is-open {
    background: #2352c8;
    border-color: #2352c8;
    color: #ffffff;
}

.sj-fare-more-panel {
    display: block;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    margin-top: 0;
    border-top: 0 solid transparent;
    transition: max-height 0.32s ease, opacity 0.22s ease, margin-top 0.22s ease, border-top-width 0.22s ease;
}

.sj-fare-more-panel.active {
    max-height: 520px;
    opacity: 1;
    margin-top: 12px;
    border-top: 1px solid #e5e7eb;
}

.sj-fare-more-inner {
    padding-top: 12px;
}

.sj-fare-box {
    display: flex;
    flex-direction: column;
}

.sj-fare-badge {
    min-height: 26px;
    display: inline-flex;
    align-items: center;
}

@media (max-width: 640px) {
    .sj-fare-summary-chip {
        font-size: 12px;
        padding: 10px;
    }

    .sj-fare-more-toggle {
        font-size: 13px;
    }

    .sj-fare-more-panel.active {
        max-height: 720px;
    }
}

/* =========================================
   Fare quick summary + sliding details
========================================= */

.sj-fare-quick-summary {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 8px 0 12px;
}

.sj-fare-summary-chip {
    display: flex;
    align-items: center;
    min-height: 42px;
    padding: 10px 12px;
    border: 1px solid #dbe4f0;
    border-radius: 12px;
    background: #f8fbff;
    color: #173fa8;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.45;
}

.sj-fare-more-toggle {
    width: 100%;
    min-height: 42px;
    margin-top: auto;
    padding: 10px 12px;
    border: 1px solid #dbe4f0;
    border-radius: 12px;
    background: #ffffff;
    color: #2352c8;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.22s ease;
}

.sj-fare-more-toggle:hover {
    background: #f8fbff;
    border-color: #bfd7ff;
}

.sj-fare-more-toggle.is-open {
    background: #2352c8;
    border-color: #2352c8;
    color: #ffffff;
}

.sj-fare-more-panel {
    display: block;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    margin-top: 0;
    border-top: 0 solid transparent;
    transition: max-height 0.32s ease, opacity 0.22s ease, margin-top 0.22s ease, border-top-width 0.22s ease;
}

.sj-fare-more-panel.active {
    max-height: 520px;
    opacity: 1;
    margin-top: 12px;
    border-top: 1px solid #e5e7eb;
}

.sj-fare-more-inner {
    padding-top: 12px;
}

.sj-fare-box {
    display: flex;
    flex-direction: column;
}

.sj-fare-badge {
    min-height: 26px;
    display: inline-flex;
    align-items: center;
}

@media (max-width: 640px) {
    .sj-fare-summary-chip {
        font-size: 12px;
        padding: 10px;
    }

    .sj-fare-more-toggle {
        font-size: 13px;
    }

    .sj-fare-more-panel.active {
        max-height: 720px;
    }
}

.sj-fare-more-link {
    margin-top: 12px;
    border: none;
    background: transparent;
    color: #2352c8;
    font-size: 14px;
    font-weight: 700;
    text-decoration: underline;
    cursor: pointer;
    padding: 0;
    text-align: left;
}

.sj-fare-drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    opacity: 0;
    visibility: hidden;
    transition: all .25s ease;
    z-index: 9998;
}

.sj-fare-drawer-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.sj-fare-drawer {
    position: fixed;
    top: 0;
    right: -430px;
    width: 390px;
    max-width: 100%;
    height: 100vh;
    background: #eef3fb;
    z-index: 9999;
    transition: right .28s ease;
    display: flex;
    flex-direction: column;
}

.sj-fare-drawer.is-open {
    right: 0;
}

.sj-fare-drawer-header {
    background: #163ea8;
    color: #fff;
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sj-fare-drawer-header h3 {
    margin: 0;
    font-size: 18px;
    color: #fff;
}

.sj-fare-drawer-close {
    border: none;
    background: transparent;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
}

.sj-fare-drawer-tabs {
    display: flex;
    gap: 20px;
    padding: 0 16px;
    background: #fff;
    border-bottom: 1px solid #dbe4f0;
}

.sj-fare-tab {
    border: none;
    background: transparent;
    padding: 14px 0;
    font-size: 15px;
    color: #475467;
    font-weight: 600;
    cursor: pointer;
    border-bottom: 3px solid transparent;
}

.sj-fare-tab.is-active {
    color: #163ea8;
    border-bottom-color: #facc15;
}

.sj-fare-drawer-body {
    padding: 16px;
    overflow-y: auto;
}

.sj-fare-tab-panel {
    display: none;
}

.sj-fare-tab-panel.is-active {
    display: block;
}

.sj-fare-drawer-card {
    background: #fff;
    border-radius: 14px;
    padding: 16px;
    border: 1px solid #dbe4f0;
}

.sj-route-pill {
    display: inline-block;
    margin: 8px 0 16px;
    padding: 6px 12px;
    border-radius: 8px;
    background: #163ea8;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
}

.sj-drawer-bag-item {
    display: flex;
    gap: 12px;
    margin-top: 14px;
    align-items: flex-start;
}

.sj-drawer-bag-icon {
    font-size: 24px;
    line-height: 1;
}

.sj-policy-block {
    margin-top: 14px;
}

.sj-policy-block p {
    margin: 6px 0 0;
    color: #344054;
    line-height: 1.6;
    font-size: 14px;
}

.sj-break-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 0;
    font-size: 14px;
}

.sj-break-total {
    margin-top: 10px;
    padding-top: 14px;
    border-top: 1px solid #dbe4f0;
    font-size: 16px;
    font-weight: 700;
}

@media (max-width: 640px) {
    .sj-fare-drawer {
        width: 100%;
        right: -100%;
    }
}