/* ========================================
   PARTNERS SECTION - CAROUSEL
   ======================================== */

#partners {
  position: relative;
  padding: 88px 0;
  background: #FFFFFF;
}

.partners-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
}

/* Title */
.partners-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.2;
  color: #1a1a1a;
  text-align: center;
  margin-bottom: 0;
}

/* Subtext - Apple Style */
.partners-subtext {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.47059;
  color: #6E6E73;
  text-align: center;
  margin-top: 12px;
  margin-bottom: 48px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  letter-spacing: -0.022em;
}

/* Caption - Small text below carousel */
.partners-caption {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  color: #86868B;
  text-align: center;
  margin-top: 32px;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

/* Carousel Wrapper */
.partners-carousel {
  overflow: hidden;
  position: relative;
  border: 0.5px solid rgba(15, 15, 20, 0.09);
  border-radius: 16px;
  background: #FFFFFF;
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 10%,
    black 90%,
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 10%,
    black 90%,
    transparent 100%
  );
}

/* Track */
.partners-track {
  display: flex;
  width: fit-content;
  animation: scroll 30s linear infinite;
}

@keyframes scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.partners-carousel:hover .partners-track {
  animation-play-state: paused;
}

/* Logo Item */
.logo-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 36px 48px;
  border-right: 0.5px solid rgba(15, 15, 20, 0.07);
  flex-shrink: 0;
  min-width: 200px;
}

.logo-item img {
  width: 120px;
  height: 45px;
  object-fit: contain;
  filter: grayscale(0);
  opacity: 0.9;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Airbnb logo 15% smaller */
.logo-item img[src*="Airbnb"] {
  width: 102px;
  height: 38.25px;
}

/* Vrbo logo 15% smaller */
.logo-item img[src*="Vrbo"] {
  width: 102px;
  height: 38.25px;
}

.logo-item:hover img {
  opacity: 1;
  transform: scale(1.05);
}

/* Responsive - Tablet */
@media (max-width: 1024px) {
  .partners-inner {
    padding: 0 32px;
  }
  
  .partners-title {
    font-size: 28px;
    margin-bottom: 48px;
  }
  
  .logo-item {
    padding: 28px 36px;
    min-width: 160px;
  }
  
  .logo-item img {
    width: 100px;
    height: 38px;
  }
}

/* Responsive - Mobile */
@media (max-width: 768px) {
  #partners {
    padding: 72px 0;
  }
  
  .partners-inner {
    padding: 0 24px;
  }
  
  .partners-title {
    font-size: 24px;
    margin-bottom: 40px;
  }
  
  .logo-item {
    padding: 24px 32px;
    min-width: 140px;
  }
  
  .logo-item img {
    width: 85px;
    height: 32px;
  }
}
