/* Filter Controls */
.rides-filters {
  background: #fff;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  margin-bottom: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: end;
}

.filter-group {
  display: flex;
  flex-direction: column;
  min-width: 200px;
}

.filter-group label {
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
  font-size: 14px;
}

.clear-filters-btn {
  background: #ccc;
  color: var(--theme-palette-color-4);
}

.clear-filters-btn:hover {
  background: #5a6268;
}

/* Loading Indicator */
.loading-indicator {
  text-align: center;
  padding: 40px;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid var(--theme-palette-color-1, #007cba);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 15px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Results Info */
.results-info {
  margin-bottom: 20px;
  text-align: center;
}

.results-count {
  font-weight: 600;
  color: #666;
}

/* Gallery Grid */
.rides-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.ride-item {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ride-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.ride-image-container {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
}

.ride-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.ride-item:hover .ride-image {
  transform: scale(1.05);
}

.ride-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.7) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: flex-end;
  padding: 20px;
  pointer-events: none;
}

.ride-item:hover .ride-overlay {
  opacity: 1;
}

.ride-overlay-content {
  color: #fff;
}

.ride-title {
  font-size: 1.1rem;
  margin-bottom: 5px;
  color: #fff;
}

.ride-meta {
  padding: 15px;
}

.ride-taxonomies {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 0px;
}

.taxonomy-tag {
  background: var(--theme-palette-color-1, #007cba);
  color: #fff;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
}

.ride-description {
  color: #666;
  font-size: 14px;
  line-height: 1.4;
}

/* Load More Button */
.load-more-container {
  text-align: center;
}

.load-more-container .button {
  margin: 0 auto
}

.load-more-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
}

/* Responsive Design */
@media (max-width: 768px) {
  .rides-filters {
      flex-direction: column;
      align-items: stretch;
  }
  
  .filter-group {
      min-width: auto;
  }
  
  .rides-gallery-grid {
      grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
      gap: 15px;
  }
  
  .page-title {
      font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .rides-gallery-grid {
      grid-template-columns: 1fr;
  }
}