/* Paldo Truck production CSS bundle. Source order is intentional. */
:root {
  --ink: #151515;
  --muted: #656565;
  --line: #e7e7e7;
  --paper: #ffffff;
  --soft: #f7f7f7;
  --brand: #08915d;
  --brand-dark: #066b47;
  --accent: #e1492d;
  --sand: #efe4d3;
  --shadow: 0 18px 48px rgba(0, 0, 0, 0.18);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: auto;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Segoe UI", "Apple SD Gothic Neo", "Malgun Gothic", Arial, sans-serif;
  letter-spacing: 0;
  line-height: 1.45;
}

img,
svg {
  display: block;
}

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

button {
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

main {
  width: 100%;
  margin: 0 auto;
}

.top-line {
  height: 4px;
  background: #000000;
}

.mobile-first-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  grid-template-areas: "logo quick contact";
  gap: clamp(8px, 2vw, 18px);
  justify-items: start;
  align-items: center;
  min-height: 64px;
  border-bottom: 1px solid var(--line, #e7e7e7);
  background: rgba(255, 255, 255, 0.96);
  padding: 0 clamp(12px, 3vw, 18px);
  backdrop-filter: blur(16px);
}

.logo {
  grid-area: logo;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: start;
  width: auto;
  min-width: 0;
  color: #111111;
  font-size: clamp(21px, 5.5vw, 27px);
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.logo span {
  display: block;
}

.header-contact {
  grid-area: contact;
  display: inline-flex;
  align-items: center;
  justify-self: end;
  gap: 8px;
}

.header-quick-nav {
  grid-area: quick;
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 0;
}

.header-quick-link {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: #111111;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.header-quick-link:hover,
.header-quick-link:focus-visible,
.header-quick-link[aria-current="page"] {
  border-color: rgba(0, 0, 0, 0.12);
  background: #f5f7f6;
  outline: 0;
}

.header-quick-link:hover {
  transform: translateY(-1px);
}

.header-quick-link span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.header-quick-illustration {
  width: 34px;
  height: 34px;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 4.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  border: 1px solid var(--line, #e7e7e7);
  border-radius: 999px;
  background: #ffffff;
  color: #111111;
}

.contact-phone {
  min-width: auto;
  width: auto;
  padding: 0 14px;
  gap: 8px;
}

.contact-phone strong {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0;
}

.contact-phone-desktop {
  display: none;
}

.contact-action .lucide {
  width: 19px;
  height: 19px;
  stroke-width: 2.3;
}

.contact-kakao span {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: #111111;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}

@media (min-width: 901px) {
  .top-line {
    height: 2px;
  }

  .mobile-first-header {
    gap: 24px;
    min-height: 64px;
    padding: 0 max(28px, calc((100vw - 1120px) / 2));
  }

  .logo {
    justify-self: start;
    font-size: 25px;
  }

  .header-quick-link {
    width: 44px;
    height: 44px;
  }

  .header-quick-illustration {
    width: 36px;
    height: 36px;
  }

  .contact-phone {
    gap: 8px;
    width: auto;
    min-width: 0;
    padding: 0 14px;
  }

  .contact-phone-mobile {
    display: none;
  }

  .contact-phone-desktop {
    display: inline-flex;
    cursor: pointer;
  }

  .contact-phone strong {
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0;
  }
}

@media (max-width: 760px) {
  .mobile-first-header {
    grid-template-columns: auto auto minmax(0, 1fr);
    gap: 7px;
  }

  .logo {
    font-size: 20px;
  }

  .contact-phone {
    padding: 0 10px;
  }

  .contact-phone strong {
    font-size: 13px;
  }
}

@media (max-width: 560px) {
  .mobile-first-header {
    gap: 6px;
    min-height: 58px;
    padding: 0 10px;
  }

  .logo {
    font-size: 18px;
  }

  .header-contact {
    gap: 6px;
  }

  .contact-action {
    min-width: 36px;
    height: 36px;
  }

  .contact-phone {
    width: 36px;
    padding: 0;
    gap: 0;
  }

  .contact-phone strong {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
  }

  .contact-action .lucide {
    width: 17px;
    height: 17px;
  }

  .header-quick-nav {
    gap: 0;
  }

  .header-quick-link {
    width: 38px;
    height: 38px;
  }

  .header-quick-illustration {
    width: 31px;
    height: 31px;
  }
}

@media (max-width: 390px) {
  .mobile-first-header {
    grid-template-columns: auto auto minmax(0, 1fr);
    gap: 5px;
    padding: 0 8px;
  }

  .logo {
    font-size: 16px;
  }

  .header-quick-nav {
    gap: 0;
  }

  .header-quick-link {
    width: 34px;
    height: 34px;
  }

  .header-quick-illustration {
    width: 28px;
    height: 28px;
  }
}

@media (max-width: 340px) {
  .logo {
    font-size: 15px;
  }

  .contact-kakao {
    display: none;
  }
}

.site-footer {
  border-top: 1px solid #dde4e0;
  background: #f6f8f7;
  color: var(--ink, #151515);
}

.footer-inner {
  width: min(1240px, 100%);
  margin: 0 auto;
  padding: 48px clamp(18px, 5vw, 52px) 24px;
}

.footer-dealer {
  display: grid;
  grid-template-columns: minmax(190px, 230px) minmax(0, 1fr);
  gap: clamp(26px, 4vw, 48px);
  align-items: start;
  min-width: 0;
}

.footer-dealer > img {
  display: block;
  width: 100%;
  max-width: 230px;
  height: auto;
  border: 1px solid #dfe5e1;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(21, 21, 21, 0.08);
  image-rendering: auto;
}

.footer-dealer-copy {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.footer-dealer-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.footer-dealer-heading > div {
  min-width: 0;
}

.footer-eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  margin-bottom: 9px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(8, 145, 93, 0.1);
  color: var(--brand-dark, #066b47);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.2;
}

.footer-dealer-copy strong {
  display: block;
  font-size: clamp(24px, 2.8vw, 34px);
  line-height: 1.28;
  letter-spacing: -0.03em;
  word-break: keep-all;
}

.footer-dealer-heading p {
  max-width: 720px;
  margin: 11px 0 0;
  color: var(--muted, #656565);
  font-size: 15px;
  line-height: 1.65;
  word-break: keep-all;
}

.footer-dealer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.footer-call,
.footer-kakao,
.footer-credential {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 42px;
  border: 1px solid #d7dfda;
  border-radius: 9px;
  padding: 9px 14px;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color 0.18s ease, background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.footer-call {
  border-color: var(--brand-dark, #066b47);
  background: var(--brand-dark, #066b47);
  color: #ffffff;
}

.footer-kakao {
  background: #ffffff;
  color: var(--ink, #151515);
}

.footer-credential {
  flex: 0 0 auto;
  min-height: 40px;
  background: #ffffff;
  color: var(--ink, #151515);
}

.footer-call:hover,
.footer-call:focus-visible {
  border-color: var(--brand, #08915d);
  background: var(--brand, #08915d);
}

.footer-kakao:hover,
.footer-kakao:focus-visible,
.footer-credential:hover,
.footer-credential:focus-visible {
  border-color: var(--brand-dark, #066b47);
  color: var(--brand-dark, #066b47);
}

.footer-call:active,
.footer-kakao:active,
.footer-credential:active {
  transform: translateY(1px);
}

.footer-call .lucide,
.footer-kakao .lucide,
.footer-credential .lucide {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
}

.footer-call-desktop {
  display: none;
}

.footer-business-info {
  overflow: hidden;
  border: 1px solid #dfe5e1;
  border-radius: 12px;
  background: #ffffff;
}

.footer-business-intro {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  align-items: baseline;
  padding: 17px 20px;
  border-bottom: 1px solid #e8ece9;
  background: #fbfcfb;
}

.footer-business-intro strong {
  color: var(--ink, #151515);
  font-size: 14px;
  line-height: 1.4;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.footer-business-intro p {
  margin: 0;
  color: var(--muted, #656565);
  font-size: 12px;
  line-height: 1.55;
  text-align: right;
  word-break: keep-all;
}

.footer-business-info dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 24px;
  margin: 0;
  padding: 6px 20px;
}

.footer-business-info dl > div {
  display: grid;
  grid-template-columns: minmax(132px, auto) minmax(0, 1fr);
  gap: 13px;
  align-items: baseline;
  min-width: 0;
  padding: 11px 0;
  border-bottom: 1px solid #edf0ee;
}

.footer-business-info dl > div:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.footer-business-info dl > .footer-business-manager {
  align-items: center;
}

.footer-business-manager dt {
  display: grid;
  gap: 2px;
}

.footer-business-address dd {
  font-weight: 700;
}

.footer-business-info dt {
  margin: 0;
  color: var(--muted, #656565);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.5;
  white-space: nowrap;
}

.footer-business-info dd {
  min-width: 0;
  margin: 0;
  color: var(--ink, #151515);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.55;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.footer-business-info .footer-operator-notice {
  margin: 0;
  padding: 13px 20px 15px;
  border-top: 1px solid #e8ece9;
  background: #fbfcfb;
  color: var(--muted, #656565);
  font-size: 11px;
  line-height: 1.65;
  word-break: keep-all;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px solid #dfe5e1;
}

.footer-bottom > p {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  margin: 0;
}

.footer-bottom > p strong {
  color: var(--ink, #151515);
  font-size: 13px;
  font-weight: 900;
}

.footer-bottom > p span {
  color: var(--muted, #656565);
  font-size: 11px;
}

.footer-admin-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px 14px;
}

.footer-admin-links a {
  color: var(--muted, #656565);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.4;
  text-decoration: none;
}

.footer-admin-links a:hover,
.footer-admin-links a:focus-visible {
  color: var(--ink, #151515);
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (min-width: 901px) {
  .footer-call-mobile {
    display: none;
  }

  .footer-call-desktop {
    display: inline-flex;
  }
}

@media (max-width: 900px) {
  .footer-inner {
    padding-top: 40px;
  }

  .footer-dealer {
    grid-template-columns: minmax(150px, 190px) minmax(0, 1fr);
    gap: 24px;
  }

  .footer-dealer-heading {
    flex-direction: column;
    gap: 14px;
  }

  .footer-credential {
    align-self: flex-start;
  }

  .footer-business-intro {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .footer-business-intro p {
    text-align: left;
  }

  .footer-business-info dl {
    grid-template-columns: 1fr;
  }

  .footer-business-info dl > div:nth-last-child(-n + 2) {
    border-bottom: 1px solid #edf0ee;
  }

  .footer-business-info dl > div:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 640px) {
  .footer-inner {
    padding: 32px 20px 22px;
  }

  .footer-dealer {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .footer-dealer > img {
    width: min(150px, 44vw);
    justify-self: start;
    border-radius: 12px;
  }

  .footer-dealer-copy {
    gap: 15px;
  }

  .footer-eyebrow {
    margin-bottom: 8px;
    font-size: 11px;
  }

  .footer-dealer-copy strong {
    font-size: 21px;
    line-height: 1.35;
  }

  .footer-dealer-heading p {
    margin-top: 8px;
    font-size: 13px;
    line-height: 1.65;
  }

  .footer-dealer-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .footer-call,
  .footer-kakao {
    justify-content: flex-start;
    width: 100%;
  }

  .footer-credential {
    width: 100%;
    justify-content: flex-start;
  }

  .footer-business-intro {
    padding: 15px 16px;
  }

  .footer-business-info dl {
    padding: 4px 16px;
  }

  .footer-business-info dl > div {
    grid-template-columns: minmax(132px, auto) minmax(0, 1fr);
    gap: 10px;
    padding: 10px 0;
  }

  .footer-business-info dt {
    font-size: 11px;
  }

  .footer-business-info dd {
    font-size: 12px;
  }

  .footer-business-info .footer-operator-notice {
    padding: 12px 16px 14px;
    font-size: 10px;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    margin-top: 24px;
    padding-top: 16px;
  }

  .footer-admin-links {
    justify-content: flex-start;
  }
}

@media (max-width: 420px) {
  .footer-business-info dl > div {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .footer-business-info dt {
    white-space: normal;
  }
}

body.modal-open,
body.filter-modal-open {
  overflow: hidden;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.quick-categories {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 136px;
  grid-template-rows: repeat(2, auto);
  gap: 18px 16px;
  overflow-x: auto;
  overflow-y: hidden;
  max-width: min(1120px, 100%);
  margin: 0 auto;
  padding: 16px 18px 28px;
  scroll-padding-inline: 18px;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.quick-categories a,
.quick-categories button {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 9px;
  min-width: 0;
  min-height: 98px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #111111;
  padding: 0;
  scroll-snap-align: start;
  text-align: center;
}

.quick-categories a:last-child,
.quick-categories button:last-child {
  scroll-snap-align: end;
}

.quick-categories .category-illustration {
  position: relative;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  min-height: 0;
  border-radius: 999px;
  background: #f7f7f7;
}

.filter-count {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border: 2px solid #ffffff;
  border-radius: 999px;
  background: #111827;
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(17, 24, 39, 0.24);
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.filter-count[hidden] {
  display: none !important;
}

.quick-categories .category-count {
  top: -5px;
  right: -5px;
}

.quick-categories strong {
  display: block;
  width: 100%;
  color: #000000;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.1;
}


.category-vehicle {
  width: 48px;
  height: auto;
  color: #303030;
}

.category-grid-icon {
  width: 31px;
  margin: auto;
}

.truck-category-grid {
  position: relative;
}

.truck-category-grid::after {
  content: "";
  position: sticky;
  right: -18px;
  z-index: 1;
  grid-row: 1 / 3;
  width: 30px;
  margin-left: -30px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), #ffffff 78%);
  pointer-events: none;
}

.truck-category-card:hover .category-illustration,
.truck-category-card.active .category-illustration {
  background: #f7f7f7;
}

.truck-category-card.active .category-illustration {
  border: 2px solid rgba(8, 145, 93, 0.35);
}

.truck-category-card.active strong {
  color: #000000;
}

.truck-category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: inherit;
  text-decoration: none;
}

.status-filter {
  display: flex;
  justify-content: center;
  gap: 10px;
  width: min(1240px, 100%);
  margin: 0 auto;
  padding: 4px clamp(18px, 5vw, 52px) 12px;
}

.status-filter-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 92px;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  color: var(--muted);
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
}

.status-filter-button .status-count {
  top: -8px;
  right: -7px;
}

.status-filter-button.active .status-count {
  border-color: var(--ink);
  background: #ffffff;
  color: var(--ink);
}

.status-filter-button.active {
  border-color: var(--ink);
  background: var(--ink);
  color: #ffffff;
}

.inventory-filter-panel {
  width: min(1240px, 100%);
  margin: 0 auto;
  padding: 0 clamp(18px, 5vw, 52px) 14px;
}

.inventory-filter-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 48px;
  margin-top: 10px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 12px 0 10px;
}

.inventory-filter-summary p {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.inventory-filter-summary strong {
  color: var(--ink);
  font-size: 18px;
  font-weight: 900;
}

.inventory-filter-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  margin-left: auto;
}

.inventory-sort-form {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0;
}

.inventory-sort-label {
  display: inline-flex;
  align-items: center;
  line-height: 1;
  white-space: nowrap;
}

.inventory-sort-control {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.inventory-sort-control select {
  min-height: 38px;
  min-width: 132px;
  appearance: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  color: var(--ink);
  padding: 8px 34px 8px 14px;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}

.inventory-sort-control select:focus {
  border-color: var(--ink);
  outline: 2px solid rgba(17, 24, 39, 0.14);
  outline-offset: 2px;
}

.inventory-sort-control .lucide {
  position: absolute;
  right: 12px;
  width: 16px;
  height: 16px;
  pointer-events: none;
  color: var(--muted);
  stroke-width: 2.5;
}

.inventory-sort-submit {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  padding: 0;
}

.inventory-sort-form[aria-busy="true"] .inventory-sort-control select {
  opacity: 0.65;
}

.inventory-filter-open {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: #ffffff;
  padding: 8px 13px;
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
}

.inventory-filter-open .lucide {
  width: 17px;
  height: 17px;
  stroke-width: 2.4;
}

.inventory-filter-open em {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  border-radius: 999px;
  background: var(--brand);
  color: #ffffff;
  padding: 0 6px;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.applied-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 10px;
}

.applied-filter-chip,
.applied-filter-reset {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 32px;
  border: 1px solid rgba(8, 145, 93, 0.20);
  border-radius: 999px;
  background: #f7fffb;
  color: var(--brand-dark);
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.applied-filter-chip .lucide {
  width: 14px;
  height: 14px;
  stroke-width: 2.5;
}

.applied-filter-reset {
  border-color: var(--line);
  background: #ffffff;
  color: var(--muted);
}

.truck-filter-backdrop {
  position: fixed;
  inset: 0;
  z-index: 64;
  background: rgba(0, 0, 0, 0.42);
  opacity: 0;
  transition: opacity 180ms ease;
}

.truck-filter-backdrop.open {
  opacity: 1;
}

.truck-filter-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 65;
  width: min(920px, calc(100vw - 48px));
  max-height: min(760px, calc(100svh - 48px));
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translate(-50%, -48%) scale(0.98);
  transition: opacity 180ms ease, transform 180ms ease;
}

.truck-filter-modal.open {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.truck-filter-form {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  max-height: inherit;
}

.truck-filter-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  border-bottom: 1px solid var(--line);
  background: #ffffff;
  padding: 0;
}

.truck-filter-header-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 20px 22px 14px;
}

.truck-filter-header h2 {
  margin: 0;
  color: var(--ink);
  font-size: 23px;
  font-weight: 900;
  line-height: 1.18;
}

.truck-filter-tabs {
  display: flex;
  gap: 26px;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  border-top: 1px solid rgba(0, 0, 0, 0.04);
  padding: 0 22px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.truck-filter-tabs::-webkit-scrollbar {
  display: none;
}

.truck-filter-tab {
  position: relative;
  flex: 0 0 auto;
  min-height: 50px;
  color: #7b828a;
  padding: 0;
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.truck-filter-tab::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  border-radius: 999px;
  background: var(--ink);
  opacity: 0;
  transform: scaleX(0.62);
  transition: opacity 160ms ease, transform 160ms ease;
}

.truck-filter-tab.active {
  color: var(--ink);
}

.truck-filter-tab.active::after {
  opacity: 1;
  transform: scaleX(1);
}

.truck-filter-close {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  color: var(--ink);
}

.truck-filter-close .lucide {
  width: 19px;
  height: 19px;
  stroke-width: 2.4;
}

.truck-filter-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
  padding: 18px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.truck-filter-section {
  display: grid;
  align-content: start;
  gap: 12px;
  min-width: 0;
}

.truck-filter-option-section {
  grid-column: 1 / -1;
}

.truck-filter-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 30px;
}

.truck-filter-section-title h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.2;
}

.truck-filter-section-title span {
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--soft);
  color: var(--muted);
  padding: 5px 8px;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
}

.filter-range-card,
.truck-filter-facet,
.truck-filter-option-group {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  padding: 14px;
}

.filter-range-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.filter-range-head h4,
.truck-filter-facet h4 {
  margin: 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
  line-height: 1.25;
}

.filter-range-head output {
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.2;
  text-align: right;
}

.filter-range-slider {
  --range-left: 0%;
  --range-right: 0%;
  position: relative;
  height: 42px;
  margin: 12px 0 6px;
}

.filter-range-slider::before,
.filter-range-slider::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 19px;
  height: 4px;
  border-radius: 999px;
}

.filter-range-slider::before {
  background: #e7e7e7;
}

.filter-range-slider::after {
  left: var(--range-left);
  right: var(--range-right);
  background: var(--brand);
}

.filter-range-slider input[type="range"] {
  position: absolute;
  z-index: 2;
  inset: 0;
  width: 100%;
  height: 42px;
  margin: 0;
  appearance: none;
  background: transparent;
  pointer-events: none;
}

.filter-range-slider input[type="range"]::-webkit-slider-thumb {
  width: 24px;
  height: 24px;
  border: 4px solid var(--brand);
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 4px 10px rgba(6, 107, 71, 0.18);
  appearance: none;
  cursor: grab;
  pointer-events: auto;
}

.filter-range-slider input[type="range"]::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border: 4px solid var(--brand);
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 4px 10px rgba(6, 107, 71, 0.18);
  cursor: grab;
  pointer-events: auto;
}

.filter-range-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.filter-range-fields label {
  display: grid;
  gap: 5px;
}

.filter-range-fields span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.filter-range-fields input {
  width: 100%;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
  color: var(--ink);
  padding: 7px 9px;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
}

.truck-filter-facet {
  display: grid;
  gap: 10px;
}

.filter-check-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.filter-check-pill {
  position: relative;
  display: inline-flex;
  min-width: 0;
}

.filter-check-pill input {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.filter-check-pill span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  color: var(--ink);
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.2;
  transition: background 150ms ease, border-color 150ms ease, color 150ms ease;
}

.filter-check-pill input:checked + span {
  border-color: rgba(8, 145, 93, 0.38);
  background: #edf7f2;
  color: var(--brand-dark);
}

.filter-check-pill input:focus-visible + span,
.inventory-filter-open:focus-visible,
.truck-filter-close:focus-visible,
.truck-filter-tab:focus-visible,
.truck-filter-submit:focus-visible,
.truck-filter-reset:focus-visible,
.applied-filter-chip:focus-visible,
.applied-filter-reset:focus-visible {
  outline: 3px solid rgba(8, 145, 93, 0.36);
  outline-offset: 2px;
}

.truck-filter-option-group {
  padding: 0;
  overflow: hidden;
}

.truck-filter-option-group summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  padding: 12px 14px;
  cursor: pointer;
  list-style: none;
}

.truck-filter-option-group summary::-webkit-details-marker {
  display: none;
}

.truck-filter-option-group summary span {
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
}

.truck-filter-option-group summary em {
  border-radius: 999px;
  background: var(--soft);
  color: var(--muted);
  padding: 4px 8px;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  line-height: 1;
}

.truck-filter-option-group[open] summary {
  border-bottom: 1px solid var(--line);
  background: #f7fffb;
}

.filter-option-grid {
  padding: 12px;
}

.truck-filter-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  padding: 14px 18px;
}

.truck-filter-reset,
.truck-filter-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
}

.truck-filter-reset {
  flex: 0 0 122px;
  inline-size: 122px;
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--muted);
}

.truck-filter-submit {
  flex: 0 0 204px;
  inline-size: 204px;
  gap: 7px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #ffffff;
}

.truck-filter-submit:disabled,
.truck-filter-submit.is-no-result {
  border-color: #d8e3dd;
  background: #f4f8f6;
  color: #7b8983;
  box-shadow: none;
  cursor: not-allowed;
  opacity: 1;
}

.truck-filter-submit[aria-busy="true"] {
  cursor: progress;
}

.truck-filter-submit .lucide {
  width: 17px;
  height: 17px;
  stroke-width: 2.4;
}

.truck-filter-submit [data-filter-count-label] {
  flex: 1 1 auto;
  min-inline-size: 0;
  text-align: center;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .inventory-filter-panel {
    padding-bottom: 12px;
  }

  .applied-filter-chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .applied-filter-chips::-webkit-scrollbar {
    display: none;
  }

  .truck-filter-modal {
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    max-height: min(88svh, 780px);
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 18px 18px 0 0;
    transform: translateY(24px);
  }

  .truck-filter-modal.open {
    transform: translateY(0);
  }

  .truck-filter-body {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 15px;
  }

  .truck-filter-option-section {
    grid-column: auto;
  }

  .truck-filter-header {
    padding: 0;
  }

  .truck-filter-header-top {
    padding: 18px 18px 13px;
  }

  .truck-filter-tabs {
    gap: 22px;
    padding: 0 18px;
  }

  .truck-filter-footer {
    position: sticky;
    bottom: 0;
    padding: 12px 15px calc(12px + env(safe-area-inset-bottom));
  }
}

@media (max-width: 560px) {
  .inventory-filter-summary {
    align-items: flex-start;
    gap: 10px;
  }

  .inventory-filter-summary strong {
    font-size: 16px;
  }

  .inventory-filter-actions {
    flex-wrap: wrap;
    gap: 7px;
  }

  .inventory-filter-open {
    min-height: 36px;
    padding-inline: 11px;
    font-size: 13px;
  }

  .inventory-sort-control select {
    min-height: 36px;
    min-width: 118px;
    padding: 8px 30px 8px 12px;
    font-size: 12px;
  }

  .truck-filter-header h2 {
    font-size: 21px;
  }

  .truck-filter-header p {
    max-width: 260px;
  }

  .filter-range-card,
  .truck-filter-facet {
    padding: 12px;
  }

  .filter-check-grid {
    gap: 6px;
  }

  .filter-check-pill span {
    min-height: 31px;
    padding: 7px 9px;
    font-size: 12px;
  }

  .truck-filter-reset,
  .truck-filter-submit {
    min-height: 42px;
    padding-inline: 12px;
    font-size: 13px;
  }

  .truck-filter-reset {
    flex-basis: 112px;
    inline-size: 112px;
  }

  .truck-filter-submit {
    flex-basis: 186px;
    inline-size: 186px;
  }
}

.content-section {
  width: min(1240px, 100%);
  margin: 0 auto;
  padding: 22px clamp(18px, 5vw, 52px) 34px;
}

.inventory-shell[aria-busy="true"] {
  opacity: 0.72;
  transition: opacity 0.16s ease;
}

.list-breadcrumb {
  width: min(1240px, 100%);
  margin: 0 auto;
  padding: 18px clamp(18px, 5vw, 52px) 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.list-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.list-breadcrumb li:not(:last-child)::after {
  content: "/";
  margin-left: 8px;
  color: var(--muted);
}

.list-breadcrumb a {
  color: inherit;
  text-decoration: none;
}
.inventory-intro {
  width: min(1240px, calc(100% - 36px));
  margin: 10px auto 4px;
  padding: clamp(14px, 2.4vw, 24px) clamp(18px, 4vw, 36px);
  border-left: 3px solid rgba(8, 145, 93, 0.32);
  border-radius: 18px;
  background: rgba(248, 250, 252, 0.68);
}

.inventory-intro h1,
.inventory-intro h2 {
  max-width: 960px;
  margin: 0 0 8px;
  color: var(--ink);
  font-size: clamp(29px, 4.5vw, 48px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.inventory-intro p {
  max-width: 980px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(15px, 2.1vw, 17px);
  font-weight: 600;
  line-height: 1.72;
}

.pagination-more {
  display: flex;
  justify-content: center;
  margin: 0 0 18px;
}

.pagination-more-bottom {
  margin: 22px 0 0;
}

.load-more-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: #ffffff;
  color: var(--ink);
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
}

.load-more-link[aria-busy="true"] {
  opacity: 0.55;
  pointer-events: none;
}

.section-title {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.section-title span {
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.section-title h2 {
  margin: 4px 0 0;
  font-size: clamp(24px, 4vw, 36px);
  line-height: 1.15;
}

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

.truck-card {
  min-width: 0;
}

.truck-card-button {
  display: grid;
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: inherit;
  cursor: pointer;
  text-align: left;
}

.truck-card.is-filter-hidden {
  display: none !important;
}

.truck-card-button:hover,
.truck-card-button:focus-visible {
  border-color: #cfcfcf;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  outline: 0;
  transform: translateY(-1px);
}

.image-wrap {
  position: relative;
  display: block;
  margin: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--soft);
}

.image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.truck-card.sold .image-wrap img {
  filter: saturate(0.82) brightness(0.92) sepia(0.12);
}

.image-wrap em {
  position: absolute;
  z-index: 2;
  left: 10px;
  top: 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.72);
  color: var(--paper);
  padding: 5px 8px;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.image-count-badge {
  position: absolute;
  z-index: 3;
  right: 10px;
  bottom: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 42px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.62);
  color: #ffffff;
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  text-align: center;
}

.image-count-badge .lucide {
  width: 14px;
  height: 14px;
  stroke-width: 2.6;
}

.status-badge {
  position: absolute;
  z-index: 1;
  inset: 0;
  display: grid;
  place-items: center;
  color: #ffffff;
  font-size: clamp(22px, 4vw, 34px);
  font-weight: 900;
  letter-spacing: 0;
}

.sold-badge {
  background: rgba(113, 77, 15, 0.52);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.truck-info {
  display: grid;
  gap: 6px;
  padding: 14px;
}

.truck-info h2,
.truck-info strong {
  margin: 0;
  font-size: 18px;
  line-height: 1.28;
}

.truck-card-specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px 10px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.truck-card-specs div {
  min-width: 0;
}

.truck-card-specs dt {
  display: inline;
  margin-right: 4px;
  font-weight: 900;
}

.truck-card-specs dd {
  display: inline;
  margin: 0;
  overflow-wrap: anywhere;
}

.truck-price {
  margin-top: 3px;
  color: var(--brand-dark);
  font-size: 20px;
  font-weight: 900;
}

.truck-status {
  width: fit-content;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 900;
}

.truck-status.available,
.modal-tags .available {
  background: #edf7f2;
  color: var(--brand-dark);
}

.truck-status.done,
.modal-tags .done {
  background: #fff3d6;
  color: #5c3d08;
}

.empty-inventory {
  grid-column: 1 / -1;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--soft);
  color: var(--muted);
  padding: 28px;
  text-align: center;
  font-weight: 800;
}

.guide-section {
  padding-bottom: 70px;
}

.notes-entry-section {
  padding-top: 10px;
  padding-bottom: 18px;
}

.notes-entry {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  padding: 18px;
}

.notes-entry-copy {
  min-width: 0;
}

.notes-entry-copy span {
  display: inline-block;
  margin-bottom: 6px;
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.notes-entry-copy h2 {
  margin: 0 0 8px;
  font-size: clamp(20px, 3vw, 28px);
  line-height: 1.22;
}

.notes-entry-copy p {
  margin: 0;
  max-width: 780px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
  font-weight: 700;
}

.notes-entry-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 0 0 auto;
  min-height: 42px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: #111111;
  color: #ffffff;
  padding: 9px 15px;
  font-size: 14px;
  font-weight: 900;
  white-space: nowrap;
}

.notes-entry-link .lucide {
  width: 18px;
  height: 18px;
  stroke-width: 2.4;
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.guide-grid article {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  padding: 18px;
}

.guide-grid .lucide {
  width: 28px;
  height: 28px;
  color: var(--brand);
}

.guide-grid article > span {
  position: absolute;
  top: 18px;
  right: 18px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.guide-grid h3 {
  margin: 13px 0 6px;
  font-size: 18px;
}

.guide-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.truck-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 60;
  display: none;
  width: min(1000px, calc(100vw - 80px));
  max-width: 1000px;
  max-height: calc(100svh - 80px);
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
  transform: translate(-50%, -50%);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 55;
  display: none;
  background: rgba(0, 0, 0, 0.42);
}

.modal-backdrop.open {
  display: block;
}

.truck-modal.open {
  display: block;
}

.modal-close-mobile {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 10;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: #111;
  display: grid;
  place-items: center;
}

.truck-modal.intro-open .modal-close-mobile {
  display: none;
}

.truck-modal.intro-open {
  width: auto;
  max-width: min(680px, calc(100vw - 40px));
  padding: 0;
  border-radius: 12px;
}

#modalContent {
  display: grid;
  grid-template-rows: auto 1fr;
  max-height: calc(100svh - 80px);
  overflow: hidden;
  background: var(--paper);
}

.modal-header {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: clamp(14px, 3vw, 26px);
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.modal-header .modal-code {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--brand);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.2px;
}

.modal-header h1,
.modal-header h2 {
  margin: 0;
  font-size: clamp(22px, 3.6vw, 30px);
  line-height: 1.12;
}

.truck-detail-article {
  display: grid;
  grid-template-rows: auto 1fr;
  max-height: inherit;
  overflow: hidden;
}

.truck-breadcrumb {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.truck-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.truck-breadcrumb li:not(:last-child)::after {
  content: "/";
  margin-left: 6px;
  color: var(--muted);
}

.truck-breadcrumb a {
  color: var(--brand-dark);
}

.modal-summary {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  max-width: 100%;
}

.sold-reference-notice {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid rgba(133, 91, 19, 0.20);
  background: #fff7e6;
  padding: 16px clamp(18px, 3vw, 26px);
}

.sold-reference-notice h2 {
  margin: 0 0 6px;
  color: #5c3d08;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.3;
}

.sold-reference-notice p {
  margin: 0;
  color: #4f3a15;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.55;
}

.sold-reference-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  min-width: min(360px, 100%);
}

.sold-reference-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border: 1px solid rgba(92, 61, 8, 0.24);
  border-radius: 999px;
  background: #ffffff;
  color: #5c3d08;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.2;
  text-align: center;
}

.sold-reference-actions a:first-child {
  background: #6f4c12;
  color: #ffffff;
  border-color: #6f4c12;
}

.modal-body {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 1fr);
  gap: 22px;
  padding: clamp(18px, 4vw, 34px);
  min-width: 0;
  overflow-x: hidden;
}

#modalContent.intro-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: clamp(20px, 3.5vw, 36px);
}

#modalContent.intro-layout .modal-detail {
  padding-right: 0;
}

.intro-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
  max-width: 640px;
}

.intro-avatar-wrap {
  width: min(320px, 46vw);
  max-width: 340px;
  aspect-ratio: 1537 / 1023;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(4, 8, 12, 0.18);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.intro-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  image-rendering: auto;
  -webkit-backface-visibility: hidden;
}

.intro-text {
  width: 100%;
  box-sizing: border-box;
  padding: 14px 16px;
  background: linear-gradient(180deg, rgba(8, 145, 93, 0.03), rgba(255, 255, 255, 0.02));
  border-radius: 12px;
  border: 1px solid rgba(6,107,71,0.06);
  position: relative;
}

.intro-text::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 12px;
  bottom: 12px;
  width: 4px;
  border-radius: 4px;
  background: var(--brand);
}

.intro-message {
  margin: 0;
  padding-left: 26px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

@media (min-width: 901px) {
  .quick-categories {
    grid-auto-flow: row;
    grid-auto-columns: initial;
    grid-template-columns: repeat(9, minmax(0, 1fr));
    grid-template-rows: repeat(2, auto);
    justify-content: center;
    align-items: start;
    gap: 16px 12px;
    overflow: visible;
    max-width: 1120px;
    margin: 0 auto;
    padding: 22px 20px 34px;
    scroll-padding-inline: 0;
    scroll-snap-type: none;
  }

  .quick-categories a,
  .quick-categories button {
    min-height: 104px;
    gap: 8px;
    scroll-snap-align: none;
  }

  .quick-categories a:last-child,
  .quick-categories button:last-child {
    scroll-snap-align: none;
  }

  .truck-category-grid::after {
    display: none;
  }

  .quick-categories .category-illustration {
    width: 68px;
    height: 68px;
  }

  .quick-categories strong {
    font-size: 13px;
    line-height: 1.2;
  }

  .category-vehicle {
    width: 52px;
  }

  .category-grid-icon {
    width: 32px;
  }
}

@media (min-width: 1200px) {
  .quick-categories {
    gap: 18px 14px;
    max-width: 1180px;
  }

  .quick-categories .category-illustration {
    width: 72px;
    height: 72px;
  }

  .category-vehicle {
    width: 56px;
  }
}

@media (max-width: 900px) {
  .sold-reference-notice {
    grid-template-columns: 1fr;
    align-items: stretch;
    padding: 14px 18px;
  }

  .sold-reference-actions {
    display: grid;
    grid-template-columns: 1fr;
    justify-content: stretch;
    min-width: 0;
  }

  .sold-reference-actions a {
    width: 100%;
  }

  .modal-gallery {
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    padding-bottom: 12px;
    margin-bottom: 12px;
  }
}

.modal-thumbs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  min-width: 0;
}

.modal-thumbs > img,
.thumb-wrap {
  width: 100%;
  aspect-ratio: 1.4 / 1;
  border-radius: 6px;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.10);
  cursor: pointer;
  overflow: hidden;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.modal-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-thumbs > :nth-child(1) {
  transform: rotate(-3deg);
}

.modal-thumbs > :nth-child(2) {
  transform: rotate(4deg);
}

.modal-thumbs > :nth-child(3) {
  transform: rotate(-2deg);
}
.modal-thumbs > :hover {
  transform: scale(1.04) rotate(0deg);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.16);
}

.thumb-wrap {
  position: relative;
}

.more-badge {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.44);
  color: #fff;
  font-weight: 700;
  border-radius: 8px;
  font-size: 14px;
}

.image-lightbox {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 120;
  padding: 24px 24px 88px;
}
.image-lightbox.open {
  display: flex;
}

.image-lightbox .backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.90);
}

.image-lightbox .inner {
  position: relative;
  max-width: min(92vw, 980px);
  max-height: calc(100svh - 120px);
  display: grid;
  place-items: center;
}

.image-lightbox img {
  max-width: 100%;
  max-height: calc(100svh - 120px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

.image-lightbox .close-btn,
.image-lightbox .nav-btn {
  position: absolute;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 999px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  cursor: pointer;
  top: 50%;
  transform: translateY(-50%);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}

.image-lightbox .close-btn {
  position: fixed;
  top: auto;
  right: clamp(18px, 6vw, 72px);
  bottom: calc(68px + 12px);
  transform: none;
  z-index: 220;
}

.image-lightbox .nav-btn {
  display: none;
}

.image-lightbox .touchpad {
  display: flex;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 68px;
  background: #ffffff;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  align-items: center;
  justify-content: center;
  gap: clamp(48px, 12vw, 110px);
  z-index: 130;
  padding: 10px 20px;
  box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.06);
}

.image-lightbox .touchpad .touch-prev,
.image-lightbox .touchpad .touch-next {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: #ffffff;
  color: #222222;
  font-size: 20px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.image-lightbox .touchpad .touch-prev::before,
.image-lightbox .touchpad .touch-next::before {
  content: "";
  position: absolute;
  inset: -18px;
  border-radius: 999px;
  background: transparent;
}

.image-lightbox .touchpad .counter {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 92px;
  min-width: 92px;
  background: transparent;
  color: #555555;
  padding: 6px 10px;
  font-size: 14px;
  white-space: nowrap;
}

.image-lightbox .touchpad .counter .current {
  color: var(--brand-dark);
  font-weight: 900;
}

.image-lightbox .touchpad .counter .current,
.image-lightbox .touchpad .counter .total {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, "Roboto Mono", "Noto Mono", monospace;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 900px) {
  .image-lightbox {
    padding-top: 14px;
    padding-bottom: 82px;
  }

  .image-lightbox .inner {
    max-width: calc(100vw - 24px);
    max-height: calc(100svh - 110px);
  }

  .image-lightbox img {
    max-width: calc(100vw - 24px);
    max-height: calc(100svh - 110px);
  }

  .image-lightbox .touchpad {
    justify-content: space-between;
    gap: 12px;
  }
}

.modal-main-image {
  width: 100%;
  aspect-ratio: 1537 / 1023;
  border-radius: var(--radius);
  object-fit: cover;
  image-rendering: auto;
}

.modal-detail {
  min-width: 0;
  padding-right: 32px;
  overflow-x: hidden;
}

.modal-code {
  color: var(--brand);
  font-size: 13px;
  font-weight: 900;
}

.modal-detail h2 {
  margin: 6px 0 8px;
  font-size: clamp(24px, 4vw, 34px);
  line-height: 1.2;
}

.modal-detail p {
  color: var(--muted);
}

.modal-price {
  display: block;
  margin: 16px 0 12px;
  font-size: 30px;
  color: var(--brand-dark);
}

.modal-price-sold {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.modal-price-label {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--muted);
}

@media (max-width: 900px) {
  .modal-price {
    margin-top: 8px;
  }

  .image-lightbox .close-btn {
    position: fixed;
    top: auto;
    right: 18px;
    bottom: calc(68px + 12px);
    transform: none;
    z-index: 220;
  }
}

.modal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.modal-tags span {
  border-radius: 999px;
  background: #edf7f2;
  color: var(--brand-dark);
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 900;
}

.spec-table {
  display: grid;
  border-top: 1px solid var(--line);
  margin: 0;
}

.spec-table div {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
}

.spec-table dt {
  color: var(--muted);
  font-weight: 800;
}

.spec-table dd {
  margin: 0;
  font-weight: 800;
}

.plate-view-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  padding: 4px 10px;
  color: var(--brand-dark);
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.plate-view-button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.truck-trade-guide {
  line-height: 1.55;
}

.condition-box.truck-trade-guide {
  border: 1px solid rgba(18, 98, 64, 0.12);
  background: #f4fbf7;
}

.condition-box.truck-trade-guide h2 {
  color: var(--brand-dark);
}

.condition-box.truck-trade-guide p {
  color: var(--ink);
  font-weight: 700;
}

.condition-box {
  border-radius: var(--radius);
  background: var(--soft);
  margin-top: 16px;
  padding: 14px;
}

.condition-box p {
  margin: 6px 0;
}

.condition-box h2 {
  margin: 0 0 8px;
  font-size: 16px;
  line-height: 1.3;
}

.detail-contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.detail-contact-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  padding: 7px 11px;
  font-size: 13px;
  font-weight: 900;
}

.floating-tools {
  position: fixed;
  right: 16px;
  bottom: 20px;
  z-index: 40;
  display: grid;
  overflow: hidden;
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.52);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.floating-tools.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.floating-tools a {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  color: var(--paper);
}

.floating-tools a[hidden] {
  display: none;
}

.floating-tools .lucide {
  width: 23px;
  height: 23px;
  stroke-width: 1.8;
}

@media (min-width: 901px) {
  .quick-categories {
    grid-auto-flow: row;
    grid-auto-columns: initial;
    grid-template-columns: repeat(9, minmax(0, 1fr));
    grid-template-rows: repeat(2, auto);
    justify-content: center;
    align-items: start;
    gap: 16px 12px;
    overflow: visible;
    max-width: 1120px;
    margin: 0 auto;
    padding: 22px 20px 34px;
    scroll-padding-inline: 0;
    scroll-snap-type: none;
  }

  .quick-categories a,
  .quick-categories button {
    min-height: 104px;
    gap: 8px;
    scroll-snap-align: none;
  }

  .quick-categories a:last-child,
  .quick-categories button:last-child {
    scroll-snap-align: none;
  }

  .truck-category-grid::after {
    display: none;
  }

  .quick-categories .category-illustration {
    width: 68px;
    height: 68px;
  }

  .quick-categories strong {
    font-size: 13px;
    line-height: 1.2;
  }

  .category-vehicle {
    width: 52px;
  }

  .category-grid-icon {
    width: 32px;
  }
}

@media (min-width: 1200px) {
  .quick-categories {
    gap: 18px 14px;
    max-width: 1180px;
  }

  .quick-categories .category-illustration {
    width: 72px;
    height: 72px;
  }

  .category-vehicle {
    width: 56px;
  }
}

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

  .notes-entry {
    align-items: flex-start;
    flex-direction: column;
  }

  .notes-entry-link {
    width: 100%;
  }

  .guide-grid,
  #modalContent,
  .truck-detail-article {
    grid-template-columns: 1fr;
  }

  #modalContent:not(.intro-layout),
  .truck-detail-article {
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .modal-body {
    grid-template-columns: 1fr;
    gap: 0;
    overflow: visible;
  }

  .modal-detail {
    padding-right: 0;
    overflow: visible;
  }
}

@media (max-width: 560px) {
  body {
    overflow-wrap: anywhere;
  }

  .inventory-intro {
    width: calc(100% - 28px);
    margin-top: 8px;
    padding: 16px 16px;
    border-left-width: 3px;
    border-radius: 16px;
  }

  .inventory-intro h1,
  .inventory-intro h2 {
    margin-bottom: 8px;
    font-size: 27px;
  }

  .inventory-intro p {
    font-size: 15px;
    line-height: 1.65;
  }

  .quick-categories {
    grid-auto-columns: 128px;
  }

  .notes-entry-section {
    padding-top: 6px;
  }

  .notes-entry {
    padding: 15px;
  }

  .notes-entry-copy h2 {
    font-size: 20px;
  }

  .notes-entry-copy p {
    font-size: 14px;
    line-height: 1.6;
  }

  .quick-categories {
    grid-auto-columns: 72px;
    grid-template-rows: repeat(2, auto);
    gap: 18px 14px;
    padding: 22px 18px 18px;
  }

  .quick-categories .category-illustration {
    width: 62px;
    height: 62px;
  }

  .quick-categories .category-count {
    top: -4px;
    right: -4px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    font-size: 10px;
  }

  .category-vehicle {
    width: 46px;
  }

  .truck-grid {
    grid-template-columns: 1fr;
  }

  .section-title {
    align-items: flex-start;
  }

  .truck-modal {
    width: min(94vw, calc(100vw - 36px));
    max-height: calc(100svh - 18px);
    border-radius: var(--radius);
    inset: auto;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
  }

  #modalContent:not(.intro-layout) {
    max-height: calc(100svh - 18px);
  }

  .spec-table div {
    grid-template-columns: 88px minmax(0, 1fr);
  }
}

.truck-related-notes {
  display: grid;
  gap: 12px;
  margin: 16px 0;
  border: 1px solid rgba(8, 145, 93, 0.14);
  border-radius: 8px;
  background: #ffffff;
  padding: 14px;
}

.truck-related-notes-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.truck-related-notes-heading span {
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.2;
  white-space: nowrap;
}

.truck-related-notes-heading h2 {
  margin: 0;
  color: var(--ink);
  font-size: 16px;
  font-weight: 900;
  line-height: 1.3;
}

.truck-related-note-list {
  display: grid;
  gap: 8px;
}

.truck-related-note-link {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  padding: 9px 10px;
  text-decoration: none;
  transition: border-color 150ms ease, background 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.truck-related-note-link[hidden] {
  display: none !important;
}

.truck-related-note-link:hover,
.truck-related-note-link:focus-visible {
  border-color: rgba(8, 145, 93, 0.34);
  background: #f7fffb;
  box-shadow: 0 10px 24px rgba(6, 107, 71, 0.08);
  transform: translateY(-1px);
}

.truck-related-note-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: #edf7f2;
  color: var(--brand-dark);
}

.truck-related-note-icon .lucide,
.truck-related-note-link > .lucide {
  width: 17px;
  height: 17px;
  stroke-width: 2.4;
}

.truck-related-note-link > .lucide {
  color: var(--brand-dark);
}

.truck-related-note-text {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.truck-related-note-text span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  line-height: 1.2;
}

.truck-related-note-text strong {
  min-width: 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.truck-related-note-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: stretch;
  min-height: 38px;
  border: 1px solid rgba(8, 145, 93, 0.22);
  border-radius: 999px;
  background: #f7fffb;
  color: var(--brand-dark);
  padding: 8px 12px;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  transition: border-color 150ms ease, background 150ms ease, box-shadow 150ms ease;
}

.truck-related-note-more:hover,
.truck-related-note-more:focus-visible {
  border-color: rgba(8, 145, 93, 0.40);
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(6, 107, 71, 0.08);
}

.truck-related-note-more[hidden] {
  display: none;
}

@media (max-width: 900px) {
  .truck-related-notes {
    margin: 0 0 16px;
    padding: 13px;
  }

  .truck-related-note-link {
    min-height: 54px;
    padding: 9px;
  }
}

.detail-contents-box {
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  padding: 16px;
}

.detail-contents-box h2 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 900;
  line-height: 1.3;
}

.detail-contents-box p {
  margin: 0 0 12px;
  color: #444444;
  font-size: 14px;
  line-height: 1.75;
}

.detail-contents-box p:last-child {
  margin-bottom: 0;
}

@media (max-width: 900px) {
  .detail-contents-box {
    margin: 0 0 16px;
    padding: 14px;
    background: var(--soft);
  }

  .detail-contents-box h2 {
    font-size: 15px;
  }

  .detail-contents-box p {
    font-size: 14px;
    line-height: 1.7;
  }
}

.modal-action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 16px 0 12px;
}

.modal-action-row .modal-price {
  margin: 0;
  min-width: 0;
}

.performance-check-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  flex: 0 0 auto;
  min-height: 40px;
  border: 1px solid rgba(8, 145, 93, 0.22);
  border-radius: 999px;
  background: #ffffff;
  color: var(--brand-dark);
  padding: 8px 12px 8px 10px;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 8px 20px rgba(6, 107, 71, 0.08);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background 160ms ease;
}

.performance-check-link:hover {
  border-color: rgba(6, 107, 71, 0.42);
  background: #f7fffb;
  box-shadow: 0 12px 24px rgba(6, 107, 71, 0.13);
  transform: translateY(-1px);
}

.performance-check-icon {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  color: var(--ink);
}

.performance-check-icon svg {
  display: block;
  width: 22px;
  height: 22px;
}

.performance-check-paper {
  fill: #ffffff;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linejoin: round;
}

.performance-check-line {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
}

.performance-check-ribbon {
  fill: #5368d8;
  stroke: #5368d8;
  stroke-width: 1.2;
  stroke-linejoin: round;
}

@media (max-width: 900px) {
  .modal-action-row {
    margin: 8px 0 12px;
    gap: 10px;
  }

  .performance-check-link {
    min-height: 36px;
    padding: 7px 10px 7px 8px;
    font-size: 12px;
  }

  .performance-check-icon,
  .performance-check-icon svg {
    width: 20px;
    height: 20px;
  }
}


@media (max-width: 380px) {
  .performance-check-link {
    gap: 5px;
    padding-inline: 8px;
  }

  .performance-check-label {
    font-size: 11px;
  }
}

/* Truck option publishing */
.modal-action-buttons {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.truck-option-open {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  flex: 0 0 auto;
  min-height: 40px;
  border: 1px solid rgba(8, 145, 93, 0.26);
  border-radius: 999px;
  background: #f7fffb;
  color: var(--brand-dark);
  padding: 8px 13px 8px 10px;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 8px 20px rgba(6, 107, 71, 0.08);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background 160ms ease;
}

.truck-option-open:hover,
.truck-option-open:focus-visible {
  border-color: rgba(6, 107, 71, 0.46);
  background: #ffffff;
  box-shadow: 0 12px 24px rgba(6, 107, 71, 0.13);
  transform: translateY(-1px);
}

.truck-option-open-icon {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--brand);
  color: #ffffff;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
}

.truck-detail-article {
  position: relative;
}

.truck-option-layer {
  position: absolute;
  inset: 0;
  z-index: 8;
  pointer-events: none;
}

.truck-option-layer.open {
  pointer-events: auto;
}

.truck-option-scrim {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: rgba(10, 18, 15, 0.30);
  opacity: 0;
  transition: opacity 180ms ease;
}

.truck-option-layer.open .truck-option-scrim {
  opacity: 1;
}

.truck-option-panel {
  position: absolute;
  top: 0;
  right: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: min(430px, calc(100% - 28px));
  height: 100%;
  border-left: 1px solid rgba(8, 145, 93, 0.18);
  background: #ffffff;
  box-shadow: -18px 0 40px rgba(0, 0, 0, 0.16);
  opacity: 0;
  overflow: hidden;
  transform: translateX(28px);
  transition: transform 200ms ease, opacity 200ms ease;
}

.truck-option-layer.open .truck-option-panel {
  opacity: 1;
  transform: translateX(0);
}

.truck-option-panel-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #f7fffb 0%, #ffffff 100%);
  padding: 20px 20px 16px;
}

.truck-option-kicker {
  display: inline-flex;
  width: max-content;
  margin-bottom: 7px;
  border-radius: 999px;
  background: #edf7f2;
  color: var(--brand-dark);
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
}

.truck-option-panel-header h2 {
  margin: 0;
  color: var(--ink);
  font-size: 21px;
  font-weight: 900;
  line-height: 1.25;
}

.truck-option-panel-header p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.truck-option-panel-body {
  display: grid;
  gap: 12px;
  padding: 16px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.truck-option-group {
  border: 1px solid rgba(8, 145, 93, 0.14);
  border-radius: 14px;
  background: #ffffff;
  padding: 14px;
  box-shadow: 0 10px 26px rgba(6, 107, 71, 0.06);
}

.truck-option-group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.truck-option-group-header h3 {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
  font-weight: 900;
  line-height: 1.3;
}

.truck-option-group-header span {
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--soft);
  color: var(--muted);
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
}

.truck-option-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.truck-option-list li {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 30px;
  border: 1px solid rgba(8, 145, 93, 0.14);
  border-radius: 999px;
  background: #f7fffb;
  color: var(--brand-dark);
  padding: 5px 9px 5px 7px;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.2;
}

.truck-option-check {
  display: inline-grid;
  place-items: center;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: #ffffff;
  color: var(--brand);
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
}

@media (min-width: 901px) {
  .quick-categories {
    grid-auto-flow: row;
    grid-auto-columns: initial;
    grid-template-columns: repeat(9, minmax(0, 1fr));
    grid-template-rows: repeat(2, auto);
    justify-content: center;
    align-items: start;
    gap: 16px 12px;
    overflow: visible;
    max-width: 1120px;
    margin: 0 auto;
    padding: 22px 20px 34px;
    scroll-padding-inline: 0;
    scroll-snap-type: none;
  }

  .quick-categories a,
  .quick-categories button {
    min-height: 104px;
    gap: 8px;
    scroll-snap-align: none;
  }

  .quick-categories a:last-child,
  .quick-categories button:last-child {
    scroll-snap-align: none;
  }

  .truck-category-grid::after {
    display: none;
  }

  .quick-categories .category-illustration {
    width: 68px;
    height: 68px;
  }

  .quick-categories strong {
    font-size: 13px;
    line-height: 1.2;
  }

  .category-vehicle {
    width: 52px;
  }

  .category-grid-icon {
    width: 32px;
  }
}

@media (min-width: 1200px) {
  .quick-categories {
    gap: 18px 14px;
    max-width: 1180px;
  }

  .quick-categories .category-illustration {
    width: 72px;
    height: 72px;
  }

  .category-vehicle {
    width: 56px;
  }
}

@media (max-width: 900px) {
  .modal-action-buttons {
    justify-content: flex-end;
  }

  .truck-option-open-inline {
    display: inline-flex;
  }

  .truck-option-layer {
    z-index: 9;
  }

  .truck-option-scrim {
    background: rgba(10, 18, 15, 0.36);
  }

  .truck-option-panel {
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: auto;
    max-height: min(74svh, calc(100% - 22px));
    border-top: 1px solid rgba(8, 145, 93, 0.18);
    border-left: 0;
    border-radius: 22px 22px 0 0;
    box-shadow: 0 -18px 40px rgba(0, 0, 0, 0.18);
    transform: translateY(28px);
  }

  .truck-option-layer.open .truck-option-panel {
    transform: translateY(0);
  }

  .truck-option-panel-header {
    padding: 18px 18px 14px;
  }

  .truck-option-panel-header h2 {
    font-size: 20px;
  }

  .truck-option-panel-body {
    gap: 10px;
    padding: 14px;
  }

  .truck-option-group {
    padding: 12px;
    border-radius: 13px;
  }

  .truck-option-list li {
    min-height: 29px;
    font-size: 12px;
  }
}


@media (max-width: 380px) {
  .truck-option-open {
    min-height: 40px;
    padding-inline: 10px;
    font-size: 12px;
  }

  .truck-option-open-icon {
    width: 20px;
    height: 20px;
    font-size: 12px;
  }
}

/* Mobile option publishing refinement: inline disclosure, desktop drawer unchanged */
.truck-option-mobile-section,
.truck-option-mobile-card {
  display: none;
}

@media (max-width: 900px) {
  .modal-action-buttons .truck-option-open-inline {
    display: none;
  }

  .truck-option-mobile-section {
    display: block;
  }

  .truck-option-mobile-card {
    display: block;
    margin: 10px 0 16px;
    border: 1px solid rgba(8, 145, 93, 0.16);
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 10px 26px rgba(6, 107, 71, 0.07);
    overflow: hidden;
  }

  .truck-option-mobile-card summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 58px;
    padding: 13px 14px;
    cursor: pointer;
    list-style: none;
  }

  .truck-option-mobile-card summary::-webkit-details-marker {
    display: none;
  }

  .truck-option-mobile-summary-text {
    display: grid;
    gap: 4px;
    min-width: 0;
  }

  .truck-option-mobile-summary-text strong {
    color: var(--ink);
    font-size: 15px;
    font-weight: 900;
    line-height: 1.25;
  }

  .truck-option-mobile-summary-text span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.35;
  }

  .truck-option-mobile-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-width: 48px;
    min-height: 30px;
    border: 1px solid rgba(8, 145, 93, 0.18);
    border-radius: 999px;
    background: #f7fffb;
    color: var(--brand-dark);
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
  }

  .truck-option-mobile-card summary::after {
    content: "";
    flex: 0 0 auto;
    width: 8px;
    height: 8px;
    margin-left: -4px;
    border-right: 2px solid var(--brand-dark);
    border-bottom: 2px solid var(--brand-dark);
    transform: rotate(45deg) translateY(-2px);
    transition: transform 160ms ease;
  }

  .truck-option-mobile-card[open] summary {
    border-bottom: 1px solid rgba(8, 145, 93, 0.12);
    background: linear-gradient(180deg, #f7fffb 0%, #ffffff 100%);
  }

  .truck-option-mobile-card[open] summary::after {
    transform: rotate(225deg) translate(-1px, -1px);
  }

  .truck-option-mobile-body {
    display: grid;
    gap: 10px;
    padding: 12px;
    background: #ffffff;
  }

  .truck-option-mobile-group {
    padding: 12px;
    border-radius: 13px;
    box-shadow: none;
  }

  .truck-option-mobile-group .truck-option-list {
    gap: 6px;
  }

  .truck-option-mobile-group .truck-option-list li {
    min-height: 29px;
    font-size: 12px;
  }
}


@media (max-width: 380px) {
  .truck-option-mobile-card summary {
    padding-inline: 12px;
  }

  .truck-option-mobile-summary-text span {
    font-size: 11px;
  }

  .truck-option-mobile-count {
    min-width: 44px;
    padding-inline: 9px;
  }
}

/* Option safety guards: removing the entire option markup must not affect the base detail layout. */
.modal-action-row > .modal-action-buttons:empty {
  display: none;
}

.truck-option-layer[hidden],
.truck-option-mobile-section[hidden],
.truck-option-mobile-card[hidden] {
  display: none !important;
}


/* SEO/accessibility refinement for truck option UI */
.truck-option-panel:focus-visible,
.truck-option-mobile-card summary:focus-visible,
.truck-option-scrim:focus-visible {
  outline: 3px solid rgba(8, 145, 93, 0.42);
  outline-offset: -3px;
}

.truck-option-mobile-card summary:focus-visible {
  outline-offset: 3px;
}

.truck-option-layer[aria-hidden="true"] {
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .truck-filter-backdrop,
  .truck-filter-modal,
  .filter-check-pill span,
  .truck-option-open,
  .truck-option-scrim,
  .truck-option-panel,
  .truck-option-mobile-card summary::after {
    transition: none;
  }
}

/* Inventory shell alignment: match the notes-shell container rhythm. */
.inventory-shell {
  width: min(1240px, 100%);
  margin: 0 auto;
  padding: 0 clamp(18px, 5vw, 52px) 72px;
}

.inventory-shell > .list-breadcrumb,
.inventory-shell > .quick-categories,
.inventory-shell > .status-filter,
.inventory-shell > .inventory-filter-panel,
.inventory-shell > .content-section {
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  box-sizing: border-box;
}

.inventory-shell > .list-breadcrumb {
  padding: 18px 0 0;
}

.inventory-shell > .inventory-intro {
  width: 100%;
  max-width: none;
  margin: 10px 0 clamp(18px, 3vw, 28px);
  box-sizing: border-box;
}

.inventory-shell > .quick-categories {
  max-width: 100%;
  margin: 0 0 12px;
  padding: 8px 0 12px;
}

.inventory-shell > .status-filter {
  justify-content: flex-start;
  flex-wrap: wrap;
  padding: 0 0 12px;
}

.inventory-shell > .inventory-filter-panel {
  padding: 0 0 14px;
}

.inventory-shell > .content-section {
  padding: 22px 0 34px;
}

@media (min-width: 901px) {
  .inventory-shell > .quick-categories {
    grid-auto-flow: row;
    grid-auto-columns: initial;
    grid-template-columns: repeat(9, minmax(0, 1fr));
    grid-template-rows: repeat(2, auto);
    justify-content: stretch;
    align-items: start;
    gap: 14px 10px;
    overflow: visible;
    max-width: 100%;
    margin: 0 0 10px;
    padding: 8px 0 10px;
    scroll-padding-inline: 0;
    scroll-snap-type: none;
  }

  .inventory-shell > .quick-categories a,
  .inventory-shell > .quick-categories button {
    min-height: 98px;
    gap: 7px;
    scroll-snap-align: none;
  }

  .inventory-shell > .quick-categories a:last-child,
  .inventory-shell > .quick-categories button:last-child {
    scroll-snap-align: none;
  }

  .inventory-shell > .truck-category-grid::after {
    display: none;
  }

  .inventory-shell > .quick-categories .category-illustration {
    width: 62px;
    height: 62px;
  }

  .inventory-shell > .quick-categories strong {
    font-size: 13px;
    line-height: 1.22;
  }

  .inventory-shell > .quick-categories .category-vehicle {
    width: 48px;
  }

  .inventory-shell > .quick-categories .category-grid-icon {
    width: 30px;
  }
}

@media (max-width: 720px) {
  .inventory-shell {
    padding-left: 14px;
    padding-right: 14px;
    padding-bottom: 52px;
  }

  .inventory-shell > .inventory-intro {
    width: 100%;
    margin-top: 8px;
    margin-bottom: 18px;
  }

  .inventory-shell > .quick-categories {
    margin-bottom: 12px;
    padding-top: 6px;
    padding-bottom: 14px;
  }

  .inventory-shell > .status-filter {
    gap: 8px;
  }
}

/* Dealer request client-only drawer */
.modal-header-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.dealer-request-open {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border: 1px solid rgba(8, 145, 93, 0.28);
  border-radius: 999px;
  background: var(--brand);
  color: #ffffff;
  padding: 8px 13px;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.15;
  white-space: nowrap;
  box-shadow: 0 10px 22px rgba(6, 107, 71, 0.14);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background 160ms ease;
}

.dealer-request-open:hover,
.dealer-request-open:focus-visible {
  border-color: rgba(6, 107, 71, 0.50);
  background: var(--brand-dark);
  box-shadow: 0 14px 28px rgba(6, 107, 71, 0.18);
  transform: translateY(-1px);
}

.dealer-request-open[aria-expanded="true"] {
  background: var(--brand-dark);
}

.detail-contact-links .dealer-request-open {
  background: #f7fffb;
  color: var(--brand-dark);
  box-shadow: none;
}

.detail-contact-links a,
.detail-contact-links button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  padding: 7px 11px;
  font-size: 13px;
  font-weight: 900;
}

.dealer-request-layer {
  position: absolute;
  inset: 0;
  z-index: 10;
  pointer-events: none;
}

.dealer-request-layer.open {
  pointer-events: auto;
}

.dealer-request-layer[hidden] {
  display: none !important;
}

.dealer-request-layer[aria-hidden="true"] {
  pointer-events: none;
}

.dealer-request-scrim {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: rgba(10, 18, 15, 0.32);
  opacity: 0;
  transition: opacity 180ms ease;
}

.dealer-request-layer.open .dealer-request-scrim {
  opacity: 1;
}

.dealer-request-panel {
  position: absolute;
  top: 0;
  right: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: min(420px, calc(100% - 28px));
  height: 100%;
  border-left: 1px solid rgba(8, 145, 93, 0.18);
  background: #ffffff;
  box-shadow: -18px 0 40px rgba(0, 0, 0, 0.16);
  opacity: 0;
  overflow: hidden;
  transform: translateX(28px);
  transition: transform 200ms ease, opacity 200ms ease;
}

.dealer-request-layer.open .dealer-request-panel {
  opacity: 1;
  transform: translateX(0);
}

.dealer-request-panel-header {
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #f7fffb 0%, #ffffff 100%);
  padding: 20px 20px 16px;
}

.dealer-request-kicker {
  display: inline-flex;
  width: max-content;
  margin-bottom: 7px;
  border-radius: 999px;
  background: #edf7f2;
  color: var(--brand-dark);
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
}

.dealer-request-panel-header h2 {
  margin: 0;
  color: var(--ink);
  font-size: 21px;
  font-weight: 900;
  line-height: 1.25;
}

.dealer-request-panel-header p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.dealer-request-form {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 16px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.dealer-request-field {
  display: grid;
  gap: 7px;
}

.dealer-request-field label {
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.35;
}

.dealer-request-required {
  color: #dc2626;
  font-weight: 900;
}

.dealer-request-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.dealer-request-count {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.dealer-request-field input,
.dealer-request-field textarea {
  width: 100%;
  border: 1px solid rgba(8, 145, 93, 0.18);
  border-radius: 13px;
  background: #ffffff;
  color: var(--ink);
  padding: 11px 12px;
  font: inherit;
  font-size: 14px;
  line-height: 1.45;
  outline: none;
}

.dealer-request-field textarea {
  resize: vertical;
  min-height: 118px;
}

.dealer-request-field input:focus,
.dealer-request-field textarea:focus {
  border-color: rgba(8, 145, 93, 0.58);
  box-shadow: 0 0 0 3px rgba(8, 145, 93, 0.13);
}


.dealer-request-privacy-notice {
  margin: 0;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.04);
  color: var(--muted);
  padding: 10px 12px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.55;
}

.dealer-request-actions {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 8px;
  margin-top: 2px;
}

.dealer-request-actions button {
  min-height: 42px;
  border-radius: 13px;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 900;
}

.dealer-request-close {
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--ink);
}

.dealer-request-submit {
  border: 1px solid var(--brand);
  background: var(--brand);
  color: #ffffff;
}

.dealer-request-panel:focus-visible,
.dealer-request-scrim:focus-visible,
.dealer-request-open:focus-visible {
  outline: 3px solid rgba(8, 145, 93, 0.42);
  outline-offset: 3px;
}

@media (max-width: 900px) {
  .modal-header-actions {
    margin-top: 10px;
  }

  .dealer-request-open-header {
    min-height: 36px;
    padding-inline: 12px;
    font-size: 12px;
  }

  .dealer-request-layer {
    position: fixed;
    inset: 0;
    z-index: 11;
  }

  .dealer-request-scrim {
    background: rgba(10, 18, 15, 0.38);
  }

  .dealer-request-panel {
    top: auto;
    right: 0;
    bottom: max(var(--dealer-request-keyboard-offset, 0px), env(safe-area-inset-bottom));
    left: 0;
    width: 100%;
    height: min(78svh, calc(var(--dealer-request-viewport-height, 100dvh) - 14px));
    max-height: calc(var(--dealer-request-viewport-height, 100dvh) - 14px);
    border-top: 1px solid rgba(8, 145, 93, 0.18);
    border-left: 0;
    border-radius: 22px 22px 0 0;
    box-shadow: 0 -18px 40px rgba(0, 0, 0, 0.18);
    transform: translateY(28px);
  }

  .dealer-request-layer.open .dealer-request-panel {
    transform: translateY(0);
  }

  .dealer-request-panel-header {
    padding: 18px 18px 14px;
  }

  .dealer-request-panel-header h2 {
    font-size: 20px;
  }

  .dealer-request-form {
    gap: 12px;
    min-height: 0;
    padding: 14px 14px max(14px, env(safe-area-inset-bottom));
    overflow-y: auto;
  }

  .dealer-request-actions {
    position: sticky;
    right: 0;
    bottom: 0;
    z-index: 1;
    margin: 0 -14px max(-14px, calc(env(safe-area-inset-bottom) * -1));
    border-top: 1px solid rgba(8, 145, 93, 0.12);
    background: rgba(255, 255, 255, 0.96);
    padding: 10px 14px max(10px, env(safe-area-inset-bottom));
    backdrop-filter: blur(10px);
  }
}



@media (max-width: 900px) {
  #modalContent.dealer-request-active:not(.intro-layout) {
    overflow: hidden;
    overscroll-behavior: contain;
  }

  #modalContent.dealer-request-active .truck-detail-article {
    overflow: hidden;
  }

  #modalContent.dealer-request-active .dealer-request-layer {
    touch-action: auto;
  }

  #modalContent.dealer-request-active .dealer-request-panel,
  #modalContent.dealer-request-active .dealer-request-form {
    overscroll-behavior: contain;
    touch-action: pan-y;
  }
}

@media (max-width: 380px) {
  .dealer-request-actions {
    grid-template-columns: 1fr;
  }

  .dealer-request-field input,
  .dealer-request-field textarea {
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dealer-request-open,
  .dealer-request-scrim,
  .dealer-request-panel {
    transition: none;
  }
}

