/* Scoped to the public portfolio. Uses Wallet Club's existing brand tokens. */
.project-map { margin-bottom: 44px; }
.project-map [hidden] { display: none !important; }
.project-map-heading { max-width: 680px; margin-bottom: 26px; }
.project-map-heading h3 { margin: 0 0 12px; font: 600 clamp(1.35rem, 2.2vw, 2rem)/1.2 var(--font-heading); letter-spacing: -.045em; text-wrap: balance; }
.project-map-heading p { margin: 0; color: #52606b; line-height: 1.65; }
.project-map-explorer { display: grid; grid-template-columns: minmax(0, 1fr) 340px; height: 660px; border: 1px solid var(--line); border-radius: var(--radius-surface); overflow: hidden; background: var(--white); }
.project-map-canvas { min-width: 0; background: #f1f3ef; padding: 24px 24px 18px; display: flex; flex-direction: column; }
.project-map-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.project-map-country { font: 600 1.5rem/1.2 var(--font-heading); letter-spacing: -.05em; }
.project-map button { cursor: pointer; }
.project-map-replay { border: 0; padding: 10px 0 10px 10px; min-height: 44px; color: var(--graphite); background: transparent; font-size: .8rem; text-decoration: underline; text-underline-offset: 4px; }
.project-map-stage { width: 100%; max-width: 700px; aspect-ratio: 900 / 580; position: relative; margin: auto; isolation: isolate; }
.project-map-svg { display: block; width: 100%; height: 100%; overflow: hidden; }
.project-map-svg path { fill: #d9e0d8; stroke: #87998c; stroke-width: 1; stroke-linejoin: round; }
.project-map-canvas { background: radial-gradient(ellipse at 45% 35%, #fafbf7, #edf1eb); }
.project-map .project-map-explorer { height: auto; min-height: 660px; }
.project-map .project-map-directory { max-height: 820px; }
.project-map-stage { flex-shrink: 0; }
.project-map-state path { fill: #e1e6de; stroke: #fafbf7; stroke-width: 1.2; }
.project-map-state.has-projects { cursor: pointer; }
.project-map-state.has-projects path { fill: #b9c8b4; stroke: #fff; }
.project-map-state.has-projects:hover path,
.project-map-state.has-projects:focus-visible path { fill: #c58b76; stroke: #895643; stroke-width: 1.5; }
.project-map-state.is-selected path { fill: #d9ab96; stroke: #925b46; }
.project-map-stage { touch-action: pan-y; }
.project-map-stage.is-zoomed { cursor: grab; touch-action: none; }
.project-map-stage.is-dragging { cursor: grabbing; user-select: none; }
.project-map-stage:focus-visible { outline: 2px solid var(--terracotta-dark); outline-offset: 4px; border-radius: 12px; }
.project-map-feature { display: flex; align-items: center; gap: 14px; padding: 12px 16px; margin-top: 12px; border: 1px solid #d6ded2; border-radius: 16px; background: #fff; box-shadow: 0 8px 24px #36424d0a; }
.project-map-feature > img { flex: 0 0 56px; width: 56px; height: 48px; object-fit: contain; }
.project-map-feature > div:nth-child(2) { min-width: 0; flex: 1; }
.project-map-feature p { margin: 0 0 4px; font-size: .72rem; color: #52635a; }
.project-map-feature a { font-size: .95rem; font-weight: 600; overflow-wrap: anywhere; text-decoration: none; }
.project-map-feature a:hover { text-decoration: underline; }
.project-map-feature-navigation { display: flex; align-items: center; gap: 4px; }
.project-map-feature-navigation button { width: 44px; height: 44px; border: 1px solid #d6ded2; border-radius: 50%; color: var(--graphite); background: #f7f8f4; font-size: 1.4rem; }
.project-map-feature-navigation button:disabled { opacity: .35; cursor: default; }
.project-map-feature-navigation span { font-size: .7rem; white-space: nowrap; min-width: 30px; text-align: center; }
.project-map-legend { display: flex; flex-wrap: wrap; gap: 12px 20px; margin-top: 16px; font-size: .7rem; color: #52635a; }
.project-map-legend span { display: flex; align-items: center; gap: 7px; }
.project-map-legend span::before { content: ''; width: 12px; height: 12px; background: #b9c8b4; border-radius: 3px; }
.project-map-legend span:nth-child(2)::before { background: var(--terracotta-dark); border-radius: 50%; }
.project-map-caption { margin-top: 10px; }
.project-map-pins { position: absolute; inset: 0; pointer-events: none; }
.project-map-pin { position: absolute; display: grid; place-items: center; width: 44px; height: 44px; margin: -22px 0 0 -22px; padding: 0; border: 0; background: transparent; pointer-events: auto; border-radius: 50%; color: var(--white); }
.project-map-pin-dot { display: grid; place-items: center; width: 32px; height: 32px; border: 2px solid var(--white); border-radius: 50% 50% 50% 4px; background: var(--terracotta-dark); transform: rotate(-45deg); box-shadow: 0 3px 8px rgb(54 66 77 / 18%); font-size: .8rem; font-weight: 700; }
.project-map-pin-dot > span { transform: rotate(45deg); }
.project-map-pin[aria-pressed="true"] .project-map-pin-dot { background: var(--graphite); box-shadow: 0 0 0 4px rgb(54 66 77 / 15%); }
.project-map-pin:hover, .project-map-pin:focus-visible { z-index: 2; }
.project-map-tooltip { display: none; position: absolute; bottom: 48px; left: 50%; transform: translateX(-50%); width: max-content; max-width: 160px; padding: 9px 12px; border-radius: 9px; background: var(--graphite); color: var(--white); font-size: .75rem; line-height: 1.4; text-align: center; pointer-events: none; }
.project-map-pin:hover .project-map-tooltip, .project-map-pin:focus-visible .project-map-tooltip { display: block; }
.project-map-ocean { position: absolute; left: 21%; top: 65%; margin: 0; color: #617268; letter-spacing: .03em; font-size: clamp(.65rem, 1vw, .85rem); pointer-events: none; }
.project-map-stage.is-zoomed .project-map-ocean { display: none; }
.project-map-controls { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 18px; }
.project-map-controls button { min-height: 44px; border: 1px solid #b6c2b8; border-radius: 10px; background: var(--white); color: var(--graphite); padding: 8px 14px; font-size: .8rem; }
.project-map-zoom { display: flex; align-items: center; gap: 8px; }
.project-map-zoom button { width: 44px; padding: 0; font-size: 1.4rem; }
.project-map-zoom span { width: 36px; text-align: center; font-size: .8rem; font-variant-numeric: tabular-nums; }
.project-map-controls button:disabled { opacity: .45; cursor: default; }
.project-map-caption { margin: 18px 0 0; max-width: 450px; font-size: .75rem; line-height: 1.5; color: #52635a; }
.project-map-directory { display: flex; flex-direction: column; min-width: 0; min-height: 0; border-left: 1px solid var(--line); }
.project-map-filters { padding: 24px 22px 0; }
.project-map-filters label { display: block; margin: 0 0 8px; font-size: .78rem; font-weight: 600; }
.project-map-filters input, .project-map-filters select { display: block; width: 100%; min-height: 46px; border: 1px solid #aab2b6; border-radius: 10px; background: var(--white); color: var(--graphite); font: inherit; font-size: .85rem; padding: 10px 12px; margin: 0 0 18px; }
.project-map-filters input::placeholder { color: #65717b; opacity: 1; }
.project-map-results-heading { padding-block: 8px 16px; display: flex; gap: 12px; justify-content: space-between; align-items: baseline; }
.project-map-results-heading h4 { font: 600 .9rem/1.5 var(--font-body); margin: 0; }
.project-map-results-heading > span { font-size: .72rem; white-space: nowrap; color: #52606b; }
.project-map-list { margin: 0; padding: 0 22px 18px; list-style: none; flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #aab7aa transparent; scroll-padding: 10px; }
.project-map-project { display: grid; grid-template-columns: 56px minmax(0, 1fr); align-items: center; gap: 6px 14px; padding: 18px 0; border-top: 1px solid var(--line); }
.project-map-project.is-selected { border-top-color: var(--terracotta-dark); }
.project-map-project img { width: 56px; height: 48px; object-fit: contain; }
.project-map-project a { display: inline-block; padding: 5px 0; font-size: .9rem; font-weight: 600; line-height: 1.4; text-decoration: none; overflow-wrap: anywhere; }
.project-map-project a::after { content: ' ↗'; color: var(--terracotta-dark); }
.project-map-project a:hover { text-decoration: underline; text-underline-offset: 4px; }
.project-map-project p { margin: 3px 0 0; color: #52606b; font-size: .75rem; line-height: 1.5; }
.project-map-locate { grid-column: 2; justify-self: start; min-height: 44px; padding: 8px 0; border: 0; background: transparent; color: var(--terracotta-dark); font-size: .75rem; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.project-map-empty { margin: 0; padding: 20px 22px; font-size: .9rem; line-height: 1.6; }
.project-map-summary { display: flex; gap: 36px; align-items: center; padding: 24px 0 6px; }
.project-map-summary p { margin: 0; display: flex; flex-direction: column; gap: 4px; font-size: .8rem; color: #52606b; }
.project-map-summary strong { font: 600 1.8rem/1.2 var(--font-heading); letter-spacing: -.045em; color: var(--graphite); }
.project-map-summary .project-map-pending { max-width: 240px; margin-left: auto; font-size: .75rem; line-height: 1.6; }
.project-map-fallback { font-size: .9rem; line-height: 1.6; }
@media (prefers-reduced-motion: no-preference) {
  .project-map-pin-dot { transition: background-color .2s, box-shadow .2s; }
  .project-map.is-revealing .project-map-svg path { stroke-dasharray: 1000; animation: map-outline 1.6s ease-out both; }
  .project-map.is-revealing .project-map-pin-dot { animation: map-pin-enter .65s cubic-bezier(.16, 1, .3, 1) both; animation-delay: .4s; }
  .project-map.is-revealing .project-map-pin:nth-child(2) .project-map-pin-dot { animation-delay: .55s; }
  .project-map.is-revealing .project-map-pin:nth-child(3) .project-map-pin-dot { animation-delay: .7s; }
  .project-map.is-revealing .project-map-pin:nth-child(4) .project-map-pin-dot { animation-delay: .85s; }
  .project-map.is-revealing .project-map-pin:nth-child(n+5) .project-map-pin-dot { animation-delay: 1s; }
}
@keyframes map-outline { from { stroke-dashoffset: 1000; fill-opacity: 0; } 65% { fill-opacity: .15; } to { stroke-dashoffset: 0; fill-opacity: 1; } }
@keyframes map-pin-enter { from { opacity: 0; transform: translateY(-14px) rotate(-45deg) scale(.65); } to { opacity: 1; transform: translateY(0) rotate(-45deg) scale(1); } }
@media (max-width: 1100px) {
  .project-map-explorer { grid-template-columns: minmax(0, 1fr) 290px; }
  .project-map-canvas { padding: 20px 16px 18px; }
  .project-map-explorer { height: 560px; }
  .project-map-filters { padding: 20px 18px 0; }
  .project-map-list { padding-inline: 18px; }
}
@media (max-width: 767px) {
  .project-map-feature { flex-wrap: wrap; padding: 12px; gap: 10px; }
  .project-map-feature-navigation { margin-left: auto; }
  .project-map-explorer { grid-template-columns: minmax(0, 1fr); height: auto; }
  .project-map-canvas { padding: 18px 14px; }
  .project-map-country { font-size: 1.25rem; }
  .project-map-replay { font-size: .72rem; }
  .project-map-stage { margin-block: 16px; }
  .project-map-directory { border-left: 0; border-top: 1px solid var(--line); height: 500px; }
  .project-map-controls { margin-top: 8px; }
  .project-map-pin-dot { width: 28px; height: 28px; font-size: .75rem; }
  .project-map-summary { flex-wrap: wrap; gap: 20px; justify-content: space-between; }
  .project-map-summary p { font-size: .7rem; }
  .project-map-summary strong { font-size: 1.5rem; }
  .project-map-summary .project-map-pending { margin: 0; max-width: none; flex-basis: 100%; }
  .project-map-tooltip { max-width: 120px; }
}
