:root {
  --bg: #f6f3ec;
  --surface: #fffdf8;
  --ink: #1c1a16;
  --ink-2: #57524a;
  --ink-3: #8a8378;
  --line: #e4ddd0;
  --accent: #0d5b55;
  --accent-ink: #ffffff;
  --accent-soft: #e2efec;
  --hi: #8a5a00;
  --hi-bg: #fbecc8;
  --mid: #0d5b55;
  --mid-bg: #e2efec;
  --lo: #57524a;
  --lo-bg: #eee9df;
  --danger: #b3261e;
  --radius: 14px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #151412;
    --surface: #1d1b18;
    --ink: #f1ece2;
    --ink-2: #bdb5a8;
    --ink-3: #8d8578;
    --line: #322e28;
    --accent: #5fc2b6;
    --accent-ink: #0b1f1d;
    --accent-soft: #17322f;
    --hi: #f3c56b;
    --hi-bg: #3a2c10;
    --mid: #7fd3c8;
    --mid-bg: #17322f;
    --lo: #bdb5a8;
    --lo-bg: #2a2723;
    --danger: #ff8a80;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.5 var(--sans);
  font-feature-settings: "tnum" 1;
}
h1, h2, h3, p, dl, dd, ol { margin: 0; }
a { color: var(--accent); }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 28px; } }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 10; background: var(--surface); padding: 8px 12px; border-radius: 8px; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* header */
.top { border-bottom: 1px solid var(--line); }
.top__in { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.logo { font: 600 20px/1 var(--serif); color: var(--ink); text-decoration: none; letter-spacing: -0.01em; }
.logo span { color: var(--ink-3); font-weight: 400; }
.lang { display: flex; border: 1px solid var(--line); border-radius: 999px; padding: 2px; }
.lang button {
  border: 0; background: none; padding: 4px 10px; border-radius: 999px; cursor: pointer;
  font-size: 13px; font-weight: 600; color: var(--ink-3);
}
.lang button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }

/* hero */
.hero { padding-top: 40px; padding-bottom: 28px; }
@media (min-width: 720px) { .hero { padding-top: 64px; padding-bottom: 36px; } }
.kicker { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
h1 {
  font: 600 clamp(32px, 6vw, 58px)/1.05 var(--serif);
  letter-spacing: -0.02em;
  margin-top: 10px;
  max-width: 16ch;
  text-wrap: balance;
}
.lede { margin-top: 16px; font-size: clamp(17px, 2vw, 19px); color: var(--ink-2); max-width: 60ch; }
.snapshot { margin-top: 12px; font-size: 14px; color: var(--ink-3); }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 28px; max-width: 640px; }
.stats div { border-top: 2px solid var(--ink); padding-top: 10px; }
.stats dt { font-size: 13px; color: var(--ink-3); }
.stats dd { font: 600 clamp(24px, 4vw, 34px)/1.15 var(--serif); margin-top: 2px; }

.how { margin-top: 22px; max-width: 64ch; color: var(--ink-2); font-size: 15px; }
.how summary { cursor: pointer; color: var(--accent); font-weight: 600; width: fit-content; }
.how p { margin-top: 8px; }

/* filters */
.filters {
  display: grid; gap: 10px; grid-template-columns: 1fr 1fr;
  background: var(--bg); padding: 12px 0; border-bottom: 1px solid var(--line);
}
.field--search { grid-column: 1 / -1; }
@media (min-width: 900px) {
  /* On a phone, a pinned filter bar would take a third of the screen. */
  .filters { grid-template-columns: 2fr 1.2fr 1.2fr 1fr 1.2fr; position: sticky; top: 0; z-index: 3; }
  .field--search { grid-column: auto; }
}
.field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.field__lbl { font-size: 12px; font-weight: 600; color: var(--ink-3); letter-spacing: 0.02em; }
input, select, textarea {
  width: 100%; min-width: 0;
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
  padding: 9px 11px; min-height: 42px;
}
textarea { resize: vertical; min-height: 72px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

.listhead { display: flex; align-items: baseline; gap: 16px; padding: 16px 0 8px; }
.count { font-weight: 600; }
.link { border: 0; background: none; color: var(--accent); cursor: pointer; padding: 0; text-decoration: underline; }

/* list */
.cols, .row {
  display: grid; align-items: center; column-gap: 16px;
  grid-template-columns: 2.25rem minmax(0, 1fr) minmax(0, 10rem) 8.5rem 6rem 5.5rem 13.5rem;
}
.cols {
  font-size: 12px; font-weight: 600; color: var(--ink-3); letter-spacing: 0.02em;
  padding: 8px 0; border-bottom: 1px solid var(--line);
}
.cols .r, .num { text-align: right; }
.list { list-style: none; padding: 0; }
.row { padding: 14px 0; border-bottom: 1px solid var(--line); }
.rank { color: var(--ink-3); font-size: 14px; }
.name { font: 600 17px/1.3 var(--serif); }
.meta, .sub { font-size: 13px; color: var(--ink-3); }
.sub { display: block; }
.place { font-size: 15px; }
.num { font-size: 15px; white-space: nowrap; }
.num .sub { font-size: 12px; }
.lbl { display: none; }
.badge {
  display: inline-block; padding: 3px 9px; border-radius: 999px;
  font-weight: 700; font-size: 15px;
}
.badge--hi { color: var(--hi); background: var(--hi-bg); }
.badge--mid { color: var(--mid); background: var(--mid-bg); }
.badge--lo { color: var(--lo); background: var(--lo-bg); }
.actions { display: flex; gap: 8px; justify-content: flex-end; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 4px;
  min-height: 38px; padding: 0 14px; border-radius: 10px; cursor: pointer;
  font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap;
  border: 1px solid transparent;
}
.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { filter: brightness(1.08); }
.btn--primary:disabled { opacity: 0.6; cursor: progress; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink-3); }
.btn--wide { width: 100%; }
.more { padding: 20px 0 8px; max-width: 360px; margin: 0 auto; }
.empty { padding: 40px 0; text-align: center; color: var(--ink-2); }

@media (max-width: 899px) {
  .cols { display: none; }
  .row {
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-areas:
      "hotel hotel hotel"
      "place place place"
      "cash points cpp"
      "actions actions actions";
    row-gap: 10px; padding: 18px 0;
  }
  .rank { display: none; }
  .hotel { grid-area: hotel; }
  .place { grid-area: place; font-size: 14px; color: var(--ink-2); }
  .place .sub { display: inline; }
  .place .sub::before { content: ", "; }
  .cash { grid-area: cash; text-align: left; }
  .points { grid-area: points; text-align: left; }
  .cpp { grid-area: cpp; text-align: left; }
  .cash, .points, .cpp { align-self: start; }
  .lbl { display: block; font-size: 12px; color: var(--ink-3); font-weight: 600; }
  .actions { grid-area: actions; justify-content: stretch; }
  .actions .btn { flex: 1; min-height: 42px; }
}

/* footer */
.foot { margin-top: 48px; border-top: 1px solid var(--line); padding: 24px 0 40px; font-size: 14px; color: var(--ink-2); }
.foot .fine { margin-top: 8px; font-size: 12px; color: var(--ink-3); max-width: 80ch; }

/* request dialog */
.sheet {
  border: 0; padding: 0; background: var(--surface); color: var(--ink);
  width: min(560px, calc(100vw - 24px)); max-height: calc(100dvh - 24px);
  border-radius: 18px; box-shadow: 0 24px 80px rgba(0, 0, 0, 0.3);
}
.sheet::backdrop { background: rgba(20, 18, 15, 0.5); }
@media (max-width: 599px) {
  .sheet {
    width: 100vw; max-width: 100vw; margin: auto 0 0; border-radius: 18px 18px 0 0;
    max-height: 92dvh;
  }
}
.sheet__in { display: flex; flex-direction: column; max-height: inherit; }
.sheet__head { display: flex; gap: 12px; justify-content: space-between; align-items: flex-start; padding: 20px 20px 8px; }
.sheet__head h2 { font: 600 22px/1.2 var(--serif); }
.sheet__hotel { margin-top: 4px; color: var(--ink-2); font-size: 15px; }
.x { border: 0; background: none; font-size: 28px; line-height: 1; cursor: pointer; color: var(--ink-3); padding: 0 4px; }
.sheet__body { padding: 8px 20px 4px; overflow: auto; display: flex; flex-direction: column; gap: 14px; }
.sheet__foot { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 20px 20px; border-top: 1px solid var(--line); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.estimate { font-size: 14px; color: var(--accent); font-weight: 600; min-height: 1em; }
.estimate:empty { display: none; }
.muted { color: var(--ink-2); }
.small { font-size: 13px; }
.contact { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: 10px; padding: 3px; gap: 3px; }
.seg button { border: 0; background: none; padding: 8px 6px; border-radius: 7px; cursor: pointer; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.seg button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
.error { color: var(--danger); font-size: 14px; font-weight: 600; }
.error:empty { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.done { display: flex; flex-direction: column; gap: 12px; padding: 8px 0 12px; font-size: 16px; }
.num .tax { cursor: help; text-decoration: underline dotted; text-underline-offset: 2px; }
