/* =====================================================================
   Category cross-links — closing block on category and continent pages.
   Same card treatment as the "other continents" block above it, on a plain
   dark ground so two textured sections never stack.
   ===================================================================== */

.cx-cross {
    background: #111214;
    padding: 56px 0 64px;
    position: relative;
}

.cx-cross::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: rgba(237, 227, 213, 0.18);
}

.cx-cross__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

/* ── Header ─────────────────────────────────────────────────────── */
.cx-cross__header {
    margin-bottom: 36px;
    text-align: center;
}

.cx-cross__eyebrow {
    display: inline-block;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #FF6A00;
    margin-bottom: 12px;
}

.cx-cross__h2 {
    font-size: 2rem;
    font-weight: 800;
    color: #EDE3D5;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin: 0 auto;
    max-width: 720px;
}

/* ── Grid — sized to the number of neighbours ────────────────────── */
.cx-cross__grid {
    display: grid;
    gap: 20px;
    margin: 0 auto;
}

.cx-cross__grid--1 {
    grid-template-columns: 1fr;
    max-width: 460px;
}

.cx-cross__grid--2 {
    grid-template-columns: repeat(2, 1fr);
    max-width: 820px;
}

.cx-cross__grid--3 {
    grid-template-columns: repeat(3, 1fr);
}

/* ── Embedded variant ────────────────────────────────────────────────
   A second group inside the "other continents" section: no ground of its
   own, separated by a rule, and on the parent's column grid so the cards
   line up with the continent cards above them.
   ------------------------------------------------------------------- */
.cx-cross--embedded {
    margin-top: 44px;
    padding-top: 36px;
    border-top: 1px solid rgba(237, 227, 213, 0.22);
}

/* Nothing above it to divide from: the continents group had no cards. */
.cx-cross--embedded:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}

.cx-cross--embedded .cx-cross__header {
    margin-bottom: 28px;
}

.cx-cross--embedded .cx-cross__h2 {
    font-size: 1.5rem;
}

.cx-cross--embedded .cx-cross__grid {
    grid-template-columns: repeat(3, 1fr);
    max-width: none;
    margin: 0;
}

/* ── Card ────────────────────────────────────────────────────────── */
.cx-cross__card {
    display: block;
    text-decoration: none;
    border-radius: 6px;
    overflow: hidden;
    transition: transform 0.25s ease;
}

.cx-cross__card:hover {
    transform: translateY(-4px);
}

.cx-cross__photo-wrap {
    position: relative;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    background: #222326;
}

.cx-cross__photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.cx-cross__card:hover .cx-cross__photo {
    transform: scale(1.05);
}

.cx-cross__photo--empty {
    width: 100%;
    height: 100%;
    background: #222326;
}

.cx-cross__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(17, 18, 20, 0.78) 0%,
        rgba(17, 18, 20, 0.28) 55%,
        rgba(17, 18, 20, 0.12) 100%
    );
    pointer-events: none;
}

/* Tour count badge (top-right corner) */
.cx-cross__badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #FF6A00;
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 5px 10px;
    border-radius: 2px;
    line-height: 1;
    white-space: nowrap;
    z-index: 2;
}

/* Category name — sits above the CTA, both anchored to the bottom */
.cx-cross__name {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 0 16px 38px;
    font-size: 1.4rem;
    font-weight: 800;
    color: #EDE3D5;
    text-align: center;
    margin: 0;
    line-height: 1.15;
    /* Uppercase by design — the translated category names are stored in mixed
       case ("experience travels"), and the caps are the house look anyway. */
    text-transform: uppercase;
    letter-spacing: 0.02em;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.55);
    z-index: 2;
}

.cx-cross__cta {
    position: absolute;
    bottom: 14px;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #FF6A00;
    z-index: 3;
}

.cx-cross__card:hover .cx-cross__cta {
    text-decoration: underline;
}

/* ── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 960px) {
    .cx-cross__inner {
        padding: 0 20px;
    }

    .cx-cross__h2 {
        font-size: 1.6rem;
    }

    .cx-cross__grid--3,
    .cx-cross--embedded .cx-cross__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 560px) {
    .cx-cross {
        padding: 40px 0 44px;
    }

    .cx-cross__grid--2,
    .cx-cross__grid--3 {
        grid-template-columns: 1fr;
        max-width: 420px;
    }

    .cx-cross--embedded {
        margin-top: 32px;
        padding-top: 28px;
    }

    .cx-cross--embedded .cx-cross__grid {
        grid-template-columns: 1fr;
    }

    .cx-cross__photo-wrap {
        aspect-ratio: 16 / 9;
    }

    .cx-cross__name {
        font-size: 1.35rem;
    }
}
