/* ============================================================
   Komodo Travel Slider — Frontend Styles
   ============================================================ */

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

/* ---- Slider Container ---- */
.kts-slider {
    position: relative;
    width: 100%;
    height: 85vh;
    overflow: hidden;
    font-family: 'DM Sans', sans-serif;
    user-select: none;
}

/* ---- Background ---- */
.kts-bg-wrapper {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.kts-bg-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transform: scale(1.06);
    transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1),
                transform 1.4s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: opacity, transform;
}

.kts-bg-slide.active {
    opacity: 1;
    transform: scale(1);
}

.kts-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(0, 0, 0, 0.72) 0%,
        rgba(0, 0, 0, 0.40) 50%,
        rgba(0, 0, 0, 0.15) 100%
    );
}

/* ---- Content Panel (Left) ---- */
.kts-content-panel {
    position: absolute;
    left: 5%;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    max-width: 440px;
}

.kts-slide-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.kts-slide-content.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    position: relative;
}

.kts-slide-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.4rem, 5vw, 4rem);
    font-weight: 900;
    color: #ffffff;
    line-height: 1.1;
    margin: 0 0 16px 0;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 20px rgba(0,0,0,0.4);
}

.kts-slide-desc {
    font-size: clamp(0.85rem, 1.4vw, 1rem);
    font-weight: 300;
    color: rgba(255,255,255,0.82);
    line-height: 1.72;
    margin: 0 0 32px 0;
    max-width: 380px;
}

.kts-btn {
    display: inline-block;
    padding: 12px 30px;
    background: #2563eb;
    color: #fff;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 6px;
    letter-spacing: 0.04em;
    transition: background 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
    box-shadow: 0 4px 18px rgba(37, 99, 235, 0.40);
}

.kts-btn:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 8px 26px rgba(37, 99, 235, 0.55);
    color: #fff;
    text-decoration: none;
}

/* ---- Cards Panel (Right) ---- */
.kts-cards-panel {
    position: absolute;
    right: 4%;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.kts-cards-track {
    display: flex;
    flex-direction: row;
    gap: 14px;
    align-items: center;
}

/* ---- Destination Card ---- */
.kts-dest-card {
    position: relative;
    width: 140px;
    height: 200px;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                border-color 0.3s ease,
                box-shadow 0.35s ease;
    flex-shrink: 0;
    outline: none;
}

.kts-dest-card:focus-visible {
    border-color: #60a5fa;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.5);
}

.kts-dest-card:hover {
    transform: translateY(-6px) scale(1.03);
    box-shadow: 0 20px 40px rgba(0,0,0,0.45);
}

.kts-dest-card.active {
    border-color: #2563eb;
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 24px 48px rgba(0,0,0,0.55);
    z-index: 2;
}

.kts-card-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
}

.kts-dest-card:hover .kts-card-image {
    transform: scale(1.08);
}

.kts-card-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0,0,0,0.80) 0%,
        rgba(0,0,0,0.20) 50%,
        transparent 100%
    );
}

.kts-card-info {
    position: absolute;
    bottom: 14px;
    left: 12px;
    right: 12px;
    z-index: 2;
}

.kts-card-name {
    display: block;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.92rem;
    font-weight: 500;
    color: #ffffff;
    line-height: 1.2;
}

.kts-card-location {
    display: block;
    font-size: 0.72rem;
    font-weight: 300;
    color: rgba(255,255,255,0.68);
    margin-top: 2px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* ---- Arrows ---- */
.kts-arrows {
    display: flex;
    gap: 10px;
    margin-top: 4px;
}

.kts-arrow {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.18);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.25);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.25s ease, transform 0.2s ease;
}

.kts-arrow svg {
    width: 16px;
    height: 16px;
}

.kts-arrow:hover {
    background: rgba(255,255,255,0.32);
    transform: scale(1.1);
}

.kts-arrow:focus-visible {
    outline: 2px solid #60a5fa;
    outline-offset: 2px;
}

/* ---- Dots Navigation ---- */
.kts-dots {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    display: flex;
    gap: 8px;
    align-items: center;
}

.kts-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.40);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background 0.3s ease, transform 0.3s ease, width 0.35s ease;
}

.kts-dot.active {
    background: #fff;
    width: 26px;
    border-radius: 4px;
}

.kts-dot:hover {
    background: rgba(255,255,255,0.70);
    transform: scale(1.15);
}

/* ---- Progress Bar ---- */
.kts-progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(255,255,255,0.15);
    z-index: 20;
    overflow: hidden;
}

.kts-progress-fill {
    height: 100%;
    background: linear-gradient(to right, #60a5fa, #2563eb);
    width: 0%;
    transition: width linear;
}

/* ---- Vertical Counter ---- */
.kts-counter {
    position: absolute;
    left: 3%;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.kts-counter-current,
.kts-counter-total {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.75rem;
    font-weight: 300;
    color: rgba(255,255,255,0.65);
    letter-spacing: 0.08em;
    writing-mode: horizontal-tb;
}

.kts-counter-current {
    color: #ffffff;
    font-weight: 500;
}

.kts-counter-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.8), rgba(255,255,255,0.15));
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
    .kts-dest-card {
        width: 120px;
        height: 170px;
    }
    .kts-cards-track {
        gap: 10px;
    }
}

@media (max-width: 768px) {
    .kts-content-panel {
        left: 20px;
        right: 20px;
        max-width: none;
        bottom: 180px;
        top: auto;
        transform: none;
    }

    .kts-cards-panel {
        right: auto;
        left: 50%;
        transform: translateX(-50%);
        bottom: 50px;
        top: auto;
    }

    .kts-cards-track {
        flex-direction: row;
        overflow-x: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
        padding: 0 10px;
    }

    .kts-cards-track::-webkit-scrollbar {
        display: none;
    }

    .kts-dest-card {
        width: 100px;
        height: 140px;
    }

    .kts-counter {
        display: none;
    }

    .kts-dots {
        bottom: 14px;
    }

    .kts-slider {
        height: 90vh;
    }
}

@media (max-width: 480px) {
    .kts-slide-title {
        font-size: 2rem;
    }
    .kts-slide-desc {
        display: none;
    }
    .kts-dest-card {
        width: 85px;
        height: 120px;
    }
    .kts-card-name {
        font-size: 0.75rem;
    }
}
