/* FND community map — a living signal of visibility */

.fnd-map-page {
  --map-navy: #072a59;
  --map-deep: #050f24;
  --map-night: #081a35;
  --map-magenta: #9d0047;
  --map-magenta-bright: #a7004b;
  --map-gold: #ffd36a;
  --map-cream: #fffaf4;
  --map-ink: #0d1c32;
  --map-muted: #58697f;
  --map-border: rgba(10, 44, 91, 0.14);
  color: var(--map-ink);
  background: var(--map-cream);
  overflow-x: clip;
}

.fnd-map-page main {
  overflow: clip;
}

.fnd-map-page :where(a, button, input, select):focus-visible {
  outline: 3px solid #ffba39;
  outline-offset: 3px;
  box-shadow: 0 0 0 6px var(--map-deep);
}

/* Hero ------------------------------------------------------------------- */

.fnd-map-page .map-hero {
  position: relative;
  isolation: isolate;
  min-height: 36rem;
  padding: clamp(3.75rem, 10vw, 6.5rem) 0 clamp(3rem, 8vw, 5.5rem);
  color: #fff;
  background:
    radial-gradient(circle at 80% 14%, rgba(208, 0, 91, 0.26), transparent 30rem),
    radial-gradient(circle at 15% 85%, rgba(35, 107, 186, 0.28), transparent 30rem),
    linear-gradient(145deg, #06142d 0%, #081d3c 55%, #101632 100%);
}

.fnd-map-page .map-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 7rem;
  background: linear-gradient(180deg, transparent, rgba(3, 9, 21, 0.62));
  pointer-events: none;
}

.fnd-map-page .map-hero-sky,
.fnd-map-page .map-hero-sky::before,
.fnd-map-page .map-hero-sky::after {
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
}

.fnd-map-page .map-hero-sky {
  overflow: hidden;
  opacity: 0.82;
  background-image:
    radial-gradient(circle at 12% 22%, rgba(255, 255, 255, 0.55) 0 1px, transparent 1.5px),
    radial-gradient(circle at 78% 18%, rgba(255, 211, 106, 0.68) 0 1px, transparent 1.7px),
    radial-gradient(circle at 66% 70%, rgba(255, 255, 255, 0.4) 0 1px, transparent 1.5px),
    radial-gradient(circle at 27% 78%, rgba(255, 211, 106, 0.48) 0 1px, transparent 1.6px);
  background-size: 12rem 12rem, 17rem 17rem, 15rem 15rem, 20rem 20rem;
}

.fnd-map-page .map-hero-sky::before {
  content: "";
  inset: auto -8rem -16rem auto;
  width: 34rem;
  height: 34rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  box-shadow:
    0 0 0 5rem rgba(255, 255, 255, 0.018),
    0 0 0 10rem rgba(255, 255, 255, 0.012);
}

.fnd-map-page .map-hero-sky::after {
  content: "";
  inset: 20% auto auto 62%;
  width: 9rem;
  height: 9rem;
  border-radius: 50%;
  background: rgba(208, 0, 91, 0.16);
  filter: blur(35px);
}

.fnd-map-page .map-hero-inner {
  position: relative;
}

.fnd-map-page .map-kicker-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1.25rem;
}

.fnd-map-page .map-kicker,
.fnd-map-page .map-section-kicker {
  display: inline-block;
  color: var(--map-magenta-bright);
  font-size: 0.73rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  line-height: 1.2;
  text-transform: uppercase;
}

.fnd-map-page .map-kicker {
  color: #ffdce9;
}

.fnd-map-page .map-live-pill,
.fnd-map-page .map-region-live {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 1.9rem;
  padding: 0.35rem 0.68rem;
  border: 1px solid rgba(157, 255, 191, 0.18);
  border-radius: 999px;
  color: #baffcf;
  background: rgba(44, 174, 93, 0.12);
  font-size: 0.72rem;
  font-weight: 800;
}

.fnd-map-page .map-live-pill::before,
.fnd-map-page .map-stage-label i {
  content: "";
  width: 0.46rem;
  height: 0.46rem;
  border-radius: 50%;
  background: #5ce68e;
  box-shadow: 0 0 0 0 rgba(92, 230, 142, 0.58);
  animation: map-live-pulse 2.2s ease-out infinite;
}

.fnd-map-page .map-hero h1 {
  max-width: 12ch;
  margin: 0;
  color: #fff;
  font-size: clamp(3.5rem, 17vw, 6.6rem);
  font-weight: 900;
  letter-spacing: -0.065em;
  line-height: 0.82;
  text-wrap: balance;
}

.fnd-map-page .map-hero h1 span {
  display: block;
  margin: 0 0 0.45rem 0.1em;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.32em;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1;
}

.fnd-map-page .map-manifesto {
  max-width: 40rem;
  margin: 1.55rem 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.25rem, 4.7vw, 1.75rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.fnd-map-page .map-manifesto strong {
  color: var(--map-gold);
}

.fnd-map-page .map-hero .lead {
  max-width: 38rem;
  margin: 0.9rem 0 0;
  color: rgba(226, 235, 248, 0.74);
  font-size: clamp(1rem, 2.7vw, 1.12rem);
  line-height: 1.62;
}

.fnd-map-page .map-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.25rem;
  margin-top: 1.75rem;
}

.fnd-map-page .map-primary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-height: 3.35rem;
  padding: 0.85rem 1.3rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 0.8rem;
  color: #fff;
  background: linear-gradient(135deg, #e20866, #b90052);
  box-shadow: 0 16px 34px rgba(208, 0, 91, 0.3);
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.fnd-map-page .map-primary-action span {
  color: #ffd9e8;
  font-size: 1.15rem;
}

.fnd-map-page .map-primary-action:hover {
  color: #fff;
  background: linear-gradient(135deg, #a7004b, #730034);
  box-shadow: 0 20px 42px rgba(208, 0, 91, 0.42);
  transform: translateY(-2px);
}

.fnd-map-page .map-secondary-action {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.75rem;
  color: rgba(255, 255, 255, 0.84);
  font-weight: 800;
  text-decoration-color: rgba(255, 255, 255, 0.28);
  text-underline-offset: 0.3em;
}

.fnd-map-page .map-secondary-action:hover {
  color: #fff;
  text-decoration-color: var(--map-gold);
}

.fnd-map-page .map-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 47rem;
  margin: clamp(2.5rem, 7vw, 4.5rem) 0 0;
  padding: 1.15rem 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.fnd-map-page .map-stat {
  min-width: 0;
  padding-right: 0.75rem;
}

.fnd-map-page .map-stat dt {
  margin-top: 0.35rem;
  color: rgba(213, 225, 241, 0.58);
  font-size: clamp(0.69rem, 2.3vw, 0.82rem);
  font-weight: 700;
  line-height: 1.3;
}

.fnd-map-page .map-stat dd {
  margin: 0;
  color: #fff;
  font-size: clamp(1.8rem, 7vw, 2.75rem);
  font-weight: 900;
  letter-spacing: -0.055em;
  line-height: 1;
}

.fnd-map-page .map-stat-primary dd {
  color: var(--map-gold);
}

.fnd-map-page .map-device-note {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 1rem;
  color: rgba(220, 231, 245, 0.66);
  font-size: 0.78rem;
  font-weight: 700;
}

.fnd-map-page .map-device-note dd {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
}

.fnd-map-page .map-device-note b {
  color: #fff;
}

.fnd-map-page .map-device-icon {
  color: var(--map-gold);
}

/* Map canvas -------------------------------------------------------------- */

.fnd-map-page .map-canvas-section {
  padding: 0 0 clamp(4.5rem, 10vw, 8rem);
  color: #fff;
  background:
    radial-gradient(circle at 85% 70%, rgba(208, 0, 91, 0.14), transparent 26rem),
    linear-gradient(180deg, #030915 0%, #07152c 88%, var(--map-cream) 88%);
}

.fnd-map-page .map-stage-frame {
  position: relative;
  z-index: 2;
  scroll-margin-top: 15rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: clamp(1rem, 3vw, 1.65rem);
  background: rgba(6, 16, 34, 0.94);
  box-shadow: 0 32px 90px rgba(0, 5, 18, 0.42);
}

.fnd-map-page .map-stage-head {
  display: grid;
  gap: 1rem;
  padding: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(7, 20, 43, 0.96);
}

.fnd-map-page .map-stage-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(207, 222, 242, 0.67);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.fnd-map-page .map-stage-label i {
  display: inline-block;
  flex: 0 0 auto;
}

.fnd-map-page .map-stage-head h2 {
  margin: 0.25rem 0 0;
  color: #fff;
  font-size: clamp(1.35rem, 5vw, 2rem);
  letter-spacing: -0.035em;
  line-height: 1.1;
}

.fnd-map-page .map-view-controls {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.35rem;
}

.fnd-map-page .map-view-controls button {
  min-height: 2.75rem;
  padding: 0.55rem 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.6rem;
  color: rgba(233, 240, 249, 0.8);
  background: rgba(255, 255, 255, 0.06);
  font: inherit;
  font-size: 0.75rem;
  font-weight: 800;
  cursor: pointer;
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease;
}

.fnd-map-page .map-view-controls button:hover,
.fnd-map-page .map-view-controls button.is-active {
  color: #fff;
  border-color: rgba(255, 211, 106, 0.42);
  background: rgba(255, 211, 106, 0.12);
}

.fnd-map-page .map-stage {
  position: relative;
  overflow: hidden;
  background: #071227;
  line-height: 0;
}

.fnd-map-page #fnd-map {
  display: block;
  width: 100%;
  height: min(68svh, 43rem);
  min-height: 28rem;
  background: #071227;
}

.fnd-map-page .map-hint {
  position: absolute;
  z-index: 500;
  left: 0.75rem;
  right: 0.75rem;
  bottom: 0.75rem;
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  max-width: 25rem;
  padding: 0.82rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 0.8rem;
  color: rgba(236, 243, 252, 0.82);
  background: rgba(5, 14, 31, 0.84);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(12px);
  font-size: 0.82rem;
  line-height: 1.45;
  pointer-events: none;
  transition: opacity 250ms ease, transform 250ms ease, border-color 250ms ease;
}

.fnd-map-page .map-hint strong {
  color: #fff;
}

.fnd-map-page .map-hint-spark {
  flex: 0 0 auto;
  color: var(--map-gold);
  font-size: 1.25rem;
  line-height: 1;
  text-shadow: 0 0 12px rgba(255, 211, 106, 0.75);
}

.fnd-map-page .map-hint.is-hidden {
  opacity: 0;
  transform: translateY(0.5rem);
}

.fnd-map-page .map-hint.is-emphasised {
  border-color: rgba(255, 211, 106, 0.48);
  transform: translateY(-0.2rem);
}

.fnd-map-page .map-privacy-note {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin: 0;
  padding: 0.9rem 1rem;
  color: rgba(215, 226, 242, 0.65);
  background: rgba(255, 255, 255, 0.025);
  font-size: 0.76rem;
  line-height: 1.45;
}

.fnd-map-page .map-privacy-note svg {
  flex: 0 0 1rem;
  width: 1rem;
  margin-top: 0.08rem;
  color: #91b9e8;
}

/* Story and regional picture -------------------------------------------- */

.fnd-map-page .map-story {
  padding: clamp(5rem, 12vw, 9rem) 0;
  background: var(--map-cream);
}

.fnd-map-page .map-story-grid {
  display: grid;
  gap: 3rem;
}

.fnd-map-page .map-story-copy h2,
.fnd-map-page .map-paths-intro h2 {
  max-width: 14ch;
  margin: 0.8rem 0 0;
  color: var(--map-navy);
  font-size: clamp(2.2rem, 9vw, 4.3rem);
  font-weight: 900;
  letter-spacing: -0.06em;
  line-height: 0.98;
  text-wrap: balance;
}

.fnd-map-page .map-story-copy > p {
  max-width: 37rem;
  margin: 1.4rem 0 0;
  color: var(--map-muted);
  font-size: clamp(1rem, 3vw, 1.12rem);
  line-height: 1.7;
}

.fnd-map-page .map-story-copy blockquote {
  position: relative;
  max-width: 34rem;
  margin: 2rem 0 0;
  padding: 0 0 0 1.25rem;
  border-left: 3px solid var(--map-magenta);
  color: var(--map-navy);
  font-size: clamp(1.15rem, 4vw, 1.45rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.4;
}

.fnd-map-page .map-story-copy blockquote > span {
  position: absolute;
  top: -1.1rem;
  left: 0.55rem;
  color: rgba(208, 0, 91, 0.12);
  font-family: Georgia, serif;
  font-size: 4rem;
  line-height: 1;
}

.fnd-map-page .map-region-panel {
  align-self: start;
  padding: clamp(1.25rem, 4vw, 2rem);
  border-radius: 1.35rem;
  color: #fff;
  background:
    radial-gradient(circle at 100% 0%, rgba(208, 0, 91, 0.2), transparent 18rem),
    linear-gradient(145deg, #071a36, #0c274d);
  box-shadow: 0 26px 70px rgba(7, 42, 89, 0.18);
}

.fnd-map-page .map-region-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.35rem;
}

.fnd-map-page .map-region-heading h3 {
  margin: 0.45rem 0 0;
  color: #fff;
  font-size: clamp(1.4rem, 5vw, 2rem);
  letter-spacing: -0.04em;
  line-height: 1.08;
}

.fnd-map-page .map-region-panel .map-section-kicker {
  color: #ffb4d0;
}

.fnd-map-page .map-region-live {
  color: #baffcf;
}

.fnd-map-page .region-list {
  display: grid;
  gap: 0.95rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.fnd-map-page .region-list li {
  display: grid;
  gap: 0.38rem;
}

.fnd-map-page .region-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: rgba(235, 242, 251, 0.78);
  font-size: 0.82rem;
  font-weight: 700;
}

.fnd-map-page .region-row b {
  color: #fff;
  font-size: 0.9rem;
}

.fnd-map-page .region-track {
  display: block;
  height: 0.24rem;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

.fnd-map-page .region-track i {
  display: block;
  width: var(--region-strength, 10%);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--map-magenta-bright), var(--map-gold));
  box-shadow: 0 0 10px rgba(255, 211, 106, 0.22);
}

.fnd-map-page .region-empty {
  display: flex !important;
  justify-content: space-between;
  color: rgba(255, 255, 255, 0.7);
}

/* Paths ------------------------------------------------------------------ */

.fnd-map-page .map-paths {
  padding: clamp(4.5rem, 11vw, 8rem) 0;
  border-top: 1px solid rgba(7, 42, 89, 0.08);
  background: #fff;
}

.fnd-map-page .map-paths-intro {
  margin-bottom: clamp(2.5rem, 7vw, 4rem);
}

.fnd-map-page .map-paths-intro h2 {
  max-width: 17ch;
}

.fnd-map-page .map-path-list {
  border-top: 1px solid rgba(7, 42, 89, 0.16);
}

.fnd-map-page .map-path-list a {
  display: grid;
  grid-template-columns: 2.2rem minmax(0, 1fr) 2rem;
  gap: 0.6rem;
  align-items: center;
  min-height: 6.3rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(7, 42, 89, 0.16);
  color: inherit;
  text-decoration: none;
  transition: color 180ms ease, padding 180ms ease, background 180ms ease;
}

.fnd-map-page .map-path-number {
  align-self: start;
  padding-top: 0.18rem;
  color: var(--map-magenta);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.fnd-map-page .map-path-list strong,
.fnd-map-page .map-path-list small {
  display: block;
}

.fnd-map-page .map-path-list strong {
  color: var(--map-navy);
  font-size: clamp(1.15rem, 4.5vw, 1.55rem);
  letter-spacing: -0.035em;
  line-height: 1.15;
}

.fnd-map-page .map-path-list small {
  margin-top: 0.35rem;
  color: var(--map-muted);
  font-size: 0.82rem;
  line-height: 1.4;
}

.fnd-map-page .map-path-arrow {
  color: var(--map-magenta);
  font-size: 1.35rem;
  transition: transform 180ms ease;
}

.fnd-map-page .map-path-list a:hover {
  padding-left: 0.65rem;
  padding-right: 0.65rem;
  background: rgba(208, 0, 91, 0.035);
}

.fnd-map-page .map-path-list a:hover .map-path-arrow {
  transform: translate(0.18rem, -0.18rem);
}

/* Final invitation ------------------------------------------------------- */

.fnd-map-page .map-final-cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(5rem, 14vw, 9rem) 0;
  color: #fff;
  text-align: center;
  background:
    radial-gradient(circle at 50% 110%, rgba(255, 211, 106, 0.18), transparent 28rem),
    linear-gradient(145deg, #09152d, #35102d 78%, #7c0038);
}

.fnd-map-page .map-final-glow {
  position: absolute;
  z-index: -1;
  top: 50%;
  left: 50%;
  width: min(70vw, 36rem);
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  box-shadow:
    0 0 0 5rem rgba(255, 255, 255, 0.018),
    0 0 0 10rem rgba(255, 255, 255, 0.012);
  transform: translate(-50%, -50%);
}

.fnd-map-page .map-final-inner {
  position: relative;
}

.fnd-map-page .map-final-spark {
  display: inline-block;
  margin-bottom: 1.1rem;
  color: var(--map-gold);
  font-size: 2.5rem;
  text-shadow: 0 0 24px rgba(255, 211, 106, 0.8);
  animation: map-final-spark 3.6s ease-in-out infinite;
}

.fnd-map-page .map-final-cta h2 {
  max-width: 16ch;
  margin: 0 auto;
  color: #fff;
  font-size: clamp(2.35rem, 10vw, 5.2rem);
  font-weight: 900;
  letter-spacing: -0.065em;
  line-height: 0.98;
  text-wrap: balance;
}

.fnd-map-page .map-final-cta .map-primary-action {
  margin-top: 2rem;
}

.fnd-map-page .map-primary-action.is-light {
  color: var(--map-navy);
  border-color: rgba(255, 255, 255, 0.45);
  background: #fff;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.24);
}

.fnd-map-page .map-primary-action.is-light span {
  color: var(--map-magenta);
}

.fnd-map-page .map-primary-action.is-light:hover {
  color: var(--map-navy);
  background: #fff6fa;
}

.fnd-map-page .map-final-cta p {
  margin: 1rem 0 0;
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.82rem;
}

/* Modal ------------------------------------------------------------------ */

.fnd-map-modal[hidden] {
  display: none !important;
}

.fnd-map-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: end center;
  overflow-y: auto;
  padding: 0;
  background: rgba(2, 8, 20, 0.72);
  backdrop-filter: blur(10px);
  -webkit-overflow-scrolling: touch;
}

.fnd-map-modal-card {
  position: relative;
  width: min(34rem, 100%);
  max-height: min(94svh, 48rem);
  overflow-y: auto;
  margin-top: auto;
  padding: 1.35rem 1.15rem calc(1.25rem + env(safe-area-inset-bottom, 0px));
  border: 1px solid rgba(7, 42, 89, 0.12);
  border-radius: 1.35rem 1.35rem 0 0;
  color: var(--map-ink);
  background: #fff;
  box-shadow: 0 -20px 70px rgba(0, 0, 0, 0.32);
}

html.fnd-map-modal-open,
html.fnd-map-modal-open body {
  overflow: hidden;
}

.fnd-map-page .map-modal-close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid rgba(7, 42, 89, 0.12);
  border-radius: 50%;
  color: var(--map-navy);
  background: #f4f7fb;
  font: inherit;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.fnd-map-page .map-modal-heading {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding-right: 3rem;
}

.fnd-map-page .map-modal-spark {
  display: grid;
  flex: 0 0 3rem;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  color: var(--map-gold);
  background: var(--map-night);
  box-shadow: 0 10px 24px rgba(7, 42, 89, 0.2);
  font-size: 1.35rem;
}

.fnd-map-page .fnd-map-modal-card h2 {
  margin: 0.25rem 0 0;
  color: var(--map-navy);
  font-size: clamp(1.65rem, 6vw, 2.2rem);
  letter-spacing: -0.045em;
  line-height: 1;
}

.fnd-map-page .fnd-map-modal-card .modal-sub {
  margin: 1rem 0 0;
  color: var(--map-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.fnd-map-page .map-chosen-place {
  display: inline-flex;
  align-items: center;
  min-height: 2.1rem;
  margin: 0.8rem 0 1rem;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  color: var(--map-navy);
  background: #eef4fb;
  font-size: 0.76rem;
  font-weight: 800;
}

.fnd-map-page .fnd-map-modal-card label {
  display: grid;
  gap: 0.36rem;
  margin-bottom: 0.8rem;
  color: var(--map-navy);
  font-size: 0.86rem;
  font-weight: 800;
}

.fnd-map-page .fnd-map-modal-card label small {
  color: var(--map-muted);
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1.4;
}

.fnd-map-page .fnd-map-modal-card input,
.fnd-map-page .fnd-map-modal-card select {
  width: 100%;
  min-height: 3rem;
  padding: 0.68rem 0.75rem;
  border: 1px solid rgba(7, 42, 89, 0.2);
  border-radius: 0.65rem;
  color: var(--map-ink);
  background: #fff;
  font: inherit;
  font-size: 0.92rem;
}

.fnd-map-page .fnd-map-modal-card input:focus,
.fnd-map-page .fnd-map-modal-card select:focus {
  border-color: var(--map-magenta);
  box-shadow: none;
  outline: 3px solid var(--map-magenta);
  outline-offset: 2px;
}

.fnd-map-page .fnd-map-modal-card .check {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  margin-top: 0.25rem;
  color: var(--map-muted);
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.45;
}

.fnd-map-page .fnd-map-modal-card .check input {
  flex: 0 0 auto;
  width: 1.5rem;
  min-height: 1.5rem;
  margin-top: 0.08rem;
}

.fnd-map-page .fnd-map-modal-actions {
  display: grid;
  gap: 0.55rem;
  margin-top: 1rem;
}

.fnd-map-page .fnd-map-modal-actions .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3.2rem;
  border: 0;
  border-radius: 0.7rem;
  cursor: pointer;
}

.fnd-map-page .map-submit-spark {
  color: #fff;
  background: linear-gradient(135deg, #e20866, #b90052);
  box-shadow: 0 12px 26px rgba(208, 0, 91, 0.22);
}

.fnd-map-page .fnd-map-modal-actions .secondary {
  color: var(--map-navy);
  background: #eef3f8;
}

.fnd-map-page .fnd-map-modal-error {
  margin: 0.5rem 0 0;
  color: #a91523;
  font-size: 0.84rem;
  font-weight: 800;
}

.fnd-map-page .fnd-map-modal-error:empty {
  display: none;
}

.fnd-map-page .map-modal-privacy {
  margin: 1rem 0 0;
  color: var(--map-muted);
  font-size: 0.72rem;
  line-height: 1.45;
}

.fnd-map-page .map-modal-privacy a {
  color: var(--map-magenta);
}

/* MapLibre and sparks ---------------------------------------------------- */

.fnd-map-page .maplibregl-map,
.fnd-map-page .maplibregl-canvas-container,
.fnd-map-page .maplibregl-canvas {
  width: 100%;
  height: 100%;
  outline: none;
}

.fnd-map-page .maplibregl-ctrl-bottom-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  max-width: min(92vw, 22rem);
}

.fnd-map-page .maplibregl-ctrl-attrib {
  max-width: 100%;
  margin: 0 8px 8px 0 !important;
  border-radius: 8px !important;
  color: rgba(255, 255, 255, 0.65) !important;
  background: rgba(5, 14, 31, 0.76) !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
  font-size: 10px !important;
  line-height: 1.35 !important;
}

.fnd-map-page .maplibregl-ctrl-attrib.maplibregl-compact {
  min-width: 24px;
  min-height: 24px;
  padding: 0 !important;
}

.fnd-map-page .maplibregl-ctrl-attrib.maplibregl-compact:not(.maplibregl-compact-show) {
  width: 24px !important;
  height: 24px !important;
  overflow: hidden;
}

.fnd-map-page .maplibregl-ctrl-attrib.maplibregl-compact-show {
  padding: 4px 8px 4px 28px !important;
  white-space: normal;
  word-break: break-word;
}

.fnd-map-page .maplibregl-ctrl-attrib a {
  color: rgba(255, 210, 230, 0.9) !important;
}

.fnd-map-page .maplibregl-ctrl-group {
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  background: rgba(8, 20, 42, 0.92) !important;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25) !important;
}

.fnd-map-page .maplibregl-ctrl-group button {
  width: 44px !important;
  height: 44px !important;
  background-color: transparent !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

.fnd-map-page .maplibregl-ctrl-group button + button {
  border-top-color: rgba(255, 255, 255, 0.1) !important;
}

.fnd-map-page .maplibregl-ctrl-icon {
  filter: invert(1) brightness(1.12);
}

.fnd-spark-icon {
  width: 14px !important;
  height: 14px !important;
  overflow: visible !important;
  border: 0 !important;
  background: transparent !important;
  pointer-events: none;
}

.fnd-spark {
  position: relative;
  display: block;
  width: 14px;
  height: 14px;
  pointer-events: none;
}

.fnd-spark-glow {
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 244, 198, 0.5) 0%, rgba(255, 201, 72, 0.24) 36%, rgba(212, 148, 20, 0.08) 56%, transparent 74%);
  animation: spark-twinkle-glow var(--spark-dur, 4.2s) ease-in-out infinite;
  animation-delay: var(--spark-delay, 0s);
}

.fnd-spark-bloom {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  margin: -2.5px 0 0 -2.5px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff9dd 0%, rgba(255, 210, 90, 0.72) 46%, rgba(232, 168, 32, 0.14) 76%, transparent 100%);
  box-shadow: 0 0 4px 1px rgba(255, 200, 70, 0.5), 0 0 9px 3px rgba(212, 148, 20, 0.2);
  animation: spark-twinkle-bloom var(--spark-dur, 4.2s) ease-in-out infinite;
  animation-delay: var(--spark-delay, 0s);
}

.fnd-spark-core {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 2px;
  height: 2px;
  margin: -1px 0 0 -1px;
  border-radius: 50%;
  background: #fffef8;
  box-shadow: 0 0 1px 0.5px rgba(255, 255, 255, 0.95), 0 0 3px 1px rgba(255, 220, 120, 0.8);
  animation: spark-twinkle-core var(--spark-dur, 4.2s) ease-in-out infinite;
  animation-delay: var(--spark-delay, 0s);
}

.fnd-spark-icon.is-new .fnd-spark-glow {
  animation: spark-ignite-glow 0.75s ease-out, spark-twinkle-glow var(--spark-dur, 4.2s) ease-in-out 0.75s infinite;
}

.fnd-spark-icon.is-new .fnd-spark-bloom {
  animation: spark-ignite-bloom 0.75s ease-out, spark-twinkle-bloom var(--spark-dur, 4.2s) ease-in-out 0.75s infinite;
}

.fnd-spark-icon.is-new .fnd-spark-core {
  animation: spark-ignite-core 0.75s ease-out, spark-twinkle-core var(--spark-dur, 4.2s) ease-in-out 0.75s infinite;
}

/* Toast ------------------------------------------------------------------ */

.fnd-map-page .map-toast {
  position: fixed;
  z-index: 2100;
  left: 50%;
  bottom: 1.1rem;
  max-width: min(92vw, 28rem);
  padding: 0.78rem 1.05rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: #fff;
  background: #071a36;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.3);
  font-size: 0.84rem;
  font-weight: 800;
  line-height: 1.35;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(-50%) translateY(140%);
  transition: transform 300ms ease, opacity 300ms ease;
}

.fnd-map-page .map-toast.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.fnd-map-page .map-toast:empty,
.fnd-map-page .map-toast:not(.is-visible) {
  opacity: 0;
  visibility: hidden;
}

/* Motion ----------------------------------------------------------------- */

.fnd-map-page .map-entrance {
  animation: map-entrance 760ms both cubic-bezier(0.22, 1, 0.36, 1);
}

.fnd-map-page .map-entrance-1 { animation-delay: 80ms; }
.fnd-map-page .map-entrance-2 { animation-delay: 160ms; }
.fnd-map-page .map-entrance-3 { animation-delay: 260ms; }
.fnd-map-page .map-entrance-4 { animation-delay: 360ms; }

.fnd-map-page.map-motion-ready [data-map-reveal] {
  opacity: 0;
  transform: translateY(1.6rem);
  transition: opacity 700ms ease, transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

.fnd-map-page.map-motion-ready [data-map-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes map-entrance {
  from { opacity: 0; transform: translateY(1.4rem); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes map-live-pulse {
  0% { box-shadow: 0 0 0 0 rgba(92, 230, 142, 0.52); }
  70% { box-shadow: 0 0 0 8px rgba(92, 230, 142, 0); }
  100% { box-shadow: 0 0 0 0 rgba(92, 230, 142, 0); }
}

@keyframes map-final-spark {
  0%, 100% { opacity: 0.68; transform: scale(0.92) rotate(0); }
  50% { opacity: 1; transform: scale(1.12) rotate(8deg); }
}

@keyframes spark-twinkle-glow {
  0%, 100% { opacity: 0.45; }
  18% { opacity: 0.56; }
  42% { opacity: 1; }
  58% { opacity: 0.5; }
  78% { opacity: 0.88; }
}

@keyframes spark-twinkle-bloom {
  0%, 100% { opacity: 0.55; transform: scale(0.92); }
  22% { opacity: 0.72; transform: scale(1); }
  45% { opacity: 1; transform: scale(1.2); }
  62% { opacity: 0.6; transform: scale(0.95); }
  82% { opacity: 0.94; transform: scale(1.1); }
}

@keyframes spark-twinkle-core {
  0%, 100% { opacity: 0.65; }
  30% { opacity: 0.76; }
  48% { opacity: 1; }
  70% { opacity: 0.55; }
  88% { opacity: 0.92; }
}

@keyframes spark-ignite-glow {
  0% { opacity: 0; transform: scale(0.2); }
  50% { opacity: 1; transform: scale(1.3); }
  100% { opacity: 0.72; transform: scale(1); }
}

@keyframes spark-ignite-bloom {
  0% { opacity: 0; transform: scale(0.15); }
  50% { opacity: 1; transform: scale(1.45); }
  100% { opacity: 0.88; transform: scale(1); }
}

@keyframes spark-ignite-core {
  0% { opacity: 0; transform: scale(0); }
  40% { opacity: 1; transform: scale(1.8); }
  100% { opacity: 0.9; transform: scale(1); }
}

/* Larger layouts --------------------------------------------------------- */

@media (min-width: 42rem) {
  .fnd-map-page .map-stage-frame {
    scroll-margin-top: 10.5rem;
  }

  .fnd-map-page .map-hero {
    min-height: 42rem;
  }

  .fnd-map-page .map-hero h1 {
    font-size: clamp(5.2rem, 12vw, 8.6rem);
  }

  .fnd-map-page .map-device-note {
    grid-column: 4;
    grid-row: 1;
    align-self: end;
    justify-self: end;
    max-width: 12rem;
    margin-top: 0;
    text-align: right;
  }

  .fnd-map-page .map-stats {
    grid-template-columns: repeat(3, minmax(7rem, 1fr)) minmax(10rem, 1.2fr);
  }

  .fnd-map-page .map-stage-head {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    padding: 1.15rem 1.3rem;
  }

  .fnd-map-page .map-view-controls {
    display: flex;
  }

  .fnd-map-page .map-view-controls button {
    min-width: 5.2rem;
  }

  .fnd-map-page .map-hint {
    right: auto;
    padding: 0.9rem 1rem;
    font-size: 0.88rem;
  }

  .fnd-map-page .map-form-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0.7rem;
  }

  .fnd-map-page .fnd-map-modal-actions {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  }

  .fnd-map-modal {
    place-items: center;
    padding: 1rem;
  }

  .fnd-map-modal-card {
    max-height: min(92svh, 48rem);
    margin-top: 0;
    padding: 1.6rem;
    border-radius: 1.35rem;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.38);
  }

  .fnd-map-page .map-path-list a {
    grid-template-columns: 3.5rem minmax(0, 1fr) 3rem;
    gap: 1rem;
    min-height: 7rem;
  }

  .fnd-map-page .map-path-list small {
    font-size: 0.9rem;
  }
}

@media (min-width: 64rem) {
  .fnd-map-page .map-hero {
    padding-top: 6.5rem;
    padding-bottom: 7rem;
  }

  .fnd-map-page .map-hero h1 {
    font-size: clamp(7rem, 9.2vw, 9.8rem);
  }

  .fnd-map-page .map-canvas-section {
    margin-top: -2.3rem;
    padding-bottom: 9rem;
    background:
      radial-gradient(circle at 85% 70%, rgba(208, 0, 91, 0.14), transparent 30rem),
      linear-gradient(180deg, #030915 0%, #07152c 84%, var(--map-cream) 84%);
  }

  .fnd-map-page #fnd-map {
    height: min(76vh, 49rem);
    min-height: 40rem;
  }

  .fnd-map-page .map-story-grid {
    grid-template-columns: minmax(0, 1.12fr) minmax(24rem, 0.72fr);
    gap: clamp(4rem, 8vw, 8rem);
    align-items: center;
  }

  .fnd-map-page .map-region-panel {
    padding: 2rem;
  }

  .fnd-map-page .map-paths .wrap {
    display: grid;
    grid-template-columns: minmax(19rem, 0.72fr) minmax(0, 1.28fr);
    gap: clamp(4rem, 8vw, 8rem);
    align-items: start;
  }

  .fnd-map-page .map-paths-intro {
    position: sticky;
    top: 2rem;
    margin-bottom: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fnd-map-page *,
  .fnd-map-page *::before,
  .fnd-map-page *::after {
    scroll-behavior: auto !important;
  }

  .fnd-map-page .map-entrance,
  .fnd-map-page .map-live-pill::before,
  .fnd-map-page .map-stage-label i,
  .fnd-map-page .map-final-spark,
  .fnd-spark-glow,
  .fnd-spark-bloom,
  .fnd-spark-core,
  .fnd-spark-icon.is-new .fnd-spark-glow,
  .fnd-spark-icon.is-new .fnd-spark-bloom,
  .fnd-spark-icon.is-new .fnd-spark-core {
    animation: none !important;
  }

  .fnd-map-page.map-motion-ready [data-map-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .fnd-map-page .map-primary-action:hover,
  .fnd-map-page .map-path-list a:hover,
  .fnd-map-page .map-path-list a:hover .map-path-arrow {
    transform: none;
  }
}
