/* ===============================
   TOURS PAGE – LIGHT PURPLE THEME
   Simple static cards, unified filters
================================ */

/* GLOBAL LAYOUT */
.main-content.full-width {
  max-width: 100%;
  padding: 40px 20px;
}

/* SEARCH BAR */
.search-box {
  max-width: 1100px;
  margin: 0 auto 30px;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 18px;
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 14px;
  box-shadow: 0 18px 45px rgba(108, 61, 243, 0.12);
  border: 1px solid rgba(108, 61, 243, 0.08);
}

.search-field {
  position: relative;
}

.search-field i {
  position: absolute;
  top: 50%;
  left: 16px;
  transform: translateY(-50%);
  color: #6c3df3;
  font-size: 15px;
}

.search-field select {
  width: 100%;
  padding: 12px 12px 12px 44px;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,0.08);
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  background: #fafbff;
  color: #374151;
  outline: none;
}

.search-field select:focus {
  border-color: #6c3df3;
  background: #fff;
  box-shadow: 0 0 0 2px rgba(108, 61, 243, 0.15);
}

#searchBtn {
  padding: 12px 24px;
  border-radius: 14px;
  border: none;
  background: linear-gradient(135deg, #6c3df3, #8b5cf6);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 10px 26px rgba(108, 61, 243, 0.35);
}

#searchBtn i {
  font-size: 14px;
}

/* FILTER BAR */
.filter-bar {
  display: flex;
  gap: 10px;
  padding: 12px 20px;
  background: linear-gradient(135deg, #f9f5ff 0%, #f5f7ff 100%);
  border-bottom: 1px solid rgba(108, 61, 243, 0.1);
  overflow-x: auto;
  flex-wrap: nowrap;
  margin: 0 auto 24px;
  max-width: 1200px;
  box-shadow: 0 6px 20px rgba(108, 61, 243, 0.08);
}

.filter-bar button {
  flex: 0 0 auto;
  padding: 9px 16px;
  background: #ffffff;
  border: 1px solid rgba(108, 61, 243, 0.18);
  border-radius: 12px;
  color: #5a4fc7;
  font-weight: 600;
  font-size: 13px;
  white-space: nowrap;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.filter-bar button i {
  font-size: 13px;
}

/* active filter visual */
.filter-bar button.active-filter {
  background: linear-gradient(135deg, #6c3df3, #8b5cf6);
  color: #ffffff;
  border-color: transparent;
}

.filter-bar button#clearFilters {
  margin-left: auto;
  background: #fff4f4;
  border-color: rgba(239, 68, 68, 0.35);
  color: #c53030;
}

.filter-bar::-webkit-scrollbar {
  height: 5px;
}
.filter-bar::-webkit-scrollbar-thumb {
  background: rgba(108, 61, 243, 0.4);
  border-radius: 999px;
}

/* FILTER PANEL */
.filter-panel {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(18px);
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  display: flex;
  align-items: flex-start;
  padding: 20px;
}
.filter-panel.active {
  opacity: 1;
  visibility: visible;
}

.filter-panel-content {
  background: #ffffff;
  margin: auto;
  width: 90%;
  max-width: 480px;
  max-height: 80vh;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 24px 50px rgba(0,0,0,0.30);
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(108, 61, 243, 0.2);
}

.filter-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: #ffffff;
  border-radius: 50%;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.filter-panel h4 {
  margin: 0;
  padding: 20px 22px 14px;
  font-size: 18px;
  font-weight: 700;
  color: #111827;
  border-bottom: 1px solid rgba(229, 231, 235, 0.9);
}

.filter-options {
  flex: 1;
  padding: 18px 20px 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.filter-options label {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 12px;
  border-radius: 12px;
  cursor: pointer;
  font-size: 14px;
  color: #374151;
}
.filter-options label:hover {
  background: #f5f3ff;
}
.filter-options input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #6c3df3;
}

/* TOUR GRID */
.tour-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 26px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 50px;
}

/* TOUR CARD */
.tour-card {
  background: #ffffff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(15,23,42,0.12);
  border: 1px solid rgba(148, 163, 184, 0.35);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.tour-card:hover {
  box-shadow: 0 10px 28px rgba(15,23,42,0.12);
}

/* IMAGE + OVERLAY + BADGES */
.tour-image {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.tour-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* soft gradient overlay at top for text readability */
.tour-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
    rgba(15,23,42,0.65),
    rgba(15,23,42,0.35),
    transparent 55%);
  z-index: 1;
}

.price-badge,
.tour-image .trust-line {
  position: absolute;
  z-index: 2;
}

/* price */
.price-badge {
  top: 14px;
  right: 14px;
  background: linear-gradient(135deg, #6c3df3, #8b5cf6);
  color: #fff;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 8px 22px rgba(108, 61, 243, 0.4);
}

/* trust badge */
.tour-image .trust-line {
  top: 52px;
  right: 14px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid rgba(248, 250, 252, 0.35);
  color: #f9fafb;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.45);
}

.tour-image .trust-line::before {
  content: "\f3ed";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  font-size: 10px;
  color: #a5b4fc;
}

/* hide any old trust line in content */
.tour-content .trust-line {
  display: none;
}

/* CARD CONTENT */
.tour-content {
  padding: 18px 18px 0;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.tour-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
  color: #111827;
  line-height: 1.3;
  max-height: 2.6em;
  overflow: hidden;
}

.tour-route {
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 12px;
}

.tour-meta {
  display: flex;
  gap: 16px;
  font-size: 13px;
  margin-bottom: 18px;
  color: #4b5563;
}
.tour-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.tour-meta i {
  color: #6c3df3;
  font-size: 13px;
}

/* ACTIONS */
.tour-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 18px 16px;
  margin-top: auto;
}

.btn-primary {
  flex: 1;
  padding: 12px 18px;
  border-radius: 14px;
  background: linear-gradient(135deg, #6c3df3, #8b5cf6);
  color: #fff !important;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 10px 26px rgba(108, 61, 243, 0.35);
}

.btn-whatsapp {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #25D366;
  color: #fff !important;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

/* STATES */
.loading,
.no-results {
  text-align: center;
  padding: 70px 20px;
  font-size: 16px;
  color: #6b7280;
  grid-column: 1 / -1;
}

/* RESPONSIVE */
@media (max-width: 1100px) {
  .tour-list {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    padding: 0 16px 40px;
  }
}

@media (max-width: 768px) {
  .main-content.full-width {
    padding: 30px 12px;
  }

  .search-box {
    grid-template-columns: 1fr;
    margin: 0 auto 24px;
    padding: 14px 14px 16px;
  }

  .filter-bar {
    padding: 10px 14px;
    gap: 6px;
  }

  .filter-bar button {
    padding: 8px 12px;
    min-height: 36px;
    font-size: 12px;
  }

  .tour-list {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 0 10px 40px;
  }

  .tour-image {
    height: 200px;
  }

  .price-badge {
    top: 10px;
    right: 10px;
    font-size: 11px;
    padding: 6px 10px;
  }

  .tour-image .trust-line {
    top: 44px;
    right: 10px;
    font-size: 10px;
    padding: 4px 10px;
    max-width: 75%;
  }
}

@media (max-width: 480px) {
  .filter-bar {
    padding: 8px 10px;
  }

  .tour-content {
    padding: 16px 14px 0;
  }

  .tour-actions {
    padding: 0 14px 14px;
  }

  .tour-title {
    font-size: 17px;
  }
}

/* CLEANUP OLD ELEMENTS */
.filter-sidebar,
.mobile-filter-bar,
.mobile-filter-panel,
.vehicle-chips {
  display: none !important;
}
