﻿/*** Root font‑size tweaks ***/
html {
    font-size: 14px;
}

@media(min - width:768px) {
    html {
        font-size: 16px;
    }
}

:root {
    --primary: #0062e6;
    --secondary: #6b0ac9;
    --accent: #97d700;
}

body {
    scroll-behavior: smooth;
}

/* Navbar glass effect */
.navbar-color {
    background: rgba(255,255,255,.85);
    backdrop-filter: blur(6px);
    transition: background .3s ease, box-shadow .3s ease;
}

    .navbar-color.scrolled {
        background: #fff;
        box-shadow: 0 2px 8px rgba(0,0,0,.06);
    }

/* Utility shadows on focus */
.btn:focus, .form-control:focus, .form-select:focus {
    box-shadow: 0 0 0 .2rem rgba(0,98,230,.25);
}

/* Global footer */
.footer a {
    color: inherit;
    text-decoration: none;
}

/* ========================
   Trip card – colorful style
   ======================== */
.card-trip {
    position: relative;
    border: none;
    border-radius: 1.5rem;
    overflow: hidden; /* keeps the left stripe inside */
    background: #fff;
    transition: transform .2s ease, box-shadow .2s ease;
}

    /* 1. subtle lift on hover */
    .card-trip:hover {
        transform: translateY(-4px);
        box-shadow: 0 12px 26px rgba(0,0,0,.10);
    }

    /* 2. gradient stripe on the left */
    .card-trip::before {
        content: "";
        position: absolute;
        inset: 0 auto 0 0;
        width: .5rem;
        background-image: linear-gradient( to bottom, var(--primary) 0%, var(--secondary) 100%);
    }

    /* 3. alternate cards get lime→blue stripe */
    .card-trip:nth-of-type(even)::before {
        background-image: linear-gradient( to bottom, var(--accent) 0%, var(--primary) 100%);
    }

/* ========================
   Badge + icons
   ======================== */
.badge.seats-left {
    background-image: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
    font-size: .9rem;
    border-radius: 1rem;
    box-shadow: 0 4px 12px rgba(0,0,0,.08);
}

.icon-wrapper {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    margin-right: .6rem;
    flex-shrink: 0;
}

/* give the second icon another colour for quick scanning */
.icon-destination {
    background: var(--secondary);
}

.card-trip {
    border-radius: 1.5rem;
}

.badge {
    font-weight: 500;
}

@media (min-width: 768px) {
    .card-trip .border-end {
        border-color: rgba(0,0,0,.05) !important;
    }
}

.tab-content > .active {
    display: block;
}

.tickets-results-item {
    width: 100%;
    -webkit-box-shadow: 0px 0px 30px 0px rgba(0, 0, 0, 0.1);
    -moz-box-shadow: 0px 0px 30px 0px rgba(0,0,0,0.1);
    box-shadow: 0px 0px 30px 0px rgba(0, 0, 0, 0.1);
    margin-bottom: 10px;
    border-radius: 6px;
    border: 2px solid #fff;
}

.align-items-stretch {
    align-items: stretch !important;
}

.d-flex {
    display: flex !important;
}

.results-item-left {
    width: calc(100% - 290px);
    padding: 15px 30px;
}

.align-items-center {
    align-items: center !important;
}

.flex-wrap {
    flex-wrap: wrap !important;
}

.d-flex {
    display: flex !important;
}

.result-item-start-point {
    position: relative;
    padding-left: 40px;
    text-align: left;
    width: 40%;
}

.result-item-start-point-icon {
    width: 32px;
    height: 32px;
    position: absolute;
    left: 0;
    top: 0;
    font-size: 1.6rem;
    color: rgba(0, 0, 0, 0.35);
}

.result-item-city {
    font-weight: 700;
    color: rgba(0, 0, 0, 0.5);
}

.result-item-city {
    font-weight: 700;
    color: rgba(0, 0, 0, 0.5);
}

.result-item-time {
    font-size: 1.55rem;
    font-weight: 700;
}

.data-label {
    font-size: 0.7rem;
    background: #f0f0f0;
    padding: 5px 15px;
    border-radius: 6px;
}

.result-item-duration {
    width: 20%;
    padding: 0 20px;
    text-align: center;
}

.green {
    color: #49af48;
}

.result-item-duration-label-title {
    display: block;
    text-align: center;
    color: rgba(0, 0, 0, 0.5);
    font-size: 0.75rem;
    padding-bottom: 5px;
}

.result-item-duration-label {
    font-size: 0.9rem;
    background: #6b7fd7;
    color: #fff;
    padding: 5px 15px;
    border-radius: 6px;
    font-weight: 500;
    display: inline-block;
}

element.style {
    max-width: 150px;
    padding-top: 10px;
}

.result-item-end-point {
    position: relative;
    padding-right: 40px;
    width: 40%;
    text-align: right;
}

.results-item-right {
    width: 290px;
    border-left: 1px solid #f0f0f0;
    padding: 25px 30px 15px 30px;
    position: relative;
}

.result-item-price {
    font-size: 1.6rem;
    padding: 0 0 5px 0;
    font-weight: 800;
    display: block;
    text-align: center;
}

.btn-primary {
    color: #fff;
    background: #152a69;
    border-color: #152a69;
}



/* ----------- Trip card (responsive tweaks) ----------- */
@media (max-width: 767.98px) {

    .result-item-start-point,
    .result-item-end-point,
    .result-item-duration {
        width: 100%;
        text-align: left !important;
        padding: 0 0 1rem 40px; /* keep icon spacing */
    }

    .result-item-duration {
        text-align: center !important; /* center the duration pill */
        padding: 1rem 0;
    }

    .results-item-right {
        width: 80%;
        margin-left: 10%;
        border-left: none;
        border-top: 1px solid #f0f0f0;
        padding: 1rem 0;
    }
}




