/* =====================================================================
   Continent countries — one scrollable line, a tour count on every card.
   ===================================================================== */

.cp-crail {
    background: #fff;
    padding: clamp(44px, 5vw, 72px) 0 clamp(44px, 5vw, 72px);
    overflow: hidden;
}

.cp-crail__inner {
    max-width: 1360px;
    margin: 0 auto;
    padding: 0 clamp(20px, 4vw, 64px);
}

/* ── Header ───────────────────────────────────────────────────────── */
.cp-crail__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: clamp(22px, 2.6vw, 32px);
}

.cp-crail__eyebrow {
    display: block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #FF6A00;
    margin-bottom: 10px;
}

.cp-crail__h2 {
    font-size: clamp(1.6rem, 2.8vw, 2.3rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.02em;
    color: #111214;
    margin: 0;
}

.cp-crail__controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cp-crail__search {
    width: 210px;
    max-width: 46vw;
    padding: 11px 14px;
    font-size: 13px;
    color: #111214;
    background: #fff;
    border: 1px solid rgba(17, 18, 20, 0.18);
    outline: none;
    transition: border-color 0.16s ease;
}

.cp-crail__search:focus { border-color: #FF6A00; }

.cp-crail__nav-group {
    display: flex;
    gap: 8px;
}

.cp-crail__nav {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1.5px solid rgba(17, 18, 20, 0.18);
    background: #fff;
    color: #111214;
    font-size: 22px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 0 3px;
    cursor: pointer;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, opacity 0.18s ease;
}

.cp-crail__nav:hover {
    background: #111214;
    border-color: #111214;
    color: #fff;
}

.cp-crail__nav.is-disabled {
    opacity: 0.3;
    pointer-events: none;
}

@media (max-width: 780px) {
    .cp-crail__nav-group { display: none; }
}

/* ── The rail ─────────────────────────────────────────────────────── */
.cp-crail__track {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
    /* room for the card lift on hover */
    padding: 6px 0 10px;
    /* the rail runs to the viewport edge instead of stopping at the gutter */
    margin-right: calc(-1 * clamp(20px, 4vw, 64px));
    padding-right: clamp(20px, 4vw, 64px);
}

.cp-crail__track::-webkit-scrollbar { display: none; }

/* ── Country card ─────────────────────────────────────────────────── */
.cp-crail__card {
    position: relative;
    flex: 0 0 auto;
    width: 224px;
    height: 290px;
    scroll-snap-align: start;
    overflow: hidden;
    text-decoration: none;
    background: #111214;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cp-crail__card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 34px rgba(17, 18, 20, 0.22);
}

.cp-crail__photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.cp-crail__card:hover .cp-crail__photo { transform: scale(1.06); }

.cp-crail__photo--empty {
    background: linear-gradient(160deg, #2a2b2f 0%, #111214 100%);
}

.cp-crail__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top,
        rgba(17, 18, 20, 0.88) 0%,
        rgba(17, 18, 20, 0.42) 42%,
        rgba(17, 18, 20, 0.06) 100%);
}

.cp-crail__meta {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 16px 16px 18px;
}

.cp-crail__name {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.2;
    color: #fff;
    letter-spacing: -0.01em;
}

.cp-crail__count {
    display: inline-block;
    align-self: flex-start;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #EDE3D5;
    background: rgba(255, 106, 0, 0.92);
    padding: 4px 9px;
}

.cp-crail__no-results {
    font-size: 14px;
    color: rgba(17, 18, 20, 0.6);
    margin: 18px 0 0;
}

@media (prefers-reduced-motion: reduce) {
    .cp-crail__track { scroll-behavior: auto; }
    .cp-crail__card:hover { transform: none; }
    .cp-crail__card:hover .cp-crail__photo { transform: none; }
}

@media (max-width: 640px) {
    .cp-crail__card { width: 176px; height: 236px; }
    .cp-crail__header { align-items: flex-start; }
    .cp-crail__search { width: 100%; max-width: none; }
    .cp-crail__controls { width: 100%; }
}
