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

/* ------------------------------------------------------------
   Tag pages — sub-headings & inline links inside legacy blocks
   ------------------------------------------------------------ */

.explore__content h3 {
  font-size: 1.2rem;
  margin-top: 1.75rem;
  color: var(--basil);
}

.order-step p a,
.faq-answer a,
.delivery-area-card a,
.qa .qa-body a {
  color: var(--chili-dark);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
  transition: color 0.18s ease;
}

.order-step p a:hover,
.faq-answer a:hover,
.delivery-area-card a:hover,
.qa .qa-body a:hover,
.qa .qa-body a:focus-visible {
  color: var(--chili);
  text-decoration-thickness: 2px;
}

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

.faq-item .faq-question {
  color: var(--basil);
}

/* ------------------------------------------------------------
   Home FAQ — internal link lists.
   The delivery-area and dish answers carry every tag page on
   the site, so they need more room than the default 58ch
   answer column and a column layout that stays scannable.
   ------------------------------------------------------------ */

.qa .qa-body:has(.qa-link-list) {
  max-width: 72ch;
}

.qa .qa-body ul.qa-link-list {
  columns: 2;
  column-gap: 1.6rem;
  padding-left: 1.1rem;
}

.qa .qa-body ul.qa-link-list li {
  break-inside: avoid;
  margin-bottom: 0.35rem;
}

@media (min-width: 700px) {
  .qa .qa-body ul.qa-link-list--areas {
    columns: 3;
  }
}

@media (max-width: 480px) {
  .qa .qa-body ul.qa-link-list {
    columns: 1;
  }
}

/* Dish answers pair a link with a description, so they stay
   single-column and only gain the extra width. */
.qa .qa-body ul.qa-link-list--dishes {
  columns: 1;
}

/* ------------------------------------------------------------
   City + cuisine SEO landing page — keep the split-section
   photo at its true aspect ratio. The width/height attributes
   are kept for CLS, so height must be released to auto or the
   HTML height attribute stretches the image.
   ------------------------------------------------------------ */

#local-info .explore__image img {
  height: auto;
}

#local-info .section__description + .section__description {
  margin-top: 1rem;
}

/* ------------------------------------------------------------
   Service tag pages — keep the split-section photo at its true
   aspect ratio. The width/height attributes stay for CLS, so
   height has to be released or the attribute stretches the image.
   ------------------------------------------------------------ */

#delivery-service .explore__image img,
#takeout-service .explore__image img {
  height: auto;
}

/* ------------------------------------------------------------
   Location box — shared by the city landing page and the
   service tag pages. Map on the left, address / phone / hours
   on the right, action buttons anchored to the bottom-right
   corner. Uses the tokens from style.css so it inherits theme.
   ------------------------------------------------------------ */

.location__container .section__description,
.location-box-container .section__description {
  margin-bottom: 0;
}

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

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

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

@media (min-width: 900px) {
  .location-box__map {
    min-height: 460px;
  }
}

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

.location-box__details {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  padding: clamp(1.6rem, 3vw, 2.4rem);
}

.location-box__title {
  font-size: clamp(1.2rem, 2.2vw, 1.5rem);
  color: var(--basil);
  margin-bottom: 0.25rem;
}

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

.location-detail address {
  font-style: normal;
  font-weight: 600;
  color: var(--ink);
}

.location-detail p {
  font-weight: 600;
  color: var(--ink);
}

.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.4rem 0;
  font-size: 0.94rem;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}

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

.location-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.8rem;
  margin-top: auto;
  padding-top: 0.75rem;
}

@media (max-width: 480px) {
  .location-actions {
    justify-content: stretch;
  }

  .location-actions .btn,
  .location-actions .btn-line {
    flex: 1 1 100%;
  }
}

/* ------------------------------------------------------------------
   Image sizing guard (Phase 2)
   The markup carries intrinsic width/height attributes for CLS, which
   map to the CSS width/height properties. Where a rule governs the box
   with aspect-ratio + object-fit (or width:100% in a masonry column),
   the attribute height must yield to it or the image renders stretched.
   ------------------------------------------------------------------ */
.plate img,
.bd-img img,
.snap-grid img,
.gallery-wall img,
.story-collage .img-a,
.story-collage .img-b,
.dish-hero-image img {
  height: auto;
}
