/* Western Street Motors public refresh.
   This file intentionally sits after the legacy stylesheet and controls the public layout. */

:root {
    --wsm-red: #b51224;
    --wsm-red-dark: #58050b;
    --wsm-black: #080808;
    --wsm-ink: #2f2f2f;
    --wsm-muted: #666;
    --wsm-line: #e5e0e0;
    --wsm-soft: #f5f5f5;
    --wsm-white: #fff;
    --wsm-focus: #ffd95a;
    --wsm-shadow: 0 10px 24px rgba(0, 0, 0, .08);
    --wsm-radius: 6px;
    --wsm-container: min(100% - 28px, 1600px);
    --wsm-section: clamp(28px, 4vw, 60px);
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    overflow-x: hidden;
    background: var(--wsm-white);
    color: var(--wsm-ink);
    font-size: 16px;
    line-height: 1.6;
}

img {
    max-width: 100%;
    height: auto;
}

#page {
    width: 100%;
    max-width: none;
    min-height: 100vh;
    background: var(--wsm-white);
    box-shadow: none;
}

main {
    display: block;
}

a {
    color: var(--wsm-red);
}

a:visited {
    color: var(--wsm-red-dark);
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
    outline: 3px solid var(--wsm-focus);
    outline-offset: 3px;
}

.skip-link {
    position: absolute;
    left: -999px;
    top: 8px;
    z-index: 1000;
    padding: 8px 12px;
    background: var(--wsm-white);
    color: var(--wsm-red);
    font-weight: 800;
}

.skip-link:focus {
    left: 8px;
}

header[data-site-header] {
    height: auto;
    min-height: 0;
    overflow: visible;
    background: var(--wsm-black);
}

.site-bar {
    width: var(--wsm-container);
    min-height: 76px;
    margin-inline: auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding-block: 12px;
}

header[data-site-header] a.logo {
    grid-column: 1;
    grid-row: 1;
    position: static;
    display: block;
    width: min(100%, 205px);
    height: 34px;
    background: url(../images/logo.png) no-repeat left center;
    background-size: contain;
}

header[data-site-header] a.logo span {
    display: none;
}

.site-contact {
    grid-column: 1 / -1;
    grid-row: 2;
    display: flex;
    justify-content: center;
    margin-right: calc(50% - 50vw);
    margin-left: calc(50% - 50vw);
    background: var(--wsm-red);
    color: #f5e8e8;
    font-size: .95rem;
    padding: 7px 14px;
}

.site-contact a {
    min-height: 24px;
    display: inline-flex;
    align-items: center;
    color: var(--wsm-white);
    font-size: .95rem;
    font-weight: 900;
    text-decoration: none;
}

.site-contact span {
    display: none;
    color: #f0dddd;
    overflow-wrap: anywhere;
}

header[data-site-header] .nav-toggle {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    position: relative;
    width: 44px;
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, .78);
    border-radius: var(--wsm-radius);
    background: rgba(0, 0, 0, .32);
    color: #fff;
    padding: 0;
    font-size: 0;
    font-weight: 900;
}

header[data-site-header] .nav-toggle::before {
    content: "";
    width: 22px;
    height: 2px;
    border-radius: 2px;
    background: #fff;
    box-shadow: 0 -7px 0 #fff, 0 7px 0 #fff;
}

@media screen and (min-width: 360px) {
    header[data-site-header] a.logo {
        width: min(100%, 235px);
        height: 38px;
    }
}

.site-hero {
    position: relative;
    width: 100%;
    min-height: clamp(420px, 34vw, 540px);
    margin: 0;
    padding: clamp(34px, 6vw, 74px) max(14px, calc((100% - min(100% - 28px, 1600px)) / 2));
    display: flex;
    align-items: center;
    top: auto;
    left: auto;
    background:
        linear-gradient(90deg, rgba(0, 0, 0, .82), rgba(0, 0, 0, .34) 52%, rgba(0, 0, 0, .12)),
        #cf0004 url(../images/banner_1200.png) no-repeat center bottom;
    background-size: cover;
    border-bottom: 6px solid var(--wsm-red);
    overflow: hidden;
}

.site-hero::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -8px;
    width: 76px;
    height: 18px;
    
    border-bottom: 6px solid #fff;
    
    transform: translateX(-50%) skew(35deg);
}

.hero-copy {
    width: min(100%, 680px);
}

.hero-kicker {
    margin: 0 0 10px;
    color: #fff;
    font-size: .88rem;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.site-hero h3 {
    max-width: 680px;
    margin: 0 0 22px;
    color: #fff;
    font-size: clamp(1.55rem, 4.2vw, 3rem);
    line-height: 1.12;
    text-shadow: 0 2px 12px rgba(0, 0, 0, .36);
}

.hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    width: min(100%, 360px);
}

.hero-button,
.hero-button:visited {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, .86);
    border-radius: var(--wsm-radius);
    color: #fff;
    padding: 10px 16px;
    font-weight: 900;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
}

.hero-button.primary {
    border-color: var(--wsm-red);
    background: var(--wsm-red);
}

.hero-button:hover {
    border-color: var(--wsm-red-dark);
    background: var(--wsm-red-dark);
}

.site-nav {
    position: sticky;
    top: 0;
    z-index: 20;
    display: none;
    width: 100%;
    margin: 0;
    padding: 0 14px;
    background: var(--wsm-red-dark);
    box-shadow: 0 6px 18px rgba(0, 0, 0, .18);
}

header[data-site-header].is-open + .site-nav,
body.nav-open .site-nav {
    display: block;
}

.site-nav ul {
    width: var(--wsm-container);
    margin: 0 auto;
    padding: 0;
    display: grid;
    gap: 8px;
    list-style: none;
}

.site-nav li {
    float: none;
}

.site-nav a {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: var(--wsm-radius);
    color: #fff;
    padding: 10px 14px;
    font-weight: 800;
    text-decoration: none;
    text-align: center;
}

.site-nav a:visited {
    color: #fff;
}

.site-nav a:hover,
.site-nav a.active {
    background: rgba(255, 255, 255, .14);
}

.site-nav .nav-call a {
    border-color: var(--wsm-red);
    background: var(--wsm-red);
}

section {
    width: var(--wsm-container);
    margin-inline: auto;
    padding-left: 0;
    padding-right: 0;
}

section.main {
    margin-top: 0;
    margin-bottom: 0;
    padding: var(--wsm-section) 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

section.main aside {
    width: auto;
    float: none;
    text-align: left;
}

section.main .content {
    min-height: 100%;
    margin: 0;
    padding: 20px 18px 18px 88px;
    border: 1px solid var(--wsm-line);
    border-radius: var(--wsm-radius);
    background-color: var(--wsm-white);
    background-position: 18px 20px;
    background-size: 52px 52px;
    box-shadow: var(--wsm-shadow);
}

section.main .content h2 {
    margin: 0 0 8px;
    color: var(--wsm-black);
    font-size: 1.25rem;
}

section.main .content p {
    margin-bottom: 0;
}

section.about {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    align-items: center;
    background: linear-gradient(100deg, var(--wsm-red-dark), var(--wsm-red) 44%, #c91529);
    color: #fff;
    padding: var(--wsm-section) max(14px, calc((100% - min(100% - 28px, 1600px)) / 2));
}

section.about::before {
    content: "";
    min-height: clamp(190px, 44vw, 330px);
    border-radius: var(--wsm-radius);
    background: url(../images/front_shop.jpg) no-repeat center center;
    background-size: cover;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18);
}

section.about article {
    min-height: 0;
    padding: 0;
    background: none;
}

section.about h1 {
    margin: 0 0 12px;
    color: #fff;
    font-size: clamp(1.35rem, 3vw, 2rem);
    line-height: 1.18;
}

section.about p {
    margin-bottom: 0;
}

section.featured {
    width: 100%;
    margin: 0;
    background: var(--wsm-white);
    padding: var(--wsm-section) max(14px, calc((100% - min(100% - 28px, 1600px)) / 2));
}

.section-heading {
    display: grid;
    gap: 10px;
    margin-bottom: 18px;
}

.section-heading h1,
.section-heading h2 {
    margin: 0;
    padding: 0;
    color: var(--wsm-black);
    font-size: clamp(1.45rem, 3vw, 2rem);
    line-height: 1.18;
}

.section-heading p {
    margin: 6px 0 0;
    color: var(--wsm-muted);
}

.section-heading a {
    min-height: 42px;
    width: fit-content;
    display: inline-flex;
    align-items: center;
    color: var(--wsm-red);
    font-weight: 900;
}

.vehicle-search {
    display: grid;
    gap: 16px;
    padding: 18px;
    background: var(--wsm-soft);
    border: 1px solid var(--wsm-line);
    border-radius: var(--wsm-radius);
}

.vehicle-search-row {
    display: grid;
    gap: 6px;
}

.vehicle-search-row label {
    color: var(--wsm-black);
    font-weight: 700;
    font-size: .95rem;
}

.vehicle-search-row input {
    width: 100%;
    min-height: 44px;
    padding: 0 12px;
    border: 1px solid var(--wsm-line);
    border-radius: var(--wsm-radius);
    background: #fff;
    color: var(--wsm-black);
    font-size: 1rem;
}

.vehicle-search button {
    min-height: 44px;
    border: 1px solid var(--wsm-red);
    border-radius: var(--wsm-radius);
    background: var(--wsm-red);
    color: #fff;
    font-weight: 900;
    padding: 0 18px;
    cursor: pointer;
}

.vehicle-search button:hover {
    background: var(--wsm-red-dark);
    border-color: var(--wsm-red-dark);
}

.quick-search-section {
    width: 100%;
    margin: 0 0 24px;
    padding: 24px 0 0;
    border-radius: calc(var(--wsm-radius) + 4px);
    background: linear-gradient(90deg, var(--wsm-red-dark) 0%, var(--wsm-red) 100%);
}

.quick-search-summary {
    width: min(100%, 1180px);
    margin: 0 auto 14px;
    color: var(--wsm-white);
}

.quick-search-summary p {
    margin: 0;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.45;
    letter-spacing: .01em;
}

.quick-search-summary span {
    display: block;
    margin-top: 4px;
    color: rgba(255, 255, 255, .92);
    font-size: .95rem;
    font-weight: 600;
}

.quick-search-card {
    width: min(100%, 1180px);
    margin: 0 auto;
    padding: 20px 22px;
    display: grid;
    gap: 16px;
    background: var(--wsm-white);
    border: 1px solid var(--wsm-line);
    border-radius: var(--wsm-radius);
    box-shadow: var(--wsm-shadow);
}

.quick-search-heading {
    display: flex;
    align-items: center;
}

.quick-search-eyebrow {
    display: inline-block;
    color: var(--wsm-red);
    font-size: .8rem;
    font-weight: 900;
    line-height: 1;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.quick-search-form {
    display: grid;
    gap: 12px;
    align-items: end;
}

.quick-search-field {
    display: grid;
    gap: 7px;
}

.quick-search-field label {
    color: var(--wsm-black);
    font-size: .82rem;
    font-weight: 800;
}

.quick-search-field input,
.quick-search-field select {
    width: 100%;
    min-height: 48px;
    padding: 0 12px;
    border: 1px solid var(--wsm-line);
    border-radius: 8px;
    background: var(--wsm-white);
    color: var(--wsm-black);
    font: inherit;
    font-size: .95rem;
    font-weight: 600;
}

.quick-search-field input::placeholder {
    color: var(--wsm-muted);
}

.quick-search-field select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath fill='%23666' d='M0 0l5 6 5-6z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 10px 6px;
}

.quick-search-button {
    min-height: 48px;
    padding: 0 18px;
    border: 0;
    border-radius: 8px;
    background: var(--wsm-red);
    color: var(--wsm-white);
    font: inherit;
    font-size: .95rem;
    font-weight: 900;
    cursor: pointer;
    transition: background-color .2s ease, transform .2s ease;
}

.quick-search-button:hover {
    background: var(--wsm-red-dark);
    transform: translateY(-1px);
}

.quick-search-spacer {
    height: 18px;
}

@media screen and (min-width: 768px) {
    .quick-search-form {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

section.ProductCars.vehicle-listing,
#page .ProductDetails.vehicle-detail,
.contactDetails {
    width: var(--wsm-container);
    max-width: 1600px;
    margin-inline: auto;
    padding: var(--wsm-section) 0;
}

.vehicle-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 0;
    align-items: stretch;
}

.featured-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

@media screen and (min-width: 768px) {
    .featured-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }
}

@media screen and (min-width: 1024px) {
    .featured-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 14px;
    }
}

@media screen and (min-width: 1280px) {
    .featured-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 14px;
    }
}

.vehicle-card {
    min-width: 0;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--wsm-line);
    border-radius: var(--wsm-radius);
    background: var(--wsm-white);
    box-shadow: var(--wsm-shadow);
    transition: transform .18s ease, box-shadow .18s ease;
    font-size: 0.95rem;
    width: 100%;
}

.vehicle-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, .12);
}

.vehicle-card-image {
    position: relative;
    min-height: 0;
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #e9e9e9;
}

.vehicle-card-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.stock-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    max-width: calc(100% - 20px);
    min-height: 26px;
    display: inline-flex;
    align-items: center;
    border-radius: 4px;
    color: #fff;
    padding: 4px 9px;
    font-size: .82rem;
    font-weight: 900;
    line-height: 1.15;
}

.status-available {
    background: #227a36;
}

.status-reserved {
    background: #1d5f9f;
}

.status-sold {
    background: #7c141a;
}

.vehicle-card-body {
    min-width: 0;
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 9px;
    padding: 12px 12px 14px;
}

.vehicle-card-body h3 {
    margin: 0;
    color: var(--wsm-black);
    font-size: 0.98rem;
    line-height: 1.24;
    overflow-wrap: anywhere;
}

.vehicle-meta,
.spec-list {
    display: grid;
    gap: 8px;
    margin: 0;
}

.vehicle-meta {
    grid-template-columns: 1fr;
    font-size: .88rem;
    gap: 6px;
}

.vehicle-meta div,
.spec-list div {
    min-width: 0;
}

.vehicle-meta dt,
.spec-list dt {
    color: var(--wsm-red);
    font-weight: 900;
}

.vehicle-meta dd,
.spec-list dd {
    margin: 0;
    color: var(--wsm-ink);
    overflow-wrap: anywhere;
}

.vehicle-price {
    margin: 0;
    color: var(--wsm-red);
    font-size: 1.2rem;
    font-weight: 900;
}

.vehicle-summary {
    margin: 0;
    color: var(--wsm-muted);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    /*-webkit-line-clamp: 3;*/
    overflow: hidden;
}

a.vehicle-button,
.vehicle-button {
    min-height: 40px;
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: auto 0 0;
    border: 1px solid var(--wsm-red);
    border-radius: var(--wsm-radius);
    background: var(--wsm-red);
    color: #fff;
    padding: 8px 12px;
    font-weight: 900;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    font-size: 0.92rem;
}

a.vehicle-button:visited {
    color: #fff;
}

a.vehicle-button:hover {
    border-color: var(--wsm-red-dark);
    background: var(--wsm-red-dark);
}

a.vehicle-button.secondary {
    background: #fff;
    color: var(--wsm-red);
}

a.vehicle-button.secondary:visited {
    color: var(--wsm-red);
}

section.paging {
    clear: both;
    float: none;
    display: block;
    width: var(--wsm-container);
    margin: 3px auto;
    padding: 0 0 var(--wsm-section);
    position: relative;
}

.productPaging {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 18px;
    padding: 0 0 5px 0;
}

.productPaging a {
    min-width: 40px;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--wsm-red);
    border-radius: var(--wsm-radius);
    color: var(--wsm-red);
    font-weight: 900;
    text-decoration: none;
}

.productPaging a.active,
.productPaging a:hover {
    background: var(--wsm-red);
    color: #fff;
}

.vehicle-detail-heading {
    display: grid;
    gap: 12px;
    border-bottom: 2px solid var(--wsm-red);
    padding-bottom: 18px;
    margin-bottom: 24px;
}

.vehicle-detail-heading > div {
    min-width: 0;
}

.vehicle-detail-heading h1 {
    margin: 0 0 8px;
    color: var(--wsm-black);
    font-size: clamp(1.45rem, 4vw, 2.35rem);
    line-height: 1.16;
    overflow-wrap: anywhere;
}

.vehicle-detail-heading .stock-badge {
    position: static;
}

.breadcrumb {
    margin: 0 0 8px;
    overflow-wrap: anywhere;
}

.detail-price {
    white-space: normal;
    font-size: clamp(1.5rem, 3.5vw, 2rem);
}

.vehicle-detail-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
    align-items: start;
}

.vehicle-gallery,
.vehicle-information {
    min-width: 0;
}

.main-vehicle-image {
    width: 100%;
    display: block;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border: 1px solid var(--wsm-line);
    border-radius: var(--wsm-radius);
    background: #e9e9e9;
}

.gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 10px;
}

.gallery-thumbs button {
    border: 2px solid transparent;
    border-radius: var(--wsm-radius);
    overflow: hidden;
    background: #fff;
    padding: 0;
    cursor: pointer;
}

.gallery-thumbs button.is-active {
    border-color: var(--wsm-red);
}

.gallery-thumbs img {
    width: 100%;
    display: block;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.vehicle-information h2 {
    margin-top: 0;
    color: var(--wsm-black);
}

.spec-list {
    grid-template-columns: 1fr;
    margin-bottom: 22px;
}

.spec-list div {
    border-radius: var(--wsm-radius);
    background: var(--wsm-soft);
    padding: 10px;
}

.detail-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 18px;
}

.detail-actions .vehicle-button,
.detail-actions .back-link {
    width: 100%;
    margin-top: 0;
    justify-content: center;
    text-align: center;
}

.back-link {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    color: var(--wsm-red);
    font-weight: 900;
}

.contact-grid,
.contactDetails .map {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
}

.contactDetails .contactLeft,
.contactDetails .contactRight,
.contactDetails .postcode,
.contactDetails .mainmap {
    float: none;
    width: auto;
    height: auto;
    padding: 0;
}

.contactDetails h1,
.contactDetails h2 {
    color: var(--wsm-red);
    border-bottom: 1px solid var(--wsm-red);
    padding-bottom: 7px;
    font-size: clamp(1.35rem, 3vw, 1.75rem);
}

.contactDetails p,
.contactDetails a,
.contactDetails label,
footer {
    overflow-wrap: anywhere;
}

.contactDetails .map {
    height: auto;
    margin-top: 24px;
    padding-top: 0;
}

.contactDetails form {
    display: grid;
    gap: 10px;
    border-radius: var(--wsm-radius);
    background: var(--wsm-soft);
    padding: 16px;
}

.contactDetails input[type=text] {
    width: 100%;
    min-height: 44px;
    font-size: 1rem;
}

.contactDetails button {
    min-height: 44px;
    border: 1px solid var(--wsm-red);
    border-radius: var(--wsm-radius);
    background: var(--wsm-red);
    color: #fff;
    font-weight: 900;
}

.mapwrapper iframe {
    width: 100%;
    min-height: 320px;
    display: block;
    border-radius: var(--wsm-radius);
}

footer {
    margin-top: 0;
    border-top: 6px solid var(--wsm-red);
    background: var(--wsm-black);
    color: #fff;
    padding: 0;
}

.footer-grid,
.footer-bottom {
    width: var(--wsm-container);
    margin-inline: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 34px 0 26px;
}

.footer-grid strong {
    display: block;
    margin-bottom: 8px;
    font-size: 1.15rem;
    text-transform: uppercase;
}

.footer-grid p {
    margin: 0 0 6px;
}

.footer-grid .footer-nav {
    position: static;
    width: auto;
    display: grid;
    float: none;
    gap: 8px;
    padding: 0;
    background: none;
}

.footer-grid .footer-nav a {
    width: auto;
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    padding: 0;
    border: 0;
}

.footer-grid a,
.footer-bottom a,
.footer-grid a:visited,
.footer-bottom a:visited {
    color: #fff;
}

.footer-social {
    display: flex;
    gap: 10px;
    margin-top: 14px;
}

.footer-social span {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--wsm-red);
    color: #fff;
    font-weight: 900;
    line-height: 1;
}

.footer-map strong {
    margin-bottom: 6px;
    display: block;
}

.footer-map a {
    display: inline-block;
}

.footer-map img {
    width: 100%;
    max-width: 128px;
    display: block;
    border-radius: var(--wsm-radius);
    object-fit: cover;
}

.footer-bottom {
    display: grid;
    gap: 8px;
    border-top: 1px solid rgba(255, 255, 255, .18);
    padding: 14px 0;
    color: #f5dede;
    font-size: .9rem;
}

@media screen and (min-width: 430px) {
    .hero-actions {
        grid-template-columns: 1fr;
        width: min(100%, 320px);
    }

    .hero-actions .hero-button:last-child {
        display: none;
    }

    .vehicle-meta,
    .spec-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .detail-actions .back-link {
        grid-column: 1 / -1;
    }
}

@media screen and (min-width: 600px) {
    :root {
        --wsm-container: min(100% - 36px, 1600px);
    }

    .site-bar {
        grid-template-columns: minmax(220px, 420px) minmax(0, 1fr) auto;
    }

    header[data-site-header] a.logo {
        width: min(100%, 420px);
        height: 50px;
    }

    .site-contact {
        display: grid;
        gap: 2px;
        grid-column: auto;
        grid-row: auto;
        justify-self: end;
        margin: 0;
        background: transparent;
        padding: 0;
        text-align: right;
    }

    .site-contact a {
        justify-self: end;
        min-height: 32px;
        font-size: 1.1rem;
    }

    .site-contact span {
        display: block;
    }

    header[data-site-header] .nav-toggle {
        display: none;
    }

    .site-nav,
    header[data-site-header].is-open + .site-nav,
    body.nav-open .site-nav {
        display: block;
    }

    .site-nav ul {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: flex-end;
    }

    .site-nav a {
        width: auto;
        min-height: 42px;
        border: 0;
        border-radius: 0;
        padding-inline: 16px;
    }

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

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

    .gallery-thumbs {
        grid-template-columns: repeat(auto-fit, minmax(84px, 1fr));
    }

    .footer-grid {
        grid-template-columns: minmax(0, 1.4fr) minmax(180px, .6fr);
    }

    .footer-bottom {
        grid-template-columns: 1fr auto;
        align-items: center;
    }
}

@media screen and (min-width: 768px) {
    :root {
        --wsm-container: min(100% - 48px, 1600px);
    }

    section.about {
        grid-template-columns: minmax(260px, .42fr) minmax(0, .58fr);
        gap: 34px;
    }

    .section-heading {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: end;
    }

    .vehicle-detail-heading {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: start;
    }

    .detail-price {
        white-space: nowrap;
    }

    .vehicle-detail-layout {
        grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
    }

    .contact-grid,
    .contactDetails .map {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media screen and (min-width: 1024px) {
    .site-bar {
        min-height: 88px;
        grid-template-columns: minmax(320px, 497px) minmax(260px, 1fr);
    }

    header[data-site-header] a.logo {
        width: min(100%, 497px);
        height: 57px;
    }

    .site-contact {
        font-size: 1rem;
    }

    section.main {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    section.main .content {
        padding: 86px 28px 28px;
        background-position: 28px 22px;
        background-size: 60px 60px;
    }

    .vehicle-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .nav-call {
        display: none;
    }

    .footer-grid {
        grid-template-columns: minmax(0, 1.35fr) minmax(150px, .65fr) minmax(220px, 1fr) minmax(220px, .95fr);
        align-items: start;
    }
}

@media screen and (min-width: 1400px) {
    :root {
        --wsm-container: min(100% - 56px, 1600px);
    }

    .vehicle-listing .vehicle-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}
