/* ===================================================
   Browse Our Fleet — Dropdown Pill Filter Bar
   =================================================== */

.ff-wrap {
    margin-bottom: 28px;
    font-family: 'Open Sans', sans-serif;
    position: relative;
}

/* ── Pill bar ── */
.ff-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

/* Each filter pill button */
.ff-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: #fff;
    border: 1.5px solid #ccc;
    border-radius: 24px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    color: #222;
    cursor: pointer;
    white-space: nowrap;
    transition: border-color 0.15s, background 0.15s, color 0.15s;
    position: relative;
}

.ff-pill:hover {
    border-color: #888;
}

/* Pill active state (has selections) */
.ff-pill.ff-pill--active {
    background: #111;
    border-color: #111;
    color: #fff;
}

/* Pill open state */
.ff-pill.ff-pill--open {
    border-color: #111;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, .12);
}

/* Badge count on pill */
.ff-pill-badge {
    background: #fc0;
    color: #000;
    font-size: 10px;
    font-weight: 800;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.ff-pill--active .ff-pill-badge {
    display: inline-flex;
}

/* Chevron */
.ff-pill-chevron {
    width: 7px;
    height: 7px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    margin-top: -3px;
    transition: transform 0.2s;
    flex-shrink: 0;
}

.ff-pill--open .ff-pill-chevron {
    transform: rotate(-135deg);
    margin-top: 2px;
}

/* Reset pill */
.ff-pill-reset {
    background: none;
    border: none;
    padding: 8px 4px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    color: #666;
    cursor: pointer;
    text-decoration: underline;
    display: none;
}

.ff-pill-reset.visible {
    display: inline-block;
}

/* ── Dropdown panel ── */
.ff-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, .12);
    padding: 16px;
    min-width: 190px;
    z-index: 500;
    display: none;
}

.ff-dropdown.ff-dropdown--open {
    display: block;
}

/* Options inside dropdown */
.ff-option {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 5px 0;
    font-size: 13px;
    color: #333;
    cursor: pointer;
    user-select: none;
    line-height: 1.4;
}

.ff-option:hover {
    color: #000;
}

.ff-option--locked {
    opacity: 0.55;
    cursor: default;
    pointer-events: none;
}

.ff-option input[type="checkbox"],
.ff-option input[type="radio"] {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    cursor: pointer;
    accent-color: #000;
    margin: 0;
}

/* Range slider inside dropdown */
.ff-range-display {
    font-size: 13px;
    font-weight: 700;
    color: #111;
    margin-bottom: 18px;
    white-space: nowrap;
}

.ff-range-wrap {
    position: relative;
    height: 20px;
    margin: 0 4px;
}

.ff-range-track {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 0;
    right: 0;
    height: 4px;
    background: #e0e0e0;
    border-radius: 2px;
    pointer-events: none;
}

.ff-range-fill {
    position: absolute;
    height: 4px;
    background: #fc0;
    border-radius: 2px;
    pointer-events: none;
}

.ff-range-input {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 0;
    width: 100%;
    margin: 0;
    height: 4px;
    background: transparent;
    -webkit-appearance: none;
    appearance: none;
    pointer-events: none;
}

.ff-range-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #111;
    border: 3px solid #fff;
    box-shadow: 0 1px 5px rgba(0, 0, 0, .3);
    cursor: pointer;
    pointer-events: all;
}

.ff-range-input::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #111;
    border: 3px solid #fff;
    box-shadow: 0 1px 5px rgba(0, 0, 0, .3);
    cursor: pointer;
    pointer-events: all;
}

/* ── Results bar ── */
.ff-results {
    display: none;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    font-size: 13px;
    color: #666;
}

.ff-results.visible {
    display: flex;
}

/* ── Empty state ── */
.ff-empty {
    display: none;
    text-align: center;
    padding: 60px 20px;
    color: #999;
    font-size: 15px;
    width: 100%;
}

.ff-empty.visible {
    display: block;
}

.ff-empty-reset {
    display: inline-block;
    margin-top: 14px;
    background: #000;
    color: #fff;
    border: none;
    padding: 10px 24px;
    border-radius: 24px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

/* Hidden cards */
.fleet-filtered-out {
    display: none !important;
}

/* ── Mobile trigger button (hidden on desktop) ── */
.ff-mobile-btn {
    display: none;
}

/* ── Bottom sheet overlay ── */
.ff-sheet-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .45);
    z-index: 900;
    opacity: 0;
    transition: opacity 0.25s;
}

.ff-sheet-overlay.open {
    display: block;
    opacity: 1;
}

/* ── Bottom sheet panel ── */
.ff-sheet {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 18px 18px 0 0;
    z-index: 901;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
    font-family: 'Open Sans', sans-serif;
}

.ff-sheet.open {
    transform: translateY(0);
}

/* Drag handle */
.ff-sheet-handle {
    width: 36px;
    height: 4px;
    background: #ddd;
    border-radius: 2px;
    margin: 12px auto 0;
    flex-shrink: 0;
}

/* Sheet header */
.ff-sheet-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px 12px;
    border-bottom: 1px solid #eee;
    flex-shrink: 0;
}

.ff-sheet-title {
    font-size: 16px;
    font-weight: 700;
    color: #111;
}

.ff-sheet-close {
    background: none;
    border: none;
    font-size: 22px;
    line-height: 1;
    color: #666;
    cursor: pointer;
    padding: 0 4px;
    font-family: inherit;
}

/* Scrollable body */
.ff-sheet-body {
    overflow-y: auto;
    flex: 1;
    padding: 0 0 8px;
    -webkit-overflow-scrolling: touch;
}

/* Accordion groups inside sheet */
.ff-sheet-group {
    border-bottom: 1px solid #f0f0f0;
}

.ff-sheet-group-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 15px 20px;
    background: none;
    border: none;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    color: #111;
    cursor: pointer;
    text-align: left;
}

.ff-sheet-group-toggle .ff-sheet-group-badge {
    background: #fc0;
    color: #000;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 20px;
    margin-left: 8px;
    display: none;
}

.ff-sheet-group-toggle .ff-sheet-group-badge.visible {
    display: inline-block;
}

.ff-sheet-group-chevron {
    width: 8px;
    height: 8px;
    border-right: 2px solid #666;
    border-bottom: 2px solid #666;
    transform: rotate(45deg);
    margin-top: -4px;
    transition: transform 0.2s;
    flex-shrink: 0;
    margin-left: auto;
}

.ff-sheet-group-toggle.open .ff-sheet-group-chevron {
    transform: rotate(-135deg);
    margin-top: 2px;
}

.ff-sheet-group-body {
    display: none;
    padding: 4px 20px 14px;
}

.ff-sheet-group-body.open {
    display: block;
}

/* Range slider inside sheet */
.ff-sheet-group-body .ff-range-wrap {
    margin: 0 4px;
}

/* Sheet footer */
.ff-sheet-footer {
    display: flex;
    gap: 10px;
    padding: 14px 20px;
    border-top: 1px solid #eee;
    flex-shrink: 0;
}

.ff-sheet-reset {
    flex: 1;
    background: none;
    border: 1.5px solid #ccc;
    color: #555;
    padding: 12px;
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.ff-sheet-apply {
    flex: 2;
    background: #111;
    color: #fff;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

/* ── Responsive ── */
@media (max-width: 767px) {
    /* Hide desktop pill bar, show single trigger button */
    .ff-bar { display: none; }

    .ff-mobile-btn {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 10px 20px;
        background: #111;
        color: #fff;
        border: none;
        border-radius: 24px;
        font-family: inherit;
        font-size: 14px;
        font-weight: 700;
        cursor: pointer;
    }

    .ff-mobile-btn-icon {
        display: flex;
        flex-direction: column;
        gap: 3px;
    }

    .ff-mobile-btn-icon span {
        display: block;
        width: 16px;
        height: 2px;
        background: #fff;
        border-radius: 2px;
    }

    .ff-mobile-btn-badge {
        background: #fc0;
        color: #000;
        font-size: 10px;
        font-weight: 800;
        width: 18px;
        height: 18px;
        border-radius: 50%;
        display: none;
        align-items: center;
        justify-content: center;
    }

    .ff-mobile-btn-badge.visible {
        display: inline-flex;
    }
}

/* Additional styles */
section.common-margin-b.browser-fleet .row.gap-0.mb-0px {
    position: relative;
}

section.common-margin-b.browser-fleet .row.gap-0.mb-0px .col-md-4.w-lg-100.mb-20px.mb-md-0px {
    position: unset;
}

.car_card_style.active {
    position: relative;
}

.car_modal_quickview.show:after {
    content: none;
}

.car_card_style.active:after {
    content: "";
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-bottom: 20px solid #f3f4f8;
    position: absolute;
    bottom: -36px;
    left: 13%;
    right: 0;
    transition: all 0.5s ease;
}

.open_car_modal_content.show {
    position: absolute;
    left: 0;
    margin-left: 0;
}

.open_car_modal_content.show .car_modal_right {
    text-align: left;
}