/* Featured Tours Section */
#featured-tours {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  padding: 6rem 0;
}

/* Section Header */
.section-header {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto 4rem;
}

.section-badge {
  display: inline-block;
  background: linear-gradient(135deg, #ff6b35 0%, #ff9e2c 100%);
  color: white;
  padding: 0.6rem 1.8rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 15px rgba(255, 107, 53, 0.2);
}

.section-title {
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  color: #2d3748;
}

.text-gradient {
  background: linear-gradient(135deg, #ff6b35 0%, #ff9e2c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

.section-subtitle-wrapper {
  max-width: 700px;
  margin: 0 auto 2rem;
}

.section-subtitle {
  color: #64748b;
  font-size: 1.25rem;
  line-height: 1.7;
  margin-bottom: 0;
  font-weight: 400;
}

.section-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 2.5rem auto;
  max-width: 320px;
}

.divider-line {
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, transparent, #ff6b35, transparent);
  position: relative;
}

.divider-icon {
  margin: 0 1.8rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  color: #ff6b35;
  font-size: 1.5rem;
  position: relative;
  z-index: 1;
  transition: all 0.3s ease;
}

.divider-icon:hover {
  transform: rotate(15deg);
  background: #ff6b35;
  color: white;
  box-shadow: 0 8px 25px rgba(255, 107, 53, 0.3);
}

/* Tour Categories */
.tour-categories {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 2.5rem;
}

.btn-category {
  padding: 0.7rem 1.8rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid #e2e8f0;
  background: white;
  color: #4a5568;
  transition: all 0.3s ease;
  text-transform: capitalize;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-category::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: linear-gradient(135deg, #ff6b35 0%, #ff9e2c 100%);
  transition: all 0.4s ease;
  z-index: -1;
  border-radius: 50px;
}

.btn-category:hover,
.btn-category.active {
  color: white;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(255, 107, 53, 0.25);
}

.btn-category:hover::before,
.btn-category.active::before {
  width: 100%;
}

/* Tours Grid */
.tours-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2.5rem;
  position: relative;
  z-index: 2;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem;
  
  @media (max-width: 1199px) {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
  
  @media (max-width: 767px) {
    grid-template-columns: 1fr;
    max-width: 500px;
    padding: 0 1rem;
  }
}

/* Tour Card */
.tour-card {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.tour-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
  border-color: rgba(0, 0, 0, 0.1);
}

.tour-img-container {
  position: relative;
  height: 260px;
  overflow: hidden;
  background: #f8f9fa;
}

.tour-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0.96, 0.34, 1);
  will-change: transform;
}

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

.tour-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, 
    rgba(0, 0, 0, 0) 0%, 
    rgba(0, 0, 0, 0.01) 40%, 
    rgba(0, 0, 0, 0.8) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  transform: translateY(10%);
  z-index: 2;
}

.tour-card:hover .tour-overlay {
  opacity: 1;
  transform: translateY(0);
  background: linear-gradient(180deg, 
    rgba(0, 0, 0, 0.2) 0%, 
    rgba(0, 0, 0, 0.4) 40%, 
    rgba(0, 0, 0, 0.9) 100%);
}

.tour-content {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.tour-rating {
  color: #ffc107;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
}

.tour-rating i {
  margin-right: 2px;
}

.tour-rating span {
  color: #6c757d;
  margin-left: 0.5rem;
  font-weight: 600;
}

.tour-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: #2d3748;
}

.tour-description {
  color: #64748b;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  line-height: 1.6;
  flex: 1;
}

.tour-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid #e2e8f0;
}

.tour-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ff6b35;
}

.tour-price span {
  font-size: 0.875rem;
  color: #94a3b8;
  font-weight: 500;
  margin-left: 0.25rem;
}

.tour-card-back {
  transform: rotateY(180deg);
  padding: 25px;
  display: flex;
  flex-direction: column;
}

/* Card Front */
.tour-img-container {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.tour-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.tour-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  display: flex;
  gap: 8px;
  z-index: 2;
}

.badge-popular,
.badge-duration {
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-popular {
  background: linear-gradient(135deg, #ff6b35 0%, #ff9e2c 100%);
}

.badge-duration {
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
}

.tour-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 15px 20px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1;
}

.tour-price {
  color: white;
  font-weight: 600;
  font-size: 1.1rem;
}

.price-amount {
  font-size: 1.3rem;
  font-weight: 700;
}

.btn-tour-quickview {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-tour-quickview:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

/* Card Content */
.tour-card-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  height: calc(100% - 220px);
}

.tour-card-header {
  margin-bottom: 15px;
}

.tour-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: #2d3748;
}

.tour-location {
  display: flex;
  align-items: center;
  color: #64748b;
  font-size: 0.9rem;
  margin-bottom: 15px;
}

.tour-location i {
  margin-right: 5px;
  color: #ff6b35;
}

.tour-excerpt {
  color: #64748b;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 20px;
  flex: 1;
}

.tour-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 15px;
  border-top: 1px solid #e2e8f0;
}

.tour-rating {
  display: flex;
  align-items: center;
}

.stars {
  color: #fbbf24;
  margin-right: 5px;
  display: flex;
  align-items: center;
  gap: 2px;
}

.rating-text {
  color: #64748b;
  font-size: 0.85rem;
  font-weight: 500;
  margin-left: 5px;
}

.btn-tour-details {
  display: inline-flex;
  align-items: center;
  color: #ff6b35;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-tour-details i {
  margin-left: 5px;
  transition: transform 0.3s ease;
}

.btn-tour-details:hover {
  color: #e05a2c;
}

.btn-tour-details:hover i {
  transform: translateX(3px);
}

/* Back of Card */
.tour-card-back-content {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.tour-card-back h4 {
  font-size: 1.3rem;
  color: #2d3748;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #f1f5f9;
}

.tour-features {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
  flex: 1;
}

.tour-features li {
  margin-bottom: 12px;
  display: flex;
  align-items: flex-start;
  color: #4a5568;
  font-size: 0.95rem;
  line-height: 1.5;
}

.tour-features i {
  color: #ff6b35;
  margin-right: 10px;
  margin-top: 3px;
  flex-shrink: 0;
}

.tour-meta {
  display: flex;
  gap: 15px;
  margin: 20px 0;
  padding: 15px 0;
  border-top: 1px solid #f1f5f9;
  border-bottom: 1px solid #f1f5f9;
}

.meta-item {
  display: flex;
  align-items: center;
  color: #64748b;
  font-size: 0.9rem;
}

.meta-item i {
  margin-right: 5px;
  color: #ff6b35;
}

.btn-tour-book {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #ff6b35 0%, #ff9e2c 100%);
  color: white;
  padding: 12px 25px;
  border-radius: 30px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  text-align: center;
  width: 100%;
  box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.btn-tour-book i {
  margin-left: 8px;
  transition: transform 0.3s ease;
}

.btn-tour-book:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

.btn-tour-book:hover i {
  transform: translateX(3px);
}

/* Responsive Design */
@media (max-width: 1200px) {
  .tours-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 1000px;
  }
  
  .section-title {
    font-size: 2.5rem;
  }
}

@media (max-width: 992px) {
  .section-title {
    font-size: 2.2rem;
  }
  
  .section-subtitle {
    font-size: 1.1rem;
  }
}

@media (max-width: 768px) {
  #featured-tours {
    padding: 4rem 0;
  }
  
  .tours-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    padding: 0 1.5rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .section-subtitle {
    font-size: 1rem;
  }
  
  .section-badge {
    font-size: 0.8rem;
    padding: 0.5rem 1.5rem;
  }
  
  .divider-icon {
    width: 45px;
    height: 45px;
    font-size: 1.3rem;
    margin: 0 1.2rem;
  }
  
  .btn-category {
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 576px) {
  .section-title {
    font-size: 1.8rem;
  }
  
  .section-badge {
    font-size: 0.75rem;
    padding: 0.4rem 1.25rem;
  }
  
  .section-divider {
    margin: 2rem auto;
  }
  
  .divider-icon {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
  
  .tour-categories {
    gap: 0.75rem;
  }
  
  .btn-category {
    padding: 0.5rem 1.25rem;
    font-size: 0.85rem;
  }
}
