/* Restaurant finder: balanced cards with every building framed the same way. */
.finder-page .restaurant-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px 18px; }
.finder-page .restaurant-card { border-radius: 18px; }
.finder-page .restaurant-photo { --frame: 1; aspect-ratio: 1 / var(--frame); }
.finder-page .restaurant-photo > img { height: 100%; object-fit: cover; object-position: center; }
/* Framed photos (see src/lib/restaurant-photo-framing.ts) are 4:5. The facade (centre --c, height --s,
   both fractions of the photo) is scaled to about 84% of the frame height, zooming in up to 1.5x on
   small buildings, then centred without ever uncovering the edge of the frame. */
.finder-page .restaurant-photo.is-framed > img {
  --z: clamp(1, 0.84 * var(--frame) / (1.25 * var(--s)), 1.5);
  position: absolute;
  max-width: none;
  width: calc(var(--z) * 100%);
  height: auto;
  left: clamp(calc((1 - var(--z)) * 100%), calc((0.5 - var(--x) * var(--z)) * 100%), 0%);
  top: clamp(calc((1 - 1.25 * var(--z) / var(--frame)) * 100%), calc((0.5 - var(--c) * 1.25 * var(--z) / var(--frame)) * 100%), 0%);
}
.finder-page .restaurant-drive-badge { z-index: 1; left: 10px; top: 10px; padding: 5px 8px; }
.finder-page .restaurant-card-body { padding: 16px 18px 18px; }
.finder-page .restaurant-city { margin: 0 0 2px; font-size: 12px; line-height: 1.3; }
.finder-page .restaurant-card h2 { margin: 0 0 6px; font-size: 21px; line-height: 1.15; }
.finder-page .restaurant-card-body address { margin: 0 0 12px; font-size: 14px; line-height: 1.45; }
.finder-page .restaurant-actions { gap: 6px; padding-top: 8px; }
.finder-page .restaurant-info-link { padding-block: 4px; font-size: 12px; }
.finder-page .restaurant-order-trigger { min-height: 44px; padding: 10px 14px; font-size: 13px; line-height: 1.3; }

@media (max-width: 1200px) {
  .finder-page .restaurant-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1100px) {
  .finder-page .restaurant-grid { gap: 18px 16px; }
}
@media (max-width: 860px) {
  .finder-page .restaurant-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .finder-page .restaurant-grid { grid-template-columns: 1fr; gap: 14px; }
  .finder-page .restaurant-card { border-radius: 16px; }
  .finder-page .restaurant-card h2 { font-size: 22px; }
  .finder-page .restaurant-order-trigger { font-size: 14px; }
}
