/* ============================================================
   CUSTOM — Per-store overrides for Template TF
   Add store-specific tweaks here. Loaded last so it wins
   over theme.css and style.css.
   ============================================================ */

/* ------------------------------------------------------------
   VISIT BOX — location card used at the end of the city+cuisine
   landing page. Map on the left, address / phone / hours on the
   right, actions pinned to the bottom-right corner. Built only
   from existing design tokens so it matches the rest of the site.
   ------------------------------------------------------------ */

/* inline links inside legacy note / FAQ copy keep the brand link style */
.delivery-note a,
.faq-answer a {
  color: var(--chili-dark);
  font-weight: 600;
  text-decoration: underline;
}

.visit-box {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(1.4rem, 3vw, 2.4rem);
  align-items: stretch;
  margin-top: 2rem;
  padding: clamp(1.1rem, 2.4vw, 1.6rem);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-md);
}

.visit-box__map {
  position: relative;
  min-height: 380px;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.visit-box__map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.visit-box__details {
  display: flex;
  flex-direction: column;
  gap: 1.05rem;
  padding: 0.4rem 0.3rem 0.2rem;
}

.visit-box__details h3 {
  font-size: clamp(1.25rem, 2.2vw, 1.5rem);
}

.visit-detail h4 {
  font-family: var(--font-display);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--chili);
  margin-bottom: 0.35rem;
}

.visit-detail p,
.visit-detail address {
  font-style: normal;
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--ink);
}

.visit-detail a {
  font-weight: 600;
  color: var(--chili-dark);
}

.visit-detail a:hover {
  text-decoration: underline;
}

.visit-hours {
  list-style: none;
}

.visit-hours li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.4rem 0;
  font-size: 0.95rem;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}

.visit-hours li:last-child {
  border-bottom: none;
}

.visit-box__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: auto;
  padding-top: 0.9rem;
}

@media (max-width: 900px) {
  .visit-box {
    grid-template-columns: 1fr;
  }

  .visit-box__map {
    min-height: 300px;
  }

  .visit-box__actions {
    justify-content: center;
  }
}

/* home page wrapper for the same visit box (index.html) */
.visit-us {
  padding: clamp(3.5rem, 7vw, 6rem) 0;
  background: var(--sand);
}

/* ------------------------------------------------------------
   HOME — dish titles link to their /tags/dishes/ page and FAQ
   answers link to dish + neighbourhood pages, so those links
   need to look like links.
   ------------------------------------------------------------ */

/* intrinsic width/height attributes must not override the layout ratios */
.plate img,
.story-collage img {
  height: auto;
}

.plate h3 a:hover {
  color: var(--chili);
}

.qa .qa-body a {
  color: var(--chili-dark);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s ease;
}

.qa .qa-body a:hover,
.qa .qa-body a:focus-visible {
  color: var(--chili);
}

/* the delivery-areas answer holds 24 neighbourhood links, so it is
   allowed to use the full width of the accordion card */
.qa .qa-body--wide {
  max-width: none;
}

/* neighbourhood / tag links render as a grid of tappable pills
   instead of a 24-item bullet column */
.qa .qa-body .qa-links {
  margin-top: 0.85rem;
  padding-left: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr));
  gap: 0.5rem;
}

.qa .qa-body .qa-links li {
  margin-bottom: 0;
}

.qa .qa-body .qa-links a {
  display: block;
  padding: 0.5rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--sand);
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease,
    color 0.2s ease, transform 0.2s ease;
}

.qa .qa-body .qa-links a:hover,
.qa .qa-body .qa-links a:focus-visible {
  background: var(--chili);
  border-color: var(--chili);
  color: #fff;
  transform: translateY(-1px);
}

@media (prefers-reduced-motion: reduce) {
  .qa .qa-body .qa-links a {
    transition: none;
  }

  .qa .qa-body .qa-links a:hover,
  .qa .qa-body .qa-links a:focus-visible {
    transform: none;
  }
}

/* ------------------------------------------------------------
   DISH PAGES — /tags/dishes/*. Small additions only; layout and
   colour still come from style.css design tokens.
   ------------------------------------------------------------ */

/* intrinsic width/height attributes must not stretch the artwork */
.dish-hero-image img,
.related-dish-card img {
  height: auto;
}

.related-dish-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.related-dish-card h3 {
  font-size: 1.12rem;
  line-height: 1.25;
  margin-bottom: 0.45rem;
}

.related-dish-card h3 a:hover {
  color: var(--chili);
}

/* intro copy sits under a left-aligned h2, so it reads left too */
.dish-description-content .section__description {
  text-align: left;
  margin-inline: 0;
  max-width: 72ch;
}

/* h4 sub-points inside the "how we make it" copy */
.dish-description-content h4 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
  margin: 1.15rem 0 0.3rem;
}

/* pairing list — bullets match the ingredient lists this replaces */
.dish-pairings {
  max-width: 72ch;
  margin-top: 0.9rem;
  display: grid;
  gap: 0.5rem;
}

.dish-pairings li {
  position: relative;
  padding-left: 1.35rem;
  color: var(--muted);
  font-size: 0.97rem;
}

.dish-pairings li::before {
  content: "";
  position: absolute;
  left: 0.15rem;
  top: 0.78em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--chili);
}

.dish-pairings a {
  color: var(--chili-dark);
  text-decoration: underline;
}

/* reviewer name is a heading so the outline stays h2 → h3 */
.reviewer-info h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-top: 0.75rem;
}

.reviewer-info p {
  color: var(--muted);
  font-size: 0.85rem;
}

/* hero CTAs must wrap on narrow phones instead of overflowing */
.dish-price {
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* white secondary button needs an edge on white/sand panels */
.dish-price .btn-secondary {
  border: 1px solid var(--line);
}

.delivery-area-card ul {
  list-style: none;
}
