.ev-stock,
.ev-vehicle-shell,
.ev-vehicle-page {
  --ev-deep: #006737;
  --ev-light: #009444;
  --ev-accent: #089d3c;
  --ev-grey: #404041;
  --ev-border: #d7e0db;
  --ev-surface: #f5f8f6;
  --ev-gradient: linear-gradient(110deg, var(--ev-deep), var(--ev-light));
  color: var(--ev-grey);
  font-family: var(--ev-proxima-family, "Proxima Nova", "proxima-nova", Arial, sans-serif);
  font-weight: 400;
}

.ev-stock { box-sizing: border-box; padding: clamp(12px, 3vw, 24px); background: var(--ev-surface); border: 1px solid var(--ev-border); border-radius: 12px; }
.ev-stock[data-ev-stock] { padding: clamp(9px, 1.6vw, 18px); }
.ev-stock *, .ev-vehicle-page * { box-sizing: border-box; }
.ev-stock a, .ev-vehicle-page a { color: var(--ev-deep); }
.ev-stock :focus-visible, .ev-vehicle-shell :focus-visible { outline: 2px solid var(--ev-deep); outline-offset: 3px; }
.ev-stock-filters { display: grid; gap: 4px; margin: 0; }
.ev-primary-filters, .ev-extra-filter-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.ev-stock-filters label { display: grid; gap: 2px; min-width: 0; font-size: .8125rem; line-height: 1.2; font-weight: 600; }
.ev-stock-filters select {
  display: block; width: 100%; min-width: 0; min-height: 40px; margin: 0; padding: 4px 6px;
  border: 1px solid #788a81; border-radius: 7px; color: var(--ev-grey);
  background: #fff; font: inherit; font-size: 1rem; font-weight: 400;
}
.ev-filter-footer { display: grid; gap: 4px; }
.ev-filter-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: .8125rem; }
.ev-more-filters summary { min-height: 28px; align-content: center; cursor: pointer; font-size: .8125rem; font-weight: 600; }
.ev-extra-filter-fields { padding: 4px 0 6px; }
.ev-stock .ev-filter-toggle {
  display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 3px 8px;
  border: 1px solid var(--ev-border); border-radius: 7px; color: var(--ev-deep);
  font-size: .78rem; font-weight: 600; cursor: pointer; list-style: none;
}
.ev-filter-toggle::-webkit-details-marker { display: none; }
.ev-filter-toggle::after { content: ""; width: 6px; height: 6px; border: solid currentColor; border-width: 0 1px 1px 0; transform: translateY(-1px) rotate(45deg); }
.ev-filter-panel[open] > .ev-filter-toggle::after { transform: translateY(1px) rotate(225deg); }
.ev-stock [data-ev-clear][hidden] { display: none !important; }
.ev-stock .ev-button, .ev-vehicle-shell .ev-button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px;
  border: 1px solid transparent; border-radius: 7px; padding: 8px 12px; margin: 0;
  background: var(--ev-deep); color: #fff; font: inherit; font-size: .9rem;
  font-weight: 700; text-align: center; text-decoration: none; cursor: pointer;
}
.ev-stock .ev-button:hover, .ev-vehicle-shell .ev-button:hover { background: #00542d; color: #fff; }
.ev-stock .ev-button.ev-filter-apply {
  min-height: 32px; padding: 3px 8px; border-color: var(--ev-border);
  background: transparent; color: var(--ev-deep); font-size: .78rem; font-weight: 600;
}
.ev-stock .ev-filter-toggle:hover, .ev-stock .ev-button.ev-filter-apply:hover { background: #eaf2ed; color: var(--ev-deep); }
.ev-stock-count { margin: 6px 0; font-size: .8125rem; }
@media (min-width: 680px) {
  .ev-stock .ev-filter-panel[open] > .ev-filter-toggle { display: none; }
  .ev-primary-filters { grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(118px, 1.2fr); }
  .ev-extra-filter-fields { grid-template-columns: repeat(auto-fit, minmax(min(130px, 100%), 1fr)); }
  .ev-stock-filters select { min-height: 33px; font-size: .875rem; }
  .ev-filter-footer { grid-template-columns: minmax(0, 1fr) auto; align-items: start; }
  .ev-filter-footer:has(details[open]) { grid-template-columns: minmax(0, 1fr); }
  .ev-filter-actions { min-height: 28px; justify-content: flex-end; }
  .ev-stock[data-ev-enhanced] .ev-filter-apply { display: none; }
}
@media (max-width: 679px) {
  .ev-stock[data-ev-stock] { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
  .ev-stock .ev-filter-panel { grid-row: 1; grid-column: 1 / -1; }
  .ev-stock .ev-filter-panel[open] .ev-stock-filters { margin-top: 8px; }
  .ev-stock[data-ev-stock] .ev-stock-count { grid-row: 1; grid-column: 2; align-self: start; justify-self: end; margin: 7px 0 0; pointer-events: none; }
  .ev-stock [data-ev-results] { grid-column: 1 / -1; }
}
.ev-stock-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; container-type: inline-size; }
.ev-stock-card { display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--ev-border); border-radius: 10px; background: #fff; }
.ev-stock-photo { display: block; border-radius: 9px 9px 0 0; }
.ev-stock-photo img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-radius: inherit; }
.ev-card-info { display: flex; flex-direction: column; flex: 1; align-items: flex-start; gap: 6px; padding: 13px; }
.ev-card-info h3 { margin: 0; font: inherit; font-size: 1.22rem; line-height: 1.25; font-weight: 700; overflow-wrap: anywhere; }
.ev-card-info h3 a { color: var(--ev-grey); text-decoration: none; }
.ev-stock-grid .ev-card-info h3 a { color: var(--ev-deep); }
.ev-card-info h3 a:hover { text-decoration: underline; }
.ev-card-info p { margin: 0; }
.ev-stock .ev-price { color: var(--ev-grey); font-size: .97rem; line-height: 1.2; font-weight: 700; }
.ev-vehicle-page .ev-price { color: var(--ev-deep); font-size: 1.35rem; line-height: 1.2; font-weight: 900; }
.ev-spec, .ev-place { font-size: .875rem; }
.ev-place { display: inline-flex; align-items: center; gap: 5px; }
.ev-place svg { flex: none; color: var(--ev-accent); }
.ev-stock-row .ev-card-info { min-width: 0; }
.ev-stock-highlights { overflow-wrap: anywhere; }
.ev-card-actions { display: flex; flex-wrap: wrap; gap: 7px; padding: 0 13px 13px; }
.ev-stock-grid .ev-card-actions .ev-button { min-height: 38px; padding: 6px 12px; font-size: .875rem; line-height: 1.2; }
@container (min-width: 660px) {
  .ev-stock-row {
    display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center;
  }
  .ev-stock-row-has-photo { grid-template-columns: minmax(0, min(31%, 320px)) minmax(0, 1fr) auto; }
  .ev-stock-row .ev-stock-photo {
    position: relative; align-self: stretch; min-height: 160px; border-radius: 9px 0 0 9px;
  }
  .ev-stock-row .ev-stock-photo img { position: absolute; inset: 0; height: 100%; }
  .ev-stock-row .ev-card-info { padding: 16px; }
  .ev-card-actions { flex-direction: column; padding: 13px; }
}
.ev-stock-grid .ev-button.ev-view-vehicle { background: var(--ev-deep); color: #fff; }
.ev-stock-grid .ev-button.ev-view-vehicle:hover { background: #00542d; }
.ev-stock-grid .ev-button.ev-enquire { background: transparent; color: var(--ev-deep); border-color: var(--ev-border); }
.ev-stock-grid .ev-button.ev-enquire:hover { background: var(--ev-surface); }
.ev-stock-pagination { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 16px; }
.ev-vehicle-shell { box-sizing: border-box; width: min(1200px, 100% - 36px); margin: 24px auto 40px; }
.ev-vehicle-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-bottom: 12px; }
.ev-vehicle-shell .ev-vehicle-title { flex: 1 1 260px; min-width: 0; margin: 0; font-family: inherit; font-weight: 900; text-align: left; overflow-wrap: anywhere; }
.ev-vehicle-heading-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 8px; max-width: 100%; margin-inline-start: auto; }
.ev-detail-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; align-items: start; }
@media (min-width: 760px) {
  .ev-detail-layout:has(.ev-gallery) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.ev-detail-summary h2 { margin: 0 0 10px; font-family: inherit; font-weight: 600; }
.ev-vehicle-shell .ev-detail-enquire { min-height: 46px; background: var(--ev-deep); color: #fff; }
.ev-vehicle-shell .ev-detail-enquire:hover { background: #00542d; }
.ev-gallery .ev-detail-enquire { width: 100%; margin-top: 10px; }
.ev-detail-summary [data-ev-video] { margin-top: 12px; }
.ev-vehicle-shell .ev-back-button, .ev-vehicle-page .ev-watch-video {
  background: #fff; color: var(--ev-deep); border-color: var(--ev-deep);
}
.ev-vehicle-shell .ev-back-button:hover, .ev-vehicle-page .ev-watch-video:hover {
  background: var(--ev-surface); color: var(--ev-deep);
}
.ev-description { width: 100%; max-width: none; }
.ev-detail-photo { display: block; width: 100%; height: auto; border-radius: 10px; }
.ev-detail-summary, .ev-enquiry-section { padding: 16px; border: 1px solid var(--ev-border); border-radius: 10px; background: var(--ev-surface); }
.ev-detail-summary { background-image: var(--ev-gradient); background-repeat: no-repeat; background-size: 100% 4px; }
.ev-detail-summary .ev-price { margin: 0; }
.ev-detail-summary .ev-price-on-application {
  margin: 0; padding: 9px 12px; border: 1px solid var(--ev-border); border-radius: 7px;
  background: #fff; color: var(--ev-deep); font-size: 1rem; font-weight: 600;
}
.ev-detail-summary dl { margin: 12px 0; }
.ev-detail-summary dl div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; padding: 7px 0; border-top: 1px solid var(--ev-border); }
.ev-detail-summary dd { margin: 0; font-weight: 600; }
.ev-description:not(:empty), .ev-enquiry-section { margin-top: 24px; }
.ev-enquiry-section { scroll-margin-top: 120px; }
.ev-enquiry-section h2 { margin-top: 0; font-family: inherit; font-weight: 900; }
.ev-enquiry-section .wpcf7 input:not([type="submit"]), .ev-enquiry-section .wpcf7 textarea { max-width: 100%; }

.ev-stock.ev-featured { max-width: 600px; padding: 0; border: 0; border-radius: 0; background: transparent; }

.ev-prices { display: grid; gap: 4px; }
.ev-prices .ev-price { margin: 0; }
.ev-prices .ev-price span { font-size: .78em; font-weight: 600; }
.ev-stock .ev-prices .ev-price-secondary,
.ev-vehicle-page .ev-prices .ev-price-secondary { color: var(--ev-grey); font-size: 1.05rem; font-weight: 700; }
.ev-stock .ev-prices .ev-price-secondary { font-size: .85rem; }
.ev-stock-grid .ev-prices {
  grid-auto-flow: column; grid-auto-columns: minmax(0, max-content);
  align-items: start; gap: 2px 8px; max-width: 100%;
}
.ev-stock-grid .ev-prices .ev-price { font-size: .8125rem; font-weight: 600; }
.ev-stock-grid .ev-prices .ev-price span { white-space: nowrap; }
.ev-gallery { min-width: 0; }
.ev-gallery [hidden] { display: none !important; }
.ev-gallery-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; border-radius: 10px; }
.ev-gallery-track a { flex: 0 0 100%; min-width: 0; scroll-snap-align: start; }
.ev-gallery-track a:focus-visible { outline-offset: -3px; }
.ev-gallery-track img {
  display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: contain; background: var(--ev-surface);
}
.ev-gallery-controls, .ev-lightbox-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ev-gallery-controls { margin: 8px 0; }
.ev-gallery-thumbs { display: flex; gap: 8px; overflow-x: auto; padding: 5px 4px 8px; }
.ev-gallery-thumbs a { display: block; flex: 0 0 64px; border: 1px solid var(--ev-border); border-radius: 6px; }
.ev-gallery-thumbs img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: inherit; }
.ev-gallery-lightbox {
  max-width: min(920px, calc(100vw - 24px)); max-height: calc(100dvh - 24px);
  border: 1px solid var(--ev-border); border-radius: 10px; padding: 12px; background: #fff; color: var(--ev-grey);
}
.ev-gallery-lightbox::backdrop { background: rgb(0 0 0 / 75%); }
.ev-lightbox-toolbar { justify-content: space-between; margin-bottom: 8px; }
.ev-lightbox-toolbar p { margin: 0; }
.ev-gallery-lightbox img { display: block; width: 100%; max-height: 70dvh; object-fit: contain; }
.ev-vehicle-extra { margin-top: 24px; }
.ev-description h2 { font-family: inherit; font-weight: 600; }
.ev-vehicle-extra h2 { font-family: inherit; font-weight: 900; }
.ev-vehicle-features { border-bottom: 1px solid var(--ev-border); margin-bottom: 10px; padding-bottom: 8px; }
.ev-vehicle-features h3 { margin: 0 0 4px; font-family: inherit; font-size: .875rem; font-weight: 600; }
.ev-vehicle-features ul { display: flex; flex-wrap: wrap; gap: 3px 7px; list-style: none; margin: 0; padding: 0; }
.ev-vehicle-features li { display: inline-flex; align-items: center; gap: 6px; min-width: 0; margin: 0; font-size: .8125rem; line-height: 1.4; }
.ev-feature-dot { flex: 0 0 5px; width: 5px; height: 5px; border-radius: 50%; background: var(--ev-accent); }
.ev-breadcrumbs ol, .ev-tags ul { display: flex; flex-wrap: wrap; gap: 6px 10px; list-style: none; margin: 0; padding: 0; }
.ev-breadcrumbs { margin-bottom: 12px; font-size: .875rem; }
.ev-breadcrumbs li { display: inline-flex; gap: 10px; align-items: baseline; }
.ev-tags a { display: inline-block; border: 1px solid var(--ev-border); border-radius: 16px; padding: 4px 10px; background: var(--ev-surface); }
.ev-price-filter { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-content: start; gap: 2px 4px; }
@media (min-width: 680px) { .ev-price-filter { grid-column: auto; } }
.ev-price-filter input[type="range"] { grid-column: 1 / -1; grid-row: 2; width: 100%; margin: 0; min-height: 30px; accent-color: var(--ev-deep); }
.ev-price-filter output { grid-column: 2; grid-row: 1; color: var(--ev-grey); font-size: .75rem; line-height: 1.3; font-weight: 600; }

.ev-featured-card {
  display: grid; grid-template-columns: minmax(0, 1fr); height: 200px; max-height: 200px;
  overflow: hidden; background: #fff; box-shadow: 0 2px 8px rgb(0 103 55 / 9%);
}
.ev-featured-card.ev-featured-has-photo { grid-template-columns: minmax(90px, 50%) minmax(0, 1fr); }
.ev-featured-card .ev-stock-photo {
  display: block; min-width: 0; min-height: 0; height: 100%;
  border-radius: 0; background: var(--ev-surface);
}
.ev-featured-card .ev-stock-photo img {
  width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover;
}
.ev-featured-card .ev-card-info {
  min-height: 0; min-width: 0; gap: 3px; overflow: auto; padding: 12px; scrollbar-width: none;
}
.ev-featured-card .ev-card-info h3 { font-size: clamp(1.12rem, 2.5vw, 1.4rem); line-height: 1.1; }
.ev-featured-card .ev-card-info h3 a { color: var(--ev-deep); }
.ev-featured-card .ev-prices { display: flex; flex-wrap: wrap; align-items: baseline; gap: 1px 8px; }
.ev-featured-card .ev-price,
.ev-featured-card .ev-prices .ev-price-secondary { font-size: .8rem; line-height: 1.2; white-space: nowrap; }
.ev-featured-card .ev-spec, .ev-featured-card .ev-place { font-size: .78rem; line-height: 1.2; }
.ev-featured-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 9px; margin-top: 3px; }
.ev-featured .ev-button.ev-view-more {
  min-height: 32px; padding: 4px 8px; font-size: .75rem; line-height: 1.2;
  border-color: var(--ev-deep); color: #fff; background: var(--ev-deep);
}
.ev-featured .ev-button.ev-view-more:hover { background: #00542d; color: #fff; }
.ev-featured-enquire { display: inline-flex; align-items: center; min-height: 28px; font-size: .75rem; font-weight: 700; }
@media (max-width: 560px) {
  .ev-featured-card.ev-featured-has-photo { grid-template-columns: minmax(85px, 42%) minmax(0, 1fr); }
  .ev-featured-card .ev-card-info { padding: 8px 10px; }
}
.ev-featured-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.ev-featured-track::-webkit-scrollbar, .ev-featured-card .ev-card-info::-webkit-scrollbar { display: none; }
.ev-featured-track > [data-ev-slide] { flex: 0 0 100%; min-width: 0; scroll-snap-align: start; }
.ev-video-lightbox { width: min(800px, calc(100vw - 24px)); }
.ev-video-lightbox video, .ev-video-lightbox iframe { display: block; width: 100%; max-height: 70dvh; }
.ev-video-lightbox iframe { aspect-ratio: 16 / 9; border: 0; }
.ev-video-fallback { margin: 8px 0 0; font-size: .875rem; }
.ev-gallery .ev-photo-nav {
  display: inline-flex; align-items: center; min-height: 32px; margin: 0; padding: 0 4px;
  border: 0; border-radius: 0; background: transparent; color: var(--ev-deep);
  font: inherit; font-size: .8125rem; font-weight: 600; text-decoration: underline; cursor: pointer;
}
.ev-gallery .ev-photo-nav:hover { color: var(--ev-grey); }
.ev-gallery-track, .ev-gallery-thumbs { scrollbar-width: none; }
.ev-gallery-track::-webkit-scrollbar, .ev-gallery-thumbs::-webkit-scrollbar { display: none; }
.ev-gallery [data-ev-gallery-controls] { justify-content: space-between; }
.ev-gallery-dots { display: flex; flex: 0 0 auto; flex-wrap: nowrap; justify-content: center; }
.ev-gallery .ev-gallery-dots button {
  display: grid; place-items: center; width: 24px; height: 28px; margin: 0; padding: 0;
  border: 0; background: transparent; color: var(--ev-deep); cursor: pointer;
}
.ev-gallery-dots button::before {
  content: ""; width: 7px; height: 7px; border: 1px solid currentColor; border-radius: 999px;
}
.ev-gallery-dots button[aria-current="true"]::before { width: 13px; background: currentColor; }

.ev-stock :is(button, input, select, textarea),
.ev-vehicle-page :is(button, input, select, textarea) { font-family: inherit; }
