

@media only screen and (max-width: 768px) {
  .tally_express_search_route_icon_wrapper{
    display: none;
  }
  .tally_express_search_route_city_section{
    width: 45%;
  }
  .tally_express_search_route_city_section_right{
    width: 45%;
  }
}


@media (min-width:0px) {
    .tally-express-date-route_title{
        display: flex;
        align-items: center;
        justify-content: space-between;
        font-weight: 600;
        border-radius: 5px;
    }
    .tally-express-date-return-route-title {
        display: flex;
        align-items: center;
        justify-content: space-between;
        font-weight: 600;
        border-radius: 5px;
    }

    .tally_express_departure_bus_lists_holder{
        background-color: #fff;
        margin-bottom: 20px;
        border-radius: 5px;
    }

    .tally_express_return_bus_lists_holder{
        background-color: #fff;
        margin-bottom: 20px;
        border-radius: 5px;
    }
    .tally_express_bus_list_area{
        padding:10px;
    }
    #tally_express_return_container .tally-express-date-suggetion{
        margin: 10px;
    }
    .tally_express_search_route_container {
        display: flex;
        align-items: center;
        border-radius: 4px;
        width: 100%;
        font-family: Arial, sans-serif;
        border: 1px solid #e3dfdf;
    }

    .tally_express_search_route_return_date {
        padding:10px;
        text-align: left;
        height: 100%;
        min-width: 120px;
    }

    .tally_express_selected_bus_payment{
        display: flex;
        flex-direction: column;
    }

    .tally_express_icon_margin{
        margin: unset !important;
        margin-left: 5px !important;
    }

    .tally_express_search_route_label {
        color: var(--tally_express_color_theme);
        font-size: 14px;
        font-weight: 700;
        margin-bottom: 3px;
    }

    .tally_express_search_route_date {
        font-size: 12px;
        font-weight: 500;
        color: #000;
    }

    #start_bus{
        margin-top: 15px;
    }

    .tally_express_bus_tab_wrapper {
        display: flex;
        gap: 12px;
        padding: 2px;
    }

    .tally_express_bus_tab_wrapper .tally_express_start_route,
    .tally_express_bus_tab_wrapper .tally_express_return_route {
        flex: 1;
        padding: 14px 18px;
        text-align: center;
        font-size: 15px;
        font-weight: 600;
        color: #555;
        cursor: pointer;
        border-radius: 12px;
        position: relative;
        transition: all 0.35s ease;
        background: transparent;
        letter-spacing: 0.3px;
    }

    .tally_express_bus_tab_wrapper .tally_express_start_route::before,
    .tally_express_bus_tab_wrapper .tally_express_return_route::before {
        content: "🚐";
        margin-right: 8px;
        opacity: 0.7;
    }

    .tally_express_bus_tab_wrapper .tally_express_start_route:hover,
    .tally_express_bus_tab_wrapper .tally_express_return_route:hover {
        background: rgba(0, 0, 0, 0.05);
        color: #222;
    }

    .tally_express_bus_tab_wrapper .tally_express_tab_active {
        background: linear-gradient(135deg, #c7d2fe, #a5b4fc);
        color: #1e1b4b;
        box-shadow: 0 6px 16px rgba(165, 180, 252, 0.4);
    }

    .tally_express_bus_tab_wrapper .tally_express_tab_active::before {
        opacity: 1;
    }

    .tally_express_bus_tab_wrapper .tally_express_tab_active::after {
        content: "";
        position: absolute;
        left: 20%;
        right: 20%;
        bottom: 6px;
        height: 3px;
        background: rgba(255, 255, 255, 0.8);
        border-radius: 10px;
    }


    .tally_express_search_route_day {
        font-size: 14px;
        color: #5f6368;
    }

    .tally_express_search_route_cities_wrapper {
        display: flex;
        flex-grow: 1;
        align-items: center;
        padding:10px;
    }

    .tally_express_search_route_city_section {
        padding:10px;
        width: 33%;
    }
    .tally_express_search_route_icon_wrapper span.tally_express_search_route_bus_icon img{
        width: 80px;
        height: auto;
    }
    .tally_express_search_route_icon_wrapper {
        width: 30%;
    }

    .tally_express_search_route_city_section_right {
        border-left: 1px solid #c5dafd;
        padding:10px;
        width: 30%;
    }
    .tally_express_search_route_city {
        font-size: 12px;
        font-weight: normal;
        color: #000;
        line-height: 1.2;
    }

    .tally_express_search_route_airport_code {
        font-size: 14px;
        color: #5f6368;
    }


    .tally_express_search_route_dropdown_icon {
        font-size: 30px;
        color: #b1bed3;
        cursor: pointer;
        line-height: 1;
    }

    .tally_express_return_bus_lists_holder  .tally_express_search_route_cities_wrapper .tally_express_search_route_icon_wrapper img{
    transform: scaleX(-1);
    }

    .tally_express_bus_info_holder{
        display: flex;
        width: 100%;
        justify-content: space-between;
    }

    .tally_express_bus_popup_link{
        padding: 5px 10px;
        border-radius: 50px;
        background: #f8f8f8;
        transition: all .5s;
    }
    .tally_express_bus_popup_link:hover{
        background-color: var(--tally_express_color_theme);
        color: var(--tally_express_color_theme_alter);
    }

    .tally_express_bus_list_area .tally-express-bus-list:hover .tally_express_bus_popup_links {
        visibility: visible;
        opacity: 1;
        transform: scale(1);
    }
    .tally_express_bus_list_area .tally_express_bus_counter:hover .tally_express_bus_popup_links {
        visibility: visible;
        opacity: 1;
        transform: scale(1);
        padding: 5px;
    }
    .tally-express-bus-popup {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.6);
        z-index: 99;
    }

    .tally-express-bus-popup-inner {
        margin: 5% auto;
        padding: 20px;
        border-radius: 12px;
        position: relative;
        max-height: 95vh;
        overflow-y: auto;
        max-width: 1100px;
    }
    .tally-express-popup-content{
        max-width: 1100px;
        margin: auto;
    }

    .tally-express-popup-close {
        position: absolute;
        top: 10px;
        right: 25px;
        font-size: 30px;
        cursor: pointer;
        z-index: 10;
    }
    .tally_express_bus_details_container{
        width: 100%;
        margin-bottom: 15px;
    }
    .tally_express_bus_detail_popup_tabs {
        display: flex;
        gap: 8px;
        padding: 10px;
        background: #f8f9fa;
        border-radius: 8px;
        margin-bottom: 12px;
        position: sticky;
        top: 0;
        z-index: 10;
    }

    .tally_express_bus_detail_popup_tab {
        padding: 8px 14px;
        font-size: 14px;
        font-weight: 500;
        color: #444;
        background: #fff;
        border-radius: 6px;
        cursor: pointer;
        border: 1px solid #e3e3e3;
        transition: all .25s ease;
        white-space: nowrap;
    }

    .tally_express_bus_detail_popup_tab:hover {
        background: var(--tally_express_color_theme_alter);
        color: var(--tally_express_color_theme);
        border-color: var(--tally_express_color_theme);
    }

    .tally_express_bus_detail_popup_tab.active {
        background: var(--tally_express_color_theme);
        color: var(--tally_express_color_theme_alter);
        border-color: var(--tally_express_color_theme);
        box-shadow: 0 3px 10px rgba(0,124,186,.25);
    }

    .tally_express_bus_list_area .tally_express_bus_popup_links {
        display: flex;
        justify-content: space-evenly;
        gap: 10px;
        visibility: hidden;
        opacity: 0;
        transform: scale(0.95);
        transition: all 0.5s ease;
        cursor: pointer;
        color: var(--tally_express_color_theme);
    }

    .tally_express_bus_details_tabs_holder{
        display: flex;
        justify-content: space-between;
        flex-direction: column;
        align-items: center;
        padding: 5px;
        box-sizing: border-box;
        border-top: 1px solid #eee;
    }
}
@media (min-width: 540px) {

}
@media (min-width: 768px) {
    .tally_express_bus_list_area .tally_express_bus_details_tabs_holder{
        flex-direction: row;
    }
}
@media (min-width: 1240px) {}

/* ===== PREMIUM SEARCH FORM ===== */
.tally_express_search_area {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.06), 0 1px 3px rgba(0,0,0,0.04);
    padding: 36px 40px;
    border: 1px solid #f0f0f0;
}

.tally_express_search_area h4 {
    font-size: 13px;
    font-weight: 800;
    color: #1a3a2a;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid #f0f0f0;
}

/* Layout: fields + button in one row */
.tally_express_search_input_fields_holder {
    display: flex;
    align-items: stretch;
    gap: 14px;
}

.tally_express_input_fields_holder {
    flex: 1;
    display: flex;
    gap: 14px;
    align-items: stretch;
}

.tally_express_input_start_end_location {
    display: flex;
    align-items: stretch;
    gap: 0;
    flex: 1.4;
}

.tally_express_input_start_end_date {
    display: flex;
    gap: 14px;
    flex: 0.6;
    align-items: stretch;
}

.tally_express_inputList {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Labels */
div.tally_express_search_area .tally_express_fdColumn {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    flex: 1;
}

/* Input wrappers */
div.tally_express_search_area .marker,
div.tally_express_search_area .calendar {
    position: relative;
}

div.tally_express_search_area .marker i,
div.tally_express_search_area .calendar i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
    font-size: 15px;
    color: #1a3a2a;
    opacity: 0.5;
    transition: opacity 0.2s;
    pointer-events: none;
}

div.tally_express_search_area .marker:focus-within i,
div.tally_express_search_area .calendar:focus-within i {
    opacity: 1;
}

/* Input fields */
div.tally_express_search_area input.formControl {
    border: 2px solid #e8e8e8 !important;
    border-radius: 12px !important;
    background: #fafafa !important;
    height: 52px !important;
    padding: 0 14px 0 42px !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    color: #1a1a1a !important;
    transition: all 0.25s ease !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

div.tally_express_search_area input.formControl::placeholder {
    color: #aaa;
    font-weight: 400;
}

div.tally_express_search_area input.formControl:focus {
    border-color: #1a3a2a !important;
    background: #fff !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(26,58,42,0.08) !important;
}

/* Route dropdown (Book a Ride / trip pages) — white field, dark text */
div.tally_express_search_area select.formControl {
    border: 2px solid #e8e8e8 !important;
    border-radius: 12px !important;
    background-color: #fff !important;
    height: 52px !important;
    padding: 0 40px 0 14px !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    color: #1a1a1a !important;
    transition: all 0.25s ease !important;
    width: 100% !important;
    box-sizing: border-box !important;
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%231a1a1a' d='M1.41 0L6 4.58 10.59 0 12 1.41l-6 6-6-6z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 12px 8px;
}

div.tally_express_search_area select.formControl:focus,
div.tally_express_search_area select.formControl:active {
    border-color: #1a3a2a !important;
    background-color: #fff !important;
    color: #1a1a1a !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(26, 58, 42, 0.08) !important;
}

div.tally_express_search_area select.formControl option {
    background: #fff !important;
    color: #1a1a1a !important;
}

/* Swap button */
div.tally_express_search_area .tally_express_search_location_toggle {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    border-radius: 50% !important;
    background: #f5f5f5 !important;
    color: #555 !important;
    border: 1px solid #ddd !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    font-size: 13px !important;
    transition: background 0.2s, border-color 0.2s !important;
    flex-shrink: 0 !important;
    align-self: flex-end !important;
    margin-bottom: 8px !important;
}

div.tally_express_search_area .tally_express_search_location_toggle:hover {
    background: #eee !important;
    border-color: #bbb !important;
    color: #333 !important;
}

/* Search button wrapper */
.tally_express_bus_search_button_holder {
    flex-shrink: 0;
    display: flex;
    align-items: stretch;
}

.tally_express_bus_search_button_holder .search_button_holder {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.tally_express_bus_search_button_holder .search_button_holder > span:first-child {
    display: none !important;
}

/* Make button fill height to match inputs */
div.tally_express_search_area button[type="submit"],
div.tally_express_search_area button.tally_express_search_btn {
    margin-top: auto;
}

/* Search button */
div.tally_express_search_area button[type="submit"] {
    background: linear-gradient(135deg, #1a3a2a, #2d5a3f) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 14px !important;
    height: 52px !important;
    padding: 0 32px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(26,58,42,0.25);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
}

div.tally_express_search_area button[type="submit"]:hover {
    background: linear-gradient(135deg, #0d2a1a, #1a3a2a) !important;
    box-shadow: 0 6px 22px rgba(26,58,42,0.35) !important;
    transform: translateY(-2px);
}

div.tally_express_search_area button[type="submit"]:active {
    transform: translateY(0);
}

/* Route dropdown list */
div.tally_express_search_area .tally_express_route_list {
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
    border: 1px solid #eee;
    overflow: hidden;
    margin-top: 4px;
}

div.tally_express_search_area .tally_express_route_list li {
    padding: 10px 16px;
    transition: background 0.15s;
    font-size: 14px;
}

div.tally_express_search_area .tally_express_route_list li:hover {
    background: #f0faf4;
}

/* ===== RESPONSIVE ===== */
@media only screen and (max-width: 900px) {
    .tally_express_search_input_fields_holder {
        flex-direction: column;
        gap: 12px;
    }
    .tally_express_input_fields_holder {
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }
    .tally_express_input_start_end_location {
        flex-direction: column;
        gap: 8px;
        width: 100%;
    }
    .tally_express_input_start_end_date {
        width: 100%;
    }
    div.tally_express_search_area .tally_express_search_location_toggle {
        margin: 0 auto;
        transform: rotate(90deg);
    }
    div.tally_express_search_area .tally_express_search_location_toggle:hover {
        transform: rotate(270deg);
    }
    div.tally_express_search_area button[type="submit"] {
        width: 100% !important;
        justify-content: center;
    }
}

@media only screen and (max-width: 768px) {
    .tally_express_search_area {
        padding: 24px 20px;
        border-radius: 16px;
    }
    div.tally_express_search_area input.formControl {
        height: 48px !important;
    }
    div.tally_express_search_area button[type="submit"] {
        height: 48px !important;
    }
}

/* ===== SEARCH RESULT CARD - PREMIUM UI ===== */
.tally_express_search_result .tally-express-bus-list {
    background: #fff !important;
    border-radius: 16px !important;
    border: 1px solid #eee !important;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04) !important;
    margin-bottom: 16px !important;
    padding: 0 !important;
    overflow: hidden;
    transition: all 0.3s ease !important;
}

.tally_express_search_result .tally-express-bus-list:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.08) !important;
    transform: translateY(-2px) !important;
    border-color: #ddd !important;
}

/* Image */
.tally_express_search_result .tally-express-bus-list .tally-express-bus-image {
    border-radius: 16px 0 0 16px !important;
    overflow: hidden;
    padding: 12px !important;
}

.tally_express_search_result .tally-express-bus-list .tally-express-bus-image img {
    border-radius: 10px !important;
    object-fit: cover;
    width: 100% !important;
}

/* Shuttle Name */
.tally_express_search_result .tally-express-bus-list .tally-express-bus-name h5 {
    font-size: 17px !important;
    font-weight: 700 !important;
    color: #1a1a1a !important;
    margin-bottom: 2px !important;
}

.tally_express_search_result .tally-express-bus-list .tally-express-bus-name p {
    font-size: 13px !important;
    color: #999 !important;
    margin: 0 !important;
}

/* Route Info */
.tally_express_search_result .tally-express-bus-route h6 {
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #444 !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
}

.tally_express_search_result .tally-express-bus-route h6 i {
    color: #1a3a2a !important;
    font-size: 14px !important;
    opacity: 0.7;
}

.tally_express_search_result .tally-express-bus-route h6 .time {
    color: #888;
    font-weight: 400;
}

.tally_express_search_result .tally-express-bus-name .tally_express_route_point_details--bus_name {
    margin-top: 8px;
    padding-top: 0;
    border-top: none;
    max-width: 220px;
}

.tally_express_search_result .tally-express-bus-name .tally_express_route_point_detail {
    display: block;
    margin-bottom: 5px;
    font-size: 12px;
    line-height: 1.4;
}

.tally_express_search_result .tally-express-bus-name .tally_express_route_point_label {
    font-weight: 700;
    display: inline;
    margin-right: 4px;
}

.tally_express_search_result .tally-express-bus-name .tally_express_route_point_text {
    color: #555;
    font-weight: 500;
}

.tally_express_search_result .tally_express_route_point_details {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed #e5e7eb;
    width: 100%;
    flex-basis: 100%;
}

.tally_express_search_result .tally_express_route_point_detail {
    font-size: 12px;
    line-height: 1.45;
    margin-bottom: 6px;
}

.tally_express_search_result .tally_express_route_point_label {
    font-weight: 700;
    display: block;
    margin-bottom: 2px;
}

.tally_express_search_result .tally_express_route_point_pickup .tally_express_route_point_label {
    color: #059669;
}

.tally_express_search_result .tally_express_route_point_dropoff .tally_express_route_point_label {
    color: #dc2626;
}

.tally_express_search_result .tally_express_route_point_list {
    margin: 0;
    padding: 0 0 0 14px;
    color: #555;
}

.tally_express_search_result .tally_express_route_point_list li {
    margin-bottom: 2px;
}

.tally_express_search_result .tally_express_route_point_details--flix {
    margin-top: 10px;
    padding: 8px 12px;
    background: #f9fafb;
    border-radius: 8px;
    font-size: 12px;
    line-height: 1.5;
}

.tally_express_search_result .tally_express_route_point_details--flix p {
    margin: 0 0 6px;
    color: #444;
}

.tally_express_search_result .tally_express_route_point_details--flix p:last-child {
    margin-bottom: 0;
}

.tally_express_bus_info_point {
    margin-top: 6px;
    font-size: 13px;
    line-height: 1.45;
}

.tally_express_bus_info_point--pickup {
    color: #059669;
}

.tally_express_bus_info_point--dropoff {
    color: #dc2626;
}

.tally_express_bus_info_point strong {
    margin-right: 4px;
}

/* Seats Available */
.tally_express_search_result .tally-express-bus-list .seats-available {
    font-size: 20px !important;
    font-weight: 800 !important;
    color: #059669 !important;
    margin-bottom: 4px !important;
}

.tally_express_search_result .tally-express-seat-info span {
    font-size: 12px !important;
    color: #888 !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Price */
.tally_express_search_result .tally-express-bus-list .seats-price {
    font-size: 22px !important;
    font-weight: 800 !important;
    color: #1a3a2a !important;
    margin-bottom: 4px !important;
}

/* Book Now Button */
.tally_express_search_result .tally-express-seat-book button,
.tally_express_search_result .tally-express-seat-book ._themeButton_xs {
    background: linear-gradient(135deg, #1a3a2a, #2d5a3f) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 12px !important;
    padding: 10px 28px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 3px 10px rgba(26,58,42,0.2);
    letter-spacing: 0.3px;
}

.tally_express_search_result .tally-express-seat-book button:hover {
    background: linear-gradient(135deg, #0d2a1a, #1a3a2a) !important;
    box-shadow: 0 5px 16px rgba(26,58,42,0.3) !important;
    transform: translateY(-1px);
}

/* Popup Tabs (Shuttle Details, Boarding Points, etc) */
.tally_express_bus_details_tabs_holder {
    border-top: 1px solid #f0f0f0 !important;
    padding: 8px 15px !important;
}

.tally_express_bus_popup_link {
    font-size: 13px !important;
    color: #1a3a2a !important;
    padding: 5px 12px !important;
    border-radius: 20px !important;
    background: #f5f5f5 !important;
    transition: all 0.2s !important;
    font-weight: 500 !important;
}

.tally_express_bus_popup_link:hover {
    background: #1a3a2a !important;
    color: #fff !important;
}

/* Departure Header */
.tally_express_search_route_container {
    border-radius: 12px !important;
    border: 1px solid #eee !important;
    background: #fff !important;
    overflow: hidden;
}

.tally_express_search_route_label {
    color: #1a3a2a !important;
    font-weight: 700 !important;
}

/* Bus Info Section (after clicking Book Now) */
.tally_express_registration_area {
    border-radius: 16px !important;
    overflow: hidden;
}

/* Fully Booked override */
.tally_express_search_result .tally-express-bus-list .seats-available[style*="color:#dc2626"] {
    font-size: 18px !important;
}

/* In Cart highlight */
.tally-express-bus-list.in_cart {
    background-color: #f0faf4 !important;
    border-color: #059669 !important;
}