/* ─── StadtMAX /offers: list + detail views ───
   Extends /shared/app-fallback.css tokens. The list is a Saturday-feed card
   grid: image-led white cards on apricot, discount badge as supporting
   evidence, neighborhood meta row. Scarlet appears only on badges and the
   sticky download CTA. */

/* ─── Loading / skeleton ─── */
.skeleton-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 20px 96px;
}
.skeleton-card {
  border-radius: var(--radius-2xl);
  background: var(--apricot-soft);
  height: 320px;
}
@media (min-width: 768px) {
  .skeleton-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1120px) {
  .skeleton-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ─── List view ─── */
.offers-intro {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(24px, 4vw, 48px) 20px 0;
}
.offers-intro h1 {
  font-size: clamp(1.875rem, 3vw, 2.5rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0 0 8px;
}
.offers-intro p {
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.55;
  color: var(--ink-secondary);
  max-width: 60ch;
  margin: 0;
}

.category-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 20px 4px;
}
.chip {
  font: inherit;
  font-size: 1rem;
  padding: 10px 18px;
  border: none;
  border-radius: var(--radius-full);
  background: var(--surface-card);
  color: var(--surface-dark);
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}
.chip[aria-pressed="true"] {
  background: var(--surface-dark);
  color: var(--surface-card);
}

.offer-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 20px 120px;
}
@media (min-width: 768px) {
  .offer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1120px) {
  .offer-grid { grid-template-columns: repeat(3, 1fr); }
}

.offer-card {
  display: block;
  text-decoration: none;
  background: var(--surface-card);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  transition: transform 0.18s ease;
}
.offer-card:hover { transform: translateY(-3px); }
@media (prefers-reduced-motion: reduce) {
  .offer-card, .offer-card:hover { transition: none; transform: none; }
}
.offer-card .media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--apricot-soft);
}
.offer-card .media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.offer-card .badge-extra {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--scarlet);
  color: var(--surface-card);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: var(--radius-md);
}
.offer-card .body { padding: 18px 20px 20px; }
.offer-card h2 {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.005em;
  margin: 0 0 4px;
}
.offer-card .sub {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink-secondary);
  margin: 0 0 10px;
}
.offer-card .meta {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink-muted);
  margin: 0;
}

/* ─── Detail view ─── */
.detail {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(16px, 3vw, 40px) 20px 140px;
}
.detail .back-link {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--ink-secondary);
  text-decoration: none;
  margin-bottom: 16px;
}
.detail .hero {
  position: relative;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  background: var(--apricot-soft);
  aspect-ratio: 16 / 9;
}
.detail .hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.detail .hero .badge-extra {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--scarlet);
  color: var(--surface-card);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: var(--radius-md);
}
.detail .sheet {
  background: var(--surface-card);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-md);
  padding: clamp(20px, 4vw, 36px);
  margin-top: -32px;
  position: relative;
}
.detail h1 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0 0 6px;
}
.detail .subheadline {
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.55;
  color: var(--ink-secondary);
  margin: 0 0 16px;
}
.detail .validity {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink-muted);
  margin: 0 0 20px;
}
.detail .description {
  font-size: 1rem;
  line-height: 1.6;
  max-width: 72ch;
}
.detail .description p { margin: 0 0 12px; }
.detail .description ul,
.detail .description ol { margin: 0 0 12px; padding-left: 22px; }

.detail h3 {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.25;
  margin: 28px 0 12px;
}
.poa-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.poa-list li {
  background: var(--surface-row);
  border-radius: var(--radius-lg);
  padding: 14px 18px;
}
.poa-list .poa-name { font-weight: 700; }
.poa-list .poa-address {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink-secondary);
  white-space: pre-line;
}

/* ─── Sticky download CTA ─── */
.download-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--surface-card);
  border-top: 1px solid var(--edge);
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  z-index: 10;
}
.download-bar .pitch {
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
}
.download-bar .store-badges { justify-content: flex-start; }
.download-bar .store-badge img { height: 44px; }

/* ─── Status views (error / not found) ─── */
.status-note {
  max-width: 560px;
  margin: 0 auto;
  padding: 12px 20px 0;
  text-align: center;
  font-size: 1rem;
  color: var(--ink-secondary);
}

.hidden { display: none; }
