/*
 * single-tour.css
 * Custom styles for the single tour page (single-tour.php)
 * Responsive, modern, and matches the provided Figma/screenshot design
 */

/* Hero Section */
.tour-hero {
  position: relative;
  width: 100%;
  padding: 0 20px;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  overflow: hidden;
  background-color: #161616;
}

 @media (max-width: 768px) {
    .tour-hero {
        padding: 0 10px;
    }
 }
.tour-hero-bg {
  min-height: 400px;
  border-radius: 57px;
  width: 100%;
  overflow: hidden;
  display: flex;
  position: relative;
  z-index: 2;
  background-size: cover;
  background-position: center center;
}

.tour-hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  max-width: 100%;
  background: linear-gradient(180deg,rgba(0,0,0,0.3) 0%,rgba(0,0,0,0.6) 100%);
  border-radius: 57px;
  width: 100%;
}
.tour-hero-title {
  color: #fff;
  max-width: 900px;
  width: 100%;
  text-align: center;
  margin-bottom: 10px;
}
.tour-hero-desc {
    color: #fff;
    max-width: 900px;
    text-align: center;
}

/* Main Content Layout */

.tour-content {
    padding-top: 260px;
    margin-top: -210px;
    position: relative;
    z-index: 1;
    background-color: #fff;
    background-image: url('../moonstride/img/tour-content-background.svg');
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}
.single-tour-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
    padding-top: 360px;
  margin-top: -320px;
 }

 @media (max-width: 768px) {
    .single-tour-container {
        padding: 0 10px;
        padding-top: 360px;
    }
 }

 .tour-back-link {
  display: inline-block;
  margin-bottom: 24px;
  color: #7fd858;
  font-weight: 600;
  text-decoration: none;
}

 .tour-back-link svg {
    margin-right: 10px;
 }
 
.tour-main-content {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  padding-bottom: 80px;
}
.tour-main-left,
.tour-main-right {
  flex: 1 1 0;
  min-width: 0;
  max-width: 100%;
}

@media (max-width: 1024px) {
  .tour-main-content {
    flex-direction: column;
    gap: 32px;
  }
  .tour-main-left,
  .tour-main-right {
    max-width: 100%;
  }
}

/* Remove unused/overwritten rules below */
.tour-main-content > *:not(.tour-main-left):not(.tour-main-right) {
  display: none;
}


/*.tour-main-title {
  margin-bottom: 10px;
}*/

.tour-main-body,
.tour-book-desc {
  margin-bottom: 30px;
}

.tour-main-btn {
  background-color: #7fd858;
  font-size: 16px;
  font-weight: 500;
    line-height: 29px;
    letter-spacing: -0.2px;
    fill: #161616;
    color: #161616;
    border-radius: 8px 8px 8px 8px;
    padding: 10px 0px 9px 0px;
    width: 212px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.5s ease;
}
.tour-main-btn:hover {
  background: #6bbe46;
  color: #161616;
  transition: all 0.5s ease;
}

.tour-main-btn svg {
  margin-left: 8px;
}

/* Book Box */

.tour-main-right {
  background: #7FD858;
  border-radius: 20px;
  box-shadow: 0 12px 60px #E6E8F4;
  border: 1px solid #E5E5E5;
  height: fit-content;
}

.tour-book-box {
  padding: 26px;
}

.tour-brike-line {
    background-color: #68B247;
    border: none;
    height: 2px;
    margin: 15px 0;
}

.tour-book-box .tour-main-btn {
    background-color: #FFFFFF;
    margin-bottom: 20px;
}

.tour-separator {
    border: none;
    height: 4px;
    background-color: #E6E6E6;
    margin: 60px 0;
}

/* Itinerary Accordion */

.tour-itinerary {
}
.tour-itinerary-title {
  margin-bottom: 20px;
  text-align: center;
}
.tour-itinerary-desc {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  margin-bottom: 50px;
  font-size: 20px;
  font-weight: 500;
}
.tour-itinerary-day {
  margin-bottom: 10px;
  border: 1px solid #E5E5E5;
  border-radius: 8px;
  background-color: #FFFFFF;
  box-shadow: 0 12px 60px #E6E8F4;
}
.tour-itinerary-day:last-child {
  border-bottom: none;
}
.tour-itinerary-day-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.2s;
  font-size: 22px;
  padding: 17px 26px;
  cursor: pointer;
}
.tour-itinerary-day.active .tour-itinerary-day-header {
  color: #7FD858;
}
.tour-itinerary-arrow {
  width: 16px;
  height: 10px;
  margin-left: 12px;
  transition: transform 0.3s cubic-bezier(.4,2,.6,1);
}
.tour-itinerary-day.active .tour-itinerary-arrow {
  transform: rotate(-180deg);
}
.tour-itinerary-day-body {
  padding: 0px 25px;
  background: #fff;
  
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
              opacity 0.3s ease, 
              padding 0.4s ease;
}

.tour-itinerary-day.active .tour-itinerary-day-body {
  max-height: 2000px;
  opacity: 1;
  padding: 25px;
}

.tour-itinerary-text {
  flex: 1 1 0;
  min-width: 200px;
}

.tour-itinerary-text .bigger-text {
    font-size: 20px;
}


.tour-main-left ol,
.tour-itinerary-text ol,
.tour-book-box ol {
  padding-left: 15px;
  margin: 1em 0;
}

/* Custom bullet style for ul in .tour-main-left and .tour-itinerary-text */
.tour-main-left ul,
.tour-itinerary-text ul,
.tour-book-box ul {
  list-style: none;
  padding-left: 0;
  margin: 1em 0;
}
.tour-main-left ul li,
.tour-itinerary-text ul li,
.tour-book-box ul li {
  position: relative;
  padding-left: 25px;
  margin-bottom: 0.7em;
}
.tour-main-left ul li::before,
.tour-itinerary-text ul li::before,
.tour-book-box ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 16px;
  height: 10px;
  background: url('../moonstride/img/arrow-left-tour.svg') no-repeat center center/contain;
}

/* Gallery */
.tour-gallery {
  padding: 0 20px;
  margin-bottom: 80px;
}

@media (max-width: 768px) {
    .tour-gallery {
        padding: 0 10px;
    }
 }
.tour-gallery-container {
    background: url('../moonstride/img/gallery-back.svg') no-repeat center center/cover;
    text-align: center;
    border-radius: 57px;
}
.tour-gallery-subheading {
    font-size: 20px;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #7FD858;
    max-width: 900px;
    margin: 0 auto;
    margin-bottom: 10px;
}
.tour-gallery-title {
 max-width: 900px;
 margin: 0 auto;
 margin-bottom: 10px;
}
.tour-gallery-desc {
  max-width: 900px;
  margin: 0 auto;
  margin-bottom: 50px;
}
.tour-gallery-slider {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 100%;
  max-width: 100%;
  left: 50%;
  right: 50%;
  transform: translateX(-50%);
  box-sizing: border-box;
}
.gallery-arrow {
  background: #7FD858;
  border: 1px solid #7FD858;
  color: #7FD858;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  z-index: 2;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-image: url('../moonstride/img/slider-arow-top.svg');
  background-repeat: no-repeat;
  background-position: center;
  background-size: 18px 12px;
}
.gallery-arrow:hover {
    background-color: #7FD858;;
}

.gallery-arrow-left {
  left: 65px;
  margin-right: 0;
  transform: translateY(-50%) rotate(-90deg);
}
.gallery-arrow-right {
  right: 65px;
  margin-left: 0;
  transform: translateY(-50%) rotate(90deg);
}
.gallery-arrow:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  border: 1px solid #fff;
  background-color: #fff;
  display: none;
}
.gallery-arrow-right:not(:disabled) {
  background-color: #7FD858;
  color: #fff;
  border-color: #7FD858;
}
.gallery-slides-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}
.gallery-slides {
  display: flex;
  transition: transform 0.4s cubic-bezier(.4,2,.6,1);
  gap: 25px;
}
.tour-gallery-slide {
  flex: 0 0 calc((100% - 50px) / 3); /* 3 slides, 2 gaps of 25px */
  max-width: calc((100% - 50px) / 3);
  min-width: 0;
  height: 380px;
  border-radius: 0.7em;
  overflow: hidden;
  box-shadow: 0 1px 6px rgba(0,0,0,0.04);
  background: #eee;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tour-gallery-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@media (max-width: 1200px) {
  .gallery-slides-wrapper {
    max-width: 100%;
  }
  .tour-gallery-slide {
    height: 260px;
  }
}
@media (max-width: 1024px) {
  .gallery-slides-wrapper {
    max-width: 100%;
  }
  .gallery-arrow-left {
    left: 30px;
  }
  .gallery-arrow-right {
    right: 30px;
  }
  .gallery-slides {
    gap: 25px;
  }
  .tour-gallery-slide {
    flex: 0 0 calc((100% - 25px) / 2);
    max-width: calc((100% - 25px) / 2);
  }
}
@media (max-width: 900px) {
  .gallery-slides-wrapper {
    max-width: 100%;
  }

}
@media (max-width: 700px) {
  .gallery-slides-wrapper {
    max-width: 100%;
  }
  .tour-gallery-slide {
    flex: 0 0 100%;
    max-width: 100%;
    height: 200px;
  }
}

/* Responsive styles */
@media (max-width: 1024px) {
  .tour-main-content {
    flex-direction: column;
    gap: 2rem;
    padding: 2rem 0.7rem 0 0.7rem;
  }
  .tour-main-right {
    max-width: 100%;
    min-width: 0;
    top: 0;
    padding: 1.5rem 1rem;
  }
}
@media (max-width: 700px) {
  .tour-hero-content {
    padding: 1.5rem 1rem 1rem 1rem;
    max-width: 100%;
  }
  .tour-hero-title {
    font-size: 1.5rem;
  }
  .tour-main-content {
    padding: 1.2rem 0.2rem 0 0.2rem;
  }
  .tour-main-right {
    padding: 1rem 0.5rem;
  }

  .tour-gallery-slider {
    gap: 0.7rem;
  }
}
