/**
 * [auction_vehicle_info] — the block below the lot grid.
 *
 * Colours come from the Elementor globals so the block follows a redesign
 * rather than pinning brand values a later theme change would miss. Selectors
 * are scoped under .alps-info throughout, so nothing here can reach the rest
 * of the page.
 *
 * The theme styles bare elements hard, which is why dl, dt, dd, ul and li are
 * all reset explicitly rather than trusted to inherit sensibly. That lesson
 * came from the browse-links toggle and the range slider before it.
 */

.alps-info {
    margin: 28px 0 0;
    font-size: 15px;
    line-height: 1.65;
    color: var(--e-global-color-secondary, #14171a);
}

.alps-info-slot:empty {
    display: none;
}

.alps-info h2 {
    margin: 0 0 12px;
    padding: 0;
    font-size: 20px;
    line-height: 1.3;
    border: 0;
}

.alps-info > div + div {
    margin-top: 26px;
    padding-top: 26px;
    border-top: 1px solid #e6e9ec;
}

/* ------------------------------------------------------- the empty notice --- */

/*
 * Deliberately not styled as a warning. There is nothing wrong — the auction
 * cycle simply turned over — and a red box would tell the visitor they have
 * arrived somewhere broken.
 */
.alps-info-empty {
    padding: 18px 20px;
    border-radius: 10px;
    background: #f4f6f8;
    border: 1px solid #e6e9ec;
}

.alps-info-empty p {
    margin: 0;
}

.alps-info-empty p + p {
    margin-top: 8px;
    color: #5c6570;
    font-size: 14px;
}

.alps-info-empty-lead {
    font-weight: 600;
    font-size: 16px;
}

/* ------------------------------------------------------- editorial copy --- */

.alps-info-copy p {
    margin: 0 0 12px;
}

.alps-info-copy p:last-child {
    margin-bottom: 0;
}

/* ----------------------------------------------------------- the figures --- */

.alps-info-figures {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 14px;
    margin: 0;
    padding: 0;
}

.alps-info-figure {
    margin: 0;
    padding: 14px 16px;
    border-radius: 10px;
    background: #f4f6f8;
}

.alps-info-figure dt {
    margin: 0 0 4px;
    padding: 0;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #8b93a1;
}

.alps-info-figure dd {
    margin: 0;
    padding: 0;
}

.alps-info-value {
    display: block;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.35;
}

/*
 * The sample count. Small, but never hidden: a figure without it is a number
 * someone might spend thousands of dollars on the strength of.
 */
.alps-info-note {
    display: block;
    margin-top: 2px;
    font-size: 13px;
    color: #5c6570;
}

.alps-info-source {
    margin: 14px 0 0;
    font-size: 13px;
    color: #5c6570;
}

/* ------------------------------------------------------------- the links --- */

.alps-info-links ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.alps-info-links > ul > li,
.alps-info-links li {
    margin: 0;
    padding: 0;
    list-style: none;
}

.alps-info-links li::before,
.alps-info-links li::marker {
    content: none;
}

.alps-info-links a {
    display: inline-block;
    padding: 7px 13px;
    border: 1px solid #dbe0e5;
    border-radius: 999px;
    background: #fff;
    font-size: 14px;
    line-height: 1.4;
    text-decoration: none;
    color: var(--e-global-color-secondary, #14171a);
    transition: border-color 0.15s ease, color 0.15s ease, background-color 0.15s ease;
}

.alps-info-links a:hover,
.alps-info-links a:focus-visible {
    border-color: var(--e-global-color-primary, #c8102e);
    color: var(--e-global-color-primary, #c8102e);
    background: rgba(200, 16, 46, 0.05);
    text-decoration: none;
}

/*
 * Anything with no current stock is dimmed rather than hidden. It is still a
 * real page worth reading, but sending someone to another empty grid ahead of
 * one with cars in it would be the wrong order.
 */
.alps-info-links li.is-quiet a {
    color: #7b838e;
    border-style: dashed;
}

.alps-info-links li.is-quiet a:hover,
.alps-info-links li.is-quiet a:focus-visible {
    color: var(--e-global-color-primary, #c8102e);
    border-style: solid;
}

/* --------------------------------------------------------------- mobile --- */

@media (max-width: 767px) {
    .alps-info {
        margin-top: 22px;
        font-size: 14px;
    }

    .alps-info h2 {
        font-size: 18px;
    }

    .alps-info > div + div {
        margin-top: 20px;
        padding-top: 20px;
    }

    .alps-info-figures {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .alps-info-empty {
        padding: 14px 16px;
    }
}
