.carousel-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
  position: relative;
  box-sizing: border-box;
}

.carousel-viewport {
  width: 100%;
  overflow: hidden;
  position: relative;
  margin: 0;
  touch-action: pan-y; /* Better touch support */
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
  will-change: transform;
  gap: 15px; /* Reduced gap for better mobile */
  padding: 10px 0;
}

.carousel-slide {
  flex: 0 0 calc(25% - 11.25px); /* 4 slides with adjusted gap */
  min-width: 0;
  padding: 8px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 280px; /* Increased from 200px */
  transition: transform 0.3s ease;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .carousel-slide {
    flex: 0 0 calc(33.333% - 10px); /* 3 slides on tablets */
  }
}

@media (max-width: 768px) {
  .carousel-slide {
    flex: 0 0 calc(50% - 7.5px); /* 2 slides on small tablets */
    height: 240px; /* Increased from 180px */
  }
  
  .carousel-container {
    padding: 1.5rem 0.5rem;
  }
}

@media (max-width: 480px) {
  .carousel-slide {
    flex: 0 0 calc(100% - 20px); /* 1 slide on mobile */
    height: 220px; /* Increased from 160px */
    margin: 0 10px;
  }
  
  .carousel-track {
    padding: 10px 5px;
  }
}

.placeholder-box {
  width: 100%;
  height: 100%;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  padding: 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  text-align: center;
}

.service-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  object-position: center 30%; /* Focus on the upper part of the image */
  border-radius: 6px;
  margin-bottom: 0.75rem;
  transition: transform 0.3s ease;
  background-color: #f5f5f5; /* Fallback background */
}

.placeholder-box:hover .service-image {
  transform: scale(1.05); /* Slight zoom on hover */
}

/* Specific styling for mobile rental image */
.mobile-rental-image {
  object-position: center top;
  object-fit: contain;
  height: 150px;
  max-width: 100%;
  margin: 0 auto;
  padding: 10px;
  background-color: #f8f9fa;
  border-radius: 8px;
}

.service-text {
  font-size: 1.1rem; /* Slightly larger font */
  color: #1e293b;
  font-weight: 600; /* Bolder text */
  line-height: 1.4;
  padding: 0 0.5rem;
  margin-top: 0.5rem;
}

/* Adjusted text for the international shipping service */
.service-image[alt="International Shipping"] + .service-text {
  font-size: 1rem;  /* Smaller than the base size */
  font-weight: 600;
  line-height: 1.3;
}

.placeholder-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.8) 0%, rgba(255,255,255,0) 60%);
  z-index: 1;
}

.placeholder-number {
  font-size: 3.5rem;
  font-weight: 800;
  color: #e1e7f0;
  position: relative;
  z-index: 2;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.1);
}

/* Add subtle hover effect */
.carousel-slide:hover .placeholder-box {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  border-color: #b8c2d1;
}

/* Alternate colors for better visual separation */
.carousel-slide:nth-child(odd) .placeholder-box {
  background: #f0f4f9;
}

.carousel-slide:nth-child(even) .placeholder-box {
  background: #f8fafd;
}

.carousel-slide .placeholder-image {
  width: 100%;
  height: 200px;
  background: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: #dee2e6;
  font-weight: bold;
  border-bottom: 1px solid #eee;
}

.destination-name {
  padding: 15px 10px;
  text-align: center;
  width: 100%;
  font-size: 1rem;
  color: #333;
  background: white;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  border: none;
  width: 36px;
  height: 54px;
  font-size: 1.1rem;
  color: #333;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  z-index: 10;
  -webkit-tap-highlight-color: transparent;
  border-radius: 4px;
}

.carousel-btn:hover,
.carousel-btn:focus {
  background: #fff;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  outline: none;
}

.carousel-btn:active {
  transform: translateY(-50%) scale(0.98);
}

.carousel-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  transform: translateY(-50%) scale(1);
}

.carousel-prev {
  left: 10px;
  border-top-right-radius: 8px;
  border-bottom-right-radius: 8px;
}

.carousel-next {
  right: 10px;
  border-top-left-radius: 8px;
  border-bottom-left-radius: 8px;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .carousel-slide {
    flex: 0 0 calc(33.333% - 14px); /* 3 slides */
  }
}

@media (max-width: 768px) {
  .carousel-slide {
    flex: 0 0 calc(50% - 10px); /* 2 slides */
  }
  
  .carousel-btn {
    width: 32px;
    height: 50px;
    font-size: 1rem;
    height: 70px;
    font-size: 1.2rem;
  }
}

@media (max-width: 480px) {
  .carousel-slide {
    flex: 0 0 100%; /* 1 slide */
  }
  
  .carousel-viewport {
    margin: 0 30px;
  }
}
