/* ===============================
   GLOBAL
================================= */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    overflow-x: hidden;
}

body {
    font-family: "Segoe UI", Arial, sans-serif;
    background: #eef2f5;
    color: #333;
    line-height: 1.5;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
}
.fwhite{
    color: white;
}
/* ===============================
   SEARCH CARD (MAIN BOX)
================================= */
.bus-search-form {
    display: flex;
    gap: 15px;
    align-items: flex-end;
    padding: 20px 30px;
    border-radius: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    margin-top: 20px;
    background: rgb(37 34 34 / 80%);
    border: 5px solid #ff5e14;
    flex-wrap: wrap;
}

.search-box {
    display: flex;
    flex-direction: column;
    min-width: 160px;
    flex: 1;
}

.search-box label {
    font-size: 18px;
    color: white;
    margin: 5px 3px;
}

.search-box input,
.search-box select {
    padding: 12px 14px;
    border-radius: 30px;
    border: 1px solid #ddd;
    font-size: 14px;
    background: transparent;
    transition: 0.2s;
    color: white;
    width: 100%;
}

.search-box input:focus,
.search-box select:focus {
    border-color: #007bff;
    background: #fff;
    color: #222;
    outline: none;
}

.custom-select input::placeholder {
    color: white;
    opacity: 1;
}

/* ===============================
   SEARCH BUTTON
================================= */
.search-btn {
    background: #ff5e14;
    color: #fff;
    border: none;
    padding: 12px 22px;
    border-radius: 30px;
    font-size: 15px;
    cursor: pointer;
    transition: 0.2s;
    min-height: 46px;
}

.search-btn:hover {
    background: #e55310;
}

.swap-box {
    flex: 0 0 auto;
    align-items: center;
    justify-content: flex-end;
}

#swapBtn {
    border-radius: 50%;
    height: 46px;
    width: 46px;
    border: none;
    cursor: pointer;
    font-size: 18px;
    rotate: 90deg;
    background: #fff;
    color: #ff5e14;
}

.popularroutes {
    color: white;
}

.popularroutes h1{
        color: orange;
}

.popularroutes h3{
        color: #FF7043;
}


.popular-routes {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.popular-routes span {
    background: rgba(255,255,255,0.12);
    color: #fff;
    padding: 8px 14px;
    border-radius: 999px;
    cursor: pointer;
    transition: 0.2s ease;
    font-size: 14px;
}

.popular-routes span:hover {
    background: #ff5e14;
}

/* ===============================
   CUSTOM SELECT / DROPDOWN
================================= */
.custom-select {
    position: relative;
    width: 100%;
}

.custom-select input {
    width: 100%;
    padding: 12px 14px;
    border-radius: 30px;
    border: 1px solid #ddd;
    background: transparent;
    font-size: 14px;
}

.dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    width: 100%;
    max-height: 220px;
    overflow-y: auto;
    background: #fff;
    border-radius: 12px;
    margin-top: 0;
    display: none;
    z-index: 9999;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    border: 1px solid #e5e7eb;
}

.dropdown div {
    padding: 12px 14px;
    cursor: pointer;
    color: #222;
    font-size: 14px;
}

.dropdown div:hover {
    background: #f1f5f9;
}

.dropdown .disabled {
    color: #aaa;
    pointer-events: none;
}

/* Remove old hardcoded widths */
#fromDropdown,
#toDropdown {
    width: 100%;
    display: none;
    position: absolute;
}

/* ===============================
   TOM SELECT (WAYTOGO STYLE)
================================= */
.ts-control {
    border-radius: 8px !important;
    border: 1px solid #ddd !important;
    background: #f9fbfc !important;
    padding: 6px 10px !important;
    min-height: 42px;
}

.ts-control input {
    font-size: 14px;
}

.ts-dropdown {
    border-radius: 10px;
    border: none;
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    margin-top: 5px;
    overflow: hidden;
}

.ts-dropdown .option {
    padding: 10px 14px;
    font-size: 14px;
    transition: 0.2s;
}

.ts-dropdown .option:hover {
    background: #f1f5f9;
}

.ts-dropdown .active {
    background: #e6f4ff;
}

.ts-dropdown .option.disabled {
    color: #bbb;
}

/* ===============================
   TOP NAVIGATION
================================= */
.nav {
    transition: all 0.5s ease;
    font-size: 12px;
    font-family: "Open Sans", sans-serif;
    width: 100%;
    z-index: 100;
    text-align: center;
    letter-spacing: 2px;
    line-height: 100px;
    transition-property: background-color, box-shadow, line-height, height;
    transition-timing-function: cubic-bezier(0.78, 0.13, 0.15, 0.86);
    transition-duration: 0.3s;
}

.nav .brand {
    line-height: 100px;
    padding-left: 60px;
    padding-right: 60px;
    display: inline-block;
    float: left;
    font-size: 20px;
    font-family: "Pacifico", cursive;
    transition-property: background-color, box-shadow, line-height, height;
    transition-timing-function: cubic-bezier(0.78, 0.13, 0.15, 0.86);
    transition-duration: 0.3s;
}

.nav .brand a {
    color: #E33B00;
    text-decoration: none;
}

.nav ul {
    margin: 0;
    text-transform: uppercase;
}

.nav ul li {
    text-align: center;
    display: inline-block;
    list-style: none;
    padding: 15px 15px;
    cursor: pointer;
    line-height: 30px;
}

.nav ul li:hover a {
    font-weight: bold;
}

.nav ul li a {
    color: #eee;
    text-decoration: none;
}

.sticky {
    position: fixed !important;
    top: 0;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
    background-color: #fff;
    line-height: 30px;
}

.sticky .brand {
    line-height: 60px;
}

.sticky ul li a {
    color: #6E7982;
}

.sticky ul li:hover a {
    color: #E33B00;
}

.menu {
    display: none;
}

/* ===============================
   BANNER / HERO
================================= */
.pattern-overlay {
    background: rgba(0, 0, 0, 0.3) url("../img/back3.jpg") repeat;
    height: 80%;
    left: 0;
    position: absolute;
    top: 0;
    width: 100%;
    z-index: -1;
    background-size: cover;
    background-position: center;
}

.pattern-overlay::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgb(6 6 6 / 44%);
    z-index: -1;
}

.bannerarea {
    margin-left: auto;
    margin-right: auto;
    width: min(1100px, 92%);
    padding: 20px;
}

/* ===============================
   CONTAINERS
================================= */
.containerfluid {
    max-width: 1200px;
    margin: auto;
    position: relative;
    top: 100px;
    padding: 0 16px;
}

.col-6 {
    width: 50%;
    display: inline-block;
    vertical-align: top;
}

/* ===============================
   BUS RESULT CARD
================================= */
.bus-card {
    background: #fff;
    border-radius: 12px;
    padding: 15px;
    margin-top: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 3px 10px rgba(0,0,0,0.06);
}

.bus-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.bus-name {
    font-size: 16px;
    font-weight: bold;
}

.bus-route {
    color: #666;
    font-size: 14px;
}

.bus-time {
    font-size: 14px;
}

.bus-right {
    text-align: right;
}

.ticket-price {
    font-size: 18px;
    font-weight: bold;
    color: #00a859;
}

.select-seat-btn {
    margin-top: 6px;
    display: inline-block;
    background: #007bff;
    color: #fff;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
}

.select-seat-btn:hover {
    background: #0056b3;
}

.bus-item {
    margin: 8px 0;
    padding: 16px 24px;
    background-color: rgb(255, 255, 255);
    border-radius: 8px;
    box-shadow: rgba(19, 41, 104, 0.2) 0px 2px 5px 0px;
}

.book-btn {
    display: inline-block;
    margin-top: 12px;
    background: #ff5e14;
    color: #fff;
    padding: 10px 16px;
    border-radius: 8px;
}

/* ===============================
   BOOKING PAGE
================================= */
.booking-container {
    display: flex;
    gap: 20px;
    max-width: 1200px;
    margin: 120px auto 40px;
    padding: 0 16px;
    align-items: flex-start;
}

.left-section,
.right-section {
    border-radius: 14px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
}

.left-section {
    flex: 2;
    background: #fff;
    padding: 20px;
}

.right-section {
    flex: 1;
    background: #f8f9fa;
    padding: 20px;
    position: sticky;
    top: 90px;
}

.left-section input,
.right-section input {
    width: 100%;
    margin-top: 10px;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid #ddd;
    font-size: 14px;
}

.pay-btn {
    width: 100%;
    padding: 12px;
    background: green;
    color: #fff;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    margin-top: 16px;
}

.pay-btn:hover {
    background: #0c8b0c;
}

/* ===============================
   MODALS
================================= */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 99999;
    padding: 20px;
}

.modal-content {
    background: #fff;
    padding: 20px;
    margin: 60px auto;
    width: min(500px, 100%);
    max-height: 80vh;
    overflow-y: auto;
    border-radius: 14px;
}

.modal-content.small {
    width: min(360px, 100%);
    height: auto;
}

/* ===============================
   SEATS
================================= */
.bus-layout {
    display: grid;
    grid-template-columns: repeat(4, 60px);
    gap: 10px;
    justify-content: center;
}

.seat {
    display: inline-block;
    width: 50px;
    height: 50px;
    background: #ddd;
    text-align: center;
    line-height: 50px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
}

.seat.selected {
    background: green;
    color: #fff;
}

.seat.booked {
    background: red;
    color: #fff;
    cursor: not-allowed;
}

.aisle {
    visibility: hidden;
}

.male-seat {
    background: #3b82f6 !important;
    color: #fff;
}

.female-seat {
    background: #ec4899 !important;
    color: #fff;
}

/* ===============================
   FOOTER
================================= */
.footer-section ul {
    margin: 0;
    padding: 0;
}

.footer-section {
    background: #151414;
    position: relative;
}

.footer-cta {
    border-bottom: 1px solid #373636;
}

.single-cta i {
    color: #ff5e14;
    font-size: 30px;
    float: left;
    margin-top: 8px;
}

.cta-text {
    padding-left: 15px;
    display: inline-block;
}

.cta-text h4 {
    color: #fff;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 2px;
}

.cta-text span {
    color: #757575;
    font-size: 15px;
}

.footer-content {
    position: relative;
    z-index: 2;
}

.footer-pattern img {
    position: absolute;
    top: 0;
    left: 0;
    height: 330px;
    background-size: cover;
    background-position: 100% 100%;
}

.footer-logo {
    margin-bottom: 30px;
}

.footer-logo img {
    max-width: 200px;
}

.footer-text p {
    margin-bottom: 14px;
    font-size: 14px;
    color: #7e7e7e;
    line-height: 28px;
}

.footer-social-icon span {
    color: #fff;
    display: block;
    font-size: 20px;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    margin-bottom: 20px;
}

.footer-social-icon a {
    color: #fff;
    font-size: 16px;
    margin-right: 15px;
}

.footer-social-icon i {
    height: 40px;
    width: 40px;
    text-align: center;
    line-height: 38px;
    border-radius: 50%;
}

.facebook-bg { background: #3B5998; }
.twitter-bg { background: #55ACEE; }
.google-bg { background: #DD4B39; }

.footer-widget-heading h3 {
    color: #fff;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 40px;
    position: relative;
}

.footer-widget-heading h3::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: -15px;
    height: 2px;
    width: 50px;
    background: #ff5e14;
}

.footer-widget ul li {
    display: inline-block;
    float: left;
    width: 50%;
    margin-bottom: 12px;
}

.footer-widget ul li a:hover {
    color: #ff5e14;
}

.footer-widget ul li a {
    color: #878787;
    text-transform: capitalize;
}

.subscribe-form {
    position: relative;
    overflow: hidden;
}

.subscribe-form input {
    width: 100%;
    padding: 14px 28px;
    background: #2E2E2E;
    border: 1px solid #2E2E2E;
    color: #fff;
}

.subscribe-form button {
    position: absolute;
    right: 0;
    background: #ff5e14;
    padding: 13px 20px;
    border: 1px solid #ff5e14;
    top: 0;
}

.subscribe-form button i {
    color: #fff;
    font-size: 22px;
    transform: rotate(-6deg);
}

.copyright-area {
    background: #202020;
    padding: 25px 0;
}

.copyright-text p {
    margin: 0;
    font-size: 14px;
    color: #878787;
}

.copyright-text p a {
    color: #ff5e14;
}

.footer-menu li {
    display: inline-block;
    margin-left: 20px;
}

.footer-menu li:hover a {
    color: #ff5e14;
}

.footer-menu li a {
    font-size: 14px;
    color: #878787;
}

/* ===============================
   HOME PAGE BODY
================================= */
section {
    padding: 100px 0;
}

.max-width {
    max-width: 1300px;
    padding: 0 80px;
    margin: auto;
}

.about .about-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}

section .title {
    position: relative;
    text-align: center;
    font-size: 40px;
    font-weight: 500;
    margin-bottom: 60px;
    padding-bottom: 20px;
    font-family: "Ubuntu", sans-serif;
}

section .title::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 180px;
    height: 3px;
    transform: translateX(-50%);
}

section .title::after {
    position: absolute;
    bottom: -8px;
    left: 50%;
    font-size: 20px;
    color: #1e3551;
    padding: 0 5px;
    transform: translateX(-50%);
}

/* Home */
.home {
    display: flex;
    background: url("https://source.unsplash.com/720x600/?dark,laptop") no-repeat center;
    height: 100vh;
    color: #242424;
    min-height: 500px;
    background-size: cover;
    background-attachment: fixed;
    font-family: "Ubuntu", sans-serif;
}

.home .max-width {
    width: 100%;
    display: flex;
}

.home .max-width .row {
    margin-right: 0;
}

.home .home-content .text-1 {
    font-size: 27px;
}

.home .home-content .text-2 {
    font-size: 75px;
    font-weight: 600;
    margin-left: -3px;
}

.home .home-content .text-3 {
    font-size: 40px;
    margin: 5px 0;
}

.home .home-content .text-3 span {
    color: #1e3551;
    font-family: "Pacifico", cursive;
    background: linear-gradient(135deg, #041d3d, #F44336, #ff5e14);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 500;
}

.home .home-content a {
    display: inline-block;
    background: #1e3551;
    color: #fff;
    font-size: 25px;
    padding: 12px 36px;
    margin-top: 20px;
    font-weight: 400;
    border-radius: 6px;
    border: 2px solid #1e3551;
    transition: all 0.3s ease;
}

.home .home-content a:hover {
    color: #1e3551;
    background: none;
}

/* About */
.about {
    background: radial-gradient(#e1efff, white);
}

.about .title::after {
    content: "—Who We are ?—";
    text-overflow: ellipsis;
    display: -webkit-inline-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.about .about-content .left {
    width: 45%;
}

.about .about-content .left img {
    height: 400px;
    width: 400px;
    object-fit: cover;
    border-radius: 6px;
}

.about .about-content .right {
    width: 55%;
}

.about .about-content .right .text {
    font-size: 25px;
    font-weight: 600;
    margin-bottom: 10px;
}

.about .about-content .right .text span {
    font-family: "Pacifico", cursive;
    background: linear-gradient(135deg, #041d3d, #F44336, #ff5e14);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.about .about-content .right p {
    text-align: justify;
}

.about .about-content .right a {
    display: inline-block;
    background: #ff5e14;
    color: #fff;
    font-size: 20px;
    font-weight: 500;
    padding: 10px 30px;
    margin-top: 20px;
    border-radius: 6px;
    border: 2px solid #ff5e14;
    transition: all 0.3s ease;
}

.about .about-content .right a:hover {
    color: #ff5e14;
    background: none;
}

/* ===============================
   RESPONSIVE
================================= */
@media (max-width: 1024px) {
    .bannerarea {
        width: 92%;
    }

    .col-6 {
        width: 100%;
    }

    .booking-container {
        flex-direction: column;
    }

    .right-section {
        position: static;
        width: 100%;
    }

    .left-section,
    .right-section {
        width: 100%;
    }

    .max-width {
        padding: 0 40px;
    }
}

@media (max-width: 768px) {
    .bus-search-form {
        flex-direction: column;
        align-items: stretch;
        border-radius: 24px;
        padding: 18px;
        gap: 12px;
    }

    .search-box {
        width: 100%;
        min-width: auto;
    }

    .search-box label {
        font-size: 15px;
    }

    .search-btn {
        width: 100%;
    }

    .swap-box {
        justify-content: center;
        align-items: center;
    }

    #swapBtn {
        rotate: 0deg;
        margin: 4px auto;
    }

    .bus-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .bus-right {
        width: 100%;
        text-align: left;
    }

    .nav .brand {
        padding-left: 20px;
        padding-right: 20px;
        font-size: 18px;
    }

    .containerfluid {
        top: 70px;
    }

    .booking-container {
        margin-top: 90px;
    }

    .bus-layout {
        grid-template-columns: repeat(4, 48px);
        gap: 8px;
    }

    .seat {
        width: 42px;
        height: 42px;
        line-height: 42px;
        font-size: 12px;
    }

    .modal-content {
        margin: 30px auto;
        padding: 16px;
    }

    .home {
        height: auto;
        min-height: 500px;
        background-attachment: scroll;
    }

    .home .home-content .text-1 {
        font-size: 22px;
    }

    .home .home-content .text-2 {
        font-size: 46px;
    }

    .home .home-content .text-3 {
        font-size: 26px;
    }

    .about .about-content .left,
    .about .about-content .right {
        width: 100%;
    }

    .about .about-content .left {
        margin-bottom: 20px;
        text-align: center;
    }

    .about .about-content .left img {
        width: min(100%, 320px);
        height: auto;
    }

    .about .about-content .right .text {
        font-size: 22px;
    }

    .popular-routes {
        gap: 8px;
    }

    .popular-routes span {
        font-size: 13px;
        padding: 7px 12px;
    }
}

@media (max-width: 600px) {

    .hidemobile{
        display: none;
    }

    .swap-box {
        justify-content: center;
        align-items: center;
        position: absolute;
        margin-top: 71px;
        width: 50px;
        left: 43%;
    }

    .popularroutes h1 {
        font-size: 21px;
    }

    .popularroutes h4 {
        font-size: 14px;
    }

    .sticky .menu {
        top: 0;
    }

    .sticky .menu .hamburger {
        background: #6E7982;
    }

    .sticky .menu .hamburger::before,
    .sticky .menu .hamburger::after {
        background: #6E7982;
    }

    .open.sticky .hamburger {
        background: transparent;
    }

    .open .hamburger {
        background-color: transparent;
    }

    .open .hamburger::before {
        transform: rotate(45deg);
    }

    .open .hamburger::after {
        transform: rotate(-45deg) translate(2px, -2px);
    }

    .menu {
        display: block;
        outline: none;
        position: relative;
        line-height: 60px;
        float: left;
        left: 20px;
        top: 20px;
        width: 60px;
        height: 60px;
        background: none;
        border: 0;
        padding: 0;
        margin: 0;
        cursor: pointer;
        opacity: 0.7;
        transition: opacity 150ms;
    }

    .menu:hover {
        opacity: 1;
    }

    .hamburger,
    .hamburger::after,
    .hamburger::before {
        margin: 0 auto;
        display: block;
        width: 24px;
        height: 3px;
        line-height: 0;
        transition: all 150ms;
    }

    .hamburger::before {
        content: "";
        transform: translateY(-8px);
        background: #fff;
    }

    .hamburger::after {
        content: "";
        transform: translateY(5px);
        background: #fff;
    }

    .hamburger {
        background: #fff;
    }

    .navbar {
        transition: transform 150ms;
    }

    ul.navbar {
        transform: translate(-100%, 0);
        padding-left: 0;
        background: rgba(0,0,0,0.92);
        min-height: 100vh;
    }

    ul.navbar li {
        line-height: calc((100vh - 60px) / 6);
        display: block;
    }

    .open .navbar {
        transform: translate(0, 0);
    }

    .nav .brand {
        display: block;
        text-align: center;
        float: none;
    }

    .sticky .brand {
        background-color: white;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
    }

    #nav {
        height: 100px;
    }

    #nav.open {
        height: auto;
        min-height: 100%;
    }

    #nav.sticky {
        height: 60px;
    }

    #nav .open.sticky {
        height: auto;
    }

    .bannerarea {
        width: 95%;
        padding: 12px;
    }

    .bus-search-form {
        padding: 14px;
        border-width: 3px;
        border-radius: 18px;
    }

    .search-box label {
        font-size: 14px;
    }

    .search-box input,
    .search-box select,
    .custom-select input {
        font-size: 14px;
        padding: 12px;
    }

    .dropdown div {
        padding: 12px;
        font-size: 14px;
    }

    .containerfluid {
        padding: 0 12px;
    }

    .bus-item {
        padding: 14px 16px;
    }

    .booking-container {
        padding: 0 12px;
        gap: 14px;
    }

    .left-section,
    .right-section {
        padding: 16px;
    }

    .right-section p,
    .left-section p {
        font-size: 14px;
    }

    .bus-layout {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
    }

    .seat {
        width: 100%;
        max-width: 44px;
        height: 44px;
        line-height: 44px;
        margin: 0 auto;
    }

    .max-width {
        padding: 0 20px;
    }

    section {
        padding: 70px 0;
    }

    section .title {
        font-size: 30px;
        margin-bottom: 40px;
    }

    .home .home-content .text-2 {
        font-size: 36px;
    }

    .home .home-content .text-3 {
        font-size: 22px;
    }

    .about .about-content .right a,
    .home .home-content a {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 400px) {
    .popular-routes {
        flex-direction: column;
        align-items: stretch;
    }

    .popular-routes span {
        text-align: center;
    }

    .bus-layout {
        grid-template-columns: repeat(4, 1fr);
    }

    .seat {
        max-width: 40px;
        height: 40px;
        line-height: 40px;
        font-size: 11px;
    }

    .modal-content {
        padding: 14px;
    }
}

/*Search buses*/

.busname{
    font-size: 24px;
    font-weight: 700;
}