/* Car rental: route picker (includes/car_route_picker), results page and booking page extras. */

.car-route-picker .cr-field {
    width: 100%;
    height: 53px;
    padding: 15px 10px 0 50px;   /* clear the yellow icon box (.car-rent-routes:before) */
    font-size: 15px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
    color: #313131;
}
.car-route-picker .cr-panel {
    position: absolute;
    top: 56px;
    left: 0;
    z-index: 1000;
    width: 440px;
    max-width: calc(100vw - 32px);
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, .15);
    padding: 14px;
    white-space: normal;
    text-align: left;
}
.car-route-picker .cr-tabs { display: flex; gap: 6px; margin-bottom: 12px; }
.car-route-picker .cr-tab {
    flex: 1;
    border: 1px solid #e3e3e3;
    background: #f7f7f7;
    border-radius: 6px;
    padding: 8px 6px;
    font-size: 14px;
    font-weight: 600;
    color: #555;
}
.car-route-picker .cr-tab.active { background: #fac917; border-color: #fac917; color: #313131; }
.car-route-picker .cr-ready {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    width: 100%;
    text-align: left;
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 6px;
    padding: 9px 11px;
    margin-bottom: 6px;
    font-size: 14px;
    color: #313131;
}
.car-route-picker .cr-ready:hover { border-color: #fac917; }
.car-route-picker .cr-ready.active { border-color: #fac917; background: #fffbea; font-weight: 600; }
.car-route-picker .cr-ready small { color: #888; white-space: nowrap; }
.car-route-picker .cr-stops { list-style: none; margin: 0 0 8px; padding: 0; }
.car-route-picker .cr-stops li { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.car-route-picker .cr-stops label { flex: 0 0 44px; margin: 0; font-size: 13px; font-weight: 600; color: #666; }
.car-route-picker .cr-stops select {
    flex: 1;
    min-width: 0;
    height: 38px;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 0 8px;
    font-size: 14px;
    background: #fff;
}
.car-route-picker .cr-remove { flex: 0 0 30px; height: 30px; border: 0; background: none; font-size: 22px; line-height: 1; color: #c0392b; }
.car-route-picker .cr-add { border: 1px dashed #c9c9c9; background: none; border-radius: 6px; padding: 6px 12px; font-size: 13px; color: #555; }
.car-route-picker .cr-hint { margin: 8px 0 0; font-size: 12px; color: #888; }
.car-route-picker .cr-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 10px; }
.car-route-picker .cr-error { font-size: 13px; color: #c0392b; }
.car-route-picker .cr-done { background: #fac917; border: 0; border-radius: 6px; padding: 8px 22px; font-weight: 600; color: #313131; }

/* sidebar variant (/cars) */
.car_listing_search { height: auto; min-height: 38px; }
.car_listing_search .car-rent-routes { position: relative; min-height: 38px; }
.car_listing_search .car-route-picker .cr-field {
    position: relative;
    height: 38px;
    padding: 10px 8px 0 32px;
    background: #fff;
    border-radius: 4px;
    font-size: 13px;
    color: #313131;
}
.car_listing_search .car-route-picker .cr-field:before {
    content: "\f279";   /* fa-map */
    font-family: FontAwesome;
    position: absolute;
    left: 11px;
    top: 11px;
    font-size: 12px;
    color: #555;
}
.car_listing_search .car-route-picker .cr-panel { top: 42px; width: 340px; }

/* results page (/cars, redesigned 2026-10-22): grey search card (site style), list of cars, sticky cart */
.car-page { --cl-ink: #313131; --cl-muted: #7a7a7a; --cl-line: #ececec; --cl-soft: #f7f7f8; --cl-yellow: #fac917; --cl-yellow-soft: #fffbea; --cl-ok: #1e7e34; --cl-warn: #c0392b; color: var(--cl-ink); }
.car-page .sidebar { display: flex; flex-direction: column; gap: 18px; height: 100%; }

/* search card */
.car-page .sidebar .side-col { border-radius: 12px; padding: 18px; }
.car-page .side-col h2 { font-size: 17px; font-weight: 700; margin: 0 0 14px; }
.car-page .side-col .form-group { margin-bottom: 12px; }
.car-page .side-col .form-group label { color: #e6e6e6; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .4px; margin-bottom: 4px; }
.car-page .side-col .form-group label small { text-transform: none; letter-spacing: 0; font-weight: 400; }
.car-page .side-col .form-group input,
.car-page .side-col select,
.car-page .car_listing_search .car-route-picker .cr-field { border: 1px solid #e2e2e2 !important; border-radius: 8px; }
.car-page .side-col .form-group input:focus,
.car-page .side-col select:focus { border-color: var(--cl-yellow) !important; outline: 0; }
.car-page .sideSearchbtn { height: 42px; border-radius: 8px; font-size: 15px; }
.car-page .sideSearchbtn i { margin-right: 4px; }

/* summary + toolbar */
.cl-summary { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; background: #fff; border: 1px solid var(--cl-line); border-left: 4px solid var(--cl-yellow); border-radius: 12px; padding: 14px 18px; margin-bottom: 18px; }
.cl-summary-route { font-size: 18px; font-weight: 700; }
.cl-summary-route i, .cl-cart-route i { color: #b8900b; margin: 0 7px; font-size: .75em; }
.cl-summary-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; font-size: 14px; }
.cl-summary-meta i { color: #b8900b; margin-right: 4px; }
.cl-summary-meta small { color: var(--cl-muted); }
.cl-summary-edit { font-weight: 600; color: var(--cl-ink); border: 1px solid #e2e2e2; border-radius: 20px; padding: 4px 12px; text-decoration: none; }
.cl-summary-edit:hover { border-color: var(--cl-yellow); color: var(--cl-ink); text-decoration: none; }
.cl-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.cl-toolbar h2 { font-size: 18px; font-weight: 400; margin: 0; }
.cl-toolbar h2 b { font-weight: 700; }
.cl-toolbar h2 small { font-size: 13px; color: var(--cl-muted); }
.cl-sort { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.cl-sort > span { font-size: 12px; color: var(--cl-muted); margin-right: 2px; }
.cl-sort a { border: 1px solid #e2e2e2; border-radius: 20px; padding: 5px 12px; font-size: 13px; color: #555; background: #fff; text-decoration: none; }
.cl-sort a:hover { border-color: #bbb; color: var(--cl-ink); text-decoration: none; }
.cl-sort a.active { background: var(--cl-ink); border-color: var(--cl-ink); color: #fff; }

/* car rows */
.cl-car { display: grid; grid-template-columns: 200px minmax(0, 1fr) 190px; background: #fff; border: 1px solid var(--cl-line); border-radius: 12px; margin-bottom: 14px; overflow: hidden; transition: border-color .15s, box-shadow .15s; }
.cl-car:hover { box-shadow: 0 6px 20px rgba(0, 0, 0, .07); }
.cl-car.in-cart { border-color: var(--cl-yellow); box-shadow: 0 0 0 1px var(--cl-yellow); }
.cl-car-img { display: flex; align-items: center; justify-content: center; background: var(--cl-soft); padding: 14px; }
.cl-car-img img { width: 100%; height: 130px; object-fit: contain; }
.cl-car-body { padding: 16px 18px; min-width: 0; }
.cl-car-title { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.cl-car-title h4 { font-size: 19px; font-weight: 700; margin: 0 0 2px; }
.cl-car-company { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 13px; color: var(--cl-muted); }
.cl-car-company img { width: 22px; height: 22px; object-fit: contain; border-radius: 4px; border: 1px solid var(--cl-line); background: #fff; }
.cl-incart { display: none; white-space: nowrap; font-size: 12px; font-weight: 600; color: #5c4a00; background: var(--cl-yellow-soft); border: 1px solid #f5e3a0; border-radius: 20px; padding: 2px 10px; }
.cl-car.in-cart .cl-incart { display: inline-block; }
.cl-features { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 12px 0 0; padding: 0; }
.cl-features li { font-size: 12px; color: #555; background: var(--cl-soft); border-radius: 6px; padding: 4px 9px; }
.cl-features li i { color: #999; margin-right: 3px; }
.cl-legs { list-style: none; margin: 12px 0 0; padding: 0; font-size: 13px; color: #555; }
.cl-legs li { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; border-top: 1px dashed var(--cl-line); }
.cl-legs li i { color: #bbb; margin: 0 3px; font-size: 11px; }
.cl-legs li b { font-weight: 600; white-space: nowrap; }
.cl-car-buy { display: flex; flex-direction: column; justify-content: center; align-items: stretch; gap: 8px; padding: 16px 18px; border-left: 1px solid var(--cl-line); text-align: right; }
.cl-fit { font-size: 12px; color: var(--cl-ok); }
.cl-price { font-size: 26px; font-weight: 800; line-height: 1.1; }
.cl-price small { display: block; font-size: 11px; font-weight: 400; color: var(--cl-muted); margin-top: 3px; }
.cl-select { border: 0; border-radius: 8px; background: var(--cl-yellow); color: var(--cl-ink); font-weight: 700; font-size: 15px; padding: 10px 12px; cursor: pointer; transition: filter .15s; }
.cl-select:hover { filter: brightness(.95); }
.cl-select[disabled] { opacity: .7; cursor: default; }
.cl-car.in-cart .cl-select { background: #fff; box-shadow: inset 0 0 0 1px var(--cl-ink); }

.car-empty { text-align: center; padding: 40px 20px; border: 1px dashed #ddd; border-radius: 12px; color: #555; background: #fff; }
.car-empty > i { font-size: 34px; color: #ccc; margin-bottom: 10px; }
.car-empty h4 { font-size: 18px; margin-bottom: 8px; }
.car-empty ul { list-style: none; padding: 0; margin: 10px 0 0; font-size: 14px; }

/* cart */
.cl-cart { position: sticky; top: 16px; background: #fff; border: 1px solid var(--cl-line); border-radius: 12px; box-shadow: 0 4px 18px rgba(0, 0, 0, .06); overflow: hidden; }
.cl-cart.flash { animation: cl-flash .9s ease-out; }
@keyframes cl-flash { 0% { box-shadow: 0 0 0 3px var(--cl-yellow); } 100% { box-shadow: 0 4px 18px rgba(0, 0, 0, .06); } }
.cl-cart-head { background: var(--cl-ink); color: #fff; padding: 14px 16px; }
.cl-cart-head h3 { font-size: 16px; font-weight: 700; margin: 0 0 6px; color: #fff; }
.cl-cart-route { font-size: 13px; line-height: 1.5; }
.cl-cart-route i { color: var(--cl-yellow); margin: 0 5px; }
.cl-cart-when { font-size: 12px; color: #ccc; margin-top: 4px; }
.cl-cart-when i { color: var(--cl-yellow); margin-right: 3px; }
.cl-cart-list { list-style: none; margin: 0; padding: 0 16px; }
.cl-cart-item { padding: 12px 0; border-bottom: 1px solid var(--cl-line); transition: opacity .15s; }
.cl-cart-item.busy { opacity: .45; pointer-events: none; }
.cl-ci-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.cl-ci-name b { display: block; font-size: 14px; }
.cl-ci-name small { display: block; font-size: 12px; color: var(--cl-muted); }
.cl-ci-remove { flex: 0 0 28px; height: 28px; border: 0; border-radius: 50%; background: none; color: #aaa; font-size: 15px; cursor: pointer; }
.cl-ci-remove:hover { background: #fdecea; color: var(--cl-warn); }
.cl-ci-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; }
.cl-stepper { display: inline-flex; align-items: center; border: 1px solid #e2e2e2; border-radius: 20px; overflow: hidden; }
.cl-stepper button { width: 30px; height: 28px; border: 0; background: #fff; font-size: 16px; line-height: 1; color: var(--cl-ink); cursor: pointer; }
.cl-stepper button:hover:not([disabled]) { background: var(--cl-yellow-soft); }
.cl-stepper button[disabled] { color: #ccc; cursor: default; }
.cl-stepper .qty { min-width: 24px; text-align: center; font-weight: 700; font-size: 14px; }
.cl-ci-price { text-align: right; line-height: 1.2; }
.cl-ci-price small { display: block; font-size: 11px; color: var(--cl-muted); }
.cl-ci-price b { font-size: 15px; }
.cl-cart-empty { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 22px 0 18px; color: var(--cl-muted); font-size: 13px; }
.cl-cart-empty i { font-size: 26px; color: #d5d5d5; margin-bottom: 6px; }
.cl-cart-empty b { color: var(--cl-ink); font-size: 14px; }
.cl-seats { padding: 10px 16px 0; font-size: 12px; color: var(--cl-ok); }
.cl-seats.short { color: var(--cl-warn); }
.cl-seats-bar { height: 5px; border-radius: 3px; background: #eee; margin-top: 5px; overflow: hidden; }
.cl-seats-bar span { display: block; height: 100%; background: var(--cl-ok); transition: width .3s; }
.cl-seats.short .cl-seats-bar span { background: var(--cl-warn); }
.cl-cart-foot { padding: 12px 16px 16px; }
.cl-cart-total { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.cl-cart-total span { font-size: 14px; font-weight: 600; }
.cl-cart-total small { display: block; font-size: 11px; font-weight: 400; color: var(--cl-muted); }
.cl-cart-total b { font-size: 22px; font-weight: 800; }
.cl-reserve { display: block; width: 100%; border: 0; border-radius: 8px; background: var(--cl-yellow); color: var(--cl-ink); font-weight: 700; font-size: 16px; padding: 11px; cursor: pointer; }
.cl-reserve:hover { filter: brightness(.95); }
.cl-cart.is-empty .cl-reserve { background: #eee; color: #999; }
.cl-cart.is-empty .cl-cart-total { opacity: .5; }
.cl-cart-msg { display: none; margin: 8px 0 0; font-size: 12px; color: var(--cl-warn); text-align: center; }
.cl-cart-note { margin: 10px 0 0; font-size: 11px; color: var(--cl-muted); line-height: 1.4; }
.cl-cart-note i { margin-right: 3px; }

@media screen and (max-width: 1199px) {
    .cl-car { grid-template-columns: 160px minmax(0, 1fr) 170px; }
    .cl-car-img img { height: 110px; }
}
@media screen and (max-width: 991px) {
    .cl-car { grid-template-columns: 140px minmax(0, 1fr); }
    .cl-car-buy { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: flex-end; border-left: 0; border-top: 1px solid var(--cl-line); padding: 12px 16px; }
    .cl-car-buy .cl-fit { margin-right: auto; }
    .cl-car-buy .cl-select { min-width: 130px; }
}
@media screen and (max-width: 767px) {
    .car-page .sidebar { height: auto; margin-top: 18px; }
    .cl-cart { position: static; order: -1; }
    .cl-summary-route { font-size: 16px; }
    .cl-car { grid-template-columns: 1fr; }
    .cl-car-img img { height: 140px; }
    .cl-car-buy { text-align: left; }
    .cl-car-buy .cl-select { flex: 1 0 100%; }
}

@media screen and (max-width: 767px) {
    .car-route-picker .cr-panel { position: fixed; top: auto; bottom: 0; left: 0; right: 0; width: auto; max-width: none;
        border-radius: 12px 12px 0 0; max-height: 80vh; overflow-y: auto; }
    .car_listing_search .car-route-picker .cr-panel { top: auto; width: auto; }
}

/* mobile: custom.css flips every .pkg-section .row (column-reverse) — keep the results in sort order */
.car-mobile-bar { display: none; }
@media screen and (max-width: 767px) {
    .pkg-section .cars-list-render-html .row { flex-direction: column; }
    .car-mobile-bar {
        display: flex;
        align-items: center;
        gap: 10px;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 900;
        background: #313131;
        color: #fff;
        padding: 10px 16px;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, .2);
    }
    .car-mobile-bar .cmb-total, .car-mobile-bar .cmb-total:hover, .car-mobile-bar .cmb-total:focus { flex: 1; line-height: 1.2; color: #fff; text-decoration: none; }
    .car-mobile-bar small { display: block; font-size: 11px; color: #ccc; }
    .car-mobile-bar small i { color: #fac917; }
    .car-mobile-bar b { font-size: 17px; }
    .car-page .car-mobile-bar .cmb-total b { color: #fff; }
    .car-mobile-bar .reserve-btn { background: #fac917; border: 0; border-radius: 8px; padding: 10px 22px; font-weight: 700; color: #313131; }
    .car-mobile-bar.is-empty .reserve-btn { background: #555; color: #aaa; }
    .pkg-section { padding-bottom: 70px; }
}

/* pick-up date & time picker (assets/js/car-datetime.js) */
.cdtp-input { cursor: pointer; }
.cdtp {
    position: absolute;
    z-index: 10050;
    width: 340px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, .22);
    padding: 14px 14px 12px;
    font-size: 14px;
    color: #313131;
    animation: cdtp-in .14s ease-out;
}
@keyframes cdtp-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.cdtp button { font-family: inherit; cursor: pointer; }
.cdtp button[disabled] { cursor: default; opacity: .3; }
.cdtp-head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 10px; }
.cdtp-head b { font-size: 15px; }
.cdtp-head span { font-size: 11px; color: #8a8a8a; background: #f4f4f4; border-radius: 10px; padding: 1px 8px; }
.cdtp-x { margin-left: auto; border: 0; background: none; font-size: 22px; line-height: 1; color: #999; }
.cdtp-quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 10px; }
.cdtp-chip {
    border: 1px solid #e6e6e6;
    background: #fff;
    border-radius: 9px;
    padding: 6px 4px;
    font-size: 13px;
    font-weight: 600;
    color: #313131;
    transition: background .12s, border-color .12s, transform .08s;
}
.cdtp-chip small { display: block; font-size: 10px; font-weight: 500; color: #888; text-transform: uppercase; letter-spacing: .3px; }
.cdtp-chip:not([disabled]):hover { border-color: #fac917; }
.cdtp-chip:not([disabled]):active { transform: scale(.96); }
.cdtp-chip.on { background: #fac917; border-color: #fac917; }
.cdtp-chip.on small { color: #5c4a00; }
.cdtp-month { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.cdtp-month b { font-size: 14px; }
.cdtp-month button { width: 30px; height: 30px; border: 0; border-radius: 50%; background: #f4f4f4; font-size: 16px; }
.cdtp-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; }
.cdtp-wd { font-size: 11px; color: #999; padding: 4px 0; }
.cdtp-day { height: 34px; border: 0; border-radius: 50%; background: none; font-size: 13px; color: #313131; }
.cdtp-day:not([disabled]):hover { background: #fff6d1; }
.cdtp-day.today { box-shadow: inset 0 0 0 1px #fac917; }
.cdtp-day.on { background: #fac917; color: #313131; font-weight: 700; }
.cdtp-time { border-top: 1px solid #f0f0f0; margin-top: 8px; padding-top: 10px; }
.cdtp-parts { display: grid; grid-template-columns: repeat(4, 1fr); background: #f4f4f4; border-radius: 10px; padding: 3px; gap: 3px; margin-bottom: 8px; }
.cdtp-part { border: 0; background: none; border-radius: 8px; padding: 6px 2px; font-size: 12px; font-weight: 600; color: #666; }
.cdtp-part i { display: block; font-size: 14px; margin-bottom: 2px; }
.cdtp-part.on { background: #fff; color: #313131; box-shadow: 0 1px 4px rgba(0, 0, 0, .12); }
.cdtp-part.on i { color: #d4a300; }
.cdtp-hours { display: grid; grid-template-columns: repeat(6, 1fr); gap: 5px; margin-bottom: 6px; }
.cdtp-hours .cdtp-chip { padding: 7px 0; font-size: 12px; }
.cdtp-mins { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; }
.cdtp-foot { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding-top: 10px; border-top: 1px solid #f0f0f0; }
.cdtp-sum { flex: 1; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 13px; }
.cdtp-sum i { color: #d4a300; font-size: 16px; }
.cdtp-sum b { font-size: 15px; }
.cdtp-done { border: 0; border-radius: 9px; background: #313131; color: #fff; font-weight: 600; padding: 9px 20px; }
.cdtp.cdtp-sheet {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    width: auto;
    max-height: 88vh;
    overflow-y: auto;
    overscroll-behavior: contain;
    border-radius: 16px 16px 0 0;
    padding-bottom: calc(12px + env(safe-area-inset-bottom));
    animation: cdtp-up .18s ease-out;
}
@keyframes cdtp-up { from { transform: translateY(30px); opacity: 0; } to { transform: none; opacity: 1; } }
.cdtp-sheet .cdtp-day { height: 40px; }
