/* Search results page with numbered zones (includes/visuals/serp.php) */
.sp { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
@media (min-width: 960px) { .sp { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 48px; align-items: center; } }

/* window */
.sp-win { background: var(--white); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 18px 50px -24px rgba(12, 43, 21, .28); overflow: hidden; font-size: 14px; line-height: 1.45; color: var(--ink); max-width: 760px; width: 100%; justify-self: center; }
.sp-win p { margin: 0; }
.sp-chrome { display: flex; align-items: center; gap: 14px; padding: 10px 14px; background: var(--paper); border-bottom: 1px solid var(--line); }
.sp-dots { display: inline-flex; gap: 6px; }
.sp-dots i { width: 9px; height: 9px; border-radius: 50%; background: #cfc9c0; }
.sp-addr { flex: 1; max-width: 320px; height: 18px; border-radius: 999px; background: var(--white); }
.sp-top { padding: 16px 20px 0; border-bottom: 1px solid var(--line); }
.sp-search { display: flex; align-items: center; gap: 10px; max-width: 460px; padding: 9px 16px; border: 1px solid var(--line); border-radius: 999px; font-size: 15px; color: var(--ink); box-shadow: 0 2px 8px -4px rgba(12, 43, 21, .18); }
.sp-lens { position: relative; width: 12px; height: 12px; border: 2px solid var(--ink-2); border-radius: 50%; flex: none; }
.sp-lens::after { content: ""; position: absolute; right: -5px; bottom: -4px; width: 6px; height: 2px; background: var(--ink-2); transform: rotate(45deg); }
.sp-tabs { display: flex; gap: 20px; margin-top: 12px; font-size: 13px; color: var(--ink-2); }
.sp-tabs span { padding-bottom: 8px; border-bottom: 2px solid transparent; }
.sp-tabs .is-on { color: var(--forest); font-weight: 600; border-color: var(--forest); }
.sp-body { display: grid; gap: 6px; padding: 12px 12px 16px; }

/* zones */
.sp-z { position: relative; padding: 14px 44px 14px 14px; border-radius: 10px; }
.sp-z::before { content: ""; position: absolute; inset: 0; border-radius: 10px; border: 2px solid var(--green-2); background: rgba(150, 248, 120, .1); opacity: 0; pointer-events: none; }
.sp-badge { position: absolute; top: 12px; right: 12px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--forest); color: var(--white); font-size: 12.5px; font-weight: 700; }
.sp-z > * { position: relative; }
.sp-z > .sp-badge { position: absolute; }
.sp-z--2 { background: var(--paper); margin: 4px 0; }
.sp-z--5, .sp-z--3 { border-top: 1px solid var(--line); border-radius: 0; }
.sp-z--3::before, .sp-z--5::before { border-radius: 10px; }

.sp-spons { font-size: 12px; font-weight: 700; color: var(--ink); }
.sp-spons--2 { margin-top: 16px !important; }
.sp-url { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 4px !important; font-size: 12.5px; color: var(--ink-2); }
.sp-fav { width: 18px; height: 18px; border-radius: 50%; background: var(--line); flex: none; }
.sp-fav--you { background: var(--green); box-shadow: inset 0 0 0 4px var(--forest); }
.sp-you { font-weight: 600; color: var(--forest); background: var(--mint); padding: 1px 7px; border-radius: 6px; }
.sp-crumb { color: var(--ink-2); }
.sp-title { margin-top: 4px !important; font-size: 16px; line-height: 1.35; font-weight: 600; color: var(--forest); }
.sp-bar { display: block; height: 7px; margin-top: 8px; border-radius: 4px; background: #e8e4de; }
.sp-url .sp-bar { margin: 0; }
.sp-bar--t40, .sp-bar--t50, .sp-bar--t60, .sp-bar--t70 { height: 10px; background: #d9d5cf; }
.sp-bar--w25 { width: 25%; } .sp-bar--w40, .sp-bar--t40 { width: 40%; } .sp-bar--w50, .sp-bar--t50 { width: 50%; }
.sp-bar--w60, .sp-bar--t60 { width: 60%; } .sp-bar--t70 { width: 70%; } .sp-bar--w75 { width: 75%; } .sp-bar--w90 { width: 90%; }
.sp-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px !important; }
.sp-chip { display: inline-block; padding: 3px 10px; border: 1px solid var(--line); border-radius: 999px; font-size: 12.5px; color: var(--forest); background: var(--white); }
.sp-chip--you { border-color: var(--green-2); background: var(--mint); font-weight: 600; }
.sp-chip--src { width: 84px; height: 24px; }
.sp-chip--more { color: var(--ink-2); }

.sp-ai-l { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 700; color: var(--forest); }
.sp-spark { width: 14px; height: 14px; background: var(--forest); clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); }
.sp-ai-t { margin-top: 8px !important; color: var(--ink); }

.sp-map { display: block; width: 100%; height: 96px; border-radius: 8px; }
.sp-map-bg { fill: #ebe7e1; }
.sp-map-river { fill: none; stroke: var(--sage); stroke-width: 12; }
.sp-map-road { fill: none; stroke: var(--white); stroke-width: 6; }
.sp-map-road--minor { stroke-width: 2.5; }
.sp-pin path { fill: var(--forest); }
.sp-pin circle { fill: var(--green); }
.sp-pin--alt path { fill: #7d8a80; }
.sp-pin--alt circle { fill: var(--white); }
.sp-places { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.sp-place { display: grid; gap: 4px; align-content: start; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--line); font-size: 12.5px; }
.sp-place .sp-bar { margin: 2px 0 0; }
.sp-place--you { border-color: var(--green-2); background: var(--mint); }
.sp-pl-n { font-weight: 700; color: var(--forest); font-size: 13.5px; }
.sp-pl-l { color: var(--ink-2); }
.sp-stars { color: var(--green-text); letter-spacing: 1px; font-size: 12px; }
.sp-rich { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-top: 6px !important; font-size: 12.5px; color: var(--ink-2); }

.sp-paa-l { font-size: 15px; font-weight: 600; color: var(--forest); margin-bottom: 4px !important; }
.sp-q { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; color: var(--ink); }
.sp-chev { width: 8px; height: 8px; border-right: 2px solid var(--ink-2); border-bottom: 2px solid var(--ink-2); transform: rotate(45deg) translate(-2px, -2px); flex: none; }
.sp-rest { padding: 10px 14px 0; opacity: .55; }

/* notes */
.sp-notes { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; counter-reset: none; }
.sp-note { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: start; padding: 12px 14px; border-radius: 12px; }
.sp-note::before { content: ""; position: absolute; inset: 0; border-radius: 12px; background: var(--white); box-shadow: inset 0 0 0 2px var(--green-2); opacity: 0; }
.section--paper .sp-note::before { background: var(--mint); }
.sp-note > * { position: relative; }
.sp-num { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--forest); color: var(--white); font-size: 14px; font-weight: 700; }
.sp-nt { display: grid; gap: 3px; padding-top: 3px; }
.sp-nt strong { font-size: 16.5px; color: var(--forest); }
.sp-nt span { font-size: 15px; line-height: 1.5; color: var(--ink-2); }

/* animation: the zones and the notes come in, then the zones light up in turn with their note (loop) */
.js .vz-figure .sp-z, .js .vz-figure .sp-note { opacity: 0; transform: translateY(10px); transition: opacity .5s ease, transform .5s cubic-bezier(.2, .7, .2, 1); }
.js .vz-figure.is-visible .sp-z, .js .vz-figure.is-visible .sp-note { opacity: 1; transform: none; }
.js .vz-figure .sp-z--1, .js .vz-figure .sp-note--1 { transition-delay: .2s; }
.js .vz-figure .sp-z--2, .js .vz-figure .sp-note--2 { transition-delay: .45s; }
.js .vz-figure .sp-z--3, .js .vz-figure .sp-note--3 { transition-delay: .7s; }
.js .vz-figure .sp-z--4, .js .vz-figure .sp-note--4 { transition-delay: .95s; }
.js .vz-figure .sp-z--5, .js .vz-figure .sp-note--5 { transition-delay: 1.2s; }
.js .vz-figure.is-visible .sp-z::before, .js .vz-figure.is-visible .sp-note::before { animation: sp-hl 12.5s ease-in-out infinite; }
.js .vz-figure.is-visible .sp-z--1::before, .js .vz-figure.is-visible .sp-note--1::before { animation-delay: 1.8s; }
.js .vz-figure.is-visible .sp-z--2::before, .js .vz-figure.is-visible .sp-note--2::before { animation-delay: 4.3s; }
.js .vz-figure.is-visible .sp-z--3::before, .js .vz-figure.is-visible .sp-note--3::before { animation-delay: 6.8s; }
.js .vz-figure.is-visible .sp-z--4::before, .js .vz-figure.is-visible .sp-note--4::before { animation-delay: 9.3s; }
.js .vz-figure.is-visible .sp-z--5::before, .js .vz-figure.is-visible .sp-note--5::before { animation-delay: 11.8s; }
@keyframes sp-hl { 0%, 100% { opacity: 0; } 3%, 17% { opacity: 1; } 21% { opacity: 0; } }

/* phones: the local pack lists one place per line, smaller paddings */
@media (max-width: 600px) {
  .sp-top { padding: 12px 12px 0; }
  .sp-tabs { gap: 14px; }
  .sp-body { padding: 8px 6px 12px; }
  .sp-z { padding: 12px 40px 12px 10px; }
  .sp-places { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .sp-place { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
  .sp-place .sp-bar { width: 96px; }
  .sp-place .sp-bar:last-child, .sp-rest { display: none; }
  .sp-chrome { padding: 8px 12px; }
  .sp-note { padding: 10px 6px; }
}
