#service-track {
  /* This creates the 'safety zone' on the sides */
  padding-left: 8px;
  padding-right: 8px;
  
  /* Keep your existing vertical padding for the top/bottom fix */
  padding-top: 8px;
  padding-bottom: 8px;

  /* This ensures the 'snap' ignores the new padding so cards still align */
  scroll-padding-left: 8px;
  scroll-padding-right: 8px;
}

.service-slide {
  /* Ensure the border is drawn inside the card's dimensions */
  box-sizing: border-box;
  /* Use a transparent border as a placeholder so the card doesn't 'jump' */
  border: 2px solid transparent; 
}

.card-active-glow, .service-slide:hover {
  border-color: var(--brand-primary) !important;
}





/* Ensure the card is compact and clips the background */
.service-slide {
  position: relative;
  overflow: hidden !important;
  /* Reduced height/padding for compactness */
  min-height: 180px; 
  background: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* Fix for rounded corner clipping */
  -webkit-mask-image: -webkit-radial-gradient(white, black);
}

/* Position the background icon */
.bg-icon-layer {
  position: absolute;
  right: -15px;
  bottom: -15px;
  opacity: 0.15; /* Clear but subtle */
  z-index: 0;
  pointer-events: none;
}

/* Force the SVG to be large and ignore internal dimensions */
.bg-icon-layer img {
  width: 140px !important; 
  height: 140px !important;
  max-width: none !important;
  transform: rotate(-10deg);
  filter: grayscale(100%);
}

.service-slide:hover .bg-icon-layer {
  opacity: 0.25;
  transform: scale(1.1);
  transition: all 0.4s ease;
}




/* Custom Premium Map Marker styling */
.custom-map-marker {
  background: none !important;
  border: none !important;
}

.marker-pulse-wrapper {
  position: relative;
  width: 80px;
  height: 90px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
}

.marker-pin-card {
  position: absolute;
  bottom: 15px;
  left: 50%;
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #06b6d4 0%, #0f766e 100%);
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 16px rgba(15, 118, 110, 0.45), inset 0 2px 4px rgba(255, 255, 255, 0.4);
  border: 2px solid #ffffff;
  transform-origin: bottom left;
  z-index: 2;
  animation: marker-bounce 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.marker-pin-card svg {
  transform: rotate(45deg);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
}

.marker-pulse {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 10px;
  background: rgba(15, 118, 110, 0.4);
  border-radius: 50%;
  z-index: 1;
}

.marker-pulse::after {
  content: "";
  position: absolute;
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  border: 2px solid rgba(15, 118, 110, 0.6);
  border-radius: 50%;
  animation: marker-pulsate 1.5s ease-out infinite;
  opacity: 0;
  box-sizing: border-box;
}

.marker-bubbles {
  position: absolute;
  bottom: 15px;
  left: 0;
  width: 80px;
  height: 90px;
  pointer-events: none;
  z-index: 3;
  overflow: hidden;
}

.bubble {
  position: absolute;
  background: rgba(34, 211, 238, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  bottom: 20px;
  pointer-events: none;
  animation: float-up infinite linear;
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.5);
}

.bubble.b1 {
  width: 6px;
  height: 6px;
  left: 35px;
  animation-duration: 1.8s;
  animation-delay: 0s;
}

.bubble.b2 {
  width: 10px;
  height: 10px;
  left: 45px;
  animation-duration: 2.2s;
  animation-delay: 0.4s;
}

.bubble.b3 {
  width: 5px;
  height: 5px;
  left: 28px;
  animation-duration: 1.4s;
  animation-delay: 0.2s;
}

.bubble.b4 {
  width: 8px;
  height: 8px;
  left: 52px;
  animation-duration: 2.5s;
  animation-delay: 0.8s;
}

.bubble.b5 {
  width: 7px;
  height: 7px;
  left: 40px;
  animation-duration: 1.6s;
  animation-delay: 1.1s;
}

@keyframes marker-bounce {
  0% {
    transform: rotate(-45deg) translateY(-20px) scale(0.8);
    opacity: 0;
  }
  100% {
    transform: rotate(-45deg) translateY(0) scale(1);
    opacity: 1;
  }
}

@keyframes marker-pulsate {
  0% {
    transform: scale(0.1);
    opacity: 0;
  }
  50% {
    opacity: 0.8;
  }
  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}

@keyframes float-up {
  0% {
    transform: translateY(0) scale(0.6);
    opacity: 0;
  }
  15% {
    opacity: 0.7;
  }
  85% {
    opacity: 0.7;
  }
  100% {
    transform: translateY(-60px) scale(1.2);
    opacity: 0;
  }
}
