/* Local businesses — the /local-businesses page and the homepage band that
   points to it. Lives inside the homepage's .wp design system (home-site.css
   loads first and owns the --wp-* palette, type, buttons and sections); this
   file adds only the pieces the local story needs: a place card on a drawn
   map, the pin you drag to the door, the claim request, and the tiles.
   The map is a drawing, not map data — no tiles are fetched. */

.wp-local-hero { background: radial-gradient(760px 420px at 100% 0%, #fde3e4 0%, transparent 60%), var(--wp-paper); }
.wp-local-hero .wp-lede { max-width: 54ch; }

/* ---------- the place card on its map ---------- */
.ll-visual { position: relative; padding: 34px 46px 46px 0; }
.ll-place { position: relative; background: #fff; border: 1px solid var(--wp-line); border-radius: 22px; box-shadow: var(--wp-shadow-lg); overflow: hidden; }
.ll-map { position: relative; height: 230px; background: #f1ebe3; overflow: hidden; }
.ll-map svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.ll-map .m-block { fill: #e6ddd2; }
.ll-map .m-park  { fill: #d8e8cf; }
.ll-map .m-water { fill: #cfe1ec; }
.ll-map .m-road  { fill: none; stroke: #fff; stroke-width: 11; stroke-linecap: round; }
.ll-map .m-lane  { fill: none; stroke: #fff; stroke-width: 5; stroke-linecap: round; }
.ll-map .m-label { font: 700 10px/1 var(--font-sans); fill: #a39486; letter-spacing: .06em; text-transform: uppercase; }
.ll-pin { position: absolute; left: 54%; top: 46%; width: 40px; height: 50px; transform: translate(-50%, -100%); color: var(--wp-red); filter: drop-shadow(0 6px 8px rgba(184, 35, 44, 0.35)); z-index: 2; }
.ll-pin svg { width: 100%; height: 100%; display: block; }
.ll-pin-pulse { position: absolute; left: 54%; top: 46%; width: 18px; height: 8px; border-radius: 50%; background: rgba(184, 35, 44, 0.28); transform: translate(-50%, -50%); }
.ll-pin-pulse::after { content: ""; position: absolute; inset: -14px -20px; border-radius: 50%; border: 2px solid rgba(229, 72, 77, 0.45); animation: ll-pulse 2.6s ease-out infinite; }
@keyframes ll-pulse { from { transform: scale(.4); opacity: 1; } to { transform: scale(1.5); opacity: 0; } }

.ll-place-body { padding: 18px 20px 20px; display: grid; gap: 12px; }
.ll-place-head { display: flex; align-items: center; gap: 12px; }
.ll-logo { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--wp-ink); color: #fff; font-weight: 900; font-size: 20px; flex-shrink: 0; font-family: var(--font-display, var(--font-sans)); }
.ll-place-head b { display: block; font-size: 18px; letter-spacing: -0.01em; }
.ll-place-head small { display: block; font-size: 13px; color: var(--wp-muted); margin-top: 2px; }
.ll-score { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--wp-muted); }
.ll-score i { font-style: normal; color: #fff; background: var(--wp-red); border-radius: 6px; padding: 2px 6px; font-size: 12px; letter-spacing: 1px; }
.ll-score b { font-size: 17px; color: var(--wp-ink); }
.ll-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.ll-actions span, .ll-actions b { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; font-size: 12.5px; }
.ll-actions .is-open { background: #e5f5ec; color: var(--wp-green); font-weight: 700; }
.ll-actions .is-open::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.ll-actions b { background: var(--wp-sand); color: var(--wp-ink); }

.ll-float { position: absolute; z-index: 3; background: #fff; border: 1px solid var(--wp-line); border-radius: 16px; box-shadow: var(--wp-shadow); animation: wp-float 7s ease-in-out infinite; }
.ll-float--poster { right: 0; bottom: 0; width: 150px; padding: 14px; text-align: center; animation-delay: -2s; }
.ll-float--poster b { display: block; font-size: 12.5px; margin-top: 8px; line-height: 1.3; }
.ll-float--poster small { display: block; font-size: 10.5px; color: var(--wp-faint); margin-top: 2px; }
.ll-qr { display: block; width: 92px; height: 92px; margin: 0 auto; color: var(--wp-ink); }
.ll-float--toast { left: -18px; top: 0; display: flex; align-items: center; gap: 10px; padding: 10px 14px 10px 10px; font-size: 12px; white-space: nowrap; }
.ll-float--toast .wp-card-ico { background: var(--wp-red); color: #fff; }
.ll-float--toast b { display: block; font-size: 12.5px; }
.ll-float--toast span { color: var(--wp-muted); }

/* ---------- who it is for ---------- */
.wp-local-who { background: #fff; border-top: 1px solid var(--wp-line); border-bottom: 1px solid var(--wp-line); }
.ll-who { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.ll-who-card { padding: 22px; border-radius: var(--wp-radius); background: var(--wp-paper); border: 1px solid var(--wp-line); }
.ll-who-ico { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: #fff; border: 2px solid var(--wp-ink); color: var(--wp-ink); margin-bottom: 16px; }
.ll-who-card b { display: block; font-size: 17px; margin-bottom: 6px; }
.ll-who-card p { font-size: 14px; line-height: 1.5; color: var(--wp-muted); }
.wp .ll-web { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 18px; padding: 16px 20px; border-radius: 14px; border: 1.5px dashed #d6c5ba; background: var(--wp-paper); font-size: 15px; color: var(--wp-muted); }
.ll-web a { font-weight: 800; white-space: nowrap; text-decoration: none; }
.ll-web a:hover { text-decoration: underline; }

/* ---------- how it works: the route, and the pin you drag ---------- */
.wp-local-how { background: var(--wp-paper); }
.ll-how-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.ll-how-grid > * { min-width: 0; }
.ll-how-grid h2 { margin-bottom: 26px; }
.wp-local-how .wp-route-list li::before { box-shadow: 0 0 0 4px var(--wp-paper); }
.ll-drag { position: relative; background: #fff; border: 1px solid var(--wp-line); border-radius: 22px; box-shadow: var(--wp-shadow-lg); overflow: hidden; }
.ll-drag .ll-map { height: 300px; }
.ll-ghost { position: absolute; width: 34px; height: 44px; transform: translate(-50%, -100%); color: #b5a79b; opacity: .9; }
.ll-ghost svg { width: 100%; height: 100%; display: block; }
.ll-drag-path { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.ll-drag-path path { fill: none; stroke: var(--wp-red); stroke-width: 2.5; stroke-dasharray: 6 7; stroke-linecap: round; }
.ll-tagpin { position: absolute; transform: translate(-50%, 8px); padding: 4px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 800; white-space: nowrap; background: #fff; border: 1px solid var(--wp-line); color: var(--wp-muted); box-shadow: 0 4px 10px rgba(60, 30, 34, 0.08); }
.ll-tagpin.is-door { background: var(--wp-ink); border-color: var(--wp-ink); color: #fff; }
.ll-drag-foot { display: flex; align-items: center; gap: 10px; padding: 14px 18px; font-size: 13.5px; color: var(--wp-muted); border-top: 1px solid var(--wp-line); }
.ll-drag-foot svg { color: var(--wp-red); flex-shrink: 0; }

/* ---------- what the page gets ---------- */
.wp-local-gets { background: #fff; }
.ll-gets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.ll-get { padding: 24px; border-radius: var(--wp-radius); border: 1px solid var(--wp-line); background: #fff; transition: transform .15s, box-shadow .15s, border-color .15s; }
.ll-get:hover { transform: translateY(-2px); box-shadow: var(--wp-shadow); border-color: var(--wp-red); }
.ll-get-ico { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--wp-red-soft); color: var(--wp-red-deep); margin-bottom: 14px; }
.ll-get b { display: block; font-size: 17px; margin-bottom: 6px; }
.ll-get p { font-size: 14.5px; line-height: 1.55; color: var(--wp-muted); }
.ll-get em { display: inline-block; margin-top: 10px; font-style: normal; font-size: 11.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--wp-red-deep); background: var(--wp-red-soft); padding: 3px 8px; border-radius: 999px; }

/* ---------- claim without a website ---------- */
.wp-local-claim { background: var(--wp-ink); color: #fff; }
.wp-local-claim .wp-kicker { color: #ff8a8e; } .wp-local-claim .wp-kicker::before { background: #ff8a8e; }
.wp-local-claim h2 { color: #fff; margin-bottom: 16px; }
.wp-local-claim .wp-lede-sm { color: rgba(255, 255, 255, 0.72); }
.ll-claim-steps { list-style: none; margin: 26px 0 30px; padding: 0; display: grid; gap: 14px; counter-reset: llc; }
.ll-claim-steps li { position: relative; padding-left: 46px; font-size: 15.5px; line-height: 1.5; color: rgba(255, 255, 255, 0.86); counter-increment: llc; min-height: 32px; }
.ll-claim-steps li::before { content: counter(llc); position: absolute; left: 0; top: -3px; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--wp-red); color: #fff; font-weight: 900; font-size: 14px; }
.ll-claim-card { background: #fff; color: var(--wp-text); border-radius: 22px; box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35); overflow: hidden; }
.ll-claim-card .wp-ui-bar i { font-style: normal; font-size: 12px; color: var(--wp-muted); margin-left: 6px; }
.ll-claim-body { padding: 20px; display: grid; gap: 12px; font-size: 13px; }
.ll-claim-body h4 { margin: 0; font-size: 16px; }
.ll-claim-msg { padding: 12px 14px; border-radius: 12px; background: var(--wp-paper); border: 1px solid var(--wp-line); line-height: 1.5; }
.ll-claim-file { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; border: 1px dashed var(--wp-line); }
.ll-claim-file .ll-thumb { width: 44px; height: 34px; border-radius: 8px; background: linear-gradient(135deg, #e8d3c6 0%, #f7ece4 55%, #d9c2b2 100%); flex-shrink: 0; }
.ll-claim-file b { display: block; font-size: 13px; }
.ll-claim-file small { color: var(--wp-faint); }
.ll-claim-file svg { margin-left: auto; color: var(--wp-green); }
.ll-claim-status { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; background: #e5f5ec; color: #146b41; font-weight: 700; }
.ll-claim-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.ll-claim-grid > * { min-width: 0; }

/* ---------- homepage band ---------- */
.wp-local-band { background: radial-gradient(700px 380px at 0% 100%, #fde3e4 0%, transparent 62%), var(--wp-paper); border-top: 1px solid var(--wp-line); border-bottom: 1px solid var(--wp-line); }
.ll-band-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.ll-band-grid > * { min-width: 0; }
.ll-band-grid h2 { margin-bottom: 16px; }
.ll-band-grid .wp-ctas { margin-top: 28px; }

@media (max-width: 1100px) {
    .ll-who { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ll-gets { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
    .ll-how-grid, .ll-claim-grid, .ll-band-grid { grid-template-columns: minmax(0, 1fr); }
    .ll-visual { max-width: 560px; margin: 0 auto; width: 100%; }
}
@media (max-width: 720px) {
    .ll-visual { padding: 0; display: grid; gap: 12px; }
    .ll-float { position: static; animation: none; }
    .ll-float--toast { white-space: normal; }
    .ll-float--poster { width: auto; display: flex; align-items: center; gap: 14px; text-align: left; }
    .ll-float--poster b { margin-top: 0; }
    .ll-qr { width: 64px; height: 64px; margin: 0; flex-shrink: 0; }
    .ll-who, .ll-gets { grid-template-columns: minmax(0, 1fr); gap: 10px; }
    /* Icon beside the words on a phone: six stacked cards are long enough. */
    .ll-who-card, .ll-get { display: grid; grid-template-columns: 46px minmax(0, 1fr); column-gap: 14px; align-items: start; padding: 16px; }
    .ll-who-ico, .ll-get-ico { grid-row: span 3; margin: 0; }
    .ll-who-card b, .ll-get b { font-size: 16px; margin-bottom: 4px; }
    .ll-get em { justify-self: start; margin-top: 8px; }
    .ll-map { height: 190px; }
    .ll-drag .ll-map { height: 240px; }
}
@media (prefers-reduced-motion: reduce) {
    .ll-pin-pulse::after, .ll-float { animation: none !important; }
}
