/* =====================================================================
   Continent transit tours — the crossings, first block under the hero.
   Milk ground, white cards, orange only on the call to action.
   ===================================================================== */

.cp-transit {
    background: #EDE3D5;
    padding: clamp(48px, 6vw, 84px) 0 clamp(48px, 6vw, 76px);
}

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

/* ── Header ───────────────────────────────────────────────────────── */
.cp-transit__header {
    max-width: 720px;
    margin-bottom: clamp(28px, 3.5vw, 44px);
}

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

.cp-transit__h2 {
    font-size: clamp(1.75rem, 3.2vw, 2.6rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: #111214;
    margin: 0 0 12px;
}

.cp-transit__lead {
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(17, 18, 20, 0.66);
    margin: 0;
}

/* ── Grid ─────────────────────────────────────────────────────────── */
.cp-transit__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
    gap: clamp(20px, 2vw, 30px);
}

/* ── Card ─────────────────────────────────────────────────────────── */
.cp-transit-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid rgba(17, 18, 20, 0.08);
    overflow: hidden;
    animation: cp-transit-in 0.5s both;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.cp-transit-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 38px rgba(17, 18, 20, 0.14);
    border-color: rgba(17, 18, 20, 0.14);
}

/* Cards past the first two rows, until the button lifts them in. */
.cp-transit-card.is-folded { display: none; }

@keyframes cp-transit-in {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
    .cp-transit-card { animation: none; }
    .cp-transit-card:hover { transform: none; }
}

/* ── Card media: the swipeable photo strip ────────────────────────── */
.cp-transit-card__media {
    position: relative;
    background: #111214;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.cp-transit-card__strip {
    display: flex;
    height: 100%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
}

.cp-transit-card__strip::-webkit-scrollbar { display: none; }

.cp-transit-card__slide {
    flex: 0 0 100%;
    scroll-snap-align: center;
    height: 100%;
}

.cp-transit-card__slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Photo nav — visible on touch, revealed on hover for a mouse */
.cp-transit-card__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background: rgba(17, 18, 20, 0.5);
    color: #fff;
    font-size: 20px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0 0 2px;
    opacity: 0;
    transition: opacity 0.18s ease, background 0.18s ease;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.cp-transit-card:hover .cp-transit-card__nav,
.cp-transit-card__nav:focus-visible { opacity: 1; }

.cp-transit-card__nav:hover { background: #FF6A00; }
.cp-transit-card__nav--prev { left: 10px; }
.cp-transit-card__nav--next { right: 10px; }

@media (hover: none) {
    .cp-transit-card__nav { opacity: 1; }
}

/* Dots */
.cp-transit-card__dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 10px;
    z-index: 3;
    display: flex;
    justify-content: center;
    gap: 6px;
    pointer-events: none;
}

.cp-transit-card__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.45);
    transition: background 0.18s ease, transform 0.18s ease;
}

.cp-transit-card__dot.is-active {
    background: #fff;
    transform: scale(1.35);
}

/* Badges: how many countries (left), how long (right) */
.cp-transit-card__badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 3;
    background: #FF6A00;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    padding: 6px 11px;
}

.cp-transit-card__badge--days {
    left: auto;
    right: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(17, 18, 20, 0.62);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

/* ── Card body ────────────────────────────────────────────────────── */
.cp-transit-card__body {
    display: flex;
    flex-direction: column;
    gap: 9px;
    padding: 14px 16px 15px;
    flex: 1 1 auto;
}

.cp-transit-card__title {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.26;
    letter-spacing: -0.01em;
    color: #111214;
    margin: 0;
    /* Two lines, so a long tour name cannot stretch one card past its row.
       The full name stays in the link's title attribute. */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.cp-transit-card__title a:hover { color: #FF6A00; }

/* Countries */
.cp-transit-card__countries {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.cp-transit-card__country {
    font-size: 11px;
    line-height: 1;
    color: #111214;
    background: #EDE3D5;
    padding: 5px 9px;
    white-space: nowrap;
}

/* A country outside this continent — on the page, but not of it. */
.cp-transit-card__country--away {
    background: transparent;
    color: rgba(17, 18, 20, 0.5);
    box-shadow: inset 0 0 0 1px rgba(17, 18, 20, 0.14);
}

.cp-transit-card__country.is-folded { display: none; }

.cp-transit-card__chip-more {
    font-size: 11px;
    line-height: 1;
    font-weight: 600;
    color: #FF6A00;
    background: transparent;
    border: 1px solid rgba(255, 106, 0, 0.4);
    padding: 5px 9px;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.16s ease, color 0.16s ease;
}

.cp-transit-card__chip-more:hover {
    background: #FF6A00;
    color: #fff;
}

/* Departures */
.cp-transit-card__date-list {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.cp-transit-card__date {
    font-size: 11px;
    line-height: 1;
    font-weight: 600;
    color: #111214;
    padding: 5px 9px;
    box-shadow: inset 0 0 0 1px rgba(17, 18, 20, 0.14);
    white-space: nowrap;
}

.cp-transit-card__date.is-folded { display: none; }

.cp-transit-card__no-dates {
    font-size: 11px;
    color: rgba(17, 18, 20, 0.5);
    font-style: italic;
}

/* Footer */
.cp-transit-card__footer {
    margin-top: auto;
    padding-top: 11px;
    border-top: 1px solid rgba(17, 18, 20, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.cp-transit-card__price {
    display: flex;
    align-items: baseline;
    gap: 5px;
}

.cp-transit-card__price-label {
    font-size: 12px;
    color: rgba(17, 18, 20, 0.5);
}

.cp-transit-card__price-value {
    font-size: 1.06rem;
    font-weight: 800;
    color: #111214;
    letter-spacing: -0.01em;
}

.cp-transit-card__cta {
    display: inline-block;
    padding: 9px 16px;
    background: #FF6A00;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.18s ease, transform 0.15s ease;
}

.cp-transit-card__cta:hover {
    background: #e05c00;
    color: #fff;
    transform: translateY(-1px);
}

/* ── Show-all button ──────────────────────────────────────────────── */
.cp-transit__more-wrap {
    display: flex;
    justify-content: center;
    margin-top: clamp(26px, 3vw, 38px);
}

.cp-transit__more-btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 14px 30px;
    background: transparent;
    border: 1.5px solid #111214;
    color: #111214;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease;
}

.cp-transit__more-btn:hover {
    background: #111214;
    color: #EDE3D5;
}

/* ── Small screens ────────────────────────────────────────────────── */
@media (max-width: 640px) {
    .cp-transit__grid { grid-template-columns: 1fr; }
    .cp-transit-card__body { padding: 14px 14px 15px; }
    .cp-transit-card__footer { flex-wrap: wrap; }
}
