/* bookbask — search / results page.
   Assumes css/bookbask.css and css/home.css (nav + footer) are loaded.

   Geometry here is taken from the owner's reference results screen: 1140px
   column, 232px rail beside a 1fr list at 32px, and listing rows that are
   bordered cards (264px photo, 208px tall) rather than hairline-separated
   rows. The card border is the one place this page departs from the "hairlines
   not boxes" default -- on a results list the card edge is what separates one
   venue from the next when the photos are all different colors. */

.res { padding: 24px 24px 64px; }

/* ---------- crumbs, title, sort ---------- */

.res-crumbs {
  font: 400 13.5px/1.4 var(--bb-font);
  color: var(--bb-ink-soft);
  margin-bottom: 18px;
}
.res-crumbs a { color: var(--bb-primary); }

.res-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.res-title {
  font: 800 30px/1.15 var(--bb-font);
  letter-spacing: -0.8px;
  margin: 0;
}

.res-head__count {
  font: 400 14.5px/1.4 var(--bb-font);
  color: var(--bb-ink-soft);
}

.res-sort {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: 400 14px/1.4 var(--bb-font);
  color: var(--bb-ink);
  white-space: nowrap;
}
/* Native select stripped back to the reference's "Traveler favorites ▾" — a
   real select, so it stays keyboard-operable and needs no popup of our own. */
.res-sort select {
  font: 600 14px/1.4 var(--bb-font);
  color: var(--bb-ink);
  background: transparent;
  border: 0;
  padding: 2px 16px 2px 2px;
  margin: 0;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%231C1A17' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 2px center;
  background-size: 9px 5px;
}
.res-sort select:focus-visible { outline: 2px solid var(--bb-primary); outline-offset: 2px; }

/* ---------- area chips ----------
   Built from the venues actually loaded, never a hardcoded neighbourhood list:
   the areas differ per city and the product is not one city. */

.res-areas {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.res-area {
  background: var(--bb-surface);
  border: 1px solid var(--bb-hairline);
  border-radius: var(--bb-r-pill);
  padding: 8px 16px;
  font: 400 13.5px/1.2 var(--bb-font);
  color: var(--bb-ink);
  cursor: pointer;
}
.res-area[aria-pressed="true"] {
  background: var(--bb-primary);
  border-color: var(--bb-primary);
  color: var(--bb-page);
  font-weight: 600;
}

/* ---------- grid + filter rail ---------- */

.res-grid {
  display: grid;
  grid-template-columns: 232px 1fr;
  gap: 32px;
  align-items: start;
}

.res-rail {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-top: 6px;
  position: sticky;
  top: 24px;
}

.res-filter + .res-filter {
  border-top: 1px solid var(--bb-hairline);
  padding-top: 20px;
}

.res-filter__h {
  font: 700 14px/1.3 var(--bb-font);
  margin: 0 0 10px;
}

.res-opts { display: flex; flex-direction: column; gap: 8px; }

.res-opt {
  display: flex;
  align-items: center;
  gap: 8px;
  font: 400 14px/1.4 var(--bb-font);
  cursor: pointer;
}
.res-opt input {
  accent-color: var(--bb-primary);
  width: 15px;
  height: 15px;
  margin: 0;
  flex: none;
}

.res-prices { display: flex; gap: 8px; }
.res-price {
  border: 1px solid var(--bb-hairline);
  border-radius: var(--bb-r-pill);
  background: var(--bb-surface);
  color: var(--bb-ink);
  padding: 6px 14px;
  font: 400 14px/1.3 var(--bb-font);
  cursor: pointer;
}
.res-price[aria-pressed="true"] {
  background: var(--bb-primary);
  border-color: var(--bb-primary);
  color: var(--bb-page);
  font-weight: 600;
}

.res-opt--trust span { color: var(--bb-trust); font-weight: 600; }

.res-clear { width: 100%; }

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

.res-list { display: flex; flex-direction: column; gap: 18px; }

/* The reference results screen carries no search field — it arrives from the
   home hero. This page is also its own URL with ?q=, so the query has to be
   visible and editable here or a shared link is uneditable. Same pill as the
   hero, quieter. */
.res-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bb-surface);
  border: 1px solid var(--bb-hairline);
  border-radius: var(--bb-r-pill);
  padding: 4px 20px;
}
.res-bar input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  font: 400 15px/1.4 var(--bb-font);
  color: var(--bb-ink);
  padding: 12px 0;
}

.res-card {
  display: grid;
  grid-template-columns: var(--bb-row-photo) 1fr;
  background: var(--bb-surface);
  border: 1px solid var(--bb-hairline);
  border-radius: var(--bb-r-card);
  overflow: hidden;
  transition: box-shadow .18s ease-out;
}
.res-card:hover { box-shadow: var(--bb-shadow-hover); }

.res-card__shot {
  position: relative;
  min-height: 208px;
  background: var(--bb-tint-blue);
}
.res-card__shot img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.res-card__body {
  padding: 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.res-card__top {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.res-card__name { font: 700 18px/1.25 var(--bb-font); margin: 0; }
.res-card__name a { color: var(--bb-ink); }
.res-card__name a:hover { color: var(--bb-primary); }

/* Tighter than .bb-pill: the reference sets this one beside an 18px title,
   where the standard pill's 5px/12.5px sits too heavy. */
.bb-pill--tight { padding: 3px 10px; font-size: 12px; }

/* Rating on a results row reads dots-then-score, not the jade seal used on
   cards elsewhere — the seal competes with the verified pill next to it. */
.res-rating {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font: 400 13.5px/1.4 var(--bb-font);
}
.res-rating__n { font-weight: 700; font-variant-numeric: tabular-nums; }
.res-rating__c { color: var(--bb-ink-soft); }

.res-card__blurb {
  font: 400 14px/1.55 var(--bb-font);
  color: var(--bb-ink);
  margin: 2px 0 0;
  max-width: 62ch;
}

.res-card__svc { font: 400 13px/1.45 var(--bb-font); color: var(--bb-ink-soft); }

.res-card__foot {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 8px;
}
.res-card__today { font: 400 13px/1.4 var(--bb-font); color: var(--bb-ink-soft); }
.res-card__times { display: flex; gap: 8px; flex-wrap: wrap; }
.bb-chip.res-time { padding: 6px 13px; }

.res-card__price {
  margin-left: auto;
  font: 400 15px/1.3 var(--bb-font);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.res-card__price b { font-weight: 800; font-size: 17px; }
.res-card__price small { font-size: 13px; color: var(--bb-ink-soft); }

/* ---------- tip panel, pagination, empty ---------- */

.res-tip {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--bb-tint-blue);
  border-radius: var(--bb-r-card);
  padding: 18px 24px;
}
.res-tip__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--bb-primary);
  flex: none;
  margin-top: 6px;
}
.res-tip__text {
  font: 400 14px/1.55 var(--bb-font);
  color: var(--bb-primary);
  margin: 0;
}
.res-tip__text b { font-weight: 700; }

.res-more { text-align: center; padding-top: 8px; }

.res-empty {
  font: 400 15px/1.6 var(--bb-font);
  color: var(--bb-ink-soft);
  padding: 40px 0;
  max-width: 46ch;
}

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .res-grid { grid-template-columns: 1fr; gap: 26px; }
  .res-rail { position: static; padding-top: 0; }
  .res-title { font-size: 26px; }
  .res-sort { margin-left: 0; }
}

@media (max-width: 620px) {
  .res-card { grid-template-columns: 1fr; }
  .res-card__shot { min-height: 190px; }
  .res-card__price { margin-left: 0; }
}
