/* Enhanced Adventure Cards Styling */

.adventures-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  max-width: 100%;
  width: 100%;
  margin: 0 auto;
  padding: 2rem;
}


.adventure-card-enhanced {
  display: flex;
  flex-direction: column;
  background: var(--cloud-white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(93, 64, 55, 0.1);
  transition: all 0.3s ease;
  position: relative;
  border: 1px solid rgba(0, 168, 89, 0.1);
}

.adventure-card-enhanced:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(93, 64, 55, 0.2);
  border-color: var(--primary-green);
}

.card-image-container {
  position: relative;
  height: 250px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--warm-sand), #f0e6d2);
}

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

.adventure-card-enhanced:hover .card-image {
  transform: scale(1.1);
}

.card-image-container::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(to top, rgba(93, 64, 55, 0.7), transparent);
  pointer-events: none;
}

.activity-content {
  padding: 1.5rem;
  position: relative;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.activity-content h3 {
  color: var(--earth-brown);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  font-family: var(--heading-font);
  height: 3rem;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.activity-content p {
  color: var(--volcano-gray);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
  height: 8rem;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}

.activity-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding: 0.75rem;
  background: linear-gradient(135deg, rgba(0, 168, 89, 0.05), rgba(2, 119, 189, 0.05));
  border-radius: 12px;
  border: 1px solid rgba(0, 168, 89, 0.1);
  height: 4rem;
}

.activity-meta .duration,
.activity-meta .price {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--earth-brown);
  font-size: 0.9rem;
}

.activity-meta .price {
  color: var(--primary-green);
  font-size: 1.1rem;
  font-weight: 700;
}

.activity-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  height: 3rem;
  align-items: flex-start;
  align-content: flex-start;
  overflow: hidden;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  background: rgba(0, 168, 89, 0.1);
  color: var(--earth-brown);
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  border: 1px solid rgba(0, 168, 89, 0.2);
}

.activity-cta {
  display: block;
  width: 100%;
  text-align: center;
  padding: 1rem;
  background: linear-gradient(135deg, var(--sunset-orange), #ff8f00);
  color: var(--cloud-white);
  text-decoration: none;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.3s ease;
  border: none;
  box-shadow: 0 4px 15px rgba(255, 111, 0, 0.3);
  margin-top: auto;
}

.activity-cta:hover {
  background: linear-gradient(135deg, #ff6f00, #e65100);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 111, 0, 0.4);
  color: var(--cloud-white);
  text-decoration: none;
}

.activity-cta:focus {
  outline: 3px solid rgba(255, 111, 0, 0.5);
  outline-offset: 2px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .adventures-grid {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(4, auto);
    gap: 1.5rem;
    padding: 1rem;
  }

  .adventure-card-enhanced {
    border-radius: 16px;
  }
  
  .card-image-container {
    height: 200px;
  }
  
  .activity-content {
    padding: 1.25rem;
  }
  
  .activity-content h3 {
    font-size: 1.3rem;
    height: 2.5rem;
  }
  
  .activity-content p {
    font-size: 0.9rem;
    height: 6rem;
  }
  
  .activity-meta {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
    height: 3rem;
  }
  
  .activity-features {
    justify-content: center;
    height: 2.5rem;
  }
}

@media (min-width: 769px) and (max-width: 1023px) {
  .adventures-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    padding: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .adventures-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    padding: 2rem;
  }
}

/* Enhanced hover effects */
@media (hover: hover) {
  .adventure-card-enhanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent, rgba(0, 168, 89, 0.02));
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1;
  }
  
  .adventure-card-enhanced:hover::before {
    opacity: 1;
  }
}

/* Loading states */
.card-image[loading="lazy"] {
  background: linear-gradient(135deg, var(--warm-sand), #f0e6d2);
}

/* Print styles */
@media print {
  .adventure-card-enhanced {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ccc;
  }
  
  .activity-cta {
    background: var(--earth-brown) !important;
  }
}