/* Restaurant guide - width matches search bar; inset so cards don’t touch edges */
.restaurant-guide-wrap {
  max-width: 1056px;
  margin-left: auto;
  margin-right: auto;
  padding: 0.75rem 0.6rem 1rem;
  box-sizing: border-box;
}

.restaurant-results-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  padding-left: 0.3rem;
  padding-right: 0.3rem;
  box-sizing: border-box;
}

.restaurant-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  height: 100%;
  min-width: 0;
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid #d9e2f1;
  transition: box-shadow 0.2s ease;
  /* Space inside the card so the image and text don’t sit on the border */
  padding: 0.75rem;
  box-sizing: border-box;
}

.restaurant-card:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Image on top: 400×300, centred when the card is wider than 400px */
.restaurant-image {
  flex: 0 0 auto;
  width: 100%;
  max-width: 400px;
  height: 300px;
  margin-left: auto;
  margin-right: auto;
  overflow: hidden;
  background: #e8eef8;
}

.restaurant-image img {
  width: 400px;
  max-width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.restaurant-body {
  flex: 1;
  min-width: 0;
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
  /* Match the left/right offset of the centred 400px-wide image */
  padding-left: max(0px, calc((100% - 400px) / 2));
  padding-right: max(0px, calc((100% - 400px) / 2));
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.restaurant-name {
  font-family: "Work Sans", "Segoe UI", Arial, sans-serif;
  font-weight: 300;
  letter-spacing: 0.015em;
  font-size: 1.25rem;
  margin: 0 0 0.35rem 0;
  color: #0390fc;
}

.restaurant-location {
  font-size: 0.9rem;
  color: #6b7280;
  margin: 0 0 0.25rem 0;
}

.restaurant-location .icon-map-marker {
  margin-right: 0.25rem;
  color: #555;
}

.restaurant-meta {
  font-size: 0.9rem;
  color: #4b5563;
  margin: 0 0 0.5rem 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.restaurant-price {
  color: #059669;
  font-weight: 500;
}

.restaurant-walk {
  color: #6b7280;
}

.restaurant-walk .icon-directions_walk {
  font-size: 1em;
}

.restaurant-desc {
  font-size: 0.9rem;
  color: #374151;
  margin: 0 0 1rem 0;
  line-height: 1.5;
  /* Cap at three lines; scroll when copy is longer (needs min-height for flex children) */
  max-height: calc(1.5em * 3);
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
}

.restaurant-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  font-size: 0.85rem;
  /* Pin to bottom of .restaurant-body so rows align when descriptions differ in length */
  margin-top: auto;
}

.restaurant-link {
  color: #0390fc;
  text-decoration: none;
}

.restaurant-link:hover {
  text-decoration: underline;
}

.restaurant-link .icon-phone {
  margin-right: 0.2rem;
  font-size: 0.9em;
}

@media (max-width: 768px) {
  .restaurant-results-list {
    grid-template-columns: 1fr;
  }

  .restaurant-image {
    max-width: none;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }

  .restaurant-image img {
    width: 100%;
    height: 300px;
  }
}
