/*
 * Homepage «رازهای یک سفر موفق» — Figma Group 1000008966.
 * After the dark discover section; cards styled in travel-secret.css.
 */

.tourbin-front-page > .tourbin-secrets-row,
.tourbin-secrets-row--singular {
    padding-block: clamp(2.5rem, 5vw, 4rem) clamp(3rem, 6vw, 5rem);
    overflow: hidden;
    background: #ffffff;
}

.tourbin-front-page > .tourbin-secrets-row {
    background: #ffffff;
}

.tourbin-secrets-row--singular .tourbin-secrets-row__title {
    color: #000000;
}

.tourbin-secrets-row__inner {
    width: 100%;
    max-width: 1920px;
    margin-inline: auto;
    position: relative;
}

.tourbin-secrets-row__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    width: min(100% - 2.5rem, 1100px);
    margin-inline: auto;
    margin-bottom: clamp(1.75rem, 3vw, 2.75rem);
    /* Physical sides: CTA left, title block right (matches Figma). */
    direction: ltr;
}

.tourbin-secrets-row__heading-block {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
    min-width: 0;
    direction: rtl;
    text-align: right;
}

.tourbin-secrets-row__speech {
    width: 206px;
    max-width: 70vw;
}

.tourbin-secrets-row__speech-shape {
    position: relative;
    width: 100%;
    aspect-ratio: 206 / 63.1;
    container-type: inline-size;
    filter: drop-shadow(0 4px 50px rgba(0, 0, 0, 0.1));
}

.tourbin-secrets-row__speech-svg {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.tourbin-secrets-row__speech-label {
    position: absolute;
    top: 18%;
    left: 10%;
    z-index: 1;
    width: 80%;
    height: 48%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family:
        "Liana-soft", "Liana-soft-FD", "Liana", var(--tourbin-font, sans-serif);
    font-weight: 700;
    font-size: clamp(14px, 1.4vw, 18px);
    line-height: 1.35;
    color: #000;
    text-align: center;
    white-space: nowrap;
}

.tourbin-secrets-row__title {
    margin: 0;
    font-family: "Liana-soft-FD", "Liana", var(--tourbin-font, sans-serif);
    font-weight: 700;
    font-size: clamp(28px, 3.2vw, 40px);
    line-height: 1.75;
    color: #000;
    text-align: right;
}

.tourbin-secrets-row__cta {
    display: inline-flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    min-height: 48px;
    background: #fff428;
    box-shadow: 0 4px 8px rgba(255, 207, 1, 0.2);
    border-radius: 12px;
    font-family: "Vazirmatn", var(--tourbin-font, sans-serif);
    font-weight: 600;
    font-size: 15px;
    line-height: 23px;
    color: #000;
    text-decoration: none;
    white-space: nowrap;
    direction: rtl;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.tourbin-secrets-row__cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(255, 207, 1, 0.35);
    color: #000;
}

.tourbin-secrets-row__cta-arrow {
    display: block;
    flex-shrink: 0;
}

.tourbin-secrets-row__viewport {
    position: relative;
    width: 100%;
    overflow: hidden;
    cursor: grab;
    touch-action: pan-y;
    user-select: none;
    -webkit-user-select: none;
    /* Force LTR track math so translateX loop never opens an empty gap in RTL pages. */
    direction: ltr;
}

.tourbin-secrets-row__viewport.is-dragging {
    cursor: grabbing;
}

.tourbin-secrets-row__track {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 30px;
    width: max-content;
    will-change: transform;
    padding-block: 0.25rem 0.75rem;
    direction: ltr;
    transform: translate3d(0, 0, 0);
}

.tourbin-secrets-row__item {
    flex: 0 0 429px;
    width: 429px;
    max-width: min(429px, 82vw);
    min-width: 0;
    direction: rtl;
}

.tourbin-secrets-row__item .tourbin-secret-card {
    width: 100%;
    max-width: 429px;
    height: 634px;
    min-height: 634px;
}

.tourbin-secrets-row__empty {
    margin: 0;
    padding: 2rem 1.25rem;
    text-align: center;
    color: #64748b;
    font-family: "Vazirmatn", var(--tourbin-font, sans-serif);
}

@media (max-width: 720px) {
    .tourbin-secrets-row__header {
        flex-direction: column;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: center;
        width: calc(100% - 2rem);
        text-align: center;
        gap: 1rem;
        direction: rtl;
    }

    .tourbin-secrets-row__heading-block {
        order: 0;
        width: 100%;
        align-items: center;
        justify-content: center;
        text-align: center;
        margin-inline: auto;
    }

    .tourbin-secrets-row__speech {
        align-self: center;
        margin-inline: auto;
    }

    .tourbin-secrets-row__title {
        text-align: center !important;
        width: 100%;
        margin-inline: auto;
        display: block;
    }

    .tourbin-secrets-row__cta {
        order: 0;
        align-self: center;
    }

    .tourbin-secrets-row__viewport {
        overflow: visible;
        cursor: default;
        touch-action: auto;
        user-select: auto;
    }

    .tourbin-secrets-row__track {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        max-width: 429px;
        margin-inline: auto;
        gap: 1.25rem;
        padding-inline: 1rem;
        padding-block: 0.5rem 1rem;
        transform: none !important;
        will-change: auto;
    }

    .tourbin-secrets-row__item {
        flex: 0 0 auto;
        width: 100%;
        max-width: none;
    }

    .tourbin-secrets-row__item .tourbin-secret-card {
        height: auto;
        min-height: 0;
    }

    .tourbin-secrets-row__item[data-clone] {
        display: none !important;
    }

    .tourbin-secrets-row__speech-label {
        white-space: normal;
        font-size: 13px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tourbin-secrets-row__track {
        transition: none !important;
    }
}
