/* ============================================
   Component Styles - Modern & Clean
   ============================================ */

/* ===== TOUR CAROUSEL COMPONENT ===== */
.tour-carousel-section {
  background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
  padding: var(--space-5xl) 0;
  position: relative;
  overflow: hidden;
}

.tour-carousel-section::before {
  content: '';
  position: absolute;
  top: -10%;
  right: -5%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(69, 194, 212, 0.06), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.tour-carousel-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.tour-carousel-header h2 {
  background: linear-gradient(135deg, var(--text-primary), var(--brand-primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--space-sm);
}

.tour-carousel-header p {
  font-size: var(--text-lg);
  color: var(--text-secondary);
}

.tour-carousel-wrapper {
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.tour-carousel-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}

@media (min-width: 768px) {
  .tour-carousel-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1200px) {
  .tour-carousel-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Tour Card */
.tour-card {
  background: var(--bg-primary);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
  height: 100%;
  animation: fadeInUp 0.6s ease-out both;
}

.tour-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--brand-primary);
}

/* Tour Card Image */
.tour-card-image {
  position: relative;
  height: 280px;
  overflow: hidden;
  background: var(--bg-tertiary);
}

.tour-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.tour-card:hover .tour-card-image img {
  transform: scale(1.05);
}

.tour-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 0%, transparent 50%, rgba(0, 0, 0, 0.4) 100%);
  pointer-events: none;
}

.tour-card-duration {
  position: absolute;
  top: var(--space-md);
  left: var(--space-md);
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(10px);
  color: var(--white);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  z-index: 2;
}

.tour-card-price {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  background: var(--brand-primary);
  color: var(--white);
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-full);
  font-weight: var(--font-bold);
  box-shadow: 0 4px 12px rgba(69, 194, 212, 0.4);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.2;
}

.price-amount {
  font-size: var(--text-xl);
}

.price-label {
  font-size: var(--text-xs);
  opacity: 0.9;
  font-weight: var(--font-medium);
}

.tour-discount {
  position: absolute;
  bottom: var(--space-md);
  left: var(--space-md);
  background: #10B981;
  color: var(--white);
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  z-index: 2;
}

/* Tour Card Content */
.tour-card-content {
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.tour-card-title {
  font-size: var(--text-2xl);
  line-height: var(--leading-tight);
  margin-bottom: var(--space-md);
  color: var(--text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.5em;
}

.tour-card-description {
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-grow: 1;
}

/* Activity Chips */
.tour-card-activities {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.tour-chip {
  display: inline-flex;
  align-items: center;
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, rgba(69, 194, 212, 0.1), rgba(0, 194, 168, 0.1));
  border: 1px solid rgba(69, 194, 212, 0.25);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.tour-chip::before {
  content: '✓';
  color: var(--brand-primary);
  margin-right: var(--space-xs);
  font-weight: var(--font-bold);
}

.tour-chip:hover {
  background: linear-gradient(135deg, rgba(69, 194, 212, 0.15), rgba(0, 194, 168, 0.15));
  border-color: var(--brand-primary);
}

/* Tour Card Actions */
.tour-card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.btn-whatsapp {
  background: #25D366;
  color: var(--white);
  border: none;
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-lg);
  font-weight: var(--font-semibold);
  font-size: var(--text-base);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  transition: all var(--transition-base);
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(37, 211, 102, 0.3);
  cursor: pointer;
}

.btn-whatsapp:hover {
  background: #20BA5A;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
  color: var(--white);
}

.btn-reserve {
  background: transparent;
  border: 2px solid var(--brand-primary);
  color: var(--brand-primary);
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-lg);
  font-weight: var(--font-semibold);
  font-size: var(--text-base);
  cursor: pointer;
  transition: all var(--transition-base);
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-reserve:hover {
  background: var(--brand-primary);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(69, 194, 212, 0.3);
}

/* Tour Details Accordion */
.tour-card-details {
  border-top: 1px solid var(--border-light);
  padding-top: var(--space-md);
}

.tour-card-details summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-weight: var(--font-semibold);
  color: var(--brand-primary);
  font-size: var(--text-base);
  transition: color var(--transition-fast);
}

.tour-card-details summary:hover {
  color: var(--brand-dark);
}

.tour-card-details summary::before {
  content: '▸';
  display: inline-block;
  transition: transform var(--transition-base);
  font-size: var(--text-lg);
}

.tour-card-details[open] summary::before {
  transform: rotate(90deg);
}

.tour-details-content {
  margin-top: var(--space-md);
  padding: var(--space-md);
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.tour-detail-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--text-sm);
}

.tour-detail-label {
  color: var(--text-secondary);
  font-weight: var(--font-medium);
}

.tour-detail-value {
  color: var(--text-primary);
  font-weight: var(--font-semibold);
}

/* Pagination */
.tour-carousel-pagination {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  margin-top: var(--space-xl);
}

.pagination-dot {
  width: 12px;
  height: 12px;
  border-radius: var(--radius-full);
  border: none;
  background: var(--gray-300);
  cursor: pointer;
  transition: all var(--transition-base);
  padding: 0;
}

.pagination-dot:hover {
  background: var(--gray-400);
  transform: scale(1.1);
}

.pagination-dot.active {
  background: var(--brand-primary);
  transform: scale(1.2);
}

/* Navigation Buttons */
.carousel-nav-btn {
  display: none;
}

@media (min-width: 1200px) {
  .carousel-nav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    border-radius: var(--radius-full);
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    transition: all var(--transition-base);
    z-index: 10;
    color: var(--text-primary);
  }

  .carousel-nav-btn:hover {
    background: var(--brand-primary);
    color: var(--white);
    border-color: var(--brand-primary);
    transform: translateY(-50%) scale(1.1);
    box-shadow: var(--shadow-xl);
  }

  .carousel-nav-btn.prev {
    left: -28px;
  }

  .carousel-nav-btn.next {
    right: -28px;
  }
}

/* ===== GALLERY COMPONENT ===== */
.gallery-section {
  background: var(--bg-primary);
  padding: var(--space-5xl) 0;
}

.gallery-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.gallery-header h2 {
  background: linear-gradient(135deg, var(--text-primary), var(--brand-primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-lg);
}

@media (min-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1200px) {
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.gallery-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--radius-xl);
  overflow: hidden;
  cursor: pointer;
  animation: fadeInUp 0.6s ease-out both;
}

.gallery-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.gallery-item:hover .gallery-image {
  transform: scale(1.1);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-base);
}

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

.gallery-icon {
  color: var(--white);
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

/* Lightbox */
.lightbox-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: var(--z-modal-backdrop);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-xl);
}

.lightbox-container {
  position: relative;
  max-width: 1200px;
  max-height: 90vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-image {
  max-width: 100%;
  max-height: 80vh;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-2xl);
}

.lightbox-close {
  position: absolute;
  top: -60px;
  right: 0;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--white);
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-base);
  backdrop-filter: blur(10px);
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

.lightbox-nav {
  position: absolute;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--white);
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-base);
  backdrop-filter: blur(10px);
}

.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

.lightbox-prev {
  left: var(--space-xl);
}

.lightbox-next {
  right: var(--space-xl);
}

.lightbox-caption {
  position: absolute;
  bottom: -60px;
  left: 0;
  right: 0;
  text-align: center;
  color: var(--white);
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.lightbox-caption p {
  font-size: var(--text-lg);
  font-weight: var(--font-medium);
  margin: 0;
  color: var(--white);
}

.lightbox-counter {
  font-size: var(--text-sm);
  opacity: 0.7;
}

@media (max-width: 768px) {
  .lightbox-nav {
    width: 44px;
    height: 44px;
  }
  
  .lightbox-prev {
    left: var(--space-md);
  }
  
  .lightbox-next {
    right: var(--space-md);
  }
}
