/* =============================================
   TOURS LISTING PAGE
   ============================================= */

/* --- CSS Variables --- */
:root {
  --olive: #8a8f3d;
  --olive-dark: #6d7230;
  --olive-light: #a5ab52;
  --gold: #b8a44c;
  --navy: #1a1a2e;
  --text-dark: #1a1a2e;
  --text-muted: #5a5f6d;
  --bg-white: #ffffff;
  --bg-light: #f8f9f6;
  --shadow-card: 0 2px 16px rgba(0, 0, 0, 0.06);
  --shadow-card-hover: 0 12px 40px rgba(0, 0, 0, 0.12);
  --radius: 8px;
  --radius-lg: 12px;
}

/* --- Base --- */
.tours-page {
  font-family: 'Poppins', sans-serif;
  color: var(--text-dark);
  background: var(--bg-white);
  overflow-x: hidden;
}

.tours-page img {
  display: block;
  max-width: 100%;
}

.tours-page a {
  text-decoration: none;
  color: inherit;
}

/* =============================================
   HERO BANNER
   ============================================= */
.tours-hero {
  position: relative;
  width: 100%;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.tours-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.tours-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  transition: transform 8s ease-out;
}

.tours-hero:hover .tours-hero-bg img {
  transform: scale(1.0);
}

.tours-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.55) 100%);
  z-index: 1;
}

.tours-hero-content {
  position: relative;
  z-index: 2;
  padding: 2rem 1.5rem;
}

.tours-hero-title {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 0.6rem;
  line-height: 1.15;
  letter-spacing: 0.01em;
}

.tours-hero-subtitle {
  font-family: 'Poppins';
  font-size: clamp(0.95rem, 1.8vw, 1.2rem);
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0 1.2rem;
  font-weight: 300;
  letter-spacing: 0.06em;
}

.tours-hero-line {
  display: inline-block;
  width: 50px;
  height: 2px;
  background: var(--olive-light);
  border-radius: 1px;
}

/* =============================================
   SECTION INTRO
   ============================================= */
.tours-intro {
  text-align: center;
  padding: 4rem 1.5rem 2.5rem;
  max-width: 820px;
  margin: 0 auto;
}

.tours-intro-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: var(--olive);
  letter-spacing: 0.08em;
  font-weight: 500;
  margin-bottom: 0.8rem;
}

.tours-intro-tag svg {
  width: 14px;
  height: 14px;
}

.tours-intro-heading {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  color: var(--text-dark);
  margin: 0 0 0.5rem;
  line-height: 1.2;
}

.tours-intro-sub {
  font-size: 1rem;
  color: var(--olive);
  font-style: italic;
  margin: 0 0 1.2rem;
  font-weight: 400;
}

.tours-intro-desc {
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto;
}

/* =============================================
   FILTER BAR
   ============================================= */
.tours-filter {
  padding: 0 1.5rem 2rem;
  max-width: 1280px;
  margin: 0 auto;
}

.tours-filter-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.tours-filter-select {
  position: relative;
  min-width: 200px;
}

.tours-filter-select select {
  width: 100%;
  padding: 0.75rem 2.5rem 0.75rem 1rem;
  font-family: 'Poppins', sans-serif;
  font-size: 0.85rem;
  color: var(--text-dark);
  background: var(--bg-white);
  border: 1.5px solid #d9dce2;
  border-radius: var(--radius);
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.tours-filter-select select:focus {
  outline: none;
  border-color: var(--olive);
  box-shadow: 0 0 0 3px rgba(138, 143, 61, 0.12);
}

.tours-filter-select::after {
  content: '';
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid var(--text-muted);
  pointer-events: none;
}

/* =============================================
   TOUR CARDS GRID
   ============================================= */
.tours-grid-section {
  padding: 0 1.5rem 3rem;
  max-width: 1280px;
  margin: 0 auto;
}

.tours-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

@media (max-width: 960px) {
  .tours-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .testi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .tours-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .testi-grid {
    grid-template-columns: 1fr;
  }
}

/* --- Tour Card --- */
.tours-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.tours-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-card-hover);
}

.tours-card-img-wrap {
  position: relative;
  aspect-ratio: 16 / 11;
  overflow: hidden;
}

.tours-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.tours-card:hover .tours-card-img-wrap img {
  transform: scale(1.06);
}

.tours-card-tag {
  position: absolute;
  bottom: 0.75rem;
  left: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 0.35rem 0.7rem;
  border-radius: 20px;
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--olive-dark);
  letter-spacing: 0.03em;
}

.tours-card-tag svg {
  width: 12px;
  height: 12px;
  color: var(--olive);
}

.tours-card-body {
  padding: 1.2rem 1.25rem 1.3rem;
}

.tours-card-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-dark);
  margin: 0 0 0.45rem;
  line-height: 1.3;
}

.tours-card-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.tours-card-title a:hover {
  color: var(--olive);
}

.tours-card-img-wrap {
  display: block;
  text-decoration: none;
  color: inherit;
}

.tours-card-desc {
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0 0 0.9rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tours-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--olive);
  transition: color 0.2s ease, gap 0.2s ease;
}

.tours-card-link:hover {
  color: var(--olive-dark);
  gap: 0.5rem;
}

/* --- Loading skeleton --- */
.tours-card-skeleton {
  background: #f0f0f0;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.tours-card-skeleton .skel-img {
  aspect-ratio: 16 / 11;
  background: linear-gradient(90deg, #e8e8e8 25%, #f0f0f0 50%, #e8e8e8 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

.tours-card-skeleton .skel-body {
  padding: 1.2rem 1.25rem 1.3rem;
}

.tours-card-skeleton .skel-line {
  height: 12px;
  border-radius: 6px;
  background: linear-gradient(90deg, #e8e8e8 25%, #f0f0f0 50%, #e8e8e8 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  margin-bottom: 0.6rem;
}

.tours-card-skeleton .skel-line:last-child {
  width: 40%;
}

@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* --- Empty state --- */
.tours-empty {
  text-align: center;
  padding: 4rem 1.5rem;
  grid-column: 1 / -1;
}

.tours-empty svg {
  width: 56px;
  height: 56px;
  color: #ccc;
  margin-bottom: 1rem;
}

.tours-empty-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  color: var(--text-dark);
  margin: 0 0 0.4rem;
}

.tours-empty-text {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* =============================================
   PAGINATION
   ============================================= */
.tours-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 1.5rem 4rem;
}

.tours-page-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid #d9dce2;
  background: var(--bg-white);
  color: var(--text-dark);
  font-family: 'Poppins', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
}

.tours-page-btn:hover:not(.tours-page-active):not(:disabled) {
  border-color: var(--olive);
  color: var(--olive);
}

.tours-page-btn.tours-page-active {
  background: var(--olive);
  border-color: var(--olive);
  color: #ffffff;
  font-weight: 600;
}

.tours-page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.tours-page-next {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid #d9dce2;
  background: var(--bg-white);
  color: var(--text-dark);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
}

.tours-page-next:hover:not(:disabled) {
  border-color: var(--olive);
  color: var(--olive);
}

.tours-page-next:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.tours-page-next svg {
  width: 16px;
  height: 16px;
}

/* =============================================
   TRANSITIONS FOR CARD RE-RENDER
   ============================================= */
.tours-card-enter {
  opacity: 0;
  transform: translateY(20px);
}

.tours-card-enter-active {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

/* =============================================
   TESTIMONIALS SECTION
   ============================================= */
.testi-section {
  background: linear-gradient(170deg, #0d2a3a 0%, #0b1f2e 40%, #0e2940 100%);
  padding: 5rem 1.5rem 5.5rem;
  position: relative;
  overflow: hidden;
}

.testi-section::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -120px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(184, 164, 76, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.testi-section::after {
  content: '';
  position: absolute;
  bottom: -60px;
  left: -80px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(142, 182, 155, 0.07) 0%, transparent 70%);
  pointer-events: none;
}

.testi-container {
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.testi-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.testi-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--olive-light);
  margin-bottom: 0.75rem;
}

.testi-heading {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 0.6rem;
  line-height: 1.2;
}

.testi-sub {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.45);
  margin: 0 0 1.4rem;
  font-weight: 300;
}

.testi-line {
  display: inline-block;
  width: 50px;
  height: 2px;
  background: linear-gradient(90deg, var(--olive), var(--gold));
  border-radius: 1px;
}

.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.testi-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem 1.75rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.4s ease,
              background 0.4s ease;
}

.testi-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.25);
  border-color: rgba(184, 164, 76, 0.18);
  background: rgba(255, 255, 255, 0.06);
}

.testi-stars {
  display: flex;
  gap: 3px;
  margin-bottom: 1.2rem;
}

.testi-stars svg {
  width: 16px;
  height: 16px;
  color: var(--gold);
}

.testi-quote {
  font-family: 'Playfair Display', serif;
  font-size: 0.95rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.72);
  margin: 0 0 1.5rem;
  flex: 1;
  font-style: italic;
}

.testi-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.testi-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--olive), var(--gold));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

.testi-name {
  font-family: 'Poppins', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.01em;
}

/* =============================================
   MOBILE RESPONSIVE
   ============================================= */
@media (max-width: 640px) {
  .tours-hero {
    min-height: 55vh;
  }

  .tours-intro {
    padding: 3rem 1.25rem 2rem;
  }

  .tours-filter {
    padding: 0 1.25rem 1.5rem;
  }

  .tours-filter-row {
    flex-direction: column;
  }

  .tours-filter-select {
    min-width: 0;
    width: 100%;
  }

  .tours-grid-section {
    padding: 0 1.25rem 2rem;
  }

  .tours-page-btn,
  .tours-page-next {
    width: 36px;
    height: 36px;
    font-size: 0.78rem;
  }

  .testi-section {
    padding: 3.5rem 1.25rem 4rem;
  }

  .testi-card {
    padding: 1.5rem 1.3rem 1.4rem;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .tours-card {
    transition: none;
  }
  .tours-card:hover {
    transform: none;
  }
  .tours-card-img-wrap img {
    transition: none;
  }
  .tours-card:hover .tours-card-img-wrap img {
    transform: none;
  }
  .tours-hero-bg img {
    transition: none;
  }
  .tours-hero:hover .tours-hero-bg img {
    transform: none;
  }
  .testi-card {
    transition: none;
  }
  .testi-card:hover {
    transform: none;
  }
}
