﻿.booking-page {
    font-family: -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
}

.booking-hero {
    position: relative;
    width: 100%;
    min-height: 520px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 60px;
    overflow: visible;
}

.booking-hero-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.booking-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.45);
    z-index: 1;
}

.booking-hero-title {
    position: relative;
    z-index: 2;
    font-size: 42px;
    font-weight: 800;
    color: #111;
    margin: 0 0 60px 0;
    text-align: center;
}

/* ===== ROUTE & DATE CARD ===== */
.route-card {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 980px;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(6px);
    border-radius: 14px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.15);
    padding: 32px 40px 36px 40px;
    transition: all 0.25s ease;
}

    .route-card h2 {
        font-size: 22px;
        font-weight: 700;
        color: #111;
        margin: 0 0 24px 0;
    }

.route-form {
    display: flex;
    align-items: flex-end;
    gap: 16px;
    flex-wrap: wrap;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    min-width: 160px;
    position: relative;
}

    .form-field label {
        font-size: 13px;
        font-weight: 600;
        color: #444;
    }

    .form-field select,
    .form-field input[type="date"] {
        height: 46px;
        border: 1px solid #d5d9de;
        border-radius: 8px;
        padding: 0 14px;
        font-size: 14px;
        font-family: inherit;
        color: #1a1a1a;
        background-color: #fff;
        outline: none;
        cursor: pointer;
    }

        .form-field select:focus,
        .form-field input[type="date"]:focus {
            border-color: #0d6dbf;
        }

        .form-field input[type="date"].input-error {
            border-color: #d93025;
        }

.swap-btn {
    width: 38px;
    height: 38px;
    min-width: 38px;
    border-radius: 50%;
    background-color: #0d6dbf;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin-bottom: 4px;
    transition: background-color 0.2s ease;
}

    .swap-btn:hover {
        background-color: #095190;
    }

    .swap-btn svg {
        width: 18px;
        height: 18px;
    }

.search-btn {
    height: 46px;
    background-color: #0d6dbf;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0 32px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

    .search-btn:hover {
        background-color: #095190;
    }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 768px) {
    .booking-hero {
        min-height: 0;
        padding-bottom: 40px;
    }

    .booking-hero-title {
        font-size: 28px;
        margin-bottom: 30px;
    }

    .route-card {
        max-width: 640px;
        margin: 0 auto;
        padding: clamp(18px, 4vw, 26px) clamp(10px, 4.5vw, 22px) clamp(22px, 5vw, 30px) clamp(10px, 4.5vw, 22px);
    }

    .route-form {
        flex-direction: column;
        align-items: stretch;
        position: relative;
        gap: 10px;
    }

    /* dropdowns/date thora bara aur comfortable dikhein mobile pe */
    .form-field select,
    .form-field input[type="date"],
    .combobox-wrap input[type="text"] {
        height: 50px;
        font-size: 15px;
    }

    /* To field ko From ke thora aur qareeb le aao */
    .combobox-field[data-combobox="to"] {
        margin-top: -10px;
    }

    /* swap button ab beech me alag row lene ki jaga From/To ke darmiyan,
       right side pe overlap kr k baithega - pehle se thora bara bhi,
       aur From ki taraf kam / To ki taraf zyada niche shift kiya */
    .swap-btn {
        width: 46px;
        height: 46px;
        min-width: 46px;
        align-self: flex-end;
        transform: rotate(90deg);
        margin: -13px 6px -27px 0;
        position: relative;
        z-index: 2;
    }

        .swap-btn svg {
            width: 20px;
            height: 20px;
        }

    .search-btn {
        width: 100%;
    }
}

/* ===================== SEARCH RESULTS (merged below booking hero) ===================== */
.search-results-section {
    background-color: #fff;
}

.search-results-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px 40px 60px 40px;
    display: flex;
    gap: 28px;
    align-items: flex-start;
}

.filters-sidebar {
    flex: 0 0 240px;
    background-color: #f7f8fa;
    border-radius: 10px;
    padding: 24px 22px;
}

.filters-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
}

    .filters-header h2 {
        font-size: 17px;
        font-weight: 700;
        color: #1a1a1a;
        margin: 0;
    }

.filters-count {
    font-size: 14px;
    font-weight: 600;
    color: #0d6dbf;
}

.filters-toggle-btn {
    display: none; /* desktop pe kabhi nahi dikhna, sirf mobile filter click ke liye */
}

.filter-group {
    margin-bottom: 28px;
}

    .filter-group h3 {
        font-size: 14px;
        font-weight: 700;
        color: #1a1a1a;
        margin: 0 0 14px 0;
    }

.radio-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #333;
    margin-bottom: 12px;
    cursor: pointer;
}

    .radio-row input[type="radio"],
    .radio-row input[type="checkbox"] {
        width: 16px;
        height: 16px;
        accent-color: #0d6dbf;
        cursor: pointer;
    }

.results-list {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.result-card {
    border: 1px solid #e8eaed;
    border-radius: 10px;
    padding: 20px 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    align-items: start;
}


.result-top {
    grid-column: 1;
    grid-row: 1;
    display: flex;
    align-items: center;
    gap: 20px; /* 12px → 20px, seats door ho jayegi */
    margin-bottom: 16px;
}

.category-badge {
    background-color: #111;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 5px 14px;
    border-radius: 999px;
}

.seats-left {
    font-size: 13px;
    color: #777;
}

.result-main {
    grid-column: 1;
    grid-row: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.route-line {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 18px;
}


.route-point {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.route-time {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
}

.route-city {
    font-size: 13px;
    color: #777;
}

.route-track {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 100px;
}

.route-duration {
    font-size: 11px;
    color: #888;
    background-color: #f1f2f4;
    padding: 2px 10px;
    border-radius: 999px;
}

.loc_icon {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: -12px;
    margin-top: 8px;
    color: #888;
    font-size: 12px;
}

.route-distance img {
    width: 16px;
    height: 16px;
}

.track-line {
    width: 100%;
    height: 1px;
    background-color: #d8dde3;
}

.route-distance {
    font-size: 11px;
    color: #999;
}

.result-action {
    grid-column: 2;
    grid-row: 1 / 3; /* dono rows span karo */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start; /* upar se shuru */
    gap: 20px;
    padding-left: 20px;
}

.result-price {
    font-size: 20px;
    font-weight: 700;
    color: #0d6dbf;
    margin-top: -8px; /* yeh add karo */
}

.select-btn {
    background-color: #0d6dbf;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 12px 30px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
    margin-top: -4px; /* yeh add karo */
}

    .select-btn:hover {
        background-color: #095190;
    }

.no-results {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 240px;
    border: 1px dashed #d8dde3;
    border-radius: 10px;
    background-color: #fafbfc;
}

    .no-results p {
        font-size: 15px;
        color: #888;
        font-weight: 500;
    }

@media (max-width: 900px) {
    .search-results-container {
        flex-direction: column;
        align-items: stretch;
        padding: 24px 20px 40px 20px;
    }

    .filters-sidebar {
        flex: 1;
        width: 100%;
    }

    .filters-header {
        margin-bottom: 0;
    }

    .filters-toggle-btn {
        display: flex;
        align-items: center;
        gap: 6px;
        margin-left: auto;
        background-color: #0d6dbf;
        color: #fff;
        border: none;
        border-radius: 8px;
        padding: 8px 16px;
        font-size: 13px;
        font-weight: 600;
        cursor: pointer;
        transition: background-color 0.2s ease;
    }

        .filters-toggle-btn:hover {
            background-color: #095190;
        }

        .filters-toggle-btn svg {
            width: 16px;
            height: 16px;
        }

    /* filter options by default band, "Filter" button dabane pe khulenge */
    .filters-body {
        display: none;
        margin-top: 20px;
    }

    .filters-sidebar.is-open .filters-body {
        display: block;
    }
}

@media (max-width: 640px) {
    .result-card {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        padding: 18px 18px;
    }

    .result-top {
        grid-column: 1;
        grid-row: 1;
    }

    .result-main {
        grid-column: 1;
        grid-row: 2;
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
    }

    .route-line {
        flex-wrap: wrap;
    }

    .result-action {
        grid-column: 1;
        grid-row: 3;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding-left: 0;
        margin-top: 12px;
        width: 100%;
    }

    .result-price {
        margin-top: 0;
    }

    .select-btn {
        margin-top: 0;
        flex: 0 0 auto;
    }
}

.grecaptcha-badge {
    margin-top: 10px;
}

.route-form .rc-anchor {
    border-radius: 12px;
}

.captcha-box {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    flex-basis: 100%;
    padding: 10px;
    animation: fadeIn .3s ease;
}

.captcha-loading {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #555;
    font-weight: 500;
}

.captcha-spinner {
    width: 18px;
    height: 18px;
    border: 3px solid #d5d9de;
    border-top-color: #0d6dbf;
    border-radius: 50%;
    display: inline-block;
    animation: captchaSpin 1.0s linear infinite;
}

@keyframes captchaSpin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes fadeIn {

    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
