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

/* ---------- location + map box (tag / landing pages) ----------
   Map on the left, address, phone and hours on the right, with
   the action buttons pinned to the bottom-right corner.
   Uses the same tokens as style.css so it stays on-theme.      */

.location-container {
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
}

.location-box {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  background: var(--card);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  margin-top: 2rem;
}

.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;
}

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

.location-box__info h3 {
  font-size: 1.35rem;
  color: var(--basil);
}

.location-detail h4 {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--chili);
  margin-bottom: 0.25rem;
}

.location-detail address,
.location-detail p {
  font-style: normal;
  color: var(--muted);
}

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

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

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

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

.location-box__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: flex-end;
  align-items: center;
  margin-top: auto;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.location-box__actions .btn,
.location-box__actions .btn-secondary {
  font-size: 0.95rem;
  padding: 0.85rem 1.5rem;
}

.location-box__actions .btn-secondary {
  border: 1px solid var(--line);
}

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

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

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

/* ------------------------------------------------------------
   Pickup / find-us box — map on the left, address, contact and
   hours on the right, action buttons pinned to the bottom-right
   corner. Used by tags/indian-vegetarian-food-takeout-hamilton.html
   ------------------------------------------------------------ */

.pickup-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 2rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

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

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

.pickup-box__info {
  display: flex;
  flex-direction: column;
  padding: clamp(1.4rem, 3vw, 2.25rem);
}

.pickup-box__info h3 {
  font-size: 1.35rem;
  color: var(--basil);
  margin-bottom: 0.5rem;
}

.pickup-box__info h4 {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 1.25rem 0 0.65rem;
}

.pickup-box__info .info-cards {
  gap: 0.7rem;
}

.pickup-box__info .info-card {
  background: var(--sand);
  box-shadow: none;
  padding: 0.9rem 1rem;
}

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

.pickup-box__hours li:last-child {
  border-bottom: none;
}

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

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

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

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

/* ------------------------------------------------------------
   HOME PAGE (index.html)
   ------------------------------------------------------------ */

/* Keyword-led H1 replaces the template's single-word brand name,
   so it needs a slightly smaller type scale to stay readable on
   phones without changing the hero design. */
.hero-full h1 {
  font-size: clamp(2.1rem, 5.4vw, 4rem);
  max-width: 20ch;
}

/* "Visit us" map box at the end of the home page — matches the
   vertical rhythm of the other home sections. */
.visit-section {
  padding: clamp(3.5rem, 7vw, 5.5rem) 0;
}

/* FAQ answers link out to every dish and neighbourhood page, so the
   links need to actually look like links — and stay legible on the
   sand-coloured answer panel. */
.qa .qa-body a {
  color: var(--chili-dark);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  text-decoration-color: color-mix(in srgb, var(--chili-dark) 42%, transparent);
  transition: color 0.18s ease, text-decoration-color 0.18s ease;
}

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

.qa .qa-body a:focus-visible {
  outline: 2px solid var(--chili);
  outline-offset: 3px;
  border-radius: 2px;
}

/* The linked dish list reads as a scannable index, not a wall of text. */
.qa .qa-body ul.qa-links li {
  margin-bottom: 0.45rem;
  line-height: 1.5;
}

/* Long neighbourhood list inside an FAQ answer — tidy columns that
   step down with the viewport. The 58ch answer cap is lifted here so
   the columns have room to breathe. */
.qa .qa-body:has(ul.qa-cols) {
  max-width: 74ch;
}

.qa .qa-body ul.qa-cols {
  max-width: none;
  columns: 3;
  column-gap: 1.75rem;
  margin-right: 0;
}

.qa .qa-body ul.qa-cols li {
  break-inside: avoid;
  margin-bottom: 0.4rem;
}

@media (max-width: 900px) {
  .qa .qa-body ul.qa-cols {
    columns: 2;
  }
}

@media (max-width: 520px) {
  .qa .qa-body ul.qa-cols {
    columns: 1;
  }
}

/* ---- price on dish pages (tags/dishes/*) and menu house-favourite cards ---- */
.dish-price .dish-price-amount {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  line-height: 1.2;
  color: var(--chili);
  white-space: nowrap;
}

.dish-price .dish-price-amount span {
  display: block;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.65;
  color: inherit;
}

.bd-body h3 .bd-price {
  margin-left: 0.5rem;
  font-size: 0.85em;
  font-weight: 700;
  color: var(--chili);
  white-space: nowrap;
}

@media (max-width: 520px) {
  .dish-price {
    flex-wrap: wrap;
    gap: 0.85rem;
  }
}

/* ---- dish image framing --------------------------------------------------
   The base `img` reset now carries `height: auto`, so the HTML height
   attribute no longer pins a box height and every `aspect-ratio` below is
   honoured. These rules give the dish grids a consistent frame regardless of
   the source photo's ratio (some are 4:3, some near-square).            ---- */

/* related-dish cards on tags/dishes/* — had no width/ratio/object-fit, so the
   400x300 attributes distorted non-4:3 photos */
.related-dish-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
}

/* dish hero photo — keep it generous but stop near-square photos running tall */
.dish-hero-image img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
}

/* neighbourhood pages (tags/places/*) feature image */
.explore__image img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
}
