/*
 * 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%;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    overflow: hidden;
}

.tour-hero-bg {
    min-height: 600px;
    width: 100%;
    overflow: hidden;
    display: flex;
    position: relative;
    z-index: 2;
    background-size: cover;
    background-position: center center;
}

.tour-hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, #2E4097 0%, rgba(255, 255, 255, 0) 100%);
    z-index: 1;
    pointer-events: none;
}

@media (max-width: 768px) {
    .tour-hero-bg {
        padding: 0 10px;
    }
}

.tour-hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 1170px;
    margin: 0 auto;
    width: 100%;
}

.tour-hero-title {
    color: #fff;
    max-width: 700px;
    width: 100%;
    text-align: left;
    z-index: 1;
}

@media (max-width: 768px) {
    .tour-hero-title {
        text-align: center;
    }
}

.tour-hero-desc {
    color: #fff;
    max-width: 900px;
    text-align: center;
}


/* Main Content Layout */

.tour-content {
    position: relative;
    z-index: 1;
    background-color: #fff;
    background-image: url('/wp-content/uploads/2025/07/horizon-stars-about-us-blueprint.png');
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}

.single-tour-container {
    max-width: 1170px;
    margin: 0 auto;
    padding: 80px 20px;
}

@media (max-width: 768px) {
    .single-tour-container {
        padding: 50px 10px;
    }
}

.tour-back-link {
    display: inline-block;
    margin-bottom: 24px;
    color: #f26b01;
    font-weight: 600;
    text-decoration: none;
}

.tour-back-link svg {
    margin-right: 10px;
}

.tour-back-link svg path {
    fill: #f26b01;
}

.tour-main-content {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.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: #F26B0126;
    color: #f26b01;
    font-weight: 700;
    font-size: 16px;
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    transition: background 0.5s;
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    max-width: 230px;
    justify-content: center;
}

.tour-main-btn svg path {
    fill: #f26b01;
    transition: all 0.5s ease;
}

.tour-main-btn:hover {
    background: #f26b01;
    color: #FFFFFF;
    transition: all 0.5s ease;
}

.tour-main-btn:hover svg path {
    fill: #fff;
    transition: all 0.5s ease;
}

.tour-main-btn svg {
    margin-left: 8px;
}


/* Book Box */

.tour-main-right {
    background: #f26b01;
    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: #fff;
    border: none;
    height: 2px;
    margin: 15px 0;
}

.tour-book-box .tour-main-btn {
    background-color: #FFFFFF;
    margin-bottom: 20px;
    border: 1px solid #f26b01;
}

.tour-book-box .tour-main-btn:hover {
    background-color: #f26b01;
    margin-bottom: 20px;
    border: 1px solid #fff;
}

.tour-book-box h3 {
    color: #fff;
}

.tour-book-desc p {
    color: #fff;
}

.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;
    color: #17012c;
}

.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;
    color: #17012c;
    font-weight: bold;
}

.tour-itinerary-day.active .tour-itinerary-day-header {
    color: #f26b01;
}

.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;
    color: #17012c;
}

.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 {
    background: url('/wp-content/uploads/2025/07/slider.png') no-repeat center center/cover;
    padding-top: 100px;
    padding-bottom: 100px;
}

.tour-gallery-container {
    padding: 0 20px;
    text-align: center;
    border-radius: 57px;
}

@media (max-width: 768px) {
    .tour-gallery-container {
        padding: 0 10px;
    }
}

.tour-gallery-subheading {
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    color: #f26b01;
    max-width: 900px;
    margin: 0 auto;
    margin-bottom: 10px;
}

.tour-gallery-title {
    max-width: 900px;
    margin: 0 auto;
    margin-bottom: 20px;
    color: #fff;
}

.tour-gallery-desc {
    max-width: 900px;
    margin: 0 auto;
    margin-bottom: 50px;
    color: #fff;
}

.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: #f26b01;
    border: 1px solid #f26b01;
    color: #fff;
    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: #f26b01;
}

.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: #f26b01;
    color: #fff;
    border-color: #f26b01;
}

.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: 20px;
    overflow: hidden;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.04);
    background: #eee;
    border: 2px solid #fff;
    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;
    }
}