/**
 * Destination Taxonomy & Package Archive Stylesheet
 * Theme: JupiterX Child / Inca Trail Peru
 */

/* ==========================================================================
   1. Destination Hero Banner
   ========================================================================== */
.stp-dest-hero {
  position: relative;
  background-color: #16240f;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  color: #ffffff;
  padding: 10.5rem 0 5.5rem;
  min-height: 560px;
  overflow: hidden;
}

.stp-dest-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(5, 20, 12, 0.22) 0%,
    rgba(5, 20, 12, 0.38) 50%,
    rgba(5, 20, 12, 0.68) 100%
  );
  z-index: 1;
}

.stp-dest-hero-content {
  position: relative;
  z-index: 2;
  max-width: 860px;
  margin: 0 auto;
}

.stp-dest-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: none !important;
  color: #34d399;
  border: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 1rem;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}

.stp-dest-badge i {
  color: #34d399;
}

.stp-dest-title {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.15;
  color: #ffffff;
  margin-bottom: 1rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.65);
}

.stp-dest-subtitle {
  font-size: 1.15rem;
  color: #f1f5f9;
  line-height: 1.6;
  margin-bottom: 1.75rem;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
}

.stp-dest-meta-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.stp-dest-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  color: #f8fafc;
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.stp-dest-chip i {
  color: #ffc107;
}

/* ==========================================================================
   2. Trust Highlights Bar
   ========================================================================== */
.stp-dest-trust-bar {
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  padding: 1.25rem 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  position: relative;
  z-index: 3;
}

.stp-trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
}

.stp-trust-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 12px;
  background: #fbf9f4;
  color: #2E7214;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.stp-trust-item:hover .stp-trust-icon {
  background: #223717;
  color: #ffffff;
  transform: translateY(-2px);
}

.stp-trust-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: #223717;
  margin-bottom: 2px;
}

.stp-trust-sub {
  font-size: 0.8rem;
  color: #64748b;
  margin-bottom: 0;
}

/* ==========================================================================
   3. Filter Bar & Breadcrumb
   ========================================================================== */
.stp-dest-subbar {
  padding: 1.5rem 0;
}

.stp-dest-breadcrumb {
  font-size: 0.85rem;
  color: #64748b;
  margin-bottom: 0;
}

.stp-dest-breadcrumb a {
  color: #0284c7;
  text-decoration: none;
}

.stp-dest-breadcrumb a:hover {
  text-decoration: underline;
}

.stp-dest-counter-pill {
  background: #e0f2fe;
  color: #0369a1;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 20px;
}

/* ==========================================================================
   3.5. Destination Overview (ACF Text + Image)
   ========================================================================== */
.stp-dest-overview-section {
  background: #ffffff;
  padding: 4rem 0 3.5rem;
  border-bottom: 1px solid #f1ece1;
}

.stp-dest-overview-content {
  max-width: 100%;
}

.stp-dest-overview-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 700;
  color: #2E7214;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.85rem;
}

.stp-dest-overview-heading {
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.25;
  color: #223717;
  margin-bottom: 1.35rem;
  position: relative;
  padding-bottom: 14px;
}

.stp-dest-overview-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 4px;
  background: #2E7214;
  border-radius: 2px;
}

.stp-dest-overview-body {
  color: #475569;
  font-size: 1.05rem;
  line-height: 1.8;
}

.stp-dest-overview-body p {
  margin-bottom: 1.15rem;
}

.stp-dest-overview-body p:last-child {
  margin-bottom: 0;
}

.stp-overview-pill {
  display: inline-flex;
  align-items: center;
  background: #fbf9f4;
  border: 1px solid #e8e2d5;
  color: #223717;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 30px;
  transition: all 0.25s ease;
}

.stp-overview-pill:hover {
  background: #f0ebe1;
  border-color: #2E7214;
}

.stp-dest-overview-media {
  position: relative;
}

.stp-overview-img-wrapper {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.12);
  border: 4px solid #ffffff;
}

.stp-overview-img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  display: block;
}

.stp-overview-img-wrapper:hover .stp-overview-img {
  transform: scale(1.04);
}

.stp-overview-floating-tag {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: rgba(22, 36, 15, 0.88);
  backdrop-filter: blur(8px);
  color: #ffffff;
  padding: 8px 18px;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.2);
  z-index: 2;
}

/* ==========================================================================
   4. Tour Packages Grid
   ========================================================================== */
.stp-dest-tours-section {
  padding: 4rem 0;
  background: #fbf9f4;
}

.stp-dest-tours-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #2E7214;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
}

.stp-dest-tour-col {
  display: flex;
}

.stp-dest-tour-col .example-2.card-tour {
  width: 100%;
  display: flex;
  flex-direction: column;
}

/* ==========================================================================
   5. Destination In-Depth Guide & Quick Facts
   ========================================================================== */
.stp-dest-guide-section {
  background: #ffffff;
  padding: 4rem 0;
  border-top: 1px solid #e8e2d5;
  border-bottom: 1px solid #e8e2d5;
}

.stp-dest-guide-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 2.5rem;
  border: 1px solid #e8e2d5;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.stp-dest-guide-title {
  font-size: 1.85rem;
  font-weight: 800;
  color: #223717;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 12px;
}

.stp-dest-guide-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 4px;
  background: #2E7214;
  border-radius: 2px;
}

.stp-dest-guide-body {
  color: #3c4a35;
  font-size: 1.05rem;
  line-height: 1.75;
}

.stp-dest-guide-body p {
  margin-bottom: 1.25rem;
}

.stp-dest-guide-body h2,
.stp-dest-guide-body h3 {
  color: #223717;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

/* Quick Facts Sidebar Card */
.stp-dest-facts-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 2rem;
  border: 1px solid #e8e2d5;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  position: sticky;
  top: 100px;
}

.stp-facts-header {
  font-size: 1.25rem;
  font-weight: 800;
  color: #223717;
  margin-bottom: 1.25rem;
  padding-bottom: 10px;
  border-bottom: 2px solid #e8e2d5;
}

.stp-fact-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px dashed #e8e2d5;
}

.stp-fact-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.stp-fact-icon {
  width: 38px;
  height: 38px;
  min-width: 38px;
  border-radius: 10px;
  background: #edf7eb;
  color: #2E7214;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.stp-fact-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #6b7c62;
  font-weight: 600;
  margin-bottom: 2px;
}

.stp-fact-value {
  font-size: 0.95rem;
  font-weight: 700;
  color: #223717;
  margin-bottom: 0;
}

/* ==========================================================================
   6. Concierge WhatsApp & Custom Trip CTA
   ========================================================================== */
.stp-dest-cta-section {
  background: linear-gradient(135deg, #16240f 0%, #223717 60%, #2E7214 100%);
  color: #ffffff;
  padding: 4.5rem 0;
  position: relative;
  overflow: hidden;
}

.stp-dest-cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(46, 114, 20, 0.25) 0%, rgba(46, 114, 20, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
}

.stp-dest-cta-card {
  position: relative;
  z-index: 2;
}

.stp-dest-cta-title {
  font-size: 2.25rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 1rem;
}

.stp-dest-cta-text {
  font-size: 1.1rem;
  color: #94a3b8;
  max-width: 650px;
  margin: 0 auto 2rem;
  line-height: 1.65;
}

.btn-whatsapp-cta {
  background: #25d366;
  color: #ffffff;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 14px 32px;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.35);
  transition: all 0.3s ease;
}

.btn-whatsapp-cta:hover {
  background: #20ba5a;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(37, 211, 102, 0.45);
}

.btn-contact-alt {
  background: transparent;
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.3);
  font-weight: 700;
  font-size: 1.05rem;
  padding: 12px 28px;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-contact-alt:hover {
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

/* ==========================================================================
   7. Other Destinations Explorer
   ========================================================================== */
.stp-dest-other-section {
  padding: 4rem 0;
  background: #ffffff;
}

.stp-dest-mini-card {
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  height: 220px;
  display: block;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

.stp-dest-mini-card:hover {
  transform: translateY(-4px);
}

.stp-dest-mini-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.stp-dest-mini-card:hover img {
  transform: scale(1.05);
}

.stp-dest-mini-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.75) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.25rem;
  color: #ffffff;
}

.stp-dest-mini-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 4px;
}

.stp-dest-mini-count {
  font-size: 0.8rem;
  color: #f1f5f9;
  opacity: 0.9;
}

/* ==========================================================================
   8. Responsive Adaptations
   ========================================================================== */
@media (max-width: 991.98px) {
  .stp-dest-hero {
    padding: 8.5rem 0 4.5rem;
    min-height: 480px;
  }
  .stp-dest-title {
    font-size: 2.3rem;
  }
  .stp-dest-overview-section {
    padding: 3rem 0;
  }
  .stp-dest-overview-heading {
    font-size: 1.85rem;
  }
  .stp-overview-img {
    height: 340px;
  }
  .stp-dest-facts-card {
    margin-top: 1rem;
    position: static;
  }
}

@media (max-width: 767.98px) {
  .stp-dest-hero {
    padding: 7.5rem 0 4rem;
    min-height: 420px;
  }
  .stp-dest-title {
    font-size: 1.85rem;
  }
  .stp-dest-subtitle {
    font-size: 0.95rem;
  }
  .stp-dest-overview-section {
    padding: 2.5rem 0;
  }
  .stp-dest-overview-heading {
    font-size: 1.55rem;
  }
  .stp-dest-overview-body {
    font-size: 0.98rem;
  }
  .stp-overview-img {
    height: 260px;
  }
  .stp-dest-guide-card {
    padding: 1.5rem;
  }
  .stp-dest-cta-title {
    font-size: 1.65rem;
  }
}
