/* ================================
   LOCATION CARDS - HOMEPAGE
   Horizontal scroll with arrows
   ================================ */

/* Wrapper for scroll + arrows */
.locations-wrapper {
  position: relative;
  padding: 20px 0;
}

/* Scrollable container */
.locations-scroll {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 10px; /* space for scrollbar */
}

/* Individual card */
.location-card {
  flex: 0 0 auto;         /* prevent shrinking */
  min-width: 280px;       /* original width */
  max-width: 320px;       /* optional max */
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: #000;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  transition: transform 0.2s, box-shadow 0.2s;
}

/* Card image */
.location-card img {
  width: 100%;
  height: 220px;           /* original image height */
  object-fit: cover;
  display: block;
}

/* Card title */
.location-card h3 {
  margin: 12px;
  font-size: 18px;
  font-weight: bold;
}

/* Hover effect */
.location-card:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 14px rgba(0,0,0,0.25);
}

/* Arrow buttons */
.scroll-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  border: none;
  color: #fff;
  font-size: 24px;
  padding: 10px 15px;
  cursor: pointer;
  border-radius: 50%;
  z-index: 10;
}

.scroll-btn.left { left: 5px; }
.scroll-btn.right { right: 5px; }

.scroll-btn:hover {
  background: rgba(0,0,0,0.8);
}

/* Mobile: cards take more width */
@media (max-width: 600px) {
  .location-card {
    min-width: 80%;
    max-width: 90%;
  }

  .scroll-btn {
    display: none; /* hide arrows on mobile, swipe works */
  }
}
