/**
 * Package Filter Buttons Styling
 */

.category-filter-container {
  margin-bottom: 2rem;
}

.package-filter-buttons {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
}

.package-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.filter-thumb-wrapper {
  position: relative;
  text-align: center;
}

.filter-thumb {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid transparent;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.filter-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.package-btn:hover .filter-thumb {
  border-color: #1F6690;
}

.package-btn.active .filter-thumb {
  border-color: #1F6690;
}

.package-btn.active .filter-thumb img {
  /* Keep the image visible and vibrant when active */
  opacity: 1;
}

/* Override views-exposed-filter.css for thumbnail filters */
.category-filter-container .package-btn.active {
  background-color: transparent !important;
  color: inherit !important;
}

.category-filter-container .package-btn {
  background-color: transparent !important;
}

.filter-thumb-wrapper span {
  display: block;
  text-align: center;
  margin-top: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #464646;
  transition: color 0.3s ease;
}

.package-btn.active .filter-thumb-wrapper span {
  color: #1F6690;
}

.package-btn:hover .filter-thumb-wrapper span {
  color: #1F6690;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .filter-thumb {
    width: 100px;
    height: 100px;
  }
  
  .package-filter-buttons {
    gap: 1rem;
  }
  
  .filter-thumb-wrapper span {
    font-size: 0.75rem;
  }
}
