/* YourTourKey home — recently-viewed.
 * Masaüstü, tablet ve mobil kurallar birlikte tutulur.
 * ytk-home.css dosyasından taşınmıştır.
 */

/* Recently viewed tours under the homepage hero. */
.ytk-home-recent {
    padding: 34px 0 20px;
    background: #fff;
}

.ytk-home-recent-title {
    margin: 0 0 17px;
    color: #1a2b49;
    font-size: 22px;
    line-height: 1.25;
    font-weight: 900;
    letter-spacing: -0.4px;
}

.ytk-home-recent-carousel {
    position: relative;
}

.ytk-home-recent-viewport {
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.ytk-home-recent-viewport::-webkit-scrollbar {
    display: none;
}

.ytk-home-recent-track {
    display: flex;
    gap: 18px;
}

.ytk-home-recent-track.products {
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: flex-start;
}

.ytk-home-recent-track.products::before,
.ytk-home-recent-track.products::after { content: none; }

.ytk-home-recent-track .ytk-home-recent-card.product {
    flex: 0 0 calc((100% - 36px) / 3);
    float: none;
    width: auto;
    margin: 0;
    padding: 0 10px;
    min-width: 0;
    scroll-snap-align: start;
    border: 1px solid rgba(26, 43, 73, 0.12);
    border-radius: 10px;
    overflow: hidden;
}

.ytk-home-recent-arrow {
    position: absolute;
    z-index: 2;
    top: 50%;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    transform: translateY(-50%);
    border: 2px solid #1a2b49;
    border-radius: 50%;
    background: #fff;
    color: #1a2b49;
    box-shadow: 0 2px 10px rgba(26, 43, 73, 0.12);
    cursor: pointer;
}

.ytk-home-recent-arrow .ytk-icon {
    font-size: 25px;
    line-height: 1;
}

.ytk-home-recent-arrow--previous {
    left: -16px;
}

.ytk-home-recent-arrow--next {
    right: -16px;
}

.ytk-home-recent-arrow[hidden] {
    display: none;
}

.ytk-home-recent-arrow:focus-visible,
.ytk-home-recent-viewport:focus-visible,
.ytk-home-recent-card a:focus-visible {
    outline: 2px solid #0069e6;
    outline-offset: 2px;
}

@media (max-width: 900px) {
    .ytk-home-recent-track .ytk-home-recent-card.product {
            flex-basis: calc((100% - 18px) / 2);
        }
}

@media (max-width: 620px) {
    .ytk-home-recent {
            padding: 28px 0 8px;
        }

    .ytk-home-recent-title {
            margin-bottom: 14px;
            font-size: 20px;
        }

    .ytk-home-recent-track {
            gap: 12px;
        }

    .ytk-home-recent-track .ytk-home-recent-card.product {
            flex-basis: min(87%, 360px);
            min-width: 320px;
        }

    .ytk-home-recent-arrow {
            display: none;
        }
}

@media (max-width: 380px) {
    .ytk-home-recent-track .ytk-home-recent-card.product {
            min-width: 0;
            flex-basis: 100%;
        }

    .ytk-home-recent .products .ytk-home-product-image {
            width: 88px;
            height: 124px;
            flex-basis: 88px;
        }
}

@media (max-width: 340px) {
    .ytk-home-recent .products .ytk-card-labels--meta .ytk-card-label {
            padding: 5px 4px;
            font-size: 10px;
        }

    .ytk-home-recent .products .ytk-home-product-price strong {
            font-size: 15px;
        }
}

@media (prefers-reduced-motion: reduce) {
    .ytk-home-recent-viewport {
            scroll-behavior: auto;
        }
}
