.mkt-page {
    width: min(100%, 1240px);
    margin-inline: auto;
    padding: 24px 18px 56px;
    overflow-x: clip;
}

.mkt-hero {
    display: grid;
    gap: 14px;
    padding-block: 18px 26px;
}

.mkt-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    min-height: 34px;
    padding: 5px 13px;
    border: 1px solid rgba(15, 118, 110, 0.2);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    color: var(--landing-primary);
    font-size: 0.8rem;
    font-weight: 900;
}

.mkt-hero h1 {
    max-width: 780px;
    margin: 0;
    color: var(--landing-ink);
    font-size: clamp(2rem, 5vw, 3.7rem);
    font-weight: 900;
    line-height: 1.1;
}

.mkt-hero p {
    max-width: 760px;
    margin: 9px 0 0;
    color: var(--landing-muted);
    font-size: 1.05rem;
    line-height: 1.8;
}

.mkt-search-panel {
    padding: 18px;
    border: 1px solid rgba(15, 118, 110, 0.15);
    border-radius: var(--landing-radius);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--landing-shadow-soft);
}

.mkt-search-panel__heading {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 16px;
    margin-block-end: 16px;
}

.mkt-search-panel__heading h2 {
    margin: 0;
    color: var(--landing-ink);
    font-size: 1.22rem;
    font-weight: 900;
}

.mkt-search-panel__heading p {
    margin: 4px 0 0;
    color: var(--landing-muted);
    font-size: 0.86rem;
}

.mkt-search-grid {
    display: grid;
    gap: 13px;
}

.mkt-search-grid--primary {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    align-items: end;
}

.mkt-search-grid--primary > .mkt-field {
    grid-column: span 3;
}

.mkt-search-grid--primary > .mkt-field--compact {
    grid-column: span 2;
}

.mkt-search-grid--advanced {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding-block-start: 15px;
}

.mkt-field {
    min-width: 0;
}

.mkt-field label {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-block-end: 6px;
    color: var(--landing-muted);
    font-size: 0.8rem;
    font-weight: 900;
}

.mkt-field label i {
    color: var(--landing-primary);
}

.mkt-control {
    min-height: 50px;
    border: 1px solid #d7e5e1;
    border-radius: 10px;
    background-color: #fff;
    color: var(--landing-ink);
    font-weight: 750;
    box-shadow: none;
}

.mkt-control:focus {
    border-color: rgba(15, 118, 110, 0.62);
    box-shadow: 0 0 0 0.2rem rgba(15, 118, 110, 0.13);
}

.mkt-control:disabled {
    cursor: wait;
    opacity: 0.7;
}

.mkt-control[aria-invalid="true"] {
    border-color: #c83e49;
    box-shadow: 0 0 0 0.18rem rgba(200, 62, 73, 0.12);
}

.mkt-field .select2-container {
    width: 100% !important;
}

.mkt-field .select2-container--default .select2-selection--single {
    display: flex;
    align-items: center;
    min-height: 50px;
    border: 1px solid #d7e5e1;
    border-radius: 10px;
    background: #fff;
    font-weight: 750;
}

.mkt-field .select2-container--default.select2-container--focus .select2-selection--single,
.mkt-field .select2-container--default.select2-container--open .select2-selection--single {
    border-color: rgba(15, 118, 110, 0.62);
    box-shadow: 0 0 0 0.2rem rgba(15, 118, 110, 0.13);
}

.mkt-field .select2-container--default .select2-selection--single .select2-selection__rendered {
    width: 100%;
    padding-inline: 14px 36px;
    color: var(--landing-ink);
    line-height: 48px;
}

.mkt-field .select2-container--default .select2-selection--single .select2-selection__arrow {
    top: 50%;
    inset-inline-end: 11px;
    inset-inline-start: auto;
    transform: translateY(-50%);
}

.mkt-field .select2-container--default .select2-selection--single .select2-selection__clear {
    position: absolute;
    z-index: 2;
    inset-inline-end: 34px;
    margin: 0;
    color: #6b7f7a;
    font-size: 1.15rem;
    line-height: 1;
}

.select2-container--open .select2-search--dropdown .select2-search__field {
    min-height: 42px;
    border: 1px solid #d7e5e1;
    border-radius: 8px;
    outline: none;
}

.select2-container--open .select2-search--dropdown .select2-search__field:focus {
    border-color: rgba(15, 118, 110, 0.62);
    box-shadow: 0 0 0 0.18rem rgba(15, 118, 110, 0.11);
}

.select2-dropdown {
    overflow: hidden;
    border-color: #d7e5e1;
    border-radius: 10px;
    box-shadow: 0 18px 42px -24px rgba(13, 83, 76, 0.4);
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: var(--landing-primary);
}

.mkt-search-actions {
    display: grid;
    grid-column: span 6;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    gap: 10px;
}

.mkt-search-actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 0;
    min-height: 50px;
}

.mkt-field-error {
    margin: 10px 0 0;
    color: #a82431;
    font-size: 0.84rem;
    font-weight: 800;
}

.mkt-more-filters {
    margin-block-start: 14px;
    border-top: 1px solid var(--landing-line);
}

.mkt-more-filters summary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-block-start: 13px;
    padding: 7px 0;
    color: var(--landing-primary-dark);
    font-size: 0.9rem;
    font-weight: 900;
    cursor: pointer;
    list-style: none;
}

.mkt-more-filters summary::-webkit-details-marker {
    display: none;
}

.mkt-more-filters summary::after {
    content: "\f078";
    font-family: "Font Awesome 6 Free", "Font Awesome 5 Free";
    font-size: 0.72rem;
    font-weight: 900;
    transition: transform 0.2s ease;
}

.mkt-more-filters[open] summary::after {
    transform: rotate(180deg);
}

.mkt-filter-notice {
    margin: 13px 0 0;
    padding: 10px 12px;
    border-radius: 9px;
    background: #fff8e8;
    color: #80530e;
    font-size: 0.82rem;
    font-weight: 750;
}

.mkt-more-filters__actions {
    display: flex;
    justify-content: flex-end;
    margin-block-start: 15px;
    padding-block-start: 15px;
    border-top: 1px solid var(--landing-line);
}

.mkt-more-filters__actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 190px;
    min-height: 50px;
}

.mkt-results-section {
    min-height: 360px;
    padding-block-start: 34px;
}

.mkt-results-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    margin-block-end: 17px;
}

.mkt-results-heading__eyebrow {
    display: block;
    color: var(--landing-primary);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.mkt-results-heading h2 {
    margin: 2px 0 0;
    color: var(--landing-ink);
    font-size: clamp(1.45rem, 3vw, 2rem);
    font-weight: 900;
}

#MktResultsCount {
    min-height: 32px;
    padding: 4px 12px;
    border: 1px solid rgba(15, 118, 110, 0.14);
    border-radius: 999px;
    background: #fff;
    color: var(--landing-muted);
    font-size: 0.82rem;
    font-weight: 900;
}

.mkt-results-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.mkt-results-grid[hidden],
.mkt-load-more .btn[hidden] {
    display: none;
}

.mkt-card {
    position: relative;
    display: flex;
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(15, 118, 110, 0.14);
    border-radius: var(--landing-radius);
    background: #fff;
    box-shadow: 0 17px 38px -28px rgba(13, 83, 76, 0.45);
    transition: transform 0.24s var(--ease-out), border-color 0.24s ease, box-shadow 0.24s ease;
    flex-direction: column;
}

.mkt-card:hover {
    border-color: rgba(15, 118, 110, 0.32);
    box-shadow: 0 25px 48px -28px rgba(13, 83, 76, 0.55);
    transform: translateY(-4px);
}

.mkt-card__media {
    position: relative;
    display: grid;
    min-height: 205px;
    overflow: hidden;
    place-items: center;
    aspect-ratio: 16 / 10;
    background: linear-gradient(145deg, #e9f5f1, #f7fbfa);
}

.mkt-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mkt-card__media-button {
    display: grid;
    width: 100%;
    height: 100%;
    min-height: inherit;
    padding: 0;
    overflow: hidden;
    border: 0;
    background: transparent;
    cursor: zoom-in;
    place-items: center;
}

.mkt-card__media-button:focus-visible {
    outline: 3px solid rgba(15, 118, 110, 0.72);
    outline-offset: -4px;
}

.mkt-card__image-placeholder {
    display: grid;
    width: 100%;
    height: 100%;
    color: rgba(15, 118, 110, 0.42);
    font-size: 3.2rem;
    place-items: center;
}

.mkt-card__promo {
    position: absolute;
    inset-block-start: 12px;
    inset-inline-start: 12px;
    max-width: calc(100% - 24px);
    padding: 4px 10px;
    overflow: hidden;
    border-radius: 999px;
    background: #fff4d7;
    color: #80530e;
    font-size: 0.72rem;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
    box-shadow: 0 8px 18px -12px rgba(77, 52, 11, 0.55);
    pointer-events: none;
}

.mkt-card__body {
    display: flex;
    gap: 13px;
    padding: 16px;
    flex: 1;
    flex-direction: column;
}

.mkt-card__topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 26px;
}

.mkt-card__category {
    overflow: hidden;
    color: var(--landing-primary);
    font-size: 0.75rem;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mkt-card__rating {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #895b0b;
    direction: ltr;
    font-size: 0.78rem;
    font-weight: 900;
}

.mkt-card__rating i {
    color: #e0a11c;
}

.mkt-card h3 {
    margin: 0;
    color: var(--landing-ink);
    font-size: 1.18rem;
    font-weight: 900;
    line-height: 1.35;
}

.mkt-card__provider {
    display: flex;
    flex-wrap: wrap;
    gap: 5px 9px;
    margin: -7px 0 0;
    color: var(--landing-muted);
    font-size: 0.78rem;
    font-weight: 700;
}

.mkt-card__provider span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.mkt-card__specs,
.mkt-card__policies {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.mkt-card__specs li,
.mkt-card__policies li {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 27px;
    padding: 3px 8px;
    border-radius: 7px;
    background: #f1f7f5;
    color: #3e5957;
    font-size: 0.72rem;
    font-weight: 800;
}

.mkt-card__policies li {
    background: #eaf8ef;
    color: #21663f;
}

.mkt-card__price-row {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 12px;
    margin-block-start: auto;
    padding-block-start: 13px;
    border-top: 1px solid var(--landing-line);
}

.mkt-card__price-label {
    display: block;
    color: var(--landing-muted);
    font-size: 0.7rem;
    font-weight: 750;
}

.mkt-card__price {
    display: block;
    color: var(--landing-primary-dark);
    font-size: 1.18rem;
    font-weight: 900;
    direction: ltr;
    unicode-bidi: isolate;
}

.mkt-card__offers {
    color: var(--landing-muted);
    font-size: 0.72rem;
    font-weight: 800;
    text-align: end;
}

.mkt-card__actions {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.3fr);
    gap: 9px;
}

.mkt-card__actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-width: 0;
    min-height: 44px;
    padding-inline: 12px;
    font-size: 0.82rem;
}

.mkt-viewer {
    width: min(940px, calc(100% - 28px));
    max-width: none;
    max-height: calc(100dvh - 28px);
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 18px;
    background: transparent;
    color: var(--landing-ink);
    box-shadow: 0 34px 80px -28px rgba(4, 35, 33, 0.72);
}

.mkt-viewer::backdrop {
    background: rgba(4, 24, 23, 0.76);
    backdrop-filter: blur(4px);
}

.mkt-viewer__panel {
    display: grid;
    max-height: calc(100dvh - 28px);
    overflow: auto;
    background: #fff;
}

.mkt-viewer__header,
.mkt-viewer__footer,
.mkt-viewer__meta {
    padding: 16px 18px;
}

.mkt-viewer__header {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 1px solid var(--landing-line);
}

.mkt-viewer__eyebrow {
    display: block;
    color: var(--landing-primary);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.mkt-viewer__header h2 {
    margin: 3px 0 0;
    font-size: clamp(1.15rem, 3vw, 1.55rem);
    font-weight: 900;
}

.mkt-viewer__close {
    display: grid;
    width: 40px;
    height: 40px;
    flex: 0 0 auto;
    border: 1px solid var(--landing-line);
    border-radius: 50%;
    background: #f5f9f8;
    color: var(--landing-ink);
    place-items: center;
}

.mkt-viewer__loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 360px;
    color: var(--landing-muted);
    font-weight: 800;
}

.mkt-viewer__stage {
    position: relative;
    display: grid;
    min-height: 420px;
    overflow: hidden;
    background: #eef5f3;
    place-items: center;
}

.mkt-viewer__stage > img {
    width: 100%;
    height: min(62dvh, 620px);
    object-fit: contain;
    background: #eef5f3;
}

.mkt-viewer__placeholder {
    display: grid;
    gap: 10px;
    min-height: 360px;
    color: rgba(15, 118, 110, 0.58);
    font-size: 0.9rem;
    font-weight: 850;
    text-align: center;
    place-content: center;
}

.mkt-viewer__placeholder i {
    font-size: 4rem;
}

.mkt-viewer__nav {
    position: absolute;
    z-index: 2;
    inset-block-start: 50%;
    display: grid;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: var(--landing-primary-dark);
    box-shadow: 0 10px 24px -14px rgba(4, 35, 33, 0.72);
    transform: translateY(-50%);
    place-items: center;
}

.mkt-viewer__nav--previous {
    inset-inline-start: 14px;
}

.mkt-viewer__nav--next {
    inset-inline-end: 14px;
}

.mkt-viewer__meta {
    display: grid;
    gap: 10px;
    border-top: 1px solid var(--landing-line);
}

#MktGalleryCount {
    color: var(--landing-muted);
    font-size: 0.8rem;
    font-weight: 900;
}

.mkt-viewer__thumbnails {
    display: flex;
    gap: 8px;
    padding-block-end: 3px;
    overflow-x: auto;
}

.mkt-viewer__thumbnail {
    width: 82px;
    height: 58px;
    flex: 0 0 auto;
    padding: 2px;
    overflow: hidden;
    border: 2px solid transparent;
    border-radius: 9px;
    background: #eef5f3;
}

.mkt-viewer__thumbnail.is-active {
    border-color: var(--landing-primary);
}

.mkt-viewer__thumbnail img {
    width: 100%;
    height: 100%;
    border-radius: 5px;
    object-fit: cover;
}

.mkt-viewer__error {
    margin: 0;
    padding: 12px 18px;
    background: #fff4f4;
    color: #a82431;
    font-size: 0.85rem;
    font-weight: 800;
}

.mkt-viewer__footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    border-top: 1px solid var(--landing-line);
}

.mkt-viewer__footer .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
}

.mkt-state {
    display: grid;
    justify-items: center;
    max-width: 680px;
    margin: 16px auto 0;
    padding: 46px 22px;
    border: 1px dashed rgba(15, 118, 110, 0.25);
    border-radius: var(--landing-radius);
    background: rgba(255, 255, 255, 0.82);
    text-align: center;
}

.mkt-state[hidden] {
    display: none;
}

.mkt-state__icon {
    display: grid;
    width: 62px;
    height: 62px;
    margin-block-end: 13px;
    border-radius: 50%;
    background: #e8f5f1;
    color: var(--landing-primary);
    font-size: 1.55rem;
    place-items: center;
}

.mkt-state h3 {
    margin: 0;
    color: var(--landing-ink);
    font-size: 1.25rem;
    font-weight: 900;
}

.mkt-state p {
    max-width: 510px;
    margin: 7px 0 17px;
    color: var(--landing-muted);
}

.mkt-state--error {
    border-color: rgba(200, 62, 73, 0.25);
    background: #fffafa;
}

.mkt-state--error .mkt-state__icon {
    background: #fdebec;
    color: #b52b38;
}

.mkt-inline-error {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-block-start: 14px;
    color: #a82431;
    font-size: 0.84rem;
    font-weight: 800;
}

.mkt-inline-error[hidden] {
    display: none;
}

.mkt-load-more {
    display: flex;
    justify-content: center;
    padding-block-start: 22px;
}

.mkt-load-more .btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-width: 190px;
    justify-content: center;
}

.mkt-skeleton {
    overflow: hidden;
    border: 1px solid rgba(15, 118, 110, 0.09);
    border-radius: var(--landing-radius);
    background: #fff;
}

.mkt-skeleton__media,
.mkt-skeleton__line {
    position: relative;
    overflow: hidden;
    background: #e8efed;
}

.mkt-skeleton__media {
    aspect-ratio: 16 / 10;
}

.mkt-skeleton__body {
    display: grid;
    gap: 12px;
    padding: 16px;
}

.mkt-skeleton__line {
    width: 100%;
    height: 13px;
    border-radius: 999px;
}

.mkt-skeleton__line--title {
    width: 72%;
    height: 20px;
}

.mkt-skeleton__line--short {
    width: 45%;
}

.mkt-skeleton__media::after,
.mkt-skeleton__line::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, transparent 25%, rgba(255, 255, 255, 0.82) 48%, transparent 72%);
    content: "";
    transform: translateX(-100%);
    animation: mkt-shimmer 1.35s infinite;
}

[dir="rtl"] .mkt-skeleton__media::after,
[dir="rtl"] .mkt-skeleton__line::after {
    animation-direction: reverse;
}

[dir="rtl"] .mkt-results-heading__eyebrow {
    letter-spacing: 0;
}

[dir="rtl"] .mkt-card__actions i.fa-arrow-right {
    transform: scaleX(-1);
}

@keyframes mkt-shimmer {
    100% {
        transform: translateX(100%);
    }
}

@media (max-width: 991.98px) {
    .mkt-search-grid--primary > .mkt-field {
        grid-column: span 6;
    }

    .mkt-search-grid--primary > .mkt-field--compact {
        grid-column: span 4;
    }

    .mkt-search-actions {
        grid-column: span 12;
    }

    .mkt-results-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .mkt-page {
        padding: 14px 12px 42px;
    }

    .mkt-hero {
        padding-block: 13px 19px;
    }

    .mkt-search-panel {
        padding: 14px;
        border-radius: 13px;
    }

    .mkt-search-grid--advanced {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mkt-results-section {
        padding-block-start: 27px;
    }

    .mkt-card__media {
        min-height: 180px;
    }
}

@media (max-width: 575.98px) {
    .mkt-search-grid--primary,
    .mkt-search-grid--advanced {
        grid-template-columns: minmax(0, 1fr);
    }

    .mkt-search-grid--primary > .mkt-field,
    .mkt-search-grid--primary > .mkt-field--compact,
    .mkt-search-actions {
        grid-column: 1;
    }

    .mkt-search-actions {
        grid-template-columns: minmax(0, 1fr);
    }

    .mkt-more-filters__actions .btn {
        width: 100%;
    }

    .mkt-results-heading {
        align-items: start;
        flex-direction: column;
    }

    .mkt-results-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .mkt-card__actions {
        grid-template-columns: minmax(0, 1fr);
    }

    .mkt-viewer {
        width: 100%;
        max-height: 100dvh;
        margin: auto 0 0;
        border-radius: 18px 18px 0 0;
    }

    .mkt-viewer__panel {
        max-height: 100dvh;
    }

    .mkt-viewer__stage {
        min-height: 290px;
    }

    .mkt-viewer__stage > img {
        height: min(52dvh, 460px);
    }

    .mkt-viewer__footer {
        display: grid;
        grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .mkt-card,
    .mkt-more-filters summary::after,
    .mkt-card__actions .btn,
    .mkt-search-actions .btn {
        transition: none;
    }

    .mkt-card:hover {
        transform: none;
    }

    .mkt-skeleton__media::after,
    .mkt-skeleton__line::after {
        animation: none;
        display: none;
    }
}

/* The card is a model, year and price: how many of them are free, and that a like vehicle may be handed over. */
.mkt-card__units {
    position: absolute;
    inset-block-start: 12px;
    inset-inline-end: 12px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #e1f5ee;
    color: #085041;
    font-size: 0.72rem;
    font-weight: 600;
}

.mkt-card__units--last {
    background: #faeeda;
    color: #633806;
}

.mkt-card__similar {
    margin: -0.35rem 0 0.5rem;
    color: var(--bs-secondary-color, #6c757d);
    font-size: 0.78rem;
}
