/* ===========================================================
   Single location detail page — premium redesign (NO sidebar).
   Full-width, sectioned layout built on the global design
   system (main.css). Loaded ONLY on single amg_location pages
   (conditional enqueue in functions.php), so it cannot affect
   the Home / About / Providers / Provider-detail pages.
   =========================================================== */

/* ---- Hero (ihero--media, dark) ---- */
.loc-hero__addr{ margin:.5em 0 0; color:rgba(255,255,255,.85); font-size:1.04rem; }
.loc-hero__btns{ display:flex; gap:14px; flex-wrap:wrap; margin-top:24px; }
.loc-hero .ihero__media img{ object-position:center; }

/* ---- Credibility band (directly below hero): cyan cards, icon on top, label
        below — reference-2 card layout, content from the qualification badges. ---- */
/* Tighten the gap between the credibility band and the About section (both white). */
.loc-cred-sec{ padding-bottom:22px; }
.loc-about-sec{ padding-top:30px; }
.loc-cred{ display:grid; grid-template-columns:repeat(6,1fr); gap:18px; }
.loc-cred-card{
  background:#EFF9FF; border-radius:var(--radius);
  padding:36px 22px; min-height:222px;
  display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; gap:24px;
  transition:transform .2s ease, box-shadow .2s ease;
}
.loc-cred-card:hover{ transform:translateY(-4px); box-shadow:0 14px 30px rgba(16,40,80,.12); }
.loc-cred-card__ic{ color:var(--blue); line-height:0; }
/* 72px icons with a very thin stroke (overrides the inline stroke-width). */
.loc-cred-card__ic svg{ width:72px; height:72px; stroke-width:1.25; }
.loc-cred-card b{ font-family:var(--sans); font-size:.98rem; font-weight:600; color:var(--ink); line-height:1.35; }
@media(max-width:980px){ .loc-cred{ grid-template-columns:repeat(3,1fr); } }
@media(max-width:560px){ .loc-cred{ grid-template-columns:repeat(2,1fr); gap:14px; } .loc-cred-card{ min-height:196px; padding:30px 18px; } }

/* ---- Visit info + Map (two columns; collapses on tablet) ---- */
.loc-grid{ display:grid; grid-template-columns:1fr 1.08fr; gap:36px; align-items:stretch; }
.loc-grid--spaced{ margin-top:56px; }
.loc-card{
  background:#fff; border:1px solid var(--cyan-200); border-radius:var(--radius);
  box-shadow:0 10px 28px rgba(16,40,80,.07); padding:34px 32px;
  display:flex; flex-direction:column;
}
.loc-card__title{ margin:0 0 24px; font-size:1.5rem; line-height:1.25; }
.loc-facts{ display:grid; gap:20px; }
.loc-fact{ display:flex; gap:14px; align-items:flex-start; }
.loc-fact__ic{
  flex:0 0 44px; width:44px; height:44px; border-radius:12px;
  background:var(--cyan-100); color:var(--blue);
  display:flex; align-items:center; justify-content:center;
}
.loc-fact__ic svg{ width:20px; height:20px; }
.loc-fact div b{ display:block; color:var(--ink); font-size:.96rem; margin-bottom:2px; }
.loc-fact div span{ display:block; color:var(--body); font-size:.92rem; line-height:1.55; }
.loc-fact a{ color:var(--blue); font-weight:600; }
.loc-fact a:hover{ color:var(--blue-dark); }
.loc-card__btns{ display:flex; gap:12px; flex-wrap:wrap; margin-top:auto; padding-top:28px; }

.loc-map{
  border-radius:var(--radius); overflow:hidden;
  box-shadow:0 10px 28px rgba(16,40,80,.07);
  min-height:400px; background:var(--cyan-50);
}
.loc-map iframe{ width:100%; height:100%; min-height:400px; border:0; display:block; }

/* ---- About this location (body copy) — left-aligned, full width ---- */
.loc-prose > :first-child{ margin-top:0; }

/* ---- Available Doctors — Reference-2 detail-card style: left avatar +
        name (bold) / credential (blue) / schedule (muted), with a smooth
        hover-revealed "View Details" last line. ---- */
.locdoc-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:22px; margin-top:8px; }
.locdoc-card{
  display:flex; flex-direction:column; align-items:center; text-align:center;
  background:#fff; border:1px solid var(--cyan-200); border-radius:var(--radius);
  padding:28px 22px; box-shadow:0 8px 22px rgba(16,40,80,.06); color:var(--ink);
  transition:transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.locdoc-card:hover{ transform:translateY(-5px); box-shadow:var(--shadow); border-color:#06A9FF; }
.locdoc-card__img{
  width:104px; height:104px; border-radius:999px;
  object-fit:cover; object-position:top; background:var(--cyan-100); margin-bottom:16px; display:block;
}
.locdoc-card__name{ font-family:var(--sans); font-weight:700; font-size:1.02rem; margin:0; color:var(--ink); line-height:1.3; }
.locdoc-card:hover .locdoc-card__name{ color:var(--blue); }
.locdoc-card__role{ display:block; color:var(--blue); font-weight:600; font-size:.86rem; margin-top:5px; }
.locdoc-card__sched{ color:var(--body); font-size:.82rem; line-height:1.65; margin-top:14px; padding-top:14px; border-top:1px solid var(--line); width:100%; }
.locdoc-card__more{
  display:block; color:var(--blue); font-weight:600; font-size:.86rem; margin-top:12px;
  opacity:0; transform:translateY(6px); transition:opacity .3s ease, transform .3s ease;
}
.locdoc-card:hover .locdoc-card__more{ opacity:1; transform:translateY(0); }
@media(max-width:1024px){ .locdoc-grid{ grid-template-columns:repeat(3,1fr); } }
@media(max-width:720px){ .locdoc-grid{ grid-template-columns:repeat(2,1fr); } }
@media(max-width:440px){ .locdoc-grid{ grid-template-columns:1fr; } }

/* ---- Treatments Offered: icon tiles (ref 1) — circular icon on top, label
        below, first tile highlighted. ---- */
.loc-tiles{ display:grid; grid-template-columns:repeat(4,1fr); gap:18px; margin-top:34px; }
.loc-tile{
  background:#fff; border:1px solid var(--cyan-200); border-radius:var(--radius);
  padding:28px 18px; text-align:center; color:var(--ink);
  display:flex; flex-direction:column; align-items:center; gap:16px;
  box-shadow:0 6px 18px rgba(16,40,80,.05);
  transition:transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.loc-tile:hover{ transform:translateY(-4px); box-shadow:0 14px 30px rgba(16,40,80,.1); border-color:var(--blue); }
.loc-tile__ic{
  width:60px; height:60px; border-radius:999px; background:var(--cyan-100); color:var(--blue);
  display:flex; align-items:center; justify-content:center; flex:0 0 auto;
}
.loc-tile__ic svg{ width:28px; height:28px; }
.loc-tile b{ font-family:var(--sans); font-size:.98rem; font-weight:600; line-height:1.35; }
.loc-tile--active{ background:#06A9FF; border-color:#06A9FF; box-shadow:0 16px 34px -12px rgba(6,169,255,.5); }
.loc-tile--active .loc-tile__ic{ background:rgba(255,255,255,.22); color:#fff; }
.loc-tile--active b{ color:#fff; }
@media(max-width:860px){ .loc-tiles{ grid-template-columns:repeat(3,1fr); } }
@media(max-width:560px){ .loc-tiles{ grid-template-columns:repeat(2,1fr); } }

/* ---- Specialties Offered: horizontal image + content cards (ref 2) —
        each card carries its own thumbnail + name; no separate section image. ---- */
.loc-spec-grid{ display:grid; grid-template-columns:1fr 1fr; gap:18px; margin-top:8px; }
.loc-spec-card{
  display:flex; align-items:center; gap:18px;
  background:#fff; border:1px solid var(--cyan-200); border-radius:var(--radius);
  padding:14px 18px; color:var(--ink);
  box-shadow:0 6px 18px rgba(16,40,80,.05);
  transition:transform .2s ease, box-shadow .2s ease, border-color .2s ease, color .2s ease;
}
.loc-spec-card__img{
  flex:0 0 auto; width:74px; height:74px; border-radius:14px;
  object-fit:cover; background:var(--cyan-100); display:block;
}
.loc-spec-card__name{ font-family:var(--sans); font-size:1.02rem; font-weight:600; line-height:1.3; }
.loc-spec-card:hover{ transform:translateY(-3px); box-shadow:0 14px 30px rgba(16,40,80,.1); border-color:var(--blue); color:var(--blue); }
@media(max-width:760px){ .loc-spec-grid{ grid-template-columns:1fr; } }

/* ---- Bottom CTA: boxed dark-blue container (mirrors the About Us .about-cta) ---- */
.loc-cta-wrap{ background:var(--cyan-50); }
.loc-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-cta .pill{ background:rgba(255,255,255,.14); color:#fff; border-color:rgba(255,255,255,.28); }
.loc-cta h2{ color:#fff; }
.loc-cta .lead{ color:rgba(255,255,255,.85); margin:0 auto 26px; }
.loc-cta__btns{ display:flex; gap:14px; justify-content:center; flex-wrap:wrap; }
.loc-cta .btn--light{ background:#fff; color:#0059A6; }
.loc-cta .btn--light:hover{ background:#e9f2fb; color:#0059A6; }
.loc-cta__ghost{ background:transparent; color:#fff; border-color:rgba(255,255,255,.6); }
.loc-cta__ghost:hover{ background:#fff; color:#0059A6; border-color:#fff; }

/* ---- Responsive ---- */
@media(max-width:900px){
  .loc-grid{ grid-template-columns:1fr; }
  .loc-map{ min-height:320px; }
  .loc-map iframe{ min-height:320px; }
  .loc-docs{ grid-template-columns:repeat(2,1fr); }
}
@media(max-width:640px){
  .loc-docs{ grid-template-columns:1fr; }
  .loc-card{ padding:26px 22px; }
  .loc-cta{ padding:44px 22px; }
}
