.tour-listing-page,
.tour-detail-page {
  background: #f5f7fb;
  color: #293344;
  overflow-x: hidden;
}

.tour-listing-page .page-header,
.tour-detail-page .page-header {
  position: relative;
  min-height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.tour-listing-page .page-header::before,
.tour-detail-page .page-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10, 18, 31, 0.74), rgba(10, 18, 31, 0.2));
}

.tour-listing-page .page-header .container,
.tour-detail-page .page-header .container {
  position: relative;
  z-index: 1;
}

.tour-listing-page .page-header h1,
.tour-detail-page .page-header h1,
.tour-listing-page .page-header h2,
.tour-detail-page .page-header h2 {
  color: #fff;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 800;
  font-size: clamp(2.2rem, 4vw, 4rem);
  margin: 0;
}

.tour-listing-page .page-header p {
  max-width: 640px;
  margin: 14px auto 0;
  color: rgba(255,255,255,0.84);
  line-height: 1.7;
  text-align: center;
}

.listing-hero-kicker {
  display: block;
  margin-bottom: 14px;
  color: #ffb6b8;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-align: center;
  text-transform: uppercase;
}

.tour-listing-page .listing-wrapper,
.tour-detail-page .main-content-area {
  padding: 60px 0 80px;
}

.listing-intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 34px;
}

.listing-intro h2 {
  margin: 0;
  color: #1d2a3b;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
}

.listing-intro p {
  max-width: 520px;
  margin: 0;
  color: #697a8d;
  line-height: 1.8;
}

.listing-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid rgba(26, 43, 72, 0.08);
  border-radius: 16px;
  background: rgba(255,255,255,0.82);
  box-shadow: 0 8px 20px rgba(13, 24, 40, 0.03);
}

.listing-toolbar > div:first-child {
  margin-right: auto;
}

.results-kicker {
  display: block;
  color: #8a98a8;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.listing-toolbar strong {
  color: #1d2a3b;
  font-size: 1.1rem;
}

.listing-sort {
  display: flex;
  align-items: center;
  gap: 8px;
}

.listing-sort label {
  color: #697a8d;
  font-size: 12px;
  font-weight: 700;
}

.listing-sort select {
  height: 40px;
  padding: 0 12px;
  border: 1px solid rgba(26, 43, 72, 0.12);
  border-radius: 10px;
  background: #fff;
  color: #1d2a3b;
}

.filter-sidebar {
  background: #fff;
  border: 1px solid rgba(26, 43, 72, 0.08);
  border-radius: 18px;
  padding: 24px 22px;
  box-shadow: 0 12px 24px rgba(13, 24, 40, 0.04);
  position: sticky;
  top: 110px;
}

.filter-sidebar h3 {
  font-size: 28px;
  color: #1d2a3b;
  margin-bottom: 24px;
}

.filter-help {
  margin: -12px 0 22px;
  color: #697a8d;
  font-size: 13px;
  line-height: 1.6;
}

.listing-quick-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: #697a8d;
  font-size: 13px;
}

.listing-quick-links a {
  padding: 7px 12px;
  border: 1px solid rgba(26, 43, 72, 0.1);
  border-radius: 999px;
  background: #fff;
  color: #1d2a3b;
  font-weight: 700;
}

.listing-quick-links a:hover {
  border-color: rgba(255, 90, 95, 0.35);
  color: #ff5a5f;
}

.filter-group {
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(26, 43, 72, 0.08);
  margin-bottom: 20px;
}

.filter-group h4 {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ff5a5f;
  margin-bottom: 14px;
}

.filter-group label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #48576a;
  margin-bottom: 10px;
  cursor: pointer;
}

.filter-group input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #ff5a5f;
}

.budget-filter {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  border: 1px solid rgba(26, 43, 72, 0.12);
  border-radius: 10px;
  background: #fff;
  color: #48576a;
}

.filter-sidebar .apply-button,
.tour-booking-form .book-now-button,
.hero-search-submit,
.newsletter-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: linear-gradient(135deg, #ff5a5f, #e9383d);
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 10px 24px rgba(255, 90, 95, 0.22);
}

.filter-sidebar .apply-button {
  width: 100%;
  padding: 16px 18px;
  font-size: 12px;
}

.clear-sidebar-button {
  width: 100%;
  margin-top: 10px;
  padding: 10px 18px;
  border: 0;
  background: transparent;
  color: #697a8d;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.clear-sidebar-button:hover {
  color: #ff5a5f;
}

.filter-sidebar .apply-button:hover,
.tour-booking-form .book-now-button:hover,
.hero-search-submit:hover,
.newsletter-form button:hover {
  transform: translateY(-1px);
}

.tour-list-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.listing-keyword {
  display: flex;
  align-items: center;
  gap: 8px;
}

.listing-keyword label {
  color: #697a8d;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.listing-keyword input {
  width: 170px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid rgba(26, 43, 72, 0.12);
  border-radius: 10px;
  color: #1d2a3b;
}

.listing-reset {
  height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(255, 90, 95, 0.25);
  border-radius: 10px;
  background: rgba(255, 90, 95, 0.06);
  color: #ff5a5f;
  font-weight: 700;
  cursor: pointer;
}

.active-filter-summary {
  min-height: 20px;
  margin: 14px 0 18px;
  color: #697a8d;
  font-size: 13px;
}

.tour-card-panel {
  overflow: hidden;
  border: 1px solid rgba(26, 43, 72, 0.08);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 14px 28px rgba(13, 24, 40, 0.05);
  animation: listingCardIn 0.35s ease both;
}

@keyframes listingCardIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.tour-card-panel .tour-card-image {
  position: relative;
  aspect-ratio: 16 / 11;
  overflow: hidden;
}

.tour-card-panel .tour-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.tour-card-panel:hover .tour-card-image img {
  transform: scale(1.04);
}

.tour-card-panel .tour-card-badge {
  position: absolute;
  left: 18px;
  top: 18px;
  background: rgba(255, 90, 95, 0.95);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 7px 12px;
  border-radius: 999px;
}

.tour-card-panel .tour-card-body {
  padding: 22px 20px 18px;
}

.tour-card-panel .tour-card-title {
  margin: 0 0 14px;
  font-size: 1.35rem;
  line-height: 1.4;
  font-weight: 700;
  color: #1d2a3b;
}

.tour-card-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: -4px 0 12px;
  color: #e8a827;
  font-size: 13px;
  font-weight: 800;
}

.tour-card-rating span {
  color: #8a98a8;
  font-size: 11px;
  font-weight: 500;
}

.tour-card-panel .tour-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: #697a8d;
  font-size: 13px;
  margin-bottom: 12px;
}

.tour-card-panel .tour-card-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.tour-card-panel .tour-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-top: 1px solid rgba(26, 43, 72, 0.08);
  padding-top: 14px;
  margin-top: 14px;
}

.tour-card-panel .price-label {
  color: #697a8d;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.tour-card-panel .price-value {
  color: #ff5a5f;
  font-size: 1.8rem;
  font-weight: 800;
}

.tour-card-panel .card-action {
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 90, 95, 0.3);
  background: rgba(255, 90, 95, 0.06);
  color: #ff5a5f;
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.empty-results {
  display: flex;
  grid-column: 1 / -1;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 34px;
  border: 1px dashed rgba(26, 43, 72, 0.18);
  border-radius: 18px;
  background: #fff;
  color: #697a8d;
  line-height: 1.7;
}

.empty-results strong {
  color: #1d2a3b;
  font-size: 1.2rem;
}

.empty-results a {
  color: #ff5a5f;
  font-weight: 800;
}

.listing-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 32px;
  color: #8a98a8;
  font-size: 12px;
}

.pagination-button {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(26, 43, 72, 0.12);
  border-radius: 10px;
  background: #fff;
  color: #1d2a3b;
  font-weight: 800;
}

.pagination-button.active {
  border-color: #ff5a5f;
  background: #ff5a5f;
  color: #fff;
}

.tour-detail-page .tour-hero {
  padding: 34px 0 0;
}

.tour-detail-page .tour-gallery-main {
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 18px 36px rgba(13, 24, 40, 0.08);
  background: #fff;
}

.tour-detail-page .tour-gallery-main img {
  width: 100%;
  max-height: 660px;
  object-fit: cover;
}

.tour-detail-page .tour-title {
  font-size: clamp(2rem, 3.2vw, 3.2rem);
  font-weight: 800;
  color: #18273d;
  margin-bottom: 18px;
}

.tour-detail-page .tour-content {
  padding-right: 10px;
}

.tour-detail-page .tour-content p,
.tour-detail-page .tour-content li {
  color: #4f5d72;
  font-size: 1.02rem;
  line-height: 1.9;
}

.tour-detail-page .tour-content ul {
  padding-left: 22px;
  margin-top: 12px;
}

.tour-detail-page .tour-booking-panel {
  background: #fff;
  border: 1px solid rgba(26, 43, 72, 0.08);
  border-radius: 22px;
  padding: 22px;
  box-shadow: 0 16px 30px rgba(13, 24, 40, 0.06);
  position: sticky;
  top: 110px;
}

.tour-detail-page .tour-price-box {
  padding: 18px 16px;
  border-radius: 16px;
  background: linear-gradient(135deg, #f8fbff, #eef5ff);
  border: 1px solid rgba(93, 124, 199, 0.12);
  margin-bottom: 18px;
}

.tour-detail-page .tour-price-box .price-from {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #5c6f87;
}

.tour-detail-page .tour-price-box .price-amount {
  font-size: 2.3rem;
  font-weight: 800;
  color: #ff5a5f;
}

.tour-detail-page .tour-booking-form .form-group {
  margin-bottom: 16px;
}

.tour-detail-page .tour-booking-form label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #5b6d82;
  margin-bottom: 8px;
}

.tour-detail-page .tour-booking-form input,
.tour-detail-page .tour-booking-form select,
.hero-search-field input,
.hero-search-field select {
  width: 100%;
  height: 48px;
  border: 1px solid rgba(26, 43, 72, 0.12);
  border-radius: 12px;
  padding: 0 16px;
  background: #fff;
  color: #1d2a3b;
  outline: none;
}

.tour-detail-page .tour-booking-form .book-now-button {
  width: 100%;
  height: 54px;
  font-size: 12px;
}

@media (max-width: 991px) {
  .tour-list-grid {
    grid-template-columns: 1fr;
  }

  .filter-sidebar {
    position: static;
    margin-bottom: 24px;
  }

  .tour-detail-page .tour-booking-panel {
    position: static;
    margin-top: 24px;
  }

  .listing-keyword {
    width: 100%;
  }

  .listing-keyword input {
    flex: 1;
  }

  @media (max-width: 640px) {
    .tour-listing-page .listing-wrapper .row {
      margin-left: 0;
      margin-right: 0;
    }

    .tour-listing-page .listing-wrapper [class*="col-"] {
      padding-left: 0;
      padding-right: 0;
    }

    .tour-listing-page .page-header {
      min-height: 390px;
      padding: 54px 18px;
    }

    .tour-listing-page .page-header h1 {
      font-size: clamp(2.1rem, 12vw, 3.5rem);
      line-height: 1.05;
    }

    .tour-listing-page .page-header p {
      font-size: 0.98rem;
    }

    .listing-intro {
      display: block;
    }

    .listing-intro p {
      margin-top: 14px;
    }

    .listing-quick-links {
      align-items: flex-start;
    }

    .listing-toolbar {
      align-items: stretch;
      flex-direction: column;
    }

    .listing-toolbar > div:first-child {
      margin-right: 0;
    }

    .listing-keyword,
    .listing-sort,
    .listing-reset {
      width: 100%;
    }

    .listing-sort select,
    .listing-keyword input {
      flex: 1;
      min-width: 0;
      max-width: 100%;
      box-sizing: border-box;
    }
  }
}
