/* ========================================
   styles-v2.css — additive styles for the
   3-location preview page only.
   Loaded AFTER styles.css. Reuses existing
   classes/vars wherever possible; this file
   only covers what's genuinely new.
   ======================================== */

/* Nos 3 Emplacements — reuses .deals-grid / .deal-card / .deal-image / .deal-content */
.locations {
  padding: 4rem 0;
  background-color: #f8f9fa;
}

.locations h2 {
  text-align: center;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

/* MOBILE-AUDIT: every sibling section heading (.deals h2, .dishes h2, .gallery h2,
   .hours h2, .contact h2, .locations h2 above) is explicitly centered — reviews.title
   was the one section missing the rule, so it fell back to left/inherit. Same fix,
   unscoped (it's broken at every width, not just mobile). */
#reviews h2 {
  text-align: center;
}

.location-address {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

/* business rule: funnel to online ordering — "Commander" is the full-width primary
   button, "Appeler" is a plain quiet text link below it, not an equal-weight button. */
.location-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: auto;
}

.location-actions .btn {
  width: 100%;
}

.location-call-link {
  text-align: center;
  color: var(--text-gray);
  text-decoration: none;
  font-size: 0.9rem;
  padding: 0.5rem 0;
}

.location-call-link:hover {
  color: var(--primary-color);
}

/* Hours — 3 stacked per-location blocks, each reusing .hours-section/.hours-list */
.hours-location-title {
  text-align: center;
  color: var(--primary-color);
  font-size: 1.5rem;
  margin: 2.5rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--primary-color);
}

.hours-location:first-child .hours-location-title {
  margin-top: 0;
}

/* Printed menu — 3 PDF choice buttons, reuses .btn/.btn-secondary */
.menu-download-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
}


/* MOBILE-AUDIT (390px): hero stacked title + tagline + subtitle + locations-line +
   CTA — 4 text blocks before the button. Target is title + ONE line + CTA; see
   MOBILE-AUDIT.md for what got cut and why. Nothing reworded, French untouched. */
@media (max-width: 480px) {
  /* .hero-locations-line ("Hull · Aylmer · Gatineau — Sur place · À emporter ·
     Livraison") duplicates .services-line right below the hero AND the full
     address/city on every location card further down — drop on the narrowest
     widths only, content stays for tablet/desktop. */
  .hero-locations-line {
    display: none;
  }

  /* .hero-tagline ("Pizzas garnies, poutines et portions généreuses.") duplicates
     the About section ("des portions généreuses...") and the Gatineau location
     card ("garnies, poutines et combos généreux") further down the same page.
     :not(.hero-locations-line) scopes this to the tagline paragraph only — the
     locations line above reuses .hero-tagline too and is already hidden. This
     leaves title + .hero-subtitle ("Votre pizzeria de quartier depuis 1967",
     unique — no duplicate anywhere else on the page) + CTA: title + ONE line. */
  .hero-tagline:not(.hero-locations-line) {
    display: none;
  }

  .hero-subtitle {
    margin-bottom: 0.5rem;
  }

  /* Notre Histoire: one ~130-word paragraph, center-aligned by the existing
     .about-text mobile rule (styles.css:1549) — fine for the short heading/quote,
     but ragged-center long-form text is hard to scan. Left-align just the lead
     paragraph; heading + pull-quote stay centered. */
  .about-text .lead {
    text-align: left;
  }
}


/* Mobile sticky-footer — ORDER-ONLY (Brian 2026-07-02): call button removed, phones
   remain in the location cards / order-direct / contact sections. */
.mobile-sticky-footer .sticky-btn-primary {
  flex: 1;
}

/* Plats Populaires: flat container — no card shadow (Brian, 2026-07-08) */
.dishes.boxed .container {
  box-shadow: none;
}

/* Heures: outer container flat — the inner .hours-section cards keep their own shadow (Brian, 2026-07-08) */
.hours.boxed .container {
  box-shadow: none;
}

/* ========================================
   Location picker modal — opens from every generic "Commander" CTA
   ([data-loc-trigger]); adapted from the menu-group-template /
   chicco-shawarma .loc-modal reference pattern, themed to Milano's vars.
   ======================================== */
.loc-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

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

.loc-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(44, 44, 44, 0.6);
}

.loc-modal__panel {
  position: relative;
  background: var(--white);
  color: var(--text-dark);
  border-radius: 14px;
  max-width: 460px;
  width: 100%;
  max-height: 86vh;
  overflow-y: auto;
  padding: 1.5rem 1.5rem 1.25rem;
  box-shadow: var(--shadow-hover);
}

.loc-modal__panel h2 {
  font-family: var(--font-primary);
  font-size: 1.25rem;
  margin: 0 0 1.1rem;
  padding-right: 2rem;
  color: var(--primary-color);
}

.loc-modal__close {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  background: none;
  border: 0;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  color: var(--text-gray);
  padding: 0.3rem 0.5rem;
}

.loc-modal__close:hover {
  color: var(--text-dark);
}

.loc-modal__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.loc-modal__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  text-decoration: none;
  border: 2px solid var(--border-light);
  border-radius: var(--border-radius);
  padding: 0.85rem 1rem;
  color: var(--text-dark);
  transition: var(--transition);
}

.loc-modal__item:hover,
.loc-modal__item:focus-visible {
  border-color: var(--primary-color);
  background: rgba(196, 30, 58, 0.05);
}

.loc-modal__item strong {
  display: block;
  font-size: 1rem;
}

.loc-modal__item span:not(.loc-modal__go) {
  color: var(--text-gray);
  font-size: 0.88rem;
}

.loc-modal__go {
  flex: none;
  background: var(--primary-color);
  color: var(--white);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.5rem 0.9rem;
  border-radius: 6px;
  transition: var(--transition);
}

.loc-modal__item:hover .loc-modal__go {
  background: var(--primary-dark);
}

@media (prefers-reduced-motion: no-preference) {
  .loc-modal__panel {
    animation: locModalPop 0.18s ease-out;
  }

  @keyframes locModalPop {
    from {
      transform: translateY(10px);
      opacity: 0;
    }
    to {
      transform: none;
      opacity: 1;
    }
  }
}

@media (max-width: 480px) {
  .loc-modal__panel {
    padding: 1.25rem 1.1rem 1rem;
  }
}
