:root {
  --ink: #172033;
  --muted: #64748b;
  --subtle: #94a3b8;
  --line: #dbe3ef;
  --panel: #ffffff;
  --canvas: #f3f6fb;
  --navy: #172554;
  --blue: #2563eb;
  --blue-soft: #e8f0ff;
  --green: #087443;
  --green-soft: #e9f8ef;
  --red: #b42318;
  --red-soft: #fff0ef;
  --amber: #965c00;
  --amber-soft: #fff7df;
  --shadow: 0 8px 26px rgba(30, 55, 90, .08);
  --radius: 16px;
}

* { box-sizing: border-box; }
html { background: var(--canvas); }
body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 8% 0%, rgba(147, 197, 253, .28), transparent 34rem),
    var(--canvas);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.45;
  -webkit-text-size-adjust: 100%;
}
button, input, select { font: inherit; }
button, a, select, input { -webkit-tap-highlight-color: transparent; }
a { color: var(--blue); }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.offers-app {
  width: min(1500px, 100%);
  margin: 0 auto;
  padding: 24px;
}
.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 30px;
  color: #fff;
  background: linear-gradient(135deg, #172554 0%, #1e3a8a 55%, #2563eb 100%);
  border-radius: 22px;
  box-shadow: 0 16px 34px rgba(30, 64, 175, .2);
}
.eyebrow {
  margin: 0 0 5px;
  color: var(--blue);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .1em;
  line-height: 1.2;
  text-transform: uppercase;
}
.page-header .eyebrow { color: #bfdbfe; }
h1, h2, p { margin-top: 0; }
h1 {
  margin-bottom: 8px;
  font-size: clamp(1.7rem, 4vw, 2.8rem);
  letter-spacing: -.035em;
  line-height: 1.05;
}
h2 {
  margin-bottom: 0;
  font-size: 1.15rem;
  letter-spacing: -.015em;
  line-height: 1.2;
}
.lede {
  max-width: 660px;
  margin-bottom: 0;
  color: #dbeafe;
  font-size: .96rem;
}
.snapshot-date {
  margin: 13px 0 0;
  color: #bfdbfe;
  font-size: .78rem;
  font-weight: 700;
}
.snapshot-date time { color: #fff; }
.page-nav { flex: none; }
.page-nav a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 999px;
  color: #fff;
  font-size: .82rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.page-nav a:hover, .page-nav a:focus-visible { background: rgba(255,255,255,.14); }

.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0;
}
.summary-card, .panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.summary-card {
  min-height: 114px;
  padding: 16px 18px;
}
.summary-card--accent {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
}
.summary-label, .summary-detail {
  display: block;
  font-size: .78rem;
}
.summary-label { color: var(--muted); font-weight: 700; }
.summary-card--accent .summary-label, .summary-card--accent .summary-detail { color: #dbeafe; }
.summary-card strong {
  display: block;
  margin: 7px 0 1px;
  font-size: 2rem;
  letter-spacing: -.05em;
  line-height: 1;
}
.summary-detail { color: var(--subtle); }

.panel { margin-top: 16px; padding: 22px; }
.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.text-link { font-size: .82rem; font-weight: 700; text-decoration: none; }
.heading-meta {
  color: var(--muted);
  font-size: .78rem;
  font-weight: 500;
}
.snapshot-panel { padding-block: 16px; }
.snapshot-panel .panel-heading { margin-bottom: 0; }
.snapshot-picker select, .sort-field select, .search-field input {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  color: var(--ink);
  font-size: .82rem;
}
.snapshot-picker select { min-width: 240px; padding: 7px 10px; }
.search-field input { width: min(320px, 100%); padding: 8px 11px; }
.search-field input:focus, select:focus { outline: 3px solid rgba(37, 99, 235, .18); border-color: var(--blue); }

.criteria-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px 18px;
  margin: 0;
}
.criteria-list div { min-width: 0; }
.criteria-list dt {
  color: var(--muted);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.criteria-list dd {
  margin: 3px 0 0;
  font-size: .85rem;
  font-weight: 650;
}
.archive-notice {
  margin-top: 18px;
  padding: 11px 13px;
  border: 1px solid #f3d68a;
  border-radius: 10px;
  color: #714d00;
  background: var(--amber-soft);
  font-size: .8rem;
}

.results-heading { margin-bottom: 14px; }
.filter-bar {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
  padding: 11px 12px;
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #f8fafc;
}
.filter-group { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.filter-label {
  margin-right: 2px;
  color: var(--muted);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.filter-pill {
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: #fff;
  cursor: pointer;
  font-size: .76rem;
  font-weight: 650;
}
.filter-pill:hover { border-color: var(--blue); color: var(--blue); }
.filter-pill.is-active { border-color: var(--blue); color: #1e3a8a; background: var(--blue-soft); }
.sort-field { display: flex; align-items: center; gap: 7px; margin-left: auto; }
.sort-field select { padding: 7px 9px; }

.offers-table[hidden] { display: none; }
.table-scroll {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  border-radius: 11px;
}
table { width: 100%; border-collapse: collapse; font-size: .78rem; }
th, td { padding: 10px 9px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  color: var(--muted);
  background: #f8fafc;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
}
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: #f8fbff; }
.offers-table { min-width: 1080px; }
.offers-table th:first-child, .offers-table td:first-child { width: 42px; color: var(--subtle); text-align: center; }
.offers-table th:nth-child(2) { min-width: 210px; }
.offers-table th:nth-child(3) { min-width: 145px; }
.offers-table th:nth-child(5) { min-width: 170px; }
.offers-table th:nth-child(6) { min-width: 105px; }
.offers-table th:nth-child(7), .offers-table th:nth-child(8) { min-width: 100px; }
.hotel-name { display: block; color: var(--ink); font-weight: 750; }
.hotel-tags, .offer-note { display: block; margin-top: 3px; color: var(--muted); font-size: .7rem; }
.offer-note { max-width: 210px; }
.area { color: var(--muted); }
.price { font-weight: 750; white-space: nowrap; }
.date-cell { white-space: nowrap; }
.time { display: inline-block; padding: 3px 6px; border-radius: 6px; font-variant-numeric: tabular-nums; font-weight: 750; white-space: nowrap; }
.time--in { color: var(--green); background: var(--green-soft); }
.time--out { color: var(--red); background: var(--red-soft); }
.board { color: #334155; font-size: .74rem; }
.rating { font-weight: 700; white-space: nowrap; }
.status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 7px;
  border-radius: 999px;
  font-size: .7rem;
  font-weight: 750;
  white-space: nowrap;
}
.status--yes { color: var(--green); background: var(--green-soft); }
.status--no { color: var(--red); background: var(--red-soft); }
.status-dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; background: currentColor; }
.status-dot--live { color: var(--green); background: var(--green); }
.offer-link {
  display: inline-flex;
  padding: 5px 8px;
  border-radius: 7px;
  color: #1e40af;
  background: var(--blue-soft);
  font-size: .72rem;
  font-weight: 750;
  text-decoration: none;
  white-space: nowrap;
}
.offer-link:hover, .offer-link:focus-visible { color: #fff; background: var(--blue); }
.table-footnote, .section-intro, .empty-results {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: .78rem;
}
.empty-results { padding: 22px; border: 1px dashed var(--line); border-radius: 10px; text-align: center; }

.checked-table { min-width: 920px; }
.checked-table th:nth-child(2) { min-width: 210px; }
.checked-table th:nth-child(4) { min-width: 165px; }
.checked-table th:nth-child(5) { min-width: 110px; }
.verified-key { color: var(--muted); font-size: .76rem; font-weight: 650; white-space: nowrap; }
.verified-key .status-dot { margin-right: 5px; }
.live-price { font-weight: 750; white-space: nowrap; }
.price-diff { display: block; color: var(--muted); font-size: .68rem; }

.page-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 4px 10px;
  color: var(--muted);
  font-size: .72rem;
}
.page-footer p { margin: 0; }

@media (max-width: 900px) {
  .offers-app { padding: 14px; }
  .page-header { padding: 22px; }
  .summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .criteria-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .offers-app { padding: 8px; }
  .page-header { display: block; padding: 20px 18px; border-radius: 16px; }
  .page-nav { margin-top: 16px; }
  .page-nav a { width: 100%; justify-content: center; }
  .summary-grid { gap: 8px; margin: 10px 0; }
  .summary-card { min-height: 103px; padding: 13px; }
  .summary-card strong { font-size: 1.65rem; }
  .panel { padding: 15px; margin-top: 10px; border-radius: 13px; }
  .panel-heading, .results-heading { display: block; }
  .panel-heading .text-link, .verified-key { display: inline-block; margin-top: 12px; }
  .search-field { display: block; margin-top: 14px; }
  .search-field input { width: 100%; }
  .criteria-list { grid-template-columns: 1fr; gap: 10px; }
  .filter-bar { align-items: flex-start; gap: 11px; }
  .sort-field { width: 100%; margin-left: 0; }
  .sort-field select { flex: 1; min-width: 0; }
  .page-footer { display: block; padding-inline: 3px; }
  .page-footer p + p { margin-top: 7px; }
}
