/* ===================================
   Tour Packages Pro - Main Styles
   ================================== */

/* Reset & Base Styles */
.tpp-container {
  --tpp-primary: #FF6B35;
  --tpp-primary-dark: #E55A2B;
  --tpp-secondary: #2C3E50;
  --tpp-accent: #F39C12;
  --tpp-success: #27AE60;
  --tpp-text-dark: #2C3E50;
  --tpp-text-light: #7F8C8D;
  --tpp-border: #E0E0E0;
  --tpp-bg-light: #F8F9FA;
  --tpp-white: #FFFFFF;
  --tpp-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  --tpp-shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.15);
  
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: var(--tpp-text-dark);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.tpp-app {
  max-width: 100%;
  margin: 0 auto;
}

/* ===================================
   Hero Section
   ================================== */
.tpp-hero {
  position: relative;
  padding: 60px 20px;
  background: linear-gradient(135deg, #F8F9FA 0%, #E8F5E9 100%);
  overflow: hidden;
  margin-bottom: 40px;
}

.tpp-hero-content {
  text-align: center;
  position: relative;
  z-index: 2;
}

.tpp-hero-title {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  color: var(--tpp-text-dark);
  margin: 0 0 16px 0;
  line-height: 1.2;
}

.tpp-highlight {
  color: var(--tpp-primary);
}

.tpp-hero-subtitle {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--tpp-text-light);
  margin: 0;
}

.tpp-hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.05;
  background-image: 
    radial-gradient(circle at 20% 50%, var(--tpp-primary) 2px, transparent 2px),
    radial-gradient(circle at 80% 80%, var(--tpp-accent) 2px, transparent 2px);
  background-size: 50px 50px;
}

/* ===================================
   Category Navigation
   ================================== */
.tpp-category-nav {
  background: var(--tpp-white);
  padding: 20px 0;
  margin-bottom: 40px;
  border-top: 1px solid var(--tpp-border);
  border-bottom: 1px solid var(--tpp-border);
  overflow: hidden;
}

.tpp-category-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 0 20px 10px 20px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.tpp-category-scroll::-webkit-scrollbar {
  display: none;
}

.tpp-category-btn {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: var(--tpp-white);
  border: 2px solid var(--tpp-border);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  flex-shrink: 0;
  font-family: inherit;
}

.tpp-category-btn:hover {
  border-color: var(--tpp-primary);
  transform: translateY(-2px);
  box-shadow: var(--tpp-shadow);
}

.tpp-category-btn.tpp-active {
  background: var(--tpp-primary);
  border-color: var(--tpp-primary);
  color: var(--tpp-white);
}

.tpp-category-btn.tpp-active .tpp-category-label {
  color: var(--tpp-white);
}

.tpp-trending-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--tpp-accent);
  color: var(--tpp-white);
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 10px;
  text-transform: uppercase;
}

.tpp-category-icon {
  font-size: 28px;
  line-height: 1;
}

.tpp-category-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--tpp-text-dark);
}

/* ===================================
   Section Header
   ================================== */
.tpp-section {
  padding: 0 20px 60px 20px;
  max-width: 1400px;
  margin: 0 auto;
}

.tpp-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.tpp-section-title {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  margin: 0;
  color: var(--tpp-text-dark);
}

.tpp-view-all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--tpp-primary);
  font-weight: 600;
  text-decoration: none;
  font-size: 16px;
  transition: gap 0.3s ease;
}

.tpp-view-all:hover {
  gap: 12px;
}

.tpp-arrow {
  display: inline-block;
  font-size: 20px;
}

/* ===================================
   Tour Grid
   ================================== */
.tpp-tour-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

@media (max-width: 768px) {
  .tpp-tour-grid {
    grid-template-columns: 1fr;
  }
}

/* ===================================
   Tour Card
   ================================== */
.tpp-tour-card {
  background: var(--tpp-white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--tpp-shadow);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.tpp-tour-card:hover {
  box-shadow: var(--tpp-shadow-hover);
  transform: translateY(-4px);
}

.tpp-card-image {
  position: relative;
  width: 100%;
  height: 240px;
  overflow: hidden;
  background: var(--tpp-bg-light);
}

.tpp-card-content {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.tpp-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.tpp-duration {
  font-size: 13px;
  color: var(--tpp-text-light);
  font-weight: 500;
}

.tpp-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--tpp-bg-light);
  padding: 4px 10px;
  border-radius: 20px;
}

.tpp-star {
  color: var(--tpp-success);
  font-size: 16px;
}

.tpp-rating-value {
  font-weight: 600;
  font-size: 14px;
  color: var(--tpp-text-dark);
}

.tpp-rating-count {
  font-size: 13px;
  color: var(--tpp-text-light);
}

.tpp-card-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--tpp-text-dark);
  margin: 0 0 12px 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tpp-cities {
  font-size: 13px;
  color: var(--tpp-text-light);
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ===================================
   Pricing
   ================================== */
.tpp-pricing {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--tpp-border);
  margin-bottom: 16px;
}

.tpp-price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.tpp-price-original {
  font-size: 14px;
  color: var(--tpp-text-light);
  text-decoration: line-through;
}

.tpp-savings-badge {
  background: #E8F5E9;
  color: var(--tpp-success);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tpp-price-discounted {
  font-size: 24px;
  font-weight: 700;
  color: var(--tpp-text-dark);
}

.tpp-price-discounted span {
  font-size: 14px;
  font-weight: 400;
  color: var(--tpp-text-light);
}

/* ===================================
   Card Actions
   ================================== */
.tpp-card-actions {
  display: flex;
  gap: 12px;
}

.tpp-btn-phone {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--tpp-white);
  border: 2px solid var(--tpp-primary);
  border-radius: 8px;
  color: var(--tpp-primary);
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.tpp-btn-phone:hover {
  background: var(--tpp-primary);
  color: var(--tpp-white);
}

.tpp-btn-callback {
  flex: 1;
  padding: 12px 24px;
  background: var(--tpp-primary);
  color: var(--tpp-white);
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
}

.tpp-btn-callback:hover {
  background: var(--tpp-primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

/* ===================================
   Image Carousel
   ================================== */
.tpp-carousel {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.tpp-carousel-inner {
  position: relative;
  width: 100%;
  height: 100%;
}

.tpp-carousel-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  background-size: cover;
  background-position: center;
}

.tpp-carousel-item.tpp-active {
  opacity: 1;
}

.tpp-carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tpp-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  color: var(--tpp-text-dark);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 2;
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tpp-carousel:hover .tpp-carousel-btn {
  opacity: 1;
}

.tpp-carousel-btn:hover {
  background: var(--tpp-white);
  transform: translateY(-50%) scale(1.1);
}

.tpp-carousel-btn.tpp-prev {
  left: 12px;
}

.tpp-carousel-btn.tpp-next {
  right: 12px;
}

.tpp-carousel-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 2;
}

.tpp-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.tpp-dot.tpp-active {
  background: var(--tpp-white);
  width: 24px;
  border-radius: 4px;
}

.tpp-carousel-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: var(--tpp-bg-light);
  color: var(--tpp-text-light);
}

/* ===================================
   Loading State
   ================================== */
.tpp-loading {
  text-align: center;
  padding: 60px 20px;
}

.tpp-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid var(--tpp-border);
  border-top-color: var(--tpp-primary);
  border-radius: 50%;
  animation: tpp-spin 1s linear infinite;
  margin: 0 auto 20px;
}

@keyframes tpp-spin {
  to { transform: rotate(360deg); }
}

.tpp-no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: var(--tpp-text-light);
}

/* ===================================
   Responsive Design
   ================================== */
@media (max-width: 1024px) {
  .tpp-tour-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .tpp-section {
    padding: 0 16px 40px 16px;
  }
  
  .tpp-category-scroll {
    padding: 0 16px 10px 16px;
  }
  
  .tpp-section-header {
    margin-bottom: 20px;
  }
  
  .tpp-card-image {
    height: 200px;
  }
  
  .tpp-hero {
    padding: 40px 16px;
  }
}

@media (max-width: 480px) {
  .tpp-card-content {
    padding: 16px;
  }
  
  .tpp-card-title {
    font-size: 16px;
  }
  
  .tpp-price-discounted {
    font-size: 20px;
  }
}

/* ===================================
   Accessibility
   ================================== */
.tpp-btn-phone:focus,
.tpp-btn-callback:focus,
.tpp-category-btn:focus,
.tpp-carousel-btn:focus,
.tpp-dot:focus {
  outline: 2px solid var(--tpp-primary);
  outline-offset: 2px;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  .tpp-tour-card,
  .tpp-category-btn,
  .tpp-carousel-item,
  .tpp-btn-callback,
  .tpp-btn-phone {
    transition: none;
  }
  
  .tpp-spinner {
    animation: none;
  }
}
