/* ===========================================================
   Location listing (amg_location archive, /locations/) — scoped add-ons.
   Loaded ONLY on the locations archive (see functions.php). Reuses the
   global design system (main.css) for everything else.
   =========================================================== */

/* Hide the eyebrow pill in the hero on this page only. */
.post-type-archive-amg_location .ihero .pill{ display:none; }

/* Info band — a row of separate boxes below the finder (credibility-band style). */
/* Tighten the gap between the finder and the band on every screen size.
   Scoped to the archive body class so it reliably beats the base .section rule. */
section.section.loc-finder-wrap{ padding-bottom:0; }
section.section.loc-infoband-wrap{ padding-top:84px; }
@media(max-width:640px){ section.section.loc-infoband-wrap{ padding-top:40px; } }
.loc-infoband{ display:grid; grid-template-columns:repeat(5,1fr); gap:18px; }
.loc-infoband__item{
  background:#EFF9FF; border-radius:var(--radius);
  padding:30px 20px; text-align:center;
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:12px;
  transition:transform .2s ease, box-shadow .2s ease;
}
.loc-infoband__item:hover{ transform:translateY(-4px); box-shadow:0 14px 30px rgba(16,40,80,.12); }
.loc-infoband__ic{ width:48px; height:48px; object-fit:contain; }
.loc-infoband__h{ font-size:.72rem; font-weight:700; letter-spacing:.12em; text-transform:uppercase; color:var(--blue); }
.loc-infoband__t{ font-size:1rem; font-weight:700; color:var(--ink); line-height:1.35; }
@media(max-width:1000px){ .loc-infoband{ grid-template-columns:repeat(3,1fr); } }
@media(max-width:620px){ .loc-infoband{ grid-template-columns:repeat(2,1fr); gap:14px; } }
@media(max-width:380px){ .loc-infoband{ grid-template-columns:1fr; } }

/* Boxed blue CTA (matches the location detail page / About Us style). */
.loc-arch-cta-wrap{ background:var(--cyan-50); }
.loc-arch-cta{ background:#0059A6; color:#fff; border-radius:24px; padding:64px 40px; text-align:center; box-shadow:0 26px 60px -24px rgba(0,89,166,.55); }
.loc-arch-cta h2{ color:#fff; margin:0 0 14px; }
.loc-arch-cta .lead{ color:rgba(255,255,255,.85); margin:0 auto 26px; max-width:60ch; }
.loc-arch-cta__btns{ display:flex; gap:14px; justify-content:center; flex-wrap:wrap; }
.loc-arch-cta .btn--light{ background:#fff; color:#0059A6; }
.loc-arch-cta .btn--light:hover{ background:#e9f2fb; color:#0059A6; }
.loc-arch-cta__ghost{ background:transparent; color:#fff; border-color:rgba(255,255,255,.6); }
.loc-arch-cta__ghost:hover{ background:#fff; color:#0059A6; border-color:#fff; }
@media(max-width:640px){ .loc-arch-cta{ padding:44px 22px; } }

/* Banner: text on the LEFT, image on the RIGHT (two-column). */
.loc-arch-hero .container{ text-align:left; }
.loc-arch-hero__text{ min-width:0; }
.loc-arch-hero .arch-intro{ margin:0; max-width:52ch; }
.loc-arch-hero__media img{ width:100%; height:340px; object-fit:cover; border-radius:var(--radius); box-shadow:0 18px 40px rgba(0,0,0,.28); display:block; }
/* Small eyebrow heading — light brand blue on the navy hero. */
.loc-arch-hero .loc-arch-hero__eyebrow{
  margin:0 0 10px; max-width:none; text-transform:uppercase; letter-spacing:.16em;
  font-size:.74rem; font-weight:700; color:#6ea8ff;
}
@media(max-width:860px){
  .loc-arch-hero .container{ text-align:center; }
  .loc-arch-hero .arch-intro{ margin-left:auto; margin-right:auto; }
  .loc-arch-hero__media img{ height:240px; }
}

/* ===========================================================
   Location finder — zip search + map + scrollable list.
   Layout mirrors the reference; colours are the site's own.
   =========================================================== */
.loc-finder-wrap .container{ max-width:1160px; }

/* Zip search bar */
.loc-find{ display:flex; align-items:center; justify-content:center; gap:16px; flex-wrap:wrap; margin:0 0 40px; }
.loc-find__label{ display:inline-flex; align-items:center; gap:8px; font-weight:600; color:var(--ink); font-size:1rem; }
.loc-find__label svg{ color:var(--blue); flex:0 0 auto; }
.loc-find__group{ display:flex; }
.loc-find__zip{ padding:12px 16px; min-width:230px; font-size:.95rem; color:var(--ink);
  border:1px solid var(--cyan-200); border-right:0; border-radius:10px 0 0 10px; background:#fff; }
.loc-find__zip:focus{ outline:none; border-color:var(--blue); }
.loc-find__btn{ padding:12px 26px; font-size:.95rem; font-weight:700; cursor:pointer;
  background:var(--blue); color:#fff; border:1px solid var(--blue); border-radius:0 10px 10px 0; transition:background .2s ease; }
.loc-find__btn:hover{ background:var(--blue-dark); }

/* Map (left) + list (right) */
.loc-finder{ display:grid; grid-template-columns:1.35fr .95fr; gap:0;
  border:1px solid var(--line); border-radius:var(--radius); overflow:hidden; box-shadow:var(--shadow); }
.loc-finder__map{ position:relative; min-height:580px; background:var(--cyan-50); }
.loc-finder__map iframe{ position:absolute; inset:0; width:100%; height:100%; border:0; display:block; }
/* Leaflet canvas — all locations pinned. z-index:0 keeps it under the sticky header. */
#locMapCanvas{ position:absolute; inset:0; width:100%; height:100%; z-index:0; }
#locMapCanvas .leaflet-popup-content{ font-family:var(--sans); font-size:.88rem; line-height:1.5; color:var(--ink); }
#locMapCanvas .leaflet-popup-content strong{ color:var(--blue); }
#locMapCanvas .loc-pop__dir{
  display:inline-block; margin-top:8px; padding:6px 14px; border-radius:999px;
  background:var(--blue); color:#fff; font-weight:700; font-size:.8rem; text-decoration:none;
}
#locMapCanvas .loc-pop__dir:hover{ background:var(--blue-dark); color:#fff; }
.loc-finder__list{ max-height:580px; overflow-y:auto; overscroll-behavior:auto; background:#fff; }

/* One location card */
.loc-item{ padding:22px 24px; border-bottom:1px solid var(--line); cursor:pointer; transition:background .2s ease, box-shadow .2s ease; }
.loc-item:last-child{ border-bottom:0; }
.loc-item:hover{ background:var(--cyan-50); }
.loc-item.is-active{ background:var(--cyan-100); box-shadow:inset 5px 0 0 var(--blue); }
.loc-item.is-active h3{ color:var(--blue); }
.loc-item h3{ margin:0 0 6px; font-family:var(--serif); font-size:1.2rem; font-weight:600; color:var(--ink); }
.loc-item__addr{ margin:0 0 10px; color:var(--body); font-size:.9rem; line-height:1.5; white-space:pre-line; }
.loc-item__phones{ display:flex; flex-direction:column; align-items:flex-start; gap:4px; }
.loc-item__phone{ display:inline-flex; align-items:center; gap:7px; color:var(--blue); font-weight:700; font-size:.95rem; text-decoration:none; }
.loc-item__phone:hover{ color:var(--blue-dark); }
.loc-item__tags{ display:flex; flex-wrap:wrap; gap:7px; margin:12px 0 16px; }
.loc-item__tag{ font-size:.72rem; font-weight:600; padding:4px 11px; border-radius:999px;
  background:var(--cyan-100); color:var(--blue); border:1px solid var(--cyan-200); }
.loc-item__btns{ display:flex; gap:10px; flex-wrap:wrap; }
.loc-item__btn{ flex:1 1 auto; min-width:0; text-align:center; white-space:nowrap;
  padding:10px 14px; border-radius:10px; font-size:.85rem; font-weight:600; text-decoration:none; border:1px solid transparent; transition:.2s ease; }
.loc-item__btn--dir{ background:#fff; color:var(--blue); border-color:var(--cyan-200); }
.loc-item__btn--dir:hover{ background:var(--cyan-50); border-color:var(--blue); }
.loc-item__btn--book{ background:var(--blue); color:#fff; border-color:var(--blue); }
.loc-item__btn--book:hover{ background:var(--blue-dark); }

@media(max-width:860px){
  .loc-finder{ grid-template-columns:1fr; }
  .loc-finder__map{ min-height:320px; }
  .loc-finder__list{ max-height:none; }
  .loc-find{ gap:12px; margin-bottom:30px; }
  .loc-find__label{ flex:1 1 100%; justify-content:center; }
}
@media(max-width:420px){
  .loc-find{ margin-bottom:24px; }
  .loc-find__group{ width:100%; }
  .loc-find__zip{ flex:1 1 auto; min-width:0; }
}

/* ---- 1280px tier ONLY — match Home/About side gutters ----
   The banner + info band + CTA use the global 1200px container and the finder a
   1160px one, so at 1280px the content sits closer to the edge than Home/About.
   Opt into the site's full-width gutter system (--fs-*) like the About page, for
   the 1025–1280px band only. 1920 / 1536 / 1440 / mobile are frozen and left
   as-is; the header/footer are untouched (rule targets .ihero/.section only). */
@media(min-width:1025px) and (max-width:1280px){
  .post-type-archive-amg_location .ihero .container,
  .post-type-archive-amg_location .section .container{ max-width:none; margin-left:0; margin-right:0; }
  .post-type-archive-amg_location .ihero .container{   padding-left:var(--fs-banner-pl,120px);  padding-right:var(--fs-banner-pr,100px); }
  .post-type-archive-amg_location .section .container{ padding-left:var(--fs-section-pl,170px); padding-right:var(--fs-section-pr,170px); }
}
