/**
 * Vehicle listing display.
 * Savamotors 5.2C-C
 */

.sm-vehicle-listing {
--sm-vehicle-accent: var(--sm-brand-primary, #00095b);
--sm-vehicle-accent-dark: #00095b;
--sm-vehicle-text: #071d3a;
--sm-vehicle-muted: rgba(7, 29, 58, 0.68);
--sm-vehicle-border: rgba(7, 29, 58, 0.14);
--sm-vehicle-soft: #f4f6fa;
--sm-vehicle-card-bg: #fff;
width: 100%;
}

.sm-vehicle-listing--ford {
--sm-vehicle-accent: #00095b;
--sm-vehicle-accent-dark: #00095b;
--sm-vehicle-text: #071d3a;
--sm-vehicle-muted: rgba(7, 29, 58, 0.68);
--sm-vehicle-border: rgba(7, 29, 58, 0.14);
--sm-vehicle-soft: #f4f6fa;
}

/* Ford listing page layout */
body.page-id-25 .entry-header,
body.page-id-25 .page-header,
body.page-id-25 .entry-title,
body.page-id-25 .page-title,
body.page-id-25 .wp-block-post-title {
display: none !important;
}

body.page-id-25 .site-main {
width: min(1240px, calc(100% - 48px)) !important;
max-width: 1240px !important;
margin: 0 auto !important;
padding: 32px 0 72px !important;
}

body.page-id-25 .page-content,
body.page-id-25 .entry-content {
width: 100% !important;
max-width: none !important;
margin: 0 !important;
padding: 0 !important;
}

body.page-id-25 .sm-brand-section {
width: 100%;
max-width: none;
margin: 0;
padding: 0 0 56px;
}

body.page-id-25 .sm-brand-test-card__eyebrow {
margin: 0 0 12px;
color: var(--sm-vehicle-accent);
font-size: 12px;
font-weight: 800;
letter-spacing: 0.18em;
text-transform: uppercase;
}

body.page-id-25 .sm-brand-heading {
margin: 0;
color: var(--sm-vehicle-text);
font-size: clamp(34px, 4vw, 56px);
font-weight: 700;
line-height: 1.02;
}

body.page-id-25 .sm-brand-test-card__text {
max-width: 680px;
margin: 16px 0 0;
color: var(--sm-vehicle-muted);
font-size: 17px;
line-height: 1.55;
}

/* Tabs */
.sm-vehicle-tabs {
display: flex;
flex-wrap: wrap;
gap: 0;
margin: 34px 0 34px;
padding: 0;
border-bottom: 1px solid var(--sm-vehicle-border);
}

.sm-vehicle-tabs__button {
appearance: none;
display: inline-flex;
align-items: center;
justify-content: center;
gap: 10px;
margin: 0 0 -1px;
padding: 16px 22px;
border: 0;
border-bottom: 4px solid transparent;
background: transparent;
color: var(--sm-vehicle-muted);
font: inherit;
font-size: 14px;
font-weight: 800;
letter-spacing: 0.035em;
text-transform: uppercase;
line-height: 1.2;
cursor: pointer;
transition: color 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

.sm-vehicle-tabs__button:hover,
.sm-vehicle-tabs__button:focus-visible {
color: var(--sm-vehicle-accent);
background: rgba(0, 9, 91, 0.045);
outline: none;
}

.sm-vehicle-tabs__button.is-active {
color: var(--sm-vehicle-accent);
border-bottom-color: var(--sm-vehicle-accent);
background: rgba(0, 9, 91, 0.035);
}

.sm-vehicle-tabs__count {
display: inline-flex;
align-items: center;
justify-content: center;
min-width: 26px;
height: 26px;
padding: 0 8px;
border-radius: 999px;
background: var(--sm-vehicle-soft);
color: var(--sm-vehicle-accent-dark);
font-size: 12px;
font-weight: 800;
line-height: 1;
}

.sm-vehicle-tabs__button.is-active .sm-vehicle-tabs__count {
background: var(--sm-vehicle-accent);
color: #fff;
}

.sm-vehicle-tab-panel[hidden] {
display: none !important;
}

/* Grid */
.sm-vehicle-grid {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 30px;
}

.sm-vehicle-card {
display: flex;
flex-direction: column;
min-height: 100%;
overflow: hidden;
border: 1px solid var(--sm-vehicle-border);
border-radius: 0;
background: var(--sm-vehicle-card-bg);
box-shadow: 0 16px 34px rgba(7, 29, 58, 0.075);
transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.sm-vehicle-card:hover {
transform: translateY(-3px);
border-color: rgba(0, 9, 91, 0.28);
box-shadow: 0 22px 48px rgba(7, 29, 58, 0.12);
}

.sm-vehicle-card a {
text-decoration: none !important;
}

.sm-vehicle-card__media {
position: relative;
display: block;
overflow: hidden;
aspect-ratio: 4 / 3;
background: var(--sm-vehicle-soft);
text-decoration: none !important;
}

.sm-vehicle-card__image {
display: block;
width: 100%;
height: 100%;
object-fit: cover;
transform: scale(1.001);
transition: transform 220ms ease;
}

.sm-vehicle-card:hover .sm-vehicle-card__image {
transform: scale(1.035);
}

.sm-vehicle-card__placeholder {
display: flex;
align-items: center;
justify-content: center;
width: 100%;
height: 100%;
background:
linear-gradient(135deg, rgba(0, 9, 91, 0.08), rgba(0, 9, 91, 0)),
var(--sm-vehicle-soft);
color: rgba(7, 29, 58, 0.48);
}

.sm-vehicle-card__placeholder-text {
font-size: 13px;
font-weight: 800;
letter-spacing: 0.1em;
text-transform: uppercase;
}

.sm-vehicle-card__body {
display: flex;
flex: 1;
flex-direction: column;
padding: 24px;
}

.sm-vehicle-card__terms {
display: flex;
flex-wrap: wrap;
gap: 6px;
margin: 0 0 14px;
}

.sm-vehicle-card__term {
display: inline-flex;
align-items: center;
min-height: 24px;
padding: 5px 8px;
background: var(--sm-vehicle-soft);
color: var(--sm-vehicle-muted);
font-size: 11px;
font-weight: 800;
letter-spacing: 0.045em;
text-transform: uppercase;
line-height: 1.1;
}

.sm-vehicle-card__title {
margin: 0;
color: var(--sm-vehicle-text);
font-size: clamp(25px, 2.15vw, 34px);
font-weight: 700;
line-height: 1.04;
}

.sm-vehicle-card__title a {
color: var(--sm-vehicle-text) !important;
text-decoration: none !important;
}

.sm-vehicle-card__title a:hover,
.sm-vehicle-card__title a:focus-visible {
color: var(--sm-vehicle-accent) !important;
outline: none;
}

.sm-vehicle-card__actions {
margin-top: auto;
padding-top: 24px;
}

.sm-vehicle-card__button {
display: inline-flex !important;
align-items: center;
justify-content: center;
width: 100%;
min-height: 48px;
padding: 14px 20px;
border: 1px solid var(--sm-vehicle-accent);
background: var(--sm-vehicle-accent) !important;
color: #fff !important;
font-size: 13px;
font-weight: 900;
letter-spacing: 0.06em;
text-transform: uppercase;
text-decoration: none !important;
line-height: 1.2;
transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.sm-vehicle-card__button:hover,
.sm-vehicle-card__button:focus-visible {
border-color: #000;
background: #000 !important;
color: #fff !important;
outline: none;
}

.sm-vehicle-empty {
padding: 28px;
background: var(--sm-vehicle-soft);
color: var(--sm-vehicle-muted);
font-size: 16px;
line-height: 1.5;
}

@media (max-width: 1180px) {
body.page-id-25 .site-main {
width: min(1100px, calc(100% - 40px)) !important;
}

.sm-vehicle-grid {
gap: 24px;
}
}

@media (max-width: 1024px) {
.sm-vehicle-grid {
grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sm-vehicle-tabs {
gap: 6px;
border-bottom: 0;
}

.sm-vehicle-tabs__button {
margin: 0;
border: 1px solid var(--sm-vehicle-border);
border-bottom-width: 1px;
}
}

@media (max-width: 767px) {
body.page-id-25 .site-main {
width: min(100%, calc(100% - 28px)) !important;
padding: 24px 0 56px !important;
}

body.page-id-25 .sm-brand-heading {
font-size: 36px;
}

body.page-id-25 .sm-brand-test-card__text {
font-size: 15px;
}

.sm-vehicle-tabs {
display: grid;
grid-template-columns: 1fr;
margin: 26px 0 26px;
}

.sm-vehicle-tabs__button {
width: 100%;
padding: 14px 15px;
border-left-width: 4px;
justify-content: space-between;
text-align: left;
}

.sm-vehicle-tabs__button.is-active {
border-left-color: var(--sm-vehicle-accent);
background: rgba(0, 9, 91, 0.045);
}

.sm-vehicle-grid {
grid-template-columns: 1fr;
gap: 20px;
}

.sm-vehicle-card__body {
padding: 20px;
}

.sm-vehicle-card__title {
font-size: 27px;
}
}
