/* Motor Kiwi Marketplace — static theme (ported from Lovable prototype) */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&family=Quicksand:wght@500;600&display=swap');

:root {
    --mk-radius: 0.75rem;
    --mk-brand: #7fcf2f;
    --mk-brand-hover: #6eb828;
    --mk-brand-soft: rgba(127, 207, 47, 0.15);
    --mk-brand-foreground: #1a1a1a;
    --mk-ink: #1a1a1a;
    --mk-background: #ffffff;
    --mk-foreground: #1a1a1a;
    --mk-card: #ffffff;
    --mk-muted: #f5f5f4;
    --mk-muted-foreground: #6b7280;
    --mk-border: #e8e8e6;
    --mk-font-sans: 'Montserrat', ui-sans-serif, system-ui, sans-serif;
    --mk-font-sub: 'Quicksand', ui-sans-serif, system-ui, sans-serif;
    --mk-container: 80rem;
    --mk-header-height: 4.5rem;
}

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body.mk-body {
    margin: 0;
    min-height: 100vh;
    background: var(--mk-background);
    color: var(--mk-foreground);
    font-family: var(--mk-font-sans);
    font-weight: 300;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

body.mk-body h1,
body.mk-body h2,
body.mk-body h3,
body.mk-body h4 {
    font-family: var(--mk-font-sans);
    font-weight: 500;
    letter-spacing: -0.01em;
    margin: 0;
}

.mk-font-sub {
    font-family: var(--mk-font-sub);
    font-weight: 500;
}

.mk-container {
    width: 100%;
    max-width: var(--mk-container);
    margin-inline: auto;
    padding-inline: 1rem;
}

@media (min-width: 1024px) {
    .mk-container {
        padding-inline: 2rem;
    }
}

.mk-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Header */
.mk-header {
    position: sticky;
    top: 0;
    z-index: 30;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--mk-border);
}

.mk-header--transparent {
    position: absolute;
    inset-inline: 0;
    top: 0;
    background: transparent;
    border-bottom: none;
}

.mk-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: var(--mk-header-height);
    padding-block: 1rem;
}

.mk-header__logo img {
    height: 2.5rem;
    width: auto;
    display: block;
}

.mk-header--transparent .mk-header__logo img {
    filter: brightness(0) invert(1);
}

.mk-nav {
    display: none;
    align-items: center;
    gap: 2rem;
}

@media (min-width: 1024px) {
    .mk-nav {
        display: flex;
    }
}

.mk-nav a {
    font-family: var(--mk-font-sub);
    font-size: 0.875rem;
    color: var(--mk-foreground);
    text-decoration: none;
    transition: color 0.15s ease;
}

.mk-nav a:hover {
    color: var(--mk-brand);
}

.mk-header--transparent .mk-nav a {
    color: rgba(255, 255, 255, 0.9);
}

.mk-header--transparent .mk-nav a:hover {
    color: var(--mk-brand);
}

.mk-header__actions {
    display: none;
    align-items: center;
    gap: 0.75rem;
}

@media (min-width: 1024px) {
    .mk-header__actions {
        display: flex;
    }
}

.mk-header__menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem;
    border: none;
    background: transparent;
    color: inherit;
    cursor: pointer;
}

@media (min-width: 1024px) {
    .mk-header__menu-toggle {
        display: none;
    }
}

.mk-mobile-nav {
    display: none;
    border-top: 1px solid var(--mk-border);
    background: var(--mk-background);
}

.mk-mobile-nav.is-open {
    display: block;
}

.mk-mobile-nav__inner {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem 1rem;
}

.mk-mobile-nav a {
    font-family: var(--mk-font-sub);
    font-size: 0.875rem;
    color: var(--mk-foreground);
    text-decoration: none;
}

/* Buttons */
.mk-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    border-radius: 9999px;
    font-family: var(--mk-font-sub);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.mk-btn--brand {
    background: var(--mk-brand);
    color: var(--mk-brand-foreground);
}

.mk-btn--brand:hover {
    background: var(--mk-brand-hover);
    box-shadow: 0 8px 24px -8px rgba(127, 207, 47, 0.6);
}

.mk-btn--ghost {
    background: transparent;
    color: var(--mk-foreground);
}

.mk-btn--ghost:hover {
    color: var(--mk-brand);
}

.mk-btn--outline {
    background: transparent;
    border-color: var(--mk-border);
    color: var(--mk-foreground);
}

.mk-btn--outline:hover {
    border-color: var(--mk-brand);
    color: var(--mk-brand);
}

.mk-btn--block {
    width: 100%;
}

.mk-header--transparent .mk-btn--ghost {
    color: #fff;
}

.mk-header--transparent .mk-btn--ghost:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Hero */
.mk-hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.mk-hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.mk-hero__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mk-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.55) 70%, rgba(0, 0, 0, 0.85) 100%);
}

.mk-hero__content {
    position: relative;
    z-index: 1;
    width: 100%;
    padding-block: 4rem 5rem;
}

.mk-hero__eyebrow {
    font-family: var(--mk-font-sub);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--mk-brand);
}

.mk-hero__title {
    margin-top: 0.75rem;
    font-size: clamp(2.25rem, 5vw, 3.75rem);
    color: #fff;
    max-width: 16ch;
}

.mk-hero__lead {
    margin-top: 1rem;
    max-width: 36rem;
    font-size: 1.125rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.8);
}

.mk-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

/* Sections */
.mk-section {
    padding-block: 4rem;
}

.mk-section__eyebrow {
    font-family: var(--mk-font-sub);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--mk-brand);
}

.mk-section__title {
    margin-top: 0.5rem;
    font-size: clamp(1.75rem, 3vw, 2.25rem);
}

.mk-section__lead {
    margin-top: 0.5rem;
    color: var(--mk-muted-foreground);
    font-weight: 300;
}

.mk-section__header {
    margin-bottom: 2rem;
}

/* About strip */
.mk-about {
    display: grid;
    gap: 2.5rem;
    align-items: center;
}

@media (min-width: 768px) {
    .mk-about {
        grid-template-columns: 1fr 1.1fr;
    }
}

.mk-about__image {
    border-radius: 1rem;
    overflow: hidden;
    aspect-ratio: 4 / 5;
}

.mk-about__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Vehicle grid */
.mk-vehicle-grid {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .mk-vehicle-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1280px) {
    .mk-vehicle-grid--3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Vehicle card */
.mk-vehicle-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 1rem;
    border: 1px solid var(--mk-border);
    background: var(--mk-card);
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mk-vehicle-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 50px -20px rgba(127, 207, 47, 0.35);
}

.mk-vehicle-card__media {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--mk-muted);
}

.mk-vehicle-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.mk-vehicle-card:hover .mk-vehicle-card__media img {
    transform: scale(1.05);
}

.mk-vehicle-card__year {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    background: var(--mk-brand);
    color: var(--mk-brand-foreground);
    font-size: 0.75rem;
    font-weight: 500;
}

.mk-vehicle-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 1.25rem;
}

.mk-vehicle-card__make {
    font-family: var(--mk-font-sub);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--mk-muted-foreground);
}

.mk-vehicle-card__badges {
    margin-top: 0.25rem;
}

.mk-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.125rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.625rem;
    font-weight: 500;
}

.mk-badge--dealer {
    background: var(--mk-brand-soft);
    color: var(--mk-brand);
}

.mk-badge--private {
    background: var(--mk-muted);
    color: var(--mk-muted-foreground);
}

.mk-vehicle-card__title {
    margin-top: 0.25rem;
    font-size: 1.125rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mk-vehicle-card__variant {
    font-weight: 300;
    font-size: 1rem;
    color: var(--mk-muted-foreground);
}

.mk-vehicle-card__specs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    margin-top: 1rem;
    font-size: 0.75rem;
    color: var(--mk-muted-foreground);
}

.mk-vehicle-card__spec {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.mk-vehicle-card__spec svg {
    width: 0.875rem;
    height: 0.875rem;
    flex-shrink: 0;
}

.mk-vehicle-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--mk-border);
}

.mk-vehicle-card__price-label {
    font-family: var(--mk-font-sub);
    font-size: 0.75rem;
    color: var(--mk-muted-foreground);
}

.mk-vehicle-card__price {
    font-size: 1.25rem;
    font-weight: 600;
}

.mk-vehicle-card__cta {
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    background: var(--mk-brand-soft);
    font-family: var(--mk-font-sub);
    font-size: 0.75rem;
    transition: background 0.15s ease, color 0.15s ease;
}

.mk-vehicle-card:hover .mk-vehicle-card__cta {
    background: var(--mk-brand);
    color: var(--mk-brand-foreground);
}

/* Browse layout */
.mk-browse {
    padding-block: 2.5rem;
}

.mk-browse__layout {
    display: grid;
    gap: 2.5rem;
}

@media (min-width: 1024px) {
    .mk-browse__layout {
        grid-template-columns: 17.5rem 1fr;
    }
}

.mk-filters {
    border-radius: 1rem;
    border: 1px solid var(--mk-border);
    background: var(--mk-card);
    padding: 1.5rem;
}

@media (min-width: 1024px) {
    .mk-filters {
        position: sticky;
        top: 6rem;
        align-self: start;
    }
}

.mk-filters__title {
    margin-bottom: 1rem;
    font-family: var(--mk-font-sub);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.mk-field {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    margin-bottom: 1rem;
}

.mk-field label {
    font-family: var(--mk-font-sub);
    font-size: 0.75rem;
    color: var(--mk-muted-foreground);
}

.mk-input,
.mk-select {
    width: 100%;
    padding: 0.625rem 0.875rem;
    border: 1px solid var(--mk-border);
    border-radius: calc(var(--mk-radius) - 2px);
    background: #fff;
    font-family: var(--mk-font-sans);
    font-size: 0.875rem;
    color: var(--mk-foreground);
}

.mk-input:focus,
.mk-select:focus {
    outline: 2px solid rgba(127, 207, 47, 0.35);
    border-color: var(--mk-brand);
}

.mk-empty {
    border: 1px dashed var(--mk-border);
    border-radius: 1rem;
    padding: 3rem 1.5rem;
    text-align: center;
}

.mk-empty p:last-child {
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: var(--mk-muted-foreground);
}

/* Footer */
.mk-footer {
    margin-top: 6rem;
    border-top: 1px solid var(--mk-border);
    background: var(--mk-ink);
    color: #fff;
}

.mk-footer__inner {
    padding-block: 3.5rem;
}

.mk-footer__grid {
    display: grid;
    gap: 2.5rem;
}

@media (min-width: 768px) {
    .mk-footer__grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.mk-footer__logo img {
    height: 2.5rem;
    width: auto;
    filter: brightness(0) invert(1);
}

.mk-footer__tagline {
    margin-top: 1rem;
    max-width: 18rem;
    font-size: 0.875rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.7);
}

.mk-footer h4 {
    font-family: var(--mk-font-sub);
    font-size: 0.875rem;
    letter-spacing: 0.04em;
    color: var(--mk-brand);
}

.mk-footer ul {
    list-style: none;
    margin: 1rem 0 0;
    padding: 0;
}

.mk-footer li + li {
    margin-top: 0.5rem;
}

.mk-footer a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.875rem;
}

.mk-footer a:hover {
    color: var(--mk-brand);
}

.mk-footer__bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
}

@media (min-width: 768px) {
    .mk-footer__bottom {
        flex-direction: row;
    }
}

/* Utilities */
.mk-text-brand {
    color: var(--mk-brand);
}

.mk-text-muted {
    color: var(--mk-muted-foreground);
}

.mk-text-center {
    text-align: center;
}

.mk-mt-8 {
    margin-top: 2rem;
}

.mk-pagination {
    margin-top: 2.5rem;
}

.mk-pagination nav {
    display: flex;
    justify-content: center;
}

.mk-pagination nav > div {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.mk-pagination a,
.mk-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.25rem;
    padding: 0.5rem 0.75rem;
    border-radius: 9999px;
    border: 1px solid var(--mk-border);
    font-family: var(--mk-font-sub);
    font-size: 0.875rem;
    text-decoration: none;
    color: var(--mk-foreground);
}

.mk-pagination a:hover {
    border-color: var(--mk-brand);
    color: var(--mk-brand);
}

.mk-pagination span[aria-current="page"] {
    background: var(--mk-brand);
    border-color: var(--mk-brand);
    color: var(--mk-brand-foreground);
}

.mk-pagination span[aria-disabled="true"] {
    opacity: 0.45;
}

/* Listing detail */
.mk-listing__header {
    border-bottom: 1px solid var(--mk-border);
    background: rgba(255, 255, 255, 0.7);
}

.mk-listing__breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    padding-top: 1.5rem;
    font-family: var(--mk-font-sub);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--mk-muted-foreground);
}

.mk-listing__breadcrumb a {
    color: inherit;
    text-decoration: none;
}

.mk-listing__breadcrumb a:hover {
    color: var(--mk-brand);
}

.mk-listing__heading {
    display: grid;
    gap: 1.5rem;
    padding: 1.5rem 0 2rem;
}

@media (min-width: 768px) {
    .mk-listing__heading {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: end;
    }
}

.mk-listing__title {
    margin-top: 0.5rem;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.1;
}

.mk-listing__variant,
.mk-listing__subtitle {
    margin-top: 0.5rem;
    color: var(--mk-muted-foreground);
    font-weight: 300;
}

.mk-listing__price-chip {
    justify-self: start;
    border-radius: 1rem;
    background: var(--mk-ink);
    color: #fff;
    padding: 1rem 1.25rem;
    box-shadow: 0 12px 30px -12px rgba(0, 0, 0, 0.45);
}

.mk-listing__price-label {
    font-family: var(--mk-font-sub);
    font-size: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--mk-brand);
}

.mk-listing__price-value {
    margin-top: 0.25rem;
    font-size: 1.75rem;
    font-weight: 600;
}

.mk-listing__body {
    padding-block: 2rem 4rem;
}

.mk-listing__layout {
    display: grid;
    gap: 2.5rem;
}

@media (min-width: 1024px) {
    .mk-listing__layout {
        grid-template-columns: minmax(0, 2fr) minmax(18rem, 1fr);
        align-items: start;
    }
}

.mk-listing__main {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    min-width: 0;
}

.mk-listing__sidebar {
    min-width: 0;
}

@media (min-width: 1024px) {
    .mk-listing__sidebar {
        position: sticky;
        top: 5.5rem;
        align-self: start;
    }
}

.mk-listing-section__eyebrow {
    font-family: var(--mk-font-sub);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--mk-brand);
}

.mk-listing-gallery__stage {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 1rem;
    background: var(--mk-muted);
}

.mk-listing-gallery__stage img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mk-listing-gallery__empty {
    display: grid;
    place-items: center;
    height: 100%;
    color: var(--mk-muted-foreground);
}

.mk-listing-gallery__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 2.75rem;
    height: 2.75rem;
    border: none;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    font-size: 1.5rem;
    line-height: 1;
}

.mk-listing-gallery__nav--prev { left: 1rem; }
.mk-listing-gallery__nav--next { right: 1rem; }

.mk-listing-gallery__counter {
    position: absolute;
    left: 1rem;
    bottom: 1rem;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    background: rgba(26, 26, 26, 0.8);
    color: #fff;
    font-size: 0.75rem;
}

.mk-listing-gallery__thumbs {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.5rem;
    margin-top: 1rem;
}

@media (min-width: 640px) {
    .mk-listing-gallery__thumbs {
        grid-template-columns: repeat(8, minmax(0, 1fr));
    }
}

.mk-listing-gallery__thumb {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border: 2px solid transparent;
    border-radius: 0.5rem;
    padding: 0;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.15s ease, border-color 0.15s ease;
}

.mk-listing-gallery__thumb.is-active,
.mk-listing-gallery__thumb:hover {
    opacity: 1;
    border-color: var(--mk-brand);
}

.mk-listing-gallery__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mk-listing-section + .mk-listing-section {
    margin-top: 0;
}

.mk-listing__main > .mk-listing-section + .mk-listing-section,
.mk-listing__main > section + section {
    margin-top: 2.5rem;
}

.mk-listing-summary,
.mk-listing-costs__grid {
    display: grid;
    gap: 0.75rem;
    margin-top: 0.75rem;
    padding: 1rem;
    border: 1px solid var(--mk-border);
    border-radius: 1rem;
    background: var(--mk-card);
}

.mk-listing-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 640px) {
    .mk-listing-summary {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        padding: 1.5rem;
        gap: 1rem;
    }
}

.mk-listing-summary__item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    min-width: 0;
    padding: 0.5rem;
    border-radius: 0.75rem;
}

.mk-listing-summary__icon {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
    background: var(--mk-brand-soft);
    color: var(--mk-brand);
}

.mk-listing-summary__content {
    min-width: 0;
}

.mk-listing-costs__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mk-listing-costs {
    border: 1px solid var(--mk-border);
    border-radius: 1rem;
    background: var(--mk-card);
    padding: 1.5rem;
}

.mk-listing-costs .mk-listing-section__eyebrow {
    margin: 0;
}

.mk-listing-running-costs .mk-listing-costs__grid {
    margin-top: 1rem;
    border: none;
    padding: 0;
    background: transparent;
}

.mk-listing-running-costs .mk-listing-costs__item {
    padding: 0.75rem;
    border-radius: 0.75rem;
    background: rgba(0, 0, 0, 0.03);
}

.mk-listing-summary__label,
.mk-listing-costs__item .mk-listing-summary__label {
    font-family: var(--mk-font-sub);
    font-size: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--mk-muted-foreground);
}

.mk-listing-summary__value {
    margin-top: 0.25rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.mk-listing-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.25rem;
    border-radius: 9999px;
    background: var(--mk-muted);
}

.mk-listing-tabs__trigger {
    border: none;
    border-radius: 9999px;
    padding: 0.625rem 1rem;
    background: transparent;
    font-family: var(--mk-font-sub);
    font-size: 0.875rem;
    color: var(--mk-muted-foreground);
    cursor: pointer;
}

.mk-listing-tabs__trigger.is-active {
    background: #fff;
    color: var(--mk-foreground);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.mk-listing-tabs__panel {
    margin-top: 1.5rem;
}

.mk-listing-tabs__panel[hidden] {
    display: none;
}

.mk-listing-prose {
    color: var(--mk-foreground);
    font-weight: 300;
    line-height: 1.7;
}

.mk-listing-prose--prewrap {
    white-space: pre-wrap;
}

.mk-listing-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.mk-listing-tags--highlight {
    margin-bottom: 1rem;
}

.mk-listing-equipment-group + .mk-listing-equipment-group {
    margin-top: 1.5rem;
}

.mk-listing-equipment-group h3 {
    font-size: 1rem;
    font-weight: 600;
}

.mk-listing-equipment-group ul {
    margin: 0.75rem 0 0;
    padding-left: 1.25rem;
    color: var(--mk-muted-foreground);
}

.mk-listing-specs {
    display: grid;
    gap: 0.75rem;
}

@media (min-width: 640px) {
    .mk-listing-specs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.mk-listing-specs__row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    border-bottom: 1px solid var(--mk-border);
    padding-bottom: 0.5rem;
    font-size: 0.875rem;
}

.mk-listing-specs__row dt {
    color: var(--mk-muted-foreground);
    text-transform: capitalize;
}

.mk-listing-action-card {
    overflow: hidden;
    border: 1px solid var(--mk-border);
    border-radius: 1rem;
    background: var(--mk-card);
    box-shadow: 0 20px 50px -24px rgba(0, 0, 0, 0.25);
}

.mk-listing-action-card__price {
    padding: 1.5rem;
    background: var(--mk-ink);
    color: #fff;
}

.mk-listing-action-card__reduced {
    display: inline-block;
    margin-bottom: 0.5rem;
    font-family: var(--mk-font-sub);
    font-size: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #fca5a5;
}

.mk-listing-action-card__price-label {
    font-family: var(--mk-font-sub);
    font-size: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--mk-brand);
}

.mk-listing-action-card__price-value {
    margin-top: 0.25rem;
    font-size: 2rem;
    font-weight: 600;
}

.mk-listing-action-card__was {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
}

.mk-listing-action-card__seller {
    padding: 1.5rem;
    border-bottom: 1px solid var(--mk-border);
}

.mk-listing-action-card__seller .mk-badge {
    margin-top: 0.5rem;
}

.mk-listing-action-card__seller-label {
    font-family: var(--mk-font-sub);
    font-size: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--mk-muted-foreground);
}

.mk-listing-action-card__seller-name {
    margin-top: 0.25rem;
    font-size: 1.125rem;
    font-weight: 600;
}

.mk-listing-action-card__meta {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: var(--mk-muted-foreground);
    line-height: 1.5;
}

.mk-listing-action-card__meta a {
    color: inherit;
    text-decoration: none;
}

.mk-listing-action-card__meta a:hover {
    color: var(--mk-brand);
}

.mk-hero__outline-btn {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.35);
}

.mk-section--muted {
    background: var(--mk-muted);
}

.mk-filters__reset {
    margin-top: 0.75rem;
}

.mk-vehicle-card__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--mk-muted-foreground);
    font-size: 0.875rem;
    text-align: center;
    padding: 1rem;
}

.mk-listing-forms {
    padding: 1.5rem;
}

.mk-listing-form + .mk-listing-form {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--mk-border);
}

.mk-listing-form__title {
    font-size: 1rem;
    font-weight: 600;
}

.mk-listing-form__hint {
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: var(--mk-muted-foreground);
}

.mk-listing-form__body {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.mk-listing-form__honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.mk-listing-form__body input:not([type="checkbox"]),
.mk-listing-form__body textarea {
    width: 100%;
    padding: 0.75rem 0.875rem;
    border: 1px solid var(--mk-border);
    border-radius: calc(var(--mk-radius) - 2px);
    background: #fff;
    font-family: var(--mk-font-sans);
    font-size: 0.875rem;
    color: var(--mk-foreground);
}

.mk-listing-form__body input:focus,
.mk-listing-form__body textarea:focus {
    outline: 2px solid var(--mk-brand-soft);
    border-color: var(--mk-brand);
}

.mk-listing-form__field {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.mk-listing-form__label {
    font-family: var(--mk-font-sub);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--mk-muted-foreground);
}

.mk-listing-form__checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: var(--mk-muted-foreground);
}

.mk-listing-form__checkbox input {
    margin-top: 0.125rem;
}

.mk-listing-form__feedback {
    padding: 0.75rem 0.875rem;
    border-radius: calc(var(--mk-radius) - 2px);
    font-size: 0.875rem;
}

.mk-listing-form__feedback.is-success {
    background: var(--mk-brand-soft);
    color: var(--mk-ink);
}

.mk-listing-form__feedback.is-error {
    background: #fee2e2;
    color: #991b1b;
}

.mk-listing-form--collapsible {
    margin-top: 0;
}

.mk-listing-form__collapse {
    border: 1px solid var(--mk-border);
    border-radius: 0.75rem;
    background: var(--mk-muted);
}

.mk-listing-form__collapse-trigger {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 1rem;
    cursor: pointer;
    list-style: none;
}

.mk-listing-form__collapse-trigger::-webkit-details-marker {
    display: none;
}

.mk-listing-form__collapse-trigger::after {
    content: '+';
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 1.25rem;
    color: var(--mk-muted-foreground);
}

.mk-listing-form__collapse {
    position: relative;
}

.mk-listing-form__collapse[open] .mk-listing-form__collapse-trigger::after {
    content: '−';
}

.mk-listing-form__collapse-hint {
    font-size: 0.8125rem;
    color: var(--mk-muted-foreground);
    padding-right: 1.5rem;
}

.mk-listing-form__collapse .mk-listing-form__body {
    padding: 0 1rem 1rem;
    margin-top: 0;
}

.mk-listing-mot {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.mk-listing-mot__cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

@media (min-width: 640px) {
    .mk-listing-mot__cards {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.mk-listing-mot__card {
    padding: 1rem;
    border: 1px solid var(--mk-border);
    border-radius: 0.75rem;
    background: var(--mk-muted);
}

.mk-listing-mot__card-label {
    font-family: var(--mk-font-sub);
    font-size: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--mk-muted-foreground);
}

.mk-listing-mot__card-value {
    margin-top: 0.25rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.mk-listing-mot__heading {
    font-size: 0.875rem;
    font-weight: 600;
}

.mk-listing-mot__note {
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: var(--mk-muted-foreground);
}

.mk-listing-mot__defect-list {
    margin: 0.75rem 0 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mk-listing-mot__defect {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    border: 1px solid var(--mk-border);
    border-radius: 0.75rem;
    background: #fff;
    font-size: 0.875rem;
}

.mk-listing-mot__badge {
    flex-shrink: 0;
    padding: 0.125rem 0.5rem;
    border-radius: 0.375rem;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
}

.mk-listing-mot__badge--danger {
    background: #fee2e2;
    color: #991b1b;
}

.mk-listing-mot__badge--warning {
    background: #fef3c7;
    color: #92400e;
}

.mk-listing-mot__badge--neutral {
    background: var(--mk-muted);
    color: var(--mk-muted-foreground);
}

.mk-listing-mot__table-wrap {
    margin-top: 0.75rem;
    overflow-x: auto;
    border: 1px solid var(--mk-border);
    border-radius: 0.75rem;
}

.mk-listing-mot__table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.mk-listing-mot__table th,
.mk-listing-mot__table td {
    padding: 0.625rem 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--mk-border);
}

.mk-listing-mot__table th {
    background: var(--mk-muted);
    font-family: var(--mk-font-sub);
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--mk-muted-foreground);
}

.mk-listing-mot__table tbody tr:last-child td {
    border-bottom: none;
}

.mk-listing-action-card__seller-name a {
    color: inherit;
    text-decoration: none;
}

.mk-listing-action-card__seller-name a:hover {
    color: var(--mk-brand);
}

.mk-dealer__hero {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--mk-border);
}

.mk-dealer__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
    align-items: center;
    margin-top: 1rem;
    font-size: 0.9375rem;
    color: var(--mk-muted-foreground);
}

.mk-dealer__meta a {
    color: inherit;
}

.mk-dealer__meta a:hover {
    color: var(--mk-brand);
}

[x-cloak] {
    display: none !important;
}

.mk-listing-gallery__expand {
    position: absolute;
    right: 1rem;
    bottom: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border: none;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    cursor: pointer;
}

.mk-listing-gallery__expand svg {
    width: 1.125rem;
    height: 1.125rem;
}

.mk-listing-gallery__stage {
    cursor: zoom-in;
}

.mk-gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.92);
}

.mk-gallery-lightbox[hidden] {
    display: none !important;
}

body.mk-gallery-lightbox-open {
    overflow: hidden;
}

.mk-gallery-lightbox__image,
.mk-gallery-lightbox img {
    max-width: min(92vw, 1200px);
    max-height: 82vh;
    object-fit: contain;
}

.mk-gallery-lightbox__close,
.mk-gallery-lightbox__nav {
    position: absolute;
    border: none;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    cursor: pointer;
}

.mk-gallery-lightbox__close {
    top: 1rem;
    right: 1rem;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 999px;
    font-size: 1.5rem;
    line-height: 1;
}

.mk-gallery-lightbox__nav {
    top: 50%;
    transform: translateY(-50%);
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 999px;
    font-size: 1.75rem;
}

.mk-gallery-lightbox__nav--prev { left: 1rem; }
.mk-gallery-lightbox__nav--next { right: 1rem; }

.mk-gallery-lightbox__counter {
    position: absolute;
    bottom: 1.25rem;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 0.875rem;
}

.mk-listing-ctas {
    padding: 1.5rem;
    border-bottom: 1px solid var(--mk-border);
}

.mk-listing-ctas__finance {
    margin-bottom: 1rem;
}

.mk-listing-ctas__finance-label {
    font-size: 0.9375rem;
    font-weight: 600;
}

.mk-listing-ctas__finance-note {
    margin-top: 0.375rem;
    font-size: 0.75rem;
    color: var(--mk-muted-foreground);
    line-height: 1.4;
}

.mk-listing-ctas__actions {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.mk-listing-ctas__secondary {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.mk-listing-ctas__icon-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--mk-border);
    border-radius: 999px;
    background: #fff;
    color: var(--mk-foreground);
    font-size: 0.8125rem;
    cursor: pointer;
}

.mk-listing-ctas__icon-btn svg {
    width: 1rem;
    height: 1rem;
}

.mk-listing-ctas__icon-btn.is-active {
    border-color: var(--mk-brand);
    color: var(--mk-brand);
}

.mk-listing-ctas__icon-btn.is-active svg {
    fill: currentColor;
}

.mk-listing-ctas__toast {
    margin-top: 0.75rem;
    font-size: 0.8125rem;
    color: var(--mk-brand);
}

.mk-dialog {
    width: min(32rem, calc(100vw - 2rem));
    max-height: calc(100vh - 2rem);
    padding: 0;
    border: none;
    border-radius: 1rem;
    background: transparent;
}

.mk-dialog::backdrop {
    background: rgba(0, 0, 0, 0.55);
}

.mk-dialog__panel {
    position: relative;
    max-height: calc(100vh - 2rem);
    overflow: auto;
    padding: 1.5rem;
    border-radius: 1rem;
    background: #fff;
}

.mk-dialog__close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 2rem;
    height: 2rem;
    border: none;
    border-radius: 999px;
    background: var(--mk-muted);
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
}

.mk-dialog .mk-listing-form {
    margin-top: 0;
}

.mk-listing-editorial__body,
.mk-listing-video__frame {
    margin-top: 0.75rem;
}

.mk-listing-video__frame {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 1rem;
    background: #000;
}

.mk-listing-video__frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.mk-listing-related__title {
    font-size: 1.25rem;
    font-weight: 600;
}

.mk-listing-related__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 1rem;
}

@media (min-width: 640px) {
    .mk-listing-related__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .mk-listing-related__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.mk-listing-mobile-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.875rem 1rem;
    border-top: 1px solid var(--mk-border);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(8px);
}

@media (min-width: 1024px) {
    .mk-listing-mobile-bar {
        display: none;
    }

    .mk-listing {
        padding-bottom: 0;
    }
}

.mk-listing-mobile-bar__label {
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--mk-muted-foreground);
}

.mk-listing-mobile-bar__value {
    font-size: 1.125rem;
    font-weight: 600;
}

.mk-listing-mobile-bar__actions {
    display: flex;
    gap: 0.5rem;
}

@media (max-width: 1023px) {
    .mk-listing {
        padding-bottom: 5.5rem;
    }
}
