/* Listing detail — feed enrichment (docs/FEED_ENRICHMENT_PLAN.md §2): the "Features" card ("Key features" chips +
   the "All equipment (N)" disclosure), the Stock # / Doors overview rows, and description line breaks.

   Everything is under .listing-details-page (the page prefix) and the .lf- class prefix.

   DARK MODE (docs/FEATURE_BUILD_STANDARD.md §6.1): theme.css keeps .section-card white in dark mode
   ([data-theme="dark"] .section-card { background: #fff !important }), so everything inside the card uses LITERAL
   light colours, never theme tokens — the same in both themes, all ≥ 4.5:1 on white.

   SPACING: chips wrap with an 8px gap and never touch each other or the card border (the card's own padding gives the
   inset); the disclosure sits 16px below the chips; its toggle is a 44px-tall tap target at phone width. */

/* Description: keep the paragraph breaks the feed cleaner inserts ("…Advanced Features\n\nExperience the …") and
   any a seller typed. The text is EJS-escaped; pre-line only changes how its own newlines render. */
.listing-details-page .description-text {
    white-space: pre-line;
    overflow-wrap: anywhere;
}

.listing-details-page .lf-stock {
    overflow-wrap: anywhere;
}

/* ── Key features chips ── */
.listing-details-page .lf-section .lf-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.listing-details-page .lf-section .lf-chip {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid #bfdbfe;
    background: #eff6ff;
    color: #1e3a8a;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

/* ── All equipment (native <details>: works with JavaScript off) ── */
.listing-details-page .lf-section .lf-equipment {
    margin-top: 16px;
}
.listing-details-page .lf-section .lf-chips + .lf-equipment {
    margin-top: 20px;
}
.listing-details-page .lf-section .lf-equipment-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 8px 16px;
    border: 1.5px solid #c7d2fe;
    border-radius: 10px;
    background: #f8fafc;
    color: #1d4ed8;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
    box-sizing: border-box;
    max-width: 100%;
}
.listing-details-page .lf-section .lf-equipment-toggle::-webkit-details-marker { display: none; }
.listing-details-page .lf-section .lf-equipment-toggle::before {
    content: "";
    width: 7px;
    height: 7px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(-45deg);
    transition: transform .15s ease;
    flex-shrink: 0;
}
.listing-details-page .lf-section .lf-equipment[open] > .lf-equipment-toggle::before {
    transform: rotate(45deg);
}
.listing-details-page .lf-section .lf-equipment-toggle:hover {
    background: #eef2ff;
    border-color: #a5b4fc;
}
.listing-details-page .lf-section .lf-equipment-toggle:focus-visible {
    outline: 3px solid #1d4ed8;
    outline-offset: 2px;
}

.listing-details-page .lf-section .lf-equipment-body {
    margin-top: 16px;
}
.listing-details-page .lf-section .lf-groups {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px 24px;
}
.listing-details-page .lf-section .lf-group-title {
    margin: 0 0 6px;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .02em;
    line-height: 1.4;
    color: #0d1526;
}
.listing-details-page .lf-section .lf-dealer-title {
    margin-top: 20px;
}
.listing-details-page .lf-section .lf-list {
    margin: 0;
    padding: 0 0 0 18px;
    list-style: disc;
    font-size: 13px;
    line-height: 1.6;
    color: #374151;
}
.listing-details-page .lf-section .lf-list li {
    overflow-wrap: anywhere;
}
.listing-details-page .lf-section .lf-list li::marker {
    color: #6b7590;
}
.listing-details-page .lf-section .lf-list--columns {
    column-width: 220px;
    column-gap: 32px;
}
.listing-details-page .lf-section .lf-list--columns li {
    break-inside: avoid;
}

@media (max-width: 600px) {
    .listing-details-page .lf-section .lf-equipment-toggle {
        width: 100%;
        justify-content: flex-start;
    }
}
