/* Jampac · map options (maps.js). Nothing here applies unless a ?maps option is on. */

/* ---------------- shared: the soft surfaces and the map frame from the reference card ---------------- */
.mp-frame {
  position: relative; overflow: hidden; border-radius: 34px; background: #f2f3f0;
  /* the map sits proud of the card: a bright rim, a crisp contact shadow and a soft one */
  box-shadow: 0 16px 30px -18px rgba(12, 14, 13, .42), 0 3px 6px -3px rgba(12, 14, 13, .14), 0 0 0 1px rgba(12, 14, 13, .06);
}
.mp-frame > img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: cover; }
.mp-frame::after { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 2px solid rgba(255, 255, 255, .95); pointer-events: none; z-index: 5; }
/* the inside glow: the map fades to white at its edges, a highlight across the top, a whisper of shade at the bottom */
.mp-glow {
  position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 4;
  box-shadow: inset 0 0 26px 12px rgba(255, 255, 255, .9), inset 0 3px 2px rgba(255, 255, 255, 1), inset 0 -4px 10px rgba(12, 14, 13, .06);
  background: radial-gradient(130% 100% at 50% 0%, rgba(255, 255, 255, .2), rgba(255, 255, 255, 0) 55%);
}
.mp-pin { position: absolute; z-index: 3; width: 50px; height: 66px; margin: -62px 0 0 -25px; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .12)); }
.mp-pin svg { display: block; width: 100%; height: 100%; }
.mp-pin:not([hidden]) { animation: mp-drop .55s cubic-bezier(.2, 1.4, .4, 1) both; }
@keyframes mp-drop { from { transform: translateY(-26px); opacity: 0; } to { transform: none; opacity: 1; } }
.mp-callout {
  position: absolute; z-index: 3; display: grid; gap: 2px; padding: 9px 15px 10px; border-radius: 16px; white-space: nowrap;
  background: rgba(255, 255, 255, .95); box-shadow: 0 12px 26px -14px rgba(12, 14, 13, .5);
}
.mp-callout b { font-size: 14px; font-weight: 680; }
.mp-callout i { font-style: normal; font-size: 12.5px; color: var(--ink-2); }

/* the green pill: border, a light green fill and an inner glow */
.mp-pill {
  display: inline-flex; align-items: center; gap: 9px; height: 44px; padding: 0 14px 0 12px;
  border-radius: 999px; border: 2px solid var(--green); color: var(--ink); cursor: pointer; text-decoration: none;
  background: linear-gradient(to bottom, #f6fcf3, #eaf6e5);
  box-shadow: 0 0 0 4px rgba(20, 161, 1, .08), inset 0 0 14px rgba(20, 161, 1, .14);
  font: inherit; font-size: 14.5px; font-weight: 620; white-space: nowrap;
  transition: box-shadow .3s var(--ease-out), background .3s var(--ease-out);
}
.mp-pill svg { color: var(--green); flex: none; }
.mp-pill:hover { box-shadow: 0 0 0 5px rgba(20, 161, 1, .13), inset 0 0 16px rgba(20, 161, 1, .2); }
.mp-chev { display: inline-flex; transition: transform .3s var(--ease-out); }
.mp-chev svg { color: var(--ink); }
.mp-pill[aria-expanded="false"] .mp-chev { transform: rotate(180deg); }
.mp-pill-head { margin-right: 6px; }
.mp-pill-dock { display: none; }
.mp-open .mp-switch { opacity: 0; pointer-events: none; }

/* ---------------- A · the lane picker ---------------- */
.mp-pop {
  position: fixed; z-index: 70; top: 96px; right: 40px; width: min(500px, calc(100vw - 32px)); box-sizing: border-box;
  max-height: calc(100vh - 110px); max-height: calc(100dvh - 110px); overflow: auto; overscroll-behavior: contain;
  padding: 28px 30px 24px; border-radius: 44px; background: #F5F6F2;
  box-shadow: 0 46px 90px -40px rgba(12, 14, 13, .58), 0 18px 30px -24px rgba(12, 14, 13, .3), inset 0 2px 0 rgba(255, 255, 255, .95), inset 0 0 0 1px rgba(255, 255, 255, .6), 0 0 0 1px rgba(12, 14, 13, .05);
  display: flex; flex-direction: column; gap: 14px;
  opacity: 0; transform: translateY(-10px) scale(.98); transform-origin: top right;
  transition: opacity .25s var(--ease-out), transform .45s var(--ease-out);
}
.mp-pop.in { opacity: 1; transform: none; }
.mp-pop-top { display: flex; align-items: center; justify-content: space-between; }
.mp-pop h2 { margin: 0; font-size: 21px; font-weight: 640; letter-spacing: -.01em; color: #26292A; }
.mp-x { width: 44px; height: 44px; margin-right: -10px; display: grid; place-items: center; border: 0; background: none; color: var(--ink); cursor: pointer; border-radius: 50%; }
.mp-x:hover { background: rgba(12, 14, 13, .06); }
.mp-fields { display: grid; gap: 10px; }
.mp-field {
  display: flex; align-items: center; gap: 12px; height: 58px; padding: 0 20px 0 22px; border-radius: 999px; background: #F9FAF7;
  box-shadow: inset 0 2px 4px rgba(12, 14, 13, .06), inset 0 -1px 0 rgba(255, 255, 255, .9), 0 1px 0 rgba(255, 255, 255, .95), 0 0 0 1px rgba(12, 14, 13, .07);
}
.mp-field:focus-within { box-shadow: inset 0 2px 4px rgba(12, 14, 13, .06), 0 0 0 2px var(--green), 0 0 0 6px rgba(20, 161, 1, .1); }
.mp-field .label { width: 66px; flex: none; color: var(--ink-2); }
.mp-field input { flex: 1; min-width: 0; border: 0; background: transparent; outline: none; font: inherit; font-size: 18px; font-weight: 450; color: #2E3233; }
.mp-field input::placeholder { color: #9AA09C; }
.mp-ico { display: inline-flex; color: #8A9091; }
.mp-map { width: 100%; aspect-ratio: 920 / 580; border-radius: 32px; }
.mp-route { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; overflow: visible; }
.mp-route path { fill: none; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.mp-case { stroke: #fff; stroke-width: 9; }
.mp-line { stroke: var(--green); stroke-width: 4.5; }
.mp-route .draw { stroke-dasharray: 1; animation: mp-draw .9s var(--ease-out) both; }
@keyframes mp-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
.mp-origin, .mp-yard { position: absolute; z-index: 3; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px var(--green), 0 4px 10px rgba(0, 0, 0, .3); }
.mp-yard { background: var(--green); box-shadow: 0 0 0 4px #fff, 0 4px 12px rgba(0, 0, 0, .3); }
.mp-yard::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; background: var(--green); opacity: .35; animation: mp-pulse 2.4s var(--ease-out) infinite; }
.mp-verdict { margin: 2px 0 0; min-height: 24px; display: flex; align-items: center; gap: 10px; font-size: 14.5px; font-weight: 520; line-height: 1.35; color: var(--ink-2); }
.mp-verdict svg { flex: none; }
.mp-verdict.is-yes { color: var(--sign); font-weight: 600; }
.mp-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.mp-hint { font-size: 14px; color: #8A9091; }
.mp-try { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding-top: 12px; border-top: 1px solid rgba(12, 14, 13, .08); }
.mp-try .label { margin-right: 4px; color: var(--ink-2); }
.mp-ex { height: 34px; padding: 0 13px; border-radius: 999px; border: 1px solid rgba(12, 14, 13, .12); background: transparent; color: var(--ink-2); font: inherit; font-size: 13px; font-weight: 560; cursor: pointer; }
.mp-ex:hover { background: #fff; color: var(--ink); }
.mp-ex[aria-pressed="true"] { border: 1.5px solid var(--green); background: #fff; color: var(--ink); }

/* ---------------- A · the yard card on the Services page ---------------- */
.mp-yardcard {
  margin-top: 40px; display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: clamp(22px, 3vw, 44px); align-items: center;
  padding: clamp(18px, 2.2vw, 28px); border-radius: 48px; background: #F5F6F2;
  box-shadow: 0 40px 80px -42px rgba(12, 14, 13, .45), inset 0 2px 0 rgba(255, 255, 255, .95), inset 0 0 0 1px rgba(255, 255, 255, .6), 0 0 0 1px rgba(12, 14, 13, .05);
}
.mp-yardmap { aspect-ratio: 800 / 520; border-radius: 36px; }
.mp-yardmap .mp-pin { width: 60px; height: 79px; margin: -75px 0 0 -30px; }
.mp-yardtext { display: grid; gap: 14px; justify-items: start; padding-right: 12px; }
.mp-yardaddr { margin: 0; font-size: clamp(22px, 2vw, 30px); font-weight: 700; line-height: 1.15; letter-spacing: -.02em; }
.mp-yardaddr span { font-weight: 450; color: var(--ink-2); }
.mp-yardnote { margin: 0; color: var(--ink-2); font-size: 15.5px; line-height: 1.45; max-width: 34ch; }
.mp-dir { height: 50px; padding: 0 22px 0 16px; font-size: 15.5px; margin-top: 6px; }

/* ---------------- B · the Apple-style widgets ---------------- */
.mp-widget { position: relative; display: block; overflow: hidden; border-radius: 44px; background: #6cb7ee; color: var(--ink); text-decoration: none; box-shadow: 0 36px 70px -36px rgba(12, 14, 13, .5); isolation: isolate; }
.mp-widget > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.mp-wide { aspect-ratio: 2 / 1; }
.mp-square { aspect-ratio: 1 / 1; }
/* the bottom melts into a blur of the map itself */
.mp-melt {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  -webkit-backdrop-filter: blur(22px) saturate(1.35); backdrop-filter: blur(22px) saturate(1.35);
  -webkit-mask-image: linear-gradient(to bottom, transparent 58%, #000 84%); mask-image: linear-gradient(to bottom, transparent 58%, #000 84%);
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 60%, rgba(240, 248, 232, .45) 100%);
}
.mp-square .mp-melt { -webkit-mask-image: linear-gradient(to bottom, transparent 52%, #000 80%); mask-image: linear-gradient(to bottom, transparent 52%, #000 80%); }
.mp-wtext { position: absolute; z-index: 3; left: 0; bottom: 0; padding: 0 clamp(22px, 3vw, 40px) clamp(20px, 2.6vw, 34px); }
.mp-wtitle { margin: 0; display: flex; align-items: center; gap: 12px; font-size: clamp(21px, 2vw, 30px); font-weight: 720; letter-spacing: -.02em; line-height: 1.1; color: #1B1E1F; }
.mp-wtitle svg { flex: none; color: #1B1E1F; width: .9em; height: .9em; }
.mp-wsub { margin: 8px 0 0; font-size: clamp(15px, 1.35vw, 20px); color: #46504C; }
.mp-wcta { position: absolute; z-index: 3; right: clamp(20px, 3vw, 40px); bottom: clamp(20px, 2.6vw, 34px); box-shadow: 0 12px 26px -12px rgba(0, 0, 0, .4), inset 0 0 0 1px rgba(12, 14, 13, .16); }
.mp-dot { position: absolute; z-index: 1; width: 26px; height: 26px; margin: -13px 0 0 -13px; }
.mp-dot-big { width: 34px; height: 34px; margin: -17px 0 0 -17px; }
.mp-dot::before, .mp-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--green); }
.mp-dot::after { box-sizing: border-box; border: 5px solid #fff; box-shadow: 0 6px 16px rgba(0, 0, 0, .3); }
.mp-dot-big::after { border-width: 6px; }
.mp-dot::before { animation: mp-pulse 2.4s var(--ease-out) infinite; }
@keyframes mp-pulse { 0% { transform: scale(1); opacity: .45; } 100% { transform: scale(2.6); opacity: 0; } }

/* homepage: the lanes card right after the road scene */
.mp-lanes { position: relative; z-index: 2; background: var(--white); padding: 0 var(--gxr) clamp(48px, 8vh, 96px) clamp(26px, 5.4vw, 104px); }
.mp-lanes .mp-widget { max-width: 1320px; margin: 0 auto; }
/* Services page: the square card beside the wide one */
.mp-bento { margin-top: 36px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 22px; }

/* ---------------- C · the sticky maps: the picture caption sits on a pale chip so it reads on a map ---------------- */
html[data-maps^="c"] #closeMedia .pic-cap { color: var(--ink); text-shadow: none; background: rgba(255, 255, 255, .9); padding: 6px 10px; border-radius: 999px; }

/* ---------------- the switcher (?maps) ---------------- */
.mp-switch {
  position: fixed; z-index: 81; left: 50%; bottom: calc(env(safe-area-inset-bottom, 0px) + 18px); transform: translateX(-50%);
  display: flex; align-items: center; gap: 6px; padding: 6px 6px 6px 14px; max-width: calc(100vw - 24px); overflow-x: auto;
  border-radius: 26px; background: rgba(243, 244, 240, .94); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 0 0 1px var(--rule), 0 12px 30px -14px rgba(12, 14, 13, .45);
}
.mp-switch .label { margin-right: 4px; white-space: nowrap; }
.mp-switch .chip { height: 28px; padding: 0 11px; flex: none; white-space: nowrap; }
.mp-switch-x { width: 28px; padding: 0 !important; justify-content: center; font-size: 15px; }

/* ---------------- phones ---------------- */
@media (max-width: 760px) {
  .mp-pill-head { display: none; }
  .dock .mp-pill-dock { display: inline-flex; flex: none; width: 48px; height: 48px; padding: 0; justify-content: center; }
  .mp-open .dock { transform: translateY(calc(100% + 40px)); }
  .mp-pop {
    top: auto !important; right: 10px !important; left: 10px; bottom: 10px; width: auto;
    max-height: calc(100dvh - 90px); padding: 22px 18px 18px; border-radius: 36px; transform-origin: bottom center; transform: translateY(24px);
  }
  .mp-field { height: 54px; padding: 0 16px 0 18px; }
  .mp-field .label { width: 58px; }
  .mp-field input { font-size: 16px; }
  .mp-hint { display: none; }
  .mp-actions .btn { flex: 1; }
  .mp-yardcard { grid-template-columns: 1fr; border-radius: 36px; }
  .mp-bento { grid-template-columns: 1fr; }
  .mp-wide { aspect-ratio: 4 / 3.2; }
  .mp-wide > img { object-position: 64% 40%; }
  .mp-wide .mp-dot { display: none; }
  .mp-wcta { display: none; }
  .mp-switch { bottom: calc(env(safe-area-inset-bottom, 0px) + 84px); left: 12px; right: 12px; transform: none; padding: 5px; }
  .mp-switch .label { display: none; }
  .mp-switch .chip { height: 26px; padding: 0 9px; font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .mp-dot::before, .mp-yard::after { animation: none; opacity: 0; }
  .mp-pin:not([hidden]) { animation: none; }
  .mp-route .draw { animation: none; }
  .mp-pop { transition: none; }
}
