/* ==================== Tour Search Page ==================== */

/* Hero */
.ts-hero {
  background: linear-gradient(135deg, #0d47a1 0%, #1976d2 100%);
  color: #fff;
  padding: 100px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* floating travel icons */
.ts-hero-icons {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.ts-hero-icons i {
  position: absolute;
  color: rgba(255, 255, 255, 0.07);
  font-size: 2rem;
  animation: tsFloatIcon 6s ease-in-out infinite;
}

.ts-hero-icons i:nth-child(1) {
  top: 15%;
  left: 8%;
  font-size: 2.5rem;
  animation-delay: 0s;
}
.ts-hero-icons i:nth-child(2) {
  top: 25%;
  right: 12%;
  font-size: 1.8rem;
  animation-delay: 1s;
}
.ts-hero-icons i:nth-child(3) {
  bottom: 20%;
  left: 15%;
  font-size: 2.2rem;
  animation-delay: 2s;
}
.ts-hero-icons i:nth-child(4) {
  top: 10%;
  left: 35%;
  font-size: 1.6rem;
  animation-delay: 0.5s;
}
.ts-hero-icons i:nth-child(5) {
  bottom: 15%;
  right: 20%;
  font-size: 2rem;
  animation-delay: 1.5s;
}
.ts-hero-icons i:nth-child(6) {
  top: 40%;
  left: 5%;
  font-size: 1.5rem;
  animation-delay: 3s;
}
.ts-hero-icons i:nth-child(7) {
  top: 20%;
  right: 30%;
  font-size: 1.8rem;
  animation-delay: 2.5s;
}
.ts-hero-icons i:nth-child(8) {
  bottom: 30%;
  right: 8%;
  font-size: 2.4rem;
  animation-delay: 0.8s;
}

@keyframes tsFloatIcon {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-15px) rotate(5deg);
  }
}

/* flying plane */
.ts-hero-plane {
  position: absolute;
  top: 30px;
  right: 5%;
  font-size: 3.5rem;
  color: rgba(255, 255, 255, 0.15);
  transform: rotate(-20deg);
  animation: tsPlaneFly 4s ease-in-out infinite;
  z-index: 1;
}

@keyframes tsPlaneFly {
  0%,
  100% {
    transform: rotate(-20deg) translateY(0);
  }
  50% {
    transform: rotate(-20deg) translateY(-12px);
  }
}

.ts-hero-content {
  position: relative;
  z-index: 2;
}

.ts-hero h1 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
}

.ts-hero p {
  font-size: 16px;
  opacity: 0.85;
  margin: 0;
}

/* Search Box */
.ts-search-box {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  padding: 50px 30px;
  margin-top: -30px;
  margin-bottom: 30px;
  position: relative;
  z-index: 2;
  border: 1px solid #e8e8e8;
}

/* Form Layout */
.ts-form-row {
  margin-bottom: 20px;
}

.ts-form-row-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
}

.ts-form-group {
  margin-bottom: 0;
}

.ts-form-group-lg {
  grid-column: 1 / -1;
}

.ts-form-group label {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin-bottom: 10px;
}

.ts-form-group label i {
  color: #0d47a1;
  margin-right: 1px;
  width: 18px;
  text-align: center;
}

/* Tag Checkbox */
.ts-tag-checkbox {
  display: inline-block;
  cursor: pointer;
  margin: 0;
}

.ts-tag-checkbox input[type="checkbox"] {
  display: none;
}

.ts-tag {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid #ddd;
  background: #f8f9fa;
  font-size: 15px;
  font-weight: 500;
  color: #333;
  transition: all 0.2s ease;
  user-select: none;
}

.ts-tag:hover {
  border-color: #0d47a1;
  color: #0d47a1;
  background: #e3f2fd;
}

.ts-tag-checkbox input[type="checkbox"]:checked + .ts-tag {
  background: #0d47a1;
  color: #fff;
  border-color: #0d47a1;
}

/* Tag Containers */
.ts-country-tags,
.ts-city-tags,
.ts-feature-tags,
.ts-day-tags,
.ts-month-tags,
.ts-star-tags,
.ts-airport-tags,
.ts-style-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Style Tags */
.ts-tag-style {
  border-radius: 16px;
}

/* Price Range */
.ts-price-range {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ts-price-range input {
  width: 182px;
  flex: none;
  padding: 10px 14px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}

.ts-price-range input:focus {
  border-color: #0d47a1;
  box-shadow: 0 0 0 3px rgba(13, 71, 161, 0.1);
}

.ts-separator {
  color: #999;
  font-weight: 600;
}

/* Select */
.ts-select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  color: #333;
  background: #fff;
  outline: none;
  cursor: pointer;
  transition: border-color 0.2s;
}

.ts-select:focus {
  border-color: #0d47a1;
  box-shadow: 0 0 0 3px rgba(13, 71, 161, 0.1);
}

/* Form Actions */
.ts-form-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid #f0f0f0;
  margin-top: 10px;
}

.ts-btn-search {
  background: linear-gradient(135deg, #ff7c2b, #ff9a56);
  color: #fff;
  border: none;
  padding: 14px 40px;
  border-radius: 30px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.ts-btn-search:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 124, 43, 0.3);
}

.ts-btn-reset {
  background: #f0f0f0;
  color: #666;
  border: none;
  padding: 14px 30px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.ts-btn-reset:hover {
  background: #e0e0e0;
  color: #333;
}

/* ==================== Results Section ==================== */
.ts-results {
  padding-bottom: 40px;
}

.ts-results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 2px solid #f0f0f0;
}

.ts-results-header h2 {
  font-size: 22px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0;
}

.ts-results-header h2 i {
  color: #0d47a1;
  margin-right: 8px;
}

.ts-results-count {
  background: #e3f2fd;
  color: #0d47a1;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
}

.ts-results-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Loading */
.ts-loading {
  text-align: center;
  padding: 60px 20px;
}

.ts-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid #e3f2fd;
  border-top-color: #0d47a1;
  border-radius: 50%;
  animation: ts-spin 0.8s linear infinite;
  margin: 0 auto 15px;
}

@keyframes ts-spin {
  to {
    transform: rotate(360deg);
  }
}

.ts-loading p {
  color: #666;
  font-size: 15px;
}

/* Empty State */
.ts-empty {
  text-align: center;
  padding: 60px 20px;
  color: #999;
}

.ts-empty i {
  font-size: 48px;
  margin-bottom: 15px;
  display: block;
}

.ts-empty h3 {
  font-size: 20px;
  color: #555;
  margin-bottom: 8px;
}

.ts-empty p {
  font-size: 14px;
}

/* Pagination */
.ts-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding: 25px 0;
  margin-top: 10px;
}

.ts-page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid #ddd;
  background: #fff;
  color: #333;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
}

.ts-page-btn:hover {
  background: #e3f2fd;
  border-color: #0d47a1;
  color: #0d47a1;
}

.ts-page-btn.active {
  background: #0d47a1;
  border-color: #0d47a1;
  color: #fff;
  pointer-events: none;
}

.ts-page-prev,
.ts-page-next {
  font-size: 12px;
}

.ts-page-dots {
  padding: 0 4px;
  color: #999;
  font-size: 14px;
}

/* ==================== Responsive ==================== */
@media (max-width: 991px) {
  .ts-hero-plane {
    display: none;
  }
}

@media (max-width: 992px) {
  .ts-form-row-3 {
    grid-template-columns: 1fr 1fr;
  }

  .ts-form-row-3 .ts-form-group:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .ts-hero {
    padding: 50px 0;
  }

  .ts-hero h1 {
    font-size: 22px;
  }

  .ts-search-box {
    padding: 20px;
    margin-top: -20px;
    border-radius: 12px;
  }

  .ts-form-row-3 {
    grid-template-columns: 1fr;
  }

  .ts-form-row-3 .ts-form-group:last-child {
    grid-column: auto;
  }

  .ts-form-actions {
    flex-direction: column-reverse;
  }

  .ts-btn-search,
  .ts-btn-reset {
    width: 100%;
    justify-content: center;
  }

  .ts-results-header {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .ts-search-box {
    padding: 15px;
  }

  .ts-tag {
    font-size: 14px;
    padding: 5px 10px;
  }

  .ts-price-range {
    flex-direction: column;
  }

  .ts-separator {
    display: none;
  }

  .ts-price-range input {
    width: 100%;
  }
}
