/* Durable search pages (fix #3; docs/BUYER_CONTACT_AND_TRAFFIC_FIXES_PLAN.md §4): views/seoLanding.ejs, and the car
   page's breadcrumb to those pages (views/listingDetails.ejs, .sl-crumbs--car).

   Every panel stays WHITE in both themes, like the site's cards (public/css/theme.css "cards stay white"), so the
   colours inside are literal light-surface colours, never theme tokens (FEATURE_BUILD_STANDARD §6.1). The page around
   them follows the theme (body.listings-page → navy gradient in dark mode). Spacing per §6.1: 8px between controls,
   12px text → control, 16px+ inset inside a panel, 44px tap targets, rows wrap instead of shrinking. */

.sl-main {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 24px 20px 48px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sl-panel {
    background: #ffffff;
    color: #0d1526;
    border: 1px solid #d0d4dc;
    border-radius: 12px;
    padding: 20px 24px;
    box-shadow: 0 2px 8px rgba(13, 21, 38, 0.06);
}

/* ── Breadcrumbs (landing pages and the car page) ── */
.sl-crumbs ol {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 8px;
    font-size: 13px;
    line-height: 1.4;
    color: #4a5270;
}
.sl-crumbs li { display: inline-flex; align-items: center; gap: 8px; min-width: 0; overflow-wrap: anywhere; }
.sl-crumbs li + li::before { content: "\203A"; color: #4a5270; }
.sl-crumbs a { color: #1d4ed8; text-decoration: underline; text-underline-offset: 3px; }
.sl-crumbs a:hover { color: #1e40af; }
.sl-crumbs a:focus-visible,
.sl-btn:focus-visible,
.sl-chip:focus-visible { outline: 3px solid #f5a623; outline-offset: 2px; }
.sl-crumbs [aria-current="page"] { color: #0d1526; font-weight: 600; }

.sl-crumbs--car {
    background: #ffffff;
    border: 1px solid #d0d4dc;
    border-radius: 10px;
    padding: 10px 14px;
    margin: 0 0 16px;
}

/* ── Intro ── */
.sl-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 28px;
    font-weight: 800;
    line-height: 1.2;
    color: #0d1526;
    margin: 12px 0 8px;
    overflow-wrap: anywhere;
}
.sl-intro .sl-title:first-child { margin-top: 0; }
.sl-lede { font-size: 16px; line-height: 1.5; color: #374151; margin: 0 0 12px; }
.sl-facts {
    list-style: none;
    margin: 0 0 16px;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.sl-facts li {
    background: #f4f5f7;
    border: 1px solid #e8eaee;
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 14px;
    line-height: 1.4;
    color: #1e2f52;
}

/* ── Buttons ── */
.sl-actions,
.sl-pager-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}
.sl-pager-row { justify-content: space-between; }
.sl-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 18px;
    border-radius: 8px;
    border: 1.5px solid #0d1526;
    background: #0d1526;
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}
.sl-btn:hover { background: #1e2f52; border-color: #1e2f52; color: #ffffff; }
.sl-btn--ghost { background: #ffffff; color: #0d1526; border-color: #6b7590; }
.sl-btn--ghost:hover { background: #f4f5f7; color: #0d1526; border-color: #1e2f52; }
.sl-page-note { font-size: 14px; color: #4a5270; }

/* ── Cars ── */
.sl-results { width: 100%; }
/* The shared card's town line (cardContainer.css .card-location, #a0a8b8 on white) measures 2.39:1 — under the 4.5:1
   floor on every page that shows cards. Raised here for these pages only (#4a5270, ~7.6:1); the site-wide card is a
   separate owner item (docs/BUYER_CONTACT_AND_TRAFFIC_FIXES_PLAN.md §4.6, layout findings). */
.sl-results .card-location { color: #4a5270; }

/* ── Related pages ── */
.sl-links-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
    color: #0d1526;
    margin: 0 0 12px;
}
.sl-chips + .sl-links-title { margin-top: 20px; }
.sl-chips {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.sl-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 44px;
    padding: 8px 14px;
    border: 1.5px solid #6b7590;
    border-radius: 999px;
    background: #ffffff;
    color: #0d1526;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    overflow-wrap: anywhere;
}
.sl-chip:hover { background: #f4f5f7; border-color: #1e2f52; color: #0d1526; }
.sl-chip-count { color: #4a5270; font-weight: 500; }

@media (max-width: 680px) {
    .sl-main { padding: 16px 12px 40px; gap: 16px; }
    .sl-panel { padding: 16px; }
    .sl-title { font-size: 22px; }
    .sl-crumbs a { display: inline-flex; align-items: center; min-height: 44px; }
    .sl-pager-row { justify-content: center; }
}
