/* Styles for the used bike search and the used landing pages. */

/* On a phone the photo would push the search below the fold. */
@media (max-width: 899px) {
    .used-hero .page-hero__media {
        display: none;
    }
}

/* Two to a row on a phone, all in one row on a wide screen. */
.used-filters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr));
    align-items: end;
    gap: var(--space-3) var(--space-4);
    margin-bottom: var(--space-5);
    padding: var(--space-4);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
    background: var(--color-surface);
}

/* A select is drawn shorter than a text box, so both get the same height. */
.used-filters .field__input {
    height: 48px;
}

.used-filters__check {
    align-self: center;
}

@media (min-width: 1100px) {
    .used-filters {
        grid-template-columns: repeat(4, minmax(0, 1fr)) auto auto;
    }

    .used-filters__check {
        max-width: 13rem;
    }
}

.used-dealers {
    margin-bottom: var(--space-4);
}

.used-dealers__title {
    margin-bottom: var(--space-2);
    font-size: var(--text-sm);
    font-weight: 600;
}

.used-dealers .pill-list {
    margin-bottom: 0;
}

.used-results {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-3) var(--space-5);
    margin-bottom: var(--space-5);
}

.used-results__filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-2);
}

.used-intro {
    display: grid;
    gap: var(--space-3);
    justify-items: start;
    max-width: 52rem;
}

.used-intro h2 {
    font-size: var(--text-2xl);
}

.used-intro h3 {
    font-size: var(--text-lg);
}

.used-landing__head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--space-2) var(--space-5);
    margin-bottom: var(--space-5);
}

.used-landing__head h4 {
    font-size: var(--text-xl);
}
