/* ============================================================
   BOOKING RESULTS PAGE — Premium UI (matches home-v4.css)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800;900&display=swap');

/* ---------- CSS Variables ---------- */
:root {
    --orange: #f37021;
    --orange-dark: #e05e11;
    --orange-light: #fff5ed;
    --gold: #ffb700;
    --navy: #1c2331;
    --navy-light: #2a3447;
    --text: #333;
    --text-muted: #888;
    --border: #eee;
    --bg-light: #f8f9fa;
    --green: #0ba017;
    --red: #cc0000;
    --radius: 14px;
    --shadow: 0 4px 24px rgba(0, 0, 0, .09);
    --shadow-hover: 0 12px 40px rgba(0, 0, 0, .14);
}

/* ---------- Base ---------- */
body {
    font-family: 'Montserrat', sans-serif !important;
    background: #f5f6fa;
    color: var(--text);
}

/* ============================================================
   HERO / PAGE HEADER BANNER
   ============================================================ */
.dcb-page-banner {
    background: linear-gradient(135deg, #0d1b2e 0%, #1c2f4a 50%, #0f2240 100%);
    padding: 40px 0 32px;
    position: relative;
    overflow: hidden;
    border-bottom: 3px solid var(--orange);
}

/* Decorative glow — top right */
.dcb-page-banner::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 340px;
    height: 340px;
    background: radial-gradient(circle, rgba(243, 112, 33, .25) 0%, transparent 65%);
    border-radius: 50%;
    pointer-events: none;
}

/* Decorative glow — bottom left */
.dcb-page-banner::after {
    content: '';
    position: absolute;
    bottom: -80px;
    left: -60px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 183, 0, .12) 0%, transparent 65%);
    border-radius: 50%;
    pointer-events: none;
}

.dcb-banner-inner {
    position: relative;
    z-index: 2;
    text-align: center;
}

/* Badge pill */
.dcb-banner-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--gold);
    color: #1c2331 !important;
    font-size: 0.625rem !important;
    font-weight: 900 !important;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 5px 16px;
    border-radius: 30px;
    margin-bottom: 16px;
}

/* Main heading */
.dcb-banner-title {
    font-size: 2.125rem !important;
    font-weight: 900 !important;
    color: #ffffff !important;
    margin: 0 0 10px !important;
    line-height: 1.2 !important;
    text-shadow: 0 2px 12px rgba(0, 0, 0, .4) !important;
    font-family: 'Montserrat', sans-serif !important;
}

.dcb-banner-title span {
    color: var(--orange) !important;
    font-style: italic;
}

/* Subtitle */
.dcb-banner-subtitle {
    font-size: 0.8125rem !important;
    color: rgba(255, 255, 255, .85) !important;
    font-weight: 500 !important;
    margin: 0 0 16px !important;
    font-family: 'Montserrat', sans-serif !important;
    text-shadow: 0 1px 6px rgba(0, 0, 0, .3) !important;
    letter-spacing: .3px;
}

/* Trust row below subtitle */
.dcb-banner-trust {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.dcb-banner-trust span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .18);
    color: rgba(255, 255, 255, .9) !important;
    font-size: 0.6875rem !important;
    font-weight: 600 !important;
    padding: 5px 13px;
    border-radius: 30px;
    backdrop-filter: blur(4px);
    font-family: 'Montserrat', sans-serif !important;
}

.dcb-banner-trust span i {
    color: var(--gold);
    font-size: 0.6875rem;
}


/* ---------- Route Summary Strip ---------- */
.dcb-route-strip {
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
    padding: 14px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .05);
}

.dcb-route-pills {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.dcb-route-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--orange-light);
    border: 1px solid #ffdec5;
    border-radius: 50px;
    padding: 7px 16px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--navy);
}

.dcb-route-pill i {
    color: var(--orange);
    font-size: 0.8125rem;
}

.dcb-route-arrow {
    color: var(--orange);
    font-size: 1rem;
}

/* ============================================================
   MAIN LAYOUT
   ============================================================ */
.dcb-results-section {
    padding: 36px 0 60px;
}

.dcb-results-layout {
    display: flex;
    gap: 28px;
    align-items: flex-start;
}

.dcb-results-col {
    flex: 1;
    min-width: 0;
}

.dcb-sidebar-col {
    width: 320px;
    flex-shrink: 0;
}

/* ============================================================
   CAR LISTING CARDS
   ============================================================ */
.dcb-results-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 2px solid var(--border);
}

.dcb-results-header h5 {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--navy);
    margin: 0;
}

.dcb-results-header .dcb-count-badge {
    background: var(--orange);
    color: #fff;
    font-size: 0.6875rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 30px;
}

/* The car card */
.dcb-car-card {
    background: #fff;
    border-radius: 10px;
    /* slightly smaller radius */
    box-shadow: var(--shadow);
    margin-bottom: 14px;
    /* less gap between cards */
    overflow: hidden;
    border: 1px solid #f0f0f0;
    transition: transform .25s, box-shadow .25s;
    display: flex;
    flex-direction: column;
}

.dcb-car-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
    border-color: #ffe0c8;
}

/* Card top: image + badge row */
.dcb-card-top {
    display: flex;
    gap: 0;
}

.dcb-car-img-wrap {
    position: relative;
    flex-shrink: 0;
    width: 260px;
    min-height: 190px;
    background: #f0f2f5;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dcb-car-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
    transition: transform .4s ease;
    display: block;
}

.dcb-car-card:hover .dcb-car-img-wrap img {
    transform: scale(1.03);
}

/* trip type ribbon on image */
.dcb-trip-ribbon {
    position: absolute;
    top: 12px;
    left: 0;
    background: var(--navy);
    color: #fff;
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 10px 4px 12px;
    border-radius: 0 4px 4px 0;
    z-index: 2;
}

/* Card body (right of image) */
.dcb-card-body {
    flex: 1;
    padding: 10px 14px 10px;
    /* tighter padding */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
}

.dcb-car-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 6px;
    gap: 8px;
}

.dcb-car-name {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--navy);
    margin: 0;
    line-height: 1.2;
}

.dcb-avail-badge {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 30px;
    white-space: nowrap;
    flex-shrink: 0;
}

.dcb-avail-badge.available {
    background: #e8f8ea;
    color: var(--green);
    border: 1px solid #b7e8bb;
}

.dcb-avail-badge.unavailable {
    background: #fde8e8;
    color: var(--red);
    border: 1px solid #f5b8b8;
}

/* Price row */
.dcb-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #fff8f2, #fff3e0);
    border: 1px solid #ffe4c8;
    border-radius: 8px;
    padding: 6px 10px;
    /* slimmer box */
    margin-bottom: 6px;
}

.dcb-price-label {
    font-size: 0.6875rem;
    /* was 9px */
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 4px;
    display: block;
}

.dcb-price-main {
    font-size: 1.5rem;
    /* was 20px */
    font-weight: 700;
    color: var(--orange);
    line-height: 1;
    display: block;
}

.dcb-price-main sup {
    font-size: 0.875rem;
    /* was 13px */
    vertical-align: baseline;
    position: relative;
    top: -0.25em;
    font-weight: 700;
    margin-right: 2px;
}

.dcb-price-per-km {
    font-size: 0.75rem;
    /* was 10px */
    color: var(--text-muted);
    font-weight: 600;
    text-align: right;
}

.dcb-price-per-km strong {
    display: block;
    font-size: 0.875rem;
    /* was 12px */
    color: var(--navy);
}

/* Fare breakdown — receipt style */
.dcb-fare-breakdown {
    font-size: 0.8125rem;
    /* was 11px */
    color: #555;
    line-height: 1.5;
    margin-bottom: 8px;
    padding: 0;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #eee;
    overflow: hidden;
}

.dcb-fare-breakdown .dcb-fare-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 5px 10px;
    border-bottom: 1px solid #f5f5f5;
    transition: background .15s;
}

.dcb-fare-breakdown .dcb-fare-row:hover {
    background: #fafafa;
}

.dcb-fare-breakdown .dcb-fare-row:last-of-type {
    border-bottom: none;
}

/* Left label — icon + text */
.dcb-fare-breakdown .dcb-fare-row>span:first-child {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #777;
    font-weight: 500;
    flex-shrink: 0;
    white-space: nowrap;
}

.dcb-fare-breakdown .dcb-fare-row>span:first-child i {
    color: var(--orange);
    font-size: 0.6875rem;
    width: 13px;
    text-align: center;
}

/* Secondary sub-text inside label (e.g. "100km × ₹15") */
.dcb-fare-breakdown .dcb-fare-row small {
    font-size: 0.5938rem;
    color: #aaa;
    font-weight: 400;
    white-space: nowrap;
}

/* Right value */
.dcb-fare-val {
    font-weight: 700;
    color: var(--navy);
    text-align: right;
    word-break: break-word;
}

/* Trip-type pill badge */
.dcb-fare-badge {
    background: var(--orange-light);
    color: var(--orange);
    border: 1px solid #ffd6b0;
    border-radius: 20px;
    padding: 1px 9px;
    font-size: 0.625rem;
    font-weight: 700;
    white-space: nowrap;
}

/* Total row — highlighted */
.dcb-fare-breakdown .dcb-fare-total {
    background: linear-gradient(135deg, #fff8f2, #fff3e0) !important;
    border-top: 1.5px solid #ffe4c8 !important;
    border-bottom: none !important;
    padding: 7px 10px !important;
    font-weight: 700;
}

.dcb-fare-breakdown .dcb-fare-total>span:first-child {
    color: var(--navy) !important;
    font-weight: 700;
}

.dcb-fare-breakdown .dcb-fare-total>span:first-child i {
    color: var(--orange) !important;
}

.dcb-fare-breakdown .dcb-fare-total .dcb-fare-val {
    color: var(--orange);
    font-size: 1rem;
    /* was 14px */
    font-weight: 700;
}

/* Note strip at bottom */
.dcb-fare-note {
    font-size: 0.75rem;
    /* was 10px */
    color: #777;
    font-weight: 500;
    background: #f8f9fa;
    border-top: 1px solid #f0f0f0;
    padding: 6px 10px;
    display: flex;
    align-items: flex-start;
    gap: 5px;
    line-height: 1.5;
}

.dcb-fare-note i {
    color: var(--orange);
    font-size: 0.6875rem;
    flex-shrink: 0;
    margin-top: 1px;
}


/* Specs row */
.dcb-specs-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}

.dcb-spec-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8125rem;
    /* was 11px */
    font-weight: 600;
    color: #555;
    background: #f5f5f5;
    border-radius: 5px;
    padding: 4px 10px;
}

.dcb-spec-item i {
    color: var(--orange);
    font-size: 0.6875rem;
}

/* Book Now button row */
.dcb-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    border-top: 1px solid var(--border);
    padding-top: 8px;
    /* slimmer footer */
    margin-top: auto;
}

.dcb-trust-mini {
    display: flex;
    gap: 10px;
}

.dcb-trust-mini span {
    font-size: 0.75rem;
    /* was 10px */
    color: var(--text-muted);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 3px;
}

.dcb-trust-mini span i {
    color: var(--green);
    font-size: 0.625rem;
}

.dcb-btn-book {
    background: linear-gradient(135deg, var(--orange), var(--gold));
    color: #fff !important;
    border: none;
    border-radius: 7px;
    font-size: 0.8125rem;
    /* was 12px */
    font-weight: 700;
    padding: 9px 20px;
    cursor: pointer;
    transition: all .25s;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 3px 10px rgba(243, 112, 33, .35);
    white-space: nowrap;
}

.dcb-btn-book:hover {
    background: linear-gradient(135deg, var(--orange-dark), var(--orange));
    transform: translateY(-1px);
    box-shadow: 0 7px 20px rgba(243, 112, 33, .5);
    color: #fff !important;
}

/* One-way simplified card style */
.dcb-car-card.oneway-card .dcb-price-main {
    font-size: 1.375rem;
}

/* ============================================================
   EMPTY STATE — No Cars Found
   ============================================================ */
.dcb-no-results {
    text-align: center;
    padding: 60px 24px;
    background: #fff;
    border-radius: var(--radius);
    border: 2px dashed #eee;
    color: var(--text-muted);
}

.dcb-no-results i {
    font-size: 3rem;
    color: #ddd;
    margin-bottom: 16px;
}

.dcb-no-results h4 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 8px;
}

.dcb-no-results p {
    font-size: 0.8125rem;
}

/* ============================================================
   SIDEBAR
   ============================================================ */
.dcb-sidebar {
    position: sticky;
    top: 80px;
}

.dcb-sidebar-card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid #f0f0f0;
    overflow: hidden;
    margin-bottom: 20px;
}

.dcb-sidebar-header {
    background: linear-gradient(135deg, var(--navy), var(--navy-light));
    color: #fff;
    padding: 16px 20px;
    font-size: 0.875rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 9px;
}

.dcb-sidebar-header i {
    color: var(--gold);
    font-size: 1rem;
}

.dcb-sidebar-body {
    padding: 18px 16px;
}

/* Form inside sidebar */
.dcb-sidebar-body .form-group {
    margin-bottom: 14px;
}

.dcb-sidebar-body .form-group label {
    font-size: 0.625rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 5px;
    display: block;
}

.dcb-sidebar-body .form-control {
    border: 1.5px solid #eee;
    border-radius: 8px;
    padding: 9px 12px;
    font-size: 0.8125rem;
    height: auto;
    font-family: 'Montserrat', sans-serif;
    color: var(--navy);
    transition: border-color .2s;
    background: var(--bg-light);
}

.dcb-sidebar-body .form-control:focus {
    border-color: var(--orange);
    box-shadow: none;
    background: #fff;
}

/* Radio group in sidebar */
.dcb-sidebar-body .radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 14px;
}

.dcb-sidebar-body .radio-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.dcb-sidebar-body .radio-pill input[type="radio"] {
    display: none;
}

.dcb-sidebar-body .radio-pill label {
    background: var(--bg-light);
    border: 1.5px solid #ddd;
    border-radius: 30px;
    padding: 5px 12px;
    font-size: 0.6875rem;
    font-weight: 700;
    color: #555;
    cursor: pointer;
    transition: all .2s;
    margin: 0;
    text-transform: none;
    letter-spacing: 0;
}

.dcb-sidebar-body .radio-pill input[type="radio"]:checked+label {
    background: var(--orange);
    border-color: var(--orange);
    color: #fff;
}

/* Find Car button */
.dcb-btn-find {
    background: linear-gradient(135deg, var(--orange), var(--gold));
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 0.8125rem;
    font-weight: 700;
    padding: 12px 0;
    width: 100%;
    cursor: pointer;
    transition: all .25s;
    box-shadow: 0 4px 14px rgba(243, 112, 33, .3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: 'Montserrat', sans-serif;
}

.dcb-btn-find:hover {
    background: linear-gradient(135deg, var(--orange-dark), var(--orange));
    box-shadow: 0 7px 22px rgba(243, 112, 33, .45);
    transform: translateY(-1px);
}

/* Notes widget */
.dcb-notes-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.dcb-notes-list li {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    font-size: 0.75rem;
    color: #555;
    line-height: 1.6;
    padding: 8px 0;
    border-bottom: 1px solid #f5f5f5;
    font-weight: 500;
}

.dcb-notes-list li:last-child {
    border-bottom: none;
}

.dcb-notes-list li i {
    color: var(--orange);
    font-size: 0.8125rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.dcb-contact-row {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--orange-light);
    border: 1px solid #ffdec5;
    border-radius: 10px;
    padding: 12px;
    margin-top: 14px;
}

.dcb-contact-row i {
    font-size: 1.375rem;
    color: var(--orange);
}

.dcb-contact-info h6 {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--navy);
    margin: 0 0 2px;
}

.dcb-contact-info small {
    font-size: 0.6875rem;
    color: var(--text-muted);
}

.dcb-btn-support {
    background: var(--navy);
    color: #fff !important;
    border: none;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 10px 0;
    width: 100%;
    text-align: center;
    display: block;
    margin-top: 12px;
    text-decoration: none !important;
    transition: background .2s;
    font-family: 'Montserrat', sans-serif;
}

.dcb-btn-support:hover {
    background: #2a3447;
    color: #fff !important;
}

/* ============================================================
   CONTACT FORM (no-cars state)
   ============================================================ */
.dcb-contact-form-card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 28px;
    margin-bottom: 20px;
    border: 1px solid #f0f0f0;
}

.dcb-contact-form-card .section-heading {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 6px;
}

.dcb-contact-form-card .section-heading span {
    color: var(--orange);
}

.dcb-contact-form-card .form-control {
    border: 1.5px solid #eee;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 0.8125rem;
    height: auto;
    font-family: 'Montserrat', sans-serif;
}

.dcb-contact-form-card .form-control:focus {
    border-color: var(--orange);
    box-shadow: none;
}

.dcb-btn-submit {
    background: linear-gradient(135deg, var(--orange), var(--gold));
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 700;
    padding: 13px 0;
    width: 100%;
    font-family: 'Montserrat', sans-serif;
    transition: all .25s;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(243, 112, 33, .3);
}

.dcb-btn-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 7px 20px rgba(243, 112, 33, .45);
}

/* ============================================================
   "Why Choose Us" mini-section below results
   ============================================================ */
.dcb-why-strip {
    background: linear-gradient(135deg, var(--navy), var(--navy-light));
    border-radius: var(--radius);
    padding: 28px 24px;
    margin-top: 36px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.dcb-why-item {
    text-align: center;
    color: #fff;
}

.dcb-why-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, .1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    font-size: 1.25rem;
    color: var(--gold);
    border: 1px solid rgba(255, 255, 255, .15);
}

.dcb-why-item h6 {
    font-size: 0.75rem;
    font-weight: 700;
    margin: 0 0 4px;
}

.dcb-why-item p {
    font-size: 0.6875rem;
    color: rgba(255, 255, 255, .6);
    margin: 0;
    font-weight: 500;
}

/* ============================================================
   Suggestions autocomplete
   ============================================================ */
.suggestions {
    background: #fff;
    border: 1px solid #eee;
    border-top: none;
    border-radius: 0 0 8px 8px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 9999;
    position: absolute;
    width: 100%;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .1);
}

.suggestions div {
    padding: 8px 14px;
    font-size: 0.75rem;
    cursor: pointer;
    font-weight: 500;
    transition: background .15s;
}

.suggestions div:hover {
    background: var(--orange-light);
    color: var(--orange);
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 991px) {
    .dcb-results-layout {
        flex-direction: column;
    }

    .dcb-sidebar-col {
        width: 100%;
    }

    .dcb-card-top {
        flex-direction: column;
    }

    .dcb-car-img-wrap {
        width: 100%;
        height: 200px;
    }

    .dcb-why-strip {
        grid-template-columns: 1fr 1fr;
    }

    .dcb-banner-title {
        font-size: 1.375rem;
    }
}

@media (max-width: 600px) {
    .dcb-price-main {
        font-size: 1.375rem;
    }

    .dcb-why-strip {
        grid-template-columns: 1fr;
    }

    .dcb-card-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .dcb-btn-book {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================================
   Override old Bootstrap panel/thumbnail styles
   ============================================================ */
.page-section .panel,
.page-section .thumbnail {
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
}

.page-section .panel-heading,
.page-section .panel-body {
    display: none !important;
}

.page-section .thumbnail-car-card {
    margin-bottom: 0 !important;
}

/* ============================================================
   LEGACY CARD OVERRIDES — Makes old caption/media structure look premium
   ============================================================ */

/* Cards that still use old Bootstrap caption structure get flex treatment */
.dcb-car-card .media {
    flex-shrink: 0 !important;
    overflow: hidden;
    background: #f0f2f5 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.dcb-car-card .media img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    /* full car visible, no cropping */
    padding: 10px !important;
    transition: transform .4s ease;
    display: block;
}

.dcb-car-card:hover .media img {
    transform: scale(1.03) !important;
    /* subtle zoom only */
}

.dcb-car-card .caption {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    border-left: 3px solid #f37021 !important;
}

.dcb-car-card .caption-title {
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 800 !important;
    font-size: 1.0625rem !important;
    color: #1c2331 !important;
    margin: 0 0 10px !important;
}

.dcb-car-card .caption-title a {
    color: #1c2331 !important;
    text-decoration: none !important;
}

.dcb-car-card .caption-title-sub {
    background: linear-gradient(135deg, #fff8f2, #fff3e0) !important;
    border: 1px solid #ffe4c8 !important;
    border-radius: 8px !important;
    padding: 8px 12px !important;
    margin-bottom: 10px !important;
    font-size: 0.8125rem !important;
    font-weight: 700 !important;
    color: #f37021 !important;
    display: block !important;
}

.dcb-car-card .caption-title-sub span {
    float: right !important;
    font-size: 1rem !important;
    font-weight: 900 !important;
    color: #f37021 !important;
}

.dcb-car-card .caption-text {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 0.75rem !important;
    color: #555 !important;
    background: #f8f9fa !important;
    border-radius: 8px !important;
    padding: 10px 12px !important;
    margin-bottom: 10px !important;
    line-height: 1.8 !important;
}

.dcb-car-card .caption-text strong {
    color: #1c2331 !important;
    font-weight: 700 !important;
}

.dcb-car-card .caption-text .col-md-6 {
    width: 50% !important;
    float: left !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Table inside card → convert to premium row */
.dcb-car-card .table {
    background: transparent !important;
    border: none !important;
    margin: 8px 0 0 !important;
}

.dcb-car-card .table td {
    border: none !important;
    padding: 4px 8px 4px 0 !important;
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    color: #555 !important;
    vertical-align: middle !important;
    font-family: 'Montserrat', sans-serif !important;
    background: transparent !important;
}

.dcb-car-card .table td.button {
    text-align: right !important;
    padding-right: 0 !important;
}

.dcb-car-card .table td i {
    color: #f37021 !important;
    margin-right: 4px !important;
}

/* General media flex for old cards */
.dcb-car-card {
    display: flex !important;
    flex-direction: column !important;
    background: #fff !important;
    border-radius: 14px !important;
    overflow: hidden !important;
    box-shadow: 0 4px 24px rgba(0, 0, 0, .09) !important;
    border: 1px solid #f0f0f0 !important;
    transition: transform .25s, box-shadow .25s !important;
    margin-bottom: 22px !important;
}

.dcb-car-card:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 12px 40px rgba(0, 0, 0, .14) !important;
    border-color: #ffe0c8 !important;
}

/* If card has old .media + .caption children, make them horizontal */
.dcb-car-card>.media+.caption,
.dcb-car-card>.dcb-card-top {
    display: flex !important;
    flex-direction: row !important;
}

/* Fix the card's internal structure when it has a media div */
.dcb-car-card>.media {
    width: 260px !important;
    min-height: 180px !important;
    overflow: hidden !important;
    flex-shrink: 0 !important;
}

/* Make the old-style card (media + caption) row layout */
.dcb-car-card:has(.media) {
    flex-direction: row !important;
}

/* Fallback for browsers without :has() */
.dcb-car-card .media~.caption {
    flex: 1 !important;
}

.dcb-results-section {
    padding: 36px 0 60px !important;
    background: #f5f6fa !important;
}

/* Clean up old Bootstrap grid inside premium layout */
.dcb-results-col .col-md-9,
.dcb-results-col .col-md-6,
.dcb-results-col .col-md-3 {
    width: auto !important;
    padding: 0 !important;
    float: none !important;
}

/* Hide old "section-title" heading in page-section */
.result-page .row.text-center {
    display: none !important;
}

/* ============================================================
   FLEXBOX FIX — Old thumbnail-car-card that uses media + caption
   ============================================================ */

/* When dcb-car-card wraps old media+caption children, make it horizontal */
.dcb-car-card {
    flex-direction: row !important;
    align-items: stretch !important;
}

.dcb-car-card>.media {
    width: 260px !important;
    min-width: 200px !important;
    min-height: 180px !important;
    flex-shrink: 0 !important;
    overflow: hidden !important;
    background: #f0f2f5 !important;
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.dcb-car-card>.media a,
.dcb-car-card>.media a img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    /* full car visible */
    padding: 10px !important;
    display: block !important;
}

.dcb-car-card>.caption,
.dcb-car-card>.dcb-card-body {
    flex: 1 !important;
    min-width: 0 !important;
}

/* For cards that have dcb-card-top wrapping them */
.dcb-car-card>.dcb-card-top {
    display: flex !important;
    flex-direction: row !important;
    flex: 1 !important;
    width: 100% !important;
}

/* Re-apply flex correctly for the whole card */
.dcb-car-card {
    display: flex !important;
    flex-direction: row !important;
}

/* ---- Mobile: stack cards vertically ---- */
@media (max-width: 768px) {
    .dcb-car-card {
        flex-direction: column !important;
    }

    .dcb-car-card>.media {
        width: 100% !important;
        height: 200px !important;
    }

    .dcb-results-layout {
        flex-direction: column !important;
    }

    .dcb-sidebar-col {
        width: 100% !important;
    }

    .dcb-banner-title {
        font-size: 1.375rem !important;
    }

    .dcb-route-pills {
        flex-direction: column !important;
        align-items: flex-start !important;
    }
}

/* ============================================================
   FINAL POLISH
   ============================================================ */

/* The acinfo note styling */
.acinfo {
    font-size: 0.75rem !important;
    color: var(--red) !important;
    font-weight: 600 !important;
}

/* Remove floats from caption-text columns */
.dcb-car-card .caption-text::after {
    content: '';
    display: table;
    clear: both;
}

/* Make the submit form inside table.button look good */
.dcb-car-card form {
    display: inline-block !important;
}

/* Style the Book Now button inside table cells */
.dcb-car-card .table td.button form button {
    background: linear-gradient(135deg, #f37021, #ffb700) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 8px !important;
    font-size: 0.8125rem !important;
    font-weight: 800 !important;
    padding: 10px 20px !important;
    cursor: pointer !important;
    transition: all .25s !important;
    box-shadow: 0 4px 14px rgba(243, 112, 33, .35) !important;
    font-family: 'Montserrat', sans-serif !important;
}

.dcb-car-card .table td.button form button:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 7px 20px rgba(243, 112, 33, .5) !important;
}