.activities {
  position: relative; /* wajib biar overlay bisa nempel */
  max-width: 1500px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  margin: 0 auto;
  padding: 2rem 1rem;
  background: url('../Assets/Images/bgactivities.jpg');
  background-size: cover;
  background-repeat: no-repeat;
  color: #fff; /* teks putih biar kontras */
  z-index: 1;
}

.activities::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.75); /* opacity gelap */
  z-index: -1; /* biar di belakang konten */
}

.headeractivities {
  text-align: center;
  margin-bottom: 3rem;
  color: white;
}

.headeractivities h1 {
  font-size: 1.875rem;
    font-weight: 700;
    color: white;
  margin-bottom: 0.5rem;
}

.headeractivities p {
  color: #e9e8e7;
  line-height: 1.6;
  font-size: 1.1rem;
  opacity: 0.9;
  font-weight: 400;
}

#closeAllBtn {
  display: block;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  margin: 2rem auto 0; /* kasih jarak atas 2rem, auto kiri-kanan biar center */
  padding: 0.6rem 1.2rem;
  background-color: #00674F; /* merah elegan */
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
}

#closeAllBtn:hover {
  background-color: #00674F; /* warna lebih gelap saat hover */
}

#warningMsg {
  display: none;
  color: white;
  margin-top: 0.8rem;
  text-align: center;
  font-weight: 500;
  font-size: 0.95rem;
}

.attractions-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* fleksibel otomatis */
  gap: 2rem;
  justify-content: center;
  align-items: start;
}

.attraction-item {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.attraction-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15), 0 3px 6px rgba(0, 0, 0, 0.1);
}

.attraction-header {
  padding: 1rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  transition: all 0.3s ease;
  position: relative;
}

.attraction-header:hover {
  background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
}

.attraction-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.attraction-item.active .attraction-header::after {
  opacity: 1;
}

.attraction-header h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1e293b;
  margin: 0;
}

.dropdown-arrow {
  display: flex;
  align-items: center;
  color: #64748b;
  transition: all 0.3s ease;
  padding: 0.5rem;
  border-radius: 8px;
}

.dropdown-arrow:hover {
  background-color: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
}

.attraction-item.active .dropdown-arrow {
  transform: rotate(180deg);
  color: #3b82f6;
}

.attraction-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.attraction-item.active .attraction-content {
  max-height: 600px;
}

.attraction-details {
  padding: 1rem;
  background: white;
}

.attraction-image {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.attraction-image img {
  width: 100%;
  aspect-ratio: 1/1;      /* bikin kotak persegi */
  object-fit: cover;      /* crop sesuai box */
  object-position: center;/* pastikan crop di tengah */
  border-radius: 8px;     /* opsional */
  transition: transform 0.3s ease;
}

.attraction-image:hover img {
  transform: scale(1.05);
}

.location {
  font-size: 0.9rem;
  color: #6b7280;
  margin-bottom: 1rem;
  font-weight: 500;
}

.rating {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.stars {
  display: flex;
  gap: 0.125rem;
}

.star {
  font-size: 1.1rem;
  color: #d1d5db;
  transition: color 0.2s ease;
}

.star.filled {
  color: #f59e0b;
  text-shadow: 0 1px 2px rgba(245, 158, 11, 0.3);
}

.rating-text {
  font-size: 0.9rem;
  color: #6b7280;
  font-weight: 500;
}

.description {
  color: #374151;
  line-height: 1.6;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.attraction-features {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  margin-bottom: 1rem;
}

.feature {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  font-size: 0.8rem;
  color: #059669;
  background-color: #ecfdf5;
  padding: 0.375rem 0.5rem;
  border-radius: 6px;
  border-left: 3px solid #10b981;
  font-weight: 500;
}

@media (max-width: 600px) {
  .attractions-list {
    grid-template-columns: 1fr; /* 1 kolom penuh */
    gap: 1rem;
  }

  .attraction-header {
    padding: 1rem;
  }

  .attraction-header h3 {
    font-size: 1rem;
  }

  .attraction-details {
    padding: 0.75rem;
  }

  .attraction-image img {
    aspect-ratio: 16/9; /* biar lebih cocok di HP */
  }

  #closeAllBtn {
    width: 100%;
    font-size: 1rem;
  }
}

@media (max-width: 992px) {
  .attractions-list {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
  }

  .activities {
    padding: 1.5rem;
  }

  .headeractivities h1 {
    font-size: 1.75rem;
  }

  .headeractivities p {
    font-size: 1rem;
  }
}

@media (max-width: 768px) {
  .activities {
    padding: 1rem;
  }
  
  .headeractivities h1 {
    font-size: 2rem;
  }
  
  .attraction-header {
    padding: 1.25rem;
  }
  
  .attraction-details {
    padding: 0 1.25rem 1.25rem 1.25rem;
  }
  
  .attraction-features {
    gap: 0.375rem;
  }
}

@media (max-width: 480px) {
  .headeractivities h1 {
    font-size: 1.75rem;
  }
  
  .attraction-header h3 {
    font-size: 1.1rem;
  }
  
  .rating {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  .attractions-list {
  display: grid;
  grid-template-columns: 1fr; /* cuma 1 kolom, manjang ke bawah */
  gap: 1rem;
  max-width: 100%;
  margin: 0 auto;
}
.attractions-list > * {
  width: 100%; /* biar box isi grid penuh */
}
}