:root {
  color-scheme: light;
  --bg: #f5f7f8;
  --surface: #ffffff;
  --ink: #16211d;
  --muted: #66736f;
  --line: #dce4e1;
  --accent: #0f766e;
  --warn: #b45309;
  --warn-bg: #fff7ed;
  --shadow: 0 14px 34px rgba(20, 31, 27, 0.1);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(18px, 4vw, 48px);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1;
  letter-spacing: 0;
}

.refreshBadge {
  min-width: 184px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f9fbfa;
  text-align: right;
}

.refreshBadge strong {
  display: block;
  color: var(--accent);
  font-size: 1.05rem;
}

main {
  width: min(1280px, 100%);
  margin: 0 auto;
  padding: 24px clamp(16px, 4vw, 48px) 48px;
}

.status-panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.status-panel > div {
  min-width: 0;
  padding: 16px;
  background: var(--surface);
}

.label {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.status-panel strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.message {
  margin-top: 18px;
  padding: 14px 16px;
  border: 1px solid #fed7aa;
  border-radius: 8px;
  background: var(--warn-bg);
  color: var(--warn);
  font-weight: 700;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.card {
  overflow: hidden;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.imageLink {
  display: block;
  aspect-ratio: 4 / 3;
  background: #e8eeeb;
}

.imageLink img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cardBody {
  padding: 14px;
}

.cardMeta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 9px;
}

.price {
  color: var(--accent);
  font-size: 1.25rem;
  font-weight: 850;
}

.date,
.location,
.preview {
  color: var(--muted);
}

.date {
  flex: 0 0 auto;
  font-size: 0.86rem;
}

h2 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.28;
  letter-spacing: 0;
}

h2 a {
  color: inherit;
  text-decoration: none;
}

h2 a:hover {
  text-decoration: underline;
}

.location {
  margin: 8px 0 0;
  font-size: 0.9rem;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.badge {
  max-width: 100%;
  overflow: hidden;
  padding: 4px 7px;
  border-radius: 999px;
  background: #e6fffb;
  color: #0f766e;
  font-size: 0.76rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.badge.warn {
  background: var(--warn-bg);
  color: var(--warn);
}

.preview {
  display: -webkit-box;
  margin: 12px 0 0;
  overflow: hidden;
  font-size: 0.9rem;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

@media (max-width: 720px) {
  .topbar {
    align-items: stretch;
    flex-direction: column;
  }

  .refreshBadge {
    text-align: left;
  }

  .status-panel {
    grid-template-columns: 1fr;
  }
}
