/* =========================================================
   BRAND MODEL SEARCH
   Four-way quick search:
   WEB · REVERB · EBAY SOLD · OFFERUP
   ========================================================= */

.file-head-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.file-head-sep {
  color: var(--gold);
  font-size: 7px;
  line-height: 1;
}

.model-finder {
  max-width: 1050px;
  margin: 0 auto;
  padding: 0 22px 46px;
  scroll-margin-top: 18px;
}

.model-finder-inner {
  display: grid;
  grid-template-columns: minmax(190px, 0.75fr) minmax(0, 1.65fr);
  align-items: end;
  gap: 32px;

  padding: 24px 26px;

  background: var(--cream);
  border: 1px solid var(--line);
  border-top: 4px solid var(--gold);
}

.model-finder-copy .label {
  margin: 0 0 7px;
}

.model-finder-copy h2 {
  margin: 0 0 7px;
  font:
    italic 25px/1.05 Georgia,
    serif;
}

.model-finder-copy p:last-child {
  margin: 0;
  color: #6d6558;
  font-size: 13px;
  line-height: 1.45;
}

/*
 * Input gets the first row.
 * Four equal destination buttons get the second row.
 * This keeps the finder clean rather than squeezing five controls
 * into a single narrow line.
 */
.model-finder-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
  align-items: center;
}

.model-search-input {
  grid-column: 1 / -1;

  min-width: 0;
  width: 100%;
  height: 46px;
  padding: 0 14px;

  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0;

  color: var(--ink);
  font:
    15px Arial,
    Helvetica,
    sans-serif;
}

.model-search-input:focus {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.model-search-button {
  width: 100%;
  height: 46px;
  padding: 0 10px;

  border: 0;
  background: var(--ink);
  color: #fff;

  cursor: pointer;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.07em;
  white-space: nowrap;
}

.model-search-button:hover,
.model-search-button:focus-visible {
  transform: translateY(-1px);
}

.model-search-reverb {
  background: var(--gold);
  color: var(--ink);
}

/* Green has meaning here: SOLD evidence, not another asking-price market. */
.model-search-ebay {
  background: var(--green);
  color: #fff;
}

/* Keep OfferUp visually useful without adding another brand color. */
.model-search-offerup {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--ink);
}

.model-search-status {
  grid-column: 1 / -1;
  min-height: 0;

  color: #6d6558;
  font-size: 11px;
  line-height: 1.3;
}

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

@media (max-width: 780px) {
  .model-finder-inner {
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 18px;
  }

  /* Handheld/tablet: clean 2 × 2 search-button grid. */
  .model-finder-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .model-search-input {
    grid-column: 1 / -1;
  }
}

@media (max-width: 480px) {
  .model-finder {
    padding-bottom: 34px;
  }

  .model-finder-inner {
    padding: 20px;
  }

  .model-search-button {
    padding-right: 8px;
    padding-left: 8px;
    font-size: 8.5px;
  }

  /* Keep the two header navigation links comfortably separated on handheld. */
  .file-head-links {
    gap: 10px;
  }
}
.file-head-links .file-head-sep {
  display: inline-block !important;
}
