/* ======================================================================
   Hagalu discovery surfaces
   Homepage styles are kept in this first section. Search-page styles can
   be appended below the clearly marked boundary at the end of this file.
   ====================================================================== */

/* ----------------------------------------------------------------------
   Homepage: compact search-led hero
   ---------------------------------------------------------------------- */
.home-discovery-hero,
.home-brand-rail-card,
.home-intent-card,
.home-section,
.brand-directory-card,
.why-hagalu,
.home-support-card,
.faq-section {
    box-sizing: border-box;
}

.home-discovery-hero {
    position: relative;
    overflow: visible;
    margin: 14px 0 20px;
    padding: clamp(24px, 4vw, 44px);
    border: 1px solid rgba(148, 163, 184, .2);
    border-radius: 20px;
    color: #fff;
    background:
        radial-gradient(circle at 92% 12%, rgba(16, 185, 129, .22), transparent 38%),
        radial-gradient(circle at 8% 100%, rgba(59, 130, 246, .2), transparent 42%),
        linear-gradient(135deg, #0f172a 0%, #172554 58%, #0f172a 100%);
    box-shadow: 0 16px 42px rgba(15, 23, 42, .14);
}

.home-discovery-hero__copy {
    max-width: 780px;
}

.home-discovery-hero__eyebrow,
.home-support-card__eyebrow {
    display: inline-block;
    margin-bottom: 10px;
    color: #a7f3d0;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .1em;
    line-height: 1.3;
    text-transform: uppercase;
}

.home-discovery-hero h1 {
    max-width: 720px;
    margin: 0;
    color: #fff;
    font-size: clamp(1.8rem, 4vw, 2.65rem);
    font-weight: 850;
    letter-spacing: -.035em;
    line-height: 1.08;
}

.home-discovery-hero__copy > p {
    max-width: 690px;
    margin: 12px 0 22px;
    color: #dbeafe;
    font-size: clamp(.92rem, 2vw, 1.05rem);
    line-height: 1.55;
}

.home-finder {
    position: relative;
    z-index: 15;
    max-width: 780px;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 14px;
    background: rgba(255, 255, 255, .1);
    box-shadow: 0 10px 30px rgba(2, 6, 23, .16);
    backdrop-filter: blur(8px);
}

.home-finder__label {
    display: block;
    margin: 0 0 7px;
    color: #f8fafc;
    font-size: 12px;
    font-weight: 750;
}

.home-finder__controls {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
}

.home-finder__input-wrap {
    position: relative;
    min-width: 0;
}

.home-finder__icon {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 14px;
    color: #64748b;
    pointer-events: none;
    transform: translateY(-50%);
}

.home-finder input[type="search"] {
    display: block;
    width: 100%;
    min-width: 0;
    height: 48px;
    box-sizing: border-box;
    padding: 0 14px 0 44px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    outline: none;
    background: #fff;
    color: #0f172a;
    font: inherit;
    font-size: 15px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, .08);
}

.home-finder input[type="search"]:focus {
    border-color: #60a5fa;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, .25);
}

.home-finder__submit {
    min-height: 48px;
    padding: 0 20px;
    border: 1px solid #10b981;
    border-radius: 10px;
    background: #10b981;
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-size: 14px;
    font-weight: 800;
    white-space: nowrap;
}

.home-finder__submit:hover,
.home-finder__submit:focus-visible {
    border-color: #059669;
    background: #059669;
    outline: none;
}

.home-finder__shortcuts {
    display: flex;
    flex-wrap: wrap;
    gap: 5px 11px;
    align-items: center;
    margin-top: 10px;
    color: #cbd5e1;
    font-size: 12px;
}

.home-finder__shortcuts a {
    color: #fff;
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, .4);
    text-underline-offset: 3px;
}

.home-discovery-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
}

.home-hero-action {
    display: inline-flex;
    min-height: 38px;
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
    padding: 0 13px;
    border: 1px solid rgba(255, 255, 255, .3);
    border-radius: 999px;
    background: transparent;
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-size: 12px;
    font-weight: 750;
    text-decoration: none;
}

.home-hero-action:hover,
.home-hero-action:focus-visible {
    border-color: rgba(255, 255, 255, .62);
    background: rgba(255, 255, 255, .1);
    color: #fff;
    outline: none;
    text-decoration: none;
}

.home-hero-action--primary {
    border-color: #fff;
    background: #fff;
    color: #172554;
}

.home-hero-action--primary:hover,
.home-hero-action--primary:focus-visible {
    background: #eff6ff;
    color: #172554;
}

/* Shared autocomplete container: options are populated by model-autocomplete.js. */
.home-finder .autocomplete-list {
    position: absolute;
    z-index: 50;
    top: calc(100% + 6px);
    right: 0;
    left: 0;
    max-height: min(360px, 55vh);
    overflow-y: auto;
    margin: 0;
    padding: 5px;
    border: 1px solid #cbd5e1;
    border-radius: 11px;
    background: #fff;
    color: #0f172a;
    list-style: none;
    box-shadow: 0 18px 42px rgba(15, 23, 42, .22);
}

.home-finder .autocomplete-list[hidden] {
    display: none;
}

.home-finder .autocomplete-option,
.home-finder .autocomplete-list [role="option"] {
    display: flex;
    min-height: 46px;
    box-sizing: border-box;
    gap: 10px;
    align-items: center;
    padding: 6px 8px;
    border-radius: 8px;
    color: #0f172a;
    cursor: pointer;
    text-decoration: none;
}

.home-finder .autocomplete-option:hover,
.home-finder .autocomplete-option[aria-selected="true"],
.home-finder .autocomplete-list [role="option"]:hover,
.home-finder .autocomplete-list [role="option"][aria-selected="true"] {
    background: #eff6ff;
}

.home-finder .autocomplete-option img,
.home-finder .autocomplete-list [role="option"] img {
    width: 54px;
    height: 34px;
    flex: 0 0 auto;
    border-radius: 6px;
    background: #f8fafc;
    object-fit: cover;
}

/* ----------------------------------------------------------------------
   Homepage: manually scrollable leading-brand rail
   ---------------------------------------------------------------------- */
.home-brand-rail-card {
    margin: 0 0 22px;
    padding: 17px 0 14px;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(15, 23, 42, .04);
}

.home-compact-heading {
    display: flex;
    gap: 12px;
    align-items: flex-end;
    justify-content: space-between;
    padding: 0 18px 12px;
}

.home-compact-heading h2 {
    margin: 0;
    color: #0f172a;
    font-size: 17px;
}

.home-compact-heading p {
    margin: 3px 0 0;
    color: #64748b;
    font-size: 12px;
}

.home-compact-heading > a {
    flex: 0 0 auto;
    color: #1d4ed8;
    font-size: 12px;
    font-weight: 750;
    text-decoration: none;
}

.home-brand-rail {
    display: flex;
    gap: 9px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    padding: 2px 18px 8px;
    scrollbar-color: #cbd5e1 transparent;
    scrollbar-width: thin;
    scroll-padding-inline: 18px;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
}

.home-brand-pill {
    display: grid;
    grid-template-columns: 48px minmax(94px, 1fr);
    flex: 0 0 164px;
    gap: 9px;
    align-items: center;
    min-height: 58px;
    box-sizing: border-box;
    padding: 8px 10px;
    border: 1px solid #e2e8f0;
    border-radius: 11px;
    background: #fff;
    color: inherit;
    scroll-snap-align: start;
    text-decoration: none;
}

.home-brand-pill:hover,
.home-brand-pill:focus-visible {
    border-color: #93c5fd;
    background: #f8fbff;
    outline: none;
    text-decoration: none;
}

.home-brand-pill__logo {
    display: flex;
    width: 48px;
    height: 38px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #f8fafc;
}

.home-brand-pill__logo img {
    width: 42px;
    height: 28px;
    object-fit: contain;
}

.home-brand-pill__copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 2px;
}

.home-brand-pill__copy strong {
    overflow: hidden;
    color: #0f172a;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-brand-pill__copy small {
    color: #64748b;
    font-size: 10px;
    white-space: nowrap;
}

/* ----------------------------------------------------------------------
   Homepage: intent grid and curated model sections
   ---------------------------------------------------------------------- */
.home-intent-card .section-header,
.home-section .section-header {
    align-items: flex-end;
}

.home-intent-card .section-sub,
.home-section .section-sub {
    margin: 4px 0 0;
    max-width: 760px;
    color: #64748b;
    line-height: 1.45;
}

.home-intent-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 9px;
}

.home-intent-link {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    grid-template-rows: auto auto;
    min-width: 0;
    gap: 1px 9px;
    align-items: center;
    min-height: 68px;
    box-sizing: border-box;
    padding: 10px 11px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #f8fafc;
    color: inherit;
    text-decoration: none;
}

.home-intent-link > span {
    display: flex;
    grid-row: 1 / span 2;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: #eaf2ff;
    color: #1d4ed8;
    font-size: 13px;
    font-weight: 850;
}

.home-intent-link > span svg {
    width: 23px;
    height: 23px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.65;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.home-intent-link strong {
    overflow: hidden;
    color: #0f172a;
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-intent-link small {
    overflow: hidden;
    color: #64748b;
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-intent-link:hover,
.home-intent-link:focus-visible {
    border-color: #93c5fd;
    background: #eff6ff;
    outline: none;
    text-decoration: none;
}

.home-section .home-car-card {
    position: relative;
}

.home-section .home-row {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.home-section .home-row[data-analytics-item-list="home_widest_current_ranges"] {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.home-section .home-car-card:focus-visible {
    outline: 3px solid rgba(59, 130, 246, .28);
    outline-offset: 2px;
}

.home-car-price-label {
    display: block;
    margin-top: 6px;
    color: #64748b;
    font-size: 10px;
    font-weight: 650;
    line-height: 1;
}

.home-car-price-label + .home-car-price {
    margin-top: 3px;
}

.home-status-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 3px 7px;
    border-radius: 999px;
    background: rgba(154, 52, 18, .92);
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.home-guide-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.home-guide-link {
    display: flex;
    min-height: 70px;
    box-sizing: border-box;
    flex-direction: column;
    justify-content: center;
    padding: 12px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
    color: inherit;
    text-decoration: none;
}

.home-guide-link strong {
    color: #0f172a;
    font-size: 13px;
}

.home-guide-link span {
    margin-top: 3px;
    color: #64748b;
    font-size: 11px;
}

.home-guide-link:hover,
.home-guide-link:focus-visible {
    border-color: #93c5fd;
    background: #f8fbff;
    outline: none;
    text-decoration: none;
}

/* ----------------------------------------------------------------------
   Homepage: trust, buyer support and FAQ polish
   ---------------------------------------------------------------------- */
.home-support-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px;
    align-items: center;
    border-color: #dbeafe;
    background: linear-gradient(135deg, #eff6ff, #fff 62%);
}

.home-support-card__eyebrow {
    margin-bottom: 6px;
    color: #1d4ed8;
}

.home-support-card h2 {
    margin: 0 0 7px;
    color: #0f172a;
    font-size: 20px;
}

.home-support-card p {
    max-width: 760px;
    margin: 0;
    color: #475569;
    font-size: 13px;
    line-height: 1.55;
}

.home-support-card .home-support-card__note {
    margin-top: 7px;
    color: #64748b;
    font-size: 11px;
}

.home-support-card__actions {
    display: flex;
    min-width: 190px;
    flex-direction: column;
    gap: 8px;
}

.home-support-card__actions button,
.home-support-card__actions a {
    display: inline-flex;
    min-height: 40px;
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    border: 1px solid #1d4ed8;
    border-radius: 9px;
    background: #fff;
    color: #1d4ed8;
    cursor: pointer;
    font: inherit;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
}

.home-support-card__actions .home-support-card__primary {
    background: #1d4ed8;
    color: #fff;
}

.home-support-card__actions button:hover,
.home-support-card__actions button:focus-visible,
.home-support-card__actions a:hover,
.home-support-card__actions a:focus-visible {
    box-shadow: 0 4px 12px rgba(29, 78, 216, .16);
    outline: none;
    text-decoration: none;
}

.faq-section .faq-item:last-child {
    margin-bottom: 0;
    border-bottom: 0;
}

.faq-section .faq-question:focus-visible {
    border-radius: 6px;
    outline: 3px solid rgba(59, 130, 246, .22);
    outline-offset: 3px;
}

.faq-section .faq-question::after {
    content: "+";
    flex: 0 0 auto;
    margin-left: 12px;
    font-size: 18px;
    font-weight: 800;
    transition: transform .18s ease;
}

.faq-section .faq-item.open .faq-question::after {
    transform: rotate(45deg);
}

.faq-section .faq-answer[hidden] {
    display: none;
}

.faq-section .faq-answer p {
    margin: 0;
}

/* ----------------------------------------------------------------------
   Homepage: responsive behaviour
   ---------------------------------------------------------------------- */
@media (max-width: 900px) {
    .home-section .home-row[data-analytics-item-list="home_widest_current_ranges"] {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .home-intent-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .home-guide-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    .home-section .home-row,
    .home-section .home-row[data-analytics-item-list="home_widest_current_ranges"] {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-discovery-hero {
        padding: 24px 18px;
        border-radius: 15px;
    }

    .home-finder {
        padding: 11px;
    }

    .home-finder__controls {
        grid-template-columns: minmax(0, 1fr);
    }

    .home-finder__submit {
        width: 100%;
    }

    .home-discovery-hero__actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-hero-action:first-child {
        grid-column: 1 / -1;
    }

    .home-compact-heading {
        align-items: flex-start;
    }

    .home-intent-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-intent-link {
        grid-template-columns: 30px minmax(0, 1fr);
        min-height: 62px;
        padding: 8px;
    }

    .home-intent-link > span {
        width: 30px;
        height: 30px;
    }

    .home-intent-link > span svg {
        width: 21px;
        height: 21px;
    }

    .home-support-card {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }

    .home-support-card__actions {
        min-width: 0;
    }
}

@media (max-width: 430px) {
    .home-discovery-hero {
        margin-top: 8px;
        padding: 20px 14px;
    }

    .home-discovery-hero h1 {
        font-size: 1.65rem;
    }

    .home-finder__shortcuts > span {
        flex: 0 0 100%;
    }

    .home-compact-heading p {
        max-width: 230px;
    }

    .home-intent-link small {
        display: none;
    }

    .home-guide-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-discovery-hero *,
    .home-brand-rail *,
    .home-intent-grid *,
    .home-section * {
        scroll-behavior: auto !important;
        transition-duration: .001ms !important;
    }
}

/* ======================================================================
   Search page styles: append below this boundary.
   ====================================================================== */

.search-discovery-header,
.discovery-results-layout,
.search-discovery-header * {
    box-sizing: border-box;
}

.search-discovery-header {
    margin: 14px 0 18px;
    padding: clamp(20px, 3vw, 30px);
    border: 1px solid #dbeafe;
    border-radius: 16px;
    background:
        radial-gradient(circle at 100% 0, rgba(59, 130, 246, .12), transparent 40%),
        linear-gradient(135deg, #f8fbff, #fff);
}

.search-discovery-copy {
    max-width: 780px;
}

.discovery-eyebrow {
    margin: 0 0 7px;
    color: #1d4ed8;
    font-size: 11px;
    font-weight: 850;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.search-discovery-copy h1 {
    margin: 0;
    color: #0f172a;
    font-size: clamp(1.55rem, 3.2vw, 2.25rem);
    letter-spacing: -.03em;
    line-height: 1.1;
}

.search-discovery-copy > p:last-child {
    max-width: 720px;
    margin: 9px 0 17px;
    color: #475569;
    font-size: 14px;
    line-height: 1.5;
}

.search-discovery-header .discovery-search-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    max-width: 820px;
    gap: 8px;
    margin: 0;
}

.search-discovery-header .search-input-wrap {
    position: relative;
    z-index: 20;
    min-width: 0;
}

.search-discovery-header .search-input-large {
    height: 48px;
    box-sizing: border-box;
    padding: 0 15px;
    border-radius: 10px;
    background: #fff;
    font-size: 15px;
}

.search-discovery-header .btn-primary {
    width: auto;
    min-height: 48px;
    padding-inline: 20px;
    border-radius: 10px;
    white-space: nowrap;
}

.search-discovery-header .search-ac-list {
    max-height: min(390px, 55vh);
    overflow-y: auto;
}

.search-ac-list [role="option"] {
    min-width: 0;
}

.search-ac-list .ac-label,
.home-finder .ac-label {
    min-width: 0;
    flex: 1 1 auto;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.autocomplete-kind {
    flex: 0 0 auto;
    color: #64748b;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

.discovery-quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 13px;
}

.discovery-quick-links a {
    display: inline-flex;
    min-height: 30px;
    align-items: center;
    padding: 4px 10px;
    border: 1px solid #dbeafe;
    border-radius: 999px;
    background: #fff;
    color: #1d4ed8;
    font-size: 11px;
    font-weight: 750;
    text-decoration: none;
}

.discovery-quick-links a:hover,
.discovery-quick-links a:focus-visible {
    border-color: #93c5fd;
    background: #eff6ff;
    outline: none;
    text-decoration: none;
}

.discovery-results-layout {
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 20px;
}

.discovery-results-layout .filter-sidebar {
    top: 12px;
    max-height: calc(100vh - 24px);
    overflow-y: auto;
    box-sizing: border-box;
    padding: 16px 14px;
    scrollbar-width: thin;
}

.discovery-results-layout .filter-sidebar-header {
    margin: 0 0 13px;
}

.filter-count-badge {
    display: inline-flex;
    min-width: 20px;
    height: 20px;
    align-items: center;
    justify-content: center;
    margin-left: 4px;
    padding: 0 6px;
    border-radius: 999px;
    background: #1d4ed8;
    color: #fff;
    font-size: 10px;
}

.discovery-results-layout fieldset.filter-group {
    min-width: 0;
    margin-inline: 0;
    padding-inline: 0;
    border-width: 0 0 1px;
}

.discovery-results-layout legend.filter-group-label {
    display: block;
    width: 100%;
    padding: 0;
}

.discovery-results-layout .filter-option {
    position: relative;
    min-height: 34px;
    box-sizing: border-box;
}

.discovery-results-layout .filter-option input[type="radio"],
.discovery-results-layout .filter-option input[type="checkbox"] {
    position: absolute;
    display: block;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.discovery-results-layout .filter-option:has(input:focus-visible),
.discovery-results-layout .filter-select:focus-visible,
.discovery-results-layout .price-input:focus-visible {
    outline: 3px solid rgba(59, 130, 246, .24);
    outline-offset: 2px;
}

.discovery-results-layout .filter-option span::before {
    content: "";
    display: inline-block;
    width: 12px;
    height: 12px;
    box-sizing: border-box;
    margin-right: 7px;
    border: 1.5px solid #94a3b8;
    border-radius: 50%;
    vertical-align: -2px;
    background: #fff;
}

.discovery-results-layout .filter-option:has(input[type="checkbox"]) span::before {
    border-radius: 3px;
}

.discovery-results-layout .filter-option:has(input:checked) span::before {
    border: 3px solid #dbeafe;
    background: #1d4ed8;
    box-shadow: 0 0 0 1px #1d4ed8;
}

.discovery-results-layout .price-range-row label {
    min-width: 0;
    flex: 1 1 0;
}

.discovery-results-layout .price-input {
    width: 100%;
    box-sizing: border-box;
}

.filter-mobile-apply {
    display: inline-flex;
    width: 100%;
    justify-content: center;
}

.results-summary-row {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 10px;
}

.search-results.infinite-scroll-enhanced > .pagination {
    display: none;
}

.search-infinite-sentinel {
    width: 100%;
    height: 1px;
}

.search-infinite-status {
    min-height: 24px;
    margin: 14px 0 0;
    color: #64748b;
    font-size: 13px;
    text-align: center;
}

.results-summary-row h2 {
    margin: 0;
    color: #0f172a;
    font-size: 19px;
}

.results-summary-row .search-count {
    margin: 3px 0 0;
}

.results-clear-link {
    flex: 0 0 auto;
    color: #b91c1c;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.search-cards-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 13px;
}

.search-cards-grid .car-card {
    min-width: 0;
}

.search-cards-grid .car-card:focus-visible {
    outline: 3px solid rgba(59, 130, 246, .3);
    outline-offset: 2px;
}

.matching-variant-line {
    display: -webkit-box;
    min-height: 29px;
    overflow: hidden;
    margin: -2px 0 7px;
    color: #475569;
    font-size: 10px;
    line-height: 1.4;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.car-card-price--pending {
    color: #64748b;
    font-size: 12px;
}

.search-empty {
    box-sizing: border-box;
    padding: 34px 20px;
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    background: #f8fafc;
    text-align: center;
}

.search-empty h2 {
    margin: 0 0 6px;
    color: #0f172a;
    font-size: 18px;
}

.search-empty .discovery-quick-links--center {
    justify-content: center;
}

.search-results .pagination {
    margin-top: 20px;
}

@media (max-width: 1000px) {
    .discovery-results-layout {
        grid-template-columns: 210px minmax(0, 1fr);
    }

    .search-cards-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .discovery-results-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
    }

    .discovery-results-layout .filter-sidebar {
        position: static;
        max-height: none;
        overflow: visible;
    }

    .discovery-results-layout .filter-toggle-btn {
        display: flex;
    }

    .discovery-results-layout .filter-sidebar-body {
        display: none;
        margin-top: 14px;
    }

    .discovery-results-layout .filter-sidebar.open .filter-sidebar-body {
        display: block;
    }

    .discovery-results-layout .filter-options {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .filter-mobile-apply {
        display: inline-flex;
        position: sticky;
        bottom: 8px;
        z-index: 4;
        min-height: 44px;
    }
}

@media (max-width: 600px) {
    .search-discovery-header {
        margin-top: 8px;
        padding: 20px 14px;
        border-radius: 14px;
    }

    .search-discovery-header .discovery-search-form {
        grid-template-columns: minmax(0, 1fr);
    }

    .search-discovery-header .btn-primary {
        width: 100%;
    }

    .search-discovery-header .search-input-large {
        min-width: 100%;
    }

    .search-cards-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 9px;
    }

    .search-cards-grid .car-card-img {
        padding: 7px;
    }

    .search-cards-grid .car-card-body {
        padding: 8px 9px 10px;
    }

    .results-summary-row {
        align-items: flex-end;
    }
}

@media (max-width: 380px) {
    .search-cards-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .discovery-results-layout .filter-options {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (prefers-reduced-motion: reduce) {
    .search-discovery-header *,
    .discovery-results-layout * {
        scroll-behavior: auto !important;
        transition-duration: .001ms !important;
    }
}
