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

/* ---------- home page "Find Us" map ----------
   Map on the left, details on the right; stacks on narrow screens. */

.maps-section {
  padding: clamp(3rem, 6vw, 5rem) 0;
}

.maps-box {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  background: var(--sand);
  border-radius: var(--r-xl);
  padding: clamp(1rem, 3vw, 2rem);
}

.maps-iframe {
  position: relative;
  min-height: 420px;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

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

.maps-details h2 {
  margin: 0 0 1rem;
}

.maps-details p {
  margin: 0 0 0.9rem;
  line-height: 1.55;
}

.maps-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.4rem;
}

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

  .maps-iframe {
    min-height: 320px;
  }
}

/* ============================================================
   MULTI-LOCATION — Delta + Burnaby
   Shared pieces: top bar, footer location columns, the
   "choose your location" order popup, and location cards
   used on home / menu / locations / contact pages.
   ============================================================ */

/* ---------- top bar: both stores ---------- */

.site-topline .tl-locs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.75rem;
}

.site-topline .tl-loc strong {
  color: #fff;
  font-weight: 700;
}

.site-topline .tl-short {
  display: none;
}

.site-topline .tl-all {
  flex: none;
}

@media (max-width: 900px) {
  .site-topline {
    display: block;
  }

  .site-topline .tl-locs {
    display: none;
  }

  .site-topline .tl-short {
    display: inline;
  }
}

/* ---------- footer: one column per store ---------- */

.foot-loc__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.9rem;
}

.foot-loc__actions a {
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.45rem 0.9rem;
  border-radius: var(--r-pill);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.foot-loc__actions a:first-child {
  background: var(--chili);
  border-color: var(--chili);
}

.foot-loc__actions a:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.6);
}

.foot-loc__actions a:first-child:hover {
  background: var(--chili-dark);
  border-color: var(--chili-dark);
}

/* ---------- shared location bits ---------- */

.loc-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--chili);
  background: var(--chili-soft);
  padding: 0.35rem 0.75rem;
  border-radius: var(--r-pill);
  /* stay pill-sized inside flex-column cards */
  align-self: flex-start;
  width: fit-content;
}

.loc-info {
  display: grid;
  gap: 0.6rem;
  margin: 1rem 0 1.25rem;
}

.loc-info li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  line-height: 1.45;
  color: var(--muted);
}

.loc-info .ico {
  color: var(--chili);
  margin-top: 0.2em;
}

.loc-info a {
  color: var(--ink);
  font-weight: 600;
}

.loc-info a:hover {
  color: var(--chili);
}

.loc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: auto;
}

.loc-actions .btn,
.loc-actions .btn-line {
  padding: 0.85rem 1.35rem;
  font-size: 0.95rem;
}

/* ---------- location cards (home, menu chooser, locations, contact) ---------- */

.loc-section {
  padding: clamp(3rem, 6vw, 5rem) 0;
}

.loc-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.25rem, 3vw, 2rem);
}

.loc-card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.loc-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.loc-card__media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--sand);
}

.loc-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.loc-card__media .loc-tag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.loc-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: clamp(1.25rem, 3vw, 1.75rem);
}

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

.loc-hours {
  display: grid;
  gap: 0.3rem;
  padding: 0.85rem 1rem;
  margin-bottom: 1.25rem;
  background: var(--sand);
  border-radius: var(--r-md);
  font-size: 0.92rem;
}

.loc-hours li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.loc-hours li span:last-child {
  font-weight: 600;
}

.loc-map {
  position: relative;
  min-height: 260px;
  margin-top: 1.25rem;
  border-radius: var(--r-lg);
  overflow: hidden;
}

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

@media (max-width: 800px) {
  .loc-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- order popup ---------- */

.loc-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(32, 29, 26, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.loc-modal[hidden] {
  display: none;
}

body.loc-modal-open {
  overflow: hidden;
}

.loc-modal__panel {
  position: relative;
  width: min(52rem, 100%);
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
  background: var(--bg);
  border-radius: var(--r-xl);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  box-shadow: var(--shadow-lg);
}

.loc-modal__panel h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 0.6rem 0 1.5rem;
}

.loc-modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--sand);
  color: var(--ink);
  font-size: 1.5rem;
  line-height: 1;
  transition: background-color 0.2s ease;
}

.loc-modal__close:hover {
  background: var(--sand-2);
}

.loc-modal__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.loc-modal__card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 1.25rem;
  background: var(--card);
}

.loc-modal__card h3 {
  font-size: 1.15rem;
  margin-top: 0.75rem;
}

.loc-modal__card .loc-info {
  font-size: 0.92rem;
}

@media (max-width: 640px) {
  .loc-modal {
    align-items: flex-end;
    padding: 0;
  }

  .loc-modal__panel {
    border-radius: var(--r-xl) var(--r-xl) 0 0;
    max-height: 90vh;
  }

  .loc-modal__grid {
    grid-template-columns: 1fr;
  }
}

/* split-hero photos carry width/height attributes for layout
   stability; let the 4:3 aspect-ratio win over the height attr */
.page-hero--split .ph-img img {
  height: auto;
}
