/*
Theme Name: Grönbil
Theme URI: https://gronbil.se
Description: Lightweight Scandinavian tema för miljöbilar — baserat på gronbil_redesign_concept.html
Version: 1.7.3
Author: Webbaktuell
Text Domain: gronbil
*/

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

:root {
  --g: #3B6D11;
  --g2: #639922;
  --g3: #EAF3DE;
  --g4: #97C459;
  --g-dark: #1a1f16;
  --ink: #1e2318;
  --ink2: #6b7566;
  --ink3: #9aa093;
  --line: rgba(99, 153, 34, 0.2);
  --bg: #f8faf5;
  --white: #ffffff;
  --r: 10px;
  --r-sm: 6px;
  --page-max-width: 1280px;
  --page-gutter: 24px;
  --sect-padding-y: 48px;
  --sect-padding-y-hero: 64px;
  --content-inset: max(var(--page-gutter), calc((100% - var(--page-max-width)) / 2 + var(--page-gutter)));
  --car-photo-ratio: 16 / 10;
  --car-gallery-ratio: 16 / 10;
  --car-thumb-ratio: 16 / 10;
  --font-sans: 'Ubuntu', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

body {
  font-family: var(--font-sans);
  background: var(--white);
  color: var(--ink);
  font-size: 13px;
  line-height: 1.5;
}

button,
input,
select,
textarea {
  font-family: inherit;
}

a { color: inherit; text-decoration: none; }

.site-container {
  width: 100%;
  max-width: var(--page-max-width);
  margin-inline: auto;
  padding-inline: var(--page-gutter);
}

.site-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-shell > main {
  flex: 1;
  width: 100%;
  min-width: 0;
}

body.single-ad_post {
  overflow-x: clip;
}

/* Full-width site chrome — no boxed frame */
.site-header {
  width: 100%;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-footer {
  width: 100%;
  background: var(--g3);
  border-top: 1px solid var(--line);
  color: var(--ink);
  margin-top: auto;
}

.nav-inner {
  padding-block: 0;
}

/* NAV */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 14px;
  background: transparent;
  border-bottom: none;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

.site-logo {
  display: block;
  width: auto;
  height: auto;
}

.site-logo--nav {
  height: 34px;
  max-width: 180px;
}

.site-logo--foot {
  height: 30px;
  width: auto;
  max-width: 168px;
}

.navlinks {
  display: flex;
  gap: 28px;
  align-items: center;
}

.navlinks a:not(.nav-cta) {
  font-size: 13px;
  color: var(--ink);
  font-weight: 500;
  letter-spacing: normal;
  text-transform: none;
  transition: color 0.2s;
}

.navlinks a:not(.nav-cta):hover,
.navlinks a:not(.nav-cta).active {
  color: var(--g);
  font-weight: 500;
}

.nav-cta {
  background: var(--g);
  color: var(--white) !important;
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  border: none;
  text-transform: none;
  letter-spacing: 0.02em;
}

.nav-cta:hover {
  background: var(--g2);
  color: var(--white) !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: var(--r-sm, 4px);
  background: transparent;
  cursor: pointer;
  color: var(--ink);
  flex-shrink: 0;
}

.nav-toggle:focus-visible {
  outline: 2px solid var(--g);
  outline-offset: 2px;
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  margin-inline: auto;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav.is-open .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav.is-open .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav.is-open .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* HOME HERO */
.hero {
  padding: var(--sect-padding-y-hero) var(--content-inset) var(--sect-padding-y);
  background: linear-gradient(160deg, #f0f7e8 0%, #e2f0d0 60%, #d4e9bc 100%);
  display: grid;
  grid-template-columns: 45% minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}

.hero-copy {
  max-width: 100%;
}

.hero-kicker {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: var(--g);
  text-transform: uppercase;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--g2);
  flex-shrink: 0;
}

.hero-h1 {
  font-size: 45px;
  font-weight: 800;
  letter-spacing: -0.8px;
  line-height: 1.12;
  color: var(--g-dark);
  margin-bottom: 18px;
}

.hero-h1 b,
.hero-h1 em,
.hero-h1 .hero-typed {
  color: var(--g2);
  font-style: normal;
  font-weight: 800;
}

.hero-typed.is-typing::after {
  content: '';
  display: inline-block;
  width: 2px;
  height: 0.92em;
  margin-left: 2px;
  vertical-align: -0.06em;
  background: var(--g2);
  animation: hero-cursor 0.75s step-end infinite;
}

@keyframes hero-cursor {
  50% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-typed.is-typing::after {
    display: none;
  }
}

.hero-p {
  font-size: 20px;
  color: var(--ink2);
  line-height: 1.55;
  margin-bottom: 28px;
  max-width: none;
}

.hero-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.hero-actions .btn-solid,
.hero-actions .btn-outline {
  font-size: 17px;
  padding: 12px 26px;
}

.btn-solid {
  background: var(--g);
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: 22px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 0.2s;
}

.btn-solid:hover {
  background: var(--g2);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--g);
  border: 1.5px solid var(--g);
  padding: 10px 22px;
  border-radius: 22px;
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 0.2s, color 0.2s;
}

.btn-outline:hover {
  background: var(--g3);
  color: var(--g);
}

.btn-ghost {
  font-size: 14px;
  font-weight: 600;
  color: var(--g);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.hero-aside {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hero-visual {
  border-radius: 14px;
  width: 100%;
  overflow: hidden;
  background: var(--g3);
  box-shadow: 0 8px 32px rgba(59, 109, 17, 0.12);
}

.hero-visual img {
  display: block;
  width: 100%;
  height: auto;
}

.hero-stats-inline {
  display: flex;
  gap: 24px;
  justify-content: center;
}

.hstat { text-align: center; }

.hstat-n {
  font-size: 22px;
  font-weight: 800;
  color: var(--g);
  letter-spacing: -0.3px;
}

.hstat-l {
  font-size: 11px;
  color: var(--ink2);
  font-weight: 500;
  margin-top: 2px;
}

/* SEARCH */
.search-wrap {
  padding-block: 32px;
  padding-inline: var(--content-inset);
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.search-wrap--archive {
  background: var(--g);
  border-bottom: none;
  padding: 14px var(--content-inset);
}

.search-wrap--archive .search-label {
  color: rgba(255, 255, 255, 0.75);
}

.search-wrap--archive .search-inner {
  border: none;
  background: transparent;
  gap: 10px;
}

.search-wrap--archive .si {
  background: var(--white);
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 2px 8px rgba(26, 31, 22, 0.12);
}

.search-wrap--archive .si input {
  color: var(--ink);
}

.search-wrap--archive .si input::placeholder {
  color: var(--ink3);
}

.search-wrap--archive .si i {
  color: var(--g);
}

.search-wrap--archive .si-go {
  background: var(--g-dark);
  border-radius: 8px;
  padding: 10px 20px;
  box-shadow: 0 2px 8px rgba(26, 31, 22, 0.2);
}

.search-wrap--archive .si-go:hover {
  background: #0f1410;
}

.search-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--ink2);
  margin-bottom: 10px;
}

.search-inner {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

.si {
  flex: 1;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  color: var(--ink2);
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.si input,
.si select {
  border: none;
  background: transparent;
  font: inherit;
  color: var(--ink);
  width: 100%;
  outline: none;
}

.si input::placeholder { color: #aab5a0; }

.si i {
  font-size: 14px;
  color: var(--ink2);
  flex-shrink: 0;
}

.si--narrow { max-width: 120px; flex: 0 1 120px; }
.si--narrow-md { max-width: 130px; flex: 0 1 130px; }

.si-go {
  background: var(--g);
  color: var(--white);
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}

.si-go:hover { background: var(--g2); }

.pills {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.pill {
  font-size: 12px;
  font-weight: 500;
  padding: 5px 14px;
  border-radius: 16px;
  border: 1px solid var(--line);
  color: var(--g);
  background: var(--g3);
  transition: all 0.2s;
}

.pill.on,
.pill:hover {
  background: var(--g);
  color: var(--white);
  border-color: var(--g);
}

/* CAR CARDS */
.cars-sect {
  padding-block: var(--sect-padding-y);
  padding-inline: var(--content-inset);
  background: var(--bg);
}

.sect-hd {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
}

.sect-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}

.sect-link {
  font-size: 13px;
  color: var(--g);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.sect-link i { font-size: 13px; }

.car-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.car-card {
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  background: var(--white);
  display: block;
  transition: box-shadow 0.2s, border-color 0.2s;
}

.car-card:hover {
  border-color: rgba(99, 153, 34, 0.35);
  box-shadow: 0 4px 16px rgba(59, 109, 17, 0.1);
}

.car-img {
  aspect-ratio: var(--car-photo-ratio);
  width: 100%;
  height: auto;
  background: var(--g3);
  position: relative;
  overflow: hidden;
}

.car-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.car-img--tall,
.car-img--short {
  aspect-ratio: var(--car-photo-ratio);
  height: auto;
}

.fuel-tag {
  position: absolute;
  top: 8px;
  left: 8px;
  font-size: 10px;
  font-weight: 600;
  color: var(--white);
  background: var(--g);
  padding: 2px 8px;
  border-radius: 10px;
  text-transform: none;
  letter-spacing: 0;
  z-index: 1;
}

.fuel-tag--hybrid {
  background: var(--g2);
  color: var(--white);
}

.car-body { padding: 10px 12px 12px; }

.car-make {
  font-size: 10px;
  color: var(--ink2);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}

.car-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 3px;
  line-height: 1.3;
}

.car-meta {
  font-size: 11px;
  color: var(--ink2);
  margin-bottom: 6px;
}

.car-price {
  font-size: 14px;
  font-weight: 800;
  color: var(--g);
}

/* NEWS */
.news-sect {
  padding-block: var(--sect-padding-y);
  padding-inline: var(--content-inset);
  background: var(--white);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.news-card {
  display: block;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  overflow: hidden;
  background: var(--white);
  text-decoration: none;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}

.news-card:hover {
  border-color: var(--g4);
  box-shadow: 0 4px 14px rgba(59, 109, 17, 0.08);
  transform: translateY(-1px);
}

.news-img {
  aspect-ratio: 16 / 10;
  width: 100%;
  background: var(--g3);
  position: relative;
  overflow: hidden;
}

.news-img img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.news-bd { padding: 10px 12px; }

.news-cat {
  font-size: 10px;
  font-weight: 600;
  color: var(--g2);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.news-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.35;
}

.news-archive {
  padding: var(--sect-padding-y) var(--content-inset) calc(var(--sect-padding-y) + 8px);
}

.news-archive-inner {
  max-width: var(--page-max-width);
  margin-inline: auto;
}

.news-archive-head {
  margin-bottom: 20px;
}

.news-archive-title {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 8px;
}

.news-archive-intro {
  margin-top: 0;
  color: var(--ink2);
  font-size: 14px;
  line-height: 1.5;
  max-width: 52ch;
}

.news-grid--archive {
  margin-top: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.news-pagination {
  margin-top: 24px;
}

.news-pagination .nav-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.news-pagination a,
.news-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
}

.news-pagination .current {
  background: var(--g);
  border-color: var(--g);
  color: var(--white);
}

.news-single {
  padding: var(--sect-padding-y) var(--content-inset) calc(var(--sect-padding-y) + 16px);
}

.news-single-inner {
  max-width: 760px;
  margin-inline: auto;
}

.news-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink2);
  margin-bottom: 12px;
}

.news-back:hover {
  color: var(--g);
}

.news-single-title {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.25;
  color: var(--ink);
  margin: 8px 0 6px;
}

.news-date {
  display: block;
  font-size: 12px;
  color: var(--ink2);
  margin-bottom: 18px;
}

.news-single-hero {
  border-radius: var(--r);
  overflow: hidden;
  margin-bottom: 20px;
  background: var(--g3);
}

.news-single-hero img {
  display: block;
  width: 100%;
  height: auto;
}

.news-single-content {
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink);
}

.news-single-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--r-sm);
  margin: 16px 0;
}

.news-single-content p {
  margin-bottom: 14px;
}

.news-single-content h2,
.news-single-content h3 {
  margin: 22px 0 10px;
  line-height: 1.3;
  color: var(--ink);
}

.news-single-content a {
  color: var(--g);
  text-decoration: underline;
}

.news-more-sect {
  margin-top: 44px;
  padding-top: var(--sect-padding-y);
  border-top: 1px solid var(--line);
}

.news-more-inner {
  max-width: var(--page-max-width);
  margin-inline: auto;
}

.news-more-sect .news-grid {
  margin-top: 4px;
}

/* FOOTER */
.foot-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px 40px;
  padding-block: var(--sect-padding-y) 40px;
}

.foot-col--brand {
  max-width: 360px;
}

.foot-wm {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  margin-bottom: 14px;
}

.foot-tagline {
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink2);
  margin-bottom: 18px;
}

.foot-social {
  display: flex;
  gap: 10px;
}

.foot-social-link {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--g);
  font-size: 18px;
  line-height: 1;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.foot-social-link .ti {
  font-size: 18px;
  line-height: 1;
}

.foot-social-link:hover {
  background: rgba(59, 109, 17, 0.08);
  border-color: rgba(59, 109, 17, 0.35);
  color: var(--g);
}

.foot-heading {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink2);
  margin-bottom: 14px;
}

.foot-list {
  list-style: none;
  display: grid;
  gap: 9px;
}

.foot-brands-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px 28px;
}

.foot-list a {
  font-size: 13px;
  color: var(--ink);
  transition: color 0.2s;
}

.foot-list a:hover {
  color: var(--g);
}

.foot-empty {
  font-size: 12px;
  color: var(--ink2);
  line-height: 1.5;
}

.foot-bottom {
  border-top: 1px solid var(--line);
}

.foot-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding-block: 16px 20px;
}

.foot-copy,
.foot-credit {
  font-size: 11px;
  color: var(--ink2);
}

.foot-credit a {
  color: var(--ink);
  transition: color 0.2s;
}

.foot-credit a:hover {
  color: var(--g);
}

/* LIST / ARCHIVE */
.archive-seo-content {
  width: 100%;
  max-width: var(--page-max-width);
  margin: 32px auto 40px;
  padding-inline: var(--page-gutter);
}

.archive-seo-content-inner {
  border-top: 1px solid var(--line);
  padding-top: 28px;
}

.archive-seo-content-title {
  font-size: clamp(24px, 3.5vw, 30px);
  font-weight: 800;
  line-height: 1.2;
  color: var(--ink);
  margin: 0 0 20px;
}

.archive-seo-content-body {
  display: grid;
  gap: 22px;
}

.archive-seo-content-block p,
.archive-seo-content-faq .archive-seo-faq-item p {
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink2);
}

.archive-seo-content-block p + p {
  margin-top: 10px;
}

.archive-seo-content-h2 {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 10px;
}

.archive-seo-content-related {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.archive-seo-content-related-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
}

.archive-seo-content-related-list a {
  font-size: 14px;
  font-weight: 600;
  color: var(--g);
}

.archive-seo-content-faq {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.archive-seo-faq-items {
  display: grid;
  gap: 8px;
}

.archive-seo-faq-item {
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--white);
  padding: 12px 14px;
}

.archive-seo-faq-item summary {
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.4;
}

.archive-seo-faq-item[open] summary {
  margin-bottom: 8px;
}

.list-layout {
  display: flex;
  flex-direction: column;
  min-height: 400px;
  max-width: var(--page-max-width);
  margin-inline: auto;
  padding-inline: var(--page-gutter);
  width: 100%;
}

.archive-filters {
  background: var(--bg);
  padding-block: 24px 28px;
  padding-inline: var(--content-inset);
  width: 100%;
}

.filter-panel {
  max-width: var(--page-max-width);
  margin-inline: auto;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.filter-bar {
  display: flex;
  align-items: center;
  gap: 12px 16px;
  flex-wrap: nowrap;
}

@media (max-width: 900px) {
  .filter-bar {
    flex-wrap: wrap;
  }
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

.filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  padding: 7px 14px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.filter-pill:hover {
  border-color: var(--g4);
  background: var(--g3);
}

.filter-pill.is-active {
  background: var(--g);
  border-color: var(--g);
  color: var(--white);
}

.filter-pill-count {
  font-size: 11px;
  font-weight: 600;
  opacity: 0.75;
}

.filter-pill.is-active .filter-pill-count {
  opacity: 0.9;
}

.archive-filters-form {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.filter-select {
  width: auto;
  min-width: 132px;
  max-width: 180px;
  appearance: none;
  background: var(--white)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7566' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E")
    no-repeat right 12px center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 36px 10px 12px;
  font-size: 13px;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.filter-select:hover {
  border-color: var(--g4);
}

.filter-select:focus {
  outline: none;
  border-color: var(--g);
  box-shadow: 0 0 0 3px rgba(59, 109, 17, 0.12);
}

.filter-active {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.filter-active-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--ink2);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  flex: 1;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 16px;
  background: var(--white);
  border: 1px solid var(--g4);
  color: var(--g);
  transition: background 0.15s;
}

.filter-chip:hover {
  background: var(--g3);
}

.filter-chip-x {
  font-size: 14px;
  line-height: 1;
  opacity: 0.7;
}

.filter-clear-all {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink2);
  margin-left: auto;
  white-space: nowrap;
}

.filter-clear-all:hover {
  color: var(--g);
}

.results-area {
  padding-block: 28px 40px;
  width: 100%;
}

.results-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  gap: 12px;
  flex-wrap: wrap;
}

.results-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.results-sort-form {
  margin: 0;
}

.view-toggle {
  display: inline-flex;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  overflow: hidden;
  background: var(--white);
}

.view-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 30px;
  padding: 0;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink2);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.view-toggle-btn + .view-toggle-btn {
  border-left: 1px solid var(--line);
}

.view-toggle-btn i {
  font-size: 14px;
}

.view-toggle-btn.is-active,
.view-toggle-btn[aria-pressed="true"] {
  background: var(--g3);
  color: var(--g);
  font-weight: 600;
}

.view-toggle-btn:hover:not(.is-active):not([aria-pressed="true"]) {
  background: var(--bg);
  color: var(--ink);
}

.rc {
  font-size: 13px;
  color: var(--ink2);
}

.rc strong {
  color: var(--ink);
  font-weight: 700;
}

.rsort {
  appearance: none;
  -webkit-appearance: none;
  height: 30px;
  min-width: 118px;
  padding: 0 26px 0 10px;
  font-size: 12px;
  font-family: inherit;
  font-weight: 500;
  line-height: 28px;
  color: var(--ink2);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background-color: var(--white);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7566' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 12px;
  cursor: pointer;
  outline: none;
  transition: border-color 0.15s, color 0.15s, box-shadow 0.15s;
}

.rsort:hover {
  border-color: rgba(99, 153, 34, 0.35);
  color: var(--ink);
}

.rsort:focus,
.rsort:focus-visible {
  border-color: var(--g2);
  box-shadow: 0 0 0 2px rgba(59, 109, 17, 0.12);
  outline: none;
}

.res-grid {
  display: grid;
  gap: 12px;
}

.results-area--grid .res-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.results-area--list .res-grid {
  grid-template-columns: 1fr;
}

.results-area--list .rcard {
  flex-direction: row;
  align-items: stretch;
}

.results-area--list .rimg {
  width: min(280px, 38%);
  aspect-ratio: var(--car-photo-ratio);
}

.results-area--list .rbody {
  padding: 14px 16px;
}

.results-area--list .rbtm {
  margin-top: 8px;
}

.rcard {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--white);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s;
}

.rcard:hover {
  box-shadow: 0 4px 16px rgba(59, 109, 17, 0.1);
}

.rimg {
  aspect-ratio: var(--car-photo-ratio);
  width: 100%;
  height: auto;
  background: var(--g3);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.rimg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.rbody {
  padding: 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.rmake {
  font-size: 10px;
  font-weight: 600;
  color: var(--ink2);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 2px;
}

.rname {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 3px;
  line-height: 1.3;
}

.rtags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.rtag {
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 8px;
  background: var(--g3);
  color: var(--g);
  font-weight: 500;
  border: none;
}

.rbtm {
  margin-top: auto;
}

.rprice {
  font-size: 16px;
  font-weight: 800;
  color: var(--g);
}

.rdealer {
  font-size: 10px;
  color: var(--ink2);
  margin-top: 2px;
}

.pagination {
  display: flex;
  gap: 4px;
  margin-top: 16px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}

.pagination a,
.pagination span {
  min-width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  color: var(--ink2);
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.pagination .current {
  background: var(--g);
  border-color: var(--g);
  color: var(--white);
  font-weight: 700;
}

/* DETAIL */
.det-cols {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 3fr);
  max-width: var(--page-max-width);
  margin-inline: auto;
  padding-inline: var(--page-gutter);
  width: 100%;
}

.det-l {
  padding: var(--sect-padding-y) 28px var(--sect-padding-y) 0;
  min-width: 0;
}

.det-r {
  padding: var(--sect-padding-y) 22px;
  background: var(--white);
  min-width: 0;
}

.bread {
  font-size: 11px;
  color: var(--ink2);
  margin-bottom: 14px;
}

.bread a { color: var(--ink2); }
.bread a:hover { color: var(--g); }
.bread span:last-child { color: var(--g); }

.det-head {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: start;
  column-gap: 14px;
  margin-bottom: 16px;
}

.det-head-spacer {
  display: none;
}

.det-back-nav {
  margin-bottom: 0;
}

.det-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  font-size: 18px;
  line-height: 1;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.det-back:hover {
  border-color: var(--g4);
  color: var(--g);
  background: var(--g3);
}

.det-title {
  grid-column: 2;
  text-align: left;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.25;
  color: var(--ink);
  margin-bottom: 0;
  padding-top: 4px;
  min-width: 0;
  overflow-wrap: break-word;
  hyphens: auto;
}

.car-gallery {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.gal-main {
  background: var(--g3);
  border-radius: var(--r);
  aspect-ratio: var(--car-gallery-ratio);
  width: 100%;
  height: auto;
  margin-bottom: 8px;
  position: relative;
  overflow: hidden;
}

.gal-open {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: none;
  background: transparent;
  cursor: zoom-in;
}

.gal-main img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
}

.gal-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, transform 0.15s;
}

.gal-nav:hover {
  background: var(--white);
  color: var(--g);
}

.gal-nav--prev { left: 10px; }
.gal-nav--next { right: 10px; }

.gal-count {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  font-size: 11px;
  font-weight: 600;
  color: var(--g);
  background: rgba(255, 255, 255, 0.9);
  padding: 4px 10px;
  border-radius: 16px;
  pointer-events: none;
}

.gal-thumbs {
  display: flex;
  gap: 6px;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding-bottom: 4px;
  margin-bottom: 8px;
  scrollbar-width: thin;
  scrollbar-color: var(--g4) transparent;
}

.gal-thumbs::-webkit-scrollbar {
  height: 6px;
}

.gal-thumbs::-webkit-scrollbar-thumb {
  background: var(--g4);
  border-radius: 999px;
}

.gth {
  width: 72px;
  aspect-ratio: var(--car-thumb-ratio);
  height: auto;
  border-radius: 5px;
  background: var(--g3);
  border: 1.5px solid transparent;
  flex-shrink: 0;
  overflow: hidden;
  cursor: pointer;
  padding: 0;
  position: relative;
}

.gth img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.gth.on { border-color: var(--g); }

.gth.more {
  width: 72px;
  aspect-ratio: var(--car-thumb-ratio);
  height: auto;
  border: 1px dashed var(--line);
  background: var(--g3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  color: var(--g);
  cursor: default;
}

.car-gallery:focus {
  outline: none;
}

.car-gallery:focus-visible {
  outline: 2px solid var(--g4);
  outline-offset: 4px;
  border-radius: var(--r);
}

.gal-lightbox-nav[hidden] {
  display: none;
}

.gal-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
}

.gal-lightbox[hidden] {
  display: none;
}

.gal-lightbox-backdrop {
  position: absolute;
  inset: 0;
  border: none;
  background: rgba(15, 20, 16, 0.92);
  cursor: zoom-out;
}

.gal-lightbox-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  padding: 56px 72px 72px;
  pointer-events: none;
}

.gal-lightbox-img {
  max-width: min(1200px, 100%);
  max-height: calc(100vh - 120px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--r-sm);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  pointer-events: auto;
  cursor: default;
}

.gal-lightbox-close,
.gal-lightbox-nav {
  position: absolute;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  pointer-events: auto;
  transition: background 0.15s, transform 0.15s;
}

.gal-lightbox-close:hover,
.gal-lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.22);
}

.gal-lightbox-close {
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  font-size: 20px;
}

.gal-lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  font-size: 22px;
}

.gal-lightbox-nav--prev { left: 16px; }
.gal-lightbox-nav--next { right: 16px; }

.gal-lightbox-meta {
  position: absolute;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  pointer-events: none;
}

body.gal-lightbox-open {
  overflow: hidden;
}

@media (max-width: 720px) {
  .gal-nav {
    width: 32px;
    height: 32px;
    font-size: 16px;
  }

  .gal-lightbox-inner {
    padding: 48px 16px 64px;
  }

  .gal-lightbox-nav {
    width: 38px;
    height: 38px;
  }

  .gal-lightbox-nav--prev { left: 8px; }
  .gal-lightbox-nav--next { right: 8px; }
}

/* Placeholder-SVG centreras i bildytan */
.car-img .car-placeholder-svg,
.rimg .car-placeholder-svg,
.gal-main .car-placeholder-svg {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 55%;
  max-width: 220px;
  height: auto;
}

.specs-row {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 6px;
  margin-top: 16px;
}

.spec-cell {
  text-align: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 8px 4px;
  min-width: 0;
}

.spec-ic i {
  font-size: 16px;
  color: var(--g2);
  margin-bottom: 2px;
  display: block;
}

.spec-v {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
}

.spec-l {
  font-size: 9px;
  color: var(--ink2);
  margin-top: 1px;
  line-height: 1.2;
}

.eq-section {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.eq-lbl {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 10px;
}

.eq-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px 12px;
}

.eq-item {
  font-size: 13px;
  color: var(--ink2);
  padding: 2px 0;
  display: flex;
  align-items: center;
  gap: 4px;
  border-bottom: none;
}

.eq-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--g4);
  flex-shrink: 0;
}

.eq-item--hidden {
  display: none;
}

.eq-more {
  margin-top: 10px;
  font-size: 13px;
  color: var(--g);
  font-weight: 600;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-align: left;
}

.eq-more:hover {
  text-decoration: underline;
}

.price-block {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.price-lbl {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink2);
  line-height: 1.2;
}

.price-val {
  font-size: 30px;
  font-weight: 900;
  letter-spacing: -1px;
  color: var(--g);
  line-height: 1.1;
}

.loan-calc {
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 18px 16px 14px;
  margin-bottom: 20px;
  background: var(--white);
}

.loan-calc-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  text-align: center;
  margin-bottom: 6px;
}

.loan-calc-result {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
  margin-bottom: 18px;
}

.loan-calc-amount {
  font-size: 32px;
  font-weight: 900;
  letter-spacing: -1px;
  color: var(--ink);
  line-height: 1;
}

.loan-calc-unit {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}

.loan-calc-field {
  margin-bottom: 14px;
}

.loan-calc-field:last-of-type {
  margin-bottom: 12px;
}

.loan-calc-field-hd {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.loan-calc-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
}

.loan-calc-value-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.loan-calc-value {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
}

.loan-calc-hint {
  font-size: 10px;
  font-weight: 600;
  color: var(--g);
  white-space: nowrap;
}

.loan-calc-hint.is-hidden {
  display: none;
}

.loan-calc-slider-row {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) 24px;
  align-items: center;
  gap: 6px;
}

.loan-calc-step {
  width: 24px;
  height: 24px;
  border: none;
  background: transparent;
  color: var(--ink2);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  border-radius: 4px;
  transition: color 0.15s, background 0.15s;
}

.loan-calc-step:hover {
  color: var(--g);
  background: var(--g3);
}

.loan-calc-range {
  width: 100%;
  height: 6px;
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
  background: linear-gradient(
    to right,
    var(--g) 0%,
    var(--g) var(--loan-fill, 50%),
    #e2e8df var(--loan-fill, 50%),
    #e2e8df 100%
  );
  border-radius: 999px;
  outline: none;
  cursor: pointer;
}

.loan-calc-range::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--g);
  background: var(--white);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
  cursor: pointer;
}

.loan-calc-range::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--g);
  background: var(--white);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
  cursor: pointer;
}

.loan-calc-range::-moz-range-track {
  height: 6px;
  border-radius: 999px;
  background: #e2e8df;
}

.loan-calc-disclaimer {
  font-size: 10px;
  line-height: 1.45;
  color: var(--ink2);
  text-align: center;
  margin: 0;
}

.dealer-block {
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 14px;
  background: var(--bg);
  margin-bottom: 14px;
}

.dealer-block .db-loc {
  display: flex;
  width: 100%;
  margin-top: 6px;
  margin-bottom: 0;
}

.dealer-block .det-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 20px;
  margin-top: 14px;
  margin-bottom: 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.dealer-block .det-action-feedback:not(:empty) {
  text-align: center;
}

.dealer-block .ab-primary {
  margin-top: 14px;
}

.db-lbl {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--ink2);
  margin-bottom: 8px;
}

.db-name {
  display: block;
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 2px;
  line-height: 1.3;
}

a.db-name {
  text-decoration: none;
  transition: color 0.15s;
}

a.db-name:hover {
  color: var(--g);
}

/* DEALERS */
.search-wrap--dealers .search-inner .si {
  flex: 1 1 auto;
}

.dealers-filters .filter-bar {
  justify-content: space-between;
}

.dealers-index {
  padding-block: 28px 40px;
  padding-inline: var(--content-inset);
  background: var(--white);
}

.dealers-index-inner,
.dealer-profile-cars-inner {
  max-width: var(--page-max-width);
  margin-inline: auto;
}

.dealers-index-title {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 8px;
}

.dealers-index-intro,
.dealers-empty {
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink2);
  max-width: 58ch;
}

.dealers-list {
  display: grid;
  gap: 12px;
}

.dealer-row {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto;
  gap: 16px 24px;
  align-items: center;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--bg);
}

.dealer-row-name {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 6px;
}

.dealer-row-name a {
  color: var(--ink);
  transition: color 0.2s;
}

.dealer-row-name a:hover {
  color: var(--g);
}

.dealer-row-loc {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 13px;
  color: var(--ink2);
  margin: 0;
  line-height: 1.45;
}

.dealer-row-contact {
  display: grid;
  gap: 8px;
}

.dealer-row-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ink);
  transition: color 0.2s;
}

.dealer-row-link:hover {
  color: var(--g);
}

.dealer-row-count {
  text-align: right;
  min-width: 132px;
}

.dealer-row-count-n {
  display: block;
  font-size: 24px;
  font-weight: 800;
  color: var(--g);
  line-height: 1.1;
}

.dealer-row-count-l {
  display: block;
  font-size: 11px;
  color: var(--ink2);
  margin-top: 2px;
}

.dealer-row-cta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--g);
}

.dealer-row-cta:hover {
  color: var(--g2);
}

.dealer-profile {
  padding: var(--sect-padding-y-hero) var(--content-inset) var(--sect-padding-y);
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.dealer-profile-inner {
  max-width: var(--page-max-width);
  margin-inline: auto;
}

.dealer-profile-kicker {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}

.dealer-profile-kicker a {
  color: var(--g);
}

.dealer-profile-kicker a:hover {
  color: var(--g2);
}

.dealer-profile-title {
  font-size: 32px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 10px;
  line-height: 1.15;
}

.dealer-profile-loc {
  font-size: 14px;
  color: var(--ink2);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
}

.dealer-profile-loc a {
  color: inherit;
}

.dealer-profile-loc a:hover {
  color: var(--g);
}

.dealer-profile-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-bottom: 14px;
}

.dealer-profile-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--ink);
  transition: color 0.2s;
}

.dealer-profile-link:hover {
  color: var(--g);
}

.dealer-profile-stats {
  font-size: 14px;
  font-weight: 600;
  color: var(--g);
  margin: 0;
}

.dealer-profile-note {
  font-size: 14px;
  color: var(--ink2);
}

.dealer-profile-note a {
  color: var(--g);
  font-weight: 600;
}

.dealer-profile-cars {
  padding-block: var(--sect-padding-y);
  padding-inline: var(--content-inset);
  background: var(--bg);
}

.db-loc {
  font-size: 12px;
  color: var(--ink2);
  display: flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  transition: color 0.15s;
}

a.db-loc:hover {
  color: var(--g);
}

.det-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 20px;
  margin-bottom: 16px;
}

.det-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: none;
  background: none;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  transition: color 0.15s;
}

.det-action-btn i {
  font-size: 17px;
  color: var(--g);
  line-height: 1;
}

.det-action-btn:hover,
.det-action-btn.is-active {
  color: var(--g);
}

.det-action-feedback {
  flex-basis: 100%;
  font-size: 12px;
  font-weight: 600;
  color: var(--g);
  min-height: 0;
}

.det-action-feedback:not(:empty) {
  min-height: 1.2em;
}

.ab-primary,
.ab-secondary {
  display: block;
  width: 100%;
  text-align: center;
  border-radius: var(--r);
  font-size: 14px;
  text-decoration: none;
  margin-bottom: 8px;
  cursor: pointer;
}

.ab-primary {
  background: var(--g);
  color: var(--white);
  font-weight: 700;
  padding: 13px;
  letter-spacing: 0.2px;
  border: none;
}

.ab-primary:hover {
  background: var(--g2);
  color: var(--white);
}

.ab-secondary {
  border: 1.5px solid var(--g);
  color: var(--g);
  background: var(--white);
  font-weight: 600;
  padding: 12px;
}

.ab-secondary:hover {
  background: var(--g3);
}

.sim-sect {
  padding-block: var(--sect-padding-y);
  border-top: 1px solid var(--line);
  background: var(--bg);
}

.sim-sect-inner {
  max-width: var(--page-max-width);
  margin-inline: auto;
  padding-inline: var(--page-gutter);
}

.sim-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.car-placeholder-svg { opacity: 0.85; }

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

@media (max-width: 900px) {
  :root {
    --page-gutter: 16px;
    --sect-padding-y: 40px;
    --sect-padding-y-hero: 48px;
  }
  .hero {
    grid-template-columns: 1fr;
    padding: var(--sect-padding-y-hero) var(--content-inset) var(--sect-padding-y);
    gap: 28px;
  }

  .hero-kicker {
    font-size: 11px;
    margin-bottom: 12px;
  }

  .hero-h1 {
    font-size: 32px;
    letter-spacing: -0.5px;
    margin-bottom: 14px;
  }

  .hero-p {
    font-size: 14px;
    margin-bottom: 24px;
  }

  .hero-actions .btn-solid,
  .hero-actions .btn-outline {
    font-size: 14px;
    padding: 10px 22px;
  }
  .hero-visual { max-width: 100%; }
  .car-grid,
  .news-grid,
  .sim-grid { grid-template-columns: 1fr 1fr; }
  .filter-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .archive-filters-form {
    width: 100%;
  }

  .filter-select {
    flex: 1;
    min-width: 0;
    max-width: none;
  }

  .filter-active {
    flex-direction: column;
    align-items: flex-start;
  }

  .filter-clear-all {
    margin-left: 0;
  }
  .det-cols { grid-template-columns: 1fr; }
  .det-l {
    padding: var(--sect-padding-y) 0;
  }

  .det-r {
    padding: var(--sect-padding-y) 0;
    border-top: 1px solid var(--line);
    margin-top: 8px;
  }

  .det-head {
    column-gap: 10px;
  }

  .det-title {
    font-size: 20px;
    line-height: 1.3;
  }

  .price-val {
    font-size: 26px;
  }
  .results-area--grid .res-grid {
    grid-template-columns: 1fr 1fr;
  }

  .results-area--list .rcard {
    flex-direction: column;
  }

  .results-area--list .rimg {
    width: 100%;
  }

  .specs-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }
  .nav {
    flex-wrap: wrap;
    padding-block: 12px;
  }

  .nav-toggle {
    display: flex;
    margin-left: auto;
  }

  .navlinks {
    display: none;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 0;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
  }

  .nav.is-open .navlinks {
    display: flex;
  }

  .navlinks a:not(.nav-cta) {
    padding: 12px 0;
    font-size: 15px;
    border-bottom: 1px solid var(--line);
  }

  .nav-cta {
    margin-top: 12px;
    width: 100%;
    text-align: center;
    padding-block: 12px;
  }

  .search-wrap--archive .search-inner {
    flex-wrap: wrap;
  }

  .search-wrap--archive .search-inner .si:has(input[name="s"]) {
    flex: 1 1 100%;
    width: 100%;
    max-width: none;
  }

  .search-wrap--archive .si--narrow,
  .search-wrap--archive .si--narrow-md {
    max-width: none;
    flex: 1 1 calc(50% - 5px);
  }

  .search-wrap--archive .si-go {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 560px) {
  .car-grid,
  .news-grid,
  .sim-grid { grid-template-columns: 1fr; }

  .results-area--grid .res-grid { grid-template-columns: 1fr; }
  .hero-stats-inline { flex-wrap: wrap; gap: 16px; }
  .eq-cols { grid-template-columns: 1fr; }

  .det-title {
    font-size: 18px;
  }

  .specs-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .spec-v {
    font-size: 11px;
  }

  .gth {
    width: 56px;
  }

  .loan-calc {
    padding: 14px 12px 12px;
  }

  .det-action-btn {
    font-size: 12px;
  }
  .foot-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-top: var(--sect-padding-y);
  }

  .foot-col--brand {
    max-width: none;
  }

  .foot-bottom-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .dealer-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .dealer-row-count {
    text-align: left;
    min-width: 0;
  }

  .advertising-grid,
  .advertising-checkboxes {
    grid-template-columns: 1fr;
  }

  .advertising-form-row {
    grid-template-columns: 1fr;
  }
}

/* ADVERTISING */
.advertising-page {
  background: var(--white);
}

.advertising-intro {
  padding: var(--sect-padding-y-hero) var(--content-inset) var(--sect-padding-y);
  background: linear-gradient(160deg, #f0f7e8 0%, #e2f0d0 60%, #d4e9bc 100%);
}

.advertising-intro-inner,
.advertising-placements-inner,
.advertising-form-inner {
  max-width: var(--page-max-width);
  margin-inline: auto;
}

.advertising-title {
  font-size: clamp(30px, 4vw, 38px);
  font-weight: 800;
  line-height: 1.12;
  color: var(--ink);
  margin-bottom: 12px;
}

.advertising-lead {
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  max-width: 62ch;
  margin-bottom: 10px;
}

.advertising-copy,
.advertising-form-intro {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink2);
  max-width: 62ch;
}

.advertising-placements {
  padding-block: var(--sect-padding-y);
  padding-inline: var(--content-inset);
  background: var(--white);
}

.advertising-form-section {
  padding-block: var(--sect-padding-y);
  padding-inline: var(--content-inset);
  background: var(--bg);
  border-top: 1px solid var(--line);
}

.advertising-section-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 10px;
}

.advertising-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.advertising-card {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--bg);
  padding: 18px 18px 16px;
}

.advertising-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--g3);
  color: var(--g);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 12px;
}

.advertising-card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}

.advertising-card-text {
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink2);
  margin: 0;
}

.advertising-form {
  margin-top: 18px;
  max-width: 640px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--white);
}

.advertising-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.advertising-placements-field {
  border: none;
  margin: 0 0 14px;
  padding: 0;
}

.advertising-checkboxes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 14px;
  margin-top: 8px;
}

.advertising-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ink);
  cursor: pointer;
}

.advertising-checkbox input {
  accent-color: var(--g);
}

.advertising-form-actions {
  justify-content: flex-start;
}

/* CONTACT */
.contact-page {
  background: var(--white);
}

.contact-intro {
  padding: var(--sect-padding-y-hero) var(--content-inset) var(--sect-padding-y);
  background: linear-gradient(160deg, #f0f7e8 0%, #e2f0d0 60%, #d4e9bc 100%);
}

.contact-intro-inner,
.contact-body-inner {
  max-width: var(--page-max-width);
  margin-inline: auto;
}

.contact-title {
  font-size: clamp(30px, 4vw, 38px);
  font-weight: 800;
  line-height: 1.12;
  color: var(--ink);
  margin-bottom: 12px;
}

.contact-lead {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  max-width: 62ch;
  margin: 0;
}

.contact-body {
  padding-block: var(--sect-padding-y);
  padding-inline: var(--content-inset);
  background: var(--bg);
}

.contact-body-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 28px;
  align-items: start;
}

.contact-body-inner > * {
  min-width: 0;
}

.contact-info,
.contact-form-wrap {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--white);
  padding: 22px;
}

.contact-info-title,
.contact-form-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 16px;
}

.contact-form-intro {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink2);
  margin-bottom: 16px;
}

.contact-info-block + .contact-info-block {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.contact-info-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--g);
  margin-bottom: 8px;
}

.contact-info-value {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--ink);
  margin-top: 6px;
}

.contact-info-link {
  transition: color 0.2s;
}

.contact-info-link:hover {
  color: var(--g);
}

.contact-form {
  margin-top: 0;
}

.contact-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.contact-form-actions {
  justify-content: flex-start;
}

@media (max-width: 900px) {
  .contact-body-inner {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .contact-form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .contact-title {
    font-size: 28px;
  }

  .contact-lead {
    font-size: 15px;
    line-height: 1.55;
  }

  .contact-body {
    padding-block: 32px;
  }

  .contact-info,
  .contact-form-wrap {
    padding: 16px;
  }

  .contact-info-title,
  .contact-form-title {
    font-size: 18px;
    margin-bottom: 12px;
  }

  .contact-form-intro {
    font-size: 13px;
    margin-bottom: 14px;
  }

  .contact-info-block + .contact-info-block {
    margin-top: 14px;
    padding-top: 14px;
  }

  .contact-info-value {
    font-size: 15px;
    line-height: 1.45;
    word-break: break-word;
  }

  .contact-info-link {
    align-items: flex-start;
  }

  .contact-info-value .ti {
    flex-shrink: 0;
    margin-top: 2px;
  }

  .contact-form .inquiry-input {
    font-size: 16px;
  }

  .contact-form-actions {
    width: 100%;
  }

  .contact-form-actions .inquiry-btn--primary {
    width: 100%;
    justify-content: center;
  }
}

/* SELLER PORTAL */
.seller-page {
  background: var(--bg);
}

.seller-intro {
  padding: var(--sect-padding-y-hero) var(--content-inset) var(--sect-padding-y);
  background: linear-gradient(160deg, #f0f7e8 0%, #e2f0d0 60%, #d4e9bc 100%);
}

.seller-intro-inner,
.seller-steps-inner {
  max-width: var(--page-max-width);
  margin-inline: auto;
}

.seller-title {
  font-size: clamp(30px, 4vw, 38px);
  font-weight: 800;
  line-height: 1.12;
  color: var(--ink);
  margin-bottom: 12px;
}

.seller-lead {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  max-width: 62ch;
}

.seller-logout-link {
  margin-left: 0.35em;
  color: var(--ink2);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.seller-logout-link:hover {
  color: var(--g);
}

.seller-actions-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.seller-steps {
  padding: var(--sect-padding-y) var(--content-inset);
  background: var(--bg);
}

.seller-steps-inner {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.seller-step {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--white);
  padding: 20px;
}

.seller-step-num {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--g);
  color: var(--white);
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 12px;
}

.seller-step-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}

.seller-step-text {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink2);
}

.seller-body {
  padding-block: var(--sect-padding-y);
  padding-inline: var(--content-inset);
  background: var(--bg);
}

.seller-body--compact {
  padding-top: 0;
}

.seller-panel {
  max-width: 520px;
  margin-inline: auto;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--white);
  padding: 24px;
}

.seller-panel--note {
  max-width: var(--page-max-width);
  text-align: center;
}

.seller-page--account .seller-body .seller-panel {
  max-width: none;
  width: 100%;
  margin-inline: 0;
}

.seller-panel-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 10px;
}

.seller-panel-text,
.seller-panel-meta {
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink2);
}

.seller-panel-meta {
  margin-top: 14px;
}

.seller-panel-foot {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--ink2);
}

.seller-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.seller-account-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.seller-account-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
}

.seller-account-nav-link {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.65);
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.seller-account-nav-link:hover,
.seller-account-nav-link.is-active {
  border-color: var(--g);
  color: var(--g);
  background: var(--white);
}

.seller-account-nav-link.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.seller-account-nav-link--cta {
  margin-left: auto;
  background: var(--g);
  border-color: var(--g);
  color: var(--white);
  font-weight: 600;
}

.seller-account-nav-link--cta:hover {
  background: #2f5a0e;
  border-color: #2f5a0e;
  color: var(--white);
}

.seller-profile-note {
  margin-bottom: 16px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #fff8e8;
  color: #7a5b00;
  font-size: 14px;
  line-height: 1.45;
}

.seller-profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.seller-profile-summary {
  margin-top: 16px;
  display: grid;
  gap: 10px;
}

.seller-profile-summary-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 10px;
  font-size: 14px;
  line-height: 1.45;
}

.seller-profile-summary-row dt {
  color: var(--ink2);
  font-weight: 600;
}

.seller-profile-summary-row dd {
  color: var(--ink);
  margin: 0;
}

.seller-alert {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #fff8e8;
  color: #7a5b00;
  font-size: 14px;
}

.seller-success {
  color: #166534;
}

.seller-error {
  color: #b42318;
}

.seller-car-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  font-size: 14px;
  color: var(--ink2);
  margin-bottom: 20px;
}

.seller-car-stats--dashboard {
  margin-top: 16px;
  margin-bottom: 0;
}

.seller-car-list {
  list-style: none;
  display: grid;
  gap: 12px;
}

.seller-car-item {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 12px;
  background: var(--bg);
}

.seller-car-item-media img,
.seller-car-item-placeholder {
  width: 96px;
  height: 72px;
  border-radius: 8px;
  object-fit: cover;
  background: var(--line);
  display: block;
}

.seller-car-item-placeholder {
  display: grid;
  place-items: center;
  font-size: 11px;
  color: var(--ink2);
  text-align: center;
  padding: 6px;
}

.seller-car-item-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.seller-car-item-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}

.seller-car-item-meta {
  font-size: 13px;
  color: var(--ink2);
  margin-bottom: 10px;
}

.seller-car-item-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.seller-car-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.seller-car-badge--active {
  background: #e8f5e0;
  color: #2d5a12;
}

.seller-car-badge--pending {
  background: #fff4e5;
  color: #9a5b00;
}

.seller-car-badge--sold,
.seller-car-badge--inactive {
  background: #f1f5f9;
  color: #475569;
}

.seller-car-badge--draft {
  background: #eef2ff;
  color: #3730a3;
}

.seller-car-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
}

.seller-car-pagination-meta {
  font-size: 14px;
  color: var(--ink2);
}

.inquiry-btn--small {
  padding: 8px 14px;
  font-size: 13px;
}

.seller-car-fieldset {
  border: 0;
  margin: 0 0 24px;
  padding: 0;
}

.seller-car-fieldset-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 12px;
}

.seller-required {
  color: #b42318;
}

.seller-field-hint {
  font-size: 13px;
  color: var(--ink2);
  margin-top: 6px;
}

.seller-unit-field {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.seller-unit-input {
  max-width: 180px;
}

.seller-unit-suffix {
  font-size: 14px;
  color: var(--ink2);
  font-weight: 500;
}

.seller-car-images {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

.seller-car-image {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--white);
}

.seller-car-image.is-featured {
  border-color: var(--g);
  box-shadow: 0 0 0 1px var(--g);
}

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

.seller-car-image-actions {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px;
}

.seller-car-image-btn {
  border: 0;
  background: transparent;
  color: var(--g);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  padding: 0;
}

.seller-car-image-btn--danger {
  color: #b42318;
}

.seller-car-image-badge {
  font-size: 11px;
  font-weight: 700;
  color: var(--g);
}

.seller-car-upload {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.seller-car-upload-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px dashed var(--g);
  border-radius: var(--r-sm);
  background: var(--white);
  color: var(--g);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.seller-car-upload-btn:hover {
  background: var(--g3);
  border-color: var(--g2);
  color: #2f5a0e;
}

.seller-car-upload-btn .ti {
  font-size: 18px;
  line-height: 1;
}

.seller-car-images:empty {
  display: none;
}

.inquiry-btn--secondary {
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--line);
}

.inquiry-btn--secondary:hover {
  border-color: var(--g);
  color: var(--g);
}

@media (max-width: 900px) {
  .seller-steps-inner {
    grid-template-columns: 1fr;
  }

  .seller-form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .seller-panel {
    padding: 16px;
  }

  .seller-form .inquiry-input {
    font-size: 16px;
  }

  .seller-actions-inline .inquiry-btn,
  .seller-account-actions .inquiry-btn,
  .seller-profile-actions .inquiry-btn {
    width: 100%;
    justify-content: center;
  }

  .seller-profile-summary-row {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .seller-car-item {
    grid-template-columns: 1fr;
  }

  .seller-car-item-media img,
  .seller-car-item-placeholder {
    width: 100%;
    height: 160px;
  }
}

/* Car inquiry modal */
.inquiry-modal {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: grid;
  place-items: center;
  padding: 24px 16px;
}

.inquiry-modal[hidden] {
  display: none;
}

.inquiry-modal-backdrop {
  position: absolute;
  inset: 0;
  border: none;
  background: rgba(15, 20, 16, 0.55);
  cursor: pointer;
}

.inquiry-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(480px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  background: var(--white);
  border-radius: var(--r);
  box-shadow: 0 20px 60px rgba(15, 20, 16, 0.18);
  padding: 28px 24px 24px;
}

.inquiry-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: var(--bg);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
}

.inquiry-modal-close:hover {
  background: var(--g3);
}

.inquiry-modal-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
  padding-right: 36px;
}

.inquiry-modal-desc {
  font-size: 14px;
  color: var(--ink2);
  margin-bottom: 20px;
  line-height: 1.45;
}

.inquiry-field {
  margin-bottom: 14px;
}

.inquiry-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}

.inquiry-optional {
  font-weight: 400;
  color: var(--ink2);
}

.inquiry-input {
  width: 100%;
  border: 1px solid rgba(30, 35, 24, 0.32);
  border-radius: var(--r-sm);
  padding: 11px 12px;
  font-size: 15px;
  color: var(--ink);
  background: var(--white);
  transition: border-color 0.15s;
}

.inquiry-input:focus {
  outline: none;
  border-color: var(--g);
  box-shadow: 0 0 0 3px rgba(59, 109, 17, 0.12);
}

.inquiry-textarea {
  resize: vertical;
  min-height: 120px;
}

.inquiry-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.inquiry-feedback {
  min-height: 1.2em;
  font-size: 13px;
  color: var(--g);
  margin: 4px 0 12px;
}

.inquiry-feedback.is-error {
  color: #b42318;
}

.inquiry-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.inquiry-btn {
  border-radius: var(--r-sm);
  padding: 11px 18px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
}

.inquiry-btn--ghost {
  background: var(--bg);
  color: var(--ink);
}

.inquiry-btn--ghost:hover {
  background: var(--g3);
}

.inquiry-btn--primary {
  background: var(--g);
  color: var(--white);
}

.inquiry-btn--primary:hover {
  background: var(--g2);
}

.inquiry-btn--primary:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

body.inquiry-open {
  overflow: hidden;
}
