:root {
    --primaryColor: #c31e2c;
    --whiteColor: #fff;
    --textColor: #000;
    --lightGray: #eee;
}
.ui-state-default, .ui-widget-content .ui-state-default, .ui-widget-header .ui-state-default {
    border: 1px solid #eee;
    background: #f9f9f9 url(images/ui-bg_glass_75_e6e6e6_1x400.png) 50% 50% repeat-x;
    font-weight: normal;
    color: #000;
    text-align: center;
    border-radius: 5px;
    min-width: 35px;
    height: 35px;
    line-height: 25px;
}
.ui-datepicker .ui-datepicker-header {
    background: #00000024;
    border: 0;
}
.ui-datepicker .ui-datepicker-buttonpane button {
    background: #ddd;
}
#ui-datepicker-div {
    font-size: 90%;
    min-width: max-content;
    z-index: 999 !important;
}
.ui-state-active, .ui-widget-content .ui-state-active, .ui-widget-header .ui-state-active {
    border: 1px solid #d21515 !important;
    position: relative;
    color: #d21515;
    font-weight: 600;
}
.ui-state-active::after, .ui-widget-content .ui-state-active:after, .ui-widget-header .ui-state-active:after {
    content: "✓";
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 13px;
    height: 12px;
    background-color: #d21515;
    color: #fff;
    font-size: 8px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px 0px 5px;
}

.custom-radio .custom-control-input:checked ~ .custom-control-label::before {
    background-color: #d21515;
    box-shadow: none !important;
}
#spinnerOne {
    position: absolute;
    top: 0 !important;
    left: 50%;
    transform: translateX(-50%);
    color: #f00;
    width: 100%;
    background: #f1f1f1;
    min-height: 40px;
    border-radius: 5px;
    text-align: center;
    line-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}
/* Main Container */
.datebar_wrapper {
    overflow-y: hidden !important;
    overflow-x: scroll !important;
}
.modify_bus_area {
    margin-bottom: 20px !important;
}
.search_bus_area {
    background: #fff;
    border-radius: 10px;
    padding: 20px 25px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--primaryColor);
}
.search_bus_area .col {
    padding: 7px;
}
.from-to-flex{
    margin-left: -15px;
}
.search_bus_area .form-group {
    margin-bottom: 0;
}
.search_bus_form_label {
    display: block;
    text-align: left;
    line-height: 1;
}
.repeat-arrow-img {
    position: absolute;
    top: 9px;
    z-index: 1;
    width: 40px;
    cursor: pointer;
    padding: 4px 7px;
    left: 49%;
    transform: translateX(-50%);
    background: #f1f1f1;
    border-radius: 5px;
}
.form-control {
    width: 100%;
    min-height: 40px;
    line-height: 1;
    border-radius: 5px;
    border-color: #e8e8e8;
    color: #000;
}
.search_bus_area .nice-select.open .list {
    width: 100%;
}
.nice-select {
    box-shadow: none !important;
    min-height: 40px;
    line-height: 1;
    display: flex;
    align-items: center;
    padding: 0 15px;
    color: #000;
    font-size: 16px;
    /* overflow-x: clip; */
}
.dropdown-toggle {
    min-height: 40px;
    border: 1px solid #e8e8e8;
    background: transparent !important;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 400;
}
.form-control:focus {
    box-shadow: none !important;
    border-color: #007bff;
    border: 1px solid #eee !important;
}
/* ============================================
   PASSENGER DROPDOWN COMPONENT
   ============================================ */

/* Main Passenger Dropdown Container */
.passenger-dropdown {
    position: relative;
    width: 100%;
}

/* Toggle Button */
.passenger-dropdown-toggle {
    width: 100%;
    padding: 0 15px;
    background: white;
    border: 1px solid #e8e8e8;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.2s ease;
    gap: 8px;
    min-height: 40px;
    line-height: 1;
    border-radius: 5px;
}
.passenger-dropdown-toggle.active {
    border-color: #007bff;
}

/* Passenger Summary (shows "5 Passengers") */
.passenger-summary {
    display: flex;
    align-items: baseline;
    gap: 4px;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.passenger-total-count {
    font-size: 16px;
    text-align: left;
}

.passenger-label {
    font-size: 16px;
    white-space: nowrap;
    color: #000 !important;
    font-weight: 400;
    line-height: normal;
}

/* Arrow Icon */
.dropdown-arrow {
    width: 12px;
    height: 8px;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.dropdown-arrow path {
    stroke: #6b7280;
}

.passenger-dropdown-toggle.active .dropdown-arrow {
    transform: rotate(180deg);
}
.typed-static {
    max-width: 80%;
}
.date-wrap {
    display: grid;
    grid-template-columns: auto auto;
    grid-gap: 15px;
}
.date-wrap input{
    cursor: pointer;
}
/* Dropdown Menu */
.passenger-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 5px;
    padding: 15px;
    margin-top: 3px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    display: none;
    animation: fadeIn 0.2s ease;
    min-width: 300px;
}

.passenger-dropdown-menu.show {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Passenger Items */
.passenger-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px solid #f3f4f6;
}

.passenger-item:last-child {
    border-bottom: none;
}

.passenger-info {
    flex: 1;
    padding-right: 20px;
    min-width: 0;
}

.passenger-title {
    font-size: 14px;
    margin-bottom: 0;
    font-weight: 400;
    text-align: left;
    text-transform: capitalize;
}

.passenger-subtitle {
    font-size: 12px;
    color: #6b7280;
    line-height: 1.4;
}

/* Passenger Controls (+, - buttons) */
.passenger-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.passenger-minus,
.passenger-plus {
    width: 32px;
    height: 32px;
    border: 1px solid #d1d5db;
    background: white;
    border-radius: 5px;
    cursor: pointer;
    font-size: 20px;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    user-select: none;
    padding: 0;
    line-height: 1;
}

.passenger-minus:hover:not(:disabled),
.passenger-plus:hover:not(:disabled) {
    background: #f3f4f6;
    border-color: #9ca3af;
}

.passenger-minus:disabled,
.passenger-plus:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.passenger-input {
    width: 45px;
    height: 32px;
    border: 1px solid #d1d5db;
    border-radius: 5px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    background: white;
    cursor: default;
    padding: 0;
}

.passenger-input:focus {
    outline: none;
    border-color: #d21515;
}

/* Total Section */
.passenger-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
    margin-top: 5px;
    font-size: 14px;
    font-weight: 500;
}

.total-count {
    font-size: 16px;
    font-weight: 700;
    color: #d21515;
}

/* Action Buttons */
.passenger-actions {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}
.site_btn {
    background: #d21515;
    color: #fff;
    border-radius: 5px;
    transition: 0.5s;
    border: 1px solid #d21515;
    min-height: 40px;
    line-height: 1;
    cursor: pointer;
}
.site_btn:hover {
    background: var(--textColor);
    color: var(--whiteColor);
    border: 1px solid var(--textColor);
}
.passenger-clear {
    flex: 1;
    height: 36px;
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    border-radius: 5px;
    color: #6b7280;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.passenger-clear:hover {
    background: #e5e7eb;
    color: #111827;
}

.passenger-apply {
    flex: 1;
    height: 36px;
    background: #d21515;
    border: none;
    border-radius: 5px;
    color: white;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid #d21515;
}

.passenger-apply:hover {
    background: transparent;
    color: #d21515;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Tablet */
@media (max-width: 1024px) {
    .passenger-dropdown-menu {
        padding: 16px;
    }

    .passenger-title {
        font-size: 13px;
    }

    .passenger-controls {
        gap: 8px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .nice-select {
        min-height: 38px;
    }
    .form-control {
        min-height: 40px;
        padding: 0px 10px;
    }
    @keyframes slideUp {
        from {
            transform: translateY(100%);
        }
        to {
            transform: translateY(0);
        }
    }
    .passenger-item {
        padding: 10px 0;
    }

    .passenger-controls {
        gap: 6px;
    }

    .passenger-minus,
    .passenger-plus {
        width: 30px;
        height: 30px;
        font-size: 18px;
    }

    .passenger-input {
        width: 40px;
        height: 30px;
    }

    .passenger-actions {
        gap: 10px;
        margin-top: 15px;
        padding-top: 15px;
        border-top: 1px solid #e5e7eb;
    }

    .passenger-clear,
    .passenger-apply {
        height: 40px;
        font-size: 15px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .dropdown-arrow {
        width: 10px;
        height: 6px;
    }

    .passenger-info {
        padding-right: 15px;
    }

    .passenger-title {
        font-size: 14px;
        margin-bottom: 2px;
    }

    .passenger-subtitle {
        font-size: 13px;
    }

    .passenger-total {
        padding: 12px 0;
        font-size: 13px;
    }

    .total-count {
        font-size: 15px;
    }
}

/* ============================================
   STATES AND UTILITIES
   ============================================ */

/* Empty State */
.passenger-summary:empty + .passenger-total-count:empty {
    color: #9ca3af;
}

/* Focus States for Accessibility */
.passenger-dropdown-toggle:focus-visible {
    outline: 2px solid #d21515;
    outline-offset: 2px;
}

.passenger-minus:focus-visible,
.passenger-plus:focus-visible,
.passenger-clear:focus-visible,
.passenger-apply:focus-visible {
    outline: 2px solid #d21515;
    outline-offset: 1px;
}

/* Disabled State */
.passenger-dropdown-toggle:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: #f9fafb;
}
@media(min-width: 1300px) {
    .banner-area .container {
        max-width: 1240px !important;
        padding: 0 !important;
    }
}
@media(min-width: 1400px) {
     .banner-area .container {
        max-width: 1340px !important;
        padding: 0 !important;
    }
}
@media(min-width: 1600px) {
     .banner-area .container {
        max-width: 1400px !important;
        padding: 0 !important;
    }
}

.nice-select .option {
    text-align: left;
    -webkit-transition: all 0.2s;
    transition: all 0.2s;
    white-space: normal;
    font-size: 15px;
    line-height: 24px;
    border-bottom: 1px solid #eee;
    padding: 5px 15px;
}
