/* The dining directory: search, ratings, member reviews, the sponsored spot and the "add your place" form. */

/* One row of controls: the kinds on the left, a search field that reads as one on the right.
   Both are 40px tall, and the field keeps its whole placeholder at every width — it takes its own
   row as soon as the two no longer fit side by side. */
.dining-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin: 0 0 16px;
}

.dining-controls .board-nav {
  flex: 1 1 auto;
  gap: 8px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border-bottom: 0;
}

.dining-controls .board-nav a {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 16px;
  border: 1px solid var(--line);
  font-size: 13.5px;
}

.dining-controls .board-nav a:not([aria-current]) { background: var(--surface); }

.dining-count {
  flex: 0 0 auto;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

.dining-controls .dining-search {
  flex: 1 1 300px;
  width: auto;
  min-width: 0;
  max-width: 360px;
  height: 40px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.dining-controls .dining-search:focus-within { border-color: #9dbcf9; }

/* the magnifier leads the field, the way the search at the top of the site does */
.dining-controls .dining-search button {
  order: -1;
  width: 42px;
  height: 38px;
  color: #55678a;
}

.dining-controls .dining-search .icon { width: 18px; height: 18px; }

.dining-controls .dining-search input {
  height: 38px;
  padding: 0 14px 0 0;
  font-size: 14px;
}

.dining-controls .dining-search input::placeholder { color: #75849e; opacity: 1; }

/* swap.css dims the panel while the next list is on its way, but leaves the tabs alone; the tabs now
   travel inside this row, so the row stays legible and clickable too */
body [data-swap].is-swapping > .dining-controls.dining-controls {
  opacity: 1;
  pointer-events: auto;
}

.dining-result-line {
  margin: 10px 0 2px;
  color: var(--muted);
  font-size: 14px;
}

.dining-result-line a { color: var(--blue-dark); text-decoration: underline; text-underline-offset: 3px; }

/* ------------------------------------------------------- sponsored spot */
.sponsored-place {
  position: relative;
  overflow: hidden;
  margin: 0 0 18px;
  padding: 0;
  border: 1px solid #d9e4f7;
}

.sponsored-flag {
  position: absolute;
  z-index: 1;
  top: 12px;
  left: 12px;
  padding: 3px 10px;
  border-radius: 999px;
  background: #182b50d9;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sponsored-place img { width: 100%; }

.sponsored-name {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  font-weight: 700;
}

.sponsored-name .icon { width: 15px; height: 15px; color: var(--blue); }

/* ------------------------------------------------------------- ratings */
.stars { display: inline-flex; gap: 2px; }

.stars .icon { width: 16px; height: 16px; color: #d7dfec; }

.stars .star.is-on .icon { color: #f2a93b; }

.stars-small .icon { width: 13px; height: 13px; }

/* the rating belongs to the name, so it sits in the same column, not out under the symbol */
.restaurant-name { min-width: 0; }

.restaurant-rating {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13.5px;
}

.restaurant-rating b { color: var(--ink); font-size: 15px; }

.restaurant-description { margin: 16px 0 10px; }

.restaurant-actions { margin-top: 18px; }

.restaurant-verified { margin-top: 14px; }

/* said once, quietly, under the whole list */
.food-directory-note {
  margin: 18px 2px 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

/* ------------------------------------------------------------- reviews */
.place-reviews {
  margin-top: 14px;
  border-top: 1px solid var(--line-soft);
}

.place-reviews > summary {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 0 4px;
  color: var(--blue-dark);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.place-reviews > summary::-webkit-details-marker { display: none; }

/* the chevron points right when closed, down while the reviews are open */
.place-reviews > summary .icon { width: 15px; height: 15px; transition: transform 0.2s; }

.place-reviews[open] > summary .icon { transform: rotate(90deg); }

.review-list { margin: 8px 0 14px; display: grid; gap: 14px; }

.review-list li {
  padding: 12px 14px;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: #fbfcfe;
}

.review-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 12.5px;
}

.review-head b { color: var(--ink); font-size: 13.5px; }

.review-body {
  color: #23375c;
  font-size: 14.5px;
  line-height: 1.7;
  white-space: pre-wrap;
  overflow-wrap: break-word;
  word-break: keep-all;
}

.review-remove { margin-top: 6px; }

.review-remove button { color: var(--muted); font-size: 12.5px; }

.review-remove button:hover { color: var(--coral); }

.review-empty { margin: 6px 0 12px; color: var(--muted); font-size: 14px; }

.review-empty a { color: var(--blue-dark); text-decoration: underline; text-underline-offset: 3px; }

/* ------------------------------------------------------- writing a review */
.review-form {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--tint);
}

.rating-picker {
  display: flex;
  gap: 6px;
  margin: 0;
  padding: 0;
  border: 0;
}

.rating-picker legend {
  padding: 0 0 6px;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 700;
}

.rating-picker label { position: relative; }

.rating-picker input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  border: 0;
  opacity: 0;
}

.rating-picker span {
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 6px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.rating-picker .icon { width: 13px; height: 13px; }

.rating-picker input:checked + span {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
}

.rating-picker input:focus-visible + span { outline: 3px solid #427bf6; outline-offset: 2px; }

.review-form textarea {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  font-size: 14.5px;
  line-height: 1.6;
  resize: vertical;
}

.review-form button { justify-self: start; }

/* --------------------------------------------------- add your restaurant */
.add-place { margin-top: 22px; padding: 22px 24px; }

.add-place h2 {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 19px;
}

.add-place h2 .icon { width: 21px; height: 21px; color: var(--blue); }

.add-place-intro { margin: 8px 0 16px; color: var(--muted); font-size: 14.5px; line-height: 1.7; }

.add-place-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.add-place-grid label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}

.add-place-wide { grid-column: 1 / -1; }

.add-place-grid input,
.add-place-grid select,
.add-place-grid textarea {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  font-size: 14.5px;
  font-weight: 400;
}

.add-place-grid textarea { resize: vertical; line-height: 1.6; }

.add-place form > button { margin-top: 16px; }

.add-place-note { margin-top: 12px; color: var(--muted); font-size: 13px; line-height: 1.7; }

.add-place-note a { color: var(--blue-dark); text-decoration: underline; text-underline-offset: 3px; }

.place-by-member { margin-left: 8px; color: var(--muted); }

@media (max-width: 719px) {
  .dining-controls { gap: 10px; }
  /* on a phone the kinds wrap onto a second line instead of scrolling half a word off the edge */
  .dining-controls .board-nav { flex: 1 1 100%; flex-wrap: wrap; overflow: visible; }
  /* the field needs the whole width there, and the list itself is the count */
  .dining-count { display: none; }
  .dining-controls .dining-search { flex: 1 1 100%; max-width: none; }
  .add-place { padding: 18px 16px; }
  .add-place-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ---- Tina's own food posts (from dolxing.com), above the directory */
.tina-picks { margin-bottom:18px; padding:18px 20px; }
.tina-picks-head { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:12px; }
.tina-picks-head h2 { display:flex; align-items:center; gap:8px; font-size:18px; }
.tina-picks-head h2 .icon { width:20px; height:20px; color:var(--blue); }
.tina-picks-head a { display:inline-flex; align-items:center; gap:4px; color:var(--blue-dark); font-size:14px; font-weight:700; }
.tina-picks-head a .icon { width:15px; height:15px; }
.tina-picks-list { display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:12px; }
.tina-pick { display:flex; flex-direction:column; height:100%; overflow:hidden; border:1px solid var(--line); border-radius:12px; background:#fff; color:var(--ink); }
.tina-pick img, .tina-pick-mark { display:block; width:100%; aspect-ratio:4 / 3; object-fit:cover; background:#f3f6fb; }
.tina-pick-mark { display:grid; place-items:center; color:var(--blue); background:color-mix(in srgb, var(--blue) 8%, #fff); }
.tina-pick-mark .icon { width:34px; height:34px; }
.tina-pick-text { display:grid; gap:4px; padding:10px 12px 12px; }
.tina-pick-text strong { font-size:15px; line-height:1.45; }
.tina-pick-text span { color:#5f6e86; font-size:13.5px; line-height:1.5; }
.tina-pick:hover strong { color:var(--blue-dark); }
.tina-pick:focus-visible { outline:3px solid var(--blue); outline-offset:2px; }
@media (max-width:719px) {
  .tina-picks { padding:16px; }
  .tina-picks-list { grid-template-columns:repeat(2, minmax(0, 1fr)); }
}
