* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 0;
}
.search-bar {
    display: flex;
    align-items: center;
    gap: 20px;
    justify-content: center;
    position: relative;
}

.input-box {
    background: white;
    padding: 15px 20px;
    border-radius: 15px;
    border: 1px solid #e3e6e9;
    display: flex;
    width: 450px;
    gap: 10px;
    align-items: baseline;
}

.input-box label {
    font-size: 14px;
    color: #777;
}

.input-box input {
    border: none;
    outline: none;
    font-size: 15px;
    margin-top: 5px;
}

.swap-btn {
    position: absolute;
    top: 50%;
    left: 28%;
    transform: translate(-50%, -50%);

    background: #e3e6e9;
    color: #14384e;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 16px;
    font-weight: bold;
    padding: 10px;
    z-index: 99;
    border: 1px solid #14384e;
}

.search-btn {
    background: linear-gradient(135deg, #14384e, #0e2737);
    color: white;
    padding: 15px 50px;
    border: none;
    border-radius: 15px;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.search-btn:hover {
    opacity: 0.9;
}
.container-main {
    background: #f5f5f7;
    padding: 40px 0;
}
.content {
    display: flex;
    gap: 20px;
    max-width: 1200px;
    justify-content: center;
    margin: 0 auto;
}

.location-icon {
    background-color: #e3e6e9;
    border-radius: 50%;
    display: flex !important;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #14384e;
    padding: 5px;
}
.span {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
}
.span i {
    width: 22px;
    min-width: 22px;
    text-align: center;
    font-size: 16px;
}
.timing {
    display: flex;
    flex-direction: column;
}
.dropdown-box {
    position: relative;
}

.input-wrapper {
    position: relative;
    width: 100%;
}

.dropdown-list {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    max-height: 200px;
    overflow-y: auto;
    display: none;
    z-index: 999;
}

.dropdown-item {
    padding: 10px 15px;
    cursor: pointer;
    font-size: 14px;
}

.dropdown-item:hover {
    background: #f2f2f2;
}

.bus-card {
    width: 100%;
    height: fit-content;
    max-width: 1100px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.card {
    background-color: #ffffff;
    border-radius: 25px;
    padding: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}
.title {
    font-size: 18px;
}
.card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bus-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.bus-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.bus-type {
    margin-top: 5px;
    color: #555;
    font-size: 14px;
}

.seats {
    background: #d9e3ea;
    color: #14384e;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 12px;
    margin-left: 10px;
    font-weight: bold;
}

.price-rating {
    text-align: right;
}

.rating {
    background: #ffcc66;
    padding: 4px 10px;
    border-radius: 10px;
    font-size: 14px;
    margin-bottom: 5px;
    font-weight: bold;
    color: white;
}
.rating i {
    color: white;
    font-size: 12px;
}

.price {
    color: #14384e;
    font-weight: 600;
    font-size: 18px;
}

.card-middle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
}

.locatio1n h3 {
    font-weight: 600;
    font-size: 14px;
}

.time {
    color: #14384e;
    font-size: 14px;
    font-weight: 600;
    margin: 5px 0;
}

.date {
    color: #777;
    font-size: 14px;
}

.journey {
    text-align: center;
}

.line {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dot {
    width: 60px;
    height: 2px;
    background: #14384e;
    border-radius: 5px;
}

.bus-icon {
    font-size: 20px;
    color: #14384e;
}

.duration {
    margin-top: 8px;
    color: #444;
    font-size: 14px;
}

.card-bottom {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
}

.card-bottom a {
    text-decoration: none;
    color: #14384e;
    font-weight: 500;
    font-size: 12px;
}

.amenities-box {
    display: none;
    padding: 15px 20px;
}

.amenities-box ul {
    margin: 0;
    list-style: none;
    display: flex;
    justify-content: space-between;
    width: 70%;
}

.amenities-box li {
    margin-bottom: 8px;
    display: flex;
    gap: 8px;
    font-size: 12px;
}
.policy-wrapper {
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid #ddd;
}

.policy-table {
    width: 100%;
    border-collapse: collapse;
}

.policy-table th,
.policy-table td {
    padding: 10px;
    text-align: left;
    font-size: 14px;
    border-right: 1px solid #dcdcdc;
}

.policy-table th {
    font-weight: 600;
    font-size: 14px;
}

.policy-table tbody tr {
    border-top: 1px solid #dcdcdc;
}
.route-bar {
    display: none;
}

@media (max-width: 768px) {
    .swap-btn {
        transform: rotate(90deg);
        top: 19%;
        left: 70%;
    }
    .search-bar {
        flex-direction: column;
        margin: 20px;
    }
    .input-box {
        width: 100%;
    }
    .search-btn {
        font-size: 16px;
        width: 300px;
        padding: 15px 0;
    }
    .content {
        flex-direction: column;
        gap: unset;
        padding: 0px 20px 80px 20px;
    }
    .container-main {
        padding: 0;
    }

    .bus-img {
        width: 40px;
        height: 40px;
    }

    .title {
        font-size: 14px;
    }
    .bus-type {
        font-size: 12px;
    }
    .price,
    .rating {
        font-size: 14px;
    }
    .rating i {
        font-size: 10px;
    }
    .location1 h3,
    .time,
    .date,
    .duration {
        font-size: 12px;
    }
    .container {
        padding: unset;
    }
    .route-bar {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 15px 20px;
        border: 1px solid #f3f3f3;
        border-radius: 6px;
    }

    .route-title {
        font-size: 16px;
        font-weight: 600;
    }

    .arrow {
        color: #999;
        margin: 0 8px;
    }

    .bus-count {
        font-size: 14px;
        color: #666;
        margin-top: 4px;
    }

    .route-date {
        background: #f3dada;
        padding: 8px 14px;
        border-radius: 20px;
        text-align: center;
        font-weight: 600;
        font-size: 14px;
    }

    .route-date small {
        display: block;
        font-size: 12px;
        color: #555;
    }
    .search-bar {
        display: none;
    }

    .main-div {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        margin-bottom: 25px !important;
        border-bottom: none !important;
    }

    .span {
        display: flex !important;
        align-items: center !important;
        gap: 15px !important;
    }

    .span i {
        font-size: 20px !important;
        color: #444 !important;
    }

    .timing span:first-child {
        font-size: 16px !important;
        font-weight: 500 !important;
        color: #000;
    }

    .timing span:last-child {
        font-size: 12px !important;
        color: #888 !important;
    }

    /* --- Checkbox Styling --- */
    input[type="radio"],
    input[type="checkbox"] {
        width: 20px;
        height: 20px;
        accent-color: #333;
        cursor: pointer;
    }
}

@media (max-width: 576px) {
    .input-box {
        width: 300px;
    }
    .amenities-box ul {
        width: 80%;
    }
    .amenities-box {
        padding: 15px 0;
    }
    .policy-table th,
    .policy-table td {
        font-size: 12px;
    }
    .dot {
        width: 40px;
    }
}
@media (max-width: 320px) {
    .dot {
        width: 20px;
    }
    .bus-img {
        width: 30px;
        height: 30px;
    }
    .bus-info {
        gap: 5px;
    }
}
/* --- Root & Basic Reset --- */
* {
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
body {
    background-color: #f4f7f8;
    margin: 0;
}

/* --- Main Layout --- */
.main-container {
    display: flex;
    /* padding: 20px; */
    gap: 20px;
}

.desktop-sidebar {
    width: 350px;
}

/* --- Filter Groups & Accordions (Desktop) --- */
.filter-group, .accordion-item {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.filter-text{
  display: flex;
  flex-direction: column;
}
.filter-text label{
  display: flex;
  justify-content: space-between;
  padding: 10px;
}

.filter-group h3, .expandable {
    font-size: 16px;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    cursor: pointer;
}

/* --- SPECIFIC TO IMAGE: Departure Time Items --- */
.filter-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2px 0;
}

.filter-option:last-child {
    border-bottom: none;
}

.option-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.option-left i {
    font-size: 22px;
    color: #444;
}

.option-left .text {
    display: flex;
    flex-direction: column;
}

.option-left .time {
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.option-left .label {
    font-size: 11px;
    color: #888;
    text-transform: capitalize;
}

.option-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.option-right .count {
    font-size: 12px;
    color: #aaa;
}

/* --- Mobile Elements --- */
.mobile-filter-bar {
    display: none;
    padding: 10px 0;
    gap: 10px;
    align-items: center;
    overflow-x: auto;
}

.filter-btn {
    padding: 8px 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background: white;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 5px;
}

.chip {
    padding: 8px 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    white-space: nowrap;
    font-size: 13px;
    background: #fff;
}

.sort-option{
display:flex;
justify-content:space-between;
align-items:center;
padding:16px 0;
font-size:18px;
border-bottom:1px solid #eee;
}

.sort-option input{
width:20px;
height:20px;
accent-color:red;
}

.search-box-btn input{
width:100%;
padding:12px;
border-radius:25px;
border:none;
background:#f2f2f2;
font-size:14px;
}
/* --- Modal & Tabs (Image 3 Style) --- */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: flex-end;
}

.modal-content {
    background: white;
    width: 100%;
    max-width: 500px;
    height: 85vh;
    border-radius: 20px 20px 0 0;
    display: flex;
    flex-direction: column;
}

.modal-header {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #eee;
}

.modal-body {
    flex: 1;
    display: flex;
    overflow: hidden;
}

.modal-tabs {
    width: 40%;
    background: #f8f9fa;
    border-right: 1px solid #eee;
}

.tab {
    padding: 10px 15px;
    font-size: 13px;
    color: #555;
    cursor: pointer;
}

.tab.active {
    background: white;
    color: #d84e55; /* Image-la irukura red color */
    font-weight: bold;
    border-left: 4px solid #d84e55;
}

.modal-options {
    width: 60%;
    padding: 10px 20px;
    overflow-y: auto;
}

/* Footer Buttons */
.modal-footer {
    padding: 15px;
    display: flex;
    gap: 10px;
    border-top: 1px solid #eee;
}

.btn-clear {
    flex: 1;
    padding: 14px;
    border: 1px solid #333;
    border-radius: 30px;
    background: white;
    font-weight: 600;
}

.btn-apply {
    flex: 1;
    padding: 14px;
    border: none;
    border-radius: 30px;
    background: #d84e55;
    color: white;
    font-weight: 600;
}

/* --- Logic Styles --- */
.accordion-content {
    display: none;
    padding-top: 10px;
}

.accordion-item.active .accordion-content {
    display: block;
}

.accordion-item.active .icon {
    display: flex;
    justify-content: center;
}

/* Custom Checkbox/Radio (Image Style) */
input[type="radio"], input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: #333;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .desktop-sidebar {
        display: none;
    }
    .mobile-filter-bar {
        display: flex;
    }
    .filter-option{
        padding: 10px 0;
    }
}