:root {
    --ink: #111827;
    --muted: #64748b;
    --line: #e2e8f0;
    --paper: #f8fafc;
    --white: #ffffff;
    --accent: #c1121f;
    --accent-dark: #8f0d17;
    --navy: #0b1424;
    --green: #128c4a;
    --amber: #b7791f;
    --radius: 8px;
    --shadow: 0 18px 48px rgba(15, 23, 42, .12);
}

.vehicle-lightbox {
    background:
        radial-gradient(circle at 20% 10%, rgba(31, 42, 68, .78), transparent 32%),
        rgba(3, 7, 18, .94);
    animation: galleryFade .18s ease-out;
}
.vehicle-lightbox img {
    max-width: min(1240px, 90vw);
    max-height: 82vh;
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 18px;
    box-shadow: 0 34px 100px rgba(0,0,0,.58);
}
.vehicle-lightbox-close,
.vehicle-lightbox-nav {
    border-color: rgba(255,255,255,.22);
    background: rgba(15,23,42,.68);
    backdrop-filter: blur(12px);
}
.vehicle-lightbox-close {
    width: 48px;
    height: 48px;
}
.vehicle-lightbox-nav {
    width: 54px;
    height: 54px;
    margin-top: -27px;
    border-radius: 999px;
    font-size: 38px;
}
.vehicle-lightbox-count {
    border: 1px solid rgba(255,255,255,.16);
    background: rgba(15,23,42,.72);
    backdrop-filter: blur(12px);
}
@keyframes galleryFade {
    from { opacity: 0; }
    to { opacity: 1; }
}

@media (max-width: 900px) {
    .vehicle-lightbox { padding: 54px 12px; }
    .vehicle-lightbox img { max-width: 94vw; max-height: 78vh; }
    .vehicle-lightbox-nav {
        width: 42px;
        height: 42px;
        font-size: 30px;
    }
    .vehicle-lightbox-nav.prev { left: 8px; }
    .vehicle-lightbox-nav.next { right: 8px; }
    .vehicle-lightbox-close { top: 12px; right: 12px; }
    .vehicle-gallery > .vehicle-lightbox.is-open {
        padding: 54px 12px !important;
    }
    .vehicle-gallery > .vehicle-lightbox.is-open img[data-gallery-lightbox-image] {
        max-width: 94vw;
        max-height: 78vh;
    }
}

* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--ink);
    background: var(--paper);
    line-height: 1.55;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
input, select, textarea, button {
    font: inherit;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 12px 14px;
    background: var(--white);
    min-width: 0;
}
textarea { width: 100%; resize: vertical; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px clamp(18px, 5vw, 72px);
    background: rgba(255, 255, 255, .94);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(12px);
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 7px;
    background: var(--accent);
    color: white;
    font-weight: 800;
}
.brand small { display: block; color: var(--muted); font-size: 12px; line-height: 1; }
.main-nav { display: flex; gap: 26px; align-items: center; font-weight: 700; }
.nav-toggle { display: none; padding: 8px 11px; }
.hero {
    position: relative;
    min-height: 720px;
    display: grid;
    align-content: end;
    padding: 120px clamp(18px, 5vw, 72px) 34px;
    color: white;
    overflow: hidden;
}
.hero-bg {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(10, 16, 28, .92), rgba(10, 16, 28, .56), rgba(10, 16, 28, .18)),
        url('https://images.unsplash.com/photo-1606220838315-056192d5e927?auto=format&fit=crop&w=1800&q=82') center/cover;
    z-index: -1;
}
.hero-content { max-width: 800px; padding-bottom: 36px; }
.eyebrow {
    margin: 0 0 10px;
    color: var(--accent);
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 800;
}
.hero .eyebrow { color: #fecaca; }
h1, h2, h3 { line-height: 1.08; margin: 0 0 14px; letter-spacing: 0; }
h1 { font-size: clamp(30px, 4vw, 48px); max-width: 860px; line-height: 1.08; }
h2 { font-size: clamp(28px, 4vw, 44px); }
h3 { font-size: 20px; }
.hero p { max-width: 660px; color: rgba(255,255,255,.86); font-size: 18px; }
.hero-actions, .contact-actions, .actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border-radius: var(--radius);
    border: 1px solid transparent;
    padding: 10px 16px;
    font-weight: 800;
    cursor: pointer;
}
.btn.primary { background: var(--accent); color: white; }
.btn.primary:hover { background: var(--accent-dark); }
.btn.light { background: white; color: var(--ink); }
.btn.dark { background: var(--navy); color: white; }
.btn.ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn.reserve-action {
    background: linear-gradient(135deg, #f5b23f 0%, #d88913 100%);
    color: #111827;
    border-color: #b86f0e;
    box-shadow: 0 12px 26px rgba(216, 137, 19, .32);
}
.btn.reserve-action:hover {
    background: linear-gradient(135deg, #d88913 0%, #a85f0a 100%);
    color: #fff;
    transform: translateY(-1px);
}
.premium-detail-panel .btn.reserve-action {
    color: #111827;
    font-weight: 900;
}
.premium-detail-panel .btn.reserve-action:hover { color: #fff; }
.btn.whatsapp, .float-whatsapp { background: #16a34a; color: white; }
.btn.danger { background: #fee2e2; color: #991b1b; }
.btn.danger-outline {
    background: #fff;
    border-color: #fecaca;
    color: #991b1b;
}
.btn.danger-outline:hover,
.btn.danger-outline:focus-visible {
    background: #991b1b;
    border-color: #991b1b;
    color: #fff;
}
.btn.small { min-height: 36px; padding: 7px 10px; font-size: 13px; }
.full { width: 100%; }

.hero-search {
    display: grid;
    grid-template-columns: 1.7fr 1fr 1fr auto;
    gap: 10px;
    width: min(1120px, 100%);
    padding: 14px;
    background: rgba(255,255,255,.94);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.trust-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--line);
    margin: 0 clamp(18px, 5vw, 72px);
    transform: translateY(-20px);
    box-shadow: var(--shadow);
}
.trust-strip div { background: white; padding: 22px; }
.trust-strip span { display: block; color: var(--muted); }

.section, .split-section, .inventory-layout, .detail-layout, .contact-grid {
    width: min(1180px, calc(100% - 36px));
    margin: 70px auto;
}
.section-head {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: end;
    margin-bottom: 24px;
}
.section-head a { color: var(--accent); font-weight: 800; }
.vehicle-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.vehicle-card {
    background: white;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 10px 26px rgba(15, 23, 42, .06);
}
.premium-vehicle-card { box-shadow: 0 12px 34px rgba(17, 24, 39, .08); }
.premium-vehicle-card .vehicle-info { gap: 10px; }
.marketplace-vehicle-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}
.marketplace-vehicle-list .vehicle-card {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    min-height: 0;
    max-height: none;
    border-radius: 10px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, .07);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.marketplace-vehicle-list .vehicle-card:hover {
    transform: translateY(-2px);
    border-color: #cbd5e1;
    box-shadow: 0 18px 42px rgba(15, 23, 42, .12);
}
.marketplace-vehicle-list .vehicle-media {
    aspect-ratio: auto;
    height: 230px;
    min-height: 0;
    border-radius: 10px 0 0 10px;
}
.marketplace-vehicle-list .vehicle-info {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 170px;
    gap: 18px;
    align-content: start;
    padding: 16px 18px;
}
.marketplace-vehicle-list .vehicle-info h3 {
    display: -webkit-box;
    overflow: hidden;
    font-size: 19px;
    line-height: 1.2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.marketplace-vehicle-list .vehicle-info dl {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px 14px;
    margin-top: 10px;
}
.marketplace-vehicle-list .vehicle-info h3,
.marketplace-vehicle-list .vehicle-info dl,
.marketplace-vehicle-list .card-badges {
    grid-column: 1;
}
.marketplace-vehicle-list .vehicle-info .price,
.marketplace-vehicle-list .vehicle-info .card-actions {
    grid-column: 2;
    align-self: start;
    justify-self: end;
    text-align: right;
}
.marketplace-vehicle-list .vehicle-info .price {
    min-width: 160px;
    margin-top: 0;
}
.marketplace-vehicle-list .vehicle-info .card-actions {
    max-width: 190px;
    justify-content: flex-end;
}
.card-badges { display: flex; gap: 7px; flex-wrap: wrap; }
.card-badges span { padding: 5px 8px; border-radius: 999px; background: #eef2f7; color: #22304a; font-size: 12px; font-weight: 900; }
.vehicle-media { position: relative; aspect-ratio: 4 / 3; background: #dbe2ea; overflow: hidden; }
.vehicle-media img { width: 100%; height: 100%; object-fit: cover; }
.placeholder-car {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #cbd5e1, #f1f5f9);
    color: var(--navy);
    font-size: 64px;
    font-weight: 800;
}
.placeholder-car.large { min-height: 360px; border-radius: var(--radius); }
.status {
    display: inline-flex;
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 800;
    background: #e2e8f0;
}
.vehicle-media .status { position: absolute; top: 12px; left: 12px; }
.status.available { background: #dcfce7; color: #166534; }
.status.reserved { background: #fef3c7; color: #92400e; }
.status.pending_sale { background: #ede9fe; color: #5b21b6; }
.status.sold { background: #fee2e2; color: #991b1b; }
.status.coming_soon { background: #dbeafe; color: #1d4ed8; }
.status.high_demand { background: #fef3c7; color: #92400e; }
.status.hidden { background: #e5e7eb; color: #374151; }
.status.draft { background: #f3f4f6; color: #4b5563; }
.status.visible { background: #dcfce7; color: #166534; }
.vehicle-info { padding: 18px; }
.vehicle-preview {
    margin: 14px 0 0;
    color: var(--muted);
    font-size: 14px;
}
.card-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.category { margin: 0 0 6px; color: var(--muted); font-weight: 800; font-size: 12px; text-transform: uppercase; }
.price { color: var(--accent); font-weight: 900; font-size: 24px; margin: 10px 0; }
.vehicle-info dl, .spec-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin: 16px 0 0;
}
dt { color: var(--muted); font-size: 12px; }
dd { margin: 0; font-weight: 800; }
.split-section {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 56px;
    align-items: start;
    padding: 56px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.page-hero {
    --hero-overlay-left: rgba(7, 15, 30, 0.78);
    --hero-overlay-middle: rgba(7, 15, 30, 0.48);
    --hero-overlay-right: rgba(7, 15, 30, 0.18);
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: 430px;
    display: grid;
    align-items: end;
    padding: 116px clamp(18px, 5vw, 72px) 72px;
    background:
        var(--hero-image, linear-gradient(135deg, #08111f, #1f2937));
    background-size: cover;
    background-position: center;
    color: white;
    box-shadow: 0 22px 54px rgba(15, 23, 42, .16);
}
.page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background:
        linear-gradient(90deg, var(--hero-overlay-left) 0%, var(--hero-overlay-middle) 48%, var(--hero-overlay-right) 100%),
        linear-gradient(0deg, rgba(3, 7, 18, .34) 0%, rgba(3, 7, 18, .10) 34%, rgba(3, 7, 18, 0) 68%);
}
.page-hero::after {
    display: none !important;
    content: none !important;
}
.page-hero--compact, .page-hero.compact {
    min-height: 300px;
    padding-top: 84px;
    padding-bottom: 50px;
}
.page-hero__overlay {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0) 0%, rgba(2, 6, 23, .22) 100%);
}
.page-hero__content {
    width: min(900px, 100%);
}
.page-hero__eyebrow {
    display: inline-flex;
    margin: 0 0 12px;
    padding: 7px 11px;
    border: 1px solid rgba(255,255,255,.26);
    border-radius: 999px;
    background: rgba(255,255,255,.09);
    color: #fecaca;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .02em;
    text-transform: uppercase;
}
.page-hero__title {
    color: #fff;
    font-size: clamp(30px, 4vw, 52px);
    max-width: 880px;
}
.page-hero__subtitle {
    max-width: 760px;
    color: rgba(241,245,249,.88);
    font-size: clamp(16px, 1.6vw, 19px);
    line-height: 1.62;
}
.page-hero__badges,
.page-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}
.page-hero__badges span {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 7px 11px;
    border-radius: 999px;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.18);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    backdrop-filter: blur(8px);
}
.page-hero__badges--title {
    margin-top: 10px;
    margin-bottom: 14px;
}
.page-hero__actions .btn.ghost {
    color: #fff;
    border-color: rgba(255,255,255,.56);
    background: rgba(255,255,255,.08);
}
.page-hero__actions .btn.ghost:hover {
    background: var(--accent);
    border-color: var(--accent);
}
.page-hero-search {
    width: min(1120px, calc(100% - 36px));
    margin: 22px auto 0;
    position: relative;
    z-index: 3;
}
.section .page-hero {
    border-radius: 14px;
    margin-bottom: 28px;
}
.account-hero .page-hero__actions form,
.page-hero--account-hero .page-hero__actions form {
    margin: 0;
}
.page-hero--account,
.page-hero--account-hero {
    align-items: center;
}
.page-hero--account .page-hero__content,
.page-hero--account-hero .page-hero__content {
    position: relative;
    padding-right: min(240px, 28vw);
}
.page-hero--account .page-hero__actions,
.page-hero--account-hero .page-hero__actions {
    position: absolute;
    top: 0;
    right: 0;
    margin-top: 0;
}
.page-hero--account .page-hero__actions .btn,
.page-hero--account-hero .page-hero__actions .btn {
    min-height: 42px;
    color: #fff;
    border-color: rgba(255,255,255,.7);
    background: rgba(255,255,255,.12);
    box-shadow: 0 14px 28px rgba(0,0,0,.18);
}
.page-hero--account .page-hero__actions .btn:hover,
.page-hero--account-hero .page-hero__actions .btn:hover {
    background: var(--accent);
    border-color: var(--accent);
}
.page-hero--account-hero .page-hero__title {
    font-size: clamp(32px, 3vw, 46px);
    line-height: 1.08;
    letter-spacing: -.02em;
    overflow-wrap: break-word;
    word-break: normal;
    hyphens: auto;
}
.page-hero--account-hero .page-hero__subtitle {
    font-size: clamp(15px, 1.2vw, 17px);
    line-height: 1.5;
}
.customer-inquiries {
    display: grid;
    gap: 20px;
}
.inquiry-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 22px;
    box-shadow: 0 18px 42px rgba(15, 23, 42, .08);
}
.inquiry-card__head {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-start;
    border-bottom: 1px solid var(--line);
    padding-bottom: 16px;
    margin-bottom: 16px;
}
.inquiry-card__head h2 {
    margin: 10px 0 6px;
    font-size: 20px;
}
.inquiry-card__meta {
    display: grid;
    gap: 8px;
    justify-items: end;
    text-align: right;
}
.inquiry-offer {
    padding: 12px 14px;
    border-radius: 10px;
    background: #fff7ed;
    color: #7c2d12;
}
.timeline-thread {
    display: grid;
    gap: 12px;
    margin: 16px 0;
}
.thread-message {
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 14px;
    background: #f8fafc;
}
.thread-message.from-admin {
    background: #fef2f2;
    border-color: #fecaca;
}
.thread-message span {
    display: inline-block;
    font-weight: 900;
    color: var(--navy);
    margin-right: 8px;
}
.thread-message p {
    margin: 8px 0 0;
    line-height: 1.6;
}
.inquiry-reply-form {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}
.admin-inquiry-summary .summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}
.admin-inquiry-summary .summary-grid > div {
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #f8fafc;
}
.admin-inquiry-summary span {
    display: block;
    margin-bottom: 6px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}
.inventory-layout { display: grid; grid-template-columns: 300px 1fr; gap: 26px; align-items: start; }
.filters {
    display: grid;
    gap: 10px;
    position: sticky;
    top: 92px;
    padding: 18px;
    background: white;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}
.premium-filters { gap: 10px; }
.filter-title { display: flex; justify-content: space-between; align-items: center; }
.active-filter-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.active-filter-chips span { padding: 5px 8px; border-radius: 999px; background: #edf2f7; font-size: 12px; font-weight: 800; }
.motorhome-filter { display: grid; gap: 10px; border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; }
.premium-gallery img:first-child { grid-column: span 2; grid-row: span 2; }
.vehicle-gallery {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}
.gallery-main {
    background: white;
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 12px 34px rgba(15, 23, 42, .08);
}
.gallery-main-button {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: zoom-in;
}
.gallery-main img,
.gallery-main .placeholder-car {
    width: 100%;
    height: min(520px, 58vw);
    min-height: 340px;
    object-fit: cover;
    display: block;
}
.gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
}
.gallery-thumb {
    padding: 0;
    border: 2px solid transparent;
    border-radius: 10px;
    background: transparent;
    cursor: pointer;
    overflow: hidden;
    transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.gallery-thumb:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(15,23,42,.12);
}
.gallery-thumb.active {
    border-color: var(--accent);
}
.gallery-thumbs img,
.gallery-thumb img {
    width: 100%;
    height: 92px;
    object-fit: cover;
    display: block;
    border-radius: 8px;
}
.vehicle-lightbox[hidden] { display: none; }
.vehicle-lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: grid;
    place-items: center;
    background: rgba(3, 7, 18, .92);
    padding: 48px 72px;
}
.vehicle-lightbox img {
    max-width: min(1180px, 92vw);
    max-height: 86vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 14px;
    box-shadow: 0 30px 90px rgba(0,0,0,.45);
    background: #0f172a;
}
.vehicle-lightbox-close,
.vehicle-lightbox-nav {
    position: fixed;
    z-index: 2001;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255,255,255,.16);
    color: white;
    background: rgba(15,23,42,.72);
    box-shadow: 0 16px 38px rgba(0,0,0,.25);
    cursor: pointer;
    transition: background .18s ease, transform .18s ease;
}
.vehicle-lightbox-close:hover,
.vehicle-lightbox-nav:hover {
    background: var(--accent);
    transform: scale(1.03);
}
.vehicle-lightbox-close {
    top: 22px;
    right: 24px;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    font-size: 30px;
    line-height: 1;
}
.vehicle-lightbox-nav {
    top: 50%;
    width: 52px;
    height: 72px;
    margin-top: -36px;
    border-radius: 14px;
    font-size: 46px;
}
.vehicle-lightbox-nav.prev { left: 22px; }
.vehicle-lightbox-nav.next { right: 22px; }
.vehicle-lightbox-count {
    position: fixed;
    left: 50%;
    bottom: 22px;
    transform: translateX(-50%);
    padding: 8px 14px;
    border-radius: 999px;
    color: white;
    background: rgba(15,23,42,.76);
    font-size: 13px;
    font-weight: 800;
}
body.lightbox-open { overflow: hidden; }

/* Hard modal state for vehicle gallery lightbox. Keeps modal image out of normal page flow. */
.vehicle-gallery > .vehicle-lightbox,
.vehicle-gallery > .vehicle-lightbox[hidden] {
    display: none !important;
}
.vehicle-gallery > .vehicle-lightbox.is-open {
    position: fixed !important;
    inset: 0 !important;
    z-index: 9999 !important;
    display: grid !important;
    place-items: center !important;
    padding: 58px 76px !important;
    background:
        radial-gradient(circle at 20% 10%, rgba(31, 42, 68, .74), transparent 34%),
        rgba(2, 6, 18, .94) !important;
    backdrop-filter: blur(14px);
}
.vehicle-gallery > .vehicle-lightbox.is-open img[data-gallery-lightbox-image] {
    display: block;
    max-width: min(1240px, 90vw);
    max-height: 82vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 18px;
    box-shadow: 0 34px 110px rgba(0,0,0,.62);
    background: #081122;
}
.vehicle-gallery > .vehicle-lightbox.is-open .vehicle-lightbox-close,
.vehicle-gallery > .vehicle-lightbox.is-open .vehicle-lightbox-nav {
    position: fixed;
    z-index: 10000;
}
.vehicle-gallery > .vehicle-lightbox.is-open .vehicle-lightbox-count {
    position: fixed;
    z-index: 10000;
}
.premium-detail-panel { border-top: 4px solid var(--accent); }
.equipment-sections { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.equipment-sections article { background: white; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.range { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.result-line { margin-bottom: 18px; color: var(--muted); font-weight: 800; }
.pagination { display: flex; gap: 8px; margin-top: 28px; }
.pagination a { padding: 8px 13px; border: 1px solid var(--line); border-radius: var(--radius); background: white; }
.pagination .active { background: var(--accent); color: white; border-color: var(--accent); }

.detail-layout { display: grid; grid-template-columns: 1.35fr .75fr; gap: 26px; align-items: start; }
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.gallery img:first-child { grid-column: 1 / -1; }
.detail-panel, .contact-card, .contact-form, .admin-panel, .login-card {
    background: white;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, .06);
}
.detail-panel { position: sticky; top: 92px; }
.spec-list { grid-template-columns: 1fr; }
.spec-list div { display: flex; justify-content: space-between; border-bottom: 1px solid var(--line); padding: 10px 0; }
.contact-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 26px; align-items: start; }
.contact-form { display: grid; gap: 12px; }
.order-page {
    display: grid;
    gap: 18px;
    background: #f6f8fb;
    border-radius: 14px;
}
.order-vehicle-summary,
.order-step-card,
.order-success-card,
.order-timeline-card,
.order-trust-card {
    background: white;
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, .07);
}
.order-vehicle-summary {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr) auto;
    gap: 20px;
    align-items: center;
    padding: 16px;
}
.order-summary-photo {
    height: 126px;
    border-radius: 10px;
    overflow: hidden;
    background: #e5eaf0;
}
.order-summary-photo img,
.order-summary-photo .placeholder-car {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.order-vehicle-summary h2 { margin: 4px 0; font-size: 24px; }
.order-vehicle-summary > strong { color: var(--accent); font-size: 24px; white-space: nowrap; }
.order-step-card {
    display: grid;
    gap: 16px;
    padding: 22px;
}
.order-step-title {
    display: flex;
    gap: 13px;
    align-items: flex-start;
}
.order-step-title > span {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 999px;
    background: var(--navy);
    color: white;
    font-weight: 900;
    flex: 0 0 auto;
}
.order-step-title h2 { margin: 0; font-size: 20px; }
.order-step-title p { margin: 4px 0 0; color: var(--muted); }
.locked-payment {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #f8fafc;
}
.locked-payment span { color: var(--muted); font-weight: 800; }
.locked-payment strong { color: var(--navy); }
.delivery-method-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
.delivery-choice,
.delivery-service-options label {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #f8fafc;
}
.delivery-choice strong,
.delivery-service-options strong {
    display: block;
    color: var(--navy);
}
.delivery-choice small,
.delivery-service-options span {
    display: block;
    color: var(--muted);
    font-size: 13px;
    margin-top: 3px;
}
.delivery-service-options {
    display: grid;
    gap: 10px;
}
.reservation-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}
.reservation-summary-grid div {
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #f8fafc;
}
.reservation-summary-grid span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}
.reservation-summary-grid strong {
    display: block;
    margin-top: 5px;
    color: var(--navy);
}
.reservation-info-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}
.reservation-info-grid article {
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 16px;
    background: #fff;
}
.reservation-info-grid h3 {
    margin: 0 0 10px;
    font-size: 15px;
    color: var(--navy);
}
.reservation-info-grid ul,
.reservation-info-grid ol {
    margin: 0;
    padding-left: 18px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.55;
}
.order-success-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr);
    gap: 18px;
}
.order-success-card {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 24px;
}
.success-mark {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border-radius: 999px;
    background: #dcfce7;
    color: #166534;
    font-size: 28px;
    font-weight: 900;
}
.order-timeline-card,
.order-trust-card { padding: 22px; }
.order-timeline {
    display: grid;
    gap: 14px;
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
}
.order-timeline li { display: flex; gap: 10px; align-items: center; font-weight: 800; }
.order-timeline li span {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: var(--accent);
    box-shadow: 0 0 0 5px #fee2e2;
}
.order-trust-card ul { display: grid; gap: 10px; padding-left: 18px; }
.order-success-actions {
    grid-column: 1 / -1;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.prose { max-width: 860px; }
.legal-hero .eyebrow { color: #fca5a5; }
.legal-page {
    width: min(980px, calc(100% - 36px));
    padding-top: 48px;
    padding-bottom: 64px;
}
.legal-section {
    padding: 24px 0;
    border-bottom: 1px solid var(--line);
}
.legal-section:first-child { padding-top: 0; }
.legal-section h2 {
    margin-bottom: 12px;
    font-size: 22px;
    color: var(--navy);
}
.legal-section p {
    margin: 0 0 12px;
    color: #334155;
}
.legal-section ul {
    margin: 8px 0 14px 22px;
    padding: 0;
    color: #334155;
}
.legal-section li { margin: 5px 0; }
.rich-content {
    color: #334155;
    font-size: 16px;
    line-height: 1.72;
}
.rich-content h1,
.rich-content h2,
.rich-content h3 {
    color: var(--navy);
    margin: 26px 0 10px;
    line-height: 1.18;
}
.rich-content h1 { font-size: 30px; }
.rich-content h2 { font-size: 24px; }
.rich-content h3 { font-size: 19px; }
.rich-content p { margin: 0 0 16px; }
.rich-content strong { color: var(--navy); }
.rich-content ul,
.rich-content ol {
    margin: 8px 0 18px 24px;
    padding: 0;
}
.rich-content li { margin: 7px 0; }
.rich-content a {
    color: var(--accent);
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.rich-content a:hover { color: var(--accent-dark); }
.admin-help {
    margin: 10px 0 16px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #f8fafc;
}
.admin-help p { margin: 0 0 8px; color: var(--muted); font-size: 13px; }
.admin-help pre {
    margin: 0;
    padding: 10px;
    overflow: auto;
    border-radius: 6px;
    background: white;
    color: var(--navy);
    font-size: 12px;
    line-height: 1.45;
}

.float-call, .float-whatsapp {
    position: fixed;
    right: 18px;
    z-index: 30;
    padding: 10px 14px;
    border-radius: 999px;
    color: white;
    font-weight: 800;
    box-shadow: var(--shadow);
}
.float-call { bottom: 76px; background: var(--navy); }
.float-whatsapp { bottom: 24px; }
.site-footer {
    display: flex;
    justify-content: space-between;
    gap: 28px;
    padding: 42px clamp(18px, 5vw, 72px);
    background: #0f172a;
    color: white;
}
.site-footer p { color: #cbd5e1; max-width: 520px; }
.site-footer nav { display: flex; gap: 18px; align-items: start; }
.footer-admin-link {
    color: rgba(255, 255, 255, .58);
    font-size: 13px;
    transition: color .18s ease, opacity .18s ease;
}
.footer-admin-link:hover { color: white; }
.flash {
    width: min(1180px, calc(100% - 36px));
    margin: 18px auto;
    padding: 14px 16px;
    border-radius: var(--radius);
    font-weight: 800;
}
.flash.success { background: #dcfce7; color: #166534; }
.flash.error { background: #fee2e2; color: #991b1b; }
.muted { color: var(--muted); }

.admin-body { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; }
.admin-sidebar {
    background: #101827;
    color: white;
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.admin-sidebar nav { display: grid; gap: 8px; }
.admin-sidebar a { padding: 8px 0; font-size: 14px; }
.admin-brand { color: white; }
.admin-main { padding: 32px; min-width: 0; }
.admin-detail { width: 100%; margin: 0 0 24px; }
.admin-head { display: flex; justify-content: space-between; gap: 20px; align-items: center; margin-bottom: 24px; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.stat-grid div, .stat-card { background: white; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.stat-grid span { display: block; color: var(--muted); }
.stat-grid strong { font-size: 34px; }
.info-list { display: grid; gap: 8px; }
.password-mask { display: inline-flex; padding: 4px 10px; border-radius: 999px; background: #eef2f7; font-weight: 800; letter-spacing: 2px; }
.actions.stacked { align-items: stretch; flex-direction: column; }
.document-action-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin: 14px 0 24px; }
.document-action-grid > div { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; background: #f8fafc; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
td.admin-thumb-cell { width: 92px; }
.admin-thumb { width: 76px; height: 54px; border-radius: 6px; object-fit: cover; display: inline-flex; align-items: center; justify-content: center; background: #f1f5f9; color: #64748b; font-size: 12px; }
th, td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; font-size: 14px; }
th { color: var(--muted); font-size: 12px; text-transform: uppercase; }
.admin-form { display: grid; gap: 18px; }
.form-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
label { display: grid; gap: 7px; font-weight: 800; }
.admin-accordion {
    border: 1px solid rgba(15, 23, 42, .10);
    border-radius: 14px;
    background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
    overflow: hidden;
}
.admin-accordion + .admin-accordion { margin-top: 4px; }
.admin-accordion summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 20px;
    cursor: pointer;
    list-style: none;
}
.admin-accordion summary::-webkit-details-marker { display: none; }
.admin-accordion summary strong {
    display: block;
    color: #0f172a;
    font-size: 17px;
}
.admin-accordion summary small {
    display: block;
    margin-top: 4px;
    color: #64748b;
    font-weight: 600;
    line-height: 1.45;
}
.accordion-action {
    flex: 0 0 auto;
    padding: 8px 12px;
    border: 1px solid rgba(177, 18, 23, .20);
    border-radius: 10px;
    color: #A11217;
    background: rgba(177, 18, 23, .06);
    font-size: 13px;
    font-weight: 800;
}
.accordion-body {
    display: grid;
    gap: 16px;
    padding: 0 20px 20px;
}
.admin-accordion-section {
    border-color: rgba(15, 23, 42, .12);
    box-shadow: 0 10px 26px rgba(15, 23, 42, .06);
}
.checkbox-line { display: flex; align-items: center; gap: 10px; }
.checkbox-line input, label input[type="checkbox"] { width: auto; min-width: auto; }
.photo-admin-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.photo-admin-grid img { aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.description-tabs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-bottom: 16px; }
.segmented-control { display: flex; gap: 10px; flex-wrap: wrap; }
.segmented-control label { display: inline-flex; }
.segmented-control input { position: absolute; opacity: 0; pointer-events: none; }
.segmented-control span { padding: 10px 16px; border: 1px solid var(--line); border-radius: 8px; background: white; font-weight: 900; cursor: pointer; }
.segmented-control input:checked + span { background: var(--navy); color: white; border-color: var(--navy); }
.check-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px 14px; margin-bottom: 16px; }
.check-grid label { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.upload-drop { border: 1px dashed #a8b3c4; border-radius: var(--radius); padding: 18px; background: #f8fafc; }
.photo-preview-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 12px; }
.photo-preview-grid img, .photo-admin-item img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; border-radius: var(--radius); }
.photo-admin-item { display: grid; gap: 8px; }
.sticky-save { position: sticky; bottom: 12px; display: flex; justify-content: flex-end; padding: 12px; background: rgba(255,255,255,.88); border: 1px solid var(--line); border-radius: var(--radius); backdrop-filter: blur(10px); z-index: 5; }
.customer-auth-shell {
    min-height: calc(100vh - 78px);
    display: grid;
    place-items: center;
    padding: 56px 22px;
    background:
        radial-gradient(circle at 22% 16%, rgba(193, 18, 31, .22), transparent 30%),
        linear-gradient(135deg, #08111f 0%, #0b1424 48%, #111827 100%);
}
.customer-auth-card {
    width: min(1040px, 100%);
    display: grid;
    grid-template-columns: minmax(320px, 480px) 1fr;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 18px;
    box-shadow: 0 30px 90px rgba(0,0,0,.35);
    background: rgba(255,255,255,.04);
    backdrop-filter: blur(14px);
}
.auth-form-panel, .auth-benefits-panel { padding: 34px; }
.auth-form-panel { background: rgba(255,255,255,.98); }
.auth-form-panel h1, .auth-benefits-panel h2 { margin: 0 0 8px; font-size: clamp(28px, 3vw, 40px); line-height: 1.1; letter-spacing: 0; }
.auth-intro { margin: 0 0 24px; color: var(--muted); }
.auth-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    padding: 5px;
    margin-bottom: 26px;
    background: #edf2f7;
    border-radius: 999px;
}
.auth-tabs a {
    display: flex;
    justify-content: center;
    padding: 10px 12px;
    border-radius: 999px;
    color: var(--navy);
    font-weight: 900;
    transition: background .18s ease, color .18s ease, box-shadow .18s ease;
}
.auth-tabs a.active { background: var(--navy); color: white; box-shadow: 0 8px 22px rgba(11,20,36,.22); }
.auth-tabs a:not(.active):hover { background: white; }
.customer-auth-form { display: grid; gap: 15px; }
.customer-auth-form label { display: grid; gap: 7px; color: var(--navy); font-weight: 800; }
.customer-auth-form input[type="email"], .customer-auth-form input[type="password"] {
    border-color: #d8e0ea;
    background: #f8fafc;
    transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}
.customer-auth-form input:focus {
    outline: none;
    border-color: var(--accent);
    background: white;
    box-shadow: 0 0 0 4px rgba(193,18,31,.12);
}
.auth-consent {
    grid-template-columns: auto 1fr;
    align-items: flex-start;
    gap: 10px !important;
    color: var(--muted) !important;
    font-weight: 700 !important;
}
.auth-consent a, .auth-link { color: var(--accent); font-weight: 900; }
.auth-link { display: inline-flex; margin-top: 18px; transition: color .18s ease; }
.auth-link:hover { color: var(--accent-dark); }
.auth-submit { margin-top: 4px; box-shadow: 0 14px 28px rgba(193,18,31,.22); transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.auth-submit:hover { transform: translateY(-1px); box-shadow: 0 18px 34px rgba(193,18,31,.28); }
.auth-benefits-panel {
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(160deg, rgba(11,20,36,.72), rgba(11,20,36,.36));
}
.auth-benefits-panel .eyebrow { color: #fca5a5; }
.auth-benefits-panel h2 { max-width: 420px; }
.auth-benefits-panel ul { list-style: none; display: grid; gap: 14px; padding: 0; margin: 24px 0 0; }
.auth-benefits-panel li { display: flex; align-items: center; gap: 12px; color: rgba(255,255,255,.86); font-weight: 800; }
.auth-benefits-panel li span {
    width: 26px;
    height: 26px;
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 999px;
    background: rgba(193,18,31,.95);
    color: white;
    font-size: 14px;
}
.language-switcher { display: flex; gap: 4px; align-items: center; }
.language-switcher a {
    padding: 6px 8px;
    border-radius: 6px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}
.language-switcher a.active { background: var(--navy); color: white; }
.public-language-selector {
    position: relative;
    min-width: 174px;
    z-index: 45;
}
.public-language-selector summary {
    list-style: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 40px;
    padding: 8px 13px;
    border: 1px solid rgba(15, 23, 42, .12);
    border-radius: 999px;
    background: linear-gradient(180deg, #ffffff, #f8fafc);
    color: var(--ink);
    box-shadow: 0 10px 26px rgba(15, 23, 42, .08);
    font-size: 13px;
    font-weight: 800;
    user-select: none;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.public-language-selector summary:hover {
    border-color: rgba(193, 18, 31, .28);
    box-shadow: 0 14px 34px rgba(15, 23, 42, .12);
}
.public-language-selector summary::-webkit-details-marker { display: none; }
.public-language-selector summary::after {
    content: "";
    width: 7px;
    height: 7px;
    margin-left: 2px;
    border-right: 2px solid #475569;
    border-bottom: 2px solid #475569;
    transform: rotate(45deg) translateY(-2px);
    transition: transform .18s ease;
}
.public-language-selector[open] summary::after { transform: rotate(225deg) translateY(-1px); }
.language-globe {
    display: inline-grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border-radius: 999px;
    background: #eef2f7;
    font-size: 13px;
    line-height: 1;
}
.language-current {
    color: #334155;
    white-space: nowrap;
}
.language-current strong {
    color: var(--navy);
    letter-spacing: .04em;
    margin-right: 4px;
}
.language-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 12px);
    z-index: 80;
    width: 232px;
    padding: 8px;
    border: 1px solid rgba(15, 23, 42, .1);
    border-radius: 14px;
    background: white;
    box-shadow: 0 22px 54px rgba(15, 23, 42, .18);
    overflow: hidden;
}
.language-menu a {
    display: grid;
    grid-template-columns: 46px 1fr;
    align-items: center;
    gap: 10px;
    padding: 11px 10px;
    border-radius: 8px;
    color: var(--ink);
    font-weight: 800;
    transition: background .16s ease, color .16s ease, transform .16s ease;
}
.language-menu a:hover {
    background: #f3f6fa;
    transform: translateX(2px);
}
.language-menu a.active {
    background: var(--navy);
    color: white;
}
.language-menu a span {
    font-size: 12px;
    letter-spacing: .08em;
    color: var(--accent);
}
.language-menu a.active span { color: white; }
.language-menu a small {
    color: inherit;
    opacity: .78;
    font-size: 13px;
}
.account-tabs {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    overflow: visible;
    padding: 8px 0 18px;
    margin-bottom: 18px;
}
.account-tabs a {
    white-space: nowrap;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: white;
    color: var(--navy);
    font-weight: 800;
}
.customer-hero .btn,
.customer-hero .btn.ghost {
    color: #fff;
    border-color: rgba(255,255,255,.58);
    background: rgba(255,255,255,.08);
}
.customer-hero .btn:hover,
.customer-hero .btn.ghost:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

/* Premium marketplace inventory */
.marketplace-layout { grid-template-columns: minmax(260px, 310px) minmax(0, 1fr); }
.marketplace-hero {
    --hero-overlay-left: rgba(7, 15, 30, 0.76);
    --hero-overlay-middle: rgba(7, 15, 30, 0.42);
    --hero-overlay-right: rgba(7, 15, 30, 0.12);
}
.marketplace-trust-strip {
    width: min(1180px, calc(100% - 36px));
    margin: 24px auto 28px;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 1px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--line);
    box-shadow: 0 12px 28px rgba(15,23,42,.09);
}
.marketplace-trust-strip div {
    display: flex;
    align-items: center;
    gap: 7px;
    min-height: 46px;
    padding: 9px 11px;
    background: white;
    color: #253044;
    font-size: 12px;
    line-height: 1.25;
    font-weight: 900;
}
.marketplace-trust-strip span { color: var(--accent); }
.premium-filters {
    gap: 9px;
    border: 1px solid rgba(15, 23, 42, .07);
    border-radius: 16px;
    box-shadow: 0 12px 28px rgba(15,23,42,.045);
}
.filter-title { align-items: flex-start; gap: 12px; }
.filter-title span { display: block; color: var(--muted); font-size: 12px; font-weight: 700; }
.filter-section {
    display: grid;
    gap: 8px;
    padding: 12px 0;
    border-top: 1px solid #eef2f6;
}
.filter-section:first-of-type { border-top: 0; padding-top: 0; }
.filter-section summary {
    cursor: pointer;
    color: var(--navy);
    font-size: 13px;
    font-weight: 900;
    list-style: none;
}
.filter-section summary::-webkit-details-marker { display: none; }
.filter-section summary::after {
    content: "+";
    float: right;
    color: var(--accent);
    font-weight: 900;
}
.filter-section[open] summary::after { content: "-"; }
.filter-section label,
.premium-filters label { gap: 5px; color: #425069; font-size: 12px; font-weight: 850; }
.premium-filters input,
.premium-filters select {
    min-height: 34px;
    padding: 7px 10px;
    border-color: #e5ebf2;
    border-radius: 9px;
    background-color: #fbfcfe;
    font-size: 13px;
}
.filter-group { display: grid; gap: 7px; font-weight: 800; }
.filter-group > span { color: #425069; font-size: 12px; }
.filter-actions {
    position: sticky;
    bottom: 0;
    display: grid;
    gap: 7px;
    padding-top: 12px;
    background: linear-gradient(180deg, rgba(255,255,255,.78), white 22%);
}
.filter-actions .btn {
    min-height: 36px;
    border-radius: 9px;
    font-size: 13px;
}
.result-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    margin-bottom: 22px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: white;
    box-shadow: 0 8px 24px rgba(15,23,42,.05);
}
.result-toolbar strong { display: block; color: var(--navy); }
.result-toolbar span { color: var(--muted); font-size: 13px; }
.sort-form label { grid-template-columns: auto minmax(170px, 1fr); align-items: center; color: var(--muted); font-size: 13px; }
.sort-form select { min-height: 40px; padding: 8px 12px; }
.mobile-filter-panel { display: none; }
.vehicle-main { min-width: 0; }
.vehicle-card-side { display: grid; gap: 7px; align-content: start; justify-items: stretch; min-width: 160px; text-align: right; }
.vehicle-card-side .price { margin: 0 0 4px; font-size: 22px; }
.vehicle-card-side .btn { min-height: 34px; padding: 7px 10px; font-size: 12px; }
.equipment-highlights { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.equipment-highlights span { padding: 5px 8px; border-radius: 999px; background: #fff1f2; color: #991b1b; font-size: 12px; font-weight: 900; }
.card-status-note { max-width: 190px; font-size: 13px; }
.stock-badge {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    border: 1px solid #e4e9f0;
    border-radius: 999px;
    background: #f7f9fc;
    color: #253044;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .015em;
}
.card-badges .stock-badge { padding: 6px 10px; font-size: 13px; }
.detail-stock-badge {
    margin: 0 0 10px;
    padding: 8px 12px;
    font-size: 15px;
}
.premium-detail { grid-template-columns: minmax(0, 1fr) minmax(360px, 430px); gap: 22px; }
.premium-detail-panel { padding: 20px; }
.premium-detail-panel h1 { margin-top: 0; font-size: 24px; line-height: 1.18; }
.premium-detail-panel .price { margin: 10px 0; font-size: 30px; }
.premium-detail-panel .contact-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 14px;
}
.premium-detail-panel .contact-actions .btn { min-height: 50px; }
.premium-detail-panel .detail-cta {
    min-height: 52px;
    padding: 12px 18px;
    border-radius: 12px;
    font-weight: 600;
    letter-spacing: 0.2px;
    box-shadow: none;
    font-size: 15px;
    line-height: 1.2;
    transition: background 0.22s ease, color 0.22s ease, border-color 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
}
.premium-detail-panel .detail-cta:hover,
.premium-detail-panel .detail-cta:focus-visible {
    transform: translateY(-1px);
    outline: none;
}
.premium-detail-panel .detail-cta-buy {
    background: #B11217;
    border-color: #B11217;
    color: #FFFFFF;
    box-shadow: 0 10px 25px rgba(177, 18, 23, 0.18);
}
.premium-detail-panel .detail-cta-buy:hover,
.premium-detail-panel .detail-cta-buy:focus-visible {
    background: #980F14;
    border-color: #980F14;
    color: #FFFFFF;
    box-shadow: 0 16px 34px rgba(177, 18, 23, 0.25);
}
.premium-detail-panel .detail-cta-reserve,
.premium-detail-panel .btn.reserve-action.detail-cta-reserve {
    background: #1F2937;
    border-color: #1F2937;
    color: #FFFFFF;
    font-weight: 600;
    box-shadow: 0 8px 22px rgba(17, 24, 39, 0.18);
}
.premium-detail-panel .detail-cta-reserve:hover,
.premium-detail-panel .detail-cta-reserve:focus-visible,
.premium-detail-panel .btn.reserve-action.detail-cta-reserve:hover,
.premium-detail-panel .btn.reserve-action.detail-cta-reserve:focus-visible {
    background: #111827;
    border-color: #111827;
    color: #FFFFFF;
    box-shadow: 0 14px 30px rgba(17, 24, 39, 0.25);
}
.premium-detail-panel .detail-cta-offer {
    background: #FFFFFF;
    border: 2px solid #B11217;
    color: #B11217;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
}
.premium-detail-panel .detail-cta-offer:hover,
.premium-detail-panel .detail-cta-offer:focus-visible {
    background: #B11217;
    border-color: #B11217;
    color: #FFFFFF;
    box-shadow: 0 14px 28px rgba(177, 18, 23, 0.18);
}
.premium-detail-panel .detail-cta-pdf {
    background: #F3F4F6;
    border: 1px solid #E5E7EB;
    color: #1F2937;
    min-height: 48px;
    box-shadow: none;
}
.premium-detail-panel .detail-cta-pdf:hover,
.premium-detail-panel .detail-cta-pdf:focus-visible {
    background: #E5E7EB;
    border-color: #D1D5DB;
    color: #1F2937;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}
.premium-detail-panel .detail-cta[disabled],
.premium-detail-panel .detail-cta.disabled,
.premium-detail-panel .detail-cta[aria-disabled="true"] {
    opacity: .55;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}
.premium-detail-panel .detail-cta-locked {
    display: grid;
    gap: 8px;
    width: 100%;
    padding: 10px;
    border: 1px solid rgba(31, 41, 55, .10);
    border-radius: 14px;
    background: linear-gradient(180deg, #ffffff 0%, #f7f8fa 100%);
    box-shadow: 0 10px 24px rgba(15, 23, 42, .08);
}
.premium-detail-panel .detail-cta-disabled {
    background: #EEF0F3;
    border: 1px solid #D7DBE1;
    color: #4B5563;
    opacity: 1;
}
.premium-detail-panel .detail-cta-disabled:hover,
.premium-detail-panel .detail-cta-disabled:focus-visible {
    transform: none;
    box-shadow: none;
}
.premium-detail-panel .detail-cta-existing-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 12px;
    border-radius: 10px;
    color: #B11217;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    transition: background .2s ease, color .2s ease;
}
.premium-detail-panel .detail-cta-existing-link:hover,
.premium-detail-panel .detail-cta-existing-link:focus-visible {
    background: rgba(177, 18, 23, .08);
    color: #980F14;
}
.page-hero__actions .detail-cta-pdf,
.glass-card .detail-cta-pdf,
.dark-card .detail-cta-pdf {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    color: #EAEAEA;
    backdrop-filter: blur(8px);
}
.page-hero__actions .detail-cta-pdf:hover,
.glass-card .detail-cta-pdf:hover,
.dark-card .detail-cta-pdf:hover {
    background: rgba(255,255,255,0.15);
    color: #FFFFFF;
}

.premium-detail-panel .detail-cta:active {
    transform: translateY(0);
}
.premium-detail .gallery-main img,
.premium-detail .gallery-main .placeholder-car {
    height: min(520px, 52vw);
    min-height: 300px;
    object-fit: contain;
    background: #f8fafc;
}
.offer-section {
    margin-top: 24px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: white;
    box-shadow: 0 10px 28px rgba(15,23,42,.06);
}
.offer-section[hidden] { display: none; }
.offer-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.offer-form .wide,
.offer-form button { grid-column: 1 / -1; }
.premium-empty-state {
    display: grid;
    justify-items: center;
    gap: 10px;
    padding: 46px 26px;
    border-radius: 14px;
    box-shadow: 0 14px 34px rgba(15,23,42,.08);
}
.premium-empty-state strong { font-size: 22px; color: var(--navy); }
.premium-empty-state p { margin: 0; color: var(--muted); max-width: 520px; }
.detail-trust-card {
    width: 100%;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #f8fafc;
}
.detail-trust-card strong { display: block; margin-bottom: 10px; color: var(--navy); }
.detail-trust-card ul { display: grid; gap: 7px; margin: 0; padding-left: 18px; color: #334155; font-size: 13px; font-weight: 800; }

/* Luxury public inventory cards */
.marketplace-vehicle-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
}
.marketplace-vehicle-list .luxury-vehicle-card {
    display: block;
    min-height: auto;
    max-height: none;
    overflow: hidden;
    color: inherit;
    text-decoration: none;
    border: 1px solid rgba(15, 23, 42, .08);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 16px 38px rgba(15, 23, 42, .075);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
    cursor: pointer;
}
.marketplace-vehicle-list .luxury-vehicle-card:hover {
    transform: translateY(-5px);
    border-color: rgba(193, 18, 31, .18);
    box-shadow: 0 28px 62px rgba(15, 23, 42, .14);
}
.marketplace-vehicle-list .vehicle-card--status-locked {
    cursor: pointer;
}
.marketplace-vehicle-list .vehicle-card--status-locked:hover {
    transform: translateY(-2px);
    border-color: rgba(15, 23, 42, .1);
    box-shadow: 0 20px 46px rgba(15, 23, 42, .09);
}
.marketplace-vehicle-list .vehicle-card--status-locked .luxury-card-media img {
    filter: saturate(.82);
}
.marketplace-vehicle-list .luxury-card-media {
    height: 238px;
    min-height: 0;
    aspect-ratio: auto;
    margin: 16px 16px 0;
    border-radius: 16px;
    background: #f4f6f9;
}
.marketplace-vehicle-list .luxury-card-media img {
    transition: transform .42s ease;
}
.marketplace-vehicle-list .luxury-vehicle-card:hover .luxury-card-media img {
    transform: scale(1.035);
}
.luxury-card-media .status {
    top: 13px;
    right: 13px;
    left: auto;
    padding: 5px 10px;
    border: 1px solid rgba(255,255,255,.72);
    background: rgba(255,255,255,.94);
    color: var(--navy);
    box-shadow: 0 8px 22px rgba(15, 23, 42, .12);
    backdrop-filter: blur(8px);
}
.luxury-card-body {
    display: grid;
    gap: 13px;
    padding: 19px 21px 24px;
}
.luxury-card-body .stock-badge {
    margin-bottom: 2px;
    padding: 5px 9px;
}
.luxury-card-body h3 {
    min-height: 43px;
    margin: 0;
    color: var(--navy);
    font-size: 19px;
    line-height: 1.26;
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.luxury-card-body .price {
    margin: 2px 0 1px;
    color: var(--accent);
    font-size: 23px;
    font-weight: 950;
    letter-spacing: .01em;
}
.luxury-meta-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    padding-top: 14px;
    border-top: 1px solid #edf1f5;
}
.luxury-meta-row span {
    display: grid;
    gap: 4px;
    min-width: 0;
    color: #1f2937;
    font-size: 13px;
    font-weight: 850;
    line-height: 1.25;
}
.luxury-meta-row small {
    color: #7a8597;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.vehicle-card-status-notice {
    margin-top: 2px;
    padding: 12px 13px;
    border: 1px solid rgba(15, 23, 42, .08);
    border-radius: 12px;
    background: #f8fafc;
    color: #475569;
    font-size: 13px;
    line-height: 1.42;
    font-weight: 700;
}

.vehicle-status-section {
    padding-top: 24px;
}
.vehicle-status-card {
    display: grid;
    grid-template-columns: minmax(280px, .9fr) minmax(0, 1.1fr);
    gap: 30px;
    align-items: center;
    padding: 28px;
    border: 1px solid rgba(15, 23, 42, .08);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 24px 62px rgba(15, 23, 42, .1);
}
.vehicle-status-card__media {
    overflow: hidden;
    border-radius: 18px;
    background: #f4f6f9;
}
.vehicle-status-card__media img,
.vehicle-status-card__media .placeholder-car {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    object-position: center center;
    background: #f4f6f9;
}
.vehicle-status-card__body {
    display: grid;
    gap: 14px;
    min-width: 0;
}
.vehicle-status-card__body h1 {
    margin: 0;
    color: var(--navy);
    font-size: clamp(28px, 3vw, 42px);
    line-height: 1.08;
    letter-spacing: -.02em;
}
.vehicle-status-card__body p {
    margin: 0;
    max-width: 680px;
    color: #475569;
    font-size: 16px;
    line-height: 1.65;
}
.vehicle-status-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 6px;
}

/* Luxury public detail */
.premium-detail {
    grid-template-columns: minmax(0, 1.08fr) minmax(360px, 440px);
    gap: 28px;
}
.premium-detail .vehicle-gallery {
    display: grid;
    grid-template-columns: 1fr;
    align-content: start;
}
.premium-detail .gallery-main {
    border-radius: 18px;
    box-shadow: 0 22px 56px rgba(15, 23, 42, .10);
}
.premium-detail .gallery-main img,
.premium-detail .gallery-main .placeholder-car {
    height: min(520px, 50vw);
    min-height: 330px;
    object-fit: contain;
    background: #f7f9fc;
}
.premium-detail .gallery-thumbs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 2px 2px 8px;
    scrollbar-width: thin;
}
.premium-detail .gallery-thumb {
    flex: 0 0 118px;
}
.premium-detail .gallery-thumbs img,
.premium-detail .gallery-thumb img {
    height: 78px;
    border-radius: 12px;
    cursor: pointer;
}
.premium-detail-panel {
    border-top: 0;
    border-radius: 18px;
    padding: 22px;
    box-shadow: 0 22px 56px rgba(15, 23, 42, .10);
}
.premium-detail-panel h1 {
    font-size: 27px;
}
.detail-key-specs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 18px 0 0;
}
.detail-key-specs div {
    display: grid;
    gap: 4px;
    padding: 12px;
    border: 1px solid #edf1f6;
    border-radius: 12px;
    background: #f8fafc;
}
.detail-key-specs dt {
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.detail-key-specs dd {
    margin: 0;
    color: var(--navy);
    font-size: 13px;
    font-weight: 900;
}
.premium-detail-panel .contact-actions {
    margin-top: 18px;
}
.detail-trust-card {
    padding: 14px;
    border-radius: 14px;
}
.detail-trust-card ul {
    grid-template-columns: 1fr 1fr;
    gap: 8px 14px;
    padding-left: 18px;
    font-size: 12px;
}

@media (max-width: 980px) {
    .marketplace-trust-strip { grid-template-columns: repeat(3, 1fr); }
    .desktop-filters { display: none; }
    .mobile-filter-panel { display: block; margin-bottom: 14px; }
    .mobile-filter-panel summary {
        padding: 13px 15px;
        border: 1px solid var(--line);
        border-radius: 10px;
        background: white;
        font-weight: 900;
        cursor: pointer;
    }
    .mobile-filter-panel .filters { margin-top: 10px; }
    .vehicle-card-side { justify-items: start; text-align: left; min-width: 0; }
    .premium-detail { grid-template-columns: 1fr; }
    .premium-detail-panel { position: static; }
    .marketplace-vehicle-list { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
    .marketplace-trust-strip { grid-template-columns: 1fr 1fr; margin-top: 18px; }
    .result-toolbar { align-items: stretch; flex-direction: column; }
    .sort-form label { grid-template-columns: 1fr; }
    .marketplace-vehicle-list .vehicle-card {
        max-height: none;
    }
    .marketplace-vehicle-list .vehicle-media,
    .marketplace-vehicle-list .luxury-card-media {
        height: 220px;
        aspect-ratio: auto;
        border-radius: 14px;
    }
    .filter-actions {
        position: static;
    }
    .offer-form { grid-template-columns: 1fr; }
    .luxury-meta-row { grid-template-columns: 1fr; }
    .luxury-card-body { padding: 17px 18px 21px; }
    .luxury-card-body h3 { min-height: 0; }
    .premium-detail .gallery-main img,
    .premium-detail .gallery-main .placeholder-car { min-height: 250px; height: 340px; }
    .premium-detail .gallery-thumb { flex-basis: 92px; }
    .vehicle-lightbox { padding: 54px 14px; }
    .vehicle-lightbox-nav {
        width: 42px;
        height: 58px;
        font-size: 34px;
    }
    .vehicle-lightbox-nav.prev { left: 8px; }
    .vehicle-lightbox-nav.next { right: 8px; }
    .vehicle-lightbox-close { top: 12px; right: 12px; }
    .detail-key-specs,
    .detail-trust-card ul { grid-template-columns: 1fr; }
    .delivery-method-grid,
    .reservation-summary-grid,
    .reservation-info-grid { grid-template-columns: 1fr; }
    .account-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        scrollbar-width: none;
        padding-bottom: 10px;
    }
    .account-tabs::-webkit-scrollbar { display: none; }
}
.customer-hero {
    padding: 22px;
    background: linear-gradient(135deg, #101827 0%, #243247 100%);
    color: white;
    border-radius: var(--radius);
}
.customer-hero .eyebrow { color: #cbd5e1; }
.verification-card {
    border: 1px solid #f2c94c;
    background: #fff8df;
    border-radius: var(--radius);
    padding: 18px;
    margin: 0 0 22px;
}
.verification-card p { margin: 8px 0 0; color: #5f4b13; }
.verification-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.verification-actions .btn[disabled] { opacity: .6; cursor: not-allowed; }
.status-badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    background: #e8edf4;
    color: #233048;
}
.status-badge.ok { background: #def7ec; color: #0d6948; }
.status-badge.pending { background: #fff1d6; color: #895200; }
.status-badge.info { background: #dbeafe; color: #1d4ed8; }
.status-badge.danger { background: #fee2e2; color: #991b1b; }
.status-badge.muted { background: #e8edf4; color: #3d4b62; }
.order-payment-summary {
    display: grid;
    gap: 8px;
    margin: 14px 0;
}
.order-payment-summary div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}
.order-payment-summary dt {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}
.order-payment-summary dd {
    margin: 0;
    color: var(--navy);
    font-weight: 900;
}
.reviews-section {
    overflow: hidden;
}
.reviews-head {
    align-items: flex-end;
}
.reviews-head p:not(.eyebrow) {
    max-width: 680px;
    margin: 8px 0 0;
    color: var(--muted);
}
.reviews-controls {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}
.reviews-section .reviews-controls > button {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    background: #0B1220;
    color: #FFFFFF;
    box-shadow: 0 14px 35px rgba(15, 23, 42, 0.22);
    cursor: pointer;
    opacity: 1;
    appearance: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}
.reviews-section .reviews-controls > button svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
    display: block;
}
.reviews-section .reviews-controls > button:hover {
    transform: translateY(-2px);
    background: #A11217;
    border-color: #A11217;
    box-shadow: 0 16px 38px rgba(161, 18, 23, 0.26);
}
.reviews-section .reviews-controls > button:active {
    transform: translateY(0) scale(0.98);
}
.reviews-section .reviews-controls > button:focus-visible {
    outline: 3px solid rgba(161, 18, 23, 0.32);
    outline-offset: 3px;
}
.reviews-viewport {
    overflow: hidden;
    margin-top: 24px;
}
.reviews-track {
    display: flex;
    gap: 18px;
    will-change: transform;
    transition: transform 0.55s cubic-bezier(0.2, 0.72, 0.22, 1);
}
.review-card {
    flex: 0 0 calc((100% - 36px) / 3);
    min-height: 280px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 24px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 22px;
    background:
        linear-gradient(145deg, rgba(255,255,255,0.96), rgba(248,250,252,0.98)),
        #fff;
    box-shadow: 0 24px 58px rgba(15, 23, 42, 0.1);
}
.review-card__top,
.review-card__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}
.review-stars {
    color: #b91c1c;
    letter-spacing: 2px;
    font-size: 15px;
}
.review-stars span {
    color: #d8dee8;
}
.review-card__top > span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
}
.review-card__text {
    flex: 1;
    margin: 0;
    color: #1f2937;
    font-size: 15px;
    line-height: 1.72;
}
.review-card__meta strong {
    color: var(--navy);
    font-size: 15px;
}
.review-card__meta span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}
.review-card__type {
    width: fit-content;
    margin: 0;
    padding: 7px 11px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.06);
    color: var(--navy);
    font-size: 12px;
    font-weight: 900;
}
.reviews-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 22px;
}
.reviews-dots button {
    width: 9px;
    height: 9px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: #cbd5e1;
    cursor: pointer;
    transition: width 0.2s ease, background 0.2s ease;
}
.reviews-dots button.active {
    width: 28px;
    background: var(--red);
}
.reviews-section--grid .reviews-track,
.reviews-grid .reviews-track {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    transform: none !important;
}
.reviews-section--grid .review-card {
    flex: none;
}
.review-snippet {
    display: grid;
    gap: 8px;
    padding: 15px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.08);
}
.review-snippet p {
    margin: 0;
    color: var(--navy);
    font-size: 14px;
    line-height: 1.55;
    font-weight: 800;
}
.review-snippet small {
    color: var(--muted);
    font-weight: 700;
}
.platforms-section {
    margin-top: 34px;
}
.platforms-panel {
    position: relative;
    overflow: hidden;
    padding: 30px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 26px;
    background:
        linear-gradient(135deg, rgba(255,255,255,0.96), rgba(248,250,252,0.92)),
        #fff;
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.11);
}
.platforms-panel::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 5px;
    background: linear-gradient(180deg, var(--red), rgba(185, 28, 28, 0.2));
}
.platforms-copy {
    display: grid;
    gap: 8px;
    max-width: 760px;
    margin-bottom: 24px;
}
.platforms-copy h2,
.platforms-copy p {
    margin: 0;
}
.platforms-copy p:not(.eyebrow) {
    color: var(--muted);
    line-height: 1.65;
}
.platforms-marquee {
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.platforms-track {
    display: flex;
    width: max-content;
    gap: 14px;
    animation: platforms-scroll 42s linear infinite;
}
.platforms-panel:hover .platforms-track {
    animation-play-state: paused;
}
.platforms-grid {
    display: none;
}
.platform-badge {
    min-width: 150px;
    min-height: 62px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 18px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.82);
    color: var(--navy);
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 0.01em;
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.07);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.platform-badge:hover {
    transform: translateY(-2px);
    border-color: rgba(185, 28, 28, 0.24);
    box-shadow: 0 22px 46px rgba(15, 23, 42, 0.12);
}
.platform-badge img {
    max-width: 122px;
    max-height: 34px;
    object-fit: contain;
    filter: grayscale(1);
    opacity: 0.72;
    transition: filter 0.2s ease, opacity 0.2s ease;
}
.platform-badge:hover img {
    filter: grayscale(0);
    opacity: 1;
}
.platform-logo--mobile-de,
.platform-logo--mascus,
.platform-logo--caraworld,
.platform-logo--truckscout24 {
    max-width: 178px;
    max-height: 52px;
    opacity: 0.86;
    transform: scale(1.08);
    transform-origin: center;
}
.platform-badge:hover .platform-logo--mobile-de,
.platform-badge:hover .platform-logo--mascus,
.platform-badge:hover .platform-logo--caraworld,
.platform-badge:hover .platform-logo--truckscout24 {
    opacity: 1;
    transform: scale(1.12);
}
.platforms-section--compact {
    margin-top: 24px;
}
.platforms-section--compact .platforms-panel {
    padding: 22px;
    border-radius: 18px;
}
.platforms-section--compact .platforms-copy {
    margin-bottom: 16px;
}
.platforms-section--compact .platforms-copy h2 {
    font-size: 20px;
}
.platforms-section--compact .platforms-marquee {
    display: none;
}
.platforms-section--compact .platforms-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}
.platforms-section--compact .platform-badge {
    min-width: 0;
    min-height: 52px;
    font-size: 12px;
}
@keyframes platforms-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}
.account-card { margin-top: 18px; }
.timeline-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}
.document-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}
.document-card {
    display: grid;
    gap: 10px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: white;
    box-shadow: 0 8px 24px rgba(17, 24, 39, .06);
}
.document-card > span {
    color: var(--muted);
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 900;
}
.order-timeline {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}
.order-timeline span {
    height: 5px;
    border-radius: 99px;
    background: #d6a744;
}
.message-thread {
    display: grid;
    gap: 14px;
}
.message-thread article {
    background: white;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 16px;
    display: grid;
    gap: 8px;
}
.log-body {
    white-space: pre-wrap;
    background: #f6f8fb;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 12px;
    overflow-x: auto;
}

@media (max-width: 980px) {
    .vehicle-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .marketplace-vehicle-list { grid-template-columns: 1fr; }
    .marketplace-vehicle-list .vehicle-card:not(.luxury-vehicle-card) { grid-template-columns: 240px minmax(0, 1fr); }
    .marketplace-vehicle-list .vehicle-info { grid-template-columns: 1fr; }
    .marketplace-vehicle-list .vehicle-info .price,
    .marketplace-vehicle-list .vehicle-info .card-actions {
        grid-column: 1;
        justify-self: start;
        text-align: left;
        max-width: none;
    }
    .order-success-layout { grid-template-columns: 1fr; }
    .inventory-layout, .detail-layout, .contact-grid, .split-section { grid-template-columns: 1fr; }
    .filters, .detail-panel { position: static; }
    .hero-search { grid-template-columns: 1fr 1fr; }
    .admin-body { grid-template-columns: 1fr; }
    .admin-sidebar { position: static; }
    .form-grid, .stat-grid, .description-tabs, .document-grid, .document-action-grid, .equipment-sections, .check-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 700px) {
    .site-header { align-items: flex-start; }
    .main-nav {
        display: none;
        position: absolute;
        left: 18px;
        right: 18px;
        top: 72px;
        flex-direction: column;
        align-items: stretch;
        background: white;
        border: 1px solid var(--line);
        border-radius: var(--radius);
        padding: 14px;
        box-shadow: var(--shadow);
    }
    .main-nav.open { display: flex; }
    .nav-toggle { display: block; margin-left: auto; }
    .hero { min-height: 640px; padding-top: 92px; }
    .hero-search, .vehicle-grid, .trust-strip, .gallery, .form-grid, .stat-grid, .photo-admin-grid, .description-tabs, .document-grid, .document-action-grid, .equipment-sections, .check-grid, .photo-preview-grid { grid-template-columns: 1fr; }
    .marketplace-vehicle-list .vehicle-card:not(.luxury-vehicle-card) { grid-template-columns: 1fr; }
    .marketplace-vehicle-list .vehicle-media:not(.luxury-card-media) {
        height: auto;
        min-height: 0;
        aspect-ratio: 4 / 3;
        border-radius: 10px 10px 0 0;
    }
    .marketplace-vehicle-list .vehicle-info dl { grid-template-columns: 1fr; }
    .order-vehicle-summary { grid-template-columns: 1fr; }
    .order-vehicle-summary > strong { white-space: normal; }
    .order-success-card { align-items: flex-start; flex-direction: column; }
    .order-success-actions { align-items: stretch; flex-direction: column; }
    .gallery-main img,
    .gallery-main .placeholder-car {
        height: auto;
        min-height: 260px;
        max-height: 430px;
    }
    .gallery-thumbs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .gallery-thumbs img { height: 74px; }
    .premium-detail .gallery-thumbs {
        display: flex;
        grid-template-columns: none;
        overflow-x: auto;
    }
    .premium-detail .gallery-thumb { flex: 0 0 92px; }
    .premium-detail .gallery-thumb img { height: 74px; }
    .customer-auth-shell { padding: 28px 14px; min-height: auto; }
    .customer-auth-card { grid-template-columns: 1fr; border-radius: 14px; }
    .auth-form-panel, .auth-benefits-panel { padding: 24px; }
    .auth-benefits-panel { order: 2; }
    .auth-form-panel h1, .auth-benefits-panel h2 { font-size: 28px; }
    .language-switcher { width: 100%; order: 3; flex-wrap: wrap; margin-top: 8px; }
    .public-language-selector { width: 100%; order: 3; margin-top: 10px; }
    .public-language-selector summary { width: 100%; border-radius: 10px; justify-content: space-between; }
    .language-menu { position: static; width: 100%; margin-top: 8px; box-shadow: 0 12px 28px rgba(15, 23, 42, .12); }
    .language-menu a { min-height: 44px; }
    .trust-strip { transform: none; margin-top: 18px; }
    .section-head, .site-footer, .admin-head { flex-direction: column; align-items: flex-start; }
    .account-tabs { align-items: stretch; }
    .timeline-row { align-items: flex-start; flex-direction: column; }
    .admin-main { padding: 18px; }
    .actions { align-items: stretch; }
}

/* Final premium vehicle detail gallery */
.premium-detail {
    align-items: start;
    gap: 30px;
}

.premium-detail .vehicle-gallery {
    display: grid;
    gap: 14px;
    align-content: start;
}

.premium-detail .gallery-main {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    min-height: 0;
    overflow: hidden;
    border: 1px solid rgba(15, 23, 42, .08);
    border-radius: 22px;
    background:
        radial-gradient(circle at 72% 18%, rgba(255,255,255,.86), rgba(255,255,255,0) 32%),
        linear-gradient(135deg, #f8fafc 0%, #edf1f6 100%);
    box-shadow: 0 24px 62px rgba(15, 23, 42, .14);
}

.premium-detail .gallery-main::before {
    content: "";
    position: absolute;
    inset: 18px;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,.72);
    pointer-events: none;
    z-index: 1;
}

.premium-detail .gallery-main-button {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: zoom-in;
    overflow: hidden;
}

.premium-detail .gallery-main img,
.premium-detail .gallery-main .placeholder-car {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    max-height: none;
    padding: clamp(14px, 2vw, 24px);
    object-fit: contain;
    object-position: center center;
    border-radius: 0;
    background: transparent;
    transition: transform .42s ease, opacity .18s ease;
}

.premium-detail .gallery-main:hover img {
    transform: scale(1.012);
}

.premium-detail .gallery-main-nav {
    position: absolute;
    top: 50%;
    z-index: 4;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border: 1px solid rgba(255,255,255,.55);
    border-radius: 999px;
    color: #fff;
    font-size: 28px;
    line-height: 1;
    background: rgba(9, 18, 34, .72);
    box-shadow: 0 14px 34px rgba(15, 23, 42, .22);
    transform: translateY(-50%);
    transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}

.premium-detail .gallery-main-nav:hover {
    background: rgba(193, 18, 31, .9);
    box-shadow: 0 18px 42px rgba(193, 18, 31, .24);
    transform: translateY(-50%) scale(1.04);
}

.premium-detail .gallery-main-nav.prev { left: 18px; }
.premium-detail .gallery-main-nav.next { right: 18px; }

.premium-detail .gallery-main-count {
    position: absolute;
    top: 16px;
    right: 16px;
    bottom: auto;
    z-index: 4;
    padding: 7px 12px;
    border: 1px solid rgba(255,255,255,.5);
    border-radius: 999px;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0;
    background: rgba(9, 18, 34, .72);
    box-shadow: 0 12px 28px rgba(15, 23, 42, .18);
}

.premium-detail .gallery-thumbs {
    display: flex !important;
    grid-template-columns: none !important;
    gap: 10px;
    overflow-x: auto;
    padding: 2px 2px 9px;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
}

.premium-detail .gallery-thumb {
    flex: 0 0 106px;
    width: 106px;
    height: 74px;
    padding: 3px;
    overflow: hidden;
    border: 1px solid rgba(15, 23, 42, .10);
    border-radius: 13px;
    background: #fff;
    box-shadow: 0 8px 20px rgba(15, 23, 42, .08);
    scroll-snap-align: start;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.premium-detail .gallery-thumb:hover {
    transform: translateY(-1px);
    border-color: rgba(193, 18, 31, .42);
    box-shadow: 0 12px 26px rgba(15, 23, 42, .12);
}

.premium-detail .gallery-thumb.active {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(193, 18, 31, .14), 0 14px 28px rgba(15, 23, 42, .13);
}

.premium-detail .gallery-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 9px;
    object-fit: cover;
    object-position: center center;
}

.vehicleGalleryThumb img,
.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

.vehicle-gallery > .vehicle-lightbox,
.vehicle-gallery > .vehicle-lightbox[hidden] {
    display: none !important;
}

.vehicle-gallery > .vehicle-lightbox.is-open {
    position: fixed !important;
    inset: 0 !important;
    z-index: 9999 !important;
    display: grid !important;
    grid-template-rows: minmax(0, 1fr) auto;
    place-items: center;
    gap: 12px;
    padding: 58px 84px 28px !important;
    background:
        radial-gradient(circle at 50% 18%, rgba(39, 48, 66, .72), rgba(2, 6, 18, .96) 46%),
        rgba(2, 6, 18, .96) !important;
    backdrop-filter: blur(14px);
    animation: galleryFade .18s ease-out;
}

.vehicle-gallery > .vehicle-lightbox.is-open img[data-gallery-lightbox-image] {
    display: block;
    width: auto;
    max-width: min(1240px, 90vw);
    height: auto;
    max-height: 82vh;
    object-fit: contain;
    border-radius: 18px;
    background: #0b1220;
    box-shadow: 0 30px 90px rgba(0, 0, 0, .46);
    animation: galleryScale .2s ease-out;
}

.vehicle-gallery > .vehicle-lightbox.is-open .vehicle-lightbox-close,
.vehicle-gallery > .vehicle-lightbox.is-open .vehicle-lightbox-nav {
    position: fixed;
    z-index: 10001;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 999px;
    color: #fff;
    background: rgba(15, 23, 42, .66);
    box-shadow: 0 18px 44px rgba(0, 0, 0, .32);
    backdrop-filter: blur(10px);
    transition: transform .18s ease, background .18s ease;
}

.vehicle-gallery > .vehicle-lightbox.is-open .vehicle-lightbox-close {
    top: 22px;
    right: 24px;
    width: 44px;
    height: 44px;
    font-size: 28px;
}

.vehicle-gallery > .vehicle-lightbox.is-open .vehicle-lightbox-nav {
    top: 50%;
    width: 54px;
    height: 54px;
    font-size: 34px;
    transform: translateY(-50%);
}

.vehicle-gallery > .vehicle-lightbox.is-open .vehicle-lightbox-nav.prev { left: 24px; }
.vehicle-gallery > .vehicle-lightbox.is-open .vehicle-lightbox-nav.next { right: 24px; }

.vehicle-gallery > .vehicle-lightbox.is-open .vehicle-lightbox-close:hover,
.vehicle-gallery > .vehicle-lightbox.is-open .vehicle-lightbox-nav:hover {
    background: rgba(193, 18, 31, .9);
    transform: scale(1.04);
}

.vehicle-gallery > .vehicle-lightbox.is-open .vehicle-lightbox-nav:hover {
    transform: translateY(-50%) scale(1.04);
}

.vehicle-gallery > .vehicle-lightbox.is-open .vehicle-lightbox-count {
    position: fixed;
    left: 50%;
    top: 24px;
    bottom: auto;
    z-index: 10001;
    padding: 8px 13px;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 999px;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    background: rgba(15, 23, 42, .72);
    box-shadow: 0 12px 34px rgba(0, 0, 0, .28);
    transform: translateX(-50%);
}

.vehicle-lightbox-thumbs {
    z-index: 10000;
    display: flex;
    gap: 8px;
    max-width: min(860px, 86vw);
    overflow-x: auto;
    padding: 10px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 17px;
    background: rgba(15, 23, 42, .56);
    box-shadow: 0 18px 48px rgba(0, 0, 0, .26);
    backdrop-filter: blur(12px);
}

.vehicle-lightbox-thumb {
    flex: 0 0 76px;
    width: 76px;
    height: 52px;
    padding: 2px;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 10px;
    background: rgba(255,255,255,.08);
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.vehicle-lightbox-thumb:hover {
    transform: translateY(-1px);
    border-color: rgba(255,255,255,.52);
}

.vehicle-lightbox-thumb.active {
    border-color: #fff;
    box-shadow: 0 0 0 2px rgba(193, 18, 31, .62);
}

.vehicle-lightbox-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 7px;
    object-fit: cover;
}

@keyframes galleryFade {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes galleryScale {
    from { opacity: .7; transform: scale(.985); }
    to { opacity: 1; transform: scale(1); }
}

body.lightbox-open {
    overflow: hidden;
}

@media (max-width: 980px) {
    .premium-detail {
        gap: 22px;
    }

    .premium-detail .gallery-main {
        aspect-ratio: 4 / 3;
        border-radius: 18px;
    }

    .premium-detail .gallery-main img,
    .premium-detail .gallery-main .placeholder-car {
        padding: 14px;
    }

    .premium-detail .gallery-main-nav {
        width: 40px;
        height: 40px;
        font-size: 25px;
    }

    .premium-detail .gallery-main-nav.prev { left: 11px; }
    .premium-detail .gallery-main-nav.next { right: 11px; }

    .premium-detail .gallery-main-count {
        top: 12px;
        right: 12px;
    }

    .premium-detail .gallery-thumb {
        flex-basis: 92px;
        width: 92px;
        height: 64px;
    }

    .vehicle-gallery > .vehicle-lightbox.is-open {
        padding: 54px 14px 18px !important;
    }

    .vehicle-gallery > .vehicle-lightbox.is-open img[data-gallery-lightbox-image] {
        max-width: 94vw;
        max-height: 76vh;
        border-radius: 14px;
    }

    .vehicle-gallery > .vehicle-lightbox.is-open .vehicle-lightbox-nav {
        width: 44px;
        height: 44px;
        font-size: 29px;
    }

    .vehicle-gallery > .vehicle-lightbox.is-open .vehicle-lightbox-nav.prev { left: 10px; }
    .vehicle-gallery > .vehicle-lightbox.is-open .vehicle-lightbox-nav.next { right: 10px; }
    .vehicle-gallery > .vehicle-lightbox.is-open .vehicle-lightbox-close { top: 12px; right: 12px; }

    .vehicle-lightbox-thumbs {
        max-width: 94vw;
        padding: 8px;
    }
}

/* Minimal reliable public gallery behavior layer */
#vehicleGalleryMain,
.vehicleGalleryThumb,
#vehicleGalleryOpen,
#vehicleGalleryInlinePrev,
#vehicleGalleryInlineNext,
#vehicleGalleryPrev,
#vehicleGalleryNext,
#vehicleGalleryClose,
.vehicleGalleryModalThumb {
    cursor: pointer;
}

#vehicleGalleryModal {
    display: none !important;
    position: fixed !important;
    inset: 0 !important;
    z-index: 100000 !important;
    align-items: center;
    justify-content: center;
    padding: 56px 84px 28px !important;
    background: rgba(2, 6, 18, .96) !important;
}

#vehicleGalleryModal.is-open {
    display: flex !important;
}

#vehicleGalleryModal #vehicleGalleryModalImage {
    display: block;
    max-width: min(1240px, 90vw);
    max-height: 82vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 16px;
    background: #0b1220;
    box-shadow: 0 30px 90px rgba(0, 0, 0, .48);
}

#vehicleGalleryModal #vehicleGalleryClose,
#vehicleGalleryModal #vehicleGalleryPrev,
#vehicleGalleryModal #vehicleGalleryNext {
    position: fixed;
    z-index: 100002;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 999px;
    color: #fff;
    background: rgba(15, 23, 42, .72);
    box-shadow: 0 18px 44px rgba(0, 0, 0, .32);
}

#vehicleGalleryModal #vehicleGalleryClose {
    top: 20px;
    right: 22px;
    width: 44px;
    height: 44px;
    font-size: 28px;
}

#vehicleGalleryModal #vehicleGalleryPrev,
#vehicleGalleryModal #vehicleGalleryNext {
    top: 50%;
    width: 54px;
    height: 54px;
    font-size: 34px;
    transform: translateY(-50%);
}

#vehicleGalleryModal #vehicleGalleryPrev { left: 24px; }
#vehicleGalleryModal #vehicleGalleryNext { right: 24px; }

#vehicleGalleryModal #vehicleGalleryCounter {
    position: fixed;
    left: 50%;
    top: 24px;
    z-index: 100002;
    padding: 8px 13px;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 999px;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    background: rgba(15, 23, 42, .72);
    transform: translateX(-50%);
}

#vehicleGalleryModal .vehicle-lightbox-thumbs {
    position: fixed;
    left: 50%;
    bottom: 24px;
    z-index: 100001;
    transform: translateX(-50%);
}

@media (max-width: 700px) {
    #vehicleGalleryModal {
        padding: 54px 12px 18px !important;
    }

    #vehicleGalleryModal #vehicleGalleryModalImage {
        max-width: 94vw;
        max-height: 76vh;
    }

    #vehicleGalleryModal #vehicleGalleryPrev,
    #vehicleGalleryModal #vehicleGalleryNext {
        width: 42px;
        height: 42px;
        font-size: 28px;
    }

    #vehicleGalleryModal #vehicleGalleryPrev { left: 8px; }
    #vehicleGalleryModal #vehicleGalleryNext { right: 8px; }
}

@media (max-width: 760px) {
    .page-hero {
        --hero-overlay-left: rgba(7, 15, 30, 0.84);
        --hero-overlay-middle: rgba(7, 15, 30, 0.62);
        --hero-overlay-right: rgba(7, 15, 30, 0.36);
        min-height: 300px;
        padding: 86px 18px 42px;
    }
    .page-hero--compact,
    .page-hero.compact {
        min-height: 240px;
        padding-top: 72px;
        padding-bottom: 34px;
    }
    .page-hero__title { font-size: 30px; }
    .page-hero__subtitle { font-size: 15px; }
    .page-hero__badges,
    .page-hero__actions { gap: 8px; }
    .page-hero--account .page-hero__content,
    .page-hero--account-hero .page-hero__content {
        padding-right: 0;
    }
    .page-hero--account .page-hero__actions,
    .page-hero--account-hero .page-hero__actions {
        position: static;
        margin-top: 16px;
    }
    .page-hero__actions .btn,
    .page-hero__actions form { width: 100%; }
    .page-hero-search {
        grid-template-columns: 1fr;
        margin-top: 18px;
    }
    .section .page-hero {
        border-radius: 12px;
        margin-left: -2px;
        margin-right: -2px;
    }
    .inquiry-card__head,
    .admin-inquiry-summary .summary-grid {
        grid-template-columns: 1fr;
        display: grid;
    }
    .inquiry-card__meta {
        justify-items: start;
        text-align: left;
    }
    .reviews-head {
        align-items: flex-start;
    }
    .reviews-controls {
        width: 100%;
        justify-content: flex-start;
    }
    .reviews-section .reviews-controls > button {
        width: 42px;
        height: 42px;
        border-radius: 12px;
    }
    .reviews-section .reviews-controls > button svg {
        width: 20px;
        height: 20px;
    }
    .review-card {
        flex-basis: 100%;
        min-height: 250px;
        padding: 20px;
    }
    .reviews-track {
        gap: 14px;
    }
    .reviews-section--grid .reviews-track,
    .reviews-grid .reviews-track {
        grid-template-columns: 1fr;
    }
    .platforms-panel {
        padding: 24px 18px;
        border-radius: 20px;
    }
    .platforms-marquee {
        display: none;
    }
    .platforms-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }
    .platform-badge {
        min-width: 0;
        min-height: 54px;
        padding: 11px;
        font-size: 12px;
    }
    .platforms-section--compact .platforms-grid {
        grid-template-columns: 1fr;
    }
}

/* Premium Buyer Feedback carousel controls: final override for live cache/legacy button rules. */
.reviews-carousel-premium-arrow {
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
    min-height: 48px !important;
    border-radius: 14px !important;
    background: #0B1220 !important;
    color: #FFFFFF !important;
    border: 1px solid rgba(255,255,255,0.14) !important;
    box-shadow: 0 14px 35px rgba(15,23,42,0.26) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    cursor: pointer !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    transition: background .18s ease, transform .18s ease, box-shadow .18s ease, border-color .18s ease !important;
}

.reviews-carousel-premium-arrow:hover,
.reviews-carousel-premium-arrow:focus {
    background: #A11217 !important;
    border-color: #A11217 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 18px 40px rgba(161,18,23,0.28) !important;
}

.reviews-carousel-premium-arrow:active {
    transform: translateY(0) scale(.98) !important;
}

.reviews-carousel-premium-arrow svg {
    width: 22px !important;
    height: 22px !important;
    stroke: currentColor !important;
    stroke-width: 2.4 !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
    fill: none !important;
}

@media (max-width: 760px) {
    .reviews-carousel-premium-arrow {
        width: 42px !important;
        height: 42px !important;
        min-width: 42px !important;
        min-height: 42px !important;
        border-radius: 12px !important;
    }

.reviews-carousel-premium-arrow svg {
    width: 20px !important;
    height: 20px !important;
}
}

/* Customer support center */
.support-center {
    display: grid;
    grid-template-columns: minmax(300px, 0.92fr) minmax(320px, 0.98fr) minmax(440px, 1.35fr);
    gap: 32px;
    align-items: start;
    margin-top: 34px;
    min-width: 0;
}

.support-fallback-message {
    grid-column: 1 / -1;
}

.support-panel,
.support-list,
.support-detail {
    background: #fff;
    border: 1px solid rgba(15, 23, 42, .08);
    border-radius: 18px;
    box-shadow: 0 18px 46px rgba(15, 23, 42, .07);
    padding: 28px;
    min-width: 0;
}

.support-panel h2,
.support-list h2,
.support-detail h2 {
    margin: 0 0 10px;
    font-size: clamp(20px, 1.35vw, 24px);
    line-height: 1.14;
    letter-spacing: -.02em;
    overflow-wrap: break-word;
    word-break: normal;
    hyphens: auto;
}

.support-compose form,
.support-reply {
    display: grid;
    gap: 12px;
}

.support-compose label,
.support-reply label {
    font-size: 14px;
    line-height: 1.25;
    font-weight: 700;
    color: #172033;
    overflow-wrap: break-word;
    word-break: normal;
    hyphens: auto;
}

.support-compose input,
.support-compose select,
.support-compose textarea,
.support-reply input:not([type="file"]),
.support-reply select,
.support-reply textarea {
    width: 100%;
    font-size: 15px;
    min-height: 40px;
    border-radius: 10px;
}

.support-list {
    display: grid;
    gap: 12px;
    min-width: 0;
}

.support-list__head,
.support-detail__head {
    display: flex;
    justify-content: space-between;
    gap: 10px 16px;
    align-items: flex-start;
    flex-wrap: wrap;
    margin-bottom: 16px;
    min-width: 0;
}

.support-list__head h2 {
    flex: 0 0 auto;
    margin-bottom: 0;
    font-size: clamp(20px, 1.2vw, 22px);
    white-space: nowrap;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
}

.support-list__head .muted {
    flex: 1 1 180px;
    min-width: 0;
    font-size: 13px;
    line-height: 1.35;
}

.support-thread-card {
    display: grid;
    gap: 6px;
    padding: 16px;
    border: 1px solid rgba(15, 23, 42, .08);
    border-radius: 18px;
    color: inherit;
    text-decoration: none;
    background: #f8fafc;
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.support-thread-card:hover,
.support-thread-card.active {
    transform: translateY(-1px);
    border-color: rgba(161, 18, 23, .28);
    box-shadow: 0 12px 28px rgba(15, 23, 42, .08);
}

.support-thread-card.unread {
    background: #fff7f7;
}

.support-thread-card p {
    margin: 0;
    color: #475569;
    font-size: 14px;
    line-height: 1.35;
    overflow-wrap: break-word;
    word-break: normal;
    hyphens: auto;
}

.support-thread-card strong {
    font-size: 16px;
    line-height: 1.25;
    letter-spacing: -.01em;
    overflow-wrap: break-word;
    word-break: normal;
    hyphens: auto;
}

.support-thread-card small {
    font-size: 12px;
    line-height: 1.3;
    color: #64748b;
}

.notification-dot,
.account-tab-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 7px;
    border-radius: 999px;
    background: #A11217;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
}

.support-timeline {
    display: grid;
    gap: 14px;
    margin: 16px 0;
}

.support-message {
    max-width: min(82%, 620px);
    border-radius: 15px;
    padding: 13px 15px;
    border: 1px solid rgba(15, 23, 42, .08);
    background: #f8fafc;
    min-width: 0;
}

.support-message.from-admin {
    background: #071525;
    color: #fff;
}

.support-message.from-customer {
    margin-left: auto;
    background: #fff;
}

.support-message__meta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 7px;
    color: inherit;
    opacity: .82;
    font-size: 12px;
    line-height: 1.3;
    min-width: 0;
}

.support-message p {
    margin: 0;
    font-size: 14px;
    line-height: 1.48;
    overflow-wrap: break-word;
    word-break: normal;
    hyphens: auto;
}

.attachment-chip {
    display: inline-flex;
    margin: 8px 8px 0 0;
    max-width: 100%;
    padding: 7px 10px;
    border-radius: 10px;
    background: rgba(161, 18, 23, .08);
    color: #A11217;
    text-decoration: none;
    font-weight: 700;
    font-size: 12px;
    line-height: 1.25;
    overflow-wrap: break-word;
    word-break: normal;
}

.support-status.new,
.support-status.open,
.support-status.awaiting_ferkl {
    background: #e0f2fe;
    color: #075985;
}

.support-status.awaiting_customer {
    background: #fef3c7;
    color: #92400e;
}

.support-status.resolved {
    background: #dcfce7;
    color: #166534;
}

.support-status.closed {
    background: #e5e7eb;
    color: #374151;
}

.admin-support-timeline .support-message.from-customer {
    margin-left: 0;
}

@media (max-width: 1180px) {
    .support-center {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 22px;
    }
    .support-detail {
        grid-column: 1 / -1;
    }
    .support-message {
        max-width: 100%;
    }
}

@media (max-width: 1080px) {
    .support-list__head h2 {
        font-size: 20px;
    }
}

@media (max-width: 760px) {
    .premium-detail-panel .detail-cta {
        min-height: 50px;
        font-size: 14px;
    }

    .vehicle-status-card {
        grid-template-columns: 1fr;
        padding: 18px;
        border-radius: 18px;
    }
    .vehicle-status-card__actions .btn {
        width: 100%;
    }

    .support-center {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .support-detail {
        grid-column: auto;
    }
    .support-panel,
    .support-list,
    .support-detail {
        padding: 20px;
        border-radius: 14px;
    }
    .support-panel h2,
    .support-list h2,
    .support-detail h2 {
        font-size: clamp(18px, 5.4vw, 22px);
    }
    .support-message {
        max-width: 100%;
    }
    .support-upload-control__row {
        flex-direction: column;
        align-items: stretch;
    }
}

.support-upload-control__input {
    position: absolute;
    width: 1px !important;
    height: 1px !important;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
}

.support-upload-control__row {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    margin-top: 7px;
    min-width: 0;
}

.support-upload-control__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 10px;
    background: #0B1220;
    color: #fff;
    font-weight: 800;
    font-size: 14px;
    white-space: nowrap;
    cursor: pointer;
}

.support-upload-control__name {
    flex: 1;
    min-width: 0;
    padding: 10px 12px;
    border: 1px solid rgba(15, 23, 42, .1);
    border-radius: 10px;
    background: #f8fafc;
    color: #64748b;
    font-size: 13px;
    line-height: 1.35;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

/* Saved vehicles / favorites */
.luxury-vehicle-card {
    position: relative;
}
.vehicle-card-main-link {
    display: block;
    color: inherit;
    text-decoration: none;
}
.vehicle-save-form {
    position: absolute;
    z-index: 8;
    top: 26px;
    right: 26px;
    margin: 0;
}
.luxury-vehicle-card .luxury-card-media .status {
    left: 13px;
    right: auto;
}
.vehicle-save-button {
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255,255,255,.62);
    border-radius: 14px;
    background: rgba(255,255,255,.9);
    color: #991b1b;
    box-shadow: 0 14px 34px rgba(15,23,42,.18);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    backdrop-filter: blur(12px);
    transition: transform .2s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
}
.vehicle-save-button:hover,
.vehicle-save-button:focus-visible {
    transform: translateY(-1px) scale(1.03);
    background: #fff;
    box-shadow: 0 18px 38px rgba(177,18,23,.2);
    outline: none;
}
.vehicle-save-button.is-saved {
    background: #B11217;
    border-color: #B11217;
    color: #fff;
}
.detail-save-form {
    margin: 0;
}
.premium-detail-panel .detail-cta-save {
    background: #fff;
    border: 1px solid rgba(15,23,42,.12);
    color: #1f2937;
    box-shadow: 0 8px 18px rgba(15,23,42,.06);
}
.premium-detail-panel .detail-cta-save span {
    color: #B11217;
    font-size: 20px;
    margin-right: 4px;
}
.premium-detail-panel .detail-cta-save.is-saved {
    border-color: rgba(177,18,23,.34);
    color: #B11217;
}
.premium-detail-panel .detail-cta-save:hover,
.premium-detail-panel .detail-cta-save:focus-visible {
    background: #fff5f5;
    border-color: #B11217;
    box-shadow: 0 12px 24px rgba(177,18,23,.12);
}
.saved-vehicle-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    margin-top: 28px;
}
.saved-vehicle-card {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 0;
    overflow: hidden;
    border: 1px solid rgba(15,23,42,.09);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 22px 54px rgba(15,23,42,.09);
}
.saved-vehicle-card__media {
    position: relative;
    min-height: 100%;
    background: #eef2f7;
}
.saved-vehicle-card__media img,
.saved-vehicle-card__media .placeholder-car {
    width: 100%;
    height: 100%;
    min-height: 250px;
    object-fit: cover;
}
.saved-vehicle-card__media .status {
    top: 14px;
    right: 14px;
    left: auto;
}
.saved-vehicle-card__body {
    display: grid;
    align-content: start;
    gap: 13px;
    padding: 24px;
}
.saved-vehicle-card__body h2 {
    margin: 0;
    font-size: 21px;
    line-height: 1.2;
    color: #0B1220;
}
.saved-vehicle-specs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
    padding-top: 12px;
    border-top: 1px solid rgba(15,23,42,.08);
}
.saved-vehicle-specs div {
    min-width: 0;
}
.saved-vehicle-specs dt {
    margin: 0 0 4px;
    color: #64748b;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.saved-vehicle-specs dd {
    margin: 0;
    color: #111827;
    font-size: 14px;
    font-weight: 800;
}
.saved-vehicle-note {
    margin: 0;
    padding: 12px 13px;
    border: 1px solid rgba(177,18,23,.12);
    border-radius: 14px;
    background: #fff7f7;
    color: #7f1d1d;
    font-size: 14px;
    line-height: 1.45;
}
.saved-vehicle-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}
.saved-vehicle-actions form {
    margin: 0;
}
.account-empty-state {
    margin-top: 28px;
    padding: 34px;
    border: 1px solid rgba(15,23,42,.08);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 20px 44px rgba(15,23,42,.08);
}
.account-empty-state h2 {
    margin: 0 0 8px;
    color: #0B1220;
}

@media (max-width: 1100px) {
    .saved-vehicle-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
    .vehicle-save-form { top: 24px; right: 24px; }
    .vehicle-save-button { width: 40px; height: 40px; border-radius: 13px; }
    .saved-vehicle-card { grid-template-columns: 1fr; }
    .saved-vehicle-card__media img,
    .saved-vehicle-card__media .placeholder-car { height: 230px; min-height: 230px; }
    .saved-vehicle-specs { grid-template-columns: 1fr; }
    .saved-vehicle-actions { align-items: stretch; }
    .saved-vehicle-actions .btn,
    .saved-vehicle-actions form,
    .saved-vehicle-actions button { width: 100%; }
}

/* Canonical vehicle detail gallery layout. Keep this as the single winning normal-page block. */
section.detail-layout.premium-detail {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(390px, 430px) !important;
  gap: 36px !important;
  align-items: start !important;
}

section.detail-layout.premium-detail > .vehicle-gallery,
section.detail-layout.premium-detail > .premium-detail-panel {
  min-width: 0 !important;
  align-self: start !important;
  margin-top: 0 !important;
  transform: none !important;
}

.premium-detail .gallery-main {
  position: relative !important;
  width: 100% !important;
  aspect-ratio: 16 / 10 !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow: hidden !important;
  border-radius: 22px !important;
  background: #f3f6fa !important;
}

.premium-detail .gallery-main-button {
  position: absolute !important;
  inset: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  height: 100% !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  overflow: hidden !important;
}

.premium-detail .gallery-main img,
.premium-detail .gallery-main #vehicleGalleryMain {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center center !important;
  padding: 16px !important;
  background: transparent !important;
}

.premium-detail .gallery-main-nav {
  position: absolute !important;
  top: 50% !important;
  z-index: 5 !important;
  width: 44px !important;
  height: 44px !important;
  transform: translateY(-50%) !important;
  border-radius: 999px !important;
  background: #1F2937 !important;
  color: #fff !important;
  border: 1px solid rgba(255,255,255,.25) !important;
  box-shadow: 0 14px 32px rgba(15,23,42,.22) !important;
  font-size: 24px !important;
}

.premium-detail .gallery-main-nav.prev {
  left: 16px !important;
}

.premium-detail .gallery-main-nav.next {
  right: 16px !important;
}

.premium-detail .gallery-main-nav:hover {
  background: #B11217 !important;
}

.premium-detail .gallery-thumbs {
  display: flex !important;
  gap: 10px !important;
  overflow-x: auto !important;
  padding: 10px 2px 8px !important;
}

.premium-detail .gallery-thumb {
  flex: 0 0 106px !important;
  width: 106px !important;
  height: 74px !important;
}

@media (max-width: 980px) {
  section.detail-layout.premium-detail {
    grid-template-columns: 1fr !important;
  }

  .premium-detail .gallery-main {
    aspect-ratio: 4 / 3 !important;
  }
}
