/* A separate page row: never position the promotion over Leaflet or its controls. */
body.map-with-promotion {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  min-height: 0;
}
.map-with-promotion .app-shell { height: 100%; }
@media (min-width: 761px) {
  .map-with-promotion .map-panel { height: 100%; }
}
.map-promotion {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  min-width: 0;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  border-top: 1px solid #c7dedd;
  background: #ecf8f6;
  color: #134e4a;
  font-size: 12px;
  line-height: 1.4;
}
.map-promotion__link {
  display: flex;
  align-items: center;
  min-width: 0;
  min-height: 36px;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
}
.map-promotion__ticker {
  display: flex;
  width: max-content;
  flex-shrink: 0;
  animation: map-promotion-scroll 24s linear infinite;
}
.map-promotion__ticker > span { flex-shrink: 0; min-width: calc(100vw - 64px); padding: 0 32px; white-space: nowrap; }
.map-promotion__pause {
  display: grid;
  place-items: center;
  min-height: 44px;
  min-width: 44px;
  padding: 0 10px;
  border: 0;
  border-right: 1px solid #c7dedd;
  border-radius: 0;
  background: #ecf8f6;
  color: inherit;
  font-size: 12px;
  cursor: pointer;
}
.map-promotion[data-paused="true"] .map-promotion__ticker { animation-play-state: paused; }
.map-promotion__link:focus-visible,
.map-promotion__pause:focus-visible { outline: 2px solid #0f766e; outline-offset: -3px; }
.map-promotion__play-icon,
.map-promotion[data-paused="true"] .map-promotion__pause-icon { display: none; }
.map-promotion[data-paused="true"] .map-promotion__play-icon { display: block; }
@keyframes map-promotion-scroll { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .map-promotion { grid-template-columns: minmax(0, 1fr) auto; }
  .map-promotion__ticker { animation: none; width: auto; flex-shrink: 1; }
  .map-promotion__ticker > span { white-space: normal; min-width: 0; padding: 6px 12px; }
  .map-promotion__ticker > span + span, .map-promotion__pause { display: none; }
}

/* Stationary support link shares the separate footer row, never the map surface. */
.map-promotion__support {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 10px;
  border-left: 1px solid #c7dedd;
  color: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
}
.map-promotion__support:focus-visible {
  outline: 2px solid #0f766e;
  outline-offset: -3px;
}
.map-promotion__pause:hover {
  background: #d7eeeb;
  color: #134e4a;
}
