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

/* ============================================================
   DISH PAGES — Friendz Dhaba
   Styles used only by the SEO dish pages in /tags/dishes/.
   Everything below reuses the tokens defined in style.css.
   ============================================================ */

/* ---------- FAQ: heading semantics inside <summary> ---------- */

.qa summary h3 {
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  letter-spacing: inherit;
  color: inherit;
  margin: 0;
}

/* ---------- "Visit us" boxed map + contact details ---------- */

.dish-location .section__header {
  margin-bottom: 0.75rem;
}

.location-box {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  background: var(--card);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  margin-top: 2.25rem;
}

.location-box__map {
  position: relative;
  min-height: 420px;
  background: var(--sand);
}

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

.location-box__info {
  padding: clamp(1.5rem, 3vw, 2.5rem);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.location-box__info h3 {
  font-size: 1.45rem;
  margin: 0;
}

.location-box__info > p {
  color: var(--muted);
  font-size: 0.95rem;
  margin: -0.6rem 0 0;
}

.location-list {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.location-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.location-list .loc-ic {
  flex: none;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  background: var(--chili-soft);
  color: var(--chili);
  font-size: 1.1rem;
}

.location-list h4 {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.15rem;
}

.location-list p,
.location-list a {
  color: var(--ink);
  font-size: 0.98rem;
  line-height: 1.5;
  margin: 0;
}

.location-list a:hover {
  color: var(--chili);
}

.location-hours {
  display: grid;
  gap: 0.2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.location-hours li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.95rem;
  color: var(--ink);
}

.location-hours span:last-child {
  color: var(--muted);
  white-space: nowrap;
}

.location-box__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: auto;
  padding-top: 0.5rem;
}

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

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

@media (max-width: 480px) {
  .location-box__actions .btn,
  .location-box__actions .btn-secondary {
    flex: 1 1 100%;
    justify-content: center;
    text-align: center;
  }

  /* keep each day range on one line on small screens */
  .location-hours li {
    font-size: 0.85rem;
    gap: 0.5rem;
  }

  .location-hours span {
    white-space: nowrap;
  }
}

/* Reviewer name sits at h3 so the dish-page outline never skips a level;
   keep the visual weight the template gave the old h4. */
.reviews-container .reviewer-info h3 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: normal;
  color: var(--ink);
  margin: 0.75rem 0 0;
}

/* The width/height attributes on the hero photo are kept for CLS, so the
   intrinsic ratio has to drive the height or the image renders stretched. */
.dish-hero-image img {
  height: auto;
}

/* Editorial block: the heading is left-aligned, so the body copy is too. */
.dish-description-content .section__description {
  text-align: left;
  max-width: 72ch;
  margin-inline: 0;
}

/* ============================================================
   TAKEOUT PAGE — Friendz Dhaba
   Styles used only by /tags/indian-food-takeout-brampton.html.
   Reuses the tokens and blocks defined above.
   ============================================================ */

/* The width/height attributes on the split-section photo are kept for CLS,
   so the intrinsic ratio has to drive the height or it renders stretched. */
.explore__image img {
  height: auto;
}

/* Map box: park the two actions in the bottom corner of the details panel. */
.takeout-location .location-box__actions,
.home-location .location-box__actions {
  justify-content: flex-end;
}

@media (max-width: 900px) {
  .takeout-location .location-box__actions,
  .home-location .location-box__actions {
    justify-content: flex-start;
  }
}

/* ============================================================
   HOME PAGE — Friendz Dhaba
   Styles used only by index.html. Reuses the tokens and the
   .location-box block defined above.
   ============================================================ */

/* "Visit us" band closing the home page — same rhythm as the
   other home sections, sand ground so it separates from the
   white CTA band above it. */
.home-location {
  padding: clamp(3.5rem, 7vw, 6rem) 0;
  background: var(--sand);
}

/* .sec-head already carries the gap under the heading. */
.home-location .location-box {
  margin-top: 0;
}

/* Home FAQ answers carry the internal links to the dish and
   neighbourhood pages, so they have to read as links. */
.faq .qa-body a {
  color: var(--chili-dark);
  font-weight: 600;
  text-decoration: underline;
}

.faq .qa-body a:hover {
  color: var(--chili);
}

/* The delivery-areas answer carries 21 neighbourhood links. A single
   58ch column turns that into a wall, so flow those lists into columns
   and drop the bullets. Answers without a link grid keep the narrower
   measure the template gives prose. */
.faq .qa-body:has(.link-grid) {
  max-width: 46rem;
}

.faq .qa-body .link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12.5rem, 1fr));
  gap: 0.1rem 1.5rem;
  margin-top: 0.5rem;
  padding-left: 0;
  list-style: none;
}

.faq .qa-body .link-grid li {
  margin-bottom: 0.2rem;
}

.faq .qa-body .link-grid a {
  display: inline-block;
  padding: 0.1rem 0;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

/* Question text sits at h3 so the home page outline never skips
   a level; keep the weight the template gave the plain summary. */
.faq .qa summary h3 {
  flex: 1;
}

/* The width/height attributes on the home photos are kept for CLS, but the
   height attribute is a presentational hint that would win over the card's
   aspect-ratio and stretch the crop — release it so aspect-ratio governs. */
.plate img,
.story-collage .img-a,
.story-collage .img-b {
  height: auto;
}
