.contact-map-grid {
  display: none !important;
}

.contact-map-terminal .contact-map-caption,
.contact-section .contact-map-terminal .contact-map-caption {
  grid-template-columns: minmax(180px, 0.82fr) minmax(120px, 1.18fr) auto;
  justify-content: stretch;
}

.contact-map-delivery-motion {
  min-width: 0;
  height: 42px;
  position: relative;
  display: block;
  align-self: center;
  overflow: hidden;
  isolation: isolate;
}

.contact-map-delivery-motion::before {
  content: "";
  height: 2px;
  position: absolute;
  top: 22px;
  left: 8px;
  right: 14px;
  background: repeating-linear-gradient(
    90deg,
    rgba(88, 220, 232, 0.22) 0 8px,
    rgba(88, 220, 232, 0.72) 8px 13px,
    transparent 13px 19px
  );
  filter: drop-shadow(0 0 5px rgba(88, 220, 232, 0.35));
  animation: contact-map-route-flow 1.25s linear infinite;
}

.contact-map-delivery-motion::after {
  content: "";
  width: 9px;
  height: 9px;
  position: absolute;
  top: 18px;
  right: 4px;
  background: #58dce8;
  border: 2px solid #0b2931;
  border-radius: 50%;
  box-shadow:
    0 0 0 5px rgba(88, 220, 232, 0.12),
    0 0 14px rgba(88, 220, 232, 0.5);
}

.contact-map-delivery-vehicle {
  z-index: 2;
  width: 31px;
  height: 31px;
  position: absolute;
  top: 7px;
  left: -36px;
  display: block;
  background: #f47b20;
  filter: drop-shadow(0 4px 7px rgba(244, 123, 32, 0.42));
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 17h4V5H2v12h3'/%3E%3Cpath d='M14 9h4l4 4v4h-3'/%3E%3Ccircle cx='7.5' cy='17.5' r='2.5'/%3E%3Ccircle cx='17.5' cy='17.5' r='2.5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 17h4V5H2v12h3'/%3E%3Cpath d='M14 9h4l4 4v4h-3'/%3E%3Ccircle cx='7.5' cy='17.5' r='2.5'/%3E%3Ccircle cx='17.5' cy='17.5' r='2.5'/%3E%3C/svg%3E") center / contain no-repeat;
  animation: contact-map-vehicle-drive 5.2s cubic-bezier(0.42, 0, 0.3, 1) infinite;
}

.contact-map-delivery-destination {
  width: 18px;
  height: 18px;
  position: absolute;
  top: 13px;
  right: 0;
  border: 1px solid rgba(88, 220, 232, 0.48);
  border-radius: 50%;
  box-shadow: inset 0 0 0 4px rgba(8, 28, 41, 0.9);
  animation: contact-map-destination-pulse 2.1s ease-in-out infinite;
}

.contact-map-route,
.contact-map-route:visited {
  color: #fff;
  background: #f47b20;
  border-color: rgba(255, 196, 148, 0.78);
  box-shadow: 0 12px 26px rgba(244, 123, 32, 0.3);
  transition:
    transform 160ms ease,
    background-color 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.contact-map-route:hover {
  color: #fff;
  background: #ff8a2f;
  border-color: rgba(255, 226, 203, 0.96);
  box-shadow: 0 15px 30px rgba(244, 123, 32, 0.38);
  transform: translateY(-1px);
}

.contact-map-route:active {
  color: #fff;
  background: #dc6512;
  transform: translateY(0);
}

.contact-map-terminal .contact-map-route span {
  color: #fff;
}

.contact-route-hero-button,
.contact-route-hero-button:visited {
  color: #fff;
  background: #f47b20;
  border-color: #f47b20;
}

.contact-route-hero-button:hover {
  color: #fff;
  background: #ff8a2f;
  border-color: #ff8a2f;
}

@keyframes contact-map-route-flow {
  to {
    background-position: 38px 0;
  }
}

@keyframes contact-map-vehicle-drive {
  0% {
    left: -36px;
    opacity: 0;
    transform: translateY(1px);
  }
  8% {
    opacity: 1;
  }
  74% {
    left: calc(100% - 48px);
    opacity: 1;
    transform: translateY(1px);
  }
  82% {
    left: calc(100% - 38px);
    opacity: 1;
    transform: translateY(-1px);
  }
  100% {
    left: calc(100% + 8px);
    opacity: 0;
    transform: translateY(1px);
  }
}

@keyframes contact-map-destination-pulse {
  0%,
  100% {
    opacity: 0.52;
    transform: scale(0.82);
  }
  50% {
    opacity: 1;
    transform: scale(1);
  }
}

@media (width <= 720px) {
  .contact-map-terminal .contact-map-caption,
  .contact-section .contact-map-terminal .contact-map-caption {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .contact-map-delivery-motion {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .contact-map-delivery-motion::before,
  .contact-map-delivery-vehicle,
  .contact-map-delivery-destination {
    animation: none;
  }

  .contact-map-delivery-vehicle {
    left: calc(50% - 16px);
    opacity: 1;
  }
}
