/* ========================================
   Upcoming Tours Widget Styles - WITH OVERLAY
   ======================================== */

/* Wrapper */
.upcoming-tours-wrapper {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    position: relative;
}

/* Header Section */
.upcoming-tours-header {
    text-align: center;
    margin-bottom: 50px;
}

.main-heading {
    font-size: 48px;
    font-weight: 300;
    letter-spacing: 8px;
    color: #2d3748;
    margin: 0 0 5px 0;
    position: relative;
    display: inline-block;
}

.main-heading::after {
    content: '';
    display: block;
    width: 100px;
    height: 3px;
    background-color: #84cc16;
    margin: 10px auto 0;
}

.sub-heading {
    font-size: 20px;
    font-weight: 300;
    color: #718096;
    margin: 0;
    letter-spacing: 1px;
}

/* Slider Container - IMPORTANT: overflow hidden */
.upcoming-tours-slider {
    display: flex;
    gap: 20px;
    transition: transform 0.6s ease;
    will-change: transform;
}

/* Tour Card */
.tour-card {
    flex: 0 0 calc(33.333% - 14px);
    min-width: calc(33.333% - 14px);
    background: #ffffff;
    border: 3px solid #cbd5e0;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    height: 400px;
}

.tour-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Tour Image - Full card size */
.tour-image {
    position: relative;
    width: 100%;
    height: 100%;
}

.tour-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.tour-card:hover .tour-image img {
    transform: scale(1.05);
}

/* WHITE OVERLAY on image - disappears on hover */
.tour-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.5);
    transition: opacity 0.3s ease;
    z-index: 1;
}

.tour-card:hover .tour-image::after {
    opacity: 0;
}

/* Tour Content - OVERLAID on image */
.tour-content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    z-index: 2;
    pointer-events: none;
}

/* Title Section - TOP LEFT */
.tour-title {
    font-size: 28px;
    font-weight: 700;
    color: #2d3748;
    margin: 0;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: 1px;
    align-self: flex-start;
}

.tour-title-line {
    display: block;
}

.tour-title-line:first-child {
    font-weight: 700;
    color: #2d3748;
}

.tour-title-line:last-child {
    font-weight: 300;
    color: #4a5568;
}

/* Link Icon - BELOW title, TOP LEFT */
.tour-link-icon {
    position: absolute;
    top: 100px;
    left: 25px;
    width: 50px;
    height: 50px;
    background-color: #84cc16;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    z-index: 3;
    transition: all 0.3s ease;
    text-decoration: none;
    pointer-events: all;
}

.tour-link-icon:hover {
    background-color: #6bb010;
    transform: scale(1.1);
}

/* Tour Meta - BOTTOM RIGHT */
.tour-meta {
    display: flex;
    flex-direction: column;
    gap: 3px;
    align-self: flex-end;
    text-align: right;
}

.tour-date {
    font-size: 20px;
    font-weight: 700;
    color: #2d3748;
    margin: 0;
}

.tour-duration {
    font-size: 13px;
    font-weight: 400;
    color: #4a5568;
    margin: 0;
    letter-spacing: 0.5px;
}

/* Navigation Arrows */
.slider-navigation {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.slider-arrow {
    width: 60px;
    height: 60px;
    background-color: #84cc16;
    color: #ffffff;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 24px;
}

.slider-arrow:hover {
    background-color: #6bb010;
    transform: scale(1.1);
}

.slider-arrow:active {
    transform: scale(0.95);
}

.slider-arrow:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(132, 204, 22, 0.3);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .tour-card {
        flex: 0 0 calc(50% - 10px);
        min-width: calc(50% - 10px);
    }

    .main-heading {
        font-size: 40px;
        letter-spacing: 6px;
    }

    .sub-heading {
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    .upcoming-tours-wrapper {
        padding: 30px 15px;
    }

    .upcoming-tours-slider {
        gap: 15px;
    }

    .tour-card {
        flex: 0 0 100%;
        min-width: 100%;
        height: 350px;
    }

    .main-heading {
        font-size: 32px;
        letter-spacing: 4px;
    }

    .sub-heading {
        font-size: 16px;
    }

    .tour-title {
        font-size: 24px;
    }

    .tour-link-icon {
        top: 85px;
        width: 45px;
        height: 45px;
        font-size: 18px;
    }

    .slider-arrow {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .upcoming-tours-wrapper {
        padding: 20px 10px;
    }

    .upcoming-tours-slider {
        gap: 10px;
    }

    .tour-card {
        height: 300px;
    }

    .main-heading {
        font-size: 24px;
        letter-spacing: 2px;
    }

    .main-heading::after {
        width: 60px;
        height: 2px;
    }

    .sub-heading {
        font-size: 14px;
    }

    .tour-content {
        padding: 20px;
    }

    .tour-title {
        font-size: 20px;
    }

    .tour-link-icon {
        top: 70px;
        left: 20px;
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .tour-date {
        font-size: 18px;
    }

    .tour-duration {
        font-size: 12px;
    }

    .slider-arrow {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }

    .slider-navigation {
        gap: 15px;
        margin-top: 30px;
    }
}

/* Loading State */
.upcoming-tours-wrapper.loading .tour-card {
    opacity: 0.5;
    pointer-events: none;
}

/* Accessibility */
.slider-arrow:focus-visible {
    outline: 2px solid #84cc16;
    outline-offset: 4px;
}

.tour-link-icon:focus-visible {
    outline: 2px solid #84cc16;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .slider-navigation {
        display: none;
    }

    .tour-card {
        break-inside: avoid;
        page-break-inside: avoid;
    }
}
