/**
 * Destinations Flow Carousel Styles
 */

:root {
    --dfc-transition-speed: 500ms;
}

/* Main Wrapper */
.dfc-carousel-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Background Layer - Full Coverage */
.dfc-backgrounds {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.dfc-bg-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1),
        visibility 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.dfc-bg-item.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.dfc-bg-image {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center;
    min-width: 100%;
    min-height: 100%;
}

.dfc-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Content Layer */
.dfc-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

/* Header */
.dfc-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.dfc-section-title {
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    margin: 0;
}

.dfc-view-all {
    font-size: 13px;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
    position: relative;
}

.dfc-view-all:hover {
    opacity: 1;
}

.dfc-view-all::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: currentColor;
    transition: width 0.3s ease;
}

.dfc-view-all:hover::after {
    width: 100%;
}

/* Category Tabs - 3 Styles */
.dfc-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.dfc-tab {
    position: relative;
    font-size: 14px;
    font-weight: 400;
    background: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

/* Tab Hover */
.dfc-tab:hover {
    opacity: 0.8;
}

/* Style 1: Underline (default) */
.dfc-tabs-style-underline .dfc-tab::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: currentColor;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.dfc-tabs-style-underline .dfc-tab.active::after {
    transform: scaleX(1);
}

.dfc-tabs-style-underline .dfc-tab:hover::after {
    transform: scaleX(1);
    background-color: currentColor;
    /* Fallback if not set by Elementor */
}

/* Style 2: Pills */
.dfc-tabs-style-pills .dfc-tab {
    border-radius: 50px;
}

.dfc-tabs-style-pills .dfc-tab.active {
    background-color: rgba(255, 255, 255, 0.2);
}

.dfc-tabs-style-pills .dfc-tab:hover {
    background-color: rgba(255, 255, 255, 0.1);
    /* Fallback */
}

/* Style 3: Boxed */
.dfc-tabs-style-boxed .dfc-tab {
    border: 1px solid transparent;
}

.dfc-tabs-style-boxed .dfc-tab.active {
    border-color: currentColor;
}

/* Cards Container */
.dfc-cards-container {
    position: relative;
    flex: 1;
    overflow: hidden;
    width: 100%;
}

.dfc-cards-track {
    display: flex;
    height: 100%;
    align-items: center;
    will-change: transform;
}

/* Individual Card */
.dfc-card {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1),
        box-shadow 0.4s ease,
        opacity 0.6s ease;
    opacity: 0.4;
}

.dfc-card.dfc-active {
    opacity: 1;
    transform: scale(1.05);
    z-index: 2;
}

.dfc-card:hover {
    transform: translateY(-8px);
}

.dfc-card-link {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

/* Card Image */
.dfc-card-image {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.dfc-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.dfc-card:hover .dfc-card-image img {
    transform: scale(1.08);
}

/* Card Content */
.dfc-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
}

.dfc-card-name {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    line-height: 1.3;
}

.dfc-card-subtitle {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
}

.dfc-card-subtitle svg {
    flex-shrink: 0;
}

/* Navigation */
.dfc-navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.dfc-nav-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid currentColor;
    cursor: pointer;
    transition: all 0.3s ease;
    color: inherit;
}

.dfc-nav-arrow svg {
    fill: currentColor;
    transition: transform 0.3s ease;
}

.dfc-nav-arrow:hover {
    background: rgba(255, 255, 255, 0.1);
}

.dfc-nav-prev:hover svg {
    transform: translateX(-3px);
}

.dfc-nav-next:hover svg {
    transform: translateX(3px);
}

.dfc-nav-arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.dfc-nav-arrow:focus {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

/* Counter */
.dfc-counter {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 14px;
    font-weight: 400;
}

.dfc-counter-current {
    font-weight: 600;
}

.dfc-counter-separator {
    opacity: 0.6;
}

.dfc-counter-total {
    opacity: 0.6;
}

/* Animation Keyframes */
@keyframes dfc-fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes dfc-slideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.dfc-carousel-wrapper.loaded .dfc-section-title {
    animation: dfc-fadeIn 0.5s ease-out 0.1s both;
}

.dfc-carousel-wrapper.loaded .dfc-tabs {
    animation: dfc-fadeIn 0.5s ease-out 0.2s both;
}

.dfc-carousel-wrapper.loaded .dfc-view-all {
    animation: dfc-fadeIn 0.5s ease-out 0.3s both;
}

.dfc-carousel-wrapper.loaded .dfc-card {
    animation: dfc-slideIn 0.4s ease-out both;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .dfc-tab {
        font-size: 13px;
    }
}

@media (max-width: 768px) {
    .dfc-card {
        max-width: 85vw;
    }

    .dfc-content {
        padding-top: 40px !important;
        padding-bottom: 40px !important;
    }

    .dfc-section-title {
        font-size: 12px;
    }

    .dfc-tab {
        font-size: 12px;
    }

    .dfc-view-all {
        font-size: 12px;
    }

    .dfc-card-name {
        font-size: 14px;
    }

    .dfc-card-subtitle {
        font-size: 12px;
    }

    .dfc-nav-arrow {
        width: 44px;
        height: 44px;
    }

    .dfc-counter {
        font-size: 13px;
    }

    /* Mobile: reduce navigation margin */
    .dfc-navigation {
        margin-top: 10px !important;
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .dfc-tab {
        font-size: 11px;
    }

    .dfc-card-content {
        padding: 12px 16px;
    }

    /* Mobile: even smaller navigation margin */
    .dfc-navigation {
        margin-top: 5px !important;
        gap: 10px;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {

    .dfc-cards-track,
    .dfc-bg-item,
    .dfc-card,
    .dfc-card-image img,
    .dfc-nav-arrow,
    .dfc-tab::after {
        transition: none !important;
        animation: none !important;
    }
}

.dfc-card:focus-within {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

.dfc-tab:focus {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .dfc-card:hover {
        transform: none;
    }

    .dfc-card-image img {
        transition: none;
    }
}