/* ==========================================================
   Mapply master finish — 2026-08-27
   Final visual authority for consistent desktop and mobile UI.
   ========================================================== */

:root {
  --mapply-page-gutter: clamp(14px, 2.4vw, 32px);
  --mapply-section-radius: clamp(24px, 3vw, 42px);
  --mapply-card-radius: clamp(20px, 2vw, 30px);
  --mapply-section-gap: clamp(16px, 2vw, 28px);
  --mapply-touch: 46px;
  --mapply-soft-border: rgba(116, 153, 205, 0.27);
  --mapply-soft-shadow: 0 18px 46px rgba(25, 66, 122, 0.11);
}

html {
  scroll-padding-top: 88px;
}

body.mapply-v4 {
  overflow-x: clip;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.mapply-v4 *,
body.mapply-v4 *::before,
body.mapply-v4 *::after {
  box-sizing: border-box;
}

body.mapply-v4 img,
body.mapply-v4 svg,
body.mapply-v4 video {
  max-width: 100%;
}

body.mapply-v4 .page-shell > section {
  scroll-margin-top: 88px;
}

body.mapply-v4 .section-heading h2,
body.mapply-v4 .hero-copy h1,
body.mapply-v4 .about h2,
body.mapply-v4 .get-started h2,
body.mapply-v4 .newsletter h2 {
  text-wrap: balance;
}

body.mapply-v4 .section-heading > p,
body.mapply-v4 .hero-copy > p,
body.mapply-v4 .about-copy > p,
body.mapply-v4 .get-started-copy > p,
body.mapply-v4 .newsletter-copy > p {
  text-wrap: pretty;
}

body.mapply-v4 :where(a, button, input, textarea, select) {
  -webkit-tap-highlight-color: transparent;
}

/* Extra journey context is mobile-only; desktop keeps the original pill. */
body.mapply-v4 .journey-status-icon-mobile,
body.mapply-v4 .journey-status-copy > small {
  display: none;
}

body.mapply-v4 .journey-status-copy {
  display: contents;
}

body.mapply-v4 :where(a, button):focus-visible,
body.mapply-v4 :where(input, textarea, select):focus-visible {
  outline: 3px solid rgba(26, 115, 232, 0.3);
  outline-offset: 3px;
}

/* Keep the three live-review systems visually related. */
body.mapply-v4 :where(
  #network .network-review-stage-v3,
  #business-benefits .impact-map-visual,
  #google-maps-contributions .contribution-visual
) {
  border-color: var(--mapply-soft-border) !important;
  box-shadow: var(--mapply-soft-shadow) !important;
}

body.mapply-v4 :where(
  #network .network-live-review-v3,
  #business-benefits .impact-review-preview,
  #google-maps-contributions .contribution-review-card-v3
) {
  border-radius: var(--mapply-card-radius) !important;
}

/* Final authority for the first live-review demo. Legacy stylesheets still
   contain vertical offsets from an older absolute layout; neutralize them so
   the current grid owns all placement at every viewport width. */
body.mapply-v4 #network .network-review-stage-v3,
body.mapply-v4 #network .network-story-panel-v3 {
  height: auto !important;
  min-height: 0 !important;
}

body.mapply-v4 #network .network-guide-ring {
  top: 0 !important;
  right: auto !important;
  bottom: auto !important;
  left: 0 !important;
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 1 / 1 !important;
}

body.mapply-v4 #network .network-review-stage-v3 > .network-live-review-v3 {
  position: relative !important;
  inset: auto !important;
  grid-column: 2 !important;
  grid-row: 2 !important;
  width: 100% !important;
  height: auto !important;
  margin: 0 !important;
  transform: none !important;
}

/* At portrait-tablet widths the legacy two-column coordinates can still win
   through selector specificity. Force a deliberate vertical sequence here so
   the orbit keeps its full diameter and the review never covers it. */
@media (max-width: 820px) {
  body.mapply-v4 #network .network-review-stage-v3 {
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: auto auto auto !important;
    align-items: start !important;
    height: auto !important;
    min-height: 0 !important;
    overflow: hidden !important;
  }

  body.mapply-v4 #network .network-review-stage-v3 > .review-demo-head-v45 {
    grid-column: 1 !important;
    grid-row: 1 !important;
  }

  body.mapply-v4 #network .network-review-stage-v3 > .network-orbit-scene {
    grid-column: 1 !important;
    grid-row: 2 !important;
    width: min(100%, 430px) !important;
    height: auto !important;
    aspect-ratio: 1 / 1 !important;
    margin-inline: auto !important;
  }

  body.mapply-v4 #network .network-review-stage-v3 > .network-live-review-v3 {
    grid-column: 1 !important;
    grid-row: 3 !important;
    width: min(100%, 600px) !important;
    margin-inline: auto !important;
  }
}

@media (max-width: 1180px) {
  body.mapply-v4 .page-shell {
    gap: var(--mapply-section-gap);
    padding-inline: var(--mapply-page-gutter);
  }

  body.mapply-v4 .page-shell > section,
  body.mapply-v4 .site-footer {
    border-radius: var(--mapply-section-radius);
  }

  body.mapply-v4 .business-impact-live {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

/* Portrait tablet / narrow laptop finish for the Real Local Guide examples.
   The outer section stacks here, but the demo itself remains a balanced
   two-column story without inherited offsets or clipped review content. */
@media (min-width: 821px) and (max-width: 1180px) {
  body.mapply-v4 #network .business-network-layout {
    gap: 20px !important;
  }

  body.mapply-v4 #network .network-review-stage-v3 {
    grid-template-columns: minmax(300px, 0.9fr) minmax(350px, 1.1fr) !important;
    grid-template-rows: auto auto !important;
    align-items: center !important;
    gap: 22px !important;
    width: min(850px, 100%) !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 22px 22px 44px !important;
  }

  body.mapply-v4 #network .network-review-stage-v3 > .review-demo-head-v45 {
    grid-column: 1 / -1 !important;
    grid-row: 1 !important;
  }

  body.mapply-v4 #network .network-review-stage-v3 > .network-orbit-scene {
    grid-column: 1 !important;
    grid-row: 2 !important;
    width: min(100%, 430px) !important;
    margin: 0 auto !important;
  }

  body.mapply-v4 #network .network-review-stage-v3 > .network-live-review-v3 {
    position: relative !important;
    inset: auto !important;
    grid-column: 2 !important;
    grid-row: 2 !important;
    width: 100% !important;
    height: auto !important;
    min-height: 360px !important;
    margin: 0 !important;
    padding: 22px !important;
    transform: none !important;
  }

  body.mapply-v4 #network .network-story-panel-v3 {
    grid-template-columns: minmax(240px, 0.72fr) minmax(0, 1.28fr) !important;
    grid-template-rows: auto 1fr auto !important;
    align-items: start !important;
    gap: 18px 24px !important;
    width: min(850px, 100%) !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 28px !important;
  }

  body.mapply-v4 #network .network-story-panel-v3 > .network-story-label,
  body.mapply-v4 #network .network-story-panel-v3 > h3 {
    grid-column: 1 !important;
    grid-row: auto !important;
  }

  body.mapply-v4 #network .network-story-panel-v3 > .network-story-steps {
    grid-column: 2 !important;
    grid-row: 1 / span 2 !important;
  }

  body.mapply-v4 #network .network-story-panel-v3 > .network-win-win {
    grid-column: 1 / -1 !important;
    grid-row: 3 !important;
  }

  body.mapply-v4 #network .network-story-panel-v3 > h3 {
    font-size: clamp(1.85rem, 3.5vw, 2.55rem) !important;
  }
}

/* Portrait tablets need the same intentional horizontal browsing pattern as
   phones, while retaining tablet-sized type, cards and navigation. */
@media (min-width: 721px) and (max-width: 900px) {
  body.mapply-v4 .hero-profile-track-v5,
  body.mapply-v4 .local-guides .guide-grid,
  body.mapply-v4 .local-guides .guide-quality-v3,
  body.mapply-v4 #business-benefits .benefit-grid {
    display: flex !important;
    gap: 16px !important;
    padding: 4px 4px 18px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-snap-type: x mandatory;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(66, 133, 244, 0.42) transparent;
  }

  body.mapply-v4 .hero-profile-card-v5 {
    flex: 0 0 340px !important;
    width: 340px !important;
    min-height: 258px !important;
    scroll-snap-align: start;
  }

  body.mapply-v4 .local-guides .guide-profile {
    flex: 0 0 306px !important;
    width: 306px !important;
    min-height: 132px !important;
    margin: 0 !important;
    scroll-snap-align: start;
    transform: none !important;
  }

  body.mapply-v4 .local-guides .guide-quality-v3 > article {
    flex: 0 0 380px !important;
    width: 380px !important;
    min-height: 248px !important;
    scroll-snap-align: start;
  }

  body.mapply-v4 #business-benefits .benefit-card {
    flex: 0 0 360px !important;
    width: 360px !important;
    min-height: 320px !important;
    margin: 0 !important;
    scroll-snap-align: start;
    transform: none !important;
  }

  body.mapply-v4 #business-benefits .impact-outcome-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  body.mapply-v4 #business-benefits .impact-outcome-node {
    min-height: 118px !important;
  }

  body.mapply-v4 #business-benefits .impact-live-review-copy {
    min-height: 96px !important;
  }
}

@media (max-width: 720px) {
  :root {
    --mapply-page-gutter: 13px;
    --mapply-section-gap: 14px;
    --mapply-section-radius: 24px;
    --mapply-card-radius: 21px;
  }

  html {
    scroll-padding-top: 62px;
  }

  body.mapply-v4 .site-header {
    min-height: 50px;
    border-bottom-color: rgba(116, 153, 205, 0.25);
    box-shadow: 0 5px 18px rgba(30, 63, 110, 0.08);
  }

  body.mapply-v4 .header-inner {
    min-height: 50px;
    padding-inline: 10px;
  }

  body.mapply-v4 .nav-toggle {
    width: var(--mapply-touch);
    height: var(--mapply-touch);
    border-radius: 15px;
  }

  body.mapply-v4 .primary-navigation {
    top: calc(100% + 8px);
    right: 10px;
    left: 10px;
    width: auto;
    max-height: calc(100svh - 76px);
    padding: 10px;
    overflow-y: auto;
    border: 1px solid rgba(116, 153, 205, 0.28);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 22px 55px rgba(20, 55, 105, 0.2);
  }

  body.mapply-v4 .primary-navigation a {
    min-height: var(--mapply-touch);
    border-radius: 13px;
  }

  body.mapply-v4 .page-shell > section {
    scroll-margin-top: 62px;
  }

  /* Keep live journey feedback out of the route artwork on phones. */
  body.mapply-v4 .hero-journey-v26 {
    height: auto !important;
    min-height: 0 !important;
  }

  body.mapply-v4 .hero-journey-v26 .journey-live-status {
    position: relative !important;
    inset: auto !important;
    display: grid !important;
    grid-template-columns: 42px minmax(0, 1fr) 10px !important;
    align-items: center !important;
    justify-content: stretch !important;
    gap: 10px !important;
    width: 100% !important;
    min-height: 76px !important;
    margin: 12px 0 0 !important;
    padding: 11px 13px !important;
    text-align: left !important;
    background:
      linear-gradient(135deg, rgba(239, 246, 255, 0.98), rgba(255, 255, 255, 0.99)) !important;
    border: 1px solid rgba(66, 133, 244, 0.24) !important;
    border-radius: 19px !important;
    box-shadow: 0 12px 28px rgba(24, 74, 137, 0.12) !important;
    transform: none !important;
  }

  body.mapply-v4 .hero-journey-v26 .journey-status-icon-mobile {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(66, 133, 244, 0.18);
    border-radius: 13px;
    background: #fff;
    box-shadow: 0 7px 16px rgba(26, 115, 232, 0.12);
  }

  body.mapply-v4 .hero-journey-v26 .journey-status-icon-mobile img {
    width: 25px;
    height: 25px;
  }

  body.mapply-v4 .hero-journey-v26 .journey-status-copy {
    display: block;
    min-width: 0;
  }

  body.mapply-v4 .hero-journey-v26 .journey-status-copy > small {
    display: block;
    margin-bottom: 4px;
    color: #56708f;
    font-size: 0.58rem;
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: 0.09em;
    text-transform: uppercase;
  }

  body.mapply-v4 .hero-journey-v26 .journey-status-copy > strong {
    display: block;
    color: #123a70;
    font-size: 0.76rem !important;
    line-height: 1.3;
    text-wrap: pretty;
  }

  body.mapply-v4 .hero-journey-v26 .journey-live-dot {
    grid-column: 3;
    width: 10px;
    height: 10px;
    justify-self: end;
  }

  body.mapply-v4 .section-heading {
    margin-bottom: 20px;
  }

  body.mapply-v4 .section-heading h2,
  body.mapply-v4 .about h2,
  body.mapply-v4 .get-started h2,
  body.mapply-v4 .newsletter h2 {
    font-size: clamp(2rem, 9.2vw, 2.6rem) !important;
    line-height: 0.98 !important;
    letter-spacing: -0.055em !important;
  }

  body.mapply-v4 .section-heading > p,
  body.mapply-v4 .about-copy > p,
  body.mapply-v4 .get-started-copy > p,
  body.mapply-v4 .newsletter-copy > p {
    font-size: 0.92rem !important;
    line-height: 1.58 !important;
  }

  body.mapply-v4 .section-kicker {
    width: fit-content;
    max-width: 100%;
    min-height: 42px;
    padding: 9px 14px !important;
    white-space: normal;
  }

  /* Profiles remain prominent, but the directory no longer becomes a wall. */
  body.mapply-v4 .local-guides .guide-grid {
    display: flex !important;
    gap: 12px !important;
    margin-inline: -2px !important;
    padding: 4px 2px 17px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 2px;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(66, 133, 244, 0.42) transparent;
  }

  body.mapply-v4 .local-guides .guide-grid::-webkit-scrollbar,
  body.mapply-v4 .benefit-grid::-webkit-scrollbar,
  body.mapply-v4 .guide-quality-v3::-webkit-scrollbar {
    height: 4px;
  }

  body.mapply-v4 .local-guides .guide-grid::-webkit-scrollbar-thumb,
  body.mapply-v4 .benefit-grid::-webkit-scrollbar-thumb,
  body.mapply-v4 .guide-quality-v3::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: linear-gradient(90deg, #4285f4, #34a853);
  }

  body.mapply-v4 .local-guides .guide-profile {
    flex: 0 0 min(76vw, 278px) !important;
    width: min(76vw, 278px) !important;
    min-height: 126px !important;
    margin: 0 !important;
    padding: 17px 18px !important;
    scroll-snap-align: start;
    transform: none !important;
  }

  body.mapply-v4 .local-guides .guide-profile:hover {
    transform: none !important;
  }

  body.mapply-v4 .local-guides .guide-number {
    top: 13px;
    right: 14px;
  }

  body.mapply-v4 .local-guides .guide-community-note {
    margin-top: 6px;
  }

  body.mapply-v4 .local-guides .guide-quality-v3 {
    display: flex !important;
    gap: 12px !important;
    margin-inline: -2px;
    padding: 3px 2px 17px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(66, 133, 244, 0.42) transparent;
  }

  body.mapply-v4 .local-guides .guide-quality-v3 > article {
    flex: 0 0 min(82vw, 300px);
    width: min(82vw, 300px);
    min-height: 238px;
    scroll-snap-align: start;
  }

  /* Compact live-review details without compromising the orbit or profile badge. */
  body.mapply-v4 #business-benefits .business-impact-live {
    gap: 16px !important;
  }

  body.mapply-v4 #business-benefits .impact-map-visual {
    gap: 12px !important;
    min-height: 0 !important;
    padding: 12px !important;
  }

  body.mapply-v4 #business-benefits .impact-map-visual > .impact-review-preview {
    min-height: 0 !important;
    padding: 16px !important;
  }

  body.mapply-v4 #business-benefits .impact-live-review-copy {
    min-height: 88px !important;
    margin-block: 12px !important;
  }

  body.mapply-v4 #business-benefits .impact-submit-chip {
    min-height: 48px !important;
    padding: 10px 12px !important;
  }

  body.mapply-v4 #business-benefits .business-impact-story {
    gap: 14px !important;
    padding: 22px 18px !important;
  }

  body.mapply-v4 #business-benefits .business-impact-story > h3 {
    font-size: clamp(1.65rem, 8vw, 2.05rem) !important;
    line-height: 1.03 !important;
  }

  body.mapply-v4 #business-benefits .impact-outcome-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  body.mapply-v4 #business-benefits .impact-outcome-node {
    min-height: 118px !important;
    padding: 14px 9px !important;
  }

  body.mapply-v4 #business-benefits .impact-outcome-node img {
    width: 42px !important;
    height: 42px !important;
  }

  /* Eight business advantages become an intentional swipe rail on phones. */
  body.mapply-v4 #business-benefits .benefit-grid {
    display: flex !important;
    gap: 12px !important;
    margin-inline: -2px !important;
    padding: 4px 2px 17px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-snap-type: x mandatory;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(66, 133, 244, 0.42) transparent;
  }

  body.mapply-v4 #business-benefits .benefit-card {
    flex: 0 0 min(84vw, 306px) !important;
    width: min(84vw, 306px) !important;
    min-height: 294px !important;
    margin: 0 !important;
    padding: 24px 21px !important;
    scroll-snap-align: start;
    transform: none !important;
  }

  body.mapply-v4 #business-benefits .benefit-card:hover {
    transform: none !important;
  }

  body.mapply-v4 #business-benefits .benefit-card h3 {
    font-size: 1.16rem !important;
    line-height: 1.15 !important;
  }

  body.mapply-v4 #business-benefits .benefit-card p {
    font-size: 0.86rem !important;
    line-height: 1.55 !important;
  }

  body.mapply-v4 #business-benefits .benefit-grid-intro {
    min-height: 56px;
    margin-bottom: 12px;
  }

  /* Forms and final actions feel native at phone size. */
  body.mapply-v4 :where(.newsletter-form input, .newsletter-form textarea, .newsletter-form select) {
    min-height: 50px;
    font-size: 16px !important;
  }

  body.mapply-v4 :where(.primary-button, .secondary-button, .header-cta, .newsletter-form button) {
    min-height: var(--mapply-touch);
  }

  body.mapply-v4 .back-to-top {
    right: 14px;
    bottom: 14px;
  }

  /* Genuine visit-to-review example: compact, stable, and readable from the
     first painted frame. The orbit caption sits below the profiles instead of
     covering them, and the review copy keeps a stable height while it types. */
  body.mapply-v4 #network .network-review-stage-v3 {
    grid-template-rows: auto auto auto !important;
    gap: 12px !important;
    min-height: 0 !important;
    padding: 12px 12px 16px !important;
    border-radius: 24px !important;
  }

  body.mapply-v4 #network .review-demo-head-v45 {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    gap: 8px !important;
    width: 100% !important;
    min-height: 50px !important;
    margin: 0 !important;
    padding: 9px 11px !important;
    border-radius: 15px !important;
  }

  body.mapply-v4 #network .review-demo-head-v45 > span {
    min-width: 0 !important;
    font-size: 0.58rem !important;
    line-height: 1.22 !important;
    white-space: normal !important;
  }

  body.mapply-v4 #network .review-demo-head-v45 > strong {
    align-self: center !important;
    font-size: 0.62rem !important;
    white-space: nowrap !important;
  }

  body.mapply-v4 #network .network-review-stage-v3 > .network-orbit-scene {
    width: min(100%, 332px) !important;
    aspect-ratio: 1 / 1.02 !important;
    margin: 0 auto 78px !important;
    overflow: visible !important;
  }

  body.mapply-v4 #network .network-orbit-caption {
    bottom: -68px !important;
    width: calc(100% - 12px) !important;
    min-height: 38px !important;
    padding: 7px 10px !important;
    font-size: 0.62rem !important;
    line-height: 1.18 !important;
  }

  body.mapply-v4 #network .network-guide-v3:nth-child(3) { top: 69% !important; }
  body.mapply-v4 #network .network-guide-v3:nth-child(4) { top: 86% !important; }
  body.mapply-v4 #network .network-guide-v3:nth-child(5) { top: 69% !important; }

  body.mapply-v4 #network .network-live-review-v3 {
    width: 100% !important;
    min-height: 286px !important;
    padding: 18px !important;
    border-radius: 20px !important;
  }

  body.mapply-v4 #network .network-live-review-v3 header {
    grid-template-columns: 52px minmax(0, 1fr) !important;
    gap: 11px !important;
  }

  body.mapply-v4 #network .network-live-review-v3 header > span {
    width: 52px !important;
    height: 52px !important;
  }

  body.mapply-v4 #network .network-review-stars-v3 {
    gap: 4px !important;
    margin-block: 13px 10px !important;
  }

  body.mapply-v4 #network .network-review-stars-v3 b {
    font-size: 1.72rem !important;
  }

  body.mapply-v4 #network .network-review-text-v3 {
    min-height: 88px !important;
    margin: 0 0 12px !important;
    font-size: 0.82rem !important;
    line-height: 1.52 !important;
  }

  body.mapply-v4 #network .network-review-submit-v3 {
    display: grid !important;
    place-items: center !important;
    min-height: 48px !important;
    padding: 10px 12px !important;
    border-radius: 14px !important;
    font-size: 0.7rem !important;
    line-height: 1.25 !important;
    text-align: center !important;
  }
}

@media (max-width: 390px) {
  body.mapply-v4 .section-heading h2,
  body.mapply-v4 .about h2,
  body.mapply-v4 .get-started h2,
  body.mapply-v4 .newsletter h2 {
    font-size: clamp(1.9rem, 9.6vw, 2.3rem) !important;
  }

  body.mapply-v4 .local-guides .guide-profile {
    flex-basis: 272px !important;
    width: 272px !important;
  }

  body.mapply-v4 #business-benefits .impact-example-metrics {
    gap: 6px !important;
  }

  body.mapply-v4 #business-benefits .impact-example-metrics > span {
    padding-inline: 5px !important;
  }

  body.mapply-v4 #network .review-demo-head-v45 > span {
    max-width: 170px !important;
    letter-spacing: 0.025em !important;
  }

  body.mapply-v4 #network .network-review-stage-v3 > .network-orbit-scene {
    width: min(100%, 318px) !important;
  }
}

@media (max-width: 360px) {
  :root {
    --mapply-page-gutter: 10px;
  }

  body.mapply-v4 .local-guides .guide-profile,
  body.mapply-v4 #business-benefits .benefit-card,
  body.mapply-v4 .local-guides .guide-quality-v3 > article {
    flex-basis: calc(100vw - 54px) !important;
    width: calc(100vw - 54px) !important;
  }

  body.mapply-v4 #business-benefits .impact-outcome-node {
    min-height: 112px !important;
    font-size: 0.75rem !important;
  }
}

/* Compact mobile live journey
   The route now crosses the full card, reaches the storefront, and makes a
   shorter second turn to the reward. This replaces the older tall left-edge
   path that visually disconnected the Guide from both destinations. */
@media (max-width: 720px) {
  body.mapply-v4.mapply-v30 .hero-journey-v26 {
    height: auto !important;
    min-height: 0 !important;
    padding: 10px 8px 14px !important;
  }

  body.mapply-v4.mapply-v30 .hero-journey-v26 .hero-journey-stage {
    height: 610px !important;
    min-height: 610px !important;
  }

  body.mapply-v4.mapply-v30 .hero-journey-v26 .journey-route-mobile {
    top: 0 !important;
    right: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 570px !important;
  }

  body.mapply-v4.mapply-v30 .hero-journey-v26 .journey-path-shadow {
    stroke-width: 13 !important;
  }

  body.mapply-v4.mapply-v30 .hero-journey-v26 .journey-path-base {
    stroke-width: 4 !important;
    stroke-dasharray: 10 11 !important;
  }

  body.mapply-v4.mapply-v30 .hero-journey-v26 .journey-path-progress {
    stroke-width: 6 !important;
  }

  body.mapply-v4.mapply-v30 .hero-journey-v26 .journey-discover-stage {
    top: 0 !important;
    right: 8px !important;
    left: 8px !important;
    min-height: 96px !important;
  }

  body.mapply-v4.mapply-v30 .hero-journey-v26 .journey-start-pin {
    top: 6px !important;
    left: 2px !important;
    width: 54px !important;
  }

  body.mapply-v4.mapply-v30 .hero-journey-v26 .journey-discover-bubble {
    top: 0 !important;
    right: 0 !important;
    left: 54px !important;
    width: min(205px, calc(100% - 56px)) !important;
  }

  body.mapply-v4.mapply-v30 .hero-journey-v26 .journey-start-pulse {
    top: 61px !important;
    left: 9px !important;
  }

  body.mapply-v4.mapply-v30 .hero-journey-v26 .journey-character {
    width: 68px !important;
    max-height: 104px !important;
  }

  body.mapply-v4.mapply-v30 .hero-journey-v26 .journey-character-reward.is-active {
    width: 82px !important;
  }

  body.mapply-v4.mapply-v30 .hero-journey-v26 .journey-business {
    top: 170px !important;
    right: auto !important;
    left: min(62%, calc(100% - 148px)) !important;
    width: 146px !important;
  }

  body.mapply-v4.mapply-v30 .hero-journey-v26 .journey-business-clean .journey-review-sequence-clean {
    top: -18px !important;
    right: auto !important;
    left: -148px !important;
    width: 170px !important;
    height: 142px !important;
  }

  body.mapply-v4.mapply-v30 .hero-journey-v26 .journey-business-clean .journey-review-sequence-clean .journey-review-rating-bubble {
    width: 160px !important;
  }

  body.mapply-v4.mapply-v30 .hero-journey-v26 .journey-business-clean .journey-review-sequence-clean .journey-rating-stars-window {
    width: 142px !important;
  }

  body.mapply-v4.mapply-v30 .hero-journey-v26 .journey-business-clean .journey-review-sequence-clean .journey-five-stars {
    width: 138px !important;
  }

  body.mapply-v4.mapply-v30 .hero-journey-v26 .journey-business-clean .journey-review-sequence-clean .journey-submit-success-window {
    width: 145px !important;
  }

  body.mapply-v4.mapply-v30 .hero-journey-v26 .journey-business-clean .journey-review-sequence-clean .journey-review-submit-success {
    width: 140px !important;
  }

  body.mapply-v4.mapply-v30 .hero-journey-v26 .journey-reward {
    top: 365px !important;
    right: 4px !important;
    left: auto !important;
    width: clamp(190px, 32vw, 230px) !important;
    height: 172px !important;
    min-height: 172px !important;
  }

  body.mapply-v4.mapply-v30 .hero-journey-v26 .journey-end-pin {
    right: 0 !important;
    width: 58px !important;
  }

  body.mapply-v4.mapply-v30 .hero-journey-v26 .journey-reward-copy {
    top: 8px !important;
    right: 12px !important;
    left: 0 !important;
    padding: 12px 13px !important;
  }

  body.mapply-v4.mapply-v30 .hero-journey-v26 .journey-amazon-card-v4 {
    top: 78px !important;
    width: 150px !important;
  }

  body.mapply-v4.mapply-v30 .hero-journey-v26 :is(
    .journey-stage-label,
    .journey-stage-label-discover,
    .journey-stage-label-contribute,
    .journey-stage-label-contribute.is-active,
    .journey-stage-label-reward
  ) {
    right: 6px !important;
    left: 68px !important;
    min-height: 58px !important;
    padding: 8px 10px !important;
  }

  body.mapply-v4.mapply-v30 .hero-journey-v26 .journey-stage-label-discover {
    top: 98px !important;
  }

  body.mapply-v4.mapply-v30 .hero-journey-v26 .journey-stage-label-contribute {
    top: 284px !important;
  }

  body.mapply-v4.mapply-v30 .hero-journey-v26 .journey-stage-label-reward {
    top: 544px !important;
  }

  body.mapply-v4.mapply-v30 .hero-journey-v26 .journey-stage-label > span {
    width: 36px !important;
    height: 36px !important;
  }

  body.mapply-v4.mapply-v30 .hero-journey-v26 .journey-stage-label strong {
    font-size: 0.74rem !important;
  }

  body.mapply-v4.mapply-v30 .hero-journey-v26 .journey-stage-label small {
    font-size: 0.57rem !important;
    line-height: 1.3 !important;
  }

  body.mapply-v4.mapply-v30 .hero-journey-v26 .journey-route-dot-one {
    top: 24% !important;
    left: 24% !important;
  }

  body.mapply-v4.mapply-v30 .hero-journey-v26 .journey-route-dot-two {
    top: 42% !important;
    left: 72% !important;
  }

  body.mapply-v4.mapply-v30 .hero-journey-v26 .journey-route-dot-three {
    top: 64% !important;
    left: 34% !important;
  }

  body.mapply-v4.mapply-v30 .hero-journey-v26 .journey-route-dot-four {
    top: 80% !important;
    right: 11% !important;
  }
}

/* Mobile card discovery
   Every long card rail exposes the next card, reports the exact position and
   offers compact, tappable progress markers. JavaScript adds this interface
   only to real multi-card collections; desktop grids remain unchanged. */
.mobile-carousel-nav {
  display: none;
}

@media (max-width: 900px) {
  body.mapply-v4 [data-mobile-carousel] {
    width: calc(100% + 14px) !important;
    margin-right: -14px !important;
    padding-right: clamp(52px, 14vw, 76px) !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-behavior: smooth;
    scroll-padding-left: 4px !important;
    scroll-snap-type: x mandatory !important;
    scrollbar-width: none !important;
    overscroll-behavior-inline: contain;
    touch-action: pan-x pan-y;
    cursor: grab;
    -webkit-overflow-scrolling: touch;
  }

  body.mapply-v4 [data-mobile-carousel].is-interacting {
    scroll-snap-type: x proximity !important;
    cursor: grabbing;
  }

  body.mapply-v4 [data-mobile-carousel]::-webkit-scrollbar {
    display: none !important;
  }

  body.mapply-v4 [data-mobile-carousel-item] {
    scroll-snap-align: start !important;
    scroll-snap-stop: always;
  }

  body.mapply-v4 .mobile-carousel-nav {
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px 12px;
    width: min(100%, 430px);
    min-height: 62px;
    margin: 2px auto 18px;
    padding: 9px 12px 8px;
    color: #294567;
    background: linear-gradient(135deg, rgba(247, 251, 255, .97), rgba(255, 255, 255, .97));
    border: 1px solid rgba(154, 190, 234, .48);
    border-radius: 18px;
    box-shadow: 0 10px 24px rgba(29, 71, 124, .08);
  }

  body.mapply-v4 .mobile-carousel-hint {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
    font-size: .7rem;
    font-weight: 820;
    line-height: 1.2;
  }

  body.mapply-v4 .mobile-carousel-hint i {
    display: grid;
    place-items: center;
    width: 25px;
    height: 25px;
    flex: 0 0 auto;
    color: #fff;
    background: linear-gradient(135deg, #1a73e8, #34a853);
    border-radius: 999px;
    box-shadow: 0 5px 12px rgba(26, 115, 232, .2);
    font-size: .86rem;
    font-style: normal;
  }

  body.mapply-v4 .mobile-carousel-status {
    color: #1a73e8;
    font-size: .7rem;
    font-weight: 900;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
  }

  body.mapply-v4 .mobile-carousel-progress {
    grid-column: 1 / -1;
    display: block;
    overflow: hidden;
    width: 100%;
    height: 3px;
    background: #e3edf9;
    border-radius: 999px;
  }

  body.mapply-v4 .mobile-carousel-progress > i {
    display: block;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, #4285f4, #34a853, #fbbc04);
    border-radius: inherit;
    transition: width 320ms ease;
  }

  body.mapply-v4 .mobile-carousel-dots {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 18px;
  }

  body.mapply-v4 .mobile-carousel-dots button {
    position: relative;
    display: grid;
    place-items: center;
    width: 18px !important;
    min-width: 18px !important;
    height: 18px !important;
    min-height: 18px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: transparent !important;
    box-shadow: none !important;
    cursor: pointer;
  }

  body.mapply-v4 .mobile-carousel-dots button::before {
    content: "";
    width: 6px;
    height: 6px;
    background: #c4d4e8;
    border-radius: 999px;
    transition: width 240ms ease, background 240ms ease, transform 240ms ease;
  }

  body.mapply-v4 .mobile-carousel-dots button.is-active::before {
    width: 16px;
    background: linear-gradient(90deg, #4285f4, #34a853);
    transform: scaleY(1.12);
  }

  body.mapply-v4 .mobile-carousel-dots button:focus-visible {
    outline: 2px solid #1a73e8 !important;
    outline-offset: 1px;
  }
}

@media (max-width: 720px) {
  body.mapply-v4 .hero-profile-card-v5,
  body.mapply-v4 .local-guides .guide-profile,
  body.mapply-v4 .local-guides .guide-quality-v3 > article,
  body.mapply-v4 #business-benefits .benefit-card {
    flex-basis: min(76vw, 306px) !important;
    width: min(76vw, 306px) !important;
  }

  body.mapply-v4 .local-guides .guide-profile {
    max-width: 278px !important;
  }
}

/* Continuous-scroll performance
   Content is painted from the first frame instead of waiting for nested
   viewport reveals. Persistent layer promotion and decorative motion are
   reduced so long desktop and mobile scrolls do not pause between sections. */
body.mapply-v4 .impact-five-stars {
  aspect-ratio: 16 / 5;
  object-fit: contain;
}

body.mapply-v4 :where(
  .polish-reveal,
  .polish-reveal.is-polish-visible
) {
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  transition: none !important;
}

body.mapply-v4 :where(.motion-card, [data-tilt-card], .guide-profile) {
  will-change: auto !important;
}

body.mapply-v4 main > .card {
  contain: paint;
}

@media (hover: hover) and (pointer: fine) {
  body.mapply-v4 :where(.motion-card, [data-tilt-card]):hover {
    will-change: transform !important;
  }
}

@media (max-width: 900px) {
  body.mapply-v4 :where(
    .background-orb,
    .ambient-map-pin,
    .section-floating-star,
    .v3-gold-spark,
    .v3-map-watermark,
    .guide-profile,
    .guide-local-badge
  ) {
    animation: none !important;
  }

  body.mapply-v4 .site-header,
  body.mapply-v4 .site-header[data-site-header].is-scrolled {
    background: rgba(255, 255, 255, .985) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto !important;
  }

  body.mapply-v4 *,
  body.mapply-v4 *::before,
  body.mapply-v4 *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
