/* find.css — the front door and the branch list.
 *
 * Its own stylesheet rather than a section of `guest.css`, for the reason that
 * file gives for existing at all: the booking page is loaded by strangers on
 * phones and must not inherit a change made for a different screen. These two
 * are both diner-facing, but one is a list and one is a form, and they will
 * pull in different directions.
 *
 * The palette is not private. The nine NetronEats colours are locked and come
 * from the shared tokens, so a diner looking at this list is looking at the same
 * brand as the one looking at the ordering site.
 *
 * Mobile first, and mobile in the sense that matters — a thumb, one hand,
 * daylight on a screen. Nothing tappable is under 44px.
 */
@import url("/reserve/static/netron-tokens.css");

:root {
  --ink: var(--nt-ink);
  --muted: var(--nt-ink-2);
  --faint: var(--nt-ink-3);
  --line: var(--nt-line);
  --bg: var(--nt-bg);
  --card: var(--nt-surface);
  --raised: var(--nt-raised);
  --brand: var(--nt-action);
  --brand-text: var(--nt-action-text);
  --radius: var(--nt-radius, 12px);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.5 var(--nt-font, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif);
  -webkit-text-size-adjust: 100%;
}

.rv-find {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px var(--nt-pad-x, 16px) 48px;
}

/* ---- the hero ---------------------------------------------------------- */

.rv-hero { margin: 8px 0 24px; }
.rv-hero-tight { margin-bottom: 16px; }

.rv-eyebrow {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--brand);
}

.rv-hero h1 {
  margin: 0;
  font-size: 28px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.rv-sub {
  margin: 12px 0 0;
  color: var(--muted);
}

/* ---- search ------------------------------------------------------------ */

.rv-search {
  display: flex;
  gap: 8px;
  margin-top: 20px;
}

.rv-search input {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  color: var(--ink);
  font: inherit;
}

.rv-search input::placeholder { color: var(--faint); }

.rv-search input:focus-visible,
.rv-card:focus-visible,
.rv-more a:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.rv-search button {
  flex: 0 0 auto;
  min-height: 48px;
  padding: 0 20px;
  border: 0;
  border-radius: var(--radius);
  background: var(--brand);
  color: var(--brand-text);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

/* ---- the list ---------------------------------------------------------- */

.rv-list {
  display: grid;
  gap: 12px;
  margin-top: 8px;
}

.rv-card {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  color: inherit;
  text-decoration: none;
}

.rv-card:active { opacity: 0.7; }

/* The circle with the initial in it. Core has a `logo_url` column and it is
   null on every venue today, so this is what a diner actually sees — the same
   thing the ordering site draws in the same place. */
.rv-avatar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--raised);
  font-size: 15px;
  font-weight: 600;
}

/* `min-width: 0` is what lets the truncation below actually happen — a flex
   item's default minimum is its content, so a long restaurant name pushes the
   card wider than the screen instead of ellipsing. */
.rv-card-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1 1 auto;
}

.rv-card-name,
.rv-card-branch,
.rv-card-where {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rv-card-name { font-weight: 600; }
.rv-card-branch { font-size: 14px; color: var(--muted); }
.rv-card-where { font-size: 13px; color: var(--faint); }

.rv-card-go {
  flex: 0 0 auto;
  font-size: 14px;
  font-weight: 600;
  color: var(--brand);
}

.rv-empty {
  padding: 24px 16px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  text-align: center;
}

.rv-empty p { margin: 0; }

.rv-more {
  margin: 20px 0 0;
  text-align: center;
}

.rv-more a {
  display: inline-block;
  min-height: 44px;
  padding: 12px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
}

/* ---- how it works ------------------------------------------------------ */

.rv-how {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.rv-how h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
}

.rv-lead {
  margin: 8px 0 0;
  color: var(--muted);
}

.rv-steps {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 20px;
}

.rv-steps li { display: grid; gap: 4px; }

.rv-step-n {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--brand);
  color: var(--brand-text);
  font-size: 14px;
  font-weight: 700;
}

.rv-steps h3 { margin: 4px 0 0; font-size: 16px; }
.rv-steps p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---- footer ------------------------------------------------------------ */

.rv-foot {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  font-size: 14px;
}

.rv-foot a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--muted);
}

.rv-foot .muted {
  margin: 0 0 0 auto;
  color: var(--faint);
}

@media (min-width: 640px) {
  .rv-find { padding-top: 40px; }
  .rv-hero h1 { font-size: 34px; }
  .rv-steps { grid-template-columns: repeat(3, 1fr); gap: 24px; }
}
