.offer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr));
  gap: 16px;
}

.offer-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid #e6e1d8;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(24, 52, 73, 0.06);
  cursor: default;
  transition: transform .22s ease, box-shadow .22s ease;
}

.offer-card-hit {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  color: inherit;
  text-align: left;
  text-decoration: none;
}

a.offer-card-hit,
button.offer-card-hit {
  cursor: pointer;
}

button.offer-card-hit {
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  font: inherit;
}

.offer-card:has(a.offer-card-hit):hover,
.offer-card:has(button.offer-card-hit):hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(24, 52, 73, 0.1);
}

.offer-card-hit:focus-visible {
  outline: 3px solid #0C67B9;
  outline-offset: -3px;
}

.offer-logo {
  position: relative;
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #f4f1ea;
}

.offer-logo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.offer-logo-mark {
  color: #1c2b3a;
  font-size: 40px;
  font-weight: 800;
  line-height: 1;
}

.offer-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  padding: 14px 14px 16px;
}

.offer-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.offer-title {
  min-width: 0;
  flex: 1;
  margin: 0;
  color: #1c2b3a;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.3;
}

.offer-genres {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px;
  max-width: 46%;
}

.offer-genre {
  max-width: 9rem;
  padding: 3px 8px;
  overflow: hidden;
  border-radius: 6px;
  background: #1c2b3a;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.offer-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  max-width: 100%;
  padding: 4px 10px;
  border-radius: 999px;
  background: #fde7f0;
  color: #b4235a;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.3;
}

.offer-pill span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.offer-pill svg,
.offer-address svg {
  flex-shrink: 0;
}

.offer-address {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin: 0;
  color: #667085;
  font-size: 13px;
  line-height: 1.4;
}

.offer-address span,
.offer-summary {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.offer-summary,
.offer-note {
  margin: 0;
  color: #667085;
  font-size: 13px;
  line-height: 1.45;
}

.offer-note {
  color: #0C67B9;
  font-size: 12px;
  font-weight: 800;
}

@media (prefers-reduced-motion: reduce) {
  .offer-card { transition: none; }
}
