/* ftc = Floating Tour Cards */
.ftc-wrapper-ad38cf3e {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--ftc-gap, 30px);
    width: 100%;
}

.ftc-card-ad38cf3e {
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    border-radius: var(--ftc-radius, 12px);
    transition: transform var(--ftc-anim-speed, 0.5s) ease, box-shadow var(--ftc-anim-speed, 0.5s) ease;
    width: var(--ftc-width, 320px);
    height: var(--ftc-height, 450px);
    flex-shrink: 0;
}

/* Micro-floating animation setup */
@keyframes micro-float-ad38cf3e {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(4px); /* subtle 4px downward movement */
    }
}

/* Base animation applied to all cards wrapper inside the card to not conflict with hover/layout transforms */
.ftc-card-inner-ad38cf3e {
    position: relative;
    width: 100%;
    height: 100%;
    /* Apply subtle continuous floating effect */
    animation: micro-float-ad38cf3e 6s ease-in-out infinite;
}

/* Apply different durations and delays to stagger the animations slightly */
.ftc-wrapper-ad38cf3e > .ftc-card-ad38cf3e:nth-child(1) .ftc-card-inner-ad38cf3e { animation-duration: 5.5s; animation-delay: 0s; }
.ftc-wrapper-ad38cf3e > .ftc-card-ad38cf3e:nth-child(2) .ftc-card-inner-ad38cf3e { animation-duration: 6.2s; animation-delay: 1.2s; }
.ftc-wrapper-ad38cf3e > .ftc-card-ad38cf3e:nth-child(3) .ftc-card-inner-ad38cf3e { animation-duration: 5.8s; animation-delay: 2.5s; }
.ftc-wrapper-ad38cf3e > .ftc-card-ad38cf3e:nth-child(4) .ftc-card-inner-ad38cf3e { animation-duration: 6.5s; animation-delay: 0.8s; }
.ftc-wrapper-ad38cf3e > .ftc-card-ad38cf3e:nth-child(5) .ftc-card-inner-ad38cf3e { animation-duration: 5.9s; animation-delay: 1.7s; }
.ftc-wrapper-ad38cf3e > .ftc-card-ad38cf3e:nth-child(6) .ftc-card-inner-ad38cf3e { animation-duration: 6.1s; animation-delay: 0.5s; }


/* Floating / Asymmetric effect for desktop (layout) */
@media (min-width: 768px) {
    .ftc-wrapper-ad38cf3e > .ftc-card-ad38cf3e:nth-child(even) {
        transform: translateY(var(--ftc-offset, 40px));
    }
    .ftc-wrapper-ad38cf3e > .ftc-card-ad38cf3e:nth-child(even):hover {
        transform: translateY(calc(var(--ftc-offset, 40px) - 8px)) scale(1.02);
    }
    .ftc-wrapper-ad38cf3e > .ftc-card-ad38cf3e:nth-child(odd):hover {
        transform: translateY(-8px) scale(1.02);
    }
    
    .ftc-card-ad38cf3e:hover {
        box-shadow: 0 15px 35px rgba(0,0,0,0.25);
    }
}

.ftc-bg-ad38cf3e {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform var(--ftc-anim-speed, 0.5s) cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 1;
}

.ftc-overlay-ad38cf3e {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    /* Default fallback gradient */
    background: linear-gradient(to top, rgba(3, 33, 71, 0.85) 0%, transparent 100%);
    opacity: 0;
    transition: opacity var(--ftc-anim-speed, 0.5s) ease;
    z-index: 2;
}

.ftc-content-ad38cf3e {
    position: absolute;
    bottom: 0; left: 0; width: 100%;
    padding: 30px 25px;
    z-index: 3;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100%;
}

.ftc-title-ad38cf3e, .ftc-desc-ad38cf3e, .ftc-btn-ad38cf3e {
    transform: translateY(30px);
    opacity: 0;
    transition: transform var(--ftc-anim-speed, 0.5s) ease, opacity var(--ftc-anim-speed, 0.5s) ease;
    color: #ffffff;
    margin: 0;
}

.ftc-title-ad38cf3e {
    margin-bottom: 12px;
}

.ftc-desc-ad38cf3e {
    margin-bottom: 20px;
    font-size: 15px;
    line-height: 1.5;
}

.ftc-btn-ad38cf3e {
    display: inline-block;
    align-self: flex-start;
    padding: 12px 24px;
    background-color: #D4AD4C;
    color: #032147;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    font-size: 14px;
    transition: background-color 0.3s ease;
}
.ftc-btn-ad38cf3e:hover {
    filter: brightness(1.1);
    color: #032147;
}

/* Hover Interactivity (Desktop) */
@media (hover: hover) and (pointer: fine) {
    .ftc-card-ad38cf3e:hover .ftc-bg-ad38cf3e {
        transform: scale(var(--ftc-zoom, 1.05));
    }
    .ftc-card-ad38cf3e:hover .ftc-overlay-ad38cf3e {
        opacity: var(--ftc-overlay-opacity, 1);
    }
    .ftc-card-ad38cf3e:hover .ftc-title-ad38cf3e,
    .ftc-card-ad38cf3e:hover .ftc-desc-ad38cf3e,
    .ftc-card-ad38cf3e:hover .ftc-btn-ad38cf3e {
        transform: translateY(0);
        opacity: 1;
    }
    /* Staggered text reveal */
    .ftc-card-ad38cf3e:hover .ftc-desc-ad38cf3e { transition-delay: 0.05s; }
    .ftc-card-ad38cf3e:hover .ftc-btn-ad38cf3e { transition-delay: 0.1s; }
}

/* Mobile/Touch overrides - Always show content */
@media (hover: none), (max-width: 767px) {
    .ftc-overlay-ad38cf3e {
        opacity: var(--ftc-overlay-opacity, 1);
    }
    .ftc-title-ad38cf3e, .ftc-desc-ad38cf3e, .ftc-btn-ad38cf3e {
        transform: translateY(0);
        opacity: 1;
    }
    .ftc-card-ad38cf3e {
        width: 100%;
        max-width: 100%;
    }
    .ftc-wrapper-ad38cf3e > .ftc-card-ad38cf3e:nth-child(even) {
        transform: none !important;
    }
}