/* Previous Trip Page Styles */

/* Hero Section */
.previous-trip-hero {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.previous-trip-hero__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.previous-trip-hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.6) 100%);
    z-index: 2;
}

.previous-trip-hero__content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.previous-trip-hero__title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.previous-trip-hero__title span {
    display: inline-block;
}

.previous-trip-hero__x {
    font-size: 2rem;
    font-weight: 300;
    margin: 0 10px;
    opacity: 0.8;
}

.previous-trip-hero__destination {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.9;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.previous-trip-hero__emotional {
    font-family: 'Birthstone', cursive;
    font-size: 2rem;
    letter-spacing: 0.15rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
    color: #e0e0e0;
    font-weight: 400;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.previous-trip-hero__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.trip-badge {
    display: inline-block;
    padding: 5px 12px;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #fff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, background 0.3s ease;
}

@media (max-width: 768px) {
    .previous-trip-hero__title {
        font-size: 2.5rem;
    }

    .previous-trip-hero__destination {
        font-size: 1.1rem;
    }

    .previous-trip-hero__emotional {
        font-size: 2rem;
    }
}

/* ========================================
   Bento Marquee Section
   ======================================== */
.bento-gallery {
    padding: 80px 0;
    overflow: hidden;
}

.bento-marquee-wrapper {
    width: 100%;
    overflow: hidden;
}

.bento-marquee-track {
    display: flex;
    gap: 24px;
    width: max-content;
    animation: bentoScroll 40s linear infinite;
}

/* Pause on hover if desired, usually good for UX */
.bento-marquee-track:hover {
    animation-play-state: paused;
}

/* Keyframes for simple left scroll */
@keyframes bentoScroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
        /* Move half the track (since we doubled content) */
    }
}

.bento-grid-slide {
    display: grid;
    grid-template-columns: 1fr 0.6fr 1fr;
    grid-template-rows: 100%;
    gap: 16px;
    height: 580px;
    /* Fixed height as requested */
    width: 80vw;
    /* Each slide takes up decent screen width */
    max-width: 1100px;
    /* Cap width for large screens */
    flex-shrink: 0;
    /* Prevent shrinking in flex container */
}

/* Ensure column matches grid cell */
.bento-column {
    display: flex;
    flex-direction: column;
    gap: 16px;
    height: 100%;
    overflow: hidden;
    min-height: 0;
}

.bento-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
}

.bento-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.bento-item:hover img {
    transform: scale(1.05);
}

.bento-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top,
            rgba(0, 0, 0, 0.7) 0%,
            rgba(0, 0, 0, 0.2) 50%,
            rgba(0, 0, 0, 0.1) 100%);
    z-index: 1;
    transition: background 0.3s ease;
}

.bento-item:hover .bento-overlay {
    background: linear-gradient(to top,
            rgba(0, 0, 0, 0.8) 0%,
            rgba(0, 0, 0, 0.3) 50%,
            rgba(0, 0, 0, 0.2) 100%);
}

.bento-content {
    position: absolute;
    bottom: 30px;
    left: 30px;
    right: 30px;
    z-index: 2;
    transform: translateY(0);
    transition: transform 0.3s ease;
}

.bento-item:hover .bento-content {
    transform: translateY(-5px);
}

.bento-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #fff;
    margin: 0 0 8px 0;
    line-height: 1.3;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.bento-subtitle {
    font-size: 0.9rem;
    font-style: italic;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
    font-family: 'Birthstone', cursive;
    letter-spacing: 0.05rem;
}

/* Large left item spans full height */
.bento-large {
    height: 100%;
    overflow: hidden;
    min-height: 0;
}

/* Small stacked items - account for 16px gap */
.bento-small {
    flex: 1;
    overflow: hidden;
    min-height: 0;
}

/* Large right item */
.bento-large-right {
    height: 100%;
    overflow: hidden;
    min-height: 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .bento-grid {
        grid-template-columns: 1fr 1fr;
        min-height: auto;
    }

    .bento-large {
        grid-row: span 2;
    }

    .bento-column {
        grid-column: 2;
        grid-row: span 2;
    }

    .bento-large-right {
        grid-column: span 2;
        height: 350px;
    }
}

@media (max-width: 768px) {
    .bento-gallery {
        padding: 40px 0;
    }

    .bento-marquee-track {
        gap: 16px;
    }

    .bento-grid-slide {
        display: flex;
        flex-direction: row;
        align-items: stretch;
        gap: 12px;
        height: 320px;
        width: auto;
        max-width: none;
    }

    .bento-large,
    .bento-large-right {
        flex: 0 0 200px;
        height: 100%;
    }

    .bento-column {
        flex: 0 0 150px;
        display: flex;
        flex-direction: column;
        gap: 12px;
        height: 100%;
    }

    .bento-small {
        flex: 1;
        height: auto;
        min-height: 0;
    }

    .bento-content {
        bottom: 15px;
        left: 15px;
        right: 15px;
    }

    .bento-title {
        font-size: 1.1rem;
    }

    .bento-subtitle {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .bento-gallery {
        padding: 30px 0;
    }

    .bento-grid-slide {
        height: 280px;
        gap: 10px;
    }

    .bento-large,
    .bento-large-right {
        flex: 0 0 180px;
    }

    .bento-column {
        flex: 0 0 130px;
        gap: 10px;
    }

    .bento-title {
        font-size: 1rem;
    }

    .bento-content {
        bottom: 12px;
        left: 12px;
        right: 12px;
    }
}

/* ========================================
   Lightbox Modal Styles
   ======================================== */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    z-index: 10000;
    cursor: pointer;
}

.lightbox-close:hover,
.lightbox-close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

@media only screen and (max-width: 700px) {
    .lightbox-content {
        width: 95%;
    }

    .lightbox-close {
        top: 20px;
        right: 20px;
        font-size: 30px;
    }
}

/* ========================================
   Trip Inclusions Section
   ======================================== */
.trip-inclusions {
    padding: 2rem 0;
}

.trip-inclusions .container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

.trip-inclusions__wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.trip-inclusions__image {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    height: 100%;
    min-height: 600px;
}

.trip-inclusions__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
    transition: transform 0.5s ease;
}

.trip-inclusions__image:hover img {
    transform: scale(1.03);
}

.trip-inclusions__content {
    padding: 20px 0;
}

.trip-inclusions__badge {
    display: inline-block;
    background-color: #a8bd62;
    color: #132a13;
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-bottom: 20px;
    border: 1px solid #132a13;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.trip-inclusions__title {
    font-size: 3rem;
    font-weight: 700;
    color: #052e16;
    line-height: 1.1;
    margin: 0 0 16px 0;
    /* Removed Playfair Display to match theme defaults */
}

.trip-inclusions__subtitle {
    font-size: 1.1rem;
    color: #4b5563;
    margin: 0 0 40px 0;
    line-height: 1.6;
}

.trip-inclusions__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.trip-inclusions__item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.trip-inclusions__icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background-color: #606C38;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    border: 1px solid #606C38;
}

.trip-inclusions__icon svg {
    width: 22px;
    height: 22px;
}

.trip-inclusions__text {
    flex: 1;
}

.trip-inclusions__text h4 {
    font-size: 1.05rem;
    font-weight: 600;
    color: #132a13;
    margin: 0 0 4px 0;
}

.trip-inclusions__text p {
    font-size: 0.9rem;
    color: #6b7280;
    margin: 0;
    line-height: 1.5;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .trip-inclusions__wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .trip-inclusions__image {
        min-height: 400px;
        order: -1;
    }
}

@media (max-width: 768px) {
    .trip-inclusions {
        padding: 60px 0;
    }

    .trip-inclusions__title {
        font-size: 2rem;
    }

    .trip-inclusions__subtitle {
        margin-bottom: 30px;
    }

    .trip-inclusions__icon {
        width: 40px;
        height: 40px;
    }

    .trip-inclusions__icon svg {
        width: 18px;
        height: 18px;
    }

    .trip-inclusions__text h4 {
        font-size: 0.95rem;
    }

    .trip-inclusions__text p {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .trip-inclusions__image {
        min-height: 300px;
    }

    .trip-inclusions__title {
        font-size: 1.7rem;
    }

    .trip-inclusions__list {
        gap: 16px;
    }

    .trip-inclusions__item {
        gap: 12px;
    }
}

/* ========================================
   Trip Experience Section
   ======================================== */
.trip-experience {
    padding: 6rem 0;
    overflow: hidden;
}

.trip-experience .container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

.trip-experience__wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
}

/* Left Content */
.trip-experience__content {
    max-width: 480px;
}

.trip-experience__badge {
    display: inline-block;
    background-color: #a8bd62;
    color: #132a13;
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
    border: 1px solid #132a13;
}

.trip-experience__title {
    font-size: 3.2rem;
    font-weight: 700;
    color: #052e16;
    line-height: 1.1;
    margin: 0 0 32px 0;
}

.trip-experience__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.trip-experience__item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    border-radius: 50px;
    transition: background-color 0.3s ease, transform 0.3s ease;
    cursor: default;
}

.trip-experience__item:hover {
    background-color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    transform: translateX(8px);
}

.experience-check {
    width: 22px;
    height: 22px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23606C38' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    flex-shrink: 0;
}

.experience-text {
    font-size: 1.05rem;
    color: #132a13;
    font-weight: 500;
}


/* Right Visuals (Collage) */
.trip-experience__visuals {
    position: relative;
    height: 500px;
}

.experience-collage {
    position: relative;
    width: 100%;
    height: 100%;
}

.collage-img {
    position: absolute;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.32);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    will-change: transform;
    backface-visibility: hidden;
}

.collage-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

/* Specific Positions - Adjusted for better overlap */
.collage-img-1 {
    width: 55%;
    height: 300px;
    top: 80px;
    left: 0;
    z-index: 2;
}

.collage-img-2 {
    width: 50%;
    height: 240px;
    top: 0;
    right: 20px;
    z-index: 1;
}

.collage-img-3 {
    width: 55%;
    height: 220px;
    bottom: 20px;
    right: -5%;
    z-index: 3;
}

/* Hover Effects */
.collage-img:hover {
    z-index: 10;
    transform: scale(1.03);
    box-shadow: 0 20px 35px rgba(0, 0, 0, 0.38);
}

.collage-img:hover img {
    transform: scale(1.08);
}


/* Responsive */
@media (max-width: 1024px) {
    .trip-experience__wrapper {
        gap: 40px;
    }

    .trip-experience__title {
        font-size: 2.6rem;
    }

    .trip-experience__visuals {
        height: 450px;
    }
}

@media (max-width: 768px) {
    .trip-experience {
        padding: 60px 0;
    }

    .trip-experience__wrapper {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .trip-experience__content {
        max-width: 100%;
        text-align: center;
    }

    .trip-experience__item {
        justify-content: center;
    }

    .trip-experience__item:hover {
        transform: translateY(-4px);
    }

    .trip-experience__title {
        font-size: 2.2rem;
    }

    .trip-experience__visuals {
        height: 380px;
        width: 100%;
        max-width: 480px;
        margin: 0 auto;
    }

    /* Adjust collage for mobile */
    .collage-img-1 {
        width: 58%;
        left: 0;
        top: 60px;
        height: 200px;
    }

    .collage-img-2 {
        width: 42%;
        right: 0;
        top: 0;
        height: 160px;
    }

    .collage-img-3 {
        width: 52%;
        right: 5px;
        bottom: 20px;
        height: 150px;
    }
}

/* ========================================
   CTA Section
   ======================================== */
.previous-trip-cta {
    position: relative;
    padding: 5rem 2rem;
    text-align: center;
    background: url('../images/beach2.webp') no-repeat center center;
    background-size: cover;
    overflow: hidden;
    max-width: 1300px;
    margin: 4rem auto;
    border-radius: 40px;
    min-height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.previous-trip-cta__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 40px;
    pointer-events: none;
}

.previous-trip-cta__content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    padding: 3rem 4rem;
    border-radius: 50px;
}

.previous-trip-cta__label {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #a8bd62;
    margin-bottom: 0.5rem;
}

.previous-trip-cta__title {
    font-size: 3rem;
    font-weight: 700;
    color: #fff;
    margin-top: 0;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.previous-trip-cta__text {
    font-size: 1rem;
    line-height: 1.6;
    color: #e0e0e0;
    margin-bottom: 2.5rem;
}

.previous-trip-cta__actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
}

/* Button Styles */
.btn--cta-primary {
    display: inline-block;
    background-color: #FEFAE0;
    color: #132a13 !important;
    padding: 1rem 3rem;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    font-size: 1.1rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.btn--cta-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    color: #FEFAE0 !important;
    background-color: #000;
}

.btn--cta-secondary {
    color: #a8bd62 !important;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.3s ease, transform 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.btn--cta-secondary:hover {
    color: #000 !important;
    transform: translateX(3px);
}

@media (max-width: 768px) {
    .previous-trip-cta {
        padding: 5rem 0;
    }

    .previous-trip-cta__content {
        padding: 2rem;
        border-radius: 30px;
        width: 90%;
        max-width: 100%;
    }

    .previous-trip-cta__title {
        font-size: 2.2rem;
    }

    .previous-trip-cta__text {
        font-size: 1rem;
    }

    .btn--cta-primary {
        padding: 0.9rem 2.5rem;
        font-size: 1rem;
    }
}