/* ============================================================
   SAUDI BUS BOOKING
   PREMIUM MAIN CSS
   ============================================================ */

:root {
    --primary: #0c5c4c;
    --primary-dark: #073f35;
    --primary-light: #e9f4f1;

    --gold: #c5a35a;
    --gold-light: #f4ead0;

    --dark: #101817;
    --text: #27332f;
    --muted: #7b8581;

    --light: #f7f8f6;
    --white: #ffffff;

    --border: #e4e9e6;

    --success: #147a52;
    --success-light: #e8f6ef;

    --danger: #b94a48;
    --danger-light: #fbeeee;

    --shadow-sm: 0 5px 20px rgba(16, 24, 23, 0.05);
    --shadow-md: 0 15px 45px rgba(16, 24, 23, 0.08);
    --shadow-lg: 0 25px 70px rgba(16, 24, 23, 0.13);

    --radius-sm: 9px;
    --radius-md: 15px;
    --radius-lg: 20px;
}


/* ============================================================
   RESET
   ============================================================ */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Arial,
        Helvetica,
        sans-serif;
    background: var(--light);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

a {
    color: inherit;
}

::selection {
    background: var(--gold);
    color: var(--dark);
}


/* ============================================================
   CONTAINER
   ============================================================ */

.container {
    width: min(1180px, calc(100% - 40px));
    margin-left: auto;
    margin-right: auto;
}

.site-main {
    min-height: 70vh;
}


/* ============================================================
   HEADER
   ============================================================ */

.site-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.13);
}

.header-inner {
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.site-logo,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--white);
    text-decoration: none;
}

.logo-mark {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--gold);
    color: var(--dark);
    border-radius: 11px;
    font-size: 19px;
    font-weight: 800;
    box-shadow: 0 5px 20px rgba(197, 163, 90, 0.25);
}

.logo-text {
    font-size: 21px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.logo-text span {
    color: var(--gold);
}

.main-navigation {
    display: flex;
    align-items: center;
    gap: 30px;
}

.main-navigation a {
    position: relative;
    color: rgba(255, 255, 255, 0.86);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: 0.25s ease;
}

.main-navigation a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -9px;
    height: 1px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: center;
    transition: 0.25s ease;
}

.main-navigation a:hover {
    color: var(--white);
}

.main-navigation a:hover::after {
    transform: scaleX(1);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.language-button {
    background: transparent;
    border: 0;
    color: var(--white);
    cursor: pointer;
    font-weight: 600;
}

.login-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 19px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 8px;
    color: var(--white);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: 0.2s ease;
}

.login-button:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.6);
}

.mobile-menu-button {
    display: none;
    border: 0;
    background: transparent;
}

.mobile-menu-button span {
    display: block;
    width: 24px;
    height: 2px;
    margin: 5px 0;
    background: var(--white);
}


/* ============================================================
   HERO
   ============================================================ */

.hero-section {
    position: relative;
    min-height: 720px;
    padding-top: 170px;
    padding-bottom: 110px;
    background:
        radial-gradient(
            circle at 85% 15%,
            rgba(197, 163, 90, 0.12),
            transparent 28%
        ),
        linear-gradient(
            120deg,
            #063e35 0%,
            #0a5548 50%,
            #122e29 100%
        );
    overflow: hidden;
}

.hero-section::before {
    content: "";
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: rgba(197, 163, 90, 0.07);
    right: -250px;
    top: 100px;
}

.hero-section::after {
    content: "";
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.025);
    left: -200px;
    bottom: -150px;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-copy {
    max-width: 650px;
    color: var(--white);
}

.hero-badge {
    display: inline-block;
    margin-bottom: 20px;
    color: var(--gold);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
}

.hero-copy h1 {
    margin: 0;
    font-size: clamp(42px, 6vw, 72px);
    line-height: 1.04;
    letter-spacing: -2.5px;
}

.hero-copy h1 span {
    color: var(--gold);
}

.hero-copy p {
    max-width: 520px;
    margin: 24px 0 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 18px;
    line-height: 1.7;
}


/* ============================================================
   SEARCH CARD
   ============================================================ */

.search-card {
    margin-top: 65px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 19px;
    box-shadow: var(--shadow-lg);
}

.search-card-header {
    margin-bottom: 25px;
}

.search-label {
    color: var(--primary);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.search-card h2 {
    margin: 7px 0 0;
    color: var(--dark);
    font-size: 25px;
}

.bus-search-form {
    display: grid;
    grid-template-columns: 1fr 40px 1fr 1fr auto;
    align-items: end;
    gap: 12px;
}

.search-field label {
    display: block;
    margin-bottom: 8px;
    color: #4f5955;
    font-size: 12px;
    font-weight: 700;
}

.field-wrapper {
    position: relative;
}

.field-icon {
    position: absolute;
    top: 50%;
    left: 15px;
    transform: translateY(-50%);
    color: var(--primary);
    font-size: 10px;
}

.field-wrapper select,
.field-wrapper input {
    width: 100%;
    height: 54px;
    padding: 0 14px 0 34px;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: var(--white);
    color: var(--dark);
    outline: none;
    transition: 0.2s ease;
}

.field-wrapper select:hover,
.field-wrapper input:hover {
    border-color: #c9d4cf;
}

.field-wrapper select:focus,
.field-wrapper input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(12, 92, 76, 0.08);
}

.swap-button {
    width: 40px;
    height: 40px;
    margin-bottom: 7px;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: var(--white);
    color: var(--primary);
    cursor: pointer;
    font-size: 18px;
    transition: 0.2s ease;
}

.swap-button:hover {
    border-color: var(--primary);
    background: var(--primary-light);
}

.search-button {
    min-height: 54px;
    padding: 0 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 0;
    border-radius: 9px;
    background: var(--primary);
    color: var(--white);
    text-decoration: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    transition: 0.2s ease;
    box-shadow: 0 8px 20px rgba(12, 92, 76, 0.16);
}

.search-button:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 12px 25px rgba(12, 92, 76, 0.22);
}


/* ============================================================
   SECTIONS
   ============================================================ */

.features-section,
.destinations-section {
    padding: 100px 0;
}

.section-heading {
    margin-bottom: 45px;
}

.section-heading > span {
    color: var(--primary);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.section-heading h2 {
    margin: 10px 0 0;
    color: var(--dark);
    font-size: 38px;
    letter-spacing: -1px;
}


/* ============================================================
   FEATURES
   ============================================================ */

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.feature-card {
    padding: 30px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 15px;
    transition: 0.25s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: rgba(12, 92, 76, 0.2);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
    border-radius: 10px;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 12px;
    font-weight: 800;
}

.feature-card h3 {
    margin: 0 0 12px;
    color: var(--dark);
    font-size: 18px;
}

.feature-card p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.7;
}


/* ============================================================
   DESTINATIONS
   ============================================================ */

.destinations-section {
    background: #eef2ef;
}

.destination-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.destination-card {
    position: relative;
    min-height: 270px;
    overflow: hidden;
    border-radius: 16px;
    background:
        linear-gradient(
            160deg,
            #0d6251,
            #102e29
        );
    transition: 0.25s ease;
}

.destination-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.destination-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(
            circle at 80% 20%,
            rgba(197, 163, 90, 0.3),
            transparent 35%
        );
}

.destination-content {
    position: absolute;
    left: 25px;
    right: 25px;
    bottom: 25px;
    color: var(--white);
}

.destination-content span {
    color: var(--gold);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.destination-content h3 {
    margin: 7px 0 0;
    font-size: 26px;
}


/* ============================================================
   BUS RESULTS PAGE
   ============================================================ */

.bus-results-page {
    padding: 100px 0 120px;
    background:
        linear-gradient(
            180deg,
            #f7f8f6 0%,
            #ffffff 100%
        );
}


/* HEADER */

.bus-results-header {
    margin-bottom: 42px;
}

.bus-results-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    color: var(--primary);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.8px;
    text-transform: uppercase;
}

.bus-results-eyebrow::before {
    content: "";
    width: 24px;
    height: 2px;
    background: var(--gold);
}

.bus-results-title {
    margin: 0;
    color: var(--dark);
    font-size: clamp(38px, 5vw, 54px);
    line-height: 1.08;
    letter-spacing: -2px;
}

.bus-results-date {
    margin: 15px 0 0;
    color: var(--muted);
    font-size: 15px;
}


/* RESULTS LIST */

.bus-results-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}


/* RESULT CARD */

.bus-result-card {
    position: relative;
    display: grid;
    grid-template-columns: minmax(260px, 1.2fr) minmax(280px, 1fr) minmax(170px, 0.7fr);
    grid-template-rows: auto auto;
    column-gap: 45px;
    row-gap: 24px;
    align-items: center;
    padding: 34px 30px 30px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 19px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

.bus-result-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(
        180deg,
        var(--gold),
        var(--primary)
    );
}

.bus-result-card:hover {
    transform: translateY(-3px);
    border-color: rgba(12, 92, 76, 0.18);
    box-shadow: var(--shadow-lg);
}


/* BUS INFORMATION */

.bus-result-info {
    grid-column: 1;
    grid-row: 1 / span 2;
    min-width: 0;
}

.bus-result-type {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    margin-bottom: 17px;
    padding: 0 11px;
    border-radius: 999px;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

.bus-result-name {
    margin: 0;
    color: var(--dark);
    font-size: 22px;
    line-height: 1.3;
    letter-spacing: -0.4px;
}

.bus-result-operator,
.bus-result-number {
    margin: 9px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.bus-result-operator strong,
.bus-result-number strong {
    color: var(--text);
}


/* ROUTE */

.bus-result-route {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    width: 100%;
}

.bus-time {
    min-width: 72px;
}

.bus-time strong {
    display: block;
    color: var(--dark);
    font-size: 21px;
    line-height: 1.2;
    font-weight: 800;
}

.bus-time span {
    display: block;
    margin-top: 5px;
    color: var(--muted);
    font-size: 11px;
}

.bus-route-line {
    position: relative;
    flex: 1;
    min-width: 55px;
    height: 1px;
    background: #d9e0dc;
}

.bus-route-line::before,
.bus-route-line::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 7px;
    height: 7px;
    transform: translateY(-50%);
    border-radius: 50%;
    background: var(--primary);
}

.bus-route-line::before {
    left: 0;
}

.bus-route-line::after {
    right: 0;
}

.bus-route-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 18px;
    line-height: 1;
}


/* PRICE */

.bus-result-price {
    grid-column: 3;
    grid-row: 1;
    text-align: right;
}

.bus-result-price-label {
    display: block;
    margin-bottom: 6px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

.bus-result-price-value {
    display: block;
    color: var(--primary);
    font-size: 21px;
    line-height: 1.2;
    font-weight: 800;
    white-space: nowrap;
}

.bus-result-price-unit {
    display: block;
    margin-top: 5px;
    color: var(--muted);
    font-size: 11px;
}


/* SEATS */

.bus-result-seats {
    grid-column: 2;
    grid-row: 2;
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    text-align: center;
}

.bus-result-seats strong {
    color: var(--primary);
    font-weight: 800;
}


/* ACTION */

.bus-result-action {
    grid-column: 3;
    grid-row: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 170px;
    min-height: 48px;
    padding: 0 20px;
    border: 0;
    border-radius: 10px;
    background: var(--primary);
    color: var(--white);
    text-decoration: none;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.1px;
    box-shadow: 0 8px 20px rgba(12, 92, 76, 0.15);
    transition:
        background 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.bus-result-action:hover {
    background: var(--primary-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 13px 28px rgba(12, 92, 76, 0.23);
}


/* ============================================================
   RESULT SEARCH BAR
   ============================================================ */

.bus-results-search {
    margin-bottom: 42px;
    padding: 25px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 17px;
    box-shadow: var(--shadow-sm);
}

.bus-results-search .bus-search-form {
    margin: 0;
}


/* ============================================================
   EMPTY RESULT
   ============================================================ */

.bus-results-empty {
    padding: 75px 30px;
    text-align: center;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 19px;
    box-shadow: var(--shadow-sm);
}

.bus-results-empty-icon {
    width: 58px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 22px;
}

.bus-results-empty h2 {
    margin: 0 0 10px;
    color: var(--dark);
    font-size: 25px;
}

.bus-results-empty p {
    max-width: 500px;
    margin: 0 auto;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.7;
}


/* ============================================================
   SEAT SELECTION PAGE
   ============================================================ */

.seat-page {
    padding: 100px 0 120px;
    background: var(--light);
}

.seat-page-header {
    margin-bottom: 35px;
}

.seat-page-eyebrow {
    display: block;
    margin-bottom: 12px;
    color: var(--primary);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.7px;
}

.seat-page-title {
    margin: 0;
    color: var(--dark);
    font-size: clamp(34px, 5vw, 48px);
    letter-spacing: -1.5px;
}

.seat-page-subtitle {
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 14px;
}


/* SEAT LAYOUT */

.seat-selection-layout {
    display: grid;
    grid-template-columns: minmax(320px, 430px) 1fr;
    gap: 25px;
    align-items: start;
}


/* BUS PREVIEW */

.bus-preview-card {
    padding: 25px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 19px;
    box-shadow: var(--shadow-sm);
}

.bus-preview-header {
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.bus-preview-header h3 {
    margin: 0;
    color: var(--dark);
    font-size: 20px;
}

.bus-preview-header p {
    margin: 7px 0 0;
    color: var(--muted);
    font-size: 13px;
}


/* BUS BODY */

.bus-layout {
    margin-top: 25px;
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: 25px;
    background:
        linear-gradient(
            180deg,
            #f4f7f5,
            #ffffff
        );
}

.bus-driver {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    margin-bottom: 20px;
    border-radius: 12px;
    background: var(--dark);
    color: var(--white);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
}

.seat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.seat {
    position: relative;
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #cfdad5;
    border-radius: 11px;
    background: var(--white);
    color: var(--primary);
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    transition: 0.2s ease;
}

.seat:hover {
    border-color: var(--primary);
    background: var(--primary-light);
    transform: translateY(-2px);
}

.seat.active {
    border-color: var(--primary);
    background: var(--primary);
    color: var(--white);
}

.seat.selected {
    border-color: var(--gold);
    background: var(--gold);
    color: var(--dark);
}

.seat.booked,
.seat.disabled {
    border-color: #e2e2e2;
    background: #eeeeee;
    color: #9b9b9b;
    cursor: not-allowed;
}


/* BOOKING SUMMARY */

.booking-summary {
    padding: 30px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 19px;
    box-shadow: var(--shadow-sm);
}

.booking-summary h3 {
    margin: 0 0 25px;
    color: var(--dark);
    font-size: 22px;
}

.booking-summary-row {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
}

.booking-summary-row span:first-child {
    color: var(--muted);
}

.booking-summary-row span:last-child {
    color: var(--dark);
    font-weight: 700;
}

.booking-summary-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid var(--dark);
}

.booking-summary-total span:first-child {
    color: var(--dark);
    font-size: 14px;
    font-weight: 800;
}

.booking-summary-total span:last-child {
    color: var(--primary);
    font-size: 23px;
    font-weight: 800;
}

.booking-submit {
    width: 100%;
    min-height: 52px;
    margin-top: 25px;
    border: 0;
    border-radius: 10px;
    background: var(--primary);
    color: var(--white);
    font-size: 14px;
    font-weight: 800;
    transition: 0.2s ease;
}

.booking-submit:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}


/* ============================================================
   FOOTER
   ============================================================ */

.site-footer {
    padding: 70px 0 25px;
    background: #0d1917;
    color: rgba(255, 255, 255, 0.7);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 50px;
    padding-bottom: 55px;
}

.footer-brand p {
    max-width: 330px;
    margin: 20px 0 0;
    font-size: 14px;
    line-height: 1.7;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-column h4 {
    margin: 0 0 10px;
    color: var(--white);
    font-size: 14px;
}

.footer-column a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 13px;
    transition: 0.2s ease;
}

.footer-column a:hover {
    color: var(--gold);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 12px;
}


/* ============================================================
   DEFAULT CONTENT
   ============================================================ */

.content-container {
    padding-top: 140px;
    padding-bottom: 100px;
}

.default-post,
.page-content,
.single-post {
    max-width: 850px;
    margin: 0 auto;
    padding: 40px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 15px;
}

.default-post h1,
.page-content h1,
.single-post h1 {
    margin-top: 0;
    color: var(--dark);
}

.post-content,
.page-body,
.single-post-content {
    color: var(--text);
    line-height: 1.8;
}


/* ============================================================
   404
   ============================================================ */

.error-page {
    text-align: center;
}

.error-code {
    display: block;
    margin-bottom: 10px;
    color: var(--primary);
    font-size: 90px;
    font-weight: 800;
    line-height: 1;
}

.error-page h1 {
    color: var(--dark);
}

.error-page p {
    color: var(--muted);
    margin-bottom: 25px;
}


/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1100px) {

    .bus-search-form {
        grid-template-columns: 1fr 1fr;
    }

    .swap-button {
        display: none;
    }

    .search-button {
        width: 100%;
    }

    .bus-result-card {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto auto;
        gap: 24px;
    }

    .bus-result-info {
        grid-column: 1 / -1;
        grid-row: 1;
    }

    .bus-result-route {
        grid-column: 1;
        grid-row: 2;
    }

    .bus-result-price {
        grid-column: 2;
        grid-row: 2;
        text-align: right;
    }

    .bus-result-seats {
        grid-column: 1;
        grid-row: 3;
        text-align: left;
    }

    .bus-result-action {
        grid-column: 2;
        grid-row: 3;
    }

    .features-grid,
    .destination-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .seat-selection-layout {
        grid-template-columns: 1fr;
    }
}


@media (max-width: 800px) {

    .main-navigation,
    .header-actions {
        display: none;
    }

    .mobile-menu-button {
        display: block;
    }

    .hero-section {
        min-height: auto;
        padding-top: 135px;
        padding-bottom: 70px;
    }

    .hero-copy h1 {
        font-size: 46px;
    }

    .search-card {
        margin-top: 45px;
        padding: 22px;
    }

    .bus-search-form {
        grid-template-columns: 1fr;
    }

    .features-section,
    .destinations-section {
        padding: 70px 0;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .bus-results-page {
        padding: 75px 0 90px;
    }
}


@media (max-width: 650px) {

    .bus-result-card {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 22px;
        padding: 27px 22px;
    }

    .bus-result-info,
    .bus-result-route,
    .bus-result-price,
    .bus-result-seats,
    .bus-result-action {
        width: 100%;
    }

    .bus-result-route {
        justify-content: space-between;
    }

    .bus-result-price {
        text-align: left;
        padding-top: 3px;
    }

    .bus-result-seats {
        text-align: left;
    }

    .bus-result-action {
        min-width: 0;
    }

    .bus-results-title {
        font-size: 38px;
    }

    .bus-results-search {
        padding: 20px;
    }
}


@media (max-width: 520px) {

    .container {
        width: min(100% - 28px, 1180px);
    }

    .header-inner {
        min-height: 70px;
    }

    .hero-copy h1 {
        font-size: 39px;
        letter-spacing: -1.5px;
    }

    .hero-copy p {
        font-size: 16px;
    }

    .features-grid,
    .destination-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .section-heading h2 {
        font-size: 30px;
    }

    .footer-bottom {
        flex-direction: column;
    }

    .bus-results-title {
        font-size: 34px;
        letter-spacing: -1px;
    }

    .bus-time {
        min-width: 58px;
    }

    .bus-time strong {
        font-size: 18px;
    }

    .bus-route-line {
        min-width: 35px;
    }

    .seat-grid {
        gap: 7px;
    }

    .seat {
        min-height: 52px;
    }

    .booking-summary {
        padding: 22px;
    }
}