/* =============================================
   Travel Cards Carousel – Elementor Widget CSS
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=DM+Sans:wght@300;400;500&display=swap');

/* ---------- Wrapper ---------- */
.tce-wrapper {
    position: relative;
    width: 100%;
    padding: 60px 0 80px;
    overflow: visible;
    user-select: none;
}

/* ---------- Stage (fan layout container) ---------- */
.tce-stage {
    position: relative;
    width: 100%;
    height: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1200px;
}

/* ---------- Card base ---------- */
.tce-card {
    position: absolute;
    width: 280px;
    height: 420px;
    border-radius: 24px;
    overflow: hidden;
    cursor: pointer;
    transform-origin: center bottom;
    transition:
        transform 0.65s cubic-bezier(0.34, 1.3, 0.64, 1),
        opacity   0.55s ease,
        box-shadow 0.55s ease,
        filter    0.55s ease;
    will-change: transform, opacity;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

/* ---------- Card background image ---------- */
.tce-card-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s ease;
}

.tce-card:hover .tce-card-bg {
    transform: scale(1.05);
}

/* ---------- Overlay ---------- */
.tce-card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    transition: background 0.4s ease;
}

/* ---------- Card content ---------- */
.tce-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 28px 24px 26px;
    background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, transparent 100%);
    transform: translateY(0);
    transition: transform 0.4s ease;
}

.tce-destination {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 4px;
    line-height: 1.2;
    letter-spacing: 0.01em;
}

.tce-subtitle {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.8rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.75);
    margin: 0 0 14px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

/* ---------- Button ---------- */
.tce-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 20px;
    background: rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 50px;
    color: #ffffff;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-decoration: none;
    transition: background 0.3s ease, transform 0.2s ease;
    cursor: pointer;
}

.tce-btn:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: translateY(-1px);
    color: #ffffff;
    text-decoration: none;
}

.tce-btn-icon {
    font-size: 0.9rem;
    transition: transform 0.2s ease;
}

.tce-btn:hover .tce-btn-icon {
    transform: translateX(3px);
}

/* ===========================================
   FAN / CAROUSEL POSITIONS
   5 visible cards: far-left, left, center, right, far-right
   =========================================== */

/* Active / center card */
.tce-card[data-pos="active"] {
    transform: translateX(0) translateY(0) rotate(0deg) scale(1);
    opacity: 1;
    z-index: 10;
    filter: none;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

/* Left card */
.tce-card[data-pos="left-1"] {
    transform: translateX(-200px) translateY(20px) rotate(-8deg) scale(0.88);
    opacity: 0.85;
    z-index: 7;
    filter: brightness(0.75);
}

/* Far left card */
.tce-card[data-pos="left-2"] {
    transform: translateX(-360px) translateY(50px) rotate(-16deg) scale(0.76);
    opacity: 0.65;
    z-index: 4;
    filter: brightness(0.6);
}

/* Right card */
.tce-card[data-pos="right-1"] {
    transform: translateX(200px) translateY(20px) rotate(8deg) scale(0.88);
    opacity: 0.85;
    z-index: 7;
    filter: brightness(0.75);
}

/* Far right card */
.tce-card[data-pos="right-2"] {
    transform: translateX(360px) translateY(50px) rotate(16deg) scale(0.76);
    opacity: 0.65;
    z-index: 4;
    filter: brightness(0.6);
}

/* Hidden (behind) */
.tce-card[data-pos="hidden-left"] {
    transform: translateX(-500px) translateY(80px) rotate(-24deg) scale(0.6);
    opacity: 0;
    z-index: 1;
    pointer-events: none;
}

.tce-card[data-pos="hidden-right"] {
    transform: translateX(500px) translateY(80px) rotate(24deg) scale(0.6);
    opacity: 0;
    z-index: 1;
    pointer-events: none;
}

/* Hide content on non-active cards */
.tce-card:not([data-pos="active"]) .tce-card-content {
    opacity: 0;
    pointer-events: none;
}

.tce-card[data-pos="active"] .tce-card-overlay {
    background: rgba(0, 0, 0, 0.15);
}

/* ---------- Navigation ---------- */
.tce-nav {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 20;
}

.tce-nav-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.25s ease, transform 0.2s ease;
    padding: 0;
}

.tce-nav-btn:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: scale(1.1);
}

.tce-nav-btn svg {
    width: 18px;
    height: 18px;
}

/* ---------- Dots ---------- */
.tce-dots {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 7px;
    z-index: 20;
}

.tce-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.25);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background 0.3s ease, transform 0.3s ease, width 0.3s ease;
}

.tce-dot.active {
    background: #2a6ef5;
    width: 22px;
    border-radius: 4px;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .tce-stage {
        height: 420px;
    }

    .tce-card {
        width: 240px;
        height: 360px;
    }

    .tce-card[data-pos="left-1"]  { transform: translateX(-160px) translateY(20px) rotate(-8deg)  scale(0.85); }
    .tce-card[data-pos="left-2"]  { transform: translateX(-280px) translateY(50px) rotate(-16deg) scale(0.7); opacity: 0.5; }
    .tce-card[data-pos="right-1"] { transform: translateX(160px)  translateY(20px) rotate(8deg)   scale(0.85); }
    .tce-card[data-pos="right-2"] { transform: translateX(280px)  translateY(50px) rotate(16deg)  scale(0.7);  opacity: 0.5; }
}

@media (max-width: 600px) {
    .tce-stage {
        height: 380px;
    }

    .tce-card {
        width: 210px;
        height: 320px;
        border-radius: 18px;
    }

    .tce-card[data-pos="left-1"]  { transform: translateX(-120px) translateY(15px) rotate(-7deg)  scale(0.82); }
    .tce-card[data-pos="left-2"]  { transform: translateX(-210px) translateY(40px) rotate(-14deg) scale(0.65); opacity: 0.4; }
    .tce-card[data-pos="right-1"] { transform: translateX(120px)  translateY(15px) rotate(7deg)   scale(0.82); }
    .tce-card[data-pos="right-2"] { transform: translateX(210px)  translateY(40px) rotate(14deg)  scale(0.65); opacity: 0.4; }

    .tce-destination { font-size: 1.3rem; }
}
