/*
Theme Name: Thrust Adventure
Description: A child theme of Themify Ultra
Template: themify-ultra
Author: info@thrustadventure.com (info@thrustadventure.com)
*/

/* Woohoo! Let's customize! */

/* =========================
   TOUR TEMPLATE STYLES – Updated & Enhanced
   ========================= */
/* =========================
   TOUR TEMPLATE STYLES – Updated & Enhanced
   ========================= */

.tour-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
  font-family: "Inter", sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #fff;
}

/* Featured Image */
.tour-featured {
  margin-bottom: 2rem;
}
.tour-featured-img {
  width: 100%;
  height: 500px;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.1);
}

/* Header Section */
.tour-header {
  text-align: center;
  margin-bottom: 2.5rem;
}
.tour-title {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #1a1a1a;
}
.tour-excerpt {
  font-size: 1.2rem;
  color: #666;
}

/* Sticky Nav */
.tour-nav {
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 100;
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  padding: 0.5rem 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
.tour-nav a {
  text-decoration: none;
  color: #444;
  font-weight: 500;
  padding: 0.5rem 1rem;
  transition: all 0.2s ease;
  border-radius: 6px;
}
.tour-nav a:hover {
  background: #4F514D;
  color: #fff;
}

/* Section Titles – Modern Style */
.tour-wrapper h2 {
  font-size: 1.85rem;
  margin: 2rem 0 1rem;
  font-weight: 600;
  color: #1a1a1a;
  position: relative;
  padding-left: 0.75rem;
}
.tour-wrapper h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 70%;
  background-color: #fff;
  border-radius: 3px;
}

/* Intro */
.tour-intro-text {
  font-size: 1rem;
  color: #444;
}

/* Tour Facts */
.tour-facts .facts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.2rem;
}
.tour-fact-card {
  background: #fefefe;
  padding: 1rem;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}
.fact-label {
  font-weight: 600;
  color: #111;
}

/* Packages */
.tour-packages ul {
  list-style: disc inside;
  padding-left: 1rem;
}
.tour-packages li {
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

/* Itinerary (Timeline Style) */
.tour-itinerary .itinerary-wrapper {
  border-left: none;
  padding-left: 1.5rem;
  margin-top: 1rem;
  position: relative;
}
.itinerary-wrapper::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 0;
  bottom: 0;
  width: 3px;
  background-color: #000;
}
.itinerary-item {
  position: relative;
  margin-bottom: 1.5rem;
}

.itinerary-item:hover, .tour-fact-card:hover{
  transform: scale(1.04);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}
.timeline-dot {
  position: absolute;
  left: -3px;
  top: 0.3rem;
  width: 14px;
  height: 14px;
  background: #000;
  border-radius: 50%;
}
.timeline-content {
  background: #f9fbff;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  border: none;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.05);
}
.timeline-content .day {
  font-weight: 600;
  color: #111;
}
.timeline-content .activity {
  font-size: 0.95rem;
  color: #444;
}

/* Gallery */
.tour-gallery .gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin: 3rem;
}
.gallery-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
.gallery-img:hover {
  transform: scale(1.04);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .tour-title {
    font-size: 2.2rem;
  }
  .tour-nav {
    flex-wrap: wrap;
    justify-content: center;
  }
  .tour-nav a {
    margin: 0.25rem;
  }
}

/* Sticky Nav */
.tour-nav {
  position: sticky;
  top: 0;
  background: #000;
  z-index: 999;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05); /* Adds slight depth when sticky */
  border-bottom: 1px solid #eaeaea;
}

.tour-nav a {
  text-decoration: none;
  color: #fff;
  font-weight: 700;
  font-size: 18px;
  padding: 0.5rem 1rem;
  border-radius: 6px;
}

.tour-nav a:hover {
  background: #4F514D;
  color: #fff;
}

.fact-label {
  font-weight: 600;
  color: #111;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.fact-label i {
  color: #000;
  min-width: 1rem;
}

/* -----------------------
   Archive Tour Grid Styles
------------------------ */

.tour-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.tour-header {
    text-align: center;
    margin-bottom: 3rem;
}

.tour-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.tour-excerpt {
    font-size: 1.1rem;
    color: #666;
}

.facts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}
/* Single Tour Card */
.tour-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.tour-card:hover {
    transform: translateY(-5px);
}

.tour-image-wrapper {
    position: relative;
    display: block;
}

.tour-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.tour-card:hover .tour-image {
    transform: scale(1.05);
}

.tour-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 60%, transparent 100%);
    color: #fff;
    text-align: left;
    box-sizing: border-box;
}

.tour-duration {
    background: rgba(255, 255, 255, 0.85);
    color: #111;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 5px;
    display: inline-block;
    margin-bottom: 0.5rem;
}

.tour-name {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 0.3rem;
}

.tour-price {
    font-size: 1rem;
    color: #e5e5e5;
    margin-bottom: 1rem;
}

.tour-button {
    background: #fff;
    color: #111;
    padding: 0.4rem 1.1rem;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    display: inline-block;
    transition: background 0.3s ease;
}

.tour-button:hover {
    background: #f2f2f2;
}

.pagination {
    text-align: center;
    margin-top: 3rem;
}

.pagination .page-numbers {
    display: inline-block;
    margin: 0 5px;
    padding: 8px 14px;
    border-radius: 4px;
    background-color: #f2f2f2;
    color: #333;
    text-decoration: none;
}

.pagination .current {
    background-color: #0073aa;
    color: #fff;
}
body.post-type-archive-tour .tour-name {
    color: #fff;
}
/* Lightbox Overlay */
#lightbox-overlay {
    display: none;
    position: fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background: rgba(0,0,0,0.8);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

#lightbox-overlay img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 5px;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

/* Make gallery images clickable */
.gallery-img {
    cursor: pointer;
    transition: transform 0.3s;
    border: 50px;
}

.gallery-img:hover {
    transform: scale(1.05);
}
