/* ── Dealership card (car detail page) ─────────────────────────────── */

.dealer-card-address,
.dealer-card-location {
    font-size: 14px;
    color: var(--text-muted);
    margin: 0 0 4px;
}

.dealer-card-link {
    display: inline-block;
    margin-top: 12px;
    font-size: 14px;
    font-weight: 500;
    color: var(--accent, #1a6fe0);
    text-decoration: none;
}

.dealer-card-link:hover {
    text-decoration: underline;
}

/* ── Dealer filter in sidebar (listings page) ───────────────────────── */
.dealer-filter-group {
    border-top: 1px solid var(--border-light);
    padding-top: 12px;
    margin-top: 4px;
}

.dealer-filter-list {
    max-height: 220px;
    overflow-y: auto;
    margin-top: 6px;
}

.dealer-filter-loading {
    font-size: 13px;
    color: var(--text-muted);
    margin: 4px 0;
}

.dealer-filter-option small {
    color: var(--text-muted);
    font-size: 11px;
}

/* Location + dealership picker (below smart search, full sidebar width) */
.listings-geo-bar {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--border-light);
}

.listings-zip-callout {
    position: relative;
    margin: 0 0 10px;
    padding: 2px 0 2px 10px;
    font-size: 13px;
    line-height: 1.4;
    color: var(--navy);
    font-weight: 600;
    background: transparent;
    border: none;
    border-left: 2px solid var(--navy);
    border-radius: 0;
}

/* ZIP prompt banner — shown above results until a location is set */
/* The [hidden] attribute (set by the ×, ZIP entry, and geolocation handlers)
   must win over the display rule below — otherwise the banner never hides. */
.listings-zip-banner[hidden] {
    display: none !important;
}

.listings-zip-banner {
    position: relative;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px 16px;
    margin: 0 0 18px;
    padding: 16px 36px 16px 0;
    background: transparent;
    border: none;
    border-top: 1px solid var(--navy);
    border-bottom: 1px solid var(--border-light);
    border-radius: 0;
}

.listings-zip-banner__icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 40px;
    color: var(--navy);
    background: transparent;
}

.listings-zip-banner__body {
    flex: 1 1 260px;
    min-width: 0;
}

.listings-zip-banner__title {
    margin: 0 0 3px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary, #1a2744);
}

.listings-zip-banner__text {
    margin: 0;
    font-size: 13px;
    line-height: 1.45;
    color: var(--text-secondary, #4a5568);
}

.listings-zip-banner__controls {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 1 auto;
}

.listings-zip-banner__input {
    width: 7.5rem;
    min-height: 40px;
    padding: 8px 12px;
    font-size: 14px;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    background: var(--bg-card, #fff);
    color: var(--text-primary, #1a2744);
}

.listings-zip-banner__submit {
    min-height: 40px;
    padding: 8px 16px;
    font-size: 14px;
    white-space: nowrap;
}

.listings-zip-banner__dismiss {
    position: absolute;
    top: 10px;
    right: 0;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 14px;
    padding: 4px 6px;
    line-height: 1;
}

.listings-zip-banner__dismiss:hover {
    color: var(--text-primary, #1a2744);
}

@media (max-width: 700px) {
    .listings-zip-banner {
        padding: 14px 40px 14px 14px;
    }

    .listings-zip-banner__icon {
        display: none;
    }

    .listings-zip-banner__controls {
        flex: 1 1 100%;
    }

    .listings-zip-banner__input {
        flex: 1 1 auto;
        width: auto;
        min-width: 0;
    }
}

.listings-geo-bar-label {
    margin: 0 0 10px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.listings-geo-hint {
    margin: 0 0 8px;
    font-size: 12px;
    line-height: 1.35;
    color: var(--accent-warn, #c45c26);
}

.listings-geo-bar-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 12px;
    align-items: flex-end;
}

.listings-geo-field {
    flex: 0 1 auto;
    min-width: 5.5rem;
}

.listings-dealer-picker {
    position: relative;
    flex: 1 1 100%;
    min-width: 0;
}

.listings-dealer-picker .pill-select-label {
    display: block;
    margin-bottom: 4px;
}

.listings-dealer-picker-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border-medium);
    border-radius: 12px;
    background: var(--bg-card);
    color: var(--text);
    font-size: 13px;
    font-family: inherit;
    cursor: pointer;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.85) inset;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.listings-dealer-picker-btn:hover {
    border-color: var(--navy);
    background: var(--bg-elevated);
}

.listings-dealer-picker-btn.has-selection {
    border-color: rgba(28, 53, 82, 0.4);
    background: rgba(28, 53, 82, 0.06);
    color: var(--navy);
}

.listings-dealer-picker-btn.open .pill-chevron {
    transform: rotate(180deg);
}

.listings-dealer-picker-btn-label {
    flex: 1 1 auto;
    text-align: left;
    font-weight: 500;
    line-height: 1.35;
}

.listings-dealer-picker-count {
    flex-shrink: 0;
}

.listings-dealer-picker-panel {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    z-index: 120;
    background: var(--bg-card);
    border: 1px solid var(--border-medium);
    border-radius: 4px;
    box-shadow: 0 8px 20px rgba(20, 36, 54, 0.12);
    overflow: hidden;
}

.listings-dealer-picker-panel:not([hidden]) {
    display: flex;
    flex-direction: column;
}

.listings-dealer-picker-toolbar {
    display: flex;
    gap: 8px;
    padding: 8px 10px;
    border-bottom: 1px solid var(--border-light);
    background: var(--bg-elevated);
}

.listings-dealer-picker-tool {
    border: none;
    background: transparent;
    color: var(--navy);
    font-size: 12px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 6px;
}

.listings-dealer-picker-tool:hover {
    background: rgba(28, 53, 82, 0.08);
}

.listings-dealer-picker-list {
    max-height: min(280px, 42vh);
    overflow-y: auto;
    padding: 6px;
    margin: 0;
}

.listings-dealer-picker-list .dealer-filter-option span {
    line-height: 1.35;
}

.listings-dealer-picker-meta {
    margin: 0;
    padding: 8px 12px 0;
    font-size: 11px;
    line-height: 1.4;
    color: var(--text-muted);
}

.dealer-stock-count {
    color: var(--text-muted);
}

.dealer-filter-premium-hint,
.dealer-filter-empty,
.dealer-filter-loading {
    font-size: 12px;
    color: var(--text-muted);
    margin: 8px 12px 10px;
    line-height: 1.45;
}

.dealer-filter-premium-hint a {
    font-weight: 600;
}

.car-market-panel {
    margin-top: 20px;
    margin-bottom: 4px;
    padding: 14px 0;
    border-radius: 0;
    border: none;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    background: transparent;
    max-width: 520px;
}

.car-market-line {
    margin: 6px 0;
    font-size: 0.98rem;
    color: var(--text);
}

.car-market-label {
    display: inline-block;
    min-width: 9rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.car-market-samples {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-left: 6px;
}

.car-market-vs {
    margin: 12px 0 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--navy);
}

.car-market-vs--below_market {
    color: #1a7f4c;
}

.car-market-vs--above_market {
    color: #b45309;
}

.car-market-cohort {
    margin: 8px 0 0;
    font-size: 0.82rem;
    color: var(--text-muted);
}

/* ── Listings SRP toolbar, chips, mobile filter sheet ── */

.listings-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 20px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-light);
}

.listings-toolbar__start {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 16px;
    min-width: 0;
}

.listings-toolbar__end {
    display: flex;
    align-items: center;
    gap: 8px;
}

.listings-filters-mobile-btn {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid var(--border-medium);
    background: var(--bg-card);
    color: var(--text);
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.listings-filters-mobile-count {
    display: inline-flex;
    align-items: center;
    color: var(--navy);
    font-size: 13px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.listings-sort-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.listings-sort-select {
    min-width: 168px;
    padding: 10px 36px 10px 12px;
    font-size: 14px;
    border-radius: 12px;
}

.listings-saved-search {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

.listings-saved-search__save-btn,
.listings-saved-search__list-btn {
    display: inline-flex;
    align-items: center;
    height: 34px;
    padding: 0;
    border-radius: 0;
    border: none;
    border-bottom: 1px solid transparent;
    background: transparent;
    color: var(--text);
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    box-sizing: border-box;
}

.listings-saved-search__save-btn:hover,
.listings-saved-search__list-btn:hover {
    color: var(--navy);
    border-bottom-color: var(--navy);
}

.listings-saved-search {
    gap: 18px;
}

.listings-saved-search__heart {
    flex-shrink: 0;
    margin-right: 6px;
    color: var(--navy);
    transition: color 0.15s;
}

.listings-saved-search__list-btn--has-saved .listings-saved-search__heart {
    color: #e11d48;
    fill: currentColor;
}

.listings-saved-search__count {
    display: inline-flex;
    align-items: center;
    margin-left: 6px;
    color: #be123c;
    font-size: 12px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

.listings-saved-search__count[hidden] {
    display: none;
}

.listings-saved-search__panel {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    z-index: 20;
    min-width: 260px;
    max-width: 340px;
    max-height: 320px;
    overflow-y: auto;
    padding: 10px;
    border-radius: 4px;
    border: 1px solid var(--border-medium);
    background: var(--bg-card);
    box-shadow: 0 8px 20px rgba(20, 36, 54, 0.12);
}

.listings-saved-search__empty {
    margin: 4px 6px;
    font-size: 13px;
    color: var(--text-muted);
}

.listings-saved-search__items {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.listings-saved-search__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 6px;
    border-radius: 8px;
}

.listings-saved-search__item:hover {
    background: var(--bg-page);
}

.listings-saved-search__item-link {
    flex: 1;
    min-width: 0;
    font-size: 13px;
    color: var(--text);
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.listings-saved-search__item-link:hover {
    text-decoration: underline;
}

.listings-saved-search__item-remove {
    flex: none;
    padding: 2px 8px;
    border-radius: 6px;
    border: 1px solid transparent;
    background: transparent;
    color: var(--text-muted);
    font-family: inherit;
    font-size: 12px;
    cursor: pointer;
}

.listings-saved-search__item-remove:hover {
    border-color: var(--border-medium);
    color: var(--text);
}

.listings-saved-search__status {
    font-size: 12px;
    color: var(--text-muted);
    margin: 0;
}

body.listings-page .listings-toolbar .results-count {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    text-transform: none;
    letter-spacing: normal;
    padding: 0;
    border: none;
    background: transparent;
    border-radius: 0;
}

.listings-active-chips-wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 12px;
    margin-bottom: 16px;
    padding: 10px 0;
    border-radius: 0;
    border: none;
    border-bottom: 1px solid var(--border-light);
    background: transparent;
}

/* `display: flex` on these outranks the UA's `[hidden] { display: none }`, so
   an empty "Clear all" row and an empty Previous/Next row showed on /listings. */
.listings-active-chips-wrap[hidden],
.listings-pagination[hidden] {
    display: none;
}

.listings-active-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 18px;
    flex: 1;
    min-width: 0;
}

.listings-filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 0;
    border-radius: 0;
    border: none;
    background: transparent;
    color: var(--text);
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.15s;
}

.listings-filter-chip:hover,
.listings-filter-chip:focus-visible {
    color: var(--navy);
    text-decoration: line-through;
    text-decoration-thickness: 1px;
}

.listings-filter-chip-x {
    font-size: 16px;
    line-height: 1;
    color: var(--text-muted);
}

.listings-chips-clear {
    flex-shrink: 0;
    padding: 6px 0;
    border: none;
    background: transparent;
    color: var(--navy);
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.listings-zero-hint {
    margin: 0 0 16px;
    padding: 12px 0;
    border-radius: 0;
    background: transparent;
    border: none;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    font-size: 14px;
    color: var(--text);
}

.listings-view-dealers-hint {
    margin: 0 0 16px;
    font-size: 14px;
}

.listings-view-dealers-hint a {
    color: var(--navy);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.listings-undo-filter {
    margin-left: 6px;
    padding: 0;
    border: none;
    background: none;
    color: var(--navy);
    font-family: inherit;
    font-size: inherit;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
}

.filter-basics-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 14px;
}

.listings-filters-sheet-done {
    display: none !important;
    width: 100%;
    margin-top: 12px;
    justify-content: center;
}

.listings-filter-backdrop {
    position: fixed;
    inset: 0;
    z-index: 80;
    background: rgba(20, 36, 54, 0.45);
    backdrop-filter: blur(2px);
}

/* Deal rating reads as coloured text under the price -- no pill, no overlay. */
.result-deal-line {
    margin: -2px 0 6px;
    font-size: 12px;
    line-height: 1.35;
}

.result-deal-badge {
    display: inline;
    padding: 0;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.01em;
    line-height: 1.35;
    background: none;
}

.result-deal-badge--below_market {
    color: var(--deal-below);
}

.result-deal-badge--above_market {
    color: var(--deal-above);
}

.result-deal-badge--near_market {
    color: var(--text-muted);
}

.result-deal-badge-pct {
    font-weight: 600;
}

.result-save-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    color: var(--navy);
    cursor: pointer;
    transition: color 0.15s;
}

.result-save-btn:hover {
    color: #c53030;
}

.result-save-btn--saved {
    color: #c53030;
}

.result-market-sub {
    font-size: 12px;
    color: var(--text-muted);
    margin: -2px 0 6px;
}

/* This row moved out of .result-content so the dealer name can be its own <a>
   without nesting inside the card-wide car link, so it now carries the card's
   horizontal padding and bottom padding itself. */
.result-dealer-row {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 10px;
    align-items: baseline;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
    padding: 0;
}

.result-card-link .result-content {
    padding-bottom: 4px;
}

.result-distance {
    font-weight: 600;
    color: var(--navy);
}

.result-card--skeleton {
    pointer-events: none;
}

.result-image--skeleton,
.result-skel-line {
    background: linear-gradient(
        90deg,
        var(--bg-subtle) 0%,
        #f8f6f2 40%,
        var(--bg-subtle) 80%
    );
    background-size: 200% 100%;
    animation: result-skel-shimmer 1.2s ease-in-out infinite;
}

.result-image--skeleton {
    height: 200px;
}

.result-skel-line {
    height: 14px;
    border-radius: 6px;
    margin-bottom: 10px;
}

.result-skel-line--title {
    height: 18px;
    width: 85%;
}

.result-skel-line--price {
    width: 45%;
    height: 22px;
}

.result-skel-line--meta {
    width: 70%;
}

@keyframes result-skel-shimmer {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

/* VDP sticky mobile CTA */
.car-mobile-cta {
    display: none;
}

@media (max-width: 960px) {
    .listings-filters-mobile-btn {
        display: inline-flex;
    }

    .listings-filters-sheet-done {
        display: inline-flex !important;
    }

    body.listings-page .listings-layout {
        grid-template-areas: "main";
        grid-template-columns: 1fr;
    }

    /* M7 (visual review 2026-09-28): the desktop sticky ``top:16px`` leaked in
       and pinned the sheet to the top, 108px short of the bottom. Anchor it to
       the bottom only; the actions bar carries the safe-area padding so the
       sticky "Show results" row sits on the sheet's real bottom edge. */
    body.listings-page .listings-sidebar {
        display: none;
        position: fixed;
        top: auto;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 90;
        max-height: min(88vh, 720px);
        margin: 0;
        padding: 20px 20px 0;
        border-radius: 0;
        border-top: 1px solid var(--border-medium);
        background: var(--bg-elevated);
        box-shadow: none;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    body.listings-page.listings-filters-open .listings-sidebar {
        display: block;
    }

    .car-mobile-cta {
        display: flex;
        align-items: center;
        gap: 10px;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 50;
        padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
        background: var(--bg-page);
        border-top: 1px solid var(--border-medium);
        box-shadow: none;
    }

    .car-mobile-cta-dealer {
        flex: 1;
        text-align: center;
        justify-content: center;
        border-radius: 4px;
        box-shadow: none;
    }

    .car-mobile-cta-save {
        flex-shrink: 0;
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 10px 14px;
        border-radius: 4px;
        border: 1px solid var(--border-medium);
        background: transparent;
        box-shadow: none;
        font-family: inherit;
        font-size: 14px;
        font-weight: 600;
        cursor: pointer;
    }

    body.car-detail-page .car-detail {
        padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px));
    }

}

@media (min-width: 961px) {
    .car-vdp-tabs {
        position: sticky;
        top: 72px;
        z-index: 5;
        background: var(--bg-page);
        padding-top: 4px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .result-image--skeleton,
    .result-skel-line {
        animation: none;
    }
}

/* ── Phase 3: pagination, compare, landing search ── */

.listings-per-page-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.listings-per-page-select {
    min-width: 64px;
    padding: 10px 28px 10px 10px;
    font-size: 14px;
    border-radius: 12px;
}

.listings-pagination {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
}

.listings-pagination__summary {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    text-align: center;
}

.listings-pagination__controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px 12px;
    width: 100%;
}

/* Pagination is type: numbers and Previous/Next as text, the current page
   underlined in navy -- no bordered squares or filled discs. */
.listings-page-btn {
    padding: 8px 4px;
    border-radius: 0;
    border: none;
    border-bottom: 1px solid transparent;
    background: transparent;
    color: var(--text);
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s;
}

.listings-page-btn:hover:not(:disabled) {
    border-bottom-color: var(--navy);
    color: var(--navy);
}

.listings-page-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.listings-pagination__pages {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.listings-page-num {
    min-width: 32px;
    height: 40px;
    padding: 0 6px;
    border-radius: 0;
    border: none;
    border-bottom: 2px solid transparent;
    background: transparent;
    color: var(--text-muted);
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.listings-page-num:hover {
    color: var(--navy);
}

.listings-page-num--active {
    color: var(--navy);
    border-bottom-color: var(--navy);
}

.listings-page-ellipsis {
    padding: 0 6px;
    color: var(--text-faint);
    font-weight: 600;
}

.result-card-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 8px;
    padding-top: 6px;
    border-top: 1px solid var(--border-light);
}

.result-compare-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 0;
    border: none;
    background: transparent;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
}

.result-compare-label input {
    accent-color: var(--navy);
    pointer-events: none;
}

.result-compare-label--active {
    color: var(--navy);
}

.compare-tray {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 85;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
    background: rgba(250, 248, 245, 0.97);
    border-top: 1px solid var(--border-light);
    box-shadow: 0 -10px 40px rgba(20, 36, 54, 0.14);
    backdrop-filter: blur(10px);
}

.compare-tray__inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 20px;
}

.compare-tray__slots {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.compare-tray__slot {
    padding: 2px 0;
    border-radius: 0;
    background: transparent;
    border: none;
    font-size: 13px;
    font-weight: 600;
    color: var(--navy);
}

.compare-tray__actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.compare-tray__clear {
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
}

body.compare-tray-open.listings-page {
    padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
}

body.compare-tray-open.car-detail-page .car-detail {
    padding-bottom: calc(140px + env(safe-area-inset-bottom, 0px));
}

