.row {
    --bs-gutter-x: 1.5rem;
    --bs-gutter-y: 0;
    display: flex;
    flex-wrap: wrap;
    margin-top: calc(-1 * var(--bs-gutter-y));
    margin-right: calc(-.5 * var(--bs-gutter-x));
    margin-left: calc(-.5 * var(--bs-gutter-x));
} 
.flex {
    display: flex;
}
.flex-wrap {
    flex-wrap: wrap;
}
.front-header-scope {
    --brand: #DA251C;
    --brand-dark: #C8281E;
    --dark: #111827;
    --transition: .25s ease;
    font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}
.front-header-scope .topbar {
    background: var(--dark);
    color: rgba(255,255,255,.75);
    font-size: 14px;
    padding: 10px 0;
    height: 50px;
    border-bottom: 1px solid rgba(255,255,255,.05);
}
.front-header-scope .topbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.front-header-scope .topbar__left { display: flex; gap: 20px; flex-wrap: wrap; }
.front-header-scope .topbar__left a {
    display: flex;
    align-items: center;
    gap: 6px;
    color: rgba(255,255,255,.75);
    transition: color var(--transition);
    text-decoration: none;
    font-size: 13px;
}

/* Customer dashboard */
.welcome-title { font-size: 34px; font-weight: 800; }
.action-card{
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 16px;
  padding: 18px;
  height: 100%;
  background: #fff;
  box-shadow: 0 10px 24px rgba(16, 24, 40, .06);
}
.icon-pill{
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #fff;
}
.pill-red { background: linear-gradient(135deg, #ff3b30, #ff6a00); }
.pill-orange { background: linear-gradient(135deg, #ff7a18, #ffb300); }
.pill-amber { background: linear-gradient(135deg, #fbbf24, #f59e0b); }
.pill-sky { background: linear-gradient(135deg, #38bdf8, #60a5fa); }

.btn-soft { border-radius: 12px; padding: 10px 14px; font-weight: 700; }
.btn-danger.btn-soft { box-shadow: 0 12px 20px rgba(220,38,38,.20); }

.info-box{
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(16, 24, 40, .06);
}
.info-item{ display:flex; align-items:center; gap:10px; padding:10px 0; border-bottom:1px solid rgba(0,0,0,.06); }
.info-item:last-child{ border-bottom:0; }
.info-ic{
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(17,24,39,.06);
  color: #111827;
}

/* Small utilities used in customer templates */
.card--r16 { border-radius: 16px !important; }
.card-header--r16 { border-top-left-radius: 16px !important; border-top-right-radius: 16px !important; }
.front-header-scope .topbar__left a:hover { color: var(--brand); }
.front-header-scope .topbar__right { display: flex; align-items: center; gap: 16px; }
.front-header-scope .topbar__cta { color: rgba(255,255,255,.65); font-size: 12px; display: flex; gap:10px; text-decoration: none; }

.front-header-scope .navbar {
    z-index: 999;
    background: transparent;
    padding: 14px 0;
    transition: box-shadow var(--transition), padding var(--transition), background var(--transition), top var(--transition);
    position: absolute;
    width: 100%;
    top: 50px;
    left: 0;
    right: 0;
}
.front-header-scope .navbar.scrolled {
    position: fixed;
    top: 0;
    background: var(--dark);
    padding: 10px 0;
    box-shadow: 0 4px 24px rgba(0,0,0,.3);
}
.front-header-scope .navbar__inner { display: flex; align-items: center; gap: 18px; }
.front-header-scope .navbar__logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; text-decoration:none; }
.front-header-scope .navbar__logo .logo-icon img { max-height: 55px; }
.front-header-scope .logo-text { display: flex; flex-direction: column; }
.front-header-scope .logo-brand {
    font-family: "Fraunces", serif;
    font-size: 21px;
    font-weight: 800;
    color: #fff;
    line-height: 1.15;
}
.front-header-scope .logo-sub { font-size: 11.5px; color: rgba(255,255,255,1); letter-spacing: .04em; text-transform: uppercase; }

.front-header-scope .navbar__nav { display: flex; align-items: center; gap: 22px; margin: 0 auto; }
.front-header-scope .navbar__nav a {
    color: rgba(255,255,255,.85);
    font-size: 15px;
    font-weight: 600;
    transition: color var(--transition);
    position: relative;
    text-decoration: none;
    padding: 6px 0;
}
.front-header-scope .navbar__nav a::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 0; height: 2px;
    background: var(--brand);
    transition: width var(--transition);
    border-radius: 2px;
}
.front-header-scope .navbar__nav a:hover { color: #fff; }
.front-header-scope .navbar__nav a:hover::after { width: 100%; }

.front-header-scope .navbar__actions { display: flex; align-items: center; gap: 10px; }
.front-header-scope .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 18px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    border: 0;
    white-space: nowrap;
    text-decoration: none;
}
.front-header-scope .btn--primary { background: var(--brand); color: #fff; }
.front-header-scope .btn--primary:hover { background: var(--brand-dark); }
.front-header-scope .btn--white { background: #fff; color: #111827; }
.front-header-scope .btn--white:hover { transform: translateY(-1px); }

.front-header-scope .hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.front-header-scope .hamburger span {
    display: block;
    width: 22px; height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: var(--transition);
}
.front-header-scope .hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.front-header-scope .hamburger.active span:nth-child(2) { opacity: 0; }
.front-header-scope .hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 992px) {
    .front-header-scope .navbar__inner { flex-wrap: wrap; justify-content: space-between; }
    .front-header-scope .navbar__nav { display: none; width: 100%; padding: 10px 0 0; gap: 14px; flex-direction: column; align-items: flex-start; }
    .front-header-scope .navbar__nav.open { display: flex; }
    .front-header-scope .hamburger { display: flex; }
}

main.py-4 { padding-top: 0 !important; }
.dash-hero {
    min-height: 400px;
    background: linear-gradient(90deg, rgba(0,0,0,.65) 0%, rgba(0,0,0,.35) 55%, rgba(0,0,0,.10) 100%), url('img/keralam.jpg');
    background-size: cover;
    background-position: center;
}
.dash-shell { margin-top: -70px;     padding-bottom: 140px; }
.dash-card {
    border: 0;
    border-radius: 16px;
    box-shadow: 0 14px 40px rgba(16, 24, 40, .12);
    overflow: hidden;
    background: rgba(255,255,255);
    backdrop-filter: blur(8px);
}

.side-user {
    padding: 22px 20px 18px;
    border-bottom: 1px solid rgba(0,0,0,.06);
}
.avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, #ff512f 0%, #dd2476 100%);
    /* box-shadow: 0 10px 24px rgba(221, 36, 118, .25); */
    border: 3px solid rgba(255,255,255,.9);
}
.side-nav a {
    border-radius: 12px;
    padding: 10px 12px;
    color: #111827;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
}
.side-nav a:hover { background: rgba(17,24,39,.04); }
.side-nav a.active {
    background: rgba(220, 38, 38, .06);
    position: relative;
}
.side-nav a.active::before{
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    bottom: 10px;
    width: 3px;
    border-radius: 3px;
    background: #dc2626;
}
.muted { color: #6b7280; }

/* Booking success (front) */
.booking-success .listing-hero h1 { font-size: 34px; }
.booking-success__container { padding: 20px 40px; }
.booking-success__subhead { font-size: 15px; line-height: 1.35; }
.booking-success__meta { margin: 6px 0 0; font-size: 15px; }
.booking-success__body { border-top: 1px solid #eee; border-radius: 0 0 10px 10px; }
.booking-success .discount-text h5 { font-size: 16px; margin-bottom: 6px; }
.booking-success .discount-text p { font-size: 14.5px; }
.booking-success__kv { margin: 0; font-size: 14.5px; color: #374151; }
.booking-success__kv span { color: #111827; font-weight: 600; }
.booking-success__kv--strong { font-size: 15.5px; }

.booking-success__qr {
    background: #fff;
    display: inline-flex;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}
.booking-success__qr-img {
    width: 220px;
    height: 220px;
    display: block;
}

.booking-success__table-wrap { overflow: auto; }
.booking-success__table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14.5px;
}
.booking-success__table th {
    text-align: left;
    padding: 10px 8px;
    border-bottom: 1px solid #e5e7eb;
    color: #111827;
    font-weight: 700;
    white-space: nowrap;
}
.booking-success__table td {
    padding: 10px 8px;
    border-bottom: 1px solid #f2f2f2;
    color: #111827;
}
.booking-success__passengers { margin-top: 16px; }

@media (max-width: 768px) {
    .booking-success__container { padding: 16px 14px; }
    .booking-success__qr-img { width: 180px; height: 180px; }
    .booking-success .listing-hero h1 { font-size: 28px; }
}

/* Customer pages (profile/password) */
.customer-form .form-label { font-size: 14px; font-weight: 700; color: #111827; }
.customer-form .inp {
    /* width: 100%;
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 15px;
    border: 1px solid #e5e7eb;
    outline: none;
    background: #fff; */
}
.customer-form .inp:focus {
    border-color: rgba(218, 37, 28, .55);
    box-shadow: 0 0 0 4px rgba(218, 37, 28, .12);
}
.customer-form .inp[readonly] { background: #f9fafb; color: #6b7280; }
.customer-form .inp.is-invalid { border-color: #dc2626; }
.customer-form .invalid-feedback { display: block; font-size: 13px; }
.customer-form .form-text { font-size: 13px; }
.hp-field { display: none !important; }
.customer-form__actions {
    display: flex;
    gap: 10px;
    margin-top: 18px;
    flex-wrap: wrap;
}
.customer-form__actions .btn-book,
.customer-form__actions .btn-clear {
    border-radius: 12px;
    padding: 12px 18px;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    border: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 160px;
}
.customer-form__actions .btn-book { background: #DA251C; color: #fff; }
.customer-form__actions .btn-book:hover { background: #C8281E; }
.customer-form__actions .btn-clear { background: #111827; color: #fff; }
.customer-form__actions .btn-clear:hover { background: #0b1220; }

/* Customer order details */
.customer-order__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}
.customer-order__title { font-size: 22px; font-weight: 900; color: #111827; }
.customer-order__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.customer-order__actions .btn-book,
.customer-order__actions .btn-clear {
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    border: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 160px;
}
.customer-order__actions .btn-book { background: #DA251C; color: #fff; }
.customer-order__actions .btn-book:hover { background: #C8281E; }
.customer-order__actions .btn-clear { background: #111827; color: #fff; }
.customer-order__actions .btn-clear:hover { background: #0b1220; }
.customer-order__alert { margin-top: 10px; }

.customer-order__grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 14px;
}
.customer-order__span-3 { grid-column: span 3; }
.customer-order__span-2 { grid-column: span 2; }
.customer-order__card {
    background: #fff;
    border: 1px solid rgba(0,0,0,.06);
    border-radius: 16px;
    /* box-shadow: 0 14px 40px rgba(16, 24, 40, .08); */
    padding: 16px 16px;
}
.customer-order__card-title { font-size: 16px; font-weight: 900; color: #111827; margin-bottom: 6px; }
.customer-order__card-main { font-size: 16px; font-weight: 800; color: #111827; }
.customer-order__card-sub { font-size: 14px; margin-top: 4px; }
.customer-order__kvs { margin-top: 10px; display: grid; gap: 6px; }
.customer-order__kv { font-size: 14.5px; color: #374151; }
.customer-order__kv span { font-weight: 700; color: #111827; }
.customer-order__kv--strong { font-size: 15.5px; }
.customer-order__pill-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.customer-order__pill {
    background: rgba(17,24,39,.06);
    color: #111827;
    font-weight: 800;
    font-size: 12.5px;
    padding: 6px 10px;
    border-radius: 999px;
    text-transform: capitalize;
}

.customer-order__card--qr { display: flex; flex-direction: column; gap: 8px; }
.customer-order__qr-help { font-size: 13px; }
.customer-order__qr {
    background: #fff;
    display: inline-flex;
    /* padding: 12px; */
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    width: fit-content;
}
.customer-order__qr-img { width: 120px; height: 120px; display: block; }

.customer-order__card--passengers { margin-top: 14px; }
.customer-order__table-wrap { overflow: auto; }
.customer-order__table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.customer-order__table th {
    text-align: left;
    padding: 10px 8px;
    border-bottom: 1px solid #e5e7eb;
    color: #111827;
    font-weight: 800;
    white-space: nowrap;
}
.customer-order__table td {
    padding: 10px 8px;
    border-bottom: 1px solid #f2f2f2;
    color: #111827;
}

@media (max-width: 992px) {
    .customer-order__grid { grid-template-columns: 1fr; }
    .customer-order__span-3,
    .customer-order__span-2 { grid-column: span 1; }
}
@media (max-width: 768px) {
    .customer-order__qr-img { width: 180px; height: 180px; }
    /* .customer-order__actions .btn-book,
    .customer-order__actions .btn-clear { min-width: 140px; } */
}   

/* Invoice (PDF via DomPDF) */
.invoice { font-family: DejaVu Sans, sans-serif; font-size: 12px; color: #111827; }
.invoice .muted { color: #6b7280; }
.invoice__title { font-size: 18px; font-weight: 800; margin: 0; }
.invoice__sub { margin-top: 2px; }
.invoice__top { width: 100%; }
.invoice__top td { vertical-align: top; }
.invoice__brand img { height: 34px; }
.invoice__brand-text { font-weight: 800; }
.invoice__qr { text-align: right; }
.invoice__qr img { width: 150px; height: 150px; border: 1px solid #111827; padding: 6px; background: #fff; }

.invoice__grid { width: 100%; border-spacing: 0; margin-top: 14px; }
.invoice__grid td { vertical-align: top; padding: 6px; }
.invoice__col-50 { width: 50%; }
.invoice__col-33 { width: 33.33%; }
.invoice__card { border: 1px solid #cbd5e1; padding: 12px; background: #ffffff; }
.invoice__card h4 { margin: 0 0 10px 0; font-size: 13.5px; font-weight: 800; padding: 6px 8px; background: #f8fafc; border: 1px solid #e5e7eb; }
.invoice__main { font-size: 13px; font-weight: 800; margin-bottom: 6px; }
.invoice__kv { margin: 0 0 6px 0; }
.invoice__kv b { font-weight: 800; }
.invoice__kv--spaced { margin-top: 10px; }
.invoice__pill-row { margin-bottom: 8px; }
.invoice__pill { display: inline-block; padding: 5px 9px; border-radius: 999px; background: #f3f4f6; font-weight: 800; font-size: 11px; margin-right: 8px; text-transform: capitalize; }

.invoice__card--passengers { margin-top: 12px; }
.invoice__passengers { width: 100%; border-collapse: collapse; margin-top: 8px; }
.invoice__passengers th { text-align: left; padding: 8px; border: 1px solid #e5e7eb; font-weight: 800; background: #f8fafc; }
.invoice__passengers td { padding: 8px; border: 1px solid #e5e7eb; }
.invoice__note { margin-top: 10px; font-size: 11px; color: #6b7280; }
.invoice__support { margin-top: 14px; padding-top: 10px; border-top: 1px solid #e5e7eb; font-size: 11px; color: #374151; }
.invoice__support b { font-weight: 800; color: #111827; }
