@font-face {
  font-family: Manrope;
  src: url("/fonts/manrope-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

.market {
  --ink: #182b46;
  --muted: #53657c;
  --blue: #0b4da2;
  --blue-dark: #082c63;
  --line: #d7e0eb;
  --paper: oklch(97.2% 0.008 85);
  --accent: #ff8a24;
  background: var(--paper);
  color: var(--ink);
  min-height: 100dvh;
  margin: 0;
  font-family: "Manrope", system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.55;
}
.market *,
.market *::before,
.market *::after {
  box-sizing: border-box;
}
.market :is(h1, h2, h3, h4, p, dl) {
  margin: 0;
}
.market :where(a) {
  text-decoration: none;
  color: inherit;
}
.market :where(button) {
  font: inherit;
  border: 0;
}
.market h1,
.market h2,
.market h3,
.market h4 {
  letter-spacing: -0.04em;
  line-height: 1.15;
  font-weight: 800;
}
.market a:focus-visible,
.market button:focus-visible,
.market input:focus-visible,
.market select:focus-visible {
  outline: 2px solid #2768c3;
  outline-offset: 3px;
}
.market-wrap {
  width: min(100% - 2rem, 72rem);
  margin-inline: auto;
}
.market-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.market-header-inner,
.market-footer .market-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 68px;
}
.market-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 1.06rem;
  font-weight: 800;
  white-space: nowrap;
  letter-spacing: -0.04em;
}
.market-brand img {
  object-fit: contain;
}
.market-brand span span {
  color: var(--blue);
}
.market-header nav {
  display: flex;
  align-items: center;
  gap: clamp(0.8rem, 4vw, 2.5rem);
}
.market-nav-link {
  color: var(--blue);
  font-weight: 750;
}
.market-agency-link {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  font-weight: 650;
}
.market-skip {
  position: absolute;
  transform: translateY(-150%);
  background: #fff;
  padding: 0.75rem;
  z-index: 10;
}
.market-skip:focus {
  transform: translateY(0);
}
.market-hero {
  padding: clamp(1.75rem, 4.2vw, 3rem) 0 0;
}
.market-hero-panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: 22px;
  padding: clamp(1.5rem, 5vw, 3.5rem);
  padding-bottom: clamp(2.6rem, 5vw, 4.25rem);
  background: var(--blue-dark);
  color: #fff;
}
.market-hero-panel::before,
.market-hero-panel::after {
  position: absolute;
  content: "";
  pointer-events: none;
  z-index: -1;
  width: clamp(16rem, 43vw, 34rem);
  aspect-ratio: 1;
  border: 1px solid #bcd4fa30;
  border-radius: 50%;
  right: -2rem;
  top: -82%;
  box-shadow:
    0 0 0 36px #a7c5f214,
    0 0 0 83px #a7c5f20e;
}
.market-hero-panel::after {
  width: clamp(7rem, 16vw, 12rem);
  top: auto;
  bottom: -86px;
  right: 15%;
  border-color: #ff8a2460;
  box-shadow: none;
}
.market-hero h1 {
  font-size: clamp(2rem, 5.8vw, 4rem);
  max-width: 16ch;
  text-wrap: balance;
  margin: 0.5rem 0 0.7rem;
}
.market-hero h1 span {
  color: #ffc183;
}
.market-hero-panel > p:not(.market-eyebrow) {
  color: #e0ebfb;
  max-width: 37rem;
  font-size: clamp(0.93rem, 2vw, 1.08rem);
}
.market-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.52rem;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
}
.market-hero .market-eyebrow {
  color: #d5e5fd;
}
.market-eyebrow::before {
  content: "";
  width: 1.2rem;
  height: 2px;
  flex: none;
  background: var(--accent);
}
.market-search {
  position: relative;
  display: grid;
  grid-template-columns: 1.35fr 1fr auto;
  align-items: end;
  gap: 0.75rem;
  background: white;
  border: 1px solid var(--line);
  padding: 0.85rem;
  border-radius: 16px;
  margin: -1rem 1.25rem 0;
  box-shadow: 0 8px 24px #1028500c;
}
.market-form-label {
  display: block;
  min-width: 0;
  color: var(--ink);
  font-weight: 700;
  font-size: 0.79rem;
}
.market-field {
  display: flex;
  align-items: center;
  gap: 0.52rem;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 9px;
  min-height: 45px;
  padding-inline: 0.6rem;
  margin-top: 0.28rem;
}
.market-field svg {
  flex: none;
  color: var(--blue);
}
.market-field input,
.market-field select {
  min-width: 0;
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 0.89rem;
  font-weight: 500;
  padding: 0.6rem 0;
}
.market-field input::placeholder {
  color: #5d6c7e;
}
.market-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.52rem;
  min-height: 45px;
  border-radius: 9px;
  background: var(--blue);
  color: #fff;
  padding: 0.62rem 1rem;
  font-weight: 750;
  cursor: pointer;
  text-align: center;
}
.market-button:hover {
  background: var(--blue-dark);
}
.market-button-outline {
  color: var(--blue);
  background: #fff;
  border: 1px solid var(--line);
}
.market-button-outline:hover {
  color: #fff;
}
.market-list {
  padding-block: 2.65rem 3.6rem;
}
.market-list-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.1rem;
}
.market-list-header h2 {
  font-size: clamp(1.5rem, 3vw, 2.15rem);
}
.market-list-header p {
  color: var(--muted);
  font-size: 0.85rem;
}
.market-reset,
.market-back {
  display: inline-flex;
  gap: 0.42rem;
  align-items: center;
  color: var(--blue);
  font-weight: 700;
  font-size: 0.86rem;
}
.market-reset:hover,
.market-back:hover {
  text-decoration: underline;
}
.market-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.market-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
.market-card:hover {
  border-color: #89a9d4;
  box-shadow: 0 12px 26px #1028500e;
}
.market-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.market-card-link:focus-visible {
  outline-offset: -3px !important;
}
.market-model-image {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 0.45rem;
  min-height: 145px;
  padding: 1rem;
  background: #edf3fc;
  color: var(--blue-dark);
}
.market-model-image img {
  width: 82px;
  height: 62px;
  object-fit: contain;
}
.market-model-image span {
  font-size: 0.7rem;
  color: var(--muted);
}
.market-model-image-large {
  min-height: 190px;
  border-radius: 12px;
}
.market-model-image-large img {
  width: 104px;
  height: 80px;
}
.market-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 1rem;
}
.market-make {
  color: var(--blue);
  font-size: 0.76rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.market-card h3 {
  font-size: 1.35rem;
  overflow-wrap: anywhere;
}
.market-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.85rem;
  font-size: 0.77rem;
  color: var(--muted);
  margin: 0.2rem 0 0.4rem;
  padding: 0;
  list-style: none;
}
.market-specs li,
.market-location,
.market-count {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.market-card-price {
  margin-top: auto;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.55rem;
}
.market-card-price strong {
  font-size: 1.08rem;
  white-space: nowrap;
}
.market-muted,
.market-card-price small {
  color: var(--muted);
  font-size: 0.74rem;
}
.market-count {
  color: var(--muted);
  font-size: 0.76rem;
  white-space: nowrap;
}
.market-card-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--blue);
  border-top: 1px solid var(--line);
  padding-top: 0.72rem;
  margin-top: 0.32rem;
  font-weight: 750;
  font-size: 0.84rem;
}
.market-empty {
  padding: 2.25rem 1.25rem;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}
.market-empty > svg {
  margin: 0 auto 0.55rem;
  color: var(--blue);
}
.market-empty h2 {
  font-size: 1.36rem;
}
.market-empty p {
  margin: 0.55rem 0 0.9rem;
  color: var(--muted);
}
.market-state {
  padding: 2.75rem 0;
}
.market-pages {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.4rem;
  font-size: 0.83rem;
  color: var(--muted);
}
.market-footer {
  background: #fff;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.78rem;
}
.market-footer .market-brand {
  color: var(--ink);
  font-size: 0.9rem;
}
.market-detail {
  padding-block: 1.45rem 3.2rem;
}
.market-detail-heading {
  display: grid;
  align-items: center;
  grid-template-columns: 1.15fr 1fr;
  gap: 1rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 17px;
  margin: 0.8rem 0 2rem;
  padding: clamp(1rem, 3vw, 1.5rem);
}
.market-detail-heading h1 {
  font-size: clamp(1.75rem, 5vw, 3.15rem);
  margin: 0.4rem 0;
  overflow-wrap: anywhere;
}
.market-detail-heading p {
  color: var(--muted);
  margin: 0.5rem 0;
}
.market-offer-controls {
  display: grid;
  grid-template-columns: minmax(0, 13rem) minmax(0, 13rem) auto;
  gap: 0.65rem;
  align-items: end;
  margin: 0 0 1rem;
}
.market-offer-list {
  display: grid;
  gap: 0.85rem;
}
.market-offer {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: clamp(0.85rem, 2.7vw, 1.25rem);
}
.market-offer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.8rem;
  padding-bottom: 0.75rem;
}
.market-agency-id {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}
.market-agency-id h3 {
  font-size: 1.16rem;
  overflow-wrap: anywhere;
}
.market-agency-logo {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex: none;
  border-radius: 10px;
  background: #edf3fc;
  color: var(--blue);
  font-weight: 800;
}
.market-agency-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: inherit;
}
.market-offer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.market-offer-actions a {
  font-size: 0.82rem;
}
.market-location {
  color: var(--muted);
  font-size: 0.8rem;
}
.market-variant {
  padding-block: 0.75rem 0.1rem;
  border-top: 1px solid var(--line);
}
.market-variant + .market-variant {
  margin-top: 0.65rem;
}
.market-variant > p {
  color: var(--muted);
  font-size: 0.8rem;
  margin-bottom: 0.5rem;
}
.market-prices {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem;
}
.market-prices > div {
  display: grid;
  gap: 0.3rem;
  min-width: 0;
  padding: 0.65rem;
  border-radius: 9px;
  background: var(--paper);
}
.market-prices dt {
  font-size: 0.77rem;
  color: var(--muted);
}
.market-prices dd {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 800;
  overflow-wrap: anywhere;
}
.market-prices dd.market-muted {
  font-size: 0.72rem;
  font-weight: 500;
}
@media (max-width: 820px) {
  .market-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 580px) {
  .market-header-inner {
    min-height: 59px;
  }
  .market-header .market-brand {
    font-size: 0.89rem;
    gap: 0.16rem;
  }
  .market-header .market-brand img {
    width: 42px;
    height: 27px;
  }
  .market-header nav {
    font-size: 0.79rem;
    gap: 0.65rem;
  }
  .market-agency-link svg {
    display: none;
  }
  .market-search {
    grid-template-columns: minmax(0, 1fr);
    margin-inline: 0.55rem;
  }
  .market-hero-panel {
    border-radius: 16px;
  }
  .market-grid,
  .market-detail-heading {
    grid-template-columns: minmax(0, 1fr);
  }
  .market-list {
    padding-top: 1.75rem;
  }
  .market-list-header {
    align-items: start;
  }
  .market-offer-controls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .market-offer-controls .market-button {
    grid-column: 1 / -1;
  }
  .market-footer .market-wrap {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.3rem;
    justify-content: center;
    padding-block: 0.7rem;
  }
  .market-prices > div {
    padding: 0.5rem 0.4rem;
  }
}
@media (max-width: 355px) {
  .market-nav-link {
    display: none;
  }
  .market-wrap {
    width: calc(100% - 1.25rem);
  }
}
@media (prefers-reduced-motion: reduce) {
  .market-card {
    transition: none;
  }
}
