/*---------------- CUSTOM ----------------*/

.tour-card {
    margin: 0px !important;
}

.owl-item {
    margin: 5px !important;
}

.card-item .card-img,
.tour-card {
    padding: 0px !important;
}

.card-tours-date {
    position: relative;
    overflow: hidden;
}

#tourAvailableDates.animate-border::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 2px solid transparent;
    border-radius: 5px;
    box-sizing: border-box;
    animation: borderAnimation 2s linear infinite;
}

@keyframes borderAnimation {
    0% {
        border-color: transparent;
    }

    50% {
        border-color: #ff0000;
        /* Change to desired color */
    }

    100% {
        border-color: transparent;
    }
}

.button-carosel-left-arrow {
    left: -24px;
}

.button-carosel-right-arrow {
    right: -24px;
}

#tourTermsContent:last-child {
    margin-bottom: 50px;
}

/*---------------- END CUSTOM ----------------*/

/*---------------- SKELETON ----------------*/
.tour-page-detail-price-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.tour-page-detail-mobile-price-section {
    position: fixed;
    background-color: white;
    display: flex;
    justify-content: space-between;
    height: 70px;
    width: 100%;
    bottom: 0px;
    z-index: 99;
}

.tour-page-detail-price-text {
    font-size: 1rem;
    color: #333;
    margin-top: 10px;
}

.tour-page-detail-price-border {
    width: 1px;
    height: 26px;
    background-color: #d5d5d5;
    margin: 0 10px;
}

.tour-page-detail-mobile-price-text {
    display: flex;
    flex-direction: column;
    margin-top: 17px;
}

.tour-page-detail-price-first {
    font-size: 13px;
    font-weight: 600;
    line-height: 13px;
    vertical-align: 6px;
}

.tour-page-detail-price-value {
    font-size: 22px;
    font-weight: 500;
    color: var(--theme-primary);
    margin-bottom: 0;
}

.tour-page-detail-price-last {
    font-size: 11px;
    font-weight: 600;
    margin-left: 3px;
    line-height: 34px;
}
.tour-page-detail-price-discount {
    font-size: 11px;
    font-weight: 600;
    text-decoration: line-through;
    color: #999;
    margin-left: 3px;
    line-height: 34px;
}


.tour-page-detail-button {
    background-color: var(--theme-primary);
    color: #fff;
    border-color: var(--theme-primary);
    border-radius: 0px;
    transition: all 0.3s;
    font-size: 14px;
    padding: 4px 20px;
    text-align: center;
    text-decoration: none;
    border-radius: 5px;
    border: 1px solid var(--theme-primary);
    font-weight: 500;
}

.tour-page-detail-button:hover {
    background-color: #fff;
    color: var(--theme-primary);
    border: 1px solid var(--theme-primary);
}

/*---------------- SKELETON LOADER FOR TOUR DETAIL PAGE ----------------*/
:root {
    --skeleton-bg-light: #fff;
    --loading-grey: #e5e7eb;
}

@keyframes skeleton-shimmer {
    0% {
        background-position: -400px 0;
    }

    100% {
        background-position: 400px 0;
    }
}

/* Base style for all skeleton elements */
.skeleton-main-image,
.skeleton-thumbnail,
.skeleton-title,
.skeleton-subtitle,
.skeleton-line,
.skeleton-price,
.skeleton-button,
.tour-date-selector-skeleton,
.skeleton-tabs,
.skeleton-price-label {
    background: linear-gradient(
            100deg,
            rgba(255, 255, 255, 0) 40%,
            rgba(255, 255, 255, 0.5) 50%,
            rgba(255, 255, 255, 0) 60%
        )
        var(--loading-grey);
    background-size: 400px 100%;
    background-position: 0 0;
    animation: skeleton-shimmer 1s infinite linear;
    border-radius: 6px;
}

/* Bottom Bar Skeleton Styles */
.skeleton-line.medium {
    height: 20px;
    margin-bottom: 8px;
}

/* Bottom Bar Fade Animations */
.btn-detail-tours-mobile,
.tour-page-detail-mobile-price-section {
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
}

.btn-detail-tours-mobile.fade-in,
.tour-page-detail-mobile-price-section.fade-in {
    opacity: 1;
    transform: translateY(0);
}

.btn-detail-tours-mobile.fade-out,
.tour-page-detail-mobile-price-section.fade-out {
    opacity: 0;
    transform: translateY(100%);
}

.btn-detail-tours-mobile.hidden,
.tour-page-detail-mobile-price-section.hidden {
    display: none !important;
}

/* Carousel Container Stability */
.tour-carousel {
    min-height: 200px; /* Prevent layout shift during initialization */
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.tour-carousel.initialized {
    opacity: 1;
}

/* .tour-wrap {
    position: relative;
    overflow: hidden;
} */

/* Ensure carousel items have proper dimensions */
.tour-carousel .owl-item {
    min-height: 200px;
}

.tour-carousel .card-img {
    height: 200px;
    overflow: hidden;
}

.tour-carousel .card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- Gallery Section --- */
.tour-gallery-skeleton {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.skeleton-main-image {
    width: 55%;
    height: 400px;
    border-radius: 12px;
}

.skeleton-thumbnail-grid {
    width: 45%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 16px;
}

.skeleton-thumbnail {
    width: 100%;
    height: 100%;
    border-radius: 12px;
}

/* --- Header Info Section --- */
.tour-header-info-skeleton {
    padding: 16px;
    background-color: var(--skeleton-bg-light);
    border: 1px solid #eee;
    border-radius: 12px;
    margin-bottom: 24px;
}

.skeleton-title {
    height: 24px;
    margin-bottom: 12px;
    width: 40%;
}
.skeleton-title.large {
    height: 32px;
    width: 60%;
}

.skeleton-subtitle {
    height: 18px;
    width: 50%;
    margin-bottom: 16px;
}

.skeleton-line {
    height: 16px;
    margin-bottom: 10px;
    width: 100%;
}
.skeleton-line.short {
    width: 70%;
}
.skeleton-line.small {
    height: 14px;
    margin-bottom: 8px;
}

.tour-price-action-skeleton {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 24px;
}

.skeleton-price {
    width: 180px;
    height: 28px;
}

.skeleton-button {
    width: 120px;
    height: 48px;
    border-radius: 8px;
}
.skeleton-button.large {
    width: 150px;
}

/* --- Navigation Tabs Section --- */
.tour-nav-skeleton {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--skeleton-bg-light);
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 12px 24px;
    height: 70px;
    margin-bottom: 24px;
}

.skeleton-tabs {
    width: 60%;
    height: 32px;
}

.tour-nav-price-section {
    display: flex;
    align-items: center;
    gap: 16px;
}

.skeleton-price-label {
    width: 150px;
    height: 24px;
}

/* --- Content Description Section --- */
.tour-content-skeleton {
    padding: 24px;
    background-color: var(--skeleton-bg-light);
    border: 1px solid #eee;
    border-radius: 12px;
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
    .tour-gallery-skeleton {
        flex-direction: column;
    }

    .skeleton-main-image {
        width: 100%;
        height: 250px;
    }

    .skeleton-thumbnail-grid {
        width: 100%;
        height: 100px; /* Adjust height for mobile */
    }

    .skeleton-tabs {
        width: 100%;
    }

    .tour-nav-skeleton {
        flex-direction: column;
        height: auto;
        gap: 16px;
        align-items: flex-start;
    }

    .tour-nav-price-section {
        width: 100%;
        justify-content: space-between;
    }
}

/*---------------- END SKELETON LOADER FOR TOUR DETAIL PAGE ----------------*/
