/* ── Variables ─────────────────────────────────────────────── */
:root {
    /* Brand & Semantic Colors */
    --bs-blue: #3882F6;
    --bs-indigo: #1F3A5C;
    --bs-purple: #1F3A5C;
    --bs-pink: #FF8933;
    --bs-red: #EF4444;
    --bs-orange: #FF6B00;
    --bs-yellow: #FE9508;
    --bs-green: #22C55E;
    --bs-teal: #22C55E;
    --bs-cyan: #3882F6;
    --bs-black: #0B1F3A;
    --bs-white: #ffffff;
    --bs-gray: #4A5A6E;
    --bs-gray-dark: #1F3A5C;

    /* Gray Scale (mapped from design) */
    --bs-gray-100: #ffffff;
    --bs-gray-200: #F9FAFC;
    --bs-gray-300: #E6EEF9;
    --bs-gray-400: #CED2D8;
    --bs-gray-500: #4A5A6E;
    --bs-gray-600: #1F3A5C;
    --bs-gray-700: #0B1F3A;
    --bs-gray-800: #0B1F3A;
    --bs-gray-900: #0B1F3A;

    /* Theme Colors */
    --bs-primary: #0B1F3A;
    --bs-secondary: #FF6B00;
    --bs-success: #22C55E;
    --bs-info: #3882F6;
    --bs-warning: #FE9508;
    --bs-danger: #EF4444;
    --bs-light: #F9FAFC;
    --bs-dark: #0B1F3A;

    /* RGB values for opacity utilities */
    --bs-primary-rgb: 11, 31, 58;
    --bs-secondary-rgb: 255, 107, 0;
    --bs-success-rgb: 34, 197, 94;
    --bs-info-rgb: 56, 130, 246;
    --bs-warning-rgb: 254, 149, 8;
    --bs-danger-rgb: 239, 68, 68;
    --bs-light-rgb: 249, 250, 252;
    --bs-dark-rgb: 11, 31, 58;
    --bs-white-rgb: 255, 255, 255;
    --bs-black-rgb: 11, 31, 58;
    --bs-body-color-rgb: 11, 31, 58;
    --bs-body-bg-rgb: 255, 255, 255;

    /* Typography & Body */
    --bs-font-sans-serif: system-ui, -apple-system, 'Nunito Sans', "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    --bs-font-monospace: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    --bs-gradient: linear-gradient(180deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0));
    --bs-body-font-family: var(--bs-font-sans-serif);
    --bs-body-font-size: 1rem;
    --bs-body-font-weight: 400;
    --bs-body-line-height: 1.5;
    --bs-body-color: #0B1F3A;
    --bs-body-bg: #ffffff;

    /* Borders */
    --bs-border-width: 1px;
    --bs-border-style: solid;
    --bs-border-color: #CED2D8;
    --bs-border-color-translucent: rgba(206, 210, 216, 0.175);
    --bs-border-radius: 0.375rem;
    --bs-border-radius-sm: 0.25rem;
    --bs-border-radius-lg: 0.5rem;
    --bs-border-radius-xl: 1rem;
    --bs-border-radius-2xl: 2rem;
    --bs-border-radius-pill: 50rem;

    /* Links & Misc */
    --bs-link-color: #0B1F3A;
    --bs-link-hover-color: #1F3A5C;
    --bs-code-color: #FF6B00;
    --bs-highlight-bg: #FFF4EC;

    /* ── Header / Logo (configurable, no template edit needed) ─────
       Change the logo size here only. It scales responsively through
       the breakpoint overrides below. */
    --logo-size: 40px;          /* mobile (default) */
    --header-height: 64px;      /* navbar min height, keeps it stable when sticky */
}

/* Logo grows on larger screens — purely CSS, no markup changes */
@media (min-width: 768px) {
    :root {
        --logo-size: 48px;
        --header-height: 72px;
    }
}

@media (min-width: 992px) {
    :root {
        --logo-size: 56px;
        --header-height: 76px;
    }
}

body {
    font-family: 'Nunito Sans', sans-serif;
}

/* ── Sticky header ─────────────────────────────────────────── */
.site-navbar {
    position: sticky;
    top: 0;
    z-index: 1030;
    min-height: var(--header-height);
    backdrop-filter: saturate(1.2) blur(10px);
    background: rgba(255, 255, 255, 0.92) !important;
    border-bottom: 1px solid rgba(14, 32, 59, 0.06);
    box-shadow: 0 8px 28px rgba(11, 31, 58, 0.06);
}

.site-navbar .nav-item-link {
    transition: background .18s ease, color .18s ease;
}

.site-navbar .nav-item-link:hover,
.site-navbar .nav-item.dropdown.show > .nav-item-link {
    background: rgba(255, 101, 0, 0.08);
    color: var(--bs-secondary) !important;
}

.site-navbar .dropdown-menu {
    border-radius: 14px !important;
    padding: .55rem !important;
    margin-top: .55rem !important;
    box-shadow: 0 16px 40px rgba(11, 31, 58, 0.12) !important;
    border: 1px solid rgba(14, 32, 59, 0.06) !important;
}

.site-navbar .dropdown-item {
    border-radius: 10px;
    padding: .55rem .75rem;
    transition: background .15s ease;
}

.site-navbar .dropdown-item:hover {
    background: rgba(255, 101, 0, 0.08);
    color: var(--bs-secondary);
}

.site-navbar .mega-menu {
    min-width: min(640px, 92vw);
}

.site-nav-cta {
    box-shadow: 0 6px 16px rgba(255, 101, 0, 0.28);
    transition: transform .15s ease, box-shadow .15s ease;
}

.site-nav-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(255, 101, 0, 0.34);
}

.publish-gate {
    background:
        radial-gradient(ellipse at top right, color-mix(in srgb, var(--brand-primary, #ff6500) 10%, transparent), transparent 45%),
        linear-gradient(180deg, #f7f9fc 0%, #fff 60%);
}

.publish-gate-kicker {
    text-transform: uppercase;
    letter-spacing: .12em;
    font-size: .72rem;
    font-weight: 800;
    color: var(--brand-primary, var(--motsoa-orange, #ff6500)) !important;
    margin: 0 0 .65rem;
}

.publish-gate-title {
    font-weight: 800 !important;
    font-size: clamp(1.7rem, 3.5vw, 2.4rem) !important;
    color: var(--chrome, var(--brand-secondary, #0b1f3a)) !important;
    margin: 0 0 .65rem !important;
    line-height: 1.15;
}

.publish-gate-lead {
    max-width: 520px;
    margin: 0 auto !important;
    color: #5a6575 !important;
    font-size: 1rem;
    line-height: 1.55;
}

.publish-gate-footer-link {
    font-size: .9rem;
    font-weight: 700;
    color: var(--chrome, var(--brand-secondary, #0b1f3a)) !important;
    text-decoration: none !important;
}

.publish-gate-footer-link:hover {
    color: var(--brand-primary, var(--motsoa-orange, #ff6500)) !important;
}

.publish-choice-card {
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
    border-color: rgba(14, 32, 59, 0.1) !important;
    box-shadow: 0 8px 24px rgba(11, 31, 58, 0.05);
}

.publish-choice-card-dark {
    background: #0c0c0e !important;
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    box-shadow: 0 22px 48px rgba(8, 12, 20, 0.18) !important;
}

.publish-choice-card-dark .material-symbols-outlined {
    color: rgba(255, 255, 255, 0.9);
}

.publish-choice-card-dark h2 {
    color: #fff !important;
}

.publish-choice-desc {
    color: rgba(255, 255, 255, 0.62) !important;
}

.publish-choice-cta {
    color: #fff !important;
}

.publish-choice-card:hover {
    transform: translateY(-4px);
    border-color: color-mix(in srgb, var(--brand-primary, #ff6500) 45%, transparent) !important;
    box-shadow: 0 16px 36px rgba(11, 31, 58, 0.1);
}

.publish-choice-card-dark:hover {
    border-color: color-mix(in srgb, var(--brand-primary, #ff6500) 55%, transparent) !important;
    box-shadow: 0 28px 56px rgba(8, 12, 20, 0.28) !important;
}

/* Support chat widget — fixed bottom-right FAB (never full-bleed under footer) */
.support-chat-root {
    position: fixed !important;
    right: 1.1rem !important;
    bottom: 1.1rem !important;
    left: auto !important;
    top: auto !important;
    z-index: 1080 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-end !important;
    gap: .75rem !important;
    width: auto !important;
    max-width: calc(100vw - 1.5rem) !important;
    pointer-events: none;
}

.support-chat-fab {
    width: 56px !important;
    height: 56px !important;
    flex: 0 0 56px !important;
    background: var(--brand-primary, var(--motsoa-orange, #FF6500)) !important;
    color: #fff !important;
    box-shadow: 0 10px 28px color-mix(in srgb, var(--brand-primary, #FF6500) 45%, transparent) !important;
    pointer-events: auto !important;
}

.support-chat-panel {
    width: min(360px, calc(100vw - 1.5rem)) !important;
    max-width: 360px !important;
    height: min(480px, calc(100vh - 7rem)) !important;
    flex: 0 0 auto !important;
    pointer-events: auto !important;
}

.support-chat-header {
    background: var(--chrome, var(--brand-secondary, #0E203B));
}

.support-chat-body {
    background: #fff;
}

.support-bubble {
    max-width: 88%;
    padding: .55rem .75rem;
    border-radius: 14px;
    font-size: .85rem;
    line-height: 1.35;
}

.support-bubble--user {
    margin-left: auto;
    background: #fff;
    border: 1px solid rgba(14, 32, 59, 0.08);
}

.support-bubble--staff {
    margin-right: auto;
    background: rgba(255, 101, 0, 0.12);
    border: 1px solid rgba(255, 101, 0, 0.18);
}

/* Vehicle detail polish */
.detail-hero-gallery {
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(11, 31, 58, 0.08);
}

/* ── Responsive, configurable logo ─────────────────────────── */
.navbar-logo {
    height: var(--logo-size);
    width: var(--logo-size);
    object-fit: contain;
    transition: height .2s ease, width .2s ease;
}

/* ── Utility aliases ───────────────────────────────────────── */
.bg-secondary-light {
    background-color: var(--bs-highlight-bg) !important;
}

/* Single brand accent — keeps every accent badge on one orange (#FF6B00). */
.bg-orange {
    background-color: var(--bs-secondary) !important;
    color: #fff !important;
}

.border-secondary {
    border-color: var(--bs-secondary) !important;
}

/* ── Champ mot de passe : œil + validation live ────────────── */
.pw-field {
    position: relative;
}

.pw-field input {
    padding-right: 2.6rem;
}

.pw-toggle {
    position: absolute;
    top: 50%;
    right: .6rem;
    transform: translateY(-50%);
    display: flex;
    cursor: pointer;
    color: var(--bs-gray);
    user-select: none;
}

.pw-toggle:hover {
    color: var(--bs-secondary);
}

.pw-toggle .material-symbols-outlined {
    font-size: 20px;
}

.pw-rules {
    display: flex;
    flex-direction: column;
    gap: .15rem;
}

.pw-rule {
    display: flex;
    align-items: center;
    gap: .35rem;
    font-size: .78rem;
    color: var(--bs-gray);
}

.pw-rule .material-symbols-outlined {
    font-size: 16px;
}

.pw-rule.ok {
    color: var(--bs-success);
}

.pw-rule.bad {
    color: var(--bs-danger);
}

/* ── Bascule liste / grille des résultats ──────────────────── */
.view-toggle .btn.active {
    background: var(--bs-secondary) !important;
    border-color: var(--bs-secondary) !important;
    color: #fff !important;
}

/* List mode: each card becomes a full-width horizontal row (card-agnostic:
   works for both vehicle and part cards = an <a> with a .position-relative
   image followed by the content block). */
.row.view-list > [class*="col-"] {
    flex: 0 0 100%;
    max-width: 100%;
    width: 100%;
}

/* mobile.de list box: image (+ thumbnail strip) left, info right, full-width
   seller footer below. ``!important`` beats Bootstrap's ``.d-block``. */
.row.view-list .listing-card {
    display: grid !important;
    grid-template-columns: minmax(140px, 280px) minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    grid-template-areas:
        "img    body"
        "thumbs body"
        "seller seller";
    align-items: stretch;
    width: 100%;
}

.row.view-list .listing-card > .position-relative,
.row.view-list .listing-card > .listing-media {
    grid-area: img;
}

.row.view-list .listing-card > .listing-thumbs {
    grid-area: thumbs;
    display: flex;
    gap: .35rem;
    padding: .4rem .4rem 0;
}

.row.view-list .listing-card > .listing-body {
    grid-area: body;
    min-width: 0;
}

.row.view-list .listing-card > .listing-seller {
    grid-area: seller;
}

.row.view-list .listing-card > .position-relative img,
.row.view-list .listing-card > .position-relative > div,
.row.view-list .listing-card > .listing-media img,
.row.view-list .listing-card .listing-img {
    height: 100% !important;
    min-height: 180px;
    max-height: none;
    object-fit: cover;
}

/* Thumbnail strip is list-only. */
.listing-thumbs {
    display: none;
}

.listing-thumbs img {
    width: 33%;
    max-width: 92px;
    height: 46px;
    object-fit: cover;
    border-radius: .3rem;
    border: 1px solid var(--bs-border-color);
}

@media (max-width: 767.98px) {
    /* Stack vertically on small screens for readability. */
    .row.view-list .listing-card {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        grid-template-areas:
            "img"
            "thumbs"
            "body"
            "seller";
    }

    .row.view-list .listing-card .listing-img {
        min-height: 200px;
        max-height: 240px;
        height: 220px !important;
    }
}

/* Flex helper so text-truncate works inside flex children. */
.min-w-0 {
    min-width: 0;
}

/* ── Listing card (grid + list, mobile.de style) ───────────── */
.listing-photo-count {
    position: absolute;
    bottom: 8px;
    left: 8px;
    background: rgba(0, 0, 0, .6);
    color: #fff;
    font-size: .68rem;
    font-weight: 600;
    padding: .1rem .45rem;
    border-radius: 1rem;
}

.listing-specs {
    gap: .25rem .85rem;
    font-size: .75rem;
}

.listing-specs span {
    display: inline-flex;
    align-items: center;
    gap: .2rem;
    white-space: nowrap;
}

.listing-specs span .material-symbols-outlined {
    font-size: 14px;
}

/* Seller footer: hidden in the grid, full-width bar in the list view. */
.listing-seller {
    display: none;
    align-items: center;
    gap: .65rem;
    padding: .65rem 1rem;
    border-top: 1px solid var(--bs-border-color);
    background: var(--bs-tertiary-bg, #f8f9fa);
    flex-wrap: wrap;
}

.listing-seller-ava {
    width: 40px;
    height: 40px;
    border-radius: .4rem;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid var(--bs-border-color);
    background: #fff;
    color: var(--bs-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.listing-seller-ava img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.listing-contact-btn {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    flex-shrink: 0;
    border: 1.5px solid var(--bs-secondary);
    color: var(--bs-secondary);
    border-radius: .5rem;
    font-size: .78rem;
    font-weight: 700;
    padding: .35rem .8rem;
    text-decoration: none;
    transition: background-color .12s, color .12s;
}

.listing-card:hover .listing-contact-btn {
    background: var(--bs-secondary);
    color: #fff;
}

.view-list .listing-seller {
    display: flex;
}

.view-list .listing-loc {
    display: none;
}

.listing-seller-actions {
    display: flex;
    align-items: center;
    gap: .45rem;
    flex-shrink: 0;
    margin-left: auto;
}

.listing-park-btn {
    width: auto !important;
    white-space: nowrap;
    font-size: .78rem !important;
    font-weight: 700 !important;
    padding: .35rem .75rem !important;
}

/* ── Messagerie : vrai chat (pas un fil de commentaires) ───── */
.chat-card {
    display: flex;
    flex-direction: column;
    height: 72vh;
    min-height: 420px;
    border: 1px solid var(--bs-border-color);
    border-radius: 1rem;
    overflow: hidden;
    background: #fff;
}

.chat-header {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .85rem 1rem;
    border-bottom: 1px solid var(--bs-border-color);
    background: #fff;
}

.chat-thread {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 1rem;
    background: #f5f6f8;
    display: flex;
    flex-direction: column;
    gap: .25rem;
}

.chat-row {
    display: flex;
    align-items: flex-end;
    gap: .5rem;
    max-width: 78%;
}

.chat-row--me {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.chat-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bs-highlight-bg);
    color: var(--bs-secondary);
    font-size: .7rem;
    font-weight: 700;
    overflow: hidden;
}

.chat-bubble {
    padding: .3rem .6rem;
    border-radius: .85rem;
    font-size: .82rem;
    line-height: 1.3;
    /* Compact bubbles that still show the whole message: they hug short text
       and grow (wrapping) for longer messages — never truncated. */
    white-space: pre-wrap;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.chat-bubble--them {
    background: #fff;
    border: 1px solid var(--bs-border-color);
    border-bottom-left-radius: .35rem;
}

.chat-bubble--me {
    background: var(--bs-secondary);
    color: #fff;
    border-bottom-right-radius: .35rem;
}

.chat-meta {
    font-size: .58rem;
    opacity: .7;
    margin-top: .1rem;
    text-align: right;
}

.chat-composer {
    display: flex;
    align-items: flex-end;
    gap: .5rem;
    padding: .6rem .75rem;
    border-top: 1px solid var(--bs-border-color);
    background: #fff;
}

.chat-composer textarea {
    resize: none;
    border-radius: 1.25rem;
    max-height: 120px;
}

.chat-send {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

/* ── Material Symbols ──────────────────────────────────────── */
.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    vertical-align: middle;
    line-height: 1;
}

/* ── Buttons ───────────────────────────────────────────────── */
.btn-primary,
.btn-blue {
    background-color: var(--bs-primary);
    color: #fff;
    border: none;
}

.btn-primary:hover,
.btn-blue:hover {
    background-color: var(--bs-indigo);
    color: #fff;
}

.btn-secondary,
.btn-orange {
    background-color: var(--bs-secondary);
    color: #fff;
    border: none;
}

.btn-secondary:hover,
.btn-orange:hover {
    background-color: var(--bs-pink);
    color: #fff;
}

.btn-outline {
    border: 1.5px solid var(--bs-border-color);
    background: transparent;
    color: var(--bs-body-color);
}

.btn-outline:hover {
    border-color: var(--bs-secondary);
    background: var(--bs-highlight-bg);
    color: var(--bs-body-color);
}

/* ── Navbar active link ────────────────────────────────────── */
.nav-item-link.active {
    color: var(--bs-secondary) !important;
}

.nav-item-link:hover {
    background: var(--bs-body-bg);
}

/* ── Hover lift (cards) ────────────────────────────────────── */
.card-lift {
    transition: transform .2s, box-shadow .2s;
}

.card-lift:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 28px rgba(0, 0, 0, .12) !important;
}

/* ── Footer links ──────────────────────────────────────────── */
.footer-link {
    color: rgba(255, 255, 255, .6);
    text-decoration: none;
    font-size: .8rem;
}

.footer-link:hover {
    color: var(--bs-secondary);
}

.footer-link-bottom {
    color: rgba(255, 255, 255, .4);
    text-decoration: none;
}

.footer-link-bottom:hover {
    color: var(--bs-secondary);
}

.footer-social a {
    width: 34px;
    height: 34px;
    background: rgba(255, 255, 255, .08);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s;
}

.footer-social a:hover {
    background: var(--bs-secondary);
}

/* ── Hero ──────────────────────────────────────────────────── */
.hero-section {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(1100px 480px at 6% -12%, color-mix(in srgb, var(--brand-primary, #ff6500) 18%, transparent), transparent 60%),
        radial-gradient(860px 600px at 112% 120%, color-mix(in srgb, var(--brand-primary, #ff6500) 14%, transparent), transparent 55%),
        linear-gradient(
          135deg,
          color-mix(in srgb, var(--chrome, #0A1C35) 92%, #000) 0%,
          var(--chrome, #142B4D) 46%,
          color-mix(in srgb, var(--chrome, #20406A) 78%, #fff) 100%
        );
}

/* Soft automotive line-art texture (gear · car · tyre · bolt), fading out toward
   the bottom so it stays subtle and never looks busy. Tiled SVG → crisp at any
   viewport width (responsive). */
.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("../images/hero-pattern.951aebb18e5d.svg") repeat;
    background-size: 300px 300px;
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 60%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 0%, #000 60%, transparent 100%);
    pointer-events: none;
}

/* On small screens the motif scales down a touch so it reads as fine texture,
   matching the compact mobile hero (mobile.de style). */
@media (max-width: 575.98px) {
    .hero-section::before {
        background-size: 210px 210px;
    }
}

/* Soft glow ring around the sponsored carousel area for extra depth */
.hero-section::after {
    content: '';
    position: absolute;
    top: -20%;
    left: -8%;
    width: 46%;
    height: 140%;
    background: radial-gradient(closest-side, rgba(56, 130, 246, .2), transparent 70%);
    pointer-events: none;
}

/* ── Hero search card ──────────────────────────────────────── */
.search-tabs {
    overflow-x: auto;
    scrollbar-width: none;
    /* Firefox */
}

.search-tabs::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

.hero-headline {
    font-size: 1.9rem;
    font-weight: 800;
    line-height: 1.18;
    letter-spacing: -.5px;
}

@media (min-width: 992px) {
    .hero-headline {
        font-size: 2.15rem;
    }
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .4px;
    color: #fff;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .18);
    padding: .3rem .7rem;
    border-radius: 50rem;
}

.hero-eyebrow .material-symbols-outlined {
    font-size: 15px;
    color: var(--bs-secondary);
}

.hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.4rem;
    font-size: .8rem;
    color: rgba(255, 255, 255, .82);
}

.hero-trust span {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
}

.hero-trust .material-symbols-outlined {
    font-size: 17px;
    color: var(--bs-success);
}

/* ── Search card tabs ──────────────────────────────────────── */
.search-tab {
    border-radius: 8px 8px 0 0 !important;
    border: none;
}

.search-tab.active {
    background: #fff !important;
    color: var(--bs-secondary) !important;
}

.search-tab:hover:not(.active) {
    background: #e2e5ea !important;
}

/* ── Search card: vertical rail layout (mobile.de style) ───── */
.search-layout {
    display: flex;
    align-items: stretch;
}

.search-rail {
    display: flex;
    flex-direction: column;
    flex: 0 0 auto;
    background: #f0f2f5;
}

.search-rail .search-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    width: 86px;
    padding: 14px 6px;
    border: none;
    border-left: 3px solid transparent;
    border-radius: 0 !important;
    background: transparent;
    color: var(--bs-gray-600);
    font-size: .7rem;
    font-weight: 600;
    cursor: pointer;
}

.search-rail .search-tab .material-symbols-outlined {
    font-size: 24px;
}

.search-rail .search-tab.active {
    background: #fff !important;
    color: var(--bs-secondary) !important;
    border-left-color: var(--bs-secondary);
}

.search-body {
    flex: 1 1 auto;
    min-width: 0;
}

@media (max-width: 575.98px) {
    .search-layout {
        flex-direction: column;
    }

    .search-rail {
        flex-direction: row;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .search-rail::-webkit-scrollbar {
        display: none;
    }

    .search-rail .search-tab {
        width: auto;
        flex: 1 0 auto;
        border-left: none;
        border-bottom: 3px solid transparent;
    }

    .search-rail .search-tab.active {
        border-left-color: transparent;
        border-bottom-color: var(--bs-secondary);
    }
}

/* ── Search type pills ─────────────────────────────────────── */
.search-type-btn {
    background: #f0f2f5;
    border: 1.5px solid transparent;
    color: var(--bs-gray);
}

.search-type-btn.active {
    background: var(--bs-secondary) !important;
    border-color: var(--bs-secondary) !important;
    color: #fff !important;
}

.search-type-btn:hover:not(.active) {
    border-color: var(--bs-secondary);
    color: var(--bs-secondary) !important;
}

/* ── Category card hover ───────────────────────────────────── */
.category-card {
    transition: border-color .2s, color .2s, transform .2s, box-shadow .2s;
}

.category-card:hover {
    border-color: var(--bs-secondary) !important;
    color: var(--bs-secondary) !important;
}

.cat-icon {
    transition: background .15s, color .15s;
}

.category-card:hover .cat-icon {
    background: var(--bs-secondary) !important;
    color: #fff !important;
}

/* ── Listing favourite button ──────────────────────────────── */
.listing-fav {
    position: absolute;
    top: 10px;
    right: 10px;
    border: none;
    border-radius: 50%;
    width: 34px;
    height: 34px;
    background: rgba(255, 255, 255, .9);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.listing-fav:hover {
    background: #fff;
}

.listing-fav .material-symbols-outlined {
    font-size: 20px;
    color: var(--bs-gray);
}

.listing-fav:hover .material-symbols-outlined {
    color: var(--bs-secondary);
}

.listing-fav.is-saved .material-symbols-outlined {
    color: var(--bs-secondary);
    font-variation-settings: 'FILL' 1, 'wght' 400;
}

/* ── Brand pill hover ──────────────────────────────────────── */
.brand-pill {
    transition: border-color .15s, color .15s, background .15s;
}

.brand-pill:hover {
    border-color: var(--bs-secondary) !important;
    color: var(--bs-secondary) !important;
    background: var(--bs-secondary-light) !important;
}

/* ── Seller card hover ─────────────────────────────────────── */
.seller-card {
    transition: border-color .2s, box-shadow .2s;
}

.seller-card:hover {
    border-color: var(--bs-secondary) !important;
    box-shadow: 0 4px 20px rgba(255, 102, 0, .1);
}

/* ── Dashboard sidebar nav links ────────────────────────────── */
.dash-nav-link {
    color: var(--bs-body-color);
    transition: background .15s, color .15s;
}

.dash-nav-link:hover {
    background: var(--bs-gray-200);
    color: var(--bs-body-color);
}

.dash-nav-link--active {
    background: color-mix(in srgb, var(--motsoa-orange, var(--bs-secondary)) 16%, var(--surface, #fff)) !important;
    color: var(--motsoa-orange, var(--bs-secondary)) !important;
}

.dash-nav-link--active .material-symbols-outlined {
    color: var(--motsoa-orange, var(--bs-secondary));
}

.dash-nav-link--danger {
    color: var(--bs-danger) !important;
}

.dash-nav-link--danger:hover {
    background: rgba(239, 68, 68, .08) !important;
}

/* ── Mobile pill strip ──────────────────────────────────────── */
.dash-mobile-pill {
    background: var(--bs-gray-200);
    border: 1.5px solid transparent;
    color: var(--bs-body-color);
}

.dash-mobile-pill:hover,
.dash-mobile-pill-active {
    background: var(--bs-highlight-bg) !important;
    border-color: var(--bs-secondary) !important;
    color: var(--bs-secondary) !important;
}

.tab-active {
    background: var(--bs-highlight-bg);
    color: var(--bs-secondary) !important;
    border: 1px solid transparent;
}

.tab-inactive {
    background: transparent;
    color: var(--bs-body-color);
}

.tab-inactive:hover {
    background: var(--bs-gray-200);
}

/* ── Featured carousel slides (mobile.de-inspired) ─────────── */
.slide-vehicle {
    position: relative;
    cursor: pointer;
    /* Banner-like ratio, but the photo is shown in full (contain) over a
       blurred backdrop, so it is never cropped or stretched. */
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--chrome, #0B1F3A);
}

@media (max-width: 575.98px) {
    .slide-vehicle {
        /* Matches the 4:3 demo photos on phones → edge-to-edge, no letterbox */
        aspect-ratio: 4 / 3;
    }
}

/* Blurred, dimmed copy of the photo fills the empty letterbox space. */
.slide-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: blur(28px) brightness(.55) saturate(1.1);
    transform: scale(1.18);
}

.slide-img {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform .5s ease;
}

.slide-vehicle:hover .slide-img {
    transform: scale(1.03);
}

/* Keep badge & overlay above the contained image */
.slide-badge,
.slide-overlay {
    z-index: 2;
}

/* Keep arrows & indicators clickable above the slide's stretched link.
   Narrow the controls to just the arrow zone so they no longer overlap the
   title/CTA (otherwise a click on "Voir les détails" hits the next-arrow strip
   and scrolls the carousel instead of opening the listing). */
#sponsoredCarousel .carousel-control-prev,
#sponsoredCarousel .carousel-control-next,
#sponsoredCarousel .carousel-indicators {
    z-index: 5;
}

#sponsoredCarousel .carousel-control-prev,
#sponsoredCarousel .carousel-control-next {
    width: 64px;
}

/* The CTA is a real link; lift it above the controls so it is always clickable
   and leads to the listing detail (see SponsoredSlide.target_url). */
.slide-cta {
    position: relative;
    z-index: 6;
    text-decoration: none;
}

.slide-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: var(--bs-secondary);
    color: #fff;
    font-size: .66rem;
    font-weight: 700;
    letter-spacing: .3px;
    padding: .35rem .6rem;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .25);
}

.slide-overlay {
    position: absolute;
    inset: auto 0 0 0;
    padding: 3rem 1.25rem 1.15rem;
    color: #fff;
    background: linear-gradient(to top,
            rgba(11, 31, 58, .95) 0%,
            rgba(11, 31, 58, .8) 42%,
            rgba(11, 31, 58, 0) 100%);
}

.slide-title {
    font-size: 1.12rem;
    font-weight: 800;
    line-height: 1.25;
    margin: 0 0 .6rem;
}

.slide-specs {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    margin-bottom: .9rem;
}

.slide-specs>span {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    font-size: .72rem;
    font-weight: 600;
    padding: .22rem .55rem;
    border-radius: 50rem;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .18);
}

.slide-specs .material-symbols-outlined {
    font-size: 14px;
    color: var(--bs-secondary);
}

.slide-foot {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: .75rem;
    border-top: 1px solid rgba(255, 255, 255, .14);
    padding-top: .8rem;
}

.slide-foot-info {
    display: flex;
    flex-direction: column;
    gap: .3rem;
    min-width: 0;
}

.slide-cta {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    flex-shrink: 0;
    font-size: .78rem;
    font-weight: 700;
    color: #fff;
    background: var(--bs-secondary);
    padding: .45rem .85rem;
    border-radius: 50rem;
    box-shadow: 0 4px 14px rgba(255, 107, 0, .4);
    transition: background .15s ease, transform .2s ease;
}

.slide-cta .material-symbols-outlined {
    font-size: 16px;
    transition: transform .2s ease;
}

.slide-vehicle:hover .slide-cta {
    background: var(--bs-pink);
}

.slide-vehicle:hover .slide-cta .material-symbols-outlined {
    transform: translateX(3px);
}

.slide-loc {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    font-size: .78rem;
    color: rgba(255, 255, 255, .82);
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.slide-loc .material-symbols-outlined {
    font-size: 15px;
    color: rgba(255, 255, 255, .7);
}

.slide-price {
    font-size: 1.18rem;
    font-weight: 800;
    color: #fff;
    white-space: nowrap;
}

/* Indicators moved to top-right so they never clash with the info panel */
#sponsoredCarousel .carousel-indicators {
    top: 14px;
    right: 12px;
    bottom: auto;
    left: auto;
    margin: 0;
    justify-content: flex-end;
}

#sponsoredCarousel .carousel-indicators [data-bs-target] {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    border: 0;
    opacity: .5;
}

#sponsoredCarousel .carousel-indicators .active {
    opacity: 1;
    background: #fff;
}

/* ── Global refinements (épuration) ────────────────────────── */
.card-lift {
    border-color: #edf0f4 !important;
}

/* Light grey backdrop on the search results pages so the white listing blocks
   (and the filter panel) clearly stand out — mobile.de style. */
.results-bg {
    background: var(--background, #f4f6f9);
}

/* Distinct, MOTSOA-branded listing blocks (grid + list): each card reads as
   its own block thanks to a resting border + soft navy-tinted shadow, and the
   accent (orange) border on hover. */
.listing-card {
    background: #fff;
    border-color: #dfe5ec !important;
    box-shadow: 0 1px 3px rgba(11, 31, 58, .07);
    transition: transform .2s, box-shadow .2s, border-color .2s;
}

.listing-card:hover {
    border-color: var(--bs-secondary) !important;
}

.listing-card img,
a.card-lift img {
    transition: transform .45s ease;
}

.listing-card:hover img,
a.card-lift:hover img {
    transform: scale(1.045);
}

/* ── WhatsApp contact button ───────────────────────────────── */
.btn-whatsapp {
    background: #25D366;
    color: #fff;
    border: none;
}

.btn-whatsapp:hover,
.btn-whatsapp:focus {
    background: #1da851;
    color: #fff;
}

.btn-whatsapp svg {
    flex-shrink: 0;
}

/* ── Google sign-in button + divider ───────────────────────── */
.google-btn {
    background: #fff;
    border: 1px solid var(--bs-border-color);
    color: var(--bs-primary);
}

.google-btn:hover,
.google-btn:focus {
    background: #f6f8fb;
    color: var(--bs-primary);
    border-color: #c9d3e0;
}

.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--bs-gray-500);
    font-size: .8rem;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--bs-border-color);
}

.auth-divider span {
    padding: 0 .75rem;
}

/* ── Footer logo (responsive) ──────────────────────────────── */
.footer-logo {
    width: 160px;
    max-width: 100%;
    height: auto;
}

/* ── Hero (full-bleed banner + overlapping search — mobile.de / vw.de) ── */
.hero-mdde {
    position: relative;
    background: var(--chrome, #0B1F3A);
}

.hero-slide {
    position: relative;
    height: clamp(420px, 58vh, 580px);
    overflow: hidden;
}

@media (max-width: 991.98px) {
    .hero-slide {
        height: clamp(460px, 70vh, 560px);
    }
}

@media (max-width: 575.98px) {
    .hero-slide {
        height: auto;
        min-height: 420px;
    }
}

.hero-slide-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

/* Dark wash: readable copy on the left + bottom room for the search card */
.hero-slide-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(8, 22, 42, .88) 0%, rgba(8, 22, 42, .55) 42%, rgba(8, 22, 42, .2) 70%, rgba(8, 22, 42, .35) 100%),
        linear-gradient(0deg, rgba(8, 22, 42, .75) 0%, rgba(8, 22, 42, .25) 28%, transparent 55%);
}

.hero-slide>.container-xl {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: stretch;
    justify-content: stretch;
    pointer-events: none;
}

.hero-slide-split {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
    width: 100%;
    align-items: end;
    gap: 1.5rem 2rem;
    padding: 2.25rem 0 6.5rem;
    pointer-events: none;
}

.hero-slide-content {
    max-width: 34rem;
    color: #fff;
    padding-bottom: 0;
    pointer-events: auto;
}

.hero-slide-content--left {
    text-align: left;
    justify-self: start;
}

.hero-slide-content--left .hero-slide-subtitle {
    margin-left: 0;
    max-width: 28rem;
}

.hero-featured-card {
    justify-self: end;
    width: 100%;
    max-width: 360px;
    color: #fff;
    pointer-events: auto;
    padding: 1.15rem 1.25rem 1.25rem;
    border-radius: 1rem;
    background: rgba(8, 22, 42, .78);
    border: 1px solid rgba(255, 255, 255, .18);
    backdrop-filter: blur(10px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, .28);
    text-align: left;
}

.hero-featured-card .hero-slide-specs {
    justify-content: flex-start;
}

.hero-featured-card .hero-slide-cta {
    margin-left: 0;
}

.hero-slide-title--sm {
    font-size: clamp(1.1rem, 2.2vw, 1.45rem) !important;
    margin: .55rem 0 .5rem !important;
}

.hero-slide-eyebrow--star {
    width: 2rem;
    height: 2rem;
    padding: 0;
    justify-content: center;
    border-radius: 999px;
}

.hero-slide-eyebrow--star .material-symbols-outlined {
    font-size: 1.1rem;
    color: var(--brand-primary, var(--motsoa-orange, #FF6500));
}

.hero-slide-subtitle {
    color: rgba(255, 255, 255, .88);
    font-size: .95rem;
    line-height: 1.45;
    max-width: 34rem;
}

.btn-outline-light.hero-slide-cta {
    border: 1.5px solid rgba(255, 255, 255, .85);
    color: #fff;
    background: rgba(255, 255, 255, .08);
}

.btn-outline-light.hero-slide-cta:hover {
    background: #fff;
    color: var(--chrome, var(--brand-secondary, #0B1A2E));
}

.ad-star-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.55rem;
    height: 1.55rem;
    border-radius: .4rem;
    background: color-mix(in srgb, var(--brand-primary, #FF6500) 12%, transparent);
    color: var(--brand-primary, var(--motsoa-orange, #FF6500));
    border: 1px solid color-mix(in srgb, var(--brand-primary, #FF6500) 28%, transparent);
}

.ad-star-badge .material-symbols-outlined {
    font-size: 1rem;
    line-height: 1;
}

.listing-boost-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.7rem;
    height: 1.7rem;
    border-radius: .45rem;
    background: var(--brand-primary, var(--motsoa-orange, #FF6500));
    color: #fff;
    box-shadow: 0 2px 8px rgba(255, 101, 0, .35);
}

.listing-boost-badge .material-symbols-outlined {
    font-size: 1rem;
}

.hero-search-submit {
    gap: .5rem !important;
}

.hero-search-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.75rem;
    height: 1.45rem;
    padding: 0 .45rem;
    border-radius: .4rem;
    background: #fff;
    color: var(--bs-secondary);
    font-size: .75rem;
    font-weight: 800;
    line-height: 1;
}

.listing-card-head {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: .35rem;
}

.listing-title {
    font-size: 1.05rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
    color: inherit;
}

.listing-sub {
    font-size: .8rem;
    line-height: 1.35;
}

.listing-price {
    margin: 0;
    max-width: 100%;
    text-align: left;
    font-size: clamp(1.05rem, 2.2vw, 1.35rem);
    line-height: 1.2;
    font-weight: 800;
    color: var(--bs-secondary);
    white-space: nowrap;
    word-break: keep-all;
    overflow: hidden;
    text-overflow: ellipsis;
}

.listing-price-value {
    white-space: nowrap;
}

.listing-price-unit {
    display: inline;
    font-size: .72rem;
    font-weight: 700;
    opacity: .85;
    margin-left: .15rem;
}

.listing-specs-line {
    font-size: .8rem;
    line-height: 1.45;
    margin: 0;
}

.listing-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: .2rem;
}

.listing-features li {
    display: flex;
    align-items: center;
    gap: .35rem;
    font-size: .78rem;
    color: var(--motsoa-navy, #0e203b);
    line-height: 1.3;
}

.listing-features .material-symbols-outlined {
    font-size: 16px;
    color: var(--bs-secondary);
    flex-shrink: 0;
}

.listing-seller-badge {
    max-width: 100%;
    white-space: nowrap;
}

.listing-media {
    background: #e8edf3;
}

.listing-media .listing-img {
    display: block;
    width: 100%;
    height: 190px;
    object-fit: cover;
}

.listing-card-v2 {
    display: flex;
    flex-direction: column;
}

.listing-card--premium {
    border-color: color-mix(in srgb, var(--bs-secondary) 55%, #dfe5ec) !important;
    box-shadow: 0 8px 22px rgba(11, 31, 58, .12);
}

.listing-col-premium + .listing-col-premium {
    margin-top: .35rem;
}

.row.view-list .listing-col-premium + .listing-col-premium {
    margin-top: .85rem;
}

.parts-empty {
    border: 1px dashed #d5dde8;
    border-radius: 1rem;
    background: linear-gradient(180deg, #fff 0%, #f7fafc 100%);
    padding: 2.5rem 1.25rem;
}

@media (max-width: 575.98px) {
    .listing-price {
        font-size: 1.15rem;
        white-space: nowrap;
    }

    .listing-seller-actions {
        width: 100%;
        margin-left: 0;
        justify-content: stretch;
    }

    .listing-seller-actions .listing-contact-btn,
    .listing-seller-actions .listing-park-btn {
        flex: 1 1 auto;
        justify-content: center;
    }
}

@media (max-width: 991.98px) {
    .hero-slide-split {
        grid-template-columns: 1fr;
        align-items: end;
        padding: 1.5rem 0 5.75rem;
        gap: 1rem;
    }

    .hero-featured-card {
        justify-self: start;
        max-width: 100%;
    }
}

@media (max-width: 575.98px) {
    .hero-slide-content {
        max-width: 100%;
    }

    .hero-slide-split {
        padding: 1.25rem 0 5.25rem;
    }
}

.hero-slide-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
    color: #fff;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .22);
    padding: .3rem .7rem;
    border-radius: 50rem;
    pointer-events: auto;
}

.hero-slide-eyebrow .material-symbols-outlined {
    font-size: 14px;
    color: var(--bs-secondary);
}

.hero-slide-title {
    font-size: clamp(1.6rem, 3.4vw, 2.7rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -.5px;
    margin: .9rem 0 .85rem;
    text-shadow: 0 2px 20px rgba(0, 0, 0, .35);
}

.hero-slide-lead {
    font-size: clamp(.9rem, 1.5vw, 1.05rem);
    color: rgba(255, 255, 255, .85);
    max-width: 480px;
    margin-bottom: 1.1rem;
    text-shadow: 0 1px 12px rgba(0, 0, 0, .3);
}

.hero-slide-specs {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    margin-bottom: .85rem;
}

.hero-slide-specs>span {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    font-size: .75rem;
    font-weight: 600;
    padding: .25rem .6rem;
    border-radius: 50rem;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .22);
}

.hero-slide-specs .material-symbols-outlined {
    font-size: 15px;
    color: var(--bs-secondary);
}

.hero-slide-price {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.hero-slide-cta {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    pointer-events: auto;
}

.hero-slide-cta .material-symbols-outlined {
    font-size: 18px;
}

/* Empty-state fallback (no live slides) */
.hero-slide--empty {
    background: radial-gradient(900px 400px at 12% -10%, rgba(56, 130, 246, .25), transparent 60%),
        linear-gradient(135deg, #0A1C35 0%, #142B4D 55%, #20406A 100%);
}

/* Indicators & arrows lifted above the overlapping search card */
.hero-indicators {
    bottom: 92px;
}

@media (max-width: 575.98px) {
    .hero-indicators {
        bottom: 72px;
    }
}

#sponsoredCarousel .carousel-control-prev,
#sponsoredCarousel .carousel-control-next {
    width: 48px;
    z-index: 4;
    top: 42%;
    bottom: auto;
    height: 48px;
}

/* Overlapping white search card — fully visible, not clipped by the banner */
.hero-search-card {
    position: relative;
    z-index: 5;
    background: #fff;
    border-radius: 1.25rem;
    padding: 1.25rem;
    margin-top: -72px;
    margin-bottom: 1.5rem;
    box-shadow: 0 18px 50px rgba(11, 31, 58, .14);
}

@media (min-width: 768px) {
    .hero-search-card {
        padding: 1.5rem 1.75rem;
    }
}

.hero-search-title {
    text-align: center;
    font-weight: 800;
    font-size: clamp(1.1rem, 2.4vw, 1.5rem);
    margin-bottom: 1rem;
}

.hero-search-card .hero-trust {
    justify-content: center;
}

.hero-search-card .hero-trust span {
    color: var(--bs-gray-600);
}

.hero-search-card .hero-trust .material-symbols-outlined {
    color: var(--bs-success);
}

/* ── Navbar dropdowns (mobile.de style) ─────────────────────── */
/* Contained card (not full-bleed) for the search méga-menu. */
.mega-menu {
    min-width: 560px;
    border-radius: 1rem;
}

.mega-menu .dropdown-item {
    white-space: normal;
}

/* Section headers inside the dropdowns */
.navbar .dropdown-menu .dropdown-header {
    margin-bottom: .25rem;
}

/* Rounded, comfortable rows with a clean highlight on hover/focus —
   mirrors mobile.de's nav dropdowns. Applies to Chercher, Vendre and
   the account menu for a consistent feel. */
.navbar .dropdown-menu .dropdown-item {
    border-radius: .5rem;
    padding-top: .45rem;
    padding-bottom: .45rem;
    transition: background-color .12s ease, color .12s ease;
}

.navbar .dropdown-menu .dropdown-item:hover,
.navbar .dropdown-menu .dropdown-item:focus {
    background-color: var(--bs-tertiary-bg, #f1f3f5);
    color: var(--primary);
}

@media (max-width: 991.98px) {

    /* On mobile the navbar collapses; let the méga-menu flow inline */
    .mega-menu {
        min-width: 0;
        max-height: 65vh;
        overflow-y: auto;
        box-shadow: none !important;
    }
}

/* ── Auth pages (login / signup / reset) — mobile.de-style split ───── */
.auth-shell {
    max-width: 960px;
    background: #fff;
}

.auth-brand {
    position: relative;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(600px 320px at 12% 0%, rgba(56, 130, 246, .25), transparent 60%),
        radial-gradient(520px 380px at 110% 120%, rgba(255, 107, 0, .18), transparent 55%),
        linear-gradient(155deg, #0A1C35 0%, #142B4D 55%, #20406A 100%);
}

/* Same soft automotive motif as the hero, fading toward the bottom */
.auth-brand::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("../images/hero-pattern.951aebb18e5d.svg") repeat;
    background-size: 260px 260px;
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 55%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 0%, #000 55%, transparent 100%);
    pointer-events: none;
}

.auth-brand-inner {
    position: relative;
    z-index: 1;
    align-self: center;
    padding: 3rem;
}

.auth-brand-logo {
    width: 150px;
    max-width: 60%;
    height: auto;
}

.auth-brand-title {
    font-size: 1.6rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: .75rem;
}

.auth-brand-text {
    font-size: .9rem;
    color: rgba(255, 255, 255, .75);
    margin-bottom: 1.5rem;
}

.auth-brand-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: .8rem;
}

.auth-brand-list li {
    display: flex;
    align-items: center;
    gap: .6rem;
    font-size: .9rem;
    font-weight: 600;
}

.auth-brand-list .material-symbols-outlined {
    font-size: 20px;
    color: var(--bs-secondary);
}

.auth-form-panel {
    padding: 2.25rem 1.5rem;
}

@media (min-width: 768px) {
    .auth-form-panel {
        padding: 3rem 2.75rem;
    }
}
/* ── Category strip (horizontal scroll, mobile.de-style) ───── */
.cat-strip {
    position: relative;
}

.cat-scroll {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x proximity;
    padding: .25rem .25rem 1rem;
    scrollbar-width: none;
}

.cat-scroll::-webkit-scrollbar {
    display: none;
}

.cat-tile {
    flex: 0 0 auto;
    position: relative;
    width: 230px;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    color: var(--foreground, inherit);
    background: var(--surface, #fff);
    border: 1px solid var(--bs-border-color, var(--motsoa-border));
    scroll-snap-align: start;
    transition: transform .2s ease, box-shadow .2s ease;
}

.cat-tile:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 26px rgba(11, 31, 58, .14);
}

.cat-tile-img {
    height: 128px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(180deg, #f2f6fb, #e8edf4);
}

/* mobile.de-style: full vehicle shown, centered (not cropped) */
.cat-tile-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    padding: .35rem .5rem;
    transition: transform .35s ease;
}

.cat-tile:hover .cat-tile-img img {
    transform: scale(1.04);
}

.cat-tile-foot {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .7rem .8rem;
}

.cat-tile-ico {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    border-radius: 9px;
    background: var(--bs-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cat-tile-ico .material-symbols-outlined {
    font-size: 19px;
}

.cat-tile-txt {
    min-width: 0;
}

.cat-tile-label {
    display: block;
    font-weight: 700;
    font-size: .88rem;
    line-height: 1.15;
    color: var(--chrome, var(--bs-primary));
}

.cat-tile-sub {
    display: block;
    font-size: .72rem;
    color: var(--motsoa-gray, var(--bs-gray-600));
}

.cat-arrow {
    position: absolute;
    top: 42%;
    transform: translateY(-50%);
    z-index: 3;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--bs-border-color, var(--motsoa-border));
    background: var(--surface, #fff);
    box-shadow: 0 4px 14px rgba(11, 31, 58, .15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bs-primary);
}

.cat-arrow--prev {
    left: -10px;
}

.cat-arrow--next {
    right: -10px;
}

.cat-arrow:hover {
    background: var(--bs-light);
}

/* ── Detail gallery + fullscreen lightbox (mobile.de style) ─── */
.gallery-main {
    position: relative;
}

.gallery-main-img {
    width: 100%;
    height: clamp(240px, 42vw, 440px);
    object-fit: cover;
    cursor: zoom-in;
    display: block;
}

.gallery-count {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0, 0, 0, .6);
    color: #fff;
    font-size: .72rem;
    font-weight: 600;
    padding: .15rem .55rem;
    border-radius: 1rem;
}

.gallery-zoom-btn {
    position: absolute;
    bottom: 10px;
    left: 10px;
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    background: rgba(255, 255, 255, .92);
    color: var(--bs-secondary);
    border: none;
    border-radius: .5rem;
    font-size: .78rem;
    font-weight: 600;
    padding: .3rem .6rem;
    cursor: pointer;
}

.gallery-zoom-btn:hover {
    background: #fff;
}

.gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, .9);
    color: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .2);
}

.gallery-arrow:hover {
    background: #fff;
}

.gallery-arrow--prev {
    left: 10px;
}

.gallery-arrow--next {
    right: 10px;
}

.gallery-thumb {
    width: 78px;
    height: 60px;
    object-fit: cover;
    cursor: pointer;
    opacity: .65;
    transition: opacity .15s, border-color .15s;
}

.gallery-thumb.active,
.gallery-thumb:hover {
    opacity: 1;
    border-color: var(--bs-secondary) !important;
}

.gallery-empty {
    height: clamp(240px, 42vw, 440px);
    background: linear-gradient(135deg, #dde2ea, #c5cdd8);
}

.gallery-empty .material-symbols-outlined {
    font-size: 64px;
    color: #b0bac5;
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, .93);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.lightbox[hidden] {
    display: none;
}

.lightbox-img {
    max-width: 94vw;
    max-height: 88vh;
    object-fit: contain;
    cursor: zoom-in;
    transition: transform .25s ease;
    border-radius: .4rem;
}

.lightbox-img.zoomed {
    transform: scale(2.2);
    cursor: zoom-out;
}

.lightbox-btn {
    position: absolute;
    border: none;
    color: #fff;
    background: rgba(255, 255, 255, .16);
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.lightbox-btn:hover {
    background: rgba(255, 255, 255, .3);
}

.lightbox-close {
    top: 16px;
    right: 16px;
}

.lightbox-nav {
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-prev {
    left: 14px;
}

.lightbox-next {
    right: 14px;
}

.lightbox-count {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: .8rem;
    background: rgba(0, 0, 0, .4);
    padding: .2rem .7rem;
    border-radius: 1rem;
}

@media (max-width: 575.98px) {
    .lightbox-btn {
        width: 40px;
        height: 40px;
    }
}

/* ── Detail key-specs strip + technical data table (mobile.de) ── */
.spec-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.75rem;
}

.spec-strip .spec-item {
    display: flex;
    align-items: center;
    gap: .55rem;
}

.spec-strip .material-symbols-outlined {
    font-size: 28px;
    color: var(--bs-secondary);
}

.spec-strip .spec-label {
    font-size: .72rem;
    color: var(--bs-gray-600);
    line-height: 1.1;
}

.spec-strip .spec-value {
    font-size: .95rem;
    font-weight: 700;
    line-height: 1.2;
}

.spec-table {
    width: 100%;
    font-size: .85rem;
    border-collapse: separate;
    border-spacing: 0;
}

.spec-table th,
.spec-table td {
    padding: .5rem .75rem;
    text-align: left;
    vertical-align: top;
}

.spec-table th {
    color: var(--bs-gray-600);
    font-weight: 600;
    width: 45%;
}

.spec-table td {
    font-weight: 600;
}

.spec-table tr:nth-child(odd) td,
.spec-table tr:nth-child(odd) th {
    background: var(--bs-tertiary-bg, #f5f6f8);
}

/* ── Legal pages — brand tokens (admin colors apply sitewide) ── */
.legal-page {
    background:
        radial-gradient(ellipse at top left, color-mix(in srgb, var(--brand-primary, var(--motsoa-orange, #ff6500)) 10%, transparent), transparent 42%),
        var(--background, #f8fafc);
    min-height: 60vh;
    color: var(--foreground);
}

.legal-hero {
    background: linear-gradient(
        135deg,
        color-mix(in srgb, var(--chrome, var(--brand-secondary, #0b1f3a)) 92%, #000) 0%,
        var(--chrome, var(--brand-secondary, #0b1f3a)) 55%,
        color-mix(in srgb, var(--chrome, var(--brand-secondary, #0b1f3a)) 75%, #fff) 100%
    );
    color: #fff;
    padding: 2.75rem 0 2.5rem;
    position: relative;
    overflow: hidden;
}

.legal-hero::after {
    content: '';
    position: absolute;
    inset: auto -10% -40% auto;
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, color-mix(in srgb, var(--brand-primary, var(--motsoa-orange, #ff6500)) 32%, transparent), transparent 68%);
    pointer-events: none;
}

.legal-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 920px;
}

.legal-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .45rem;
    font-size: .8rem;
    opacity: .78;
    margin-bottom: .9rem;
}

.legal-breadcrumb a {
    color: #fff !important;
    text-decoration: none !important;
    font-weight: 600;
}

.legal-breadcrumb a:hover {
    color: var(--brand-primary, var(--motsoa-orange, #ff6500)) !important;
}

.legal-eyebrow {
    text-transform: uppercase;
    letter-spacing: .14em;
    font-size: .68rem;
    font-weight: 800;
    color: var(--brand-primary, var(--motsoa-orange, #ff6500));
    margin-bottom: .65rem;
}

.legal-title {
    font-weight: 800;
    font-size: clamp(1.75rem, 3.6vw, 2.55rem);
    margin-bottom: .85rem;
    line-height: 1.15;
    color: #fff;
}

.legal-intro {
    max-width: 640px;
    margin: 0;
    opacity: .88;
    font-size: 1.02rem;
    line-height: 1.55;
}

.legal-content {
    padding: 2.5rem 0 3.5rem;
}

.legal-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 992px) {
    .legal-layout {
        grid-template-columns: 260px minmax(0, 1fr);
        gap: 2rem;
        align-items: start;
    }

    .legal-aside {
        position: sticky;
        top: 96px;
    }
}

.legal-toc {
    background: var(--surface, #fff);
    border: 1px solid var(--motsoa-border, rgba(14, 32, 59, 0.08));
    border-radius: 16px;
    padding: 1.15rem 1.2rem;
    box-shadow: 0 10px 28px rgba(11, 31, 58, 0.05);
    color: var(--foreground);
}

.legal-toc-label {
    font-size: .65rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--motsoa-gray, #8a96a8);
    margin-bottom: .7rem;
}

.legal-toc-nav {
    display: flex;
    flex-direction: column;
    gap: .15rem;
}

.legal-toc-link {
    display: flex !important;
    align-items: flex-start;
    gap: .55rem;
    font-size: .86rem;
    font-weight: 600;
    color: var(--foreground, #0E203B) !important;
    text-decoration: none !important;
    padding: .45rem .35rem;
    border-radius: 8px;
    line-height: 1.35;
}

.legal-toc-link:hover {
    color: var(--brand-primary, var(--motsoa-orange, #ff6500)) !important;
    background: color-mix(in srgb, var(--brand-primary, var(--motsoa-orange, #ff6500)) 10%, transparent);
}

.legal-toc-index {
    flex-shrink: 0;
    font-size: .68rem;
    font-weight: 800;
    color: var(--brand-primary, var(--motsoa-orange, #ff6500));
    margin-top: .15rem;
}

.legal-related {
    margin-top: 1.15rem;
    padding-top: 1rem;
    border-top: 1px solid var(--motsoa-border, rgba(14, 32, 59, 0.08));
}

.legal-article {
    background: var(--surface, #fff);
    border: 1px solid var(--motsoa-border, rgba(14, 32, 59, 0.08));
    border-radius: 20px;
    padding: 1.6rem 1.35rem;
    box-shadow: 0 14px 36px rgba(11, 31, 58, 0.06);
    color: var(--foreground);
}

@media (min-width: 992px) {
    .legal-article {
        padding: 2.25rem 2.5rem;
    }
}

.legal-section {
    padding-bottom: 1.75rem;
    margin-bottom: 1.75rem;
    border-bottom: 1px solid var(--motsoa-border, rgba(14, 32, 59, 0.07));
}

.legal-section:last-of-type {
    border-bottom: 0;
    margin-bottom: 1rem;
}

.legal-section-title {
    display: flex !important;
    align-items: baseline;
    gap: .75rem;
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--foreground, #0E203B);
    margin-bottom: .95rem;
    line-height: 1.3;
}

.legal-section-num {
    flex-shrink: 0;
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .06em;
    color: var(--brand-primary, var(--motsoa-orange, #ff6500));
}

.legal-section-body {
    color: var(--motsoa-gray, #5a6575);
    line-height: 1.7;
    font-size: .95rem;
}

.legal-section-body p {
    margin: 0 0 .85rem;
    white-space: pre-line;
}

.legal-bullets {
    margin: .85rem 0 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: .55rem;
}

.legal-bullets li {
    position: relative;
    margin: 0;
    padding: .65rem .85rem .65rem 2rem;
    border-radius: 10px;
    background: var(--surface-2, #f6f8fb);
    color: var(--motsoa-gray, #5a6575);
    line-height: 1.55;
    font-size: .93rem;
}

.legal-bullets li::before {
    content: '';
    position: absolute;
    left: .85rem;
    top: 1rem;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--brand-primary, var(--motsoa-orange, #ff6500));
}

.legal-note {
    margin-top: 1rem;
    margin-bottom: 0;
    padding: .85rem 1rem;
    border-radius: 12px;
    background: color-mix(in srgb, var(--brand-primary, var(--motsoa-orange, #ff6500)) 10%, var(--surface, #fff));
    color: var(--foreground, #0E203B);
    font-size: .88rem;
    font-weight: 600;
}

.legal-footer-meta {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px dashed var(--motsoa-border, rgba(14, 32, 59, 0.12));
    font-size: .8rem;
    color: var(--motsoa-gray, #8a96a8);
    display: flex;
    flex-direction: column;
    gap: .4rem;
}

.legal-footer-meta a {
    color: var(--brand-primary, var(--motsoa-orange, #ff6500)) !important;
    text-decoration: none !important;
    font-weight: 600;
}

/* Publish stepper */
.publish-stepper {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: .25rem;
}

.publish-step {
    flex: 1;
    display: flex;
    align-items: center;
    min-width: 0;
}

.publish-step-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .4rem;
    border: 0;
    background: transparent;
    padding: 0;
    min-width: 4.5rem;
}

.publish-step-num {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: .9rem;
    background: #eef2f6;
    color: #5a6575;
    border: 2px solid transparent;
}

.publish-step.is-active .publish-step-num {
    background: var(--brand-primary, var(--motsoa-orange, #ff6500));
    color: #fff;
}

.publish-step.is-done .publish-step-num {
    background: var(--chrome, var(--brand-secondary, #0E203B));
    color: #fff;
}

.publish-step-label {
    font-size: .78rem;
    font-weight: 700;
    color: #8a96a8;
    text-align: center;
    line-height: 1.2;
}

.publish-step.is-active .publish-step-label {
    color: #0E203B;
}

.publish-step-line {
    flex: 1;
    height: 2px;
    background: #e5ebf2;
    margin: 0 .15rem;
    margin-bottom: 1.35rem;
}

.publish-step.is-done + .publish-step .publish-step-line,
.publish-step.is-done .publish-step-line {
    background: #0E203B;
}

@media (max-width: 575.98px) {
    .publish-step-label {
        font-size: .68rem;
    }
    .publish-step-btn {
        min-width: 3.2rem;
    }
}

/* ═══ Error pages ═══ */
.error-page {
  min-height: min(72vh, 720px);
  display: flex;
  align-items: center;
  padding: 2.5rem 0 3.5rem;
  background:
    radial-gradient(ellipse at 50% 0%, color-mix(in srgb, var(--brand-primary, var(--motsoa-orange, #ff6500)) 12%, transparent), transparent 55%),
    var(--background, #f8fafc);
  color: var(--foreground);
}

.error-page-card {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  padding: 1.5rem 1.25rem 2rem;
}

.error-page-code {
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--brand-primary, var(--motsoa-orange, #ff6500));
  margin: 0 0 .5rem;
}

.error-page-art {
  display: flex;
  justify-content: center;
  margin: .25rem auto 1rem;
}

.error-car-art {
  width: min(100%, 380px);
  height: auto;
  display: block;
}

.error-page-title {
  font-size: clamp(1.55rem, 3.2vw, 2.1rem);
  font-weight: 800;
  margin: 0 0 .65rem;
  color: var(--foreground);
  line-height: 1.2;
}

.error-page-message {
  margin: 0 auto 1.5rem;
  max-width: 34rem;
  font-size: 1.02rem;
  line-height: 1.55;
  color: var(--motsoa-gray, #6b7787);
}

.error-page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  justify-content: center;
}
