/* =========================================================
   Delow — "Local SEO" page graphics (on top of service.css)
   ========================================================= */

/* ---------- Hero: your pin drops, the top-3 list reorders, the call pulses ---------- */
.lpack { --row: 50px; --gap: 6px; position: relative; display: grid; gap: 12px; padding: 18px; border-radius: 28px; background: var(--surface); box-shadow: 0 0 0 1px var(--line) inset; }
.lpack__bar { display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 18px; margin-right: 56px; border-radius: 999px; background: #fff; box-shadow: 0 1px 2px rgba(15,14,17,.06), 0 0 0 1px var(--line); font-weight: 500; }
.lpack__bar .ico { width: 18px; height: 18px; color: var(--muted); }
.lpack__map { position: relative; height: 150px; border-radius: 18px; background: #e7e4ea; overflow: hidden; }
.lpack__road { position: absolute; background: #fff; }
.lpack__road--a { left: -10%; right: -10%; top: 58%; height: 10px; rotate: -7deg; }
.lpack__road--b { top: -10%; bottom: -10%; left: 36%; width: 8px; rotate: 14deg; }
.lpack__road--c { left: 52%; right: -10%; top: 22%; height: 6px; rotate: 16deg; }
.lpack__pin { position: absolute; left: var(--x); top: var(--y); translate: -50% -100%; color: var(--muted); transition: opacity .3s ease, transform .7s cubic-bezier(.34,1.56,.64,1); }
.lpack__pin .ico { width: 28px; height: 28px; fill: #fff; stroke-width: 1.6; }
.lpack__pin.is-you { z-index: 1; color: var(--accent); }
.lpack__pin.is-you .ico { width: 44px; height: 44px; fill: var(--accent); stroke: #fff; }
.lpack__pin.is-you::after { content: ""; position: absolute; left: 50%; bottom: -3px; width: 16px; height: 6px; translate: -50% 0; border-radius: 50%; background: rgba(15,14,17,.25); }
.lpack__list { position: relative; height: calc(var(--row) * 3 + var(--gap) * 2); transition: opacity .3s ease; }
.lpack__row {
  position: absolute; left: 0; right: 0; top: 0; height: var(--row);
  display: flex; align-items: center; gap: 10px; padding: 0 8px 0 16px; border-radius: 14px;
  background: rgba(255,255,255,.55); font-size: .9375rem; color: var(--ink-2);
  transform: translateY(calc(var(--slot) * (var(--row) + var(--gap))));
  transition: transform .7s var(--ease-out), background-color .3s ease;
}
.lpack__row b { font-weight: 600; color: var(--ink); white-space: nowrap; }
.lpack__row > span { font-size: .8125rem; color: var(--muted); white-space: nowrap; }
.lpack__row.is-you { z-index: 2; background: #fff; box-shadow: var(--shadow-lift), 0 0 0 1px var(--line); }
.lpack__row.is-you .lpack__open { color: #15803d; font-weight: 600; }
.lpack__call { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; background: #16a34a; color: #fff; font-style: normal; font-size: .8125rem; font-weight: 600; white-space: nowrap; transition: opacity .35s ease, transform .45s cubic-bezier(.34,1.56,.64,1); }
.lpack__call .ico { width: 14px; height: 14px; }
.lpack.is-calling .lpack__call { animation: lp-glow 2.2s var(--ease-out) infinite; }
@keyframes lp-glow { 0% { box-shadow: 0 0 0 0 rgba(22,163,74,.45); } 70%, 100% { box-shadow: 0 0 0 12px rgba(22,163,74,0); } }
/* JS-driven states (static final state without JS or with reduced motion) */
.lpack.is-live:not(.is-dropped) .lpack__pin.is-you { opacity: 0; transform: translateY(-36px); }
.lpack.is-live:not(.is-calling) .lpack__call { opacity: 0; transform: scale(.8); }
.lpack.is-reset .lpack__list { opacity: 0; }
.lpack.is-reset .lpack__row, .lpack.is-reset .lpack__pin { transition: none; }
@media (max-width: 559px) {
  .lpack { --row: 42px; --gap: 5px; padding: 12px; gap: 10px; border-radius: 22px; }
  .lpack__bar { height: 40px; font-size: .9375rem; margin-right: 50px; padding: 0 14px; }
  .lpack__map { height: 110px; }
  .lpack__row { font-size: .875rem; padding-left: 12px; }
  .lpack__row.is-you .lpack__open { display: none; }
  .lpack__call { padding: 7px 12px; }
}
@media (min-width: 1024px) { .lpack { --row: 56px; padding: 24px; gap: 14px; } .lpack__map { height: 170px; } }

/* ---------- Three ranking factors ---------- */
.factors { display: grid; gap: 12px; margin-top: 32px; }
.factor { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 16px; align-items: center; padding: 22px; border-radius: var(--r-card); background: var(--surface); }
.factor .icon-box { width: 48px; height: 48px; border-radius: 50%; background: #fff; }
.factor .icon-box .ico { width: 22px; height: 22px; }
.factor h3 { font-size: 1.375rem; letter-spacing: -.02em; }
.factor p { grid-column: 1 / -1; margin-top: 12px; color: var(--ink-2); font-size: 1rem; line-height: 1.55; }
@media (min-width: 900px) { .factors { grid-template-columns: repeat(3, 1fr); gap: 16px; } .factor { padding: 26px; align-content: start; } }
.factors + .scrolly { margin-top: 56px; }

/* ---------- Sticky graphic figures ---------- */
/* 1. Categories and the profile name */
.fig-cat__card { width: min(100%, 400px); display: grid; gap: 10px; padding: 20px; border-radius: 18px; background: #fff; box-shadow: var(--shadow-lift); }
.fig-cat__label { font-size: .8125rem; font-weight: 500; color: var(--muted); }
.fig-cat__label + .fig-cat__opts { margin-bottom: 8px; }
.fig-cat__opts { display: flex; flex-wrap: wrap; gap: 8px; }
.fig-cat__opts span { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; font-weight: 500; font-size: .9375rem; }
.fig-cat__opts .is-good { background: var(--ink); color: #fff; }
.fig-cat__opts .is-good .ico { width: 16px; height: 16px; stroke-width: 2.6; }
.fig-cat__opts .is-bad { background: var(--surface); color: var(--muted); text-decoration: line-through; }
.fig-cat__opts .is-bad em { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: #fee2e2; color: #dc2626; font-style: normal; font-size: .6875rem; font-weight: 700; text-decoration: none; }

/* 2. Reviews and replies */
.fig--reviews { gap: 10px; justify-items: stretch; }
.fig-rev__card, .fig-rev__reply { display: grid; gap: 8px; padding: 16px 18px; border-radius: 16px; background: #fff; }
.fig-rev__head { display: flex; align-items: center; gap: 12px; margin-bottom: 4px; }
.fig-rev__avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--surface-2); }
.fig-rev__who { display: grid; gap: 4px; }
.fig-rev__who i { width: 90px; height: 8px; border-radius: 4px; background: var(--surface-2); }
.fig-rev__who b { color: #f59e0b; letter-spacing: 2px; font-size: .9375rem; }
.fig-rev__line { display: block; height: 7px; width: 100%; border-radius: 4px; background: var(--surface-2); }
.fig-rev__line--s { width: 60%; }
.fig-rev__reply { margin-left: 28px; background: var(--accent-soft); }
.fig-rev__reply .fig-rev__line { background: rgba(74,37,69,.14); }
.fig-rev__reply-title { font-size: .8125rem; font-weight: 700; color: var(--accent); }
.fig-rev__link { justify-self: center; display: inline-flex; align-items: center; gap: 8px; margin-top: 4px; padding: 9px 16px; border-radius: 999px; background: var(--ink); color: #fff; font-size: .875rem; font-weight: 600; }
.fig-rev__link .ico { width: 15px; height: 15px; }

/* 3. Photos and posts */
.fig--photos { gap: 10px; justify-items: stretch; }
.fig-ph__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.fig-ph__grid span { position: relative; display: flex; flex-direction: column; justify-content: space-between; height: 96px; padding: 12px; border-radius: 14px; background: linear-gradient(140deg, #fff, var(--surface-2)); font-size: .875rem; font-weight: 600; }
.fig-ph__grid .ico { width: 20px; height: 20px; color: var(--muted); }
.fig-ph__grid .is-main { background: linear-gradient(140deg, var(--accent-soft), #e6d6e3); box-shadow: 0 0 0 1.5px var(--accent); }
.fig-ph__grid .is-main .ico { color: var(--accent); }
.fig-ph__post { display: grid; gap: 7px; padding: 14px 16px; border-radius: 14px; background: #fff; }
.fig-ph__post b { font-size: .8125rem; color: var(--accent); }

/* 4. NAP: same name, address, phone everywhere */
.fig--nap { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; align-items: stretch; }
.fig-nap__card { position: relative; display: grid; align-content: start; gap: 7px; padding: 16px 12px 14px; border-radius: 16px; background: #fff; }
.fig-nap__card b { font-size: .8125rem; font-weight: 700; margin-bottom: 4px; padding-right: 22px; }
.fig-nap__card span { position: relative; padding: 6px 8px; border-radius: 8px; background: #dcfce7; color: #15803d; font-size: .75rem; font-weight: 600; }
.fig-nap__card em { position: absolute; top: 10px; right: 10px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #16a34a; color: #fff; }
.fig-nap__card em .ico { width: 13px; height: 13px; stroke-width: 2.8; }
.fig-nap__old::after { content: ""; position: absolute; left: 6px; right: 6px; top: 50%; height: 1.5px; background: #dc2626; transform: scaleX(0); transform-origin: 0 50%; }
html.js .fig.is-active .fig-nap__old { animation: nap-fix 1.6s ease both; }
html.js .fig.is-active .fig-nap__old::after { animation: nap-strike 1.6s ease both; }
html.js .fig.is-active .fig-nap__card.is-fix em { animation: pop .5s cubic-bezier(.34,1.56,.64,1) 1.3s both; }
@keyframes nap-fix { 0%, 55% { background: #fee2e2; color: #dc2626; } 75%, 100% { background: #dcfce7; color: #15803d; } }
@keyframes nap-strike { 0% { transform: scaleX(0); } 30%, 55% { transform: scaleX(1); } 75%, 100% { transform: scaleX(0); } }
@media (max-width: 479px) { .fig--nap { grid-template-columns: minmax(0, 1fr); } .fig-nap__card { grid-template-columns: auto 1fr 1fr 1fr; align-items: center; } .fig-nap__card b { margin: 0; } }

html.js .fig.is-active .fig-cat__opts span,
html.js .fig.is-active .fig-rev__card,
html.js .fig.is-active .fig-ph__grid span,
html.js .fig.is-active .fig-nap__card { animation: rise .55s var(--ease-out) both; }
html.js .fig.is-active .fig-cat__opts span:nth-child(2), html.js .fig.is-active .fig-ph__grid span:nth-child(2), html.js .fig.is-active .fig-nap__card:nth-of-type(2) { animation-delay: .12s; }
html.js .fig.is-active .fig-ph__grid span:nth-child(3), html.js .fig.is-active .fig-nap__card:nth-of-type(3) { animation-delay: .24s; }
html.js .fig.is-active .fig-ph__grid span:nth-child(4) { animation-delay: .36s; }
html.js .fig.is-active .fig-rev__reply { animation: rise .55s var(--ease-out) .35s both; }
html.js .fig.is-active .fig-rev__link, html.js .fig.is-active .fig-ph__post { animation: rise .5s var(--ease-out) .55s both; }
html.js .fig.is-active .fig-nap__card.is-fix .fig-nap__old { animation: nap-fix 1.6s ease .3s both; }

/* ---------- Search page: map pack above organic results ---------- */
.serp { position: relative; display: grid; gap: 12px; padding: 18px; border-radius: 26px; background: var(--surface); }
.serp__bar { display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 16px; margin-right: 52px; border-radius: 999px; background: #fff; box-shadow: 0 0 0 1px var(--line); font-weight: 500; }
.serp__bar .ico { width: 18px; height: 18px; color: var(--muted); }
.serp__pack, .serp__org { display: grid; gap: 6px; padding: 14px; border-radius: 18px; background: #fff; }
.serp__org { background: rgba(255,255,255,.55); }
.serp__lbl { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; font-size: .75rem; font-weight: 600; color: var(--muted); }
.serp__lbl .ico { width: 14px; height: 14px; }
.serp__biz { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 12px; border-radius: 12px; background: var(--surface); font-size: .875rem; }
.serp__biz span { display: inline-flex; align-items: center; gap: 5px; font-size: .75rem; color: var(--muted); font-weight: 500; }
.serp__biz.is-you { background: #fff; box-shadow: 0 0 0 1.5px var(--ink); }
.serp__biz.is-you span { padding: 5px 10px; border-radius: 999px; background: #16a34a; color: #fff; font-weight: 600; }
.serp__biz .ico { width: 12px; height: 12px; }
.serp__line { display: block; height: 7px; width: 100%; border-radius: 4px; background: var(--surface-2); }
.serp__line--s { width: 58%; margin-bottom: 6px; }
html.js .split__fig.is-in .serp__pack { animation: rise .6s var(--ease-out) .4s both; }

/* ---------- H3 inside a section + comparison with the map column highlighted ---------- */
.sub-h3 { margin-top: 64px; font-size: clamp(1.5rem, 1.25rem + .8vw, 2rem); letter-spacing: -.03em; max-width: 26ch; }
.sub-h3 + .compare { margin-top: 24px; }
.compare--map td:nth-child(2) { background: none; color: var(--ink-2); font-weight: 400; }
.compare--map td:nth-child(3) { background: var(--accent-soft); color: var(--ink); font-weight: 500; }
.compare--map tbody tr:last-child td:nth-child(2) { border-radius: 0; }
.compare--map tbody tr:last-child td:nth-child(3) { border-radius: 0 0 16px 16px; }
.compare--map thead th:first-child { font-size: .875rem; font-weight: 500; color: var(--muted); }
@media (max-width: 767px) { .compare--map td:nth-child(n) { color: var(--ink); font-weight: 600; } }

/* ---------- Citation sources + callout ---------- */
.cites { display: grid; gap: 10px; margin-top: 28px; }
.cites li { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 18px; background: var(--surface); font-weight: 500; line-height: 1.4; }
.cites .icon-box { width: 44px; height: 44px; border-radius: 50%; background: #fff; }
.cites .icon-box .ico { width: 20px; height: 20px; }
@media (min-width: 768px) { .cites { grid-template-columns: 1fr 1fr; gap: 12px; } }
.callout { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; align-items: start; margin-top: 28px; padding: 22px; border-radius: 22px; background: var(--accent-soft); box-shadow: inset 3px 0 0 var(--accent); max-width: 760px; }
.callout__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: #fff; }
.callout__icon .ico { width: 20px; height: 20px; }
.callout__title { font-family: var(--font-display); font-weight: 600; font-size: 1.1875rem; letter-spacing: -.015em; margin-bottom: 6px; }
.callout p:not(.callout__title) { color: var(--ink-2); }

/* ---------- One-line tips ---------- */
.tips--short .tip { align-items: center; }
.tips--short .tip__num { grid-row: auto; }
.tips--short .tip h3 { font-size: 1.125rem; font-weight: 600; line-height: 1.4; }

/* ---------- Reduced motion: final states ---------- */
@media (prefers-reduced-motion: reduce) {
  .lpack__row, .lpack__pin, .lpack__call { transition: none; }
  .lpack.is-calling .lpack__call { animation: none; }
  html.js .fig.is-active .fig-nap__old, html.js .fig.is-active .fig-nap__old::after { animation: none !important; }
}
