/**
 * Trip Gallery Styles
 */
.trip-gallery-container {
    max-width: 100%;
    margin: 0 auto;
}

.trip-gallery-main {
    width: 100%;
    margin-bottom: 20px;
    position: relative;
}

.trip-gallery-main .swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #f0f0f0;
}

.trip-gallery-main .swiper-slide img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    display: block;
    border-radius: 15px;
}

/* Thumbnail Gallery Wrapper with Navigation */
.trip-gallery-thumbs-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
}

/* Navigation Buttons beside Thumbnails */
.trip-thumb-nav-button {
    flex-shrink: 0;
    width: 45px;
    height: 45px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.trip-thumb-nav-button:hover {
    background-color: rgba(255, 255, 255, 1);
    transform: scale(1.1);
	color: #45A08F !important;
}

.trip-thumb-nav-button:active {
    transform: scale(0.95);
}

.trip-thumb-nav-button svg {
    width: 24px;
    height: 24px;
}

.trip-thumb-nav-button img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.trip-thumb-nav-button.swiper-button-disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.trip-thumb-prev {
    order: 1;
}

.trip-gallery-thumbs {
    order: 2;
    flex: 1;
}

.trip-thumb-next {
    order: 3;
}

/* Thumbnail Swiper */
.trip-gallery-thumbs .swiper-slide {
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.3s ease, transform 0.3s ease;
    border: 3px solid transparent;
}

.trip-gallery-thumbs .swiper-slide:hover {
    opacity: 0.8;
    transform: scale(1.05);
}

.trip-gallery-thumbs .swiper-slide-thumb-active {
    opacity: 1;
}

.trip-gallery-thumbs .swiper-slide img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    display: block;
    border-radius: 8px;
}

/* Responsive adjustments for Gallery */
@media (max-width: 768px) {
    .trip-gallery-main .swiper-slide img {
        height: 300px;
    }
    
    .trip-gallery-thumbs .swiper-slide img {
        height: 70px;
    }
    
    .trip-gallery-thumbs-wrapper {
        gap: 10px;
    }
    
    .trip-thumb-nav-button {
        width: 35px;
        height: 35px;
    }
    
    .trip-thumb-nav-button svg {
        width: 18px;
        height: 18px;
    }
}

@media (max-width: 480px) {
    .trip-gallery-thumbs-wrapper {
        gap: 5px;
    }
    
    .trip-thumb-nav-button {
        width: 30px;
        height: 30px;
    }
    
    .trip-gallery-thumbs .swiper-slide img {
        height: 60px;
    }
}

/**
 * Trip Accordion Styles
 */
.trip-accordion-container {
    width: 100%;
}

.trip-accordion-item {
    margin-bottom: 10px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.trip-accordion-item:last-child {
    margin-bottom: 0;
}

.trip-accordion-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.trip-accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background-color: #f8f9fa;
    cursor: pointer;
    transition: background-color 0.3s ease;
    user-select: none;
}

.trip-accordion-header:hover {
    background-color: #e9ecef;
}

.trip-accordion-item.active .trip-accordion-header {
    background-color: #e7f3ff;
}

.trip-accordion-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #000;
}

.trip-accordion-icon {
    flex-shrink: 0;
    margin-left: 15px;
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.trip-accordion-item.active .trip-accordion-icon {
    transform: rotate(180deg);
}

.trip-accordion-body {
    background-color: #ffffff;
    overflow: hidden;
}

/* Accordion Image */
.trip-accordion-image {
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
}

.trip-accordion-image img {
    width: 100%;
    max-width: 460px;
    height: auto;
    display: block;
    border-radius: 8px;
}

/* Accordion Text */
.trip-accordion-text {
    line-height: 1.6;
    color: #333;
}

.trip-accordion-text p {
    margin-bottom: 15px;
}

.trip-accordion-text p:last-child {
    margin-bottom: 0;
}

.trip-accordion-text ul,
.trip-accordion-text ol {
    margin: 15px 0;
    padding-left: 25px;
}

.trip-accordion-text li {
    margin-bottom: 8px;
}

/* Accordion URL */
.trip-accordion-url {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
}

.trip-accordion-url a {
    color: #0073aa;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.trip-accordion-url a:hover {
    color: #005177;
    text-decoration: underline;
}

.trip-accordion-url a::after {
    content: '→';
    font-size: 1.2em;
    transition: transform 0.3s ease;
}

.trip-accordion-url a:hover::after {
    transform: translateX(3px);
}

/* Responsive adjustments for Accordion */
@media (max-width: 768px) {
    .trip-accordion-header {
        padding: 12px 15px;
    }
    
    .trip-accordion-title {
        font-size: 16px;
    }
    
    .trip-accordion-content {
        padding: 15px;
    }
    
    .trip-accordion-icon {
        margin-left: 10px;
    }
    
    .trip-accordion-image img {
        max-width: 100%;
    }
}

/* Loading State */
.elementor-loading .trip-gallery-container,
.elementor-loading .trip-accordion-container {
    opacity: 0.5;
    pointer-events: none;
}

/* Smooth Animations */
.trip-accordion-body {
    will-change: height;
}

.trip-accordion-item {
    will-change: box-shadow;
}

/* Print Styles */
@media print {
    .trip-thumb-nav-button {
        display: none;
    }
    
    .trip-accordion-item {
        page-break-inside: avoid;
    }
    
    .trip-accordion-body {
        display: block !important;
        height: auto !important;
    }
}