/* Tours Page Styles */
* {
  margin:0;
  padding: 0;
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  overflow-y: auto;
  scroll-behavior: smooth;
  height: auto;
}

body {
  font-family: 'Poppins', sans-serif;
  background: #f8f9fa;
  color: #333;
  overflow-x: hidden;
  overflow-y: auto;
  min-height: 100vh;
}

.tours-page {
  min-height: 100vh;
  position: relative;
  width: 100%;
}

/* GSAP Hero Slider */
.tours-hero-slider {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  padding-top: 20px;
  background: #0e0e11;
  color: white;
  overflow: hidden;
}

.tours-hero-slider .slider {
  width: 100%;
  height: 100%;
  display: flex;
  position: relative;
}

/* LEFT CONTENT */
.tours-hero-slider .left {
  width: 35%;
  padding: 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  z-index: 10;
}

/* Fixed size container for slider content */
.tours-hero-slider .slider-content-wrapper {
  width: 100%;
  max-width: 500px;
  min-width: 400px;
  height: 450px;
  min-height: 400px;
  max-height: 500px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow: hidden;
  position: relative;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
  .tours-hero-slider .slider-content-wrapper {
    min-width: 350px;
    height: 400px;
    min-height: 350px;
  }
}

@media (max-width: 768px) {
  .tours-hero-slider .slider-content-wrapper {
    min-width: 100%;
    max-width: 100%;
    height: auto;
    min-height: 300px;
    max-height: none;
  }
}

.tours-hero-slider .left h1 {
  font-size: clamp(36px, 5.5vw, 54px);
  line-height: 1.1;
  margin-bottom: 20px;
  padding: 0 10px;
  color: white;
  font-weight: 700;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
  transition: font-size 0.4s ease-in-out, line-height 0.4s ease-in-out;
  flex-shrink: 0;
  max-height: 180px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.tours-hero-slider .left p {
  opacity: 0.7;
  font-size: 16px;
  color: white;
  line-height: 1.6;
  margin-bottom: 20px;
  flex: 1;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  min-height: 100px;
  max-height: 120px;
}

.slider-cta-btn {
  margin-top: auto;
  display: inline-block;
  padding: 12px 24px;
  background: white;
  color: #0e0e11;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
  font-size: 14px;
  flex-shrink: 0;
  width: fit-content;
}

.slider-cta-btn:hover {
  background: #f97316;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.4);
}

.slider-cta-btn i {
  margin-left: 8px;
  transition: transform 0.3s ease;
}

.slider-cta-btn:hover i {
  transform: translateX(4px);
}

/* RIGHT */
.tours-hero-slider .right {
  width: 65%;
  position: relative;
}

/* HERO TRACK */
.tours-hero-slider .track {
  position: absolute;
  inset: 80px 120px 120px 80px;
  overflow: hidden;
  border-radius: 30px;
}

.tours-hero-slider .hero {
  position: absolute;
  inset: 0;
}

.tours-hero-slider .hero.next {
  transform: translateX(100%);
}

.tours-hero-slider .hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* NEXT CARD */
.tours-hero-slider .next-card {
  position: absolute;
  right: 80px;
  bottom: 140px;
  width: 260px;
  height: 360px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0,0,0,0.5);
  transform: rotate(-6deg);
}

.tours-hero-slider .next-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* BOTTOM BAR */
.tours-hero-slider .bottom {
  position: absolute;
  left: 40px;
  right: 40px;
  bottom: 40px;
  display: flex;
  align-items: center;
  gap: 20px;
  z-index: 10;
}

.tours-hero-slider .progress {
  flex: 1;
  height: 4px;
  background: rgba(255,255,255,0.2);
  border-radius: 10px;
  overflow: hidden;
}

.tours-hero-slider .progress span {
  display: block;
  height: 100%;
  width: 0%;
  background: white;
}

.tours-hero-slider .counter {
  font-size: 14px;
  opacity: 0.8;
  color: white;
}

/* BUTTONS */
.tours-hero-slider .controls {
  position: absolute;
  right: 40px;
  bottom: 90px;
  display: flex;
  gap: 10px;
  z-index: 10;
}

.tours-hero-slider button {
  background: white;
  border: none;
  padding: 12px 18px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  color: #0e0e11;
  transition: all 0.3s ease;
}

.tours-hero-slider button:hover {
  background: #f0f0f0;
  transform: scale(1.05);
}

/* Fallback Hero Section */
.tours-hero {
  position: relative;
  height: 400px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.tours-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  opacity: 0.3;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 0 20px;
}

.hero-title {
  font-size: 56px;
  font-weight: 800;
  color: white;
  margin-bottom: 15px;
  text-shadow: 0 4px 20px rgba(0,0,0,0.2);
  letter-spacing: -1px;
}

.hero-subtitle {
  font-size: 20px;
  color: rgba(255,255,255,0.95);
  font-weight: 300;
  line-height: 1.6;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.3) 100%);
  z-index: 1;
}

/* Mobile Responsive for Slider */
@media (max-width: 900px) {
  .tours-hero-slider {
    height: auto;
    min-height: 100vh;
  }

  .tours-hero-slider .slider {
    flex-direction: column;
    height: auto;
    min-height: 100vh;
  }

  .tours-hero-slider .left {
    width: 100%;
    padding: 100px 24px 20px;
    text-align: center;
  }

  .tours-hero-slider .left p {
    margin: 0 auto;
  }

  .tours-hero-slider .right {
    width: 100%;
    height: 60vh;
    min-height: 400px;
  }

  .tours-hero-slider .track {
    inset: 20px 20px 80px 20px;
    border-radius: 20px;
  }

  .tours-hero-slider .next-card {
    width: 120px;
    height: 170px;
    right: 20px;
    bottom: 100px;
    border-radius: 14px;
  }

  .tours-hero-slider .bottom {
    left: 20px;
    right: 20px;
    bottom: 30px;
  }

  .tours-hero-slider .controls {
    right: 20px;
    bottom: 140px;
  }

  .tours-hero-slider button {
    padding: 10px 14px;
  }
}

/* Tours Section */
.tours-section {
  padding: 80px 0;
}

/* Filters Section */
.filters-section {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  padding: 35px;
  border-radius: 24px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  margin-bottom: 50px;
  position: relative;
  overflow: hidden;
}

.filters-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #f97316 0%, #4ade80 50%, #f97316 100%);
  background-size: 200% 100%;
  animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.filters-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 25px;
  margin-bottom: 25px;
  position: relative;
  z-index: 1;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
}

.filter-group label {
  font-size: 14px;
  font-weight: 600;
  color: #1f2937;
  display: flex;
  align-items: center;
  gap: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: color 0.3s;
}

.filter-group:focus-within label {
  color: #f97316;
}

.filter-group label i {
  color: #f97316;
  font-size: 18px;
  width: 20px;
  text-align: center;
  transition: transform 0.3s;
}

.filter-group:focus-within label i {
  transform: scale(1.2) rotate(5deg);
}

.filter-select {
  padding: 14px 18px;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  font-size: 15px;
  font-family: 'Poppins', sans-serif;
  background: white;
  color: #1f2937;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23f97316' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 45px;
}

.filter-select:hover {
  border-color: #4ade80;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(74, 222, 128, 0.15);
}

.filter-select:focus {
  outline: none;
  border-color: #4ade80;
  box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.15), 0 4px 12px rgba(74, 222, 128, 0.2);
  transform: translateY(-2px);
}

.filter-select option {
  padding: 10px;
  background: white;
  color: #1f2937;
}

.filter-clear-btn {
  padding: 14px 28px;
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: 'Poppins', sans-serif;
  align-self: flex-end;
  box-shadow: 0 4px 15px rgba(249, 115, 22, 0.3);
  position: relative;
  overflow: hidden;
}

.filter-clear-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.filter-clear-btn:hover::before {
  width: 300px;
  height: 300px;
}

.filter-clear-btn:hover {
  background: linear-gradient(135deg, #ea580c 0%, #dc2626 100%);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 6px 20px rgba(249, 115, 22, 0.4);
}

.filter-clear-btn:active {
  transform: translateY(-1px) scale(0.98);
}

.filter-clear-btn i {
  transition: transform 0.3s;
}

.filter-clear-btn:hover i {
  transform: rotate(90deg);
}

.filter-results {
  padding-top: 20px;
  border-top: 2px solid #e5e7eb;
  font-size: 15px;
  color: #6b7280;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  z-index: 1;
}

.filter-results::before {
  content: '📊';
  font-size: 18px;
}

.filter-results span {
  color: #f97316;
  font-weight: 700;
  font-size: 16px;
  margin-left: 5px;
}

/* Loading Indicator */
.loading-indicator {
  text-align: center;
  padding: 80px 20px;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border-radius: 24px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  margin-bottom: 40px;
  position: relative;
  overflow: hidden;
}

.loading-indicator::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(249, 115, 22, 0.1), transparent);
  animation: loading-shimmer 2s infinite;
}

@keyframes loading-shimmer {
  0% { left: -100%; }
  100% { left: 100%; }
}

.spinner {
  width: 60px;
  height: 60px;
  border: 5px solid #f0f0f0;
  border-top: 5px solid #f97316;
  border-right: 5px solid #4ade80;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 25px;
  position: relative;
  z-index: 1;
}

.spinner::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 30px;
  height: 30px;
  border: 3px solid transparent;
  border-top: 3px solid #f97316;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: spin-reverse 0.8s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes spin-reverse {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(-360deg); }
}

.loading-indicator p {
  color: #6b7280;
  font-size: 17px;
  font-weight: 600;
  position: relative;
  z-index: 1;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Tours Grid */
.tours-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

/* Tour Card */
.tour-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
  opacity: 0;
  transform: translateY(30px);
}

.tour-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}

.tour-card-image-wrapper {
  position: relative;
  width: 100%;
  height: 280px;
  overflow: hidden;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.tour-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.tour-card:hover .tour-card-image {
  transform: scale(1.1);
}

.tour-card-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.placeholder-icon {
  font-size: 80px;
  opacity: 0.5;
}

.tour-card-overlay {
  position: absolute;
  top: 15px;
  right: 15px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 2;
  max-width: calc(100% - 30px);
  align-items: flex-end;
}

.tour-card-badge {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  padding: 8px 14px;
  border-radius: 25px;
  font-size: 12px;
  font-weight: 600;
  color: #333;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  transition: all 0.3s;
  white-space: nowrap;
  max-width: 100%;
}

.tour-card-badge.destination-badge {
  background: rgba(74, 222, 128, 0.95);
  color: white;
}

.tour-card-badge.destination-badge:hover {
  background: rgba(74, 222, 128, 1);
}

.tour-card-badge:hover {
  background: white;
  transform: scale(1.05);
}

.badge-icon {
  font-size: 14px;
  flex-shrink: 0;
}

.tour-card-content {
  padding: 25px;
}

.tour-card-header {
  margin-bottom: 15px;
}

.tour-card-title {
  font-size: 22px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 10px;
  padding: 0 5px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-wrap: break-word;
  text-overflow: ellipsis;
}

.tour-card-date {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #666;
  font-weight: 500;
}

.date-icon {
  font-size: 14px;
  margin-right: 5px;
}

.tour-card-overview {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tour-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  border-top: 1px solid #f0f0f0;
  gap: 15px;
}

.tour-card-price {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.price-label {
  font-size: 11px;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.price-amount {
  font-size: 24px;
  font-weight: 700;
  color: #667eea;
  line-height: 1;
  display: flex;
  align-items: baseline;
  gap: 2px;
}

.currency-symbol {
  font-size: 20px;
  font-weight: 600;
  color: #667eea;
}

.price-type {
  font-size: 12px;
  color: #999;
  font-weight: 500;
  margin-top: 2px;
}

.tour-card-button {
  background: linear-gradient(135deg, #f97316 0%, #fb923c 100%);
  color: white;
  padding: 12px 24px;
  border-radius: 12px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s;
  white-space: nowrap;
  box-shadow: 0 4px 15px rgba(249, 115, 22, 0.3);
}

.tour-card-button:hover {
  transform: translateX(5px);
  box-shadow: 0 6px 20px rgba(249, 115, 22, 0.4);
}

.tour-card-button:hover .button-arrow {
  transform: translateX(3px);
}

.button-arrow {
  font-size: 18px;
  transition: transform 0.3s;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 100px 20px;
  background: white;
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.empty-icon {
  font-size: 80px;
  margin-bottom: 20px;
  opacity: 0.5;
}

.empty-state h2 {
  font-size: 28px;
  color: #333;
  margin-bottom: 10px;
}

.empty-state p {
  font-size: 16px;
  color: #666;
}

/* Loading Animation */
.tour-card.loading {
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.6;
  }
}

/* Responsive Design */
@media (max-width: 1024px) {
  .tours-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
  }
}

@media (max-width: 768px) {
  .tours-hero {
    height: 300px;
  }
  
  .hero-title {
    font-size: 36px;
  }
  
  .hero-subtitle {
    font-size: 16px;
  }
  
  .tours-section {
    padding: 50px 0;
  }
  
  .filters-container {
    grid-template-columns: 1fr;
  }
  
  .filter-clear-btn {
    align-self: stretch;
  }
  
  .tours-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .tour-card-footer {
    flex-direction: column;
    align-items: stretch;
  }
  
  .tour-card-button {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 28px;
  }
  
  .tour-card-content {
    padding: 20px;
  }
  
  .tour-card-title {
    font-size: 20px;
  }
  
  .price-amount {
    font-size: 20px;
  }
}

/* Scroll Animation Classes */
.fade-in-up {
  animation: fadeInUp 0.6s ease-out forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Smooth Scroll - Merged with html declaration above */

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #5568d3 0%, #6a3d8f 100%);
}
