/* Search Results Page Styles */

.search-results-page {
    min-height: 100vh;
    background-color: #FFF8F5;
    padding-bottom: 60px;
}

/* Header Section - Figma: Rectangle 90 + Search Again + route/date + strip */
.search-results-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: linear-gradient(90deg, #000065 0%, #FF8F2D 100%);
    min-height: 69px;
    display: flex;
    flex-direction: column;
}

.search-results-header-inner {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 14px 20px;
    min-height: 69px;
    box-sizing: border-box;
    max-width: 1280px;
    margin: 0 auto;
    width: 100%;
}

/* Search Again button - Figma: Rectangle 92 */
.search-again-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    height: 40px;
    padding: 0 16px;
    border: 1px solid #FFFFFF;
    border-radius: 5px;
    background: transparent;
    color: #FFFFFF;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-style: normal;
    font-weight: 500;
    font-size: 15px;
    line-height: 18px;
    text-decoration: none;
    flex-shrink: 0;
    transition: background 0.2s ease, color 0.2s ease;
}

.search-again-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #FFFFFF;
}

.search-again-btn i {
    font-size: 18px;
    flex-shrink: 0;
}

/* Route and date text - Figma */
.search-results-route-info {
    flex: 1;
    min-width: 0;
}

.search-results-route-text {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-style: normal;
    font-weight: 500;
    font-size: 15px;
    line-height: 18px;
    color: #FFFFFF;
}

.search-results-date-text {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 11px;
    line-height: 13px;
    color: #FFFFFF;
    margin-top: 2px;
}

.search-results-header-actions {
    flex-shrink: 0;
}

/* Filter button on gradient bar */
.search-results-header .filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: transparent;
    border: 1px solid #FFFFFF;
    border-radius: 5px;
    color: #FFFFFF;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 15px;
    font-weight: 500;
    transition: background 0.2s ease;
}

.search-results-header .filter-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #FFFFFF;
}

.search-results-header .filter-btn i {
    font-size: 16px;
}

/* Strip below header - Figma: Rectangle 137 */
.search-results-header-strip {
    width: 100%;
    height: 10px;
    background: #030264;
}

/* Date Selection Section - Figma: Rectangle 93 etc. 61×72px, #FFF8F5, selected #FFF + #000065 */
.date-selection-section {
    background-color: #FFF8F5;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    padding: 20px 0;
    position: relative;
}

.date-selection-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

.date-buttons-wrapper {
    display: flex;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    padding: 10px 0;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}

.date-buttons-wrapper::-webkit-scrollbar {
    height: 4px;
}

.date-buttons-wrapper::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.date-buttons-wrapper::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 2px;
}

/* Figma: 61×72px, background #FFF8F5, border 1px #000, radius 5px; day name above date number */
.date-btn {
    box-sizing: border-box;
    width: 61px;
    min-width: 61px;
    height: 72px;
    padding: 8px 0;
    background: #FFF8F5;
    border: 1px solid #000000;
    border-radius: 5px;
    color: #000000;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    flex-shrink: 0;
}

.date-day {
    font-style: normal;
    font-weight: 500;
    font-size: 15px;
    line-height: 18px;
    color: #000000;
}

.date-number {
    font-style: normal;
    font-weight: 800;
    font-size: 24px;
    line-height: 29px;
    color: inherit;
}

.date-btn:hover {
    background: #fff0e8;
    border-color: #000000;
}

/* Figma selected: #FFFFFF background, 1px solid #000065 */
.date-btn.active {
    background: #FFFFFF;
    border: 1px solid #000065;
    color: #000000;
}

.date-btn.active:hover {
    background: #FFFFFF;
    border-color: #000065;
}

.selected-date-display {
    text-align: center;
    margin-top: 12px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #333333;
}

/* Route Info Section */
.route-info-section {
    background-color: #ffffff;
    /* border-bottom: 1px solid #e0e0e0; */
    /* padding: 20px 0; */
}

.route-info-card {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.route-name-header {
    margin-bottom: 16px;
    text-align: center;
}

.route-name-title {
    font-size: 20px;
    font-weight: 700;
    color: #000065;
    margin: 0;
}

.route-from-to {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 16px;
}

.route-stations-section,
.route-fares-section {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e0e0e0;
}

/* Route Info Section */
.route-info-section {
    display: flex;
    flex-direction: column;
    /* gap: 16px; */
    /* margin-bottom: 8px; */
}

.route-info-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 700;
    color: #000065;
    text-align: center;
    padding-bottom: 12px;
    /* border-bottom: 2px solid #e8e8e8; */
    margin-bottom: 4px;
}

.route-info-label i {
    font-size: 18px;
}

.route-stations-list {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: row;
    gap: 8px;
}

.route-station-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    background-color: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
}

.station-name {
    font-size: 14px;
    font-weight: 600;
    color: #666666;
}

.route-station-badge {
    display: inline-block;
    padding: 6px 12px;
    background-color: #ffffff;
    border: 1px solid #000065;
    border-radius: 16px;
    font-size: 13px;
    font-weight: 500;
    color: #000065;
}

.route-fares-list {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.route-fare-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    background-color: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    gap: 4px;
}

.fare-category {
    font-size: 14px;
    font-weight: 600;
    color: #666666;
}

.fare-price {
    font-size: 16px;
    font-weight: 700;
    color: #000065;
}

.route-seats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
    margin-bottom: 12px;
}

.route-seat-item {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 10px;
    background-color: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    gap: 5px;
}

.seat-category {
    font-size: 12px;
    font-weight: 600;
    color: #666666;
    text-transform: uppercase;
}

.seat-count {
    font-size: 14px;
    font-weight: 700;
    color: #000065;
}

.route-location {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.route-icon {
    font-size: 24px;
    color: #000065;
}

.route-location-label {
    font-size: 12px;
    color: #666666;
    font-weight: 500;
    text-transform: uppercase;
}

.route-location-name {
    font-size: 16px;
    font-weight: 700;
    color: #000000;
    margin-top: 4px;
}

.route-arrow {
    color: #000065;
    font-size: 24px;
}

/* Search Results Content */
.search-results-content {
    padding: 20px 0;
    background-color: #FFF8F5;
}

.search-results-content .container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.route-cards-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 1031px;
    margin: 0 auto;
}

/* Figma: Rectangle 91 - card 1031×171, white, border 0.5px #9D8F8F, shadow, radius 5px */
.route-card {
    box-sizing: border-box;
    background: #FFFFFF;
    border: 0.5px solid #9D8F8F;
    box-shadow: 0px 2px 4px 1px rgba(0, 0, 0, 0.25);
    border-radius: 5px;
    overflow: hidden;
    min-height: 171px;
}

.route-card-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    min-height: 171px;
}

/* First row (Figma): full width, left = service label, right = all seat categories in one row */
.route-card-first-row {
    display: flex;
    flex-basis: 100%;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 20px 12px;
    box-sizing: border-box;
    border-bottom: 1px solid rgba(157, 143, 143, 0.3);
    min-height: 0;
}

.route-card-first-row .route-card-service-label {
    margin-top: 0;
    text-align: left;
    flex-shrink: 0;
    max-width: 320px;
}

.route-card-first-row .route-card-seats-row {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    padding: 0;
    min-width: 0;
    flex: 1;
}

/* Left: Logo only (second row) - Figma Sky-ways-logo 104×54 */
.route-card-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px 12px;
    flex-shrink: 0;
    min-width: 0;
    max-width: 180px;
}

.route-card-logo {
    width: 104px;
    height: 54px;
    object-fit: contain;
    flex-shrink: 0;
}

.route-card-service-label {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 17px;
    line-height: 21px;
    color: #1E1E1E;
    margin-top: 6px;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

/* Times and locations - Figma: row with dep | dots | arr */
.route-card-times {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    min-width: 0;
    flex: 1;
    flex-shrink: 0;
}

.route-card-time-block {
    display: flex;
    flex-direction: column;
}

.route-card-time {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 20px;
    line-height: 24px;
    color: #000000;
}

.route-card-location {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 16px;
    line-height: 19px;
    letter-spacing: 0.05em;
    color: #2F2D2D;
    margin-top: 2px;
}

/* Center area: dot line with travel/distance badge in middle - Figma 276×21 dot line, Rectangle 139 175×39 */
.route-card-connector {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    min-width: 0;
    gap: 0;
}

/* Dots left/right of badge - Figma: Inter 600 14px/17px color #615858 */
.route-card-connector-dots {
    flex: 1;
    min-width: 20px;
    font-family: 'Inter', sans-serif;
    font-style: normal;
    font-weight: 600;
    font-size: 14px;
    line-height: 17px;
    color: #615858;
    white-space: nowrap;
    overflow: hidden;
}

.route-card-connector-dots:first-of-type {
    text-align: right;
}

.route-card-connector-dots:last-of-type {
    text-align: left;
}

/* Travel + distance badge - Figma Rectangle 139 175×39 #EFF6FF, centered on dot line */
.route-card-connector .route-card-badge,
.route-card-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 175px;
    min-width: 120px;
    max-width: 175px;
    height: 39px;
    padding: 0 12px;
    box-sizing: border-box;
    background: #EFF6FF;
    border-radius: 5px;
    font-family: 'Inter', sans-serif;
    font-style: normal;
    font-weight: 600;
    font-size: 14px;
    line-height: 17px;
    letter-spacing: 0.05em;
    color: #1E1E1E;
    flex-shrink: 0;
}

/* Seats row: one [badge + type btn] per category in one horizontal row - Figma */
.route-card-seats-row {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 8px;
    min-width: 0;
}

.route-card-seats-pair {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.route-card-seats-badge {
    width: 117px;
    min-width: 90px;
    padding: 10px 12px;
    border-radius: 5px;
    text-align: center;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 13px;
    line-height: 16px;
    color: #1E1E1E;
    box-sizing: border-box;
}

/* Seats left badge: light background per category (matches dark button) */
.route-card-seats-badge.business {
    background: #FBF5E4;
    color: #1E1E1E;
}

.route-card-seats-badge.executive {
    background: #1F5EFF26;
    color: #1E1E1E;
}

.route-card-seats-badge.standard {
    background: #E8F5E9;
    color: #1E1E1E;
}

.route-card-seats-badge.sleeper {
    background: #F3E5F5;
    color: #1E1E1E;
}

.route-card-seats-badge.few {
    background: rgba(31, 94, 255, 0.15);
}

.route-card-seats-badge.sold-out {
    background: #D32F2F;
    color: #FFFFFF;
    font-size: 14px;
    line-height: 17px;
}

.route-card-type-btn {
    width: 117px;
    min-width: 90px;
    padding: 10px 12px;
    border-radius: 5px;
    text-align: center;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 16px;
    line-height: 19px;
    box-sizing: border-box;
}

/* Category button: dark color per category (matches light badge) */
.route-card-type-btn.business {
    background: #E6BA66;
    color: #1E1E1E;
}

.route-card-type-btn.executive {
    background: #1F5EFF;
    color: #FFFFFF;
}

.route-card-type-btn.standard {
    background: #2E7D32;
    color: #FFFFFF;
}

.route-card-type-btn.sleeper {
    background: #6A1B9A;
    color: #FFFFFF;
}

/* Legacy/fallback: economy same as executive (blue) */
.route-card-seats-badge.economy {
    background: #1F5EFF26;
    color: #1E1E1E;
}

.route-card-type-btn.economy {
    background: #1F5EFF;
    color: #FFFFFF;
}

/* Right: Price + BOOK NOW - Figma Rectangle 102 181×85 rgba(141,141,153,0.21), Rectangle 106 181×87 #030264 */
.route-card-right {
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    width: 181px;
    margin-left: auto;
}

.route-card-price-block {
    height: 85px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(141, 141, 153, 0.21);
    border-radius: 0 5px 0 0;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 25px;
    line-height: 30px;
    color: #000000;
}

.route-card-book-block {
    height: 87px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #030264;
    border-radius: 0 0 5px 0;
}

.route-card-book-block.sold-out {
    background: #D32F2F;
}

.route-card-book-btn {
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    font-size: 23px;
    line-height: 28px;
    color: #FFFFFF;
    text-decoration: none;
}

.route-card-book-btn:hover {
    color: #FFFFFF;
    opacity: 0.9;
}

.route-card-book-text {
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    font-size: 23px;
    line-height: 28px;
    color: #FFFFFF;
}

/* No Results Message */
.no-results-message,
.no-route-message {
    padding: 60px 20px;
    text-align: center;
}

.no-results-icon,
.no-route-icon {
    font-size: 64px;
    color: #cccccc;
    margin-bottom: 20px;
}

.no-results-message h3,
.no-route-card h3 {
    font-size: 24px;
    font-weight: 700;
    color: #000000;
    margin-bottom: 12px;
}

.no-results-message p,
.no-route-card p {
    font-size: 16px;
    color: #666666;
    margin-bottom: 8px;
}

.no-route-message .container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.no-route-card {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 40px;
    max-width: 600px;
    margin: 0 auto;
}

.btn-back-home {
    display: inline-flex;
    align-items: center;
    margin-top: 24px;
    padding: 12px 24px;
    background-color: #000065;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-back-home:hover {
    background-color: #000080;
    color: #ffffff;
}

/* ========== Tablet (992px and below) ========== */
@media (max-width: 992px) {
    .search-results-header-inner {
        padding: 12px 16px;
        gap: 16px;
    }
    .search-results-route-text {
        font-size: 14px;
        line-height: 17px;
    }
    .search-results-date-text {
        font-size: 10px;
    }
    .search-results-content .container {
        padding: 0 16px;
    }
    .search-results-content {
        padding: 16px 0;
    }
    .route-cards-list {
        gap: 12px;
    }
    .route-card,
    .route-card-inner {
        min-height: auto;
    }
    .route-card-first-row {
        padding: 12px 16px 10px;
        gap: 12px;
    }
    .route-card-first-row .route-card-service-label {
        max-width: 260px;
        font-size: 16px;
    }
    .route-card-times {
        padding: 10px 12px;
        gap: 10px;
    }
    .route-card-connector .route-card-badge,
    .route-card-badge {
        width: 140px;
        min-width: 100px;
        font-size: 13px;
        padding: 8px 10px;
        height: 36px;
    }
    .route-card-right {
        width: 160px;
    }
    .route-card-price-block {
        height: 70px;
        font-size: 22px;
    }
    .route-card-book-block {
        height: 64px;
    }
    .route-card-book-btn,
    .route-card-book-text {
        font-size: 18px;
    }
}

/* ========== Tablet portrait / large phone (768px and below) ========== */
@media (max-width: 768px) {
    .search-results-header-inner {
        padding: 10px 12px;
        gap: 12px;
        min-height: 56px;
    }
    .search-results-header {
        min-height: 56px;
    }
    .search-again-btn {
        padding: 0 12px;
        height: 36px;
        font-size: 14px;
    }
    .search-again-btn span {
        display: none;
    }
    .search-again-btn i {
        font-size: 20px;
    }
    .search-results-route-text {
        font-size: 13px;
        line-height: 16px;
    }
    .search-results-date-text {
        font-size: 10px;
    }
    .search-results-header .filter-btn {
        padding: 6px 12px;
        font-size: 14px;
    }
    .date-selection-inner {
        padding: 0 12px;
    }
    .date-selection-section {
        padding: 16px 0;
    }
    .search-results-content .container {
        padding: 0 12px;
    }
    .search-results-content {
        padding: 14px 0;
    }
    .search-results-title {
        font-size: 18px;
    }
    .date-btn {
        width: 56px;
        min-width: 56px;
        height: 66px;
    }
    
    .date-number {
        font-size: 22px;
        line-height: 27px;
    }
    
    .route-name-title {
        font-size: 18px;
    }
    
    .route-stations-list,
    .route-fares-list {
        gap: 6px;
    }
    
    .route-station-badge,
    .route-fare-badge {
        font-size: 12px;
        padding: 4px 10px;
    }
    
    .route-from-to {
        flex-direction: column;
        gap: 16px;
    }
    
    .route-arrow {
        transform: rotate(90deg);
    }
    
    .bus-image-left,
    .bus-image-right {
        width: 38px;
        height: 38px;
    }
    
    .route-seats-section {
        align-items: center;
    }
    
    .route-seats-categories {
        align-items: flex-start;
    }
    
    .route-card-inner {
        flex-wrap: wrap;
    }

    .route-card-first-row {
        padding: 12px 16px 10px;
        gap: 12px;
    }

    .route-card-first-row .route-card-service-label {
        max-width: 240px;
        font-size: 15px;
    }

    .route-card-first-row .route-card-seats-row {
        gap: 6px;
    }

    .route-card-left {
        padding: 12px 8px;
    }

    .route-card-logo {
        width: 80px;
        height: 42px;
    }

    .route-card-service-label {
        font-size: 15px;
    }

    .route-card-time {
        font-size: 18px;
    }

    .route-card-location {
        font-size: 14px;
    }
    .route-card-times {
        padding: 10px 12px;
        gap: 8px;
    }
    .route-card-connector .route-card-badge,
    .route-card-badge {
        width: 120px;
        min-width: 90px;
        font-size: 12px;
        padding: 6px 8px;
        height: 34px;
    }
    .route-card-connector-dots {
        min-width: 12px;
        font-size: 12px;
    }
    .route-card-seats-badge,
    .route-card-type-btn {
        width: 100px;
        min-width: 80px;
        padding: 8px 10px;
        font-size: 13px;
    }
    .route-card-right {
        width: 100%;
        flex-basis: 100%;
        flex-direction: row;
        margin-left: 0;
        margin-top: 0;
        border-radius: 0 0 5px 0;
    }
    .route-card-price-block {
        flex: 1;
        height: 56px;
        font-size: 20px;
        border-radius: 0 0 0 5px;
    }
    .route-card-book-block {
        flex: 1;
        height: 56px;
        border-radius: 0 0 5px 0;
    }
    .route-card-book-btn,
    .route-card-book-text {
        font-size: 18px;
    }
    .no-results-message {
        padding: 32px 20px;
    }
    .no-results-message h3 {
        font-size: 20px;
    }
    .no-results-message p {
        font-size: 14px;
    }
    .no-route-card {
        padding: 28px 24px;
    }
    .no-route-card h3 {
        font-size: 20px;
    }
    .no-route-card p {
        font-size: 14px;
    }
    .no-route-message .container {
        padding: 0 12px;
    }
}

/* ========== Mobile (576px): same layout as tablet, smaller content and buttons ========== */
@media (max-width: 576px) {
    .search-results-header-inner {
        padding: 8px 10px;
        gap: 8px;
        min-height: 48px;
    }
    .search-results-header {
        min-height: 48px;
    }
    .search-results-header-strip {
        height: 6px;
    }
    .search-results-route-text {
        font-size: 11px;
        line-height: 14px;
    }
    .search-results-date-text {
        font-size: 9px;
        line-height: 11px;
    }
    .search-results-title {
        font-size: 16px;
    }
    .search-again-btn {
        height: 32px;
        padding: 0 10px;
        font-size: 13px;
    }
    .search-results-header .filter-btn {
        padding: 6px 10px;
        font-size: 13px;
    }
    .filter-btn span {
        display: none;
    }
    .search-results-content .container {
        padding: 0 10px;
    }
    .search-results-content {
        padding: 12px 0 40px;
    }
    .date-selection-section {
        padding: 10px 0;
    }
    .date-selection-inner {
        padding: 0 10px;
    }
    .date-buttons-wrapper {
        gap: 6px;
        padding: 6px 0;
    }
    .date-btn {
        width: 48px;
        min-width: 48px;
        height: 56px;
        padding: 6px 0;
        gap: 2px;
    }
    .date-day {
        font-size: 12px;
        line-height: 14px;
    }
    .date-number {
        font-size: 18px;
        line-height: 22px;
    }
    .selected-date-display {
        font-size: 12px;
        margin-top: 8px;
    }
    .route-cards-list {
        gap: 10px;
    }
    /* Card: same structure as tablet, smaller sizes */
    .route-card,
    .route-card-inner {
        min-height: auto;
    }
    .route-card-first-row {
        padding: 10px 12px 8px;
        gap: 8px;
    }
    .route-card-first-row .route-card-service-label {
        max-width: 200px;
        font-size: 13px;
        line-height: 16px;
    }
    .route-card-first-row .route-card-seats-row {
        gap: 6px;
    }
    .route-card-seats-badge,
    .route-card-type-btn {
        width: 82px;
        min-width: 72px;
        padding: 6px 8px;
        font-size: 11px;
        line-height: 14px;
    }
    .route-card-left {
        padding: 10px 8px;
    }
    .route-card-logo {
        width: 56px;
        height: 30px;
    }
    .route-card-time {
        font-size: 14px;
        line-height: 18px;
        font-variant-numeric: tabular-nums;
    }
    .route-card-time-block .route-card-time {
        letter-spacing: -0.02em;
    }
    .route-card-location {
        font-size: 11px;
        line-height: 14px;
        margin-top: 1px;
    }
    .route-card-times {
        padding: 8px 10px;
        gap: 6px;
    }
    .route-card-connector .route-card-badge,
    .route-card-badge {
        width: 90px;
        min-width: 72px;
        max-width: 110px;
        height: 28px;
        font-size: 10px;
        line-height: 14px;
        padding: 4px 6px;
    }
    .route-card-connector-dots {
        min-width: 8px;
        font-size: 10px;
    }
    .route-card-right {
        width: 100%;
        flex-basis: 100%;
        flex-direction: row;
        margin-left: 0;
        margin-top: 0;
    }
    .route-card-price-block {
        flex: 1;
        height: 48px;
        font-size: 16px;
        line-height: 20px;
        border-radius: 0 0 0 5px;
    }
    .route-card-book-block {
        flex: 1;
        height: 48px;
        border-radius: 0 0 5px 0;
    }
    .route-card-book-btn,
    .route-card-book-text {
        font-size: 14px;
        line-height: 18px;
    }
    .no-results-message {
        padding: 24px 16px;
    }
    .no-results-message h3 {
        font-size: 18px;
    }
    .no-results-message p {
        font-size: 13px;
    }
    .no-route-card {
        padding: 24px 20px;
    }
    .no-route-card h3 {
        font-size: 18px;
    }
    .no-route-card p {
        font-size: 13px;
    }
    .no-route-message .container {
        padding: 0 10px;
    }
    .btn-back-home {
        padding: 10px 20px;
        font-size: 14px;
        margin-top: 16px;
    }
}

/* ========== Smaller mobile (480px): further reduced sizes ========== */
@media (max-width: 480px) {
    .route-card-logo {
        width: 48px;
        height: 26px;
    }
    .route-card-time {
        font-size: 12px;
        line-height: 16px;
    }
    .route-card-location {
        font-size: 10px;
        line-height: 13px;
    }
    .route-card-connector .route-card-badge,
    .route-card-badge {
        width: 80px;
        min-width: 64px;
        max-width: 100px;
        height: 26px;
        font-size: 9px;
        line-height: 12px;
        padding: 3px 6px;
    }
    .route-card-first-row .route-card-service-label {
        font-size: 12px;
        max-width: 160px;
    }
    .route-card-seats-badge,
    .route-card-type-btn {
        width: 72px;
        min-width: 64px;
        padding: 5px 6px;
        font-size: 10px;
    }
    .route-card-price-block {
        height: 44px;
        font-size: 14px;
    }
    .route-card-book-block {
        height: 44px;
    }
    .route-card-book-btn,
    .route-card-book-text {
        font-size: 12px;
        line-height: 16px;
    }
}

/* Filter Modal Styles */
.filter-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
}

.filter-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.filter-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
}

.filter-modal-content {
    position: relative;
    background-color: #ffffff;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    z-index: 1001;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.filter-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #e0e0e0;
}

.filter-modal-title {
    font-size: 20px;
    font-weight: 700;
    color: #000000;
    margin: 0;
}

.filter-modal-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: none;
    background-color: transparent;
    color: #666666;
    font-size: 20px;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.filter-modal-close:hover {
    background-color: #f5f5f5;
    color: #000000;
}

.filter-modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

.filter-section {
    margin-bottom: 24px;
}

.filter-section:last-child {
    margin-bottom: 0;
}

.filter-section-title {
    font-size: 16px;
    font-weight: 600;
    color: #000000;
    margin-bottom: 12px;
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.filter-checkbox-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: background-color 0.2s ease;
}

.filter-checkbox-label:hover {
    background-color: #f8f9fa;
}

.filter-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #000065;
    flex-shrink: 0;
}

.filter-checkbox-text {
    font-size: 14px;
    font-weight: 400;
    color: #333333;
    user-select: none;
}

.filter-modal-footer {
    display: flex;
    gap: 12px;
    padding: 20px 24px;
    border-top: 1px solid #e0e0e0;
}

.btn-filter-clear,
.btn-filter-apply {
    flex: 1;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-filter-clear {
    background-color: #f5f5f5;
    color: #000000;
}

.btn-filter-clear:hover {
    background-color: #e0e0e0;
}

.btn-filter-apply {
    background-color: #000065;
    color: #ffffff;
}

.btn-filter-apply:hover {
    background-color: #000080;
}

/* Responsive adjustments for filter modal */
@media (max-width: 768px) {
    .filter-modal-content {
        width: 95%;
        max-height: 85vh;
    }
    .filter-modal-header {
        padding: 16px 20px;
    }
    .filter-modal-body {
        padding: 20px;
    }
    .filter-modal-footer {
        padding: 16px 20px;
        flex-direction: column;
    }
    .btn-filter-clear,
    .btn-filter-apply {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .filter-modal-content {
        width: 100%;
        max-width: 100%;
        max-height: 90vh;
        border-radius: 12px 12px 0 0;
        margin-top: auto;
    }
    .filter-modal-header {
        padding: 12px 14px;
    }
    .filter-modal-title {
        font-size: 16px;
    }
    .filter-modal-close {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    .filter-modal-body {
        padding: 14px 16px;
    }
    .filter-section {
        margin-bottom: 18px;
    }
    .filter-section-title {
        font-size: 14px;
        margin-bottom: 10px;
    }
    .filter-checkbox-text {
        font-size: 13px;
    }
    .filter-checkbox {
        width: 16px;
        height: 16px;
    }
    .filter-modal-footer {
        padding: 12px 14px;
        gap: 8px;
    }
    .btn-filter-clear,
    .btn-filter-apply {
        padding: 12px 18px;
        font-size: 14px;
    }
}

/* Touch-friendly: minimum tap target size */
@media (max-width: 768px) {
    .date-btn {
        min-height: 44px;
    }
    .search-again-btn,
    .search-results-header .filter-btn {
        min-height: 44px;
    }
    .route-card-book-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 44px;
    }
}

@media (max-width: 576px) {
    .date-btn {
        min-height: 44px;
    }
    .search-again-btn,
    .search-results-header .filter-btn {
        min-height: 40px;
    }
    .route-card-book-btn {
        min-height: 44px;
    }
}

