.gp-map-demo {
  padding: clamp(56px, 7vw, 112px) var(--edge);
  background:
    radial-gradient(ellipse at 18% 8%, color-mix(in srgb, var(--case-accent) 62%, white), transparent 64%),
    linear-gradient(145deg, var(--case-accent), color-mix(in srgb, var(--case-accent) 77%, #100c14));
  color: #f4f1e9;
}

.gp-map-demo-intro { max-width: 700px; margin: 0 auto 36px; text-align: center; }
.case-gp .gp-map-demo h2 {
  max-width: none;
  color: #f4f1e9;
  font-size: clamp(38px, 5vw, 72px);
}
.gp-map-demo-intro > p { margin-top: 14px; font-size: 16px; line-height: 1.5; }
.gp-map-demo .case-kicker { margin: 0 0 16px; color: #f4f1e9; opacity: .8; }
.gp-map-demo .gp-brand-picker { margin: 22px 0 0; }
.gp-map-demo .gp-brand-picker > :is(p, div) { justify-content: center; }
.gp-map-location { display: grid; justify-items: center; gap: 8px; margin-top: 24px; }
.gp-map-locate {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 44px; padding: 8px 16px; border: 1px solid #ffffff85; border-radius: 999px;
  background: #160f1b68; color: #fff; font: 600 14px/1.2 var(--sans); cursor: pointer;
}
.gp-map-locate svg { width: 18px; height: 18px; }
.gp-map-locate:hover { background: #160f1ba0; }
.gp-map-locate:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
.gp-map-locate:disabled { cursor: progress; opacity: .75; }
.gp-map-location p { margin: 0; color: #fff; font-size: 13px; }
.gp-map-device { width: min(100%, 1000px); margin: 0 auto; }
.gp-map-frame {
  position: relative;
  aspect-ratio: 4 / 3;
  border: 1px solid #ffffff66;
  border-radius: 24px;
  overflow: hidden;
  background: #d7dfd3 url('../tours/zmapmatch/assets/images/generic_map.webp') center / cover;
  box-shadow: 0 20px 48px #00000026;
}
.gp-map-frame iframe { display: block; width: 100%; height: 100%; border: 0; }
.gp-map-device figcaption { margin-top: 18px; text-align: center; color: #f4f1e9; font-size: 12px; opacity: .8; }
.gp-map-demo iframe:focus-visible { outline: 2px solid #c4dbe4; outline-offset: -3px; }
#interactive-map:focus { outline: none; }
.case-gp .gp-spin.gp-test-final .gp-spin-decisions { margin-top: 0; }

@media (max-width: 640px) {
  .gp-map-demo { padding-inline: clamp(20px, 6vw, 32px); }
  .gp-map-device { max-width: 410px; }
  .gp-map-frame { aspect-ratio: 9 / 16; border-radius: 22px; }
}

/* Carry the hero's fine illustrated linework into the final map scene. */
.gp-map-demo{position:relative;isolation:isolate;overflow:hidden}
.gp-map-demo::before{
 content:"";position:absolute;inset:0;pointer-events:none;
 background:url('../tours/zmapmatch/assets/images/generic_map.webp') center / cover no-repeat;
 filter:grayscale(1) invert(1) contrast(1.4);mix-blend-mode:screen;opacity:.28;
 mask-image:radial-gradient(ellipse at 50% 57%,#000 15%,#000a 67%,transparent 100%);
}
.gp-map-demo>.gp-map-backdrop{z-index:0;color:#f4f1e9}
.gp-map-demo>.gp-map-backdrop .gp-fx-detail{height:100%;--gp-fx-line:#ffffff29;--gp-fx-dash:#ffffff38}
.gp-map-demo>.gp-map-backdrop::before{content:"";position:absolute;left:50%;top:54%;width:clamp(1000px,145vw,2000px);aspect-ratio:1;translate:-50% -50%;background:currentColor;opacity:.085;-webkit-mask:url('images/gp/hero-rings.svg') center/contain no-repeat;mask:url('images/gp/hero-rings.svg') center/contain no-repeat}
.gp-map-demo .gp-map-demo-intro,.gp-map-demo .gp-map-device{position:relative;z-index:1}
.gp-map-demo .gp-map-backdrop .gp-fx-deco{color:#ffffff73}
.gp-map-demo .gp-map-backdrop .gp-fx-orbit-top{top:-7%;right:-20%}
.gp-map-demo .gp-map-backdrop .gp-fx-orbit-side{top:47%;left:-28%}
@media(max-width:640px){
 .gp-map-demo>.gp-map-backdrop .gp-fx-detail{--gp-fx-line:#ffffff24;--gp-fx-dash:#ffffff32}
 .gp-map-demo .gp-map-backdrop .gp-fx-orbit-top{top:1%;right:-86%}
 .gp-map-demo .gp-map-backdrop .gp-fx-orbit-side{top:63%;left:-88%}
 .gp-map-demo>.gp-map-backdrop::before{top:58%;width:1100px;opacity:.075}
}
@media(prefers-reduced-motion:reduce){.gp-map-backdrop *{animation:none!important}}
