/* SEO chrome: breadcrumbs, trust badges, answer/provenance blocks, guides,
   explore. Colors/spacing reference design tokens only (--ds-*, 4px grid,
   fixed radii) per design-system/AI_RULES.md. */

/* Page header band (SEO-008/010/014): visible H1 + crawlable hub links.
   Overlay card so the map app keeps its viewport sizing. Anchored to the
   RIGHT edge below the top bar — the left side belongs to the content panel
   (Highlighted Moments / block details) and must stay unobstructed. -------- */
.seo-page-header {
  position: absolute;
  right: 16px;
  top: 82px;
  z-index: 1;
  max-width: 420px;
  background: var(--ds-card);
  border: 1px solid var(--ds-card-border);
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  padding: 12px 16px;
  color: var(--ds-ink);
}
.seo-page-header h1 {
  font-size: 20px;
  line-height: 28px;
  font-weight: 600;
  margin: 0 0 4px 0;
}
.seo-page-header .seo-answer-line {
  margin: 0 0 4px 0;
  font-size: 14px;
  line-height: 20px;
  color: var(--ds-ink-soft);
}
.seo-page-header .seo-provenance-line {
  margin: 4px 0 0 0;
  font-size: 13px;
  line-height: 18px;
  color: var(--ds-ink-faint);
}
.seo-page-header .seo-provenance-line a {
  color: var(--ds-link);
}
.seo-header-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.seo-header-nav a {
  font-size: 13px;
  line-height: 18px;
  color: var(--ds-link);
  text-decoration: none;
  border: 1px solid var(--ds-line);
  border-radius: 999px;
  padding: 4px 12px;
}
.seo-header-nav a:hover,
.seo-header-nav a:focus-visible {
  color: var(--ds-link-hover);
  border-color: var(--ds-brand);
}
@media (max-width: 812px) {
  .seo-page-header {
    position: static;
    max-width: none;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    box-shadow: none;
  }
}

/* Card overlay links (SEO-005): the crawlable <a> stretches over the card;
   separate interactive controls sit above it. ------------------------------ */
.memory-element,
.memory-section-card,
.nearby-memory-card {
  position: relative;
}
.seo-card-overlay-link {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
}
.seo-card-overlay-link:focus-visible {
  outline: 2px solid var(--ds-focus);
  outline-offset: 2px;
}
.memory-element .memory-liked {
  position: relative;
  z-index: 2;
}

/* Breadcrumbs (SEO-006) ---------------------------------------------------- */
.seo-breadcrumbs {
  padding: 8px 16px;
  font-size: 14px;
  line-height: 20px;
}
.seo-breadcrumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0;
  padding: 0;
}
.seo-breadcrumbs li {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--ds-ink-soft);
}
.seo-breadcrumbs li + li::before {
  content: "\203A"; /* › */
  color: var(--ds-ink-faint);
}
.seo-breadcrumbs a {
  color: var(--ds-link);
  text-decoration: none;
}
.seo-breadcrumbs a:hover {
  color: var(--ds-link-hover);
  text-decoration: underline;
}
.seo-breadcrumbs [aria-current="page"] {
  color: var(--ds-ink);
  font-weight: 500;
}

/* Trust badge (SEO-017) ---------------------------------------------------- */
.seo-trust-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid var(--ds-line);
  background: var(--ds-surface);
  color: var(--ds-ink-soft);
  font-size: 13px;
  line-height: 18px;
}
.seo-trust-badge[data-label="Editorially verified"],
.seo-trust-badge[data-label="Verified partner contribution"] {
  border-color: var(--ds-brand);
  color: var(--ds-ink);
}

/* Answer + provenance blocks (SEO-010) ------------------------------------- */
.seo-answer-block {
  background: var(--ds-card);
  border: 1px solid var(--ds-card-border);
  border-radius: 16px;
  padding: 16px;
  margin: 0 0 24px 0;
  color: var(--ds-ink);
  font-size: 16px;
  line-height: 24px;
}
.seo-answer-block .seo-answer-lead {
  font-weight: 600;
}
.seo-provenance {
  border-top: 1px solid var(--ds-line);
  margin-top: 24px;
  padding: 16px 0 0 0;
  color: var(--ds-ink-soft);
  font-size: 14px;
  line-height: 20px;
}
.seo-provenance dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 4px 16px;
  margin: 0;
}
.seo-provenance dt {
  color: var(--ds-ink-faint);
}
.seo-provenance dd {
  margin: 0;
  color: var(--ds-ink-soft);
}
.seo-provenance a {
  color: var(--ds-link);
}

/* Guide + explore pages (SEO-007 / SEO-015) -------------------------------- */
.seo-page {
  max-width: 960px;
  margin: 0 auto;
  padding: 24px 16px 64px 16px;
  background: var(--ds-bg);
  color: var(--ds-ink);
}
.seo-page h1 {
  font-size: 28px;
  line-height: 36px;
  font-weight: 600;
  margin: 0 0 16px 0;
}
.seo-page h2 {
  font-size: 24px;
  line-height: 32px;
  font-weight: 600;
  margin: 32px 0 12px 0;
}
.seo-page h3 {
  font-size: 20px;
  line-height: 28px;
  font-weight: 600;
  margin: 24px 0 8px 0;
}
.seo-page p {
  margin: 0 0 12px 0;
  font-size: 16px;
  line-height: 24px;
}
.seo-page .seo-intro {
  color: var(--ds-ink-soft);
}

.seo-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  margin: 16px 0;
  padding: 0;
  list-style: none;
}
.seo-card {
  display: block;
  background: var(--ds-card);
  border: 1px solid var(--ds-card-border);
  border-radius: 16px;
  padding: 16px;
  text-decoration: none;
  color: var(--ds-ink);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: box-shadow 150ms cubic-bezier(0.4, 0, 0.2, 1);
}
.seo-card:hover,
.seo-card:focus-visible {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  outline: 2px solid var(--ds-focus);
  outline-offset: 2px;
}
.seo-card .seo-card-title {
  font-size: 18px;
  line-height: 24px;
  font-weight: 600;
  margin: 0 0 8px 0;
  display: block;
}
.seo-card .seo-card-meta {
  color: var(--ds-ink-faint);
  font-size: 13px;
  line-height: 18px;
}
.seo-card img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 8px;
  display: block;
}

/* Guide stops list (map/list parity; list is the primary rendering) */
.guide-stops {
  list-style: none;
  margin: 16px 0;
  padding: 0;
  counter-reset: stop;
}
.guide-stop {
  position: relative;
  background: var(--ds-card);
  border: 1px solid var(--ds-card-border);
  border-radius: 16px;
  padding: 16px 16px 16px 48px;
  margin: 0 0 16px 0;
}
.guide-stop::before {
  counter-increment: stop;
  content: counter(stop);
  position: absolute;
  left: 16px;
  top: 16px;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: var(--ds-brand);
  color: var(--ds-ink); /* dark label on brand orange (AA) */
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}
.guide-stop h3 {
  margin: 0 0 8px 0;
}
.guide-stop .guide-stop-notes {
  color: var(--ds-ink-soft);
  font-size: 14px;
  line-height: 20px;
}
.guide-stop .guide-stop-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}

/* Sources (SEO-015) */
.guide-sources li {
  margin: 0 0 8px 0;
  font-size: 14px;
  line-height: 20px;
}
.guide-sources .claim-status {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--ds-surface);
  border: 1px solid var(--ds-line);
  color: var(--ds-ink-soft);
  font-size: 12px;
  line-height: 16px;
  margin-right: 8px;
}

/* Pagination (SEO-007): plain anchors, keyboard reachable */
.seo-pagination {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 24px 0 0 0;
  font-size: 14px;
}
.seo-pagination a,
.seo-pagination span {
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid var(--ds-line);
  color: var(--ds-link);
  text-decoration: none;
}
.seo-pagination span[aria-current="page"] {
  background: var(--ds-brand);
  color: var(--ds-ink);
  border-color: var(--ds-brand);
  font-weight: 600;
}

/* Language switcher (SEO-016) */
.seo-lang-switcher {
  display: flex;
  gap: 8px;
  margin: 16px 0;
  flex-wrap: wrap;
}
.seo-lang-switcher a,
.seo-lang-switcher span {
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid var(--ds-line);
  color: var(--ds-link);
  text-decoration: none;
  font-size: 13px;
}
.seo-lang-switcher span[aria-current="true"] {
  color: var(--ds-ink);
  border-color: var(--ds-brand);
  font-weight: 600;
}
