/* The HoLT discount directory. The hard borders and offset shadows echo the
   professionals directory; the wider cards make room for an 850:400 image and
   the offer plus claim instructions without turning either into a teaser. */

.discount-controls {
  background: var(--yellow);
  padding: 38px 0 42px;
}

.discount-search {
  max-width: 760px;
  margin: 0 auto 28px;
}

.discount-search > label {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 9px;
}

.discount-search-row {
  display: flex;
  align-items: stretch;
  gap: 10px;
}

.discount-search input[type="search"] {
  min-width: 0;
  width: 100%;
  font: 16px var(--font-mono);
  padding: 14px 17px;
  border: 3px solid var(--black);
  border-radius: 0;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 5px 5px 0 var(--black);
  appearance: none;
}

.discount-search input[type="search"]:focus {
  outline: 0;
  box-shadow: 7px 7px 0 var(--pink);
  transform: translate(-1px, -1px);
}

.discount-search button,
.discount-btn {
  min-height: 48px;
  border: 3px solid var(--black);
  border-radius: 0;
  background: var(--black);
  color: var(--paper);
  box-shadow: 4px 4px 0 var(--pink);
  padding: 11px 20px;
  font: 700 14px var(--font-body);
  text-decoration: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform .1s, box-shadow .1s;
}

.discount-search button:hover,
.discount-btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--pink);
}

.discount-search button:focus-visible,
.discount-btn:focus-visible,
.discount-chip:focus-visible {
  outline: 3px solid var(--pink);
  outline-offset: 3px;
}

.discount-browse-label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .14em;
  text-align: center;
  text-transform: uppercase;
  margin: 0 0 15px;
}

.discount-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.discount-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 14px;
  border: 2px solid var(--black);
  background: var(--paper);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  transition: transform .1s, box-shadow .1s, background .1s, color .1s;
}

.discount-chip span {
  font-family: var(--font-mono);
  font-size: 12px;
  opacity: .58;
}

.discount-chip:hover {
  background: var(--pink-soft);
  box-shadow: 3px 3px 0 var(--black);
  transform: translate(-1px, -1px);
}

.discount-chip[aria-pressed="true"] {
  background: var(--black);
  color: var(--paper);
}

.discount-results {
  padding: 46px 0 76px;
}

.discount-count,
.discount-state {
  color: var(--ink-mid);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .07em;
  text-transform: uppercase;
  margin: 0 0 26px;
}

.discount-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 34px 28px;
  align-items: start;
}

.discount-card {
  border: 3px solid var(--black);
  background: var(--paper);
  box-shadow: 6px 6px 0 var(--black);
  overflow: hidden;
}

/* The source artwork is normalized to this exact canvas during import. Width
   and height attributes reserve the same ratio before the image is loaded. */
.discount-card-img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 850 / 400;
  object-fit: contain;
  background: var(--paper);
  border-bottom: 3px solid var(--black);
}

.discount-card-img--none {
  background: var(--pink-soft);
  display: flex;
  align-items: center;
  justify-content: center;
}

.discount-card-img--none span {
  font-family: var(--font-display);
  font-size: clamp(48px, 9vw, 88px);
  font-weight: 800;
  line-height: 1;
}

.discount-card-body {
  padding: 20px clamp(18px, 3vw, 26px) 25px;
}

.discount-category {
  display: inline-block;
  background: var(--yellow);
  border: 2px solid var(--black);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  line-height: 1.3;
  text-transform: uppercase;
  margin: 0 0 13px;
  padding: 4px 8px;
}

.discount-card h3 {
  font-family: var(--font-display);
  font-size: clamp(21px, 2.5vw, 28px);
  font-weight: 800;
  letter-spacing: -.01em;
  line-height: 1.15;
  text-transform: uppercase;
  margin: 0 0 7px;
}

.discount-member {
  color: var(--ink-mid);
  font-family: var(--font-mono);
  font-size: 12px;
  margin: 0 0 20px;
}

.discount-copy {
  border-top: 2px solid var(--rule);
  padding-top: 15px;
  margin-top: 15px;
}

.discount-copy h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .13em;
  text-transform: uppercase;
  margin: 0 0 8px;
}

.discount-copy p {
  font-size: 15px;
  line-height: 1.55;
  margin: 0 0 10px;
}

.discount-copy p:last-child {
  margin-bottom: 0;
}

.discount-copy .discount-route {
  display: inline-block;
  border-bottom: 3px solid var(--yellow);
  font-weight: 700;
  margin-bottom: 10px;
}

.discount-action {
  margin: 22px 0 0;
}

.discount-empty,
.discount-state {
  padding: 65px 20px;
  text-align: center;
}

.discount-empty > p {
  margin: 0 0 20px;
}

.discount-submit {
  border-top: 2px solid var(--rule);
  font-family: var(--font-mono);
  font-size: 13px;
  margin: 44px 0 0;
  padding-top: 24px;
}

.discount-submit a {
  color: var(--ink);
  text-underline-offset: 3px;
}

.site-foot .powered {
  font-size: 13px;
  margin: 14px 0 0;
  opacity: .85;
}

.site-foot .powered a {
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (max-width: 760px) {
  .discount-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .discount-search-row {
    display: grid;
  }
  .discount-search button {
    width: 100%;
  }
  .discount-card-body {
    padding: 18px 17px 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .discount-search input,
  .discount-search button,
  .discount-btn,
  .discount-chip {
    transition: none;
  }
}
