/* ========================================================================== 
   Used motorcycle auction schedule
   ========================================================================== */

.page-auction {
  --auction-primary: #0098dc;
  --auction-accent: #fff03d;
  --auction-text: #454545;
  --auction-label-text: #353535;
  --auction-detail-text: #555555;
  --auction-muted: #a7a7a7;
  --auction-border: #d8d8d8;
  --auction-filter-background: #f2f2f2;
  --auction-content-width: 1060px;

  --page-breadcrumb-top-space: 21.4px;
  --page-breadcrumb-bottom-space: 42.24px;
}

.page-auction .auction-page {
  width: 100%;
  background: #ffffff;
}

/* Navigation path
   ========================================================================== */

.page-auction .auction-breadcrumb {
  width: 100%;
  background: #ffffff;
}

.page-auction .auction-breadcrumb__inner {
  display: flex;
  align-items: flex-start;
  padding-block:
    var(--page-breadcrumb-top-space)
    var(--page-breadcrumb-bottom-space);
}

.page-auction .auction-breadcrumb__list {
  display: flex;
  align-items: center;
  gap: 3px;
  margin: 0;
  padding: 0;
  list-style: none;

  font-family: var(--font-brand-medium);
  font-size: 12px;
  font-weight: 400;
  line-height: 1;
}

.page-auction .auction-breadcrumb__home {
  color: #a6a6a6;
}

.page-auction .auction-breadcrumb__home:hover,
.page-auction .auction-breadcrumb__home:focus-visible {
  color: var(--auction-primary);
}

.page-auction .auction-breadcrumb__home:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 4px;
}

.page-auction .auction-breadcrumb__separator {
  color: #404040;
}

.page-auction .auction-breadcrumb__current {
  color: var(--auction-primary);
}

/* Page heading and filter
   ========================================================================== */

.page-auction .auction-schedule {
  width: 100%;
  padding: 0 0 clamp(76px, 8vh, 96px);
  background: #ffffff;
}

.page-auction .auction-schedule__inner {
  display: flex;
  width: min(
    calc(100% - (var(--container-gutter) * 2)),
    var(--auction-content-width)
  );
  flex-direction: column;
  margin-inline: auto;
}

.page-auction .auction-schedule__title {
  margin: 0;

  color: var(--auction-primary);
  font-family: var(--font-brand);
  font-size: clamp(40px, 2.55vw, 48px);
  font-weight: 400;
  line-height: 1.15;
  text-align: center;
}

.page-auction .auction-filter {
  display: grid;
  min-height: 46px;
  overflow: hidden;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  margin-top: 39px;

  border-radius: 5px;
  background: var(--auction-filter-background);
}

.page-auction .auction-filter__button {
  display: flex;
  min-width: 0;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 7px 8px;

  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #b2b2b2;
  cursor: pointer;

  font-family: var(--font-brand);
  font-size: 14.5px;
  font-weight: 400;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
}

.page-auction .auction-filter__button.is-active {
  background: var(--auction-primary);
  color: #ffffff;
}

.page-auction .auction-filter__button:focus-visible {
  position: relative;
  z-index: 2;
  outline: 3px solid var(--color-focus);
  outline-offset: -4px;
}

.page-auction .auction-filter-select-wrap {
  position: relative;

  display: none;
  width: 100%;
  margin-top: 39px;
}

.page-auction .auction-filter-select {
  display: block;
  width: 100%;
  min-height: 44px;
  box-sizing: border-box;
  appearance: none;
  padding: 9px 44px 9px 12px;

  border: 1px solid #cfd3d7;
  border-radius: 3px;
  background: #ffffff;
  color: var(--auction-primary);
  cursor: pointer;

  font-family: var(--font-brand);
  font-size: 14.5px;
  font-weight: 400;
  line-height: 1.35;
}

.page-auction .auction-filter-select option {
  background: #ffffff;
  color: var(--auction-primary);
  font-family: var(--font-brand);
  font-weight: 400;
}

.page-auction .auction-filter-select:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 2px;
}

.page-auction .auction-filter-select-wrap::after {
  position: absolute;
  top: 50%;
  right: 14px;

  width: 0;
  height: 0;

  border-top: 7px solid var(--auction-primary);
  border-right: 6px solid transparent;
  border-left: 6px solid transparent;

  content: "";
  pointer-events: none;
  transform: translateY(-35%);
}

/* Auction cards
   ========================================================================== */

.page-auction .auction-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 20px;
}

.page-auction .auction-card {
  display: grid;
  width: 100%;
  min-height: 410px;
  box-sizing: border-box;
  grid-template-columns: 168px minmax(0, 1fr);
  align-items: start;
  gap: 20px;
  padding: 30px 60px;

  border: 1px solid var(--auction-border);
  border-radius: 19px;
  background: #ffffff;
}

.page-auction .auction-card[hidden] {
  display: none !important;
}

/* Date block
   ========================================================================== */

.page-auction .auction-date {
  width: 168px;
  overflow: hidden;

  border-radius: 10px;
  background: var(--auction-accent);
  color: var(--auction-primary);
}

.page-auction .auction-date__heading {
  display: flex;
  min-height: 47px;
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 7px 9px;

  background: var(--auction-primary);
  color: #ffffff;

  font-family: var(--font-brand-medium);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.1;
  white-space: nowrap;
}

.page-auction .auction-date__icon {
  display: block;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;

  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.55;
}

.page-auction .auction-date__calendar {
  display: flex;
  min-height: 97px;
  box-sizing: border-box;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6px 8px 7px;
}

.page-auction .auction-date__day {
  display: block;

  font-family: var(--font-brand);
  font-size: 56px;
  font-weight: 400;
  line-height: 0.82;
}

.page-auction .auction-date__month-year {
  display: block;
  margin-top: 9px;

  font-family: var(--font-brand);
  font-size: 15px;
  font-weight: 400;
  line-height: 1;
  white-space: nowrap;
}

/* Card details
   ========================================================================== */

.page-auction .auction-card__content {
  min-width: 0;
}

.page-auction .auction-card__title {
  margin: 1px 0 0;

  color: var(--auction-primary);
  font-family: var(--font-brand);
  font-size: 22px;
  font-weight: 400;
  line-height: 1.2;
}

.page-auction .auction-card__address-row {
  display: grid;
  min-height: 35px;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 18px;
  margin-top: 18px;
}

.page-auction .auction-card__address {
  margin: 0;

  color: var(--auction-text);
  font-family: var(--font-brand-medium);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.35;
}

.page-auction .auction-card__map-link {
  align-self: start;
  margin-top: 6px;

  color: var(--auction-primary);
  font-family: var(--font-text);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.35;
  text-decoration: underline;
  text-underline-offset: 2px;
  white-space: nowrap;
}

.page-auction .auction-card__map-link:hover,
.page-auction .auction-card__map-link:focus-visible {
  color: #0077b5;
}

.page-auction .auction-card__map-link:focus-visible {
  border-radius: 2px;
  outline: 2px solid var(--color-focus);
  outline-offset: 3px;
}

.page-auction .auction-card__divider {
  width: 100%;
  height: 1px;
  margin-top: 1px;

  background: #dddddd;
}

.page-auction .auction-card__details {
  display: flex;
  flex-direction: column;
  gap: 17px;
  margin: 12px 0 0;
}

.page-auction .auction-card__detail-row:first-child {
  margin-bottom: 17px;
}

.page-auction .auction-card__detail-row:nth-child(2) {
  margin-bottom: 2px;
}

.page-auction .auction-card__detail-row {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  align-items: baseline;
  column-gap: 12px;
}

.page-auction .auction-card__detail-row dt,
.page-auction .auction-card__detail-row dd {
  min-width: 0;
  margin: 0;
}

.page-auction .auction-card__detail-row dt {
  color: var(--auction-label-text);
  font-family: var(--font-brand-medium);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.35;
  white-space: nowrap;
}

.page-auction .auction-card__detail-row dd {
  color: var(--auction-detail-text);
  font-family: var(--font-text);
  font-size: 13.775px;
  font-weight: 400;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

/* Empty and error states
   ========================================================================== */

.page-auction .auction-state {
  width: 100%;
  box-sizing: border-box;
  margin: 39px 0 0;
  padding: 28px 24px;

  border: 1px solid var(--auction-border);
  border-radius: 12px;
  background: #f7f7f7;
  color: var(--auction-text);

  font-family: var(--font-text);
  font-size: 17px;
  line-height: 1.5;
  text-align: center;
}

.page-auction .auction-state--error {
  border-color: #e5b5b5;
  background: #fff7f7;
  color: #8b2f2f;
}

.page-auction .auction-state--empty-filter {
  margin-top: 0;
}

.page-auction .auction-state[hidden] {
  display: none !important;
}

/* Responsive
   ========================================================================== */

@media (max-width: 1100px) {
  .page-auction .auction-card {
    padding-inline: 32px;
  }
}

@media (max-width: 900px) {
  .page-auction .auction-schedule__inner {
    width: calc(100% - 36px);
  }

  .page-auction .auction-filter {
    display: none;
  }

  .page-auction .auction-filter-select-wrap {
    display: block;
  }

  .page-auction .auction-card {
    min-height: 0;
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 16px;
    padding: 16px 16px 22px;
  }

  .page-auction .auction-date {
    width: 168px;
  }

  .page-auction .auction-date__heading {
    gap: 8px;
    font-size: 18px;
  }

  .page-auction .auction-date__icon {
    width: 18px;
    height: 18px;
    flex-basis: 18px;
  }

  .page-auction .auction-card__content {
    width: 100%;
  }

  .page-auction .auction-card__title {
    margin-top: 0;
    text-align: center;
  }

  .page-auction .auction-card__address-row {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 9px;
    margin-top: 13px;
  }

  .page-auction .auction-card__address {
    justify-self: start;
    text-align: left;
  }

  .page-auction .auction-card__map-link {
    margin-top: 0;
  }

  .page-auction .auction-card__divider {
    margin-top: 10px;
  }

  .page-auction .auction-card__details {
    gap: 13px;
    margin-top: 10px;
  }

  .page-auction .auction-card__detail-row {
    grid-template-columns: 130px minmax(0, 1fr);
    column-gap: 10px;
  }

  .page-auction .auction-card__detail-row:first-child,
  .page-auction .auction-card__detail-row:nth-child(2) {
    grid-template-columns: 1fr;
    row-gap: 4px;
    margin-bottom: 4px;
  }
}

@media (max-width: 700px) {
  .page-auction {
    --page-breadcrumb-top-space: 18px;
    --page-breadcrumb-bottom-space: 34px;
  }

  .page-auction .auction-schedule {
    padding-bottom: 68px;
  }

  .page-auction .auction-schedule__title {
    font-size: clamp(34px, 9vw, 42px);
  }

  .page-auction .auction-filter-select-wrap {
    margin-top: 39px;
  }

  .page-auction .auction-list {
    margin-top: 20px;
  }

  .page-auction .auction-card {
    gap: 16px;
    padding: 16px 16px 22px;
    border-radius: 16px;
  }

  .page-auction .auction-date {
    width: 168px;
  }

  .page-auction .auction-date__heading {
    font-size: 19px;
  }

  .page-auction .auction-date__icon {
    width: 20px;
    height: 20px;
    flex-basis: 20px;
  }

  .page-auction .auction-card__address-row {
    margin-top: 11px;
  }
}

@media (max-width: 480px) {
  .page-auction .auction-schedule__inner {
    width: calc(100% - 32px);
  }

  .page-auction .auction-filter-select {
    min-height: 43px;
    font-size: 14px;
  }

  .page-auction .auction-card {
    gap: 16px;
    padding: 16px 14px 20px;
  }

  .page-auction .auction-card__title {
    font-size: 22px;
  }

  .page-auction .auction-card__details {
    gap: 12px;
  }

  .page-auction .auction-card__detail-row {
    grid-template-columns: 122px minmax(0, 1fr);
    column-gap: 8px;
  }
}
