/* =====================================================================
   Country Tours Block — horizontal scroller layout
   Left: heading panel | Right: cards single-row scrollable
   ===================================================================== */

/* ── Section wrapper ──────────────────────────────────────────────── */
.cp-tours {
    background: #111 url('/images/backgrounds/37576a01-e6bd-43ae-b498-1937d8e591c2.webp') center center / cover no-repeat;
    overflow: hidden;
}

.cp-tours__inner {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    height: 640px;
    padding-left: clamp(24px, 4vw, 80px);
    padding-right: 0;
    padding-top: 50px;
    padding-bottom: 30px;   
    gap: 40px;
}

/* ── LEFT: heading panel ──────────────────────────────────────────── */
.cp-tours__head {
    flex: 0 0 240px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-bottom: 60px; /* pushes content slightly above center */
    gap: 10px;
}

.cp-tours__h2 {
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.15;
    margin: 0;
    letter-spacing: -0.02em;
}

.cp-tours__h3 {
    font-size: 0.88rem;
    font-weight: 400;
    color: rgba(255,255,255,0.42);
    margin: 0;
    letter-spacing: 0.02em;
}

.cp-tours__more {
    margin-top: 24px;
}

.cp-tours__more-btn {
    display: inline-block;
    padding: 14px 28px;
    background: #FF6A00;
    border: none;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: background 0.18s, transform 0.15s;
    white-space: nowrap;
    box-shadow: 0 4px 18px rgba(255,106,0,0.30);
}

.cp-tours__more-btn:hover {
    background: #e05c00;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 22px rgba(255,106,0,0.40);
}

.cp-tours__more-btn:active {
    transform: translateY(0);
    box-shadow: 0 3px 12px rgba(255,106,0,0.30);
}

/* ── RIGHT: track wrapper (positions nav arrows) ─────────────────── */
.cp-tours__track {
    flex: 1 1 0;
    position: relative;
    overflow: visible;
    display: flex;
    align-items: stretch;
    /* clipping via the section overflow:hidden covers the right */
}

/* Nav arrows */
.cp-tours__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.25);
    background: rgba(0,0,0,0.55);
    color: #fff;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.18s, border-color 0.18s, transform 0.18s;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    padding: 0;
    user-select: none;
}

.cp-tours__nav:hover {
    background: #FF7700;
    border-color: #FF7700;
    transform: translateY(-50%) scale(1.08);
}

.cp-tours__nav--prev { left: 8px; }
.cp-tours__nav--next { right: 30px; }

.cp-tours__nav.is-hidden {
    opacity: 0;
    pointer-events: none;
}

/* ── RIGHT: horizontal scroll ─────────────────────────────────────── */
.cp-tours__scroll {
    flex: 1 1 0;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 14px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    cursor: grab;
    padding: 24px 48px;
    scroll-behavior: smooth;
}

.cp-tours__scroll::-webkit-scrollbar { display: none; }
.cp-tours__scroll.is-dragging { cursor: grabbing; user-select: none; scroll-behavior: auto; }

/* ── Tour card ────────────────────────────────────────────────────── */
.cp-tour-card {
    flex: 0 0 320px;
    height: 100%;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    opacity: 0;
    animation: cpTourFadeIn 0.5s ease forwards;
}

@keyframes cpTourFadeIn {
    to { opacity: 1; }
}

/* ── Card image — fills 100% of card height ──────────────────────── */
.cp-tour-card__img {
    position: absolute;
    inset: 0;
    display: block;
    text-decoration: none;
}

.cp-tour-card__img-bg {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.45s ease;
}

.cp-tour-card:hover .cp-tour-card__img-bg {
    transform: scale(1.05);
}

/* Gradient overlay */
.cp-tour-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        transparent 35%,
        rgba(0,0,0,0.70) 70%,
        rgba(0,0,0,0.92) 100%
    );
    pointer-events: none;
    z-index: 1;
}

/* ── Card body — overlaid at bottom ──────────────────────────────── */
.cp-tour-card__body {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

/* Breadcrumb */
.cp-tour-card__crumb {
    display: flex;
    align-items: center;
    gap: 0;
    font-size: 10px;
    color: rgba(255,255,255,0.55);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    flex-wrap: wrap;
}

.cp-tour-card__crumb-cat {
    color: #FF7700;
    font-weight: 700;
}

.cp-tour-card__crumb-sep {
    margin: 0 5px;
    opacity: 0.35;
}

/* Title */
.cp-tour-card__title {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cp-tour-card__title a {
    color: inherit;
    text-decoration: none;
}

/* Upcoming dates — hidden by default, slide in on hover */
.cp-tour-card__dates {
    display: flex;
    flex-direction: column;
    gap: 2px;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transform: translateY(-4px);
    transition: max-height 0.35s ease, opacity 0.35s ease, transform 0.35s ease;
    pointer-events: none;
}

.cp-tour-card:hover .cp-tour-card__dates {
    max-height: 320px;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.cp-tour-card__dates span {
    font-size: 12px;
    color: #FF6A00;
    font-weight: 600;
    letter-spacing: 0.03em;
    white-space: nowrap;
}

.cp-tour-card__dates span i {
    font-size: 10px;
    margin-right: 3px;
    opacity: 0.85;
}

.cp-tour-card__date--extra {
    display: none;
}

.cp-tour-card__dates.is-expanded .cp-tour-card__date--extra {
    display: block;
}

.cp-tour-card__dates-more {
    font-size: 10px;
    color: rgba(255,255,255,0.55);
    background: none;
    border: none;
    cursor: pointer;
    padding: 3px 0 0;
    text-align: left;
    text-decoration: underline;
    text-underline-offset: 2px;
    letter-spacing: 0.02em;
    transition: color 0.2s;
}

.cp-tour-card__dates-more:hover {
    color: rgba(255,255,255,0.9);
}

/* Meta */
.cp-tour-card__meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: rgba(255,255,255,0.55);
}

.cp-tour-card__meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.cp-tour-card__meta-item i {
    font-size: 11px;
    opacity: 0.65;
}

/* Footer */
.cp-tour-card__footer {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-top: 6px;
}

/* Rating */
.cp-tour-card__rating {
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: 12px;
    color: rgba(255,255,255,0.7);
}

.cp-tour-card__stars {
    color: #FF7700;
    font-size: 10px;
    letter-spacing: -1px;
}

/* Price */
.cp-tour-card__price {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.cp-tour-card__price-label {
    font-size: 10px;
    color: rgba(255,255,255,0.40);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.cp-tour-card__price-value {
    font-size: 19px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.5px;
    line-height: 1;
}

/* ── Responsive ───────────────────────────────────────────────────── */
@media (max-width: 960px) {
    .cp-tours__inner {
        padding: 0 24px;
        gap: 24px;
    }

    .cp-tours__head {
        flex: 0 0 200px;
    }

    .cp-tours__nav {
        width: 44px;
        height: 44px;
        font-size: 22px;
    }
}

@media (max-width: 700px) {
    .cp-tours__inner {
        flex-direction: column;
        height: auto;
        padding: 32px 20px 0;
        gap: 20px;
    }

    .cp-tours__head {
        flex: none;
        padding-bottom: 0;
        gap: 8px;
    }

    .cp-tours__h2 {
        font-size: 1.6rem;
    }

    .cp-tours__nav { display: none; }

    .cp-tours__scroll {
        padding: 16px 0 28px;
    }

    .cp-tour-card {
        flex: 0 0 240px;
        height: 340px;
    }
}
