/* Tours Page — Global Booking Site Layout */
.tours-results-section {
  background: linear-gradient(180deg, #f4f6fa 0%, #eef1f7 100%);
  padding: 50px 0 90px;
  min-height: 60vh;
}

.tours-layout {
  display: grid;
  grid-template-columns: 295px 1fr;
  gap: 30px;
  align-items: start;
}

/* ===== Sidebar ===== */
.tours-sidebar {
  position: sticky;
  top: 150px;
}

.filters-form {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.07);
  border: 1px solid rgba(234, 185, 117, 0.2);
  overflow: hidden;
}

.sidebar-widget {
  padding: 22px 22px 18px;
  border-bottom: 1px solid #f0f1f5;
}

.sidebar-widget:last-of-type {
  border-bottom: none;
}

.widget-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-color);
  margin: 0 0 14px;
}

.widget-title i {
  color: var(--primary-dark);
  font-size: 18px;
}

/* Category options */
.cat-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cat-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.cat-option:hover {
  background: #f8f6f1;
}

.cat-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.cat-option.active {
  background: linear-gradient(135deg, rgba(234, 185, 117, 0.18), rgba(217, 18, 0, 0.08));
  border: 1px solid rgba(234, 185, 117, 0.55);
}

.cat-option.active .cat-name {
  color: var(--primary-dark);
  font-weight: 700;
}

.cat-thumb {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.cat-name {
  flex: 1;
  font-size: 14px;
  color: #444;
}

.cat-count {
  font-size: 11.5px;
  font-weight: 700;
  color: #999;
  background: #f1f2f6;
  padding: 2px 9px;
  border-radius: 12px;
}

.cat-option.active .cat-count {
  background: var(--primary-color);
  color: #fff;
}

/* Price range */
.price-inputs {
  display: flex;
  gap: 10px;
}

.price-input {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.price-input span {
  font-size: 12px;
  color: #888;
  font-weight: 600;
}

.price-input input {
  border: 1.5px solid #e4e7ee;
  border-radius: 10px;
  padding: 10px 12px;
  font-family: "IBM Plex Sans Arabic", sans-serif;
  font-size: 14px;
  color: var(--text-color);
  background: #f8f9fc;
  transition: all 0.25s ease;
}

.price-input input:focus {
  outline: none;
  border-color: var(--primary-color);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(234, 185, 117, 0.18);
}

/* Featured checkbox */
.check-option {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 14px;
  color: #444;
}

.check-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.check-box {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  border: 1.5px solid #d5d9e2;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
  flex-shrink: 0;
  color: transparent;
  font-size: 14px;
}

.check-option input:checked + .check-box {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  border-color: transparent;
  color: #fff;
}

/* Filter buttons */
.btn-apply-filters {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: calc(100% - 44px);
  margin: 18px 22px 10px;
  padding: 13px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: #fff;
  border: none;
  border-radius: 12px;
  font-family: "IBM Plex Sans Arabic", sans-serif;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 6px 18px rgba(217, 18, 0, 0.3);
}

.btn-apply-filters:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(217, 18, 0, 0.4);
}

.btn-reset-filters {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0 22px 22px;
  padding: 10px;
  color: #888;
  text-decoration: none;
  font-size: 13.5px;
  border-radius: 10px;
  transition: all 0.25s ease;
}

.btn-reset-filters:hover {
  color: var(--primary-dark);
  background: #faf5ec;
}

/* ===== Results toolbar ===== */
.tours-main {
  min-width: 0;
}

.results-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(234, 185, 117, 0.25);
  border-radius: 16px;
  padding: 16px 24px;
  margin-bottom: 28px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);

  top: 145px;
  z-index: 40;
}

.results-info h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-color);
  margin: 0 0 4px;
}

.results-info p {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-size: 13.5px;
  color: #888;
}

.results-info p i {
  color: var(--primary-dark);
}

.sort-form {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sort-form label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 600;
  color: #666;
  white-space: nowrap;
}

.sort-form label i {
  color: var(--primary-dark);
  font-size: 17px;
}

.sort-form select {
  border: 1.5px solid #e4e7ee;
  border-radius: 10px;
  padding: 9px 14px;
  font-family: "IBM Plex Sans Arabic", sans-serif;
  font-size: 13.5px;
  color: var(--text-color);
  background: #fff;
  cursor: pointer;
  transition: all 0.25s ease;
}

.sort-form select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(234, 185, 117, 0.18);
}

/* ===== Tours grid ===== */
.tours-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 26px;
}

.tour-list-card {
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.07);
  border: 1px solid rgba(234, 185, 117, 0.15);
  transition: all 0.35s ease;
  display: flex;
  flex-direction: column;
}

.tour-list-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 45px rgba(234, 185, 117, 0.22);
  border-color: var(--primary-color);
}

.tour-list-card .tour-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.tour-list-card .tour-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

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

.badge {
  position: absolute;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  backdrop-filter: blur(6px);
}

.badge-featured {
  top: 12px;
  right: 12px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: #fff;
  box-shadow: 0 4px 12px rgba(217, 18, 0, 0.35);
}

.badge-category {
  bottom: 12px;
  right: 12px;
  background: rgba(20, 20, 43, 0.75);
  color: #fff;
}

.tour-like {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.9);
  color: #666;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.tour-like:hover {
  transform: scale(1.12);
  color: var(--primary-dark);
}

.tour-like.liked {
  color: #e0245e;
}

.tour-like.liked i::before {
  content: "\f415";
}

/* Card body */
.tour-body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.tour-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tour-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 600;
  color: #7a5c2e;
  background: #faf3e6;
  border: 1px solid rgba(234, 185, 117, 0.4);
  padding: 4px 10px;
  border-radius: 8px;
}

.tour-tag i {
  font-size: 13px;
  color: var(--primary-dark);
}

.tour-title {
  font-size: 17px;
  font-weight: 700;
  margin: 0;
  line-height: 1.5;
}

.tour-title a {
  color: var(--text-color);
  text-decoration: none;
  transition: color 0.25s ease;
}

.tour-title a:hover {
  color: var(--primary-dark);
}

.tour-desc {
  font-size: 13px;
  color: #777;
  line-height: 1.7;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.tour-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px dashed #eee;
}

.tour-price {
  display: flex;
  align-items: baseline;
  gap: 2px;
}

.price-currency {
  font-size: 15px;
  font-weight: 700;
  color: var(--primary-dark);
}

.price-value {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-color);
  line-height: 1;
}

.price-note {
  font-size: 11.5px;
  color: #999;
  margin-right: 4px;
}

.btn-tour-details {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 9px 18px;
  border-radius: 10px;
  border: 1.5px solid var(--primary-color);
  color: var(--primary-dark);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.btn-tour-details i {
  transition: transform 0.3s ease;
}

.btn-tour-details:hover {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 6px 16px rgba(217, 18, 0, 0.3);
}

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

/* ===== Empty state ===== */
.no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 20px;
  background: #fff;
  border-radius: 18px;
  border: 1px dashed #ddd;
}

.no-results-icon {
  width: 90px;
  height: 90px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(234, 185, 117, 0.2), rgba(217, 18, 0, 0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 42px;
  color: var(--primary-dark);
}

.no-results h3 {
  font-size: 22px;
  margin-bottom: 8px;
}

.no-results p {
  color: #888;
  margin-bottom: 24px;
}

.btn-reset {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: #fff;
  text-decoration: none;
  border-radius: 12px;
  font-weight: 700;
  font-size: 14px;
  transition: all 0.3s ease;
  box-shadow: 0 6px 18px rgba(217, 18, 0, 0.3);
}

.btn-reset:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(217, 18, 0, 0.4);
}

/* ===== Responsive ===== */
@media (max-width: 1100px) {
  .tours-layout {
    grid-template-columns: 1fr;
  }

  .tours-sidebar {
    position: static;
  }

  .filters-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0;
  }

  .sidebar-widget {
    border-bottom: none;
    border-left: 1px solid #f0f1f5;
  }

  .cat-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 6px;
  }

  .btn-apply-filters {
    width: auto;
    margin: 10px 22px;
    grid-column: 1 / -1;
  }

  .btn-reset-filters {
    margin: 0 22px 18px;
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .tours-results-section {
    padding: 30px 0 60px;
  }

  .results-toolbar {
    position: static;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }

  .sort-form {
    justify-content: space-between;
  }

  .tours-grid {
    grid-template-columns: 1fr;
  }

  .results-info h2 {
    font-size: 19px;
  }
}
