/*location + infinity card*/

#location {
  width: 100%;
  min-height: 100vh;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 5%;
  overflow: hidden;
  font-family: Arial, Helvetica, sans-serif;
}

.location-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1300px;
  width: 100%;
  gap: 50px; 
}


.location-content {
  flex: 1; 
  max-width: 500px;
  color: black;
}

.location-content h1 {
  font-size: 4rem;
  line-height: 1.1;
  font-weight: 700;
  margin-bottom: 20px;
}

.location-content p {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-top: 30px;
  margin-bottom: 30px;
  color: #444; 
}

/* --- infinity slider --- */
.location-slider-wrapper {
  flex: 1.5; 
  width: 100%;
  overflow: hidden; 
  position: relative;
}

.infinite-card-track {
  display: flex;
  gap: 20px;
  width: max-content;
  animation: infiniteScroll 40s linear infinite; 
}

.infinite-card-track:hover {
  animation-play-state: paused; 
}

@keyframes infiniteScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-50% - 10px)); } 
}

.infinite-card {
  position: relative;
  width: 300px;
  aspect-ratio: 1/1;
  border-radius: 28px;
  overflow: hidden;
  flex-shrink: 0;
  background: #eee;
  z-index: 3;
}

.infinite-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.infinite-card:hover img {
  transform: scale(1.05); 
}

.infinite-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.15) 40%);
  z-index: 1;
}

.infinite-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.infinite-bottom {
  display: flex;
  color: white;
  font-size: 16px;
  font-weight: 600;
}

@media(max-width: 992px) {
  #location {
    padding: 60px 5%;
  }

  .location-container {
    flex-direction: column; /* Stacks the text above the slider */
    text-align: center;
  }

  .location-content {
    margin-bottom: 20px;
  }

  .location-content h1 {
    font-size: 3rem;
  }
}

@media(max-width: 430px) {
  .infinite-card{
    width: 70vw;
  }
}