:root {
  --listing-ink: #102039;
  --listing-text: #28364a;
  --listing-muted: #75808e;
  --listing-line: #e8ebef;
  --listing-soft: #f5f7f9;
  --listing-page: #fbfcfe;
  --listing-surface: #ffffff;
  --listing-gold: #bd914d;
  --listing-green: #15805e;
  --listing-green-bg: #ddf5eb;
  --listing-yellow: #a87711;
  --listing-yellow-bg: #fff3d7;
  --listing-blue: #1676ad;
  --listing-blue-bg: #dff1fb;
  --listing-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI", Roboto,
    "Helvetica Neue", Helvetica, Arial, sans-serif;
  --listing-ease: 220ms cubic-bezier(0.2, 0.72, 0.2, 1);
  --listing-columns: minmax(290px, 1fr) 64px 106px 94px 94px 106px 128px 44px 24px;
  --compact-columns: 23px 98px 128px 52px 88px 80px 72px 78px 88px 102px 112px 34px 17px;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--listing-ink);
  background:
    radial-gradient(circle at 84% 20%, rgba(223, 228, 234, 0.22), transparent 26rem),
    var(--listing-page);
  font-family: var(--listing-sans);
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

button,
input,
select {
  color: inherit;
  font: inherit;
}

button,
a,
select {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

svg {
  display: block;
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.65;
}

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}

.listing-shell {
  width: min(1440px, calc(100% - 48px));
  margin-inline: auto;
}

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

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 8px;
  left: 8px;
  padding: 10px 14px;
  color: #fff;
  background: var(--listing-ink);
  border-radius: 7px;
  transform: translateY(-150%);
  transition: transform var(--listing-ease);
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 3px solid rgba(16, 32, 57, 0.26);
  outline-offset: 3px;
}

.listing-topbar {
  position: relative;
  z-index: 20;
  height: 72px;
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid #eceff2;
  box-shadow: 0 6px 22px rgba(22, 32, 46, 0.035);
}

.listing-topbar-inner {
  display: grid;
  grid-template-columns: minmax(245px, 1fr) auto minmax(245px, 1fr);
  align-items: center;
  height: 100%;
}

.listing-brand {
  display: inline-flex;
  align-items: center;
  width: max-content;
  margin-left: 6px;
}

.listing-monogram {
  position: relative;
  display: block;
  width: 47px;
  height: 48px;
  font-family: var(--listing-sans);
  font-size: 38px;
  font-weight: 600;
  line-height: 46px;
}

.listing-monogram span:first-child {
  position: absolute;
  top: -2px;
  left: 0;
}

.listing-monogram span:last-child {
  position: absolute;
  top: 8px;
  left: 22px;
  font-size: 29px;
}

.listing-brand-divider {
  width: 1px;
  height: 39px;
  margin: 0 15px 0 4px;
  background: #dfe3e8;
}

.listing-brand-copy {
  display: flex;
  flex-direction: column;
}

.listing-brand-copy strong {
  font-family: var(--listing-sans);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.listing-brand-copy small {
  margin-top: 3px;
  color: #969da7;
  font-family: var(--listing-sans);
  font-size: 5.4px;
  letter-spacing: 0.08em;
}

.listing-nav {
  display: flex;
  align-self: stretch;
  justify-content: center;
  gap: 48px;
}

.listing-nav a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  flex-direction: column;
  gap: 5px;
  color: var(--listing-ink);
  font-family: var(--listing-sans);
  font-size: 10px;
  font-weight: 600;
}

.listing-nav svg {
  width: 24px;
  height: 24px;
  stroke-width: 1.55;
}

.listing-nav a::after {
  position: absolute;
  right: -8px;
  bottom: 0;
  left: -8px;
  height: 2px;
  background: var(--listing-gold);
  content: "";
  opacity: 0;
  transform: scaleX(0.4);
  transition:
    opacity var(--listing-ease),
    transform var(--listing-ease);
}

.listing-nav a:hover::after,
.listing-nav a.is-active::after {
  opacity: 1;
  transform: scaleX(1);
}

.listing-nav a.is-active {
  color: #82601f;
}

.listing-actions {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 10px;
}

.top-add-button,
.round-button,
.gold-button,
.listing-view-switcher button,
.pagination button,
.car-dialog button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  transition:
    color var(--listing-ease),
    background-color var(--listing-ease),
    border-color var(--listing-ease),
    box-shadow var(--listing-ease),
    transform var(--listing-ease);
}

.top-add-button {
  min-width: 150px;
  height: 39px;
  gap: 9px;
  padding: 0 16px;
  color: #fff;
  background: var(--listing-ink);
  border-radius: 6px;
  box-shadow: 0 5px 14px rgba(16, 32, 57, 0.16);
  font-family: var(--listing-sans);
  font-size: 11px;
}

.top-add-button svg {
  width: 16px;
  height: 16px;
}

.top-add-button:hover {
  background: #1c3353;
  transform: translateY(-1px);
}

.round-button {
  width: 38px;
  height: 38px;
  padding: 0;
  background: #f5f6f8;
  border-radius: 50%;
}

.round-button svg {
  width: 18px;
  height: 18px;
}

.round-button:hover {
  background: #e9edf1;
}

.listing-main {
  min-height: calc(100dvh - 72px);
  padding-bottom: 34px;
}

.listing-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 105px;
  gap: 24px;
}

.listing-title-wrap {
  display: flex;
  align-items: center;
  min-width: 0;
  margin-left: 6px;
}

.listing-title-icon {
  flex: 0 0 51px;
  width: 51px;
  height: 51px;
  margin-right: 16px;
  stroke-width: 1.5;
}

.listing-title-wrap h1 {
  margin: 0;
  font-family: var(--listing-sans);
  font-size: clamp(36px, 4.2vw, 43px);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1;
}

.hero-count {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-left: 33px;
  font-family: var(--listing-sans);
}

.hero-count strong {
  display: grid;
  width: 36px;
  height: 36px;
  background: #f0f2f5;
  border-radius: 8px;
  place-items: center;
  font-size: 23px;
  line-height: 1;
}

.hero-count span {
  font-size: 13px;
}

.hero-separator {
  width: 1px;
  height: 45px;
  margin: 0 34px;
  background: #d9dde3;
}

.hero-value {
  display: flex;
  flex-direction: column;
  font-family: var(--listing-sans);
}

.hero-value small {
  color: #647080;
  font-size: 14px;
}

.hero-value strong {
  margin-top: 1px;
  font-size: 27px;
  line-height: 1;
}

a.gold-button {
  text-decoration: none;
}

.gold-button {
  flex: 0 0 auto;
  min-width: 174px;
  height: 45px;
  gap: 10px;
  padding: 0 18px;
  color: #fff;
  background: linear-gradient(135deg, #c9a15e, #b8863f);
  border-radius: 8px;
  box-shadow: 0 7px 20px rgba(181, 133, 61, 0.2);
  font-family: var(--listing-sans);
  font-size: 11px;
}

.gold-button svg {
  width: 18px;
  height: 18px;
}

.gold-button:hover {
  box-shadow: 0 10px 25px rgba(181, 133, 61, 0.28);
  transform: translateY(-1px);
}

.listing-toolbar {
  display: flex;
  align-items: center;
  min-height: 59px;
  margin-top: 6px;
  gap: 29px;
  padding: 7px 9px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid #edf0f3;
  border-radius: 11px;
  box-shadow: 0 5px 18px rgba(22, 32, 46, 0.025);
}

.listing-view-switcher {
  display: grid;
  flex: 0 0 280px;
  grid-template-columns: 78px 104px 98px;
  height: 39px;
  padding: 3px;
  background: #fafbfc;
  border-radius: 8px;
}

.listing-view-switcher button {
  min-width: 0;
  gap: 8px;
  padding: 0 9px;
  background: transparent;
  border-radius: 6px;
  font-family: var(--listing-sans);
  font-size: 9px;
  white-space: nowrap;
}

.listing-view-switcher button svg {
  width: 15px;
  height: 15px;
}

.listing-view-switcher button:hover {
  background: #eef1f4;
}

.listing-view-switcher button.is-active {
  color: #fff;
  background: var(--listing-ink);
  box-shadow: 0 4px 11px rgba(16, 32, 57, 0.18);
}

.listing-filters {
  display: grid;
  flex: 1;
  grid-template-columns: minmax(116px, 1fr) minmax(130px, 1.12fr) minmax(104px, 0.86fr) minmax(178px, 1.45fr);
  align-items: end;
  gap: 17px;
  min-width: 0;
}

.location-filter-wrap {
  display: none !important;
}

.listing-filters label:not(.search-field) {
  position: relative;
  display: grid;
  gap: 1px;
  min-width: 0;
}

.listing-filters label > span {
  color: #707b88;
  font-size: 9px;
  line-height: 1;
}

.listing-filters select,
.search-field {
  width: 100%;
  height: 33px;
  color: #3a4656;
  background-color: #fff;
  border: 1px solid #e0e4e9;
  border-radius: 6px;
  outline: none;
  font-family: var(--listing-sans);
  font-size: 9px;
  transition:
    border-color var(--listing-ease),
    box-shadow var(--listing-ease);
}

.listing-filters select {
  padding: 0 29px 0 10px;
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #85909d 50%),
    linear-gradient(135deg, #85909d 50%, transparent 50%);
  background-position:
    calc(100% - 13px) 14px,
    calc(100% - 9px) 14px;
  background-repeat: no-repeat;
  background-size: 4px 4px, 4px 4px;
}

.listing-filters select:focus,
.search-field:focus-within {
  border-color: var(--listing-ink);
  box-shadow: 0 0 0 3px rgba(16, 32, 57, 0.08);
}

.search-field {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 10px;
}

.search-field svg {
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
}

.search-field input {
  width: 100%;
  min-width: 0;
  height: 100%;
  padding: 0;
  background: transparent;
  border: 0;
  outline: none;
  font-size: 9px;
}

.search-field input::placeholder {
  color: #9ca4ae;
}

.vehicle-table {
  margin-top: 16px;
}

.vehicle-table-head,
.vehicle-row {
  display: grid;
  grid-template-columns: var(--listing-columns);
}

.compact-head {
  display: none;
}

.vehicle-table-head {
  align-items: center;
  min-height: 35px;
  padding: 0 1px;
  color: #475466;
  background: linear-gradient(90deg, #f4f6f9, #f7f8fa);
  border-radius: 9px 9px 0 0;
  font-size: 9px;
}

.vehicle-table-head > span {
  padding-inline: 1px;
}

.compact-select-all {
  display: grid;
  place-items: center;
}

.compact-select-all input,
.select-cell input {
  width: 11px;
  height: 11px;
  margin: 0;
  accent-color: var(--listing-ink);
}

.vehicle-list {
  display: grid;
  gap: 2px;
}

.vehicle-row {
  position: relative;
  align-items: center;
  min-height: 89px;
  background: rgba(255, 255, 255, 0.78);
  border-bottom: 1px solid #edf0f3;
  box-shadow: 0 3px 13px rgba(22, 32, 46, 0.022);
  transition:
    background-color var(--listing-ease),
    box-shadow var(--listing-ease),
    transform var(--listing-ease);
}

.vehicle-row:hover {
  z-index: 2;
  background: #fff;
  box-shadow: 0 8px 22px rgba(22, 32, 46, 0.065);
  transform: translateY(-1px);
}

.select-cell,
.insurance-cell,
.documents-cell,
.vehicle-brand-logo,
.location-copy small,
.year-cell svg,
.mileage-cell svg,
.maintenance-service {
  display: none;
}

.vehicle-main {
  display: grid;
  grid-template-columns: 145px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.vehicle-thumb {
  display: block;
  width: 145px;
  height: 77px;
  object-fit: cover;
  border-radius: 7px;
}

.vehicle-identity {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
}

.vehicle-identity h3 {
  max-width: 100%;
  margin: 0;
  overflow: hidden;
  font-family: var(--listing-sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.12;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vehicle-model {
  margin-top: 3px;
  color: #536072;
  font-family: var(--listing-sans);
  font-size: 11px;
  line-height: 1;
}

.vehicle-tags {
  display: flex;
  gap: 8px;
  max-width: 100%;
  margin-top: 8px;
}

.vehicle-tags span {
  max-width: 110px;
  padding: 4px 9px;
  overflow: hidden;
  color: #7b8591;
  background: #f4f5f7;
  border-radius: 999px;
  font-size: 8px;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vehicle-cell {
  min-width: 0;
  padding-right: 5px;
  color: #334155;
  font-family: var(--listing-sans);
  font-size: 9px;
  line-height: 1.2;
}

.location-cell {
  display: flex;
  align-items: center;
  gap: 6px;
}

.location-cell svg,
.maintenance-cell svg {
  flex: 0 0 17px;
  width: 17px;
  height: 17px;
  stroke-width: 1.7;
}

.location-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.location-copy strong {
  overflow: hidden;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.value-cell {
  color: #17243a;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  max-width: 100%;
  padding: 0 10px;
  overflow: hidden;
  border-radius: 999px;
  font-family: var(--listing-sans);
  font-size: 7.5px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.status-pill.status-circulation {
  color: var(--listing-green);
  background: var(--listing-green-bg);
}

.status-pill.status-entretien {
  color: var(--listing-yellow);
  background: var(--listing-yellow-bg);
}

.status-pill.status-collection {
  color: var(--listing-blue);
  background: var(--listing-blue-bg);
}

.maintenance-cell {
  display: flex;
  align-items: center;
  gap: 8px;
}

.maintenance-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.maintenance-copy strong {
  overflow: hidden;
  font-size: 9px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.maintenance-copy small {
  margin-top: 3px;
  overflow: hidden;
  color: #7e8793;
  font-family: var(--listing-sans);
  font-size: 7px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.row-menu-wrap {
  position: relative;
  display: grid;
  place-items: center;
}

.row-menu-button {
  display: grid;
  width: 32px;
  height: 32px;
  padding: 0;
  color: var(--listing-ink);
  background: #f6f7f9;
  border: 0;
  border-radius: 50%;
  place-items: center;
  transition: background-color var(--listing-ease);
}

.row-menu-button:hover,
.row-menu-button[aria-expanded="true"] {
  background: #e9edf1;
}

.row-menu-button svg {
  width: 14px;
  height: 14px;
}

.row-menu {
  position: absolute;
  z-index: 20;
  top: 34px;
  right: 0;
  display: grid;
  width: 125px;
  padding: 5px;
  background: #fff;
  border: 1px solid var(--listing-line);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(16, 32, 57, 0.16);
}

.row-menu button {
  height: 31px;
  padding: 0 9px;
  color: var(--listing-ink);
  background: transparent;
  border: 0;
  border-radius: 5px;
  font-family: var(--listing-sans);
  font-size: 9px;
  text-align: left;
}

.row-menu button:hover {
  background: var(--listing-soft);
}

.row-chevron {
  display: grid;
  width: 24px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 0;
  place-items: center;
}

.row-chevron svg {
  width: 14px;
  height: 14px;
  transition: transform var(--listing-ease);
}

.row-chevron:hover svg {
  transform: translateX(3px);
}

.empty-state {
  display: grid;
  min-height: 250px;
  color: var(--listing-muted);
  place-items: center;
  align-content: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--listing-line);
  border-radius: 0 0 10px 10px;
}

.empty-state svg {
  width: 28px;
  height: 28px;
}

.empty-state strong {
  color: var(--listing-ink);
  font-family: var(--listing-sans);
  font-size: 18px;
}

.empty-state span {
  font-size: 11px;
}

.listing-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  color: #77818e;
  font-size: 9px;
}

.pagination {
  display: flex;
  align-items: center;
  gap: 7px;
}

.pagination button {
  width: 29px;
  height: 29px;
  padding: 0;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 3px 10px rgba(22, 32, 46, 0.05);
  font-size: 9px;
}

.pagination button svg {
  width: 13px;
  height: 13px;
}

.pagination button:hover {
  background: #edf1f5;
}

.pagination button.is-active {
  color: #fff;
  background: var(--listing-ink);
}

/* Mosaïque */
.vehicle-table.table-mosaic .vehicle-table-head {
  display: none;
}

.listing-view-mosaic .vehicle-table {
  margin-top: 14px;
}

.vehicle-list.mode-mosaic {
  grid-template-columns: minmax(0, 322fr) minmax(0, 305fr) minmax(0, 322fr);
  column-gap: 13px;
  row-gap: 12px;
}

.mode-mosaic .vehicle-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  min-height: 0;
  padding-bottom: 42px;
  overflow: visible;
  border: 1px solid var(--listing-line);
  border-radius: 10px;
  box-shadow: 0 7px 20px rgba(22, 32, 46, 0.055);
}

.mode-mosaic .vehicle-main {
  display: block;
  grid-column: 1 / -1;
}

.mode-mosaic .vehicle-thumb {
  width: 100%;
  height: 176px;
  aspect-ratio: auto;
  object-fit: cover;
  border-radius: 9px 9px 0 0;
}

.mode-mosaic .vehicle-row:nth-child(n + 4) .vehicle-thumb {
  height: 164px;
}

.mode-mosaic .vehicle-identity {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  min-height: 54px;
  padding: 10px 15px 9px;
  border-bottom: 1px solid #edf0f3;
}

.mode-mosaic .vehicle-identity h3 {
  grid-column: 1;
  margin-right: 8px;
  font-size: 18px;
}

.mode-mosaic .vehicle-model {
  grid-column: 1;
  font-size: 12px;
}

.mode-mosaic .vehicle-brand-logo {
  display: block;
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  width: 48px;
  height: 34px;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.mode-mosaic .vehicle-tags {
  position: absolute;
  bottom: 11px;
  left: 15px;
  margin: 0;
}

.mode-mosaic .vehicle-cell {
  min-height: 52px;
  padding: 10px 8px;
  font-size: 10px;
}

.mode-mosaic .year-cell,
.mode-mosaic .location-cell,
.mode-mosaic .mileage-cell {
  display: grid;
  grid-template-columns: 17px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-items: center;
  gap: 1px 7px;
}

.mode-mosaic .year-cell,
.mode-mosaic .location-cell {
  border-right: 1px solid #edf0f3;
}

.mode-mosaic .year-cell svg,
.mode-mosaic .mileage-cell svg {
  display: block;
}

.mode-mosaic .year-cell svg,
.mode-mosaic .location-cell > svg,
.mode-mosaic .mileage-cell svg {
  grid-column: 1;
  grid-row: 1 / span 2;
  width: 17px;
  height: 17px;
}

.mode-mosaic .year-cell > span,
.mode-mosaic .mileage-cell > span,
.mode-mosaic .location-copy strong {
  grid-column: 2;
  grid-row: 1;
  overflow: hidden;
  font-size: 10px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mode-mosaic .location-copy {
  display: contents;
}

.mode-mosaic .year-cell::after,
.mode-mosaic .location-cell::after,
.mode-mosaic .mileage-cell::after {
  grid-column: 2;
  grid-row: 2;
  color: var(--listing-muted);
  content: attr(data-label);
  font-family: var(--listing-sans);
  font-size: 6.5px;
}

.mode-mosaic .value-cell {
  position: absolute;
  right: 15px;
  bottom: 11px;
  display: block;
  min-height: 0;
  padding: 0;
  color: #9b711e;
  font-family: var(--listing-sans);
  font-size: 18px;
}

.mode-mosaic .select-cell,
.mode-mosaic .status-cell,
.mode-mosaic .insurance-cell,
.mode-mosaic .maintenance-cell,
.mode-mosaic .documents-cell,
.mode-mosaic .row-chevron {
  display: none;
}

.mode-mosaic .row-menu-wrap {
  position: absolute;
  top: 8px;
  right: 8px;
}

.mode-mosaic .row-menu-button {
  width: 37px;
  height: 37px;
  background: transparent;
}

.mode-mosaic .row-menu-button svg {
  opacity: 0;
}

/* Liste compacte */
.listing-view-compact .listing-topbar {
  height: 54px;
}

.listing-view-compact .listing-monogram {
  width: 39px;
  height: 39px;
  font-size: 30px;
  line-height: 38px;
}

.listing-view-compact .listing-monogram span:last-child {
  top: 6px;
  left: 18px;
  font-size: 23px;
}

.listing-view-compact .listing-brand-divider {
  height: 32px;
  margin-right: 11px;
}

.listing-view-compact .listing-brand-copy strong {
  font-size: 14px;
}

.listing-view-compact .listing-brand-copy small {
  font-size: 4.5px;
}

.listing-view-compact .listing-nav {
  gap: 50px;
}

.listing-view-compact .listing-nav a {
  gap: 2px;
  font-size: 8px;
}

.listing-view-compact .listing-nav svg {
  width: 20px;
  height: 20px;
}

.listing-view-compact .top-add-button {
  min-width: 120px;
  height: 34px;
  font-size: 9px;
}

.listing-view-compact .round-button {
  width: 34px;
  height: 34px;
}

.listing-view-compact .listing-main {
  min-height: calc(100dvh - 54px);
}

.listing-view-compact .listing-hero {
  min-height: 68px;
}

.listing-view-compact .listing-title-icon {
  flex-basis: 37px;
  width: 37px;
  height: 37px;
  margin-right: 11px;
}

.listing-view-compact .listing-title-wrap h1 {
  font-size: 34px;
}

.listing-view-compact .hero-count {
  gap: 8px;
  margin-left: 34px;
}

.listing-view-compact .hero-count strong {
  width: 30px;
  height: 30px;
  font-size: 19px;
}

.listing-view-compact .hero-count span,
.listing-view-compact .hero-value small {
  font-size: 10px;
}

.listing-view-compact .hero-separator {
  height: 35px;
  margin: 0 31px 0 40px;
}

.listing-view-compact .hero-value strong {
  font-size: 22px;
}

.listing-view-compact .gold-button {
  min-width: 155px;
  height: 34px;
  font-size: 9px;
}

.listing-view-compact .listing-toolbar {
  min-height: 47px;
  margin-top: 1px;
  gap: 26px;
  padding: 4px 8px;
  border-radius: 8px;
}

.listing-view-compact .listing-view-switcher {
  flex-basis: 220px;
  grid-template-columns: 64px 75px 75px;
  height: 37px;
}

.listing-view-compact .listing-view-switcher button {
  gap: 6px;
  padding-inline: 7px;
  font-size: 8px;
}

.listing-view-compact .listing-filters {
  grid-template-columns: 110px 14px 120px 11px 120px 15px 120px 24px minmax(0, 1fr);
  gap: 0;
}

.listing-view-compact .listing-filters > label:nth-child(1) {
  grid-column: 1;
}

.listing-view-compact .listing-filters > label:nth-child(2) {
  grid-column: 3;
}

.listing-view-compact .listing-filters > label:nth-child(3) {
  grid-column: 5;
}

.listing-view-compact .listing-filters > label:nth-child(4) {
  grid-column: 7;
}

.listing-view-compact .listing-filters > .search-field {
  grid-column: 9;
}

.listing-view-compact .location-filter-wrap {
  display: grid !important;
}

.listing-view-compact .listing-filters label > span {
  font-size: 7px;
}

.listing-view-compact .listing-filters select,
.listing-view-compact .search-field {
  height: 29px;
  font-size: 8px;
}

.listing-view-compact .vehicle-table {
  margin-top: 11px;
}

.vehicle-table.table-compact .standard-head {
  display: none;
}

.vehicle-table.table-compact .compact-head {
  display: grid;
  grid-template-columns: var(--compact-columns);
  min-height: 28px;
  padding: 0;
  border-radius: 6px 6px 0 0;
  font-size: 7px;
}

.vehicle-list.mode-compact {
  gap: 0.5px;
}

.vehicle-list.mode-compact .vehicle-row {
  grid-template-columns: var(--compact-columns);
  min-height: 55px;
  border-bottom-color: #e8ebef;
  box-shadow: none;
}

.mode-compact .select-cell {
  display: grid;
  place-items: center;
}

.mode-compact .vehicle-main {
  display: contents;
}

.mode-compact .vehicle-thumb {
  align-self: center;
  width: 89px;
  height: 40px;
  object-fit: cover;
  border-radius: 5px;
}

.mode-compact .vehicle-identity {
  align-self: center;
}

.mode-compact .vehicle-identity h3 {
  font-size: 10px;
}

.mode-compact .vehicle-model {
  margin-top: 1px;
  font-size: 8px;
}

.mode-compact .vehicle-tags {
  gap: 5px;
  margin-top: 4px;
}

.mode-compact .vehicle-tags span {
  max-width: 67px;
  padding: 3px 7px;
  font-size: 5.5px;
}

.mode-compact .vehicle-cell {
  align-self: center;
  padding-right: 3px;
  font-size: 7px;
}

.mode-compact .year-cell,
.mode-compact .mileage-cell {
  display: block;
}

.mode-compact .location-cell {
  gap: 4px;
}

.mode-compact .location-cell > svg {
  width: 12px;
  height: 12px;
}

.mode-compact .location-copy strong {
  font-size: 7px;
}

.mode-compact .location-copy small {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 3px;
  color: #788391;
  font-family: var(--listing-sans);
  font-size: 5.5px;
  white-space: nowrap;
}

.country-flag {
  display: inline-block;
  flex: 0 0 8px;
  width: 8px;
  height: 8px;
  overflow: hidden;
  border: 1px solid rgba(16, 32, 57, 0.08);
  border-radius: 50%;
}

.flag-fr {
  background: linear-gradient(90deg, #1f4ca4 0 33%, #fff 33% 66%, #e53935 66%);
}

.flag-mc {
  background: linear-gradient(#e53935 0 50%, #fff 50%);
}

.flag-ch {
  background: #e3312d;
  box-shadow: inset 0 0 0 2px #e3312d;
}

.flag-ae {
  background:
    linear-gradient(90deg, #e53935 0 27%, transparent 27%),
    linear-gradient(#27955c 0 33%, #fff 33% 66%, #171717 66%);
}

.flag-gb {
  background: linear-gradient(135deg, #24448d 0 43%, #fff 43% 48%, #d33 48% 55%, #fff 55% 60%, #24448d 60%);
}

.mode-compact .value-cell {
  font-size: 8px;
}

.mode-compact .status-pill {
  min-height: 18px;
  padding-inline: 7px;
  font-size: 5.5px;
}

.mode-compact .insurance-cell {
  display: flex;
  align-items: flex-start;
  gap: 4px;
}

.mode-compact .insurance-cell > svg {
  flex: 0 0 13px;
  width: 13px;
  height: 13px;
}

.insurance-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.insurance-copy strong {
  overflow: hidden;
  font-size: 7px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.insurance-copy small {
  margin-top: 1px;
  overflow: hidden;
  color: #7f8995;
  font-size: 5.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mode-compact .maintenance-cell {
  gap: 5px;
}

.mode-compact .maintenance-cell > svg {
  width: 13px;
  height: 13px;
}

.mode-compact .maintenance-copy strong {
  font-size: 7px;
}

.mode-compact .maintenance-copy small {
  margin-top: 1px;
  font-size: 5.5px;
}

.mode-compact .maintenance-service {
  display: block;
}

.mode-compact .documents-cell {
  display: flex;
  align-items: center;
  gap: 6px;
}

.mode-compact .documents-cell span {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.mode-compact .documents-cell svg {
  width: 12px;
  height: 12px;
}

.mode-compact .documents-cell b {
  font-size: 6px;
  font-weight: 500;
}

.mode-compact .row-menu-button {
  width: 28px;
  height: 28px;
}

.mode-compact .row-chevron {
  width: 17px;
}

.listing-view-compact .listing-footer {
  min-height: 29px;
}

.car-dialog {
  width: min(620px, calc(100% - 32px));
  padding: 0;
  overflow: visible;
  color: var(--listing-ink);
  background: transparent;
  border: 0;
}

.car-dialog::backdrop {
  background: rgba(8, 17, 30, 0.57);
  backdrop-filter: blur(4px);
}

.car-dialog[open] {
  animation: listing-dialog-in 250ms cubic-bezier(0.2, 0.72, 0.2, 1);
}

.car-dialog-card {
  padding: 27px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 28px 80px rgba(5, 13, 25, 0.35);
}

.car-dialog-card header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.car-dialog-card header p {
  margin: 0 0 5px;
  color: var(--listing-muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.car-dialog-card h2 {
  margin: 0;
  font-family: var(--listing-sans);
  font-size: 30px;
  letter-spacing: -0.04em;
}

.car-dialog-card header button {
  width: 40px;
  height: 40px;
  padding: 0;
  background: var(--listing-soft);
  border-radius: 50%;
}

.car-dialog-card header button svg {
  width: 18px;
  height: 18px;
}

.car-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 25px;
}

.car-form-grid label {
  display: grid;
  gap: 7px;
  color: var(--listing-text);
  font-size: 11px;
  font-weight: 600;
}

.car-form-grid input {
  width: 100%;
  height: 45px;
  padding: 0 12px;
  background: #fff;
  border: 1px solid #dfe3e8;
  border-radius: 7px;
  outline: none;
  font-size: 13px;
  transition:
    border-color var(--listing-ease),
    box-shadow var(--listing-ease);
}

.car-form-grid input:focus {
  border-color: var(--listing-ink);
  box-shadow: 0 0 0 3px rgba(16, 32, 57, 0.09);
}

.car-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 25px;
}

.car-dialog-actions button {
  min-height: 44px;
  padding: 0 18px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 600;
}

.dialog-secondary {
  background: #fff;
  border: 1px solid #dfe3e8 !important;
}

.dialog-primary {
  gap: 8px;
  color: #fff;
  background: var(--listing-ink);
}

.dialog-primary svg {
  width: 16px;
  height: 16px;
}

.listing-toast {
  position: fixed;
  z-index: 100;
  right: 20px;
  bottom: 20px;
  max-width: min(340px, calc(100% - 40px));
  padding: 12px 16px;
  color: #fff;
  background: var(--listing-ink);
  border-radius: 8px;
  box-shadow: 0 14px 35px rgba(16, 32, 57, 0.2);
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition:
    opacity var(--listing-ease),
    transform var(--listing-ease);
}

.listing-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes listing-dialog-in {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 980px) {
  .listing-topbar-inner {
    grid-template-columns: 1fr auto;
  }

  .listing-nav {
    display: none;
  }

  .listing-toolbar {
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
  }

  .listing-view-switcher {
    flex-basis: 39px;
    align-self: center;
  }

  .listing-filters {
    width: 100%;
  }

  :root {
    --listing-columns: minmax(250px, 1fr) 58px 98px 88px 92px 102px 118px 40px 22px;
  }
}

@media (max-width: 759px) {
  .listing-shell {
    width: calc(100% - 32px);
  }

  .listing-topbar {
    height: 64px;
  }

  body.listing-view-compact .listing-topbar {
    height: 64px;
  }

  .listing-monogram {
    width: 39px;
    height: 42px;
    font-size: 31px;
    line-height: 40px;
  }

  .listing-monogram span:last-child {
    top: 7px;
    left: 18px;
    font-size: 24px;
  }

  .listing-brand-divider {
    height: 32px;
    margin-right: 10px;
  }

  .listing-brand-copy strong {
    font-size: 12px;
  }

  .listing-brand-copy small {
    font-size: 4.3px;
  }

  .top-add-button {
    min-width: 42px;
    width: 42px;
    height: 42px;
    padding: 0;
    border-radius: 50%;
  }

  .top-add-button span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }

  .round-button {
    width: 42px;
    height: 42px;
  }

  .listing-actions .round-button:first-of-type {
    display: none;
  }

  .listing-main {
    min-height: calc(100dvh - 64px);
  }

  body.listing-view-compact .listing-main {
    min-height: calc(100dvh - 64px);
  }

  .listing-hero {
    align-items: stretch;
    flex-direction: column;
    min-height: 0;
    padding-block: 28px 22px;
    gap: 22px;
  }

  .listing-title-wrap {
    display: grid;
    grid-template-columns: auto 1fr auto;
    row-gap: 16px;
  }

  .listing-title-icon {
    grid-row: 1;
    width: 44px;
    height: 44px;
    margin-right: 12px;
  }

  .listing-title-wrap h1 {
    grid-row: 1;
    font-size: 39px;
  }

  .hero-count {
    grid-row: 1;
    margin-left: 12px;
  }

  .hero-count strong {
    width: 33px;
    height: 33px;
    font-size: 20px;
  }

  .hero-count span {
    display: none;
  }

  .hero-separator {
    display: none;
  }

  .hero-value {
    grid-column: 1 / -1;
    grid-row: 2;
    padding-left: 56px;
  }

  .gold-button {
    width: 100%;
    min-height: 48px;
  }

  .listing-toolbar {
    padding: 10px;
  }

  .listing-view-switcher {
    width: min(100%, 330px);
    grid-template-columns: repeat(3, 1fr);
  }

  .listing-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  body.listing-view-compact .listing-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .search-field {
    grid-column: 1 / -1;
    height: 43px;
  }

  .listing-filters select {
    height: 43px;
    font-size: 12px;
  }

  .listing-filters label > span {
    font-size: 10px;
  }

  .vehicle-table {
    margin-top: 18px;
  }

  .vehicle-table-head {
    display: none;
  }

  .select-cell {
    display: none !important;
  }

  .vehicle-list,
  .vehicle-list.mode-mosaic {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .vehicle-row,
  .mode-mosaic .vehicle-row,
  .vehicle-list.mode-compact .vehicle-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    min-height: 0;
    padding-bottom: 13px;
    overflow: visible;
    background: #fff;
    border: 1px solid var(--listing-line);
    border-radius: 10px;
    box-shadow: 0 7px 22px rgba(22, 32, 46, 0.055);
  }

  .vehicle-main,
  .mode-mosaic .vehicle-main,
  .mode-compact .vehicle-main {
    display: grid;
    grid-template-columns: 124px minmax(0, 1fr);
    grid-column: 1 / -1;
    gap: 13px;
    padding: 10px;
  }

  .vehicle-thumb,
  .mode-mosaic .vehicle-thumb,
  .mode-compact .vehicle-thumb {
    width: 124px;
    height: 74px;
    aspect-ratio: auto;
    border-radius: 7px;
  }

  .mode-mosaic .vehicle-identity {
    padding: 0;
  }

  .vehicle-identity h3,
  .mode-mosaic .vehicle-identity h3 {
    font-size: 16px;
  }

  .vehicle-model,
  .mode-mosaic .vehicle-model {
    font-size: 11px;
  }

  .vehicle-tags,
  .mode-compact .vehicle-tags {
    position: static;
    display: flex;
    margin-top: 7px;
  }

  .vehicle-brand-logo {
    display: none !important;
  }

  .vehicle-cell,
  .mode-mosaic .vehicle-cell {
    position: relative;
    min-height: 51px;
    padding: 21px 13px 8px;
    font-size: 11px;
  }

  .vehicle-cell::before,
  .mode-mosaic .vehicle-cell::before {
    position: absolute;
    top: 6px;
    left: 13px;
    color: var(--listing-muted);
    content: attr(data-label);
    font-family: var(--listing-sans);
    font-size: 7px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }

  .value-cell {
    font-size: 12px;
  }

  .mode-mosaic .value-cell {
    position: relative;
    right: auto;
    bottom: auto;
    min-height: 51px;
    padding: 21px 13px 8px;
    color: var(--listing-ink);
    font-family: var(--listing-sans);
    font-size: 12px;
  }

  .mode-mosaic .year-cell,
  .mode-mosaic .mileage-cell {
    display: block;
  }

  .mode-mosaic .location-cell {
    display: flex;
  }

  .mode-mosaic .year-cell svg,
  .mode-mosaic .mileage-cell svg {
    display: none;
  }

  .mode-mosaic .year-cell::after,
  .mode-mosaic .location-cell::after,
  .mode-mosaic .mileage-cell::after {
    content: none;
  }

  .maintenance-cell,
  .mode-mosaic .maintenance-cell {
    grid-column: 1 / -1;
  }

  .row-menu-wrap,
  .mode-mosaic .row-menu-wrap {
    position: absolute;
    top: 8px;
    right: 8px;
  }

  .row-chevron,
  .mode-mosaic .row-chevron {
    position: absolute;
    right: 7px;
    bottom: 8px;
  }

  .listing-footer {
    min-height: 76px;
  }

  body.listing-view-compact .top-add-button {
    min-width: 42px;
    width: 42px;
    height: 42px;
  }

  body.listing-view-compact .round-button {
    width: 42px;
    height: 42px;
  }

  body.listing-view-compact .listing-toolbar {
    min-height: 0;
    margin-top: 0;
    gap: 8px;
    padding: 10px;
  }

  body.listing-view-compact .listing-view-switcher {
    flex: 0 0 auto;
    width: min(100%, 330px);
    height: auto;
    grid-template-columns: repeat(3, 1fr);
  }

  body.listing-view-compact .listing-view-switcher button {
    min-height: 42px;
    padding-inline: 10px;
    font-size: 10px;
  }

  body.listing-view-compact .listing-toolbar .listing-filters > label {
    grid-column: auto;
  }

  body.listing-view-compact .listing-toolbar .listing-filters > .search-field {
    grid-column: 1 / -1;
  }

  body.listing-view-compact .listing-filters label > span {
    font-size: 10px;
  }

  body.listing-view-compact .listing-filters select,
  body.listing-view-compact .search-field {
    height: 43px;
    font-size: 12px;
  }

  body.listing-view-compact .vehicle-table.table-compact .compact-head {
    display: none;
  }

  body.listing-view-compact .vehicle-list.mode-compact {
    gap: 14px;
  }

  body.listing-view-compact .mode-compact .vehicle-identity h3 {
    font-size: 16px;
  }

  body.listing-view-compact .mode-compact .vehicle-model {
    font-size: 11px;
  }

  body.listing-view-compact .mode-compact .vehicle-cell {
    min-height: 51px;
    padding: 21px 13px 8px;
    font-size: 11px;
  }

  body.listing-view-compact .mode-compact .value-cell {
    font-size: 12px;
  }

  body.listing-view-compact .mode-compact .status-pill {
    min-height: 22px;
    font-size: 8px;
  }

  body.listing-view-compact .mode-compact .insurance-copy strong,
  body.listing-view-compact .mode-compact .maintenance-copy strong {
    font-size: 10px;
  }

  body.listing-view-compact .mode-compact .insurance-copy small,
  body.listing-view-compact .mode-compact .maintenance-copy small {
    font-size: 8px;
  }

  body.listing-view-compact .mode-compact .documents-cell b {
    font-size: 9px;
  }

  body.listing-view-compact .listing-footer {
    min-height: 76px;
  }
}

@media (max-width: 460px) {
  .listing-brand-copy {
    display: none;
  }

  .listing-brand-divider {
    display: none;
  }

  .listing-title-wrap {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .listing-title-wrap h1 {
    font-size: 34px;
  }

  .hero-value {
    padding-left: 0;
  }

  .vehicle-main,
  .mode-mosaic .vehicle-main,
  .mode-compact .vehicle-main {
    grid-template-columns: 108px minmax(0, 1fr);
  }

  .vehicle-thumb,
  .mode-mosaic .vehicle-thumb,
  .mode-compact .vehicle-thumb {
    width: 108px;
    height: 69px;
  }

  .vehicle-tags span {
    padding-inline: 7px;
  }

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

  .car-dialog-card {
    max-height: calc(100dvh - 30px);
    padding: 20px;
    overflow-y: auto;
  }

  .car-dialog-actions {
    align-items: stretch;
    flex-direction: column-reverse;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
