/* ================================
   Flight Results Page
   Bright Refactor
   ================================ */

.flight-results-refactor-page {
    min-height: calc(100vh - 72px);
    background:
            radial-gradient(circle at 12% 8%, rgba(125, 211, 252, 0.26), transparent 30%),
            radial-gradient(circle at 88% 12%, rgba(191, 219, 254, 0.7), transparent 34%),
            linear-gradient(180deg, #ffffff 0%, #f3f9ff 48%, #f8fbff 100%);
    color: #111827;
}

.flight-results-container {
    width: min(100% - 48px, 1280px);
    margin: 0 auto;
}

/* ================================
   Compact Hero / Search Summary
   ================================ */

.results-compact-hero {
    position: relative;
    z-index: 50;
    padding: 34px 0;
    background: transparent;
}

.results-summary-bar {
    display: grid;
    grid-template-columns: 54px 1fr auto;
    gap: 16px;
    align-items: center;
    width: 100%;
    padding: 18px 20px;
    border: 1px solid #dbeafe;
    border-radius: 24px;
    background:
            radial-gradient(circle at 100% 0%, rgba(219, 234, 254, 0.52), transparent 36%),
            rgba(255, 255, 255, 0.94);
    cursor: pointer;
    text-align: left;
    box-shadow: 0 20px 52px rgba(37, 99, 235, 0.12);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.results-summary-bar:hover {
    transform: translateY(-2px);
    border-color: #bfdbfe;
    box-shadow: 0 26px 62px rgba(37, 99, 235, 0.16);
}

.results-summary-bar .compact-search-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: #2563eb;
    color: #ffffff;
    font-size: 18px;
    box-shadow: 0 14px 30px rgba(37, 99, 235, 0.24);
}

.results-summary-bar .compact-search-summary {
    min-width: 0;
}

.results-summary-bar .compact-search-summary strong {
    display: block;
    color: #0f172a;
    font-size: 19px;
    font-weight: 900;
    letter-spacing: -0.03em;
}

.results-summary-bar .compact-search-summary span {
    display: block;
    margin-top: 6px;
    color: #64748b;
    font-size: 13px;
    font-weight: 700;
}

.results-summary-bar .compact-edit-text {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    padding: 0 18px;
    border-radius: 14px;
    background: #eff6ff;
    color: #2563eb;
    font-size: 13px;
    font-weight: 900;
}

.results-summary-bar:hover .compact-edit-text {
    background: #dbeafe;
}

/* ================================
   Search Panel
   ================================ */

.results-search-panel-refactor {
    position: relative;
    z-index: 60;
    display: none;
    margin-top: 20px;
    padding: 28px;
    border: 1px solid #dbeafe;
    border-radius: 30px;
    background:
            radial-gradient(circle at 100% 0%, rgba(219, 234, 254, 0.42), transparent 34%),
            #ffffff;
    box-shadow: 0 24px 64px rgba(37, 99, 235, 0.14);
}

.results-search-panel-refactor.open {
    display: block;
}

.results-search-panel-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding-bottom: 22px;
    margin-bottom: 24px;
    border-bottom: 1px solid #dbeafe;
}

.results-search-panel-header .tm-eyebrow {
    color: #2563eb;
}

.results-search-panel-header h2 {
    margin: 6px 0 6px;
    color: #111827;
    font-size: 32px;
    line-height: 1.2;
    letter-spacing: -0.05em;
    font-weight: 900;
}

.results-search-panel-header p {
    margin: 0;
    color: #64748b;
    font-size: 13px;
    font-weight: 700;
}

.panel-close-btn {
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 14px;
    background: #eff6ff;
    color: #2563eb;
    font-size: 16px;
    font-weight: 900;
    cursor: pointer;
}

.panel-close-btn:hover {
    background: #dbeafe;
}

.results-search-dim {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 40;
    background: rgba(15, 23, 42, 0.42);
    backdrop-filter: blur(4px);
}

.results-search-dim.open {
    display: block;
}

.search-panel-open {
    overflow: hidden;
}

.results-trip-type-tabs {
    margin: 0 0 20px;
}

.results-search-panel-refactor .trip-type-btn {
    height: 42px;
    padding: 0 20px;
    border-color: #dbe3ef;
    background: #ffffff;
    color: #475569;
}

.results-search-panel-refactor .trip-type-btn.active {
    border-color: #2563eb;
    background: #2563eb;
    color: #ffffff;
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.2);
}

/* ================================
   Search Form
   ================================ */

.results-search-route-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 58px minmax(0, 1fr);
    gap: 16px;
    align-items: end;
}

.results-swap-area {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-bottom: 4px;
}

.results-search-condition-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 18px;
    padding: 22px;
    border: 1px solid #dbeafe;
    border-radius: 24px;
    background:
            linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.search-field,
.airport-autocomplete-field,
.traveler-field-wrapper {
    position: relative;
    min-width: 0;
}

.search-field label,
.airport-autocomplete-field label,
.traveler-field-wrapper > label {
    display: block;
    margin-bottom: 9px;
    color: #334155;
    font-size: 13px;
    font-weight: 900;
}

.search-field input,
.search-field select,
.traveler-picker-button {
    width: 100%;
    height: 52px;
    border: 1px solid #dbeafe;
    border-radius: 16px;
    padding: 0 15px;
    outline: none;
    background: #ffffff;
    color: #111827;
    font-size: 14px;
    font-weight: 900;
}

.search-field input:focus,
.search-field select:focus,
.traveler-picker-button:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.result-date-input {
    cursor: pointer;
    background-color: #ffffff !important;
}

.result-date-input::placeholder {
    color: #94a3b8;
    font-weight: 800;
}

/* ================================
   Airport Autocomplete
   ================================ */

.airport-input-shell {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    height: 52px;
    border: 1px solid #dbeafe;
    border-radius: 16px;
    background: #ffffff;
    overflow: hidden;
}

.airport-input-shell:focus-within {
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.airport-search-input {
    width: 100%;
    height: 100%;
    min-width: 0;
    border: 0;
    outline: none;
    padding: 0 15px;
    color: #111827;
    font-size: 14px;
    font-weight: 900;
    background: transparent;
}

.airport-search-input::placeholder {
    color: #94a3b8;
    font-weight: 800;
}

.airport-code-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 52px;
    height: 30px;
    margin-right: 10px;
    padding: 0 10px;
    border-radius: 999px;
    background: #eff6ff;
    color: #2563eb;
    font-size: 12px;
    font-weight: 900;
}

.airport-dropdown {
    display: none;
    position: absolute;
    top: 82px;
    left: 0;
    right: 0;
    z-index: 90;
    max-height: 360px;
    overflow-y: auto;
    padding: 8px;
    border: 1px solid #dbeafe;
    border-radius: 20px;
    background: #ffffff;
    color: #111827;
    box-shadow: 0 24px 70px rgba(37, 99, 235, 0.16);
}

.airport-dropdown.open {
    display: block;
}

.airport-option {
    display: grid;
    grid-template-columns: 36px 1fr auto;
    gap: 12px;
    align-items: center;
    width: 100%;
    padding: 12px;
    border: 0;
    border-radius: 15px;
    background: transparent;
    text-align: left;
    cursor: pointer;
}

.airport-option:hover {
    background: #eff6ff;
}

.airport-option.is-active,
.airport-option:focus {
    background: #eff6ff;
}

.airport-option.is-active .airport-option-icon,
.airport-option:focus .airport-option-icon {
    background: #dbeafe;
}

.airport-option-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #eff6ff;
    color: #2563eb;
    font-size: 16px;
}

.airport-option-title {
    color: #111827;
    font-size: 14px;
    font-weight: 900;
}

.airport-option-sub {
    display: block;
    margin-top: 3px;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
}

.airport-option-code {
    color: #2563eb;
    font-size: 12px;
    font-weight: 900;
}

.airport-empty {
    padding: 26px 14px;
    color: #64748b;
    font-size: 13px;
    font-weight: 800;
    text-align: center;
}

.airport-swap-btn {
    width: 52px;
    height: 52px;
    border: 0;
    border-radius: 50%;
    background: #eff6ff;
    color: #2563eb;
    font-size: 23px;
    font-weight: 900;
    cursor: pointer;
    box-shadow: none;
}

.airport-swap-btn:hover {
    background: #dbeafe;
}

/* ================================
   Traveler Picker
   ================================ */

.traveler-picker-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
}

.traveler-arrow {
    color: #64748b;
    font-size: 12px;
}

.traveler-popover {
    display: none;
    position: absolute;
    top: 82px;
    right: 0;
    z-index: 90;
    width: 360px;
    padding: 20px;
    border: 1px solid #dbeafe;
    border-radius: 22px;
    background: #ffffff;
    color: #111827;
    box-shadow: 0 24px 70px rgba(37, 99, 235, 0.16);
}

.traveler-popover.open {
    display: block;
}

.traveler-popover-title {
    margin-bottom: 18px;
    color: #111827;
    font-size: 18px;
    font-weight: 900;
}

.traveler-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.traveler-row + .traveler-row {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid #e5e7eb;
}

.traveler-row strong {
    display: block;
    color: #111827;
    font-size: 15px;
}

.traveler-row p {
    margin: 4px 0 0;
    color: #64748b;
    font-size: 13px;
}

.traveler-stepper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.stepper-btn {
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 12px;
    background: #eff6ff;
    color: #2563eb;
    font-size: 22px;
    font-weight: 900;
    cursor: pointer;
}

.stepper-btn:hover {
    background: #dbeafe;
}

.stepper-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.traveler-count {
    min-width: 22px;
    color: #111827;
    text-align: center;
    font-size: 16px;
    font-weight: 900;
}

.traveler-help-text {
    margin: 18px 0 0;
    color: #64748b;
    font-size: 13px;
    line-height: 1.6;
}

.traveler-apply-btn {
    width: 100%;
    height: 44px;
    margin-top: 18px;
    border: 0;
    border-radius: 13px;
    background: #2563eb;
    color: #ffffff;
    font-size: 14px;
    font-weight: 900;
    cursor: pointer;
}

.traveler-apply-btn:hover {
    background: #1d4ed8;
}

/* ================================
   Search Action
   ================================ */

.results-search-action-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #dbeafe;
}

.results-search-action-row p {
    margin: 0;
    color: #64748b;
    font-size: 13px;
    line-height: 1.6;
    font-weight: 700;
}

.flight-search-btn {
    flex: 0 0 230px;
    height: 52px;
    border: 0;
    border-radius: 16px;
    background: #2563eb;
    color: #ffffff;
    font-size: 14px;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 14px 32px rgba(37, 99, 235, 0.24);
}

.flight-search-btn:hover {
    background: #1d4ed8;
}

.flight-search-btn:disabled {
    background: #94a3b8;
    cursor: wait;
    box-shadow: none;
}

/* ================================
   Result Section
   ================================ */

.flight-result-section {
    padding: 42px 0 88px;
}

.result-header-refactor {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 22px;
}

.result-header-refactor h2 {
    margin: 7px 0 0;
    color: #111827;
    font-size: 34px;
    line-height: 1.2;
    letter-spacing: -0.05em;
    font-weight: 900;
}

.result-summary {
    margin: 9px 0 0;
    color: #64748b;
    font-size: 14px;
    font-weight: 700;
}

.result-sort-box {
    display: flex;
    align-items: center;
    gap: 10px;
}

.result-sort-box label {
    color: #475569;
    font-size: 13px;
    font-weight: 900;
}

.result-sort-box select {
    height: 44px;
    border: 1px solid #dbeafe;
    border-radius: 13px;
    padding: 0 13px;
    background: #ffffff;
    color: #111827;
    font-size: 13px;
    font-weight: 900;
}

.result-sort-box select:focus {
    border-color: #2563eb;
    outline: none;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.result-layout-refactor {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}

.result-filter-panel {
    min-width: 0;
}

.filter-card-refactor {
    position: sticky;
    top: 92px;
    padding: 24px 22px;
    border: 1px solid #dbeafe;
    border-radius: 24px;
    background:
            radial-gradient(circle at 100% 0%, rgba(219, 234, 254, 0.42), transparent 34%),
            #ffffff;
    box-shadow: 0 16px 38px rgba(37, 99, 235, 0.08);
    overflow: visible;
}

.filter-card-refactor h3 {
    margin: 6px 0 18px;
    color: #111827;
    font-size: 21px;
    font-weight: 900;
}


.filter-card-refactor .filter-group p {
    margin: 0 0 12px;
    color: #111827;
    font-size: 14px;
    font-weight: 900;
}

.flight-result-grid-refactor {
    display: grid;
    gap: 18px;
}

.flight-result-grid-refactor .loading-result,
.flight-result-grid-refactor .empty-result {
    padding: 50px 24px;
    border: 1px solid #dbeafe;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 16px 38px rgba(37, 99, 235, 0.06);
}

/* ================================
   Empty Result Action
   ================================ */

.empty-result-action {
    display: grid;
    justify-items: center;
    gap: 10px;
    padding: 60px 24px;
    border: 1px dashed #bfdbfe;
    border-radius: 24px;
    background:
            radial-gradient(circle at 100% 0%, rgba(219, 234, 254, 0.42), transparent 34%),
            #ffffff;
    text-align: center;
}

.empty-result-action strong {
    color: #111827;
    font-size: 21px;
    font-weight: 900;
}

.empty-result-action p {
    max-width: 540px;
    margin: 0;
    color: #64748b;
    font-size: 14px;
    line-height: 1.7;
    font-weight: 700;
}

.empty-result-action span {
    color: #94a3b8;
    font-size: 13px;
    font-weight: 700;
}

.empty-result-search-btn {
    height: 46px;
    margin-top: 8px;
    padding: 0 20px;
    border: 0;
    border-radius: 14px;
    background: #2563eb;
    color: #ffffff;
    font-size: 13px;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 14px 32px rgba(37, 99, 235, 0.22);
}

.empty-result-search-btn:hover {
    background: #1d4ed8;
}

/* ================================
   Generated Result Cards
   ================================ */

.flight-result-grid-refactor .flight-option-card,
.flight-result-grid-refactor .round-trip-option-card {
    border-color: #dbeafe;
    border-radius: 26px;
    background: #ffffff;
    box-shadow: 0 16px 38px rgba(37, 99, 235, 0.07);
    transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.flight-result-grid-refactor .flight-option-card:hover,
.flight-result-grid-refactor .round-trip-option-card:hover {
    transform: translateY(-3px);
    border-color: #bfdbfe;
    box-shadow: 0 24px 56px rgba(37, 99, 235, 0.12);
}

.flight-result-grid-refactor .select-flight-btn {
    border-radius: 13px;
    font-weight: 900;
}

/* One Way Card */

.flight-option-card {
    display: grid;
    grid-template-columns: 1fr 1.35fr 185px;
    gap: 20px;
    align-items: center;
    padding: 22px;
    border: 1px solid #dbeafe;
    border-radius: 26px;
    background: #ffffff;
}

.airline-block h3 {
    margin: 0;
    color: #111827;
    font-size: 19px;
    font-weight: 900;
}

.airline-meta {
    margin: 6px 0 0;
    color: #64748b;
    font-size: 13px;
    font-weight: 700;
}

.badge-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.flight-badge {
    display: inline-flex;
    align-items: center;
    height: 29px;
    padding: 0 11px;
    border-radius: 999px;
    background: #eff6ff;
    color: #2563eb;
    font-size: 12px;
    font-weight: 900;
}

.route-block {
    display: grid;
    grid-template-columns: 1fr 145px 1fr;
    gap: 16px;
    align-items: center;
}

.route-time {
    color: #111827;
    font-size: 23px;
    font-weight: 900;
}

.route-airport {
    margin-top: 5px;
    color: #64748b;
    font-size: 13px;
    font-weight: 700;
}

.route-center {
    text-align: center;
    color: #64748b;
}

.route-line {
    display: block;
    position: relative;
    height: 2px;
    margin: 7px 0;
    border-radius: 999px;
    background: #bfdbfe;
}

.route-line::after {
    content: "";
    position: absolute;
    top: -4px;
    right: 0;
    width: 10px;
    height: 10px;
    border-top: 2px solid #60a5fa;
    border-right: 2px solid #60a5fa;
    transform: rotate(45deg);
}

.duration-text {
    display: block;
    color: #475569;
    font-size: 12px;
    font-weight: 900;
}

.segment-path {
    display: block;
    margin-top: 4px;
    color: #111827;
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
}

.layover-text {
    display: block;
    margin-top: 3px;
    color: #64748b;
    font-size: 12px;
    line-height: 1.4;
}

.price-block {
    text-align: right;
}

.price-label {
    margin: 0 0 6px;
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
}

.price {
    margin: 0;
    color: #2563eb;
    font-size: 27px;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.passenger-summary,
.total-price {
    margin-top: 6px;
    color: #64748b;
    font-size: 13px;
    font-weight: 700;
}

.select-flight-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    margin-top: 13px;
    padding: 0 17px;
    border-radius: 12px;
    background: #2563eb;
    color: #ffffff;
    font-size: 13px;
    font-weight: 900;
    text-decoration: none;
    box-shadow: 0 12px 26px rgba(37, 99, 235, 0.22);
}

.select-flight-btn:hover {
    background: #1d4ed8;
    color: #ffffff;
}

/* Round Trip Card */

.round-trip-option-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 185px;
    gap: 18px;
    align-items: stretch;
    padding: 22px;
    border: 1px solid #dbeafe;
    border-radius: 26px;
    background: #ffffff;
}

.round-trip-main {
    min-width: 0;
}

.round-trip-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.round-trip-label {
    margin: 0 0 5px;
    color: #2563eb;
    font-size: 12px;
    font-weight: 900;
}

.round-trip-title-row h3 {
    margin: 0;
    color: #111827;
    font-size: 21px;
    font-weight: 900;
}

.round-trip-total-duration {
    flex: 0 0 auto;
    padding: 8px 12px;
    border-radius: 999px;
    background: #eff6ff;
    color: #2563eb;
    font-size: 12px;
    font-weight: 900;
}

.round-trip-leg-list {
    display: grid;
    gap: 11px;
}

.compact-leg-list {
    display: grid;
    gap: 11px;
}

.compact-trip-leg {
    display: grid;
    grid-template-columns: 64px 132px 74px minmax(130px, 1fr) 90px;
    gap: 12px;
    align-items: center;
    padding: 13px;
    border: 1px solid #eaf2ff;
    border-radius: 17px;
    background: #f8fbff;
}

.compact-leg-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: #dbeafe;
    color: #1d4ed8;
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
}

.compact-trip-leg:nth-child(2) .compact-leg-label {
    background: #e0f2fe;
    color: #0284c7;
}

.compact-leg-airline {
    min-width: 0;
}

.compact-leg-airline strong {
    display: block;
    overflow: hidden;
    color: #111827;
    font-size: 14px;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.compact-leg-airline span {
    display: block;
    margin-top: 3px;
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
}

.compact-leg-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 28px;
    border-radius: 999px;
    background: #dbeafe;
    color: #1d4ed8;
    font-size: 12px;
    font-weight: 900;
}

.compact-leg-badge.return {
    background: #e0f2fe;
    color: #0284c7;
}

.compact-leg-time strong {
    display: block;
    color: #111827;
    font-size: 17px;
    font-weight: 900;
}

.compact-leg-time span {
    display: block;
    margin-top: 3px;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
}

.compact-leg-center {
    min-width: 0;
    text-align: center;
}

.compact-leg-center .route-line {
    margin: 5px 0;
}

.compact-leg-route {
    min-width: 0;
}

.compact-leg-path {
    color: #111827;
    font-size: 13px;
    font-weight: 900;
}

.compact-leg-meta {
    margin-top: 3px;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
}

.round-trip-price-block {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    padding-left: 18px;
    border-left: 1px solid #dbeafe;
    text-align: right;
}

.round-trip-price-detail {
    margin-top: 8px;
    color: #64748b;
    font-size: 12px;
    line-height: 1.5;
    font-weight: 700;
}

.arrival-next-day {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 4px;
    padding: 2px 6px;
    border-radius: 999px;
    background: #eff6ff;
    color: #2563eb;
    font-size: 11px;
    font-weight: 900;
    vertical-align: middle;
}

/* ================================
   Responsive
   ================================ */

@media (max-width: 1024px) {
    .flight-results-container {
        width: min(100% - 32px, 100%);
    }

    .result-layout-refactor {
        grid-template-columns: 1fr;
    }

    .results-search-route-row {
        grid-template-columns: 1fr;
    }

    .results-swap-area {
        justify-content: center;
    }

    .results-search-panel-refactor .airport-swap-btn {
        transform: rotate(90deg);
    }

    .results-search-condition-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .flight-option-card,
    .round-trip-option-card {
        grid-template-columns: 1fr;
    }

    .round-trip-price-block {
        align-items: flex-start;
        padding-left: 0;
        padding-top: 16px;
        border-left: 0;
        border-top: 1px solid #dbeafe;
        text-align: left;
    }

    .compact-trip-leg {
        grid-template-columns: 62px 120px 70px minmax(130px, 1fr) 80px;
    }
}

@media (max-width: 768px) {
    .results-summary-bar {
        grid-template-columns: 46px 1fr;
    }

    .results-summary-bar .compact-edit-text {
        grid-column: 1 / -1;
        width: 100%;
    }

    .results-search-condition-row {
        grid-template-columns: 1fr;
        padding: 18px;
    }

    .results-search-action-row {
        align-items: stretch;
        flex-direction: column;
    }

    .results-search-action-row .flight-search-btn {
        flex: none;
        width: 100%;
    }

    .result-header-refactor {
        align-items: flex-start;
        flex-direction: column;
    }

    .result-header-refactor .result-sort-box {
        width: 100%;
        justify-content: space-between;
    }

    .route-block {
        grid-template-columns: 1fr;
        text-align: left;
    }

    .route-center {
        text-align: left;
    }

    .segment-path {
        white-space: normal;
    }

    .price-block {
        text-align: left;
    }

    .compact-trip-leg {
        grid-template-columns: 1fr;
        align-items: flex-start;
    }

    .compact-leg-center {
        text-align: left;
    }

    .round-trip-title-row {
        flex-direction: column;
    }
}

@media (max-width: 576px) {
    .flight-results-container {
        width: min(100% - 24px, 100%);
    }

    .results-compact-hero {
        padding: 26px 0;
    }

    .results-search-panel-refactor {
        padding: 20px;
        border-radius: 24px;
    }

    .results-search-panel-header {
        flex-direction: column;
    }

    .flight-result-section {
        padding: 30px 0 66px;
    }

    .result-header-refactor h2 {
        font-size: 29px;
    }

    .filter-card-refactor {
        padding: 18px;
    }
}

/* ================================
   Filter Detail
   Collapsible Filter Section
   ================================ */

.filter-card-refactor {
    overflow: visible;
}

.filter-section {
    padding-top: 18px;
    border-top: 1px solid #e5e7eb;
}

.filter-section:first-of-type {
    padding-top: 0;
    border-top: 0;
}

.filter-section + .filter-section {
    margin-top: 18px;
}

.filter-section-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 28px;
    list-style: none;
    cursor: pointer;
}

.filter-section-summary::-webkit-details-marker {
    display: none;
}

.filter-section-summary span {
    color: #111827;
    font-size: 14px;
    font-weight: 900;
    word-break: keep-all;
}

.filter-section-summary::after {
    content: "⌄";
    display: inline-flex;
    align-items: end;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    color: #0f172a;
    font-size: 20px;
    font-weight: 900;
    transition: transform 0.16s ease, background 0.16s ease;
}

.filter-section[open] .filter-section-summary::after {
    transform: rotate(180deg);
}

.filter-section-summary:hover::after {
    background: #eff6ff;
    color: #2563eb;
}

.filter-section .filter-group {
    padding-top: 14px;
}

.filter-card-refactor .filter-group label {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 34px;
    margin-bottom: 8px;
    color: #475569;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    word-break: keep-all;
}

.filter-card-refactor .filter-group input[type="radio"],
.filter-card-refactor .filter-group input[type="checkbox"] {
    flex: 0 0 auto;
    width: 15px;
    height: 15px;
    accent-color: #2563eb;
}

.dynamic-filter-list {
    display: grid;
    gap: 8px;
    margin-top: 4px;
}

.filter-empty-text {
    display: block;
    color: #94a3b8;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.5;
}

/* ================================
   Time Range Slider
   Fixed Blue Range
   ================================ */

.time-range-filter-group {
    display: grid;
    gap: 22px;
}

.time-slider-block {
    display: grid;
    gap: 11px;
}

.time-slider-header {
    display: grid;
    gap: 4px;
}

.time-slider-header strong {
    color: #111827;
    font-size: 13px;
    font-weight: 900;
    word-break: keep-all;
}

.time-slider-header span {
    color: #475569;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.35;
    word-break: keep-all;
}

.range-slider-shell {
    position: relative;
    height: 32px;
    margin-top: 2px;
}

.range-slider-track {
    position: absolute;
    left: 0;
    right: 0;
    top: 15px;
    height: 3px;
    border-radius: 999px;
    background: #eff6ff;
    z-index: 1;
}

.range-slider-progress {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    border-radius: 999px;
    background: #2563eb;
}

.time-range-input {
    position: absolute;
    left: 0;
    top: 0;
    z-index: 2;
    width: 103%;
    height: 32px;
    margin: 0;
    padding: 0;
    background: transparent;
    pointer-events: none;
    appearance: none;
    -webkit-appearance: none;
}

.time-range-input::-webkit-slider-runnable-track {
    height: 3px;
    border: 0;
    background: transparent;
    appearance: none;
    -webkit-appearance: none;
}

.time-range-input::-moz-range-track {
    height: 3px;
    border: 0;
    background: transparent;
}

.time-range-input::-webkit-slider-thumb {
    width: 18px;
    height: 18px;
    margin-top: -7.5px;
    border: 3px solid #2563eb;
    border-radius: 50%;
    background: #ffffff;
    cursor: pointer;
    pointer-events: auto;
    appearance: none;
    -webkit-appearance: none;
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.22);
}

.time-range-input::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border: 3px solid #2563eb;
    border-radius: 50%;
    background: #ffffff;
    cursor: pointer;
    pointer-events: auto;
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.22);
}

.time-range-input:focus {
    outline: none;
}

.time-range-input:focus::-webkit-slider-thumb {
    box-shadow:
            0 0 0 4px rgba(37, 99, 235, 0.14),
            0 8px 18px rgba(37, 99, 235, 0.22);
}

.time-range-input:focus::-moz-range-thumb {
    box-shadow:
            0 0 0 4px rgba(37, 99, 235, 0.14),
            0 8px 18px rgba(37, 99, 235, 0.22);
}