/* ==========================================
   EAT — the decision layer
   Loaded after styles.css, discover.css and locals-say.css, which between
   them already carry every component this page reuses:
     .locals-head  (header)          — locals-say.css
     .todo-item / .todo-list         — discover.css
     .todo-chip / .todo-filters      — discover.css
     .section-head / .section-more   — styles.css
   Nothing above is redefined here. This file adds the three views, the two
   ways in, and the card additions — using the same tokens throughout.

   The problem it exists to solve: the landing screen used to run the
   experience questions straight into all 38 restaurants, so every visitor
   scrolled the whole town whether they wanted it or not. Browse All is a
   view you go into now, and the landing screen is short on purpose.
   ========================================== */

.eat-body { background: var(--cream); }

.eat-view[hidden] { display: none; }

.eat-loading {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--ink-mute);
  padding: 6px 4px;
  margin: 0;
}

/* Sits under the h1 in .locals-head, where that component has no sub of its
   own. Section A's heading is the page heading — one heading instead of two,
   because space above the fold is what this page is short of. */
.eat-lede {
  font-family: var(--sans);
  font-size: 14.5px;
  line-height: 1.45;
  color: var(--ink-mute);
  margin: 8px 0 0;
  max-width: 30ch;
}

/* ============ SECTIONS ============ */
.eat-sec {
  padding: 14px 18px 0;
}
.eat-sec--moments {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}
.eat-sec__head {
  margin-bottom: 12px;
}
.eat-sec__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 25px;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--forest-deep);
  margin: 0;
}
.eat-sec__sub {
  font-family: var(--sans);
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--ink-mute);
  margin: 6px 0 0;
  max-width: 32ch;
}

/* ============ WHAT SOUNDS GOOD — cravings ============
   The neutral backbone. Wraps rather than scrolls horizontally so all of them
   are visible at once: a visitor shouldn't have to discover that there is
   more food off the right-hand edge, and a chip nobody scrolls to is a
   business nobody finds. Fifteen cravings where there were nine cuisines, so
   the padding is a shade tighter than a filter chip elsewhere — the whole set
   still has to fit above the fold on a phone. Counts come from the data. */
.eat-cravings {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.eat-craving {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  background: var(--paper);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 9px 13px;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.eat-craving:active,
.eat-craving:hover {
  background: var(--forest);
  border-color: var(--forest);
}
.eat-craving:active .eat-craving__label,
.eat-craving:hover .eat-craving__label,
.eat-craving:active .eat-craving__n,
.eat-craving:hover .eat-craving__n {
  color: var(--cream);
}
.eat-craving__label {
  font-family: var(--sans);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--forest-deep);
  white-space: nowrap;
}
.eat-craving__n {
  font-family: var(--sans);
  font-size: 11.5px;
  font-variant-numeric: tabular-nums;
  color: var(--ink-mute);
}

/* ============ WHAT YOU NEED — moments ============
   Two columns, compact, so seven of them cost about the same vertical
   space six accordions used to. A moment with nothing behind it is shown
   anyway and opens honestly empty: that reads as a gap in the evidence,
   which is what it is, and it tells us exactly what to go and verify. */
.eat-moments {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.eat-moment {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  min-height: 58px;
  text-decoration: none;
  background: var(--paper);
  border: 1px solid var(--border);
  border-left: 3px solid var(--forest);
  border-radius: 12px;
  padding: 10px 12px;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.eat-moment:hover {
  background: var(--cream-soft);
  border-color: var(--border-strong);
  border-left-color: var(--forest);
}
.eat-moment__label {
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.12;
  color: var(--forest-deep);
}
.eat-moment__n {
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--ink-mute);
}
/* Quieter, not hidden and not disabled. Tapping it is how a visitor finds
   out we haven't checked yet, and that's a more honest answer than a
   confident wrong one. */
.eat-moment--empty {
  background: transparent;
  border-left-color: rgba(44, 74, 58, 0.18);
}
.eat-moment--empty .eat-moment__label {
  color: var(--ink-soft);
}
/* No `requires`, no attribute, nothing decides it — a genuine shuffle. Given
   the gold key line because it isn't a lens like the others. */
.eat-moment--surprise {
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  border-left-color: var(--gold);
  background: #FFFBF0;
}
.eat-moment--surprise .eat-moment__label {
  font-style: italic;
}
.eat-moment--surprise .eat-moment__n {
  color: var(--gold);
  font-weight: 600;
}

/* ============ OUT TO THE FULL LIST ============ */
.eat-more {
  padding: 24px 18px 4px;
}
.eat-more__q {
  font-family: var(--sans);
  font-size: 12.5px;
  line-height: 1.3;
  color: var(--ink-mute);
  margin: 0 0 8px;
}

/* ============ BACK ============
   Results and Browse All are views, not pages, so they need a way home that
   isn't the browser chrome. */
.eat-back {
  padding: 14px 14px 2px;
}
.eat-back__btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: 0;
  padding: 6px 6px 6px 0;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--rust);
}

/* ============ RESULTS HEAD ============ */
.eat-rhead {
  padding: 4px 18px 14px;
}
.eat-rhead__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 29px;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--forest-deep);
  margin: 0;
}
/* "Places that match what you told us" — never "best for", never "our pick".
   Nothing was picked. */
.eat-rhead__sub {
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink-mute);
  margin: 7px 0 0;
  max-width: 32ch;
}
/* The one fact every result in this list shares, said once here instead of
   thirteen times on thirteen cards. */
.eat-rhead__shared {
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.45;
  color: var(--forest-deep);
  margin: 12px 0 0;
  padding: 9px 12px;
  background: rgba(44, 74, 58, 0.06);
  border-left: 3px solid var(--forest);
  border-radius: 8px;
}
.eat-rhead__shared[hidden] { display: none; }
.eat-rhead__count {
  font-family: var(--serif);
  font-style: italic;
  font-size: 12.5px;
  color: var(--ink-mute);
  margin: 12px 0 0;
}
.eat-rhead__count[hidden] { display: none; }

.eat-shuffle {
  display: block;
  margin: 0 18px 14px;
  background: none;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 9px 16px;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--forest-deep);
}
.eat-shuffle:hover {
  background: var(--forest);
  border-color: var(--forest);
  color: var(--cream);
}

/* ============ THE CARD ============
   One renderer for all three views, so a place looks the same however it was
   reached. .todo-item carries the frame; everything below is the decision
   information the old category-plus-address card was missing. */
.eat-place {
  align-items: flex-start;
}
.eat-place__chev {
  flex-shrink: 0;
  align-self: center;
  color: rgba(44, 74, 58, 0.35);
}

/* Flatter than a written-up card on purpose: the missing detail is the signal
   that there's work still to do there, so it shouldn't be dressed up to look
   finished. */
.eat-place--listed {
  background: transparent;
  box-shadow: none;
  border-color: rgba(44, 74, 58, 0.1);
  padding: 11px 12px;
}
.eat-place--listed .todo-item__name {
  font-size: 17px;
}
.eat-place--listed .todo-item__cat {
  font-size: 9.5px;
  color: rgba(31, 27, 20, 0.5);
}

/* "Why it might fit" — not "why we picked it", because nothing was picked.
   Always a fact about the business. If there's no fact there's no block, and
   the tags below carry the answer instead. */
.eat-place__why {
  margin: 7px 0 0;
  padding: 8px 10px;
  background: rgba(44, 74, 58, 0.05);
  border-radius: 8px;
}
.eat-place__why-label {
  font-family: var(--sans);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--forest);
  margin: 0 0 4px;
}
.eat-place__why-text {
  font-family: var(--sans);
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--ink-soft);
  margin: 0;
}

/* Factual attributes, restated. Every one is read off the business database's
   own type string or a menu we checked — never a judgement, never "great for
   families". */
.eat-place__tags {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.eat-place__tag {
  font-family: var(--sans);
  font-size: 10.5px;
  line-height: 1.25;
  letter-spacing: 0.02em;
  color: var(--forest-deep);
  background: rgba(44, 74, 58, 0.07);
  border-radius: 999px;
  padding: 4px 9px;
}

/* ============ BROWSE ALL ============ */
.eat-search {
  position: relative;
  margin: 0 18px 12px;
}
.eat-search__icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink-mute);
  pointer-events: none;
}
.eat-search__input {
  width: 100%;
  box-sizing: border-box;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 11px 14px 11px 36px;
  -webkit-appearance: none;
  appearance: none;
}
.eat-search__input::placeholder { color: var(--ink-mute); }
.eat-search__input:focus {
  outline: none;
  border-color: var(--forest);
}

.eat-dir__showing {
  font-family: var(--serif);
  font-style: italic;
  font-size: 12.5px;
  color: var(--ink-mute);
  margin: 0 0 10px;
  padding: 0 18px;
}

/* ============ EMPTY ============
   Quiet, and deliberately not the dashed TODO treatment used for unfinished
   copy on locals-say.html — nobody being mapped yet is a gap in the evidence,
   not a broken page. */
.eat-empty {
  font-family: var(--serif);
  font-style: italic;
  font-size: 17px;
  line-height: 1.35;
  color: var(--ink-mute);
  margin: 4px 4px;
  list-style: none;
}
.eat-empty__note {
  display: block;
  font-family: var(--sans);
  font-style: normal;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ink-mute);
  margin-top: 10px;
  max-width: 36ch;
}

@media (max-width: 340px) {
  .eat-moments { grid-template-columns: 1fr; }
}
