/**
 * Retreat Frontend Styles
 * CSS for retreat shortcode display
 */

.retreat-display-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.retreat-row {
    display: flex;
    margin-bottom: 40px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    background: #fff;
    min-height: 440px;
}

.retreat-row--media-content {
    flex-wrap: nowrap;
    min-height: 100%;
}

.retreat-row--media-content .retreat-left-col,
.retreat-row--media-content .retreat-right-col {
    flex: 1 1 50%;
    min-height: 440px;
}

.retreat-row--media-content .retreat-content-col {
    background: #ffffff;
    display: flex;
}

.retreat-left-col {
    flex: 1;
    position: relative;
    min-height: 440px;
}

.retreat-image-container {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.retreat-image-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0.1) 0%,
            rgba(0, 0, 0, 0.3) 50%,
            rgba(0, 0, 0, 0.7) 100%);
    z-index: 1;
}

.retreat-title-overlay {
    position: relative;
    z-index: 2;
    color: white;
    padding: 30px;
    width: 100%;
}

.retreat-title-overlay.retreat-title-center {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.retreat-title {
    font-size: 4rem;
    font-weight: 700;
    margin: 0 0 10px 0;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgb(0 0 0 / 50%);
    color: #fff;
}

.retreat-excerpt {
    font-size: 1rem;
    margin: 0;
    opacity: 0.95;
    line-height: 1.4;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.retreat-overlay-dates {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 10px 0;
    font-size: 0.95rem;
    color: #fff;
    opacity: 0.9;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.retreat-overlay-dates span {
    font-weight: 500;
}

.retreat-right-col {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.retreat-content {
    padding: 30px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.retreat-content--details {
    align-items: flex-start;
    gap: 24px;
    justify-content: flex-start;
}

.retreat-content--details .retreat-button-container {
    margin-top: auto;
}

.retreat-content__categories {
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 12px;
    color: #8F8AA7;
    margin: 0;
}

.retreat-content__title {
    font-size: 36px;
    line-height: 1.2;
    margin: 0;
    color: #2B2340;
}

.retreat-content__dates {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #5F5672;
    font-size: 14px;
    font-weight: 500;
    margin: 0;
}

.retreat-date-icon {
    display: inline-flex;
    align-items: center;
    color: var(--e-global-color-primary);
}

.retreat-date-icon svg {
    width: 16px;
    height: 16px;
}

.retreat-content__excerpt {
    margin: 0;
    color: #5F5672;
    font-size: 16px;
    line-height: 1.6;
}

.retreat-content__highlights {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    color: #40385A;
    font-size: 15px;
}

.retreat-content__highlights li::before {
    content: '\2022';
    color: var(--e-global-color-primary);
    margin-right: 8px;
    align-self: center;
}

.retreat-content__highlights li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.retreat-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 30px;
}

.retreat-left-col.retreat-gallery-col {
    order: 2;
}


.retreat-gallery-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    background: #f5f5f5;
    cursor: pointer;
}

.retreat-gallery-item img {
    width: 100%;
    height: 100% !important;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.retreat-gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.retreat-gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-view-icon {
    font-size: 2rem;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.retreat-gallery-more {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    aspect-ratio: 1;
    border-radius: 8px;
    cursor: pointer;
}

.retreat-button-container {
    margin-top: auto;
}

.retreat-join-btn {
    background-color: var(--e-global-color-primary);
    font-size: 16px;
    font-weight: 400;
    line-height: 35px;
    fill: #FFFFFF;
    color: #FFFFFF;
    border-style: solid;
    border-width: 1px 1px 1px 1px;
    border-color: #131836;
    border-radius: 99px 99px 99px 99px;
    padding: 0px 15px 0px 15px;
    display: inline-flex;
    gap: 0.5em;
}

.retreat-join-btn:hover {
    background-color: var(--e-global-color-secondary);
    color: #FFFFFF;
    border-color: var(--e-global-color-secondary);
}

.retreat-no-results {
    text-align: center;
    padding: 40px;
    font-size: 1.1rem;
    color: #666;
    font-style: italic;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .retreat-gallery {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
}

@media (max-width: 768px) {
    .retreat-row {
        flex-direction: column;
        margin-bottom: 30px;
    }

    .retreat-row--media-content {
        flex-direction: column;

        .retreat-content__title {
            font-size: 24px;
        }

        .retreat-content__excerpt {
            font-size: 15px;
        }
    }

    .retreat-row--media-content .retreat-left-col,
    .retreat-row--media-content .retreat-right-col {
        min-height: auto;
    }

    .retreat-left-col {
        min-height: 250px;
    }

    .retreat-title {
        font-size: 1.5rem;
    }

    .retreat-title-overlay {
        padding: 20px;
    }

    .retreat-content {
        padding: 20px;
    }

    .retreat-content__title {
        font-size: 28px;
    }

    .retreat-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        margin-bottom: 20px;
    }

}

@media (max-width: 480px) {
    .retreat-image-container {
        min-height: 250px;
    }

    .retreat-display-container {
        padding: 15px;
    }

    .retreat-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .retreat-title {
        font-size: 1.3rem;
    }

    .retreat-excerpt {
        font-size: 0.9rem;
    }
}

/* Alternating Layout Styles */
@media (min-width: 768px) {
    .retreat-row-even {
        flex-direction: row-reverse;
    }
}

.retreat-image-col,
.retreat-gallery-col {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.retreat-row--tabs .retreat-gallery-col {
    padding: 20px;
    justify-content: center;
}

.retreat-image-col {
    min-height: 250px;
}

.retreat-gallery-col .retreat-content {
    height: 100%;
}

/* (Removed LightGallery Integration and UI overrides) */

@keyframes loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* Hover Effects */
.retreat-row:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

div#elementor-lightbox-slideshow-single-img {
    display: none !important;
}

/* Tabs Design Styles */
.retreat-tabs-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0px;
}

@media (min-width: 768px) {
    .retreat-tabs-container {
        padding: 20px;
    }
}

.retreat-tabs-nav {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 30px;
    border-bottom: 2px solid #E5E3ED;
    padding-bottom: 0;
    overflow-x: auto;
    flex-wrap: wrap;
}

.retreat-tab-btn {
    background: transparent;
    border: none;
    padding: 12px 24px;
    font-size: 20px;
    font-weight: 500;
    color: #5F5672;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
}

.retreat-tab-btn:hover {
    color: var(--e-global-color-primary);
}

.retreat-tab-btn.active {
    color: var(--e-global-color-primary);
    border-bottom-color: var(--e-global-color-primary);
    font-weight: 600;
}

.retreat-tabs-content {
    position: relative;
}

.retreat-tab-panel {
    display: none;
    animation: fadeIn 0.4s ease;
}

.retreat-tab-panel.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.retreat-row--tabs {
    display: flex;
    margin-bottom: 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    background: #fff;
    min-height: 440px;
}

.retreat-row--tabs .retreat-left-col,
.retreat-row--tabs .retreat-right-col {
    flex: 1 1 50%;
    min-height: 440px;
}

.retreat-row--tabs .retreat-content-col {
    background: #ffffff;
    display: flex;
}

/* Mobile responsiveness for tabs */
@media (max-width: 768px) {
    .retreat-tabs-nav {
        gap: 8px;
        margin-bottom: 20px;
    }

    .retreat-tab-btn {
        padding: 10px 16px;
        font-size: 14px;
    }

    .retreat-row--tabs {
        flex-direction: column;
    }

    .retreat-row--tabs .retreat-left-col,
    .retreat-row--tabs .retreat-right-col {
        min-height: auto;
    }
}