:root {
    --bs-primary: #22c55e;
    --bs-primary-rgb: 34, 197, 94;
    --bs-link-color: #16a34a;
    --bs-link-hover-color: #15803d;
}

.btn-primary {
    background-color: #22c55e;
    border-color: #22c55e;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background-color: #16a34a !important;
    border-color: #16a34a !important;
}

.btn-outline-primary {
    color: #16a34a;
    border-color: #22c55e;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active {
    background-color: #22c55e !important;
    border-color: #22c55e !important;
    color: #fff !important;
}

.text-primary {
    color: #16a34a !important;
}

.bg-primary {
    background-color: #22c55e !important;
}

.border-primary {
    border-color: #22c55e !important;
}

.link-primary {
    color: #16a34a !important;
}

.link-primary:hover,
.link-primary:focus {
    color: #15803d !important;
}


.footer {
    background-color: #f5f5f5;
    font-size: .9em;
    height: 60px;
}

.footer > .container, .footer > .container-fluid {
    padding-right: 15px;
    padding-left: 15px;
}

.not-set {
    color: #c55;
    font-style: italic;
}

/* add sorting icons to gridview sort links */
a.asc:after, a.desc:after {
    content: '';
    left: 3px;
    display: inline-block;
    width: 0;
    height: 0;
    border: solid 5px transparent;
    margin: 4px 4px 2px 4px;
    background: transparent;
}

a.asc:after {
    border-bottom: solid 7px #212529;
    border-top-width: 0;
}

a.desc:after {
    border-top: solid 7px #212529;
    border-bottom-width: 0;
}

.grid-view th,
.grid-view td:last-child {
    white-space: nowrap;
}

.grid-view .filters input,
.grid-view .filters select {
    min-width: 50px;
}

.hint-block {
    display: block;
    margin-top: 5px;
    color: #999;
}

.error-summary {
    color: #a94442;
    background: #fdf7f7;
    border-left: 3px solid #eed3d7;
    padding: 10px 20px;
    margin: 0 0 15px 0;
}

/* align the logout "link" (button in form) of the navbar */
.navbar form > button.logout {
    padding-top: 7px;
    color: rgba(255, 255, 255, 0.5);
}

@media(max-width:767px) {
    .navbar form > button.logout {
        display:block;
        text-align: left;
        width: 100%;
        padding: 10px 0;
    }
}

.navbar form > button.logout:focus,
.navbar form > button.logout:hover {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.75);
}

.navbar form > button.logout:focus {
    outline: none;
}

/* style breadcrumb widget as in previous bootstrap versions */
.breadcrumb {
    background-color: var(--bs-gray-200);
    border-radius: .25rem;
    padding: .75rem 1rem;
}

.breadcrumb-item > a
{
    text-decoration: none;
}


:root {
    --primary: #22c55e;
    --primary-dark: #16a34a;
    --text-dark: #10213f;
    --muted: #6c7a92;
    --soft-bg: #f6fbf7;
    --soft-blue: #ecfdf3;
    --border-soft: #dceee2;
    --shadow-soft: 0 14px 40px rgba(16, 33, 63, 0.08);
    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 16px;
}

body {
    font-family: "Inter", sans-serif;
    background: #fff;
    color: var(--text-dark);
}

a {
    text-decoration: none;
}

.navbar {
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(226, 232, 245, .8);
    padding: 16px 0;
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.65rem;
    color: var(--text-dark);
    letter-spacing: -0.03em;
}

.brand-badge {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #4ade80, #16a34a);
    color: #fff;
    margin-right: 10px;
    box-shadow: 0 8px 24px rgba(34,197,94,.28);
}

.nav-link {
    color: var(--text-dark);
    font-weight: 600;
}

.btn-pill {
    border-radius: 999px;
    font-weight: 700;
    padding: 11px 18px;
}

.hero {
    position: relative;
    overflow: hidden;
    background:
            radial-gradient(circle at top right, rgba(34,197,94,.12), transparent 25%),
            linear-gradient(180deg, #ffffff 0%, #f7fcf8 100%);
    padding: 72px 0 88px;
}

.hero-text .badge-soft {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(34,197,94,.10);
    color: var(--primary-dark);
    font-weight: 700;
    border-radius: 999px;
    padding: 10px 14px;
    margin-bottom: 18px;
}

.hero-text h1 {
    font-weight: 800;
    font-size: clamp(2.5rem, 5vw, 4.6rem);
    line-height: 1.02;
    letter-spacing: -0.05em;
    margin-bottom: 18px;
    max-width: 720px;
}

.hero-text p {
    color: var(--muted);
    font-size: 1.08rem;
    max-width: 620px;
    margin-bottom: 28px;
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

.hero-stat {
    background: #fff;
    border: 1px solid var(--border-soft);
    border-radius: 999px;
    padding: 10px 14px;
    color: var(--muted);
    font-weight: 600;
    box-shadow: 0 8px 20px rgba(16,33,63,.04);
}

.search-card {
    background: #fff;
    border: 1px solid var(--border-soft);
    border-radius: 30px;
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    margin-top: 28px;
}

.search-grid {
    display: grid;
    grid-template-columns: 1.1fr 1.1fr .9fr .8fr 180px;
    align-items: stretch;
}

.search-field {
    min-height: 88px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 22px;
    border-right: 1px solid var(--border-soft);
}

.search-field:last-child {
    border-right: none;
}

.search-field i {
    color: #7b89a2;
    font-size: 1.15rem;
    flex: 0 0 auto;
}

.search-field label {
    display: block;
    font-size: .79rem;
    font-weight: 700;
    color: var(--muted);
    margin-bottom: 4px;
}

.search-field input,
.search-field select {
    border: none;
    outline: none;
    box-shadow: none;
    padding: 0;
    width: 100%;
    background: transparent;
    font-weight: 700;
    color: var(--text-dark);
}

.search-submit {
    border: 0;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    font-size: 1.05rem;
    font-weight: 800;
    transition: .2s ease;
}

.search-submit:hover {
    background: linear-gradient(135deg, var(--primary-dark), #15803d);
}

.hero-card {
    background: #fff;
    border-radius: 30px;
    border: 1px solid var(--border-soft);
    box-shadow: var(--shadow-soft);
    padding: 24px;
    position: relative;
}

.hero-map {
    background:
            linear-gradient(rgba(255,255,255,.18), rgba(255,255,255,.18)),
            linear-gradient(45deg, #e3f5e8 25%, transparent 25%),
            linear-gradient(-45deg, #e3f5e8 25%, transparent 25%),
            linear-gradient(45deg, transparent 75%, #e3f5e8 75%),
            linear-gradient(-45deg, transparent 75%, #e3f5e8 75%);
    background-size: 100% 100%, 42px 42px, 42px 42px, 42px 42px, 42px 42px;
    background-position: 0 0, 0 0, 0 21px, 21px -21px, -21px 0px;
    border-radius: 24px;
    min-height: 390px;
    position: relative;
    overflow: hidden;
}

.route-bubble,
.price-bubble {
    position: absolute;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 12px 30px rgba(16,33,63,.12);
    border: 1px solid var(--border-soft);
    padding: 14px 16px;
}

.route-bubble {
    top: 28px;
    left: 24px;
    max-width: 220px;
}

.price-bubble {
    right: 24px;
    bottom: 28px;
    text-align: right;
}

.route-line {
    position: absolute;
    left: 50%;
    top: 20%;
    width: 180px;
    height: 180px;
    border: 4px dashed rgba(34,197,94,.35);
    border-radius: 50%;
    transform: translateX(-50%);
}

.map-point {
    position: absolute;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 0 8px rgba(34,197,94,.14);
}

.map-point.point-a {
    left: 24%;
    top: 34%;
}

.map-point.point-b {
    right: 24%;
    bottom: 24%;
}

.section {
    padding: 92px 0;
}

.section-soft {
    background: var(--soft-bg);
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    margin-bottom: 14px;
}

.section-subtitle {
    color: var(--muted);
    max-width: 700px;
    font-size: 1.03rem;
    margin-bottom: 40px;
}

.feature-card,
.step-card,
.route-card,
.trust-card,
.cta-card {
    background: #fff;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-soft);
    height: 100%;
}

.feature-card,
.step-card,
.trust-card {
    padding: 28px;
}

.feature-icon,
.step-icon,
.trust-icon {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    color: var(--primary-dark);
    background: rgba(34,197,94,.10);
    margin-bottom: 18px;
}

.feature-card h3,
.step-card h3,
.route-card h3,
.trust-card h3 {
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.feature-card p,
.step-card p,
.route-card p,
.trust-card p {
    color: var(--muted);
    margin-bottom: 0;
}

.route-card {
    overflow: hidden;
}

.route-cover {
    height: 160px;
    background: linear-gradient(135deg, #16a34a, #10213f);
    color: #fff;
    padding: 24px;
    display: flex;
    align-items: end;
    position: relative;
}

.route-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(255,255,255,.18), transparent 30%);
}

.route-cover-content {
    position: relative;
    z-index: 1;
}

.route-body {
    padding: 22px 24px 24px;
}

.route-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 18px;
    font-weight: 700;
}

.route-meta .price {
    color: var(--primary);
}

.cta-card {
    padding: 38px;
    background: linear-gradient(135deg, #14532d, #22c55e);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.cta-card::after {
    content: "";
    position: absolute;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    right: -70px;
    top: -70px;
    background: rgba(255,255,255,.08);
}

.cta-card p {
    color: rgba(255,255,255,.84);
    max-width: 650px;
    margin-bottom: 0;
}

.footer {
    padding: 28px 0 42px;
    border-top: 1px solid var(--border-soft);
    background: #fff;
}

.footer a {
    color: var(--muted);
    font-weight: 600;
}

@media (max-width: 1199.98px) {
    .search-grid {
        grid-template-columns: 1fr 1fr;
    }

    .search-field {
        border-bottom: 1px solid var(--border-soft);
    }

    .search-field:nth-child(2),
    .search-field:nth-child(4) {
        border-right: none;
    }

    .search-submit {
        min-height: 76px;
        grid-column: 1 / -1;
    }
}

@media (max-width: 991.98px) {
    .hero {
        padding: 48px 0 72px;
    }

    .hero-card {
        margin-top: 28px;
    }
}

@media (max-width: 767.98px) {
    .search-grid {
        grid-template-columns: 1fr;
    }

    .search-field {
        min-height: 76px;
        border-right: none !important;
    }

    .search-submit {
        min-height: 72px;
    }

    .section {
        padding: 72px 0;
    }

    .hero-text h1 {
        font-size: 2.45rem;
    }

    .hero-card,
    .feature-card,
    .step-card,
    .route-card,
    .trust-card,
    .cta-card {
        border-radius: 22px;
    }

    .hero-card.map {
        display: none;
    }

    .hero-text p {
        margin-bottom: 0px;
    }

    .hero-map {
        min-height: 300px;
    }
}

/* AUTH */

.auth-body{
    background:#f4f6fb;
}

.auth-wrapper{
    min-height:100vh;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:20px;
}

.auth-card{
    width:100%;
    max-width:420px;
    background:white;
    padding:40px;
    border-radius:16px;
    box-shadow:0 20px 50px rgba(0,0,0,0.08);
}

.auth-logo{
    text-align:center;
    font-weight:800;
    font-size:22px;
    margin-bottom:25px;
}

.auth-logo a{
    text-decoration:none;
    color:#16a34a;
}

.auth-logo i{
    margin-right:6px;
}

.auth-message {
    transition: opacity 0.2s ease;
}

.location-autocomplete-dropdown {
    max-height: 280px;
    overflow-y: auto;
    border-radius: 14px;
    border: 1px solid #e5e7eb;
    background: #fff;
    margin-top: 6px;
}

.location-autocomplete-dropdown .list-group-item {
    border: 0;
    border-bottom: 1px solid #f1f5f9;
    padding: 12px 14px;
    text-align: left;
    background: #fff;
}

.location-autocomplete-dropdown .list-group-item:last-child {
    border-bottom: 0;
}

.location-autocomplete-dropdown .list-group-item:hover {
    background: #f8fbff;
}
.hero {
    position: relative;
    z-index: 20;
    overflow: visible;
}

.search-card {
    position: relative;
    z-index: 50;
    overflow: visible !important;
}

.search-grid {
    position: relative;
    z-index: 60;
    overflow: visible !important;
}

.search-field {
    position: relative;
    z-index: 70;
    overflow: visible !important;
}

.search-field:focus-within {
    z-index: 80;
}

.location-autocomplete-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 9999;
    max-height: 280px;
    overflow-y: auto;
    margin-top: 6px;
    border-radius: 14px;
    border: 1px solid #e5e7eb;
    background: #fff;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.section {
    position: relative;
    z-index: 1;
}

.avatar {
    width:72px;
    height:72px;
    border-radius:50%;
    object-fit:cover;
}
.vehicle-icon {
    font-size: 18px;
    line-height: 1;
    opacity: .85;
}