.route-page {
    min-height: calc(100vh - 72px);
    overflow-x: hidden;
    background: #ffffff;
    color: #111827;
}

.route-wide-container {
    width: min(100% - 48px, 1440px);
    margin: 0 auto;
}

/* ================================
   Compact Hero
   ================================ */

.route-compact-hero {
    position: relative;
    overflow: hidden;
    padding: 42px 0 40px;
    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;
}

.route-compact-hero::before {
    display: none;
}

.route-compact-hero-inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.route-compact-hero .tm-eyebrow {
    color: #2563eb;
}

.route-compact-hero h1 {
    margin: 8px 0 10px;
    color: #111827;
    font-size: clamp(36px, 4.5vw, 56px);
    line-height: 1.16;
    letter-spacing: -0.06em;
    font-weight: 900;
    word-break: keep-all;
}

.route-compact-hero p {
    max-width: 780px;
    margin: 0;
    color: #475569;
    font-size: 16px;
    line-height: 1.8;
    font-weight: 700;
    word-break: keep-all;
}

.route-hero-mini-info {
    flex: 0 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 104px);
    gap: 10px;
}

.route-hero-mini-info div {
    padding: 15px 14px;
    border: 1px solid #bfdbfe;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 18px 46px rgba(37, 99, 235, 0.12);
    backdrop-filter: none;
}

.route-hero-mini-info strong {
    display: block;
    margin-bottom: 3px;
    color: #2563eb;
    font-size: 18px;
    font-weight: 900;
}

.route-hero-mini-info span {
    color: #475569;
    font-size: 13px;
    font-weight: 800;
}

/* ================================
   Workspace
   ================================ */

.route-workspace-section {
    padding: 32px 0 88px;
    background: #ffffff;
}

.route-workspace-layout {
    display: grid;
    grid-template-columns: 380px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.route-sidebar {
    position: static;
    top: auto;
    max-height: none;
    height: auto;
    overflow: visible;
    padding-right: 0;
}

.route-result-content {
    min-width: 0;
}

/* ================================
   Search Box
   ================================ */

.route-search-box {
    height: auto;
    max-height: none;
    overflow: visible;
    padding: 22px;
    border: 1px solid rgba(191, 219, 254, 0.9);
    border-radius: 24px;
    background:
            radial-gradient(circle at 100% 0%, rgba(40, 124, 255, 0.08), transparent 34%),
            rgba(255, 255, 255, 0.97);
    box-shadow: 0 22px 52px rgba(40, 124, 255, 0.14);
}

.route-search-header {
    padding-bottom: 18px;
    margin-bottom: 18px;
    border-bottom: 1px solid #dbeafe;
}

.route-search-header .tm-eyebrow,
.route-section-title .tm-eyebrow {
    color: #2563eb;
}

.route-search-header h2 {
    margin: 6px 0 6px;
    color: #111827;
    font-size: 26px;
    line-height: 1.25;
    letter-spacing: -0.04em;
    font-weight: 900;
}

.route-search-header p {
    margin: 0;
    color: #64748b;
    font-size: 14px;
    line-height: 1.65;
    font-weight: 700;
    word-break: keep-all;
}

.route-select-section {
    padding-top: 18px;
    border-top: 1px solid #eff6ff;
}

.route-select-section:first-of-type {
    padding-top: 0;
    border-top: 0;
}

.route-select-section + .route-select-section {
    margin-top: 18px;
}

.route-section-heading {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 12px;
}

.route-section-heading span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #eff6ff;
    color: #2563eb;
    font-size: 12px;
    font-weight: 900;
}

.route-section-heading h3 {
    margin: 0;
    color: #111827;
    font-size: 17px;
    font-weight: 900;
}

.route-select-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.route-airport-group {
    grid-column: 1 / -1;
}

.route-input-group {
    min-width: 0;
}

.route-input-group label {
    display: block;
    margin-bottom: 6px;
    color: #334155;
    font-size: 13px;
    font-weight: 900;
}

.route-input-group select {
    width: 100%;
    height: 44px;
    padding: 0 12px;
    border: 1px solid #dbe3ef;
    border-radius: 12px;
    background: #ffffff;
    color: #111827;
    outline: none;
    font-size: 14px;
    font-weight: 800;
}

.route-input-group select:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

/* ================================
   Date Range
   공용 calendar.css의 달력 팝업은 유지
   routes 화면의 input 모양만 보정
   ================================ */

.route-date-range-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 10px;
    width: 100%;
}

.route-date-range-grid .route-input-group {
    min-width: 0;
}

.route-input-group .route-calendar-input {
    width: 100%;
    max-width: 100%;
    height: 44px;
    padding: 0 12px;
    border: 1px solid #dbe3ef;
    border-radius: 12px;
    background: #ffffff;
    color: #111827;
    outline: none;
    font-size: 14px;
    font-weight: 800;
    line-height: 44px;
    box-sizing: border-box;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    box-shadow: none;
}

.route-input-group .route-calendar-input::placeholder {
    color: #94a3b8;
    font-weight: 800;
}

.route-input-group .route-calendar-input:hover {
    border-color: #bfdbfe;
    background: #f8fbff;
}

.route-input-group .route-calendar-input:focus {
    border-color: #2563eb;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

/* ================================
   Airport Radio
   ================================ */

.airport-radio-list {
    display: grid;
    gap: 8px;
}

.airport-radio-item {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 46px;
    padding: 10px 12px;
    border: 1px solid #dbeafe;
    border-radius: 13px;
    background: #ffffff;
    cursor: pointer;
    transition: border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.airport-radio-item:hover {
    border-color: #93c5fd;
    background: #eff6ff;
}

.airport-radio-item input {
    width: 15px;
    height: 15px;
    margin: 0;
    accent-color: #2563eb;
}

.airport-radio-item span {
    color: #111827;
    font-size: 14px;
    font-weight: 900;
    word-break: keep-all;
}

.airport-radio-item:has(input:checked) {
    border-color: #2563eb;
    background: #eff6ff;
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.08);
}

.airport-empty {
    margin: 0;
    min-height: 44px;
    padding: 12px;
    border: 1px dashed #bfdbfe;
    border-radius: 13px;
    background: #ffffff;
    color: #64748b;
    font-size: 13px;
    font-weight: 700;
}

/* ================================
   Search Actions
   ================================ */

.route-search-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid #dbeafe;
}

.route-search-button,
.route-reset-button,
.route-actions button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 14px;
    border: 0;
    border-radius: 12px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 900;
    cursor: pointer;
}

.route-search-button {
    background: rgb(40, 124, 255);
    box-shadow: 0 10px 24px rgba(40, 124, 255, 0.26);
}

.route-search-button:hover {
    background: rgb(21, 101, 235);
}

.route-reset-button {
    background: #475569;
}

.route-reset-button:hover {
    background: #334155;
}

/* ================================
   Result Header / Filter
   ================================ */

.route-result-section {
    min-width: 0;
}

.route-section-title {
    margin-bottom: 18px;
}

.route-section-title h2 {
    margin: 6px 0 6px;
    color: #111827;
    font-size: 34px;
    line-height: 1.2;
    letter-spacing: -0.05em;
    font-weight: 900;
}

.route-section-title p {
    margin: 0;
    color: #64748b;
    font-size: 15px;
    line-height: 1.7;
    font-weight: 700;
    word-break: keep-all;
}

.route-filter-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin: 14px 0 18px;
}

.route-filter-area {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
}

.route-time-filter-area {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex: 0 0 auto;
}

.route-time-filter-label {
    color: #475569;
    font-size: 13px;
    font-weight: 900;
    white-space: nowrap;
}

.route-time-slot-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.route-time-slot-button {
    min-height: 34px;
    padding: 0 13px;
    border: 1px solid #dbeafe;
    border-radius: 999px;
    background: #ffffff;
    color: #475569;
    font-size: 12px;
    font-weight: 900;
    cursor: pointer;
    transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.route-time-slot-button:hover {
    border-color: #93c5fd;
    background: #eff6ff;
    color: #2563eb;
}

.route-time-slot-button.active {
    border-color: #2563eb;
    background: #2563eb;
    color: #ffffff;
    box-shadow: 0 10px 22px rgba(37, 99, 235, 0.18);
}

.route-filter-button {
    min-height: 36px;
    padding: 0 14px;
    border: 1px solid #dbeafe;
    border-radius: 999px;
    background: #ffffff;
    color: #475569;
    font-size: 13px;
    font-weight: 900;
    cursor: pointer;
    transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.route-filter-button:hover {
    border-color: #93c5fd;
    background: #eff6ff;
    color: #2563eb;
}

.route-filter-button.active {
    border-color: rgb(40, 124, 255);
    background: rgb(40, 124, 255);
    color: #ffffff;
    box-shadow: 0 10px 22px rgba(40, 124, 255, 0.22);
}

.route-list {
    display: grid;
    gap: 16px;
}

/* ================================
   Route Card
   ================================ */

.route-card {
    padding: 22px;
    border: 1px solid rgba(191, 219, 254, 0.95);
    border-radius: 24px;
    background:
            radial-gradient(circle at 100% 0%, rgba(40, 124, 255, 0.08), transparent 38%),
            rgba(255, 255, 255, 0.98);
    box-shadow: 0 18px 42px rgba(40, 124, 255, 0.12);
    transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.route-card:hover {
    transform: translateY(-2px);
    border-color: rgba(40, 124, 255, 0.55);
    box-shadow: 0 24px 54px rgba(40, 124, 255, 0.18);
}

.route-card-header {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.route-code {
    margin: 0 0 6px;
    color: #2563eb;
    font-size: 14px;
    font-weight: 900;
}

.route-card h3 {
    margin: 0;
    color: #111827;
    font-size: 27px;
    font-weight: 900;
    line-height: 1.3;
    letter-spacing: -0.045em;
    word-break: keep-all;
}

.route-badges {
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    justify-content: flex-end;
    gap: 8px;
}

.route-badge {
    display: inline-flex;
    align-items: center;
    height: 31px;
    padding: 0 11px;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 12px;
    font-weight: 900;
}

.route-airports {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 14px;
}

.route-airports p {
    margin: 0;
    padding: 15px;
    border: 1px solid #dbeafe;
    border-radius: 15px;
    background: #f8fbff;
    color: #475569;
    font-size: 15px;
    line-height: 1.6;
    font-weight: 700;
    word-break: keep-all;
}

.route-airports strong {
    display: block;
    margin-bottom: 5px;
    color: #111827;
    font-size: 13px;
    font-weight: 900;
}

/* ================================
   Route Stats
   ================================ */

.route-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 16px;
}

.route-stats div {
    min-width: 0;
    padding: 15px;
    border: 1px solid #dbeafe;
    border-radius: 15px;
    background: #f8fbff;
}

.route-stats span {
    display: block;
    margin-bottom: 6px;
    color: #64748b;
    font-size: 13px;
    font-weight: 900;
    line-height: 1.35;
    word-break: keep-all;
}

.route-stats strong {
    display: block;
    color: #111827;
    font-size: 17px;
    font-weight: 900;
    line-height: 1.35;
    word-break: keep-all;
}

.route-stats em {
    display: block;
    margin-top: 5px;
    color: rgb(40, 124, 255);
    font-size: 12px;
    font-style: normal;
    font-weight: 900;
    line-height: 1.35;
    word-break: keep-all;
}

/* ================================
   Route Actions
   ================================ */

.route-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.route-actions .route-search-link {
    background: rgb(40, 124, 255);
}

.route-actions .route-search-link:hover {
    background: rgb(21, 101, 235);
}

.route-actions .route-lowest-link {
    background: #0f766e;
}

.route-actions .route-lowest-link:hover {
    background: #0d5f59;
}

/* ================================
   Empty / Error
   ================================ */

.route-error,
.route-empty {
    padding: 34px 24px;
    border: 1px dashed #bfdbfe;
    border-radius: 22px;
    background: #ffffff;
    color: #64748b;
    text-align: center;
    font-size: 14px;
    font-weight: 700;
}

/* ================================
   Responsive
   ================================ */

@media (max-width: 1199px) {
    .route-workspace-layout {
        grid-template-columns: 350px minmax(0, 1fr);
        gap: 20px;
    }

    .route-wide-container {
        width: min(100% - 32px, 1200px);
    }

    .route-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 991px) {
    .route-compact-hero-inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .route-hero-mini-info {
        width: 100%;
        grid-template-columns: repeat(3, 1fr);
    }

    .route-workspace-layout {
        display: block;
    }

    .route-sidebar {
        position: static;
        max-height: none;
        overflow: visible;
        padding-right: 0;
        margin-bottom: 24px;
    }

    .route-airports {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .route-wide-container {
        width: min(100% - 24px, 100%);
    }

    .route-compact-hero {
        padding: 34px 0;
    }

    .route-compact-hero h1 {
        font-size: 32px;
    }

    .route-compact-hero p {
        font-size: 14px;
        line-height: 1.75;
    }

    .route-hero-mini-info {
        grid-template-columns: 1fr;
    }

    .route-workspace-section {
        padding: 24px 0 64px;
    }

    .route-search-box {
        padding: 18px;
    }

    .route-select-grid,
    .route-date-range-grid {
        grid-template-columns: 1fr;
    }

    .route-airport-group {
        grid-column: auto;
    }

    .route-search-actions {
        grid-template-columns: 1fr;
    }

    .route-section-title h2 {
        font-size: 28px;
    }

    .route-card {
        padding: 18px;
    }

    .route-card-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .route-badges {
        justify-content: flex-start;
    }

    .route-card h3 {
        font-size: 23px;
    }

    .route-stats {
        grid-template-columns: 1fr;
    }

    .route-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .route-actions button {
        width: 100%;
    }
}