/* =========================================================
   Content Carousel – destination card style
   ========================================================= */

.cc-carousel-wrap {
    --cc-desktop: 4;
    --cc-tablet: 2;
    --cc-mobile: 1;
    --cc-gap: 40px;
    --cc-card-height: 560px;
    --cc-transition: 500ms;
    --cc-radius: 28px;
    --cc-accent: #f5c33b;        /* location label colour  */
    --cc-verified: #2f6fec;      /* badge tick colour      */
    --cc-fade: 9%;               /* width of the edge fade */
    --cc-g: var(--cc-gap);
    position: relative;
    width: 100%;
    box-sizing: border-box;
    padding: 0;
}

.cc-carousel-wrap *,
.cc-carousel-wrap *::before,
.cc-carousel-wrap *::after { box-sizing: border-box; }

/* ---------- viewport + track ---------- */

.cc-carousel-viewport {
    position: relative;
    overflow: hidden;
    width: 100%;
    /* room for the card shadow, so it is not clipped */
    padding: 20px 0 40px;
    touch-action: pan-y;
    -webkit-user-select: none;
    user-select: none;
    cursor: grab;
}

.cc-carousel-wrap.is-dragging .cc-carousel-viewport { cursor: grabbing; }

.cc-mode-marquee.cc-has-fade .cc-carousel-viewport {
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 var(--cc-fade), #000 calc(100% - var(--cc-fade)), transparent 100%);
            mask-image: linear-gradient(to right, transparent 0, #000 var(--cc-fade), #000 calc(100% - var(--cc-fade)), transparent 100%);
}

.cc-carousel-track {
    display: flex;
    gap: var(--cc-g);
    will-change: transform;
    transform: translate3d(0, 0, 0);
}

/* step mode keeps a CSS transition; continuous mode is driven per-frame by JS */
.cc-mode-slide .cc-carousel-track {
    transition: transform var(--cc-transition) cubic-bezier(.22, .61, .36, 1);
}
.cc-mode-slide.is-dragging .cc-carousel-track { transition: none; }

.cc-slide {
    flex: 0 0 calc((100% - (var(--cc-g) * (var(--cc-desktop) - 1))) / var(--cc-desktop));
    min-width: 0;
}

/* ---------- card ---------- */

.cc-card {
    position: relative;
    height: var(--cc-card-height);
    overflow: hidden;
    border-radius: var(--cc-radius);
    background: #1d2433;
    color: #fff;
    isolation: isolate;
    box-shadow: 0 18px 40px -18px rgba(15, 23, 42, .45);
    transform: translateZ(0);
    transition: transform .5s cubic-bezier(.22, .61, .36, 1), box-shadow .5s ease;
}

.cc-card.cc-no-image {
    background: linear-gradient(160deg, #2b3a55 0%, #121826 100%);
}

.cc-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 28px 50px -20px rgba(15, 23, 42, .55);
}

.cc-image {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.cc-image img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    transform: scale(1.01);
    transition: transform 1.2s cubic-bezier(.22, .61, .36, 1);
    -webkit-user-drag: none;
    pointer-events: none;
}

.cc-card:hover .cc-image img { transform: scale(1.07); }

.cc-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        linear-gradient(to top, rgba(8, 12, 22, .82) 0%, rgba(8, 12, 22, .45) 22%, rgba(8, 12, 22, 0) 48%),
        linear-gradient(to bottom, rgba(8, 12, 22, .18) 0%, rgba(8, 12, 22, 0) 22%);
}

/* ---------- verified pill ---------- */

.cc-badge {
    position: absolute;
    top: 26px;
    left: 26px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 7px 16px 7px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .94);
    -webkit-backdrop-filter: blur(8px);
            backdrop-filter: blur(8px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, .12);
    color: #1f2937;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: .08em;
    text-transform: uppercase;
    white-space: nowrap;
}

.cc-badge-icon {
    display: inline-flex;
    width: 20px;
    height: 20px;
    color: var(--cc-verified);
}
.cc-badge-icon svg { width: 100%; height: 100%; display: block; }

/* ---------- bottom text ---------- */

.cc-body {
    position: absolute;
    left: 30px;
    right: 30px;
    bottom: 30px;
    z-index: 2;
    text-align: left;
}

.cc-location {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 10px;
    color: var(--cc-accent);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: .22em;
    text-transform: uppercase;
}
.cc-location svg { width: 16px; height: 16px; flex: 0 0 16px; }

.cc-carousel-wrap .cc-title {
    margin: 0;
    padding: 0;
    color: #fff;
    font-size: clamp(22px, 2vw, 32px);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -.02em;
    text-shadow: 0 2px 14px rgba(0, 0, 0, .35);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cc-content {
    margin-top: 8px;
    color: rgba(255, 255, 255, .85);
    font-size: 15px;
    line-height: 1.5;
}
.cc-content p { margin: 0 0 .5em; }
.cc-content p:last-child { margin-bottom: 0; }
.cc-content a { color: #fff; position: relative; z-index: 4; }

/* whole-card click target */
.cc-card-link {
    position: absolute;
    inset: 0;
    z-index: 3;
    border-radius: inherit;
    -webkit-user-drag: none;
}
.cc-card-link:focus-visible {
    outline: 3px solid var(--cc-accent);
    outline-offset: -3px;
}

/* ---------- arrows ---------- */

.cc-nav {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-top: 4px;
}

.cc-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 1px solid #e3e6ec;
    border-radius: 50%;
    background: #fff;
    color: #111827;
    box-shadow: 0 6px 18px rgba(15, 23, 42, .08);
    cursor: pointer;
    transition: background .25s ease, color .25s ease, transform .25s ease, border-color .25s ease;
}
.cc-arrow svg { width: 20px; height: 20px; }
.cc-arrow:hover { background: #111827; border-color: #111827; color: #fff; transform: translateY(-2px); }
.cc-arrow:disabled { opacity: .4; cursor: not-allowed; transform: none; }

/* ---------- dots (step mode) ---------- */

.cc-dots {
    display: flex;
    justify-content: center;
    gap: 7px;
    align-items: center;
    margin-top: 14px;
}

.cc-dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: #cfd4dc;
    cursor: pointer;
    transition: width .35s ease, background .35s ease;
}
.cc-dot.is-active { width: 26px; background: #111827; }

/* ---------- responsive ---------- */

@media (max-width: 1024px) {
    .cc-carousel-wrap { --cc-g: min(var(--cc-gap), 28px); }
    .cc-slide {
        flex-basis: calc((100% - (var(--cc-g) * (var(--cc-tablet) - 1))) / var(--cc-tablet));
    }
    .cc-mode-marquee .cc-slide {
        /* show a peek of the next card while gliding */
        flex-basis: calc((100% - (var(--cc-g) * var(--cc-tablet))) / (var(--cc-tablet) + .3));
    }
    .cc-card { height: min(var(--cc-card-height), 520px); }
}

@media (max-width: 767px) {
    .cc-carousel-wrap { --cc-g: min(var(--cc-gap), 18px); --cc-radius: 22px; --cc-fade: 5%; }
    .cc-slide {
        flex-basis: calc((100% - (var(--cc-g) * (var(--cc-mobile) - 1))) / var(--cc-mobile));
    }
    .cc-mode-marquee .cc-slide {
        flex-basis: calc((100% - (var(--cc-g) * var(--cc-mobile))) / (var(--cc-mobile) + .25));
    }
    .cc-card { height: min(var(--cc-card-height), 125vw, 480px); }
    .cc-badge { top: 18px; left: 18px; font-size: 12px; }
    .cc-body { left: 22px; right: 22px; bottom: 22px; }
    .cc-location { font-size: 12px; }
    .cc-carousel-wrap .cc-title { font-size: 24px; }
}

@media (hover: none) {
    .cc-card:hover { transform: none; }
    .cc-card:hover .cc-image img { transform: scale(1.01); }
}

@media (prefers-reduced-motion: reduce) {
    .cc-card, .cc-image img, .cc-mode-slide .cc-carousel-track { transition: none; }
}

/* =========================================================
   Shared pieces used by some designs (hidden by default)
   ========================================================= */

.cc-index,
.cc-go,
.cc-cta { display: none; }

.cc-cta svg,
.cc-go svg { width: 18px; height: 18px; flex: 0 0 18px; transition: transform .35s cubic-bezier(.22, .61, .36, 1); }
.cc-card:hover .cc-cta svg { transform: translateX(4px); }

/* =========================================================
   Design 2 – Frosted Glass
   ========================================================= */

.cc-style-glass .cc-overlay {
    background: linear-gradient(to top, rgba(8, 12, 22, .45) 0%, rgba(8, 12, 22, 0) 45%);
}
.cc-style-glass .cc-body {
    left: 14px;
    right: 14px;
    bottom: 14px;
    min-height: 96px;
    padding: 20px 84px 20px 22px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-radius: calc(var(--cc-radius) - 12px);
    background: rgba(255, 255, 255, .14);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
            backdrop-filter: blur(18px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, .28);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25);
}
.cc-style-glass .cc-location { margin-bottom: 6px; font-size: 12px; }
.cc-style-glass .cc-title { font-size: clamp(20px, 1.6vw, 26px); text-shadow: none; }
.cc-style-glass .cc-content { font-size: 14px; }
.cc-style-glass .cc-badge {
    background: rgba(255, 255, 255, .18);
    border: 1px solid rgba(255, 255, 255, .35);
    color: #fff;
}
.cc-style-glass .cc-badge-icon { color: #fff; }
.cc-style-glass .cc-badge-icon svg path { stroke: var(--cc-verified); }
.cc-style-glass .cc-go {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    right: 32px;
    bottom: 38px;
    z-index: 2;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #fff;
    color: #0f172a;
    transition: background .35s ease, color .35s ease;
}
.cc-style-glass .cc-card:hover .cc-go { background: var(--cc-accent); }
.cc-style-glass .cc-card:hover .cc-go svg { transform: rotate(-45deg); }

/* =========================================================
   Design 3 – Editorial Card
   ========================================================= */

.cc-style-editorial .cc-card {
    display: flex;
    flex-direction: column;
    padding: 12px;
    background: #fff;
    color: #0f172a;
    border: 1px solid #edf0f4;
    box-shadow: 0 14px 34px -20px rgba(15, 23, 42, .35);
}
.cc-style-editorial .cc-card:hover { box-shadow: 0 26px 48px -22px rgba(15, 23, 42, .4); }
.cc-style-editorial .cc-image {
    position: relative;
    inset: auto;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    border-radius: calc(var(--cc-radius) - 12px);
    background: #e5e7eb;
}
.cc-style-editorial .cc-no-image .cc-image,
.cc-style-editorial .cc-card.cc-no-image { background: #fff; }
.cc-style-editorial .cc-overlay { display: none; }
.cc-style-editorial .cc-badge { top: 26px; left: 26px; }
.cc-style-editorial .cc-body {
    position: relative;
    left: auto; right: auto; bottom: auto;
    padding: 20px 10px 8px;
}
.cc-style-editorial .cc-location { color: #64748b; font-size: 12px; letter-spacing: .18em; }
.cc-style-editorial .cc-location svg { color: var(--cc-accent); }
.cc-style-editorial .cc-title { color: #0f172a; text-shadow: none; font-size: clamp(20px, 1.6vw, 26px); }
.cc-style-editorial .cc-content { color: #475569; font-size: 14px; }
.cc-style-editorial .cc-content a { color: #0f172a; }
.cc-style-editorial .cc-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    padding-bottom: 3px;
    color: #0f172a;
    font-size: 14px;
    font-weight: 600;
    border-bottom: 2px solid var(--cc-accent);
}
.cc-style-editorial .cc-card-link:focus-visible { outline-offset: 2px; }

/* =========================================================
   Design 4 – Arch Gallery
   ========================================================= */

.cc-style-arch .cc-card {
    display: flex;
    flex-direction: column;
    overflow: visible;
    background: transparent;
    color: #0f172a;
    border-radius: 0;
    box-shadow: none;
}
.cc-style-arch .cc-card:hover { box-shadow: none; transform: none; }
.cc-style-arch .cc-image {
    position: relative;
    inset: auto;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    border-radius: 999px 999px var(--cc-radius) var(--cc-radius);
    background: #e5e7eb;
    box-shadow: 0 20px 40px -22px rgba(15, 23, 42, .5);
    transition: transform .6s cubic-bezier(.22, .61, .36, 1), border-radius .6s ease;
}
.cc-style-arch .cc-card:hover .cc-image { transform: translateY(-6px); }
.cc-style-arch .cc-overlay { display: none; }
.cc-style-arch .cc-badge {
    top: auto;
    bottom: 140px;
    left: 50%;
    transform: translateX(-50%);
}
.cc-style-arch .cc-body {
    position: relative;
    left: auto; right: auto; bottom: auto;
    min-height: 104px;
    padding: 22px 10px 0;
    text-align: center;
}
.cc-style-arch .cc-location {
    justify-content: center;
    color: #64748b;
    font-size: 12px;
}
.cc-style-arch .cc-location svg { color: var(--cc-accent); }
.cc-style-arch .cc-title {
    color: #0f172a;
    text-shadow: none;
    font-family: "Playfair Display", "Cormorant Garamond", Georgia, "Times New Roman", serif;
    font-weight: 600;
    font-size: clamp(24px, 2vw, 32px);
    letter-spacing: -.01em;
}
.cc-style-arch .cc-content { color: #64748b; font-size: 14px; }
.cc-style-arch .cc-card-link { border-radius: 999px 999px var(--cc-radius) var(--cc-radius); }

/* =========================================================
   Design 5 – Hover Reveal
   ========================================================= */

.cc-style-reveal .cc-card {
    background: #0b1120;
    box-shadow: 0 20px 44px -20px rgba(2, 6, 23, .7), inset 0 0 0 1px rgba(255, 255, 255, .08);
}
.cc-style-reveal .cc-image img { filter: saturate(1.05); }
.cc-style-reveal .cc-overlay {
    background:
        linear-gradient(to top, rgba(2, 6, 23, .92) 0%, rgba(2, 6, 23, .55) 35%, rgba(2, 6, 23, .05) 70%),
        linear-gradient(to bottom, rgba(2, 6, 23, .35) 0%, rgba(2, 6, 23, 0) 25%);
    transition: opacity .5s ease;
}
.cc-style-reveal .cc-card::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: inherit;
    background: linear-gradient(to top, rgba(2, 6, 23, .55), rgba(2, 6, 23, .1));
    opacity: 0;
    transition: opacity .5s ease;
    pointer-events: none;
}
.cc-style-reveal .cc-card:hover::after { opacity: 1; }
.cc-style-reveal .cc-index {
    display: block;
    position: absolute;
    top: 30px;
    right: 28px;
    z-index: 2;
    color: rgba(255, 255, 255, .85);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .14em;
    font-variant-numeric: tabular-nums;
}
.cc-style-reveal .cc-index::before {
    content: "";
    display: inline-block;
    width: 22px;
    height: 2px;
    margin-right: 10px;
    vertical-align: middle;
    background: var(--cc-accent);
}
.cc-style-reveal .cc-badge {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, .4);
    color: #fff;
    -webkit-backdrop-filter: none;
            backdrop-filter: none;
    box-shadow: none;
}
.cc-style-reveal .cc-title { font-size: clamp(26px, 2.3vw, 36px); line-height: 1.05; white-space: normal; }
.cc-style-reveal .cc-extra {
    display: grid;
    grid-template-rows: 0fr;
    opacity: 0;
    transition: grid-template-rows .5s cubic-bezier(.22, .61, .36, 1), opacity .4s ease;
}
.cc-style-reveal .cc-extra-inner { overflow: hidden; min-height: 0; }
.cc-style-reveal .cc-card:hover .cc-extra,
.cc-style-reveal .cc-card:focus-within .cc-extra { grid-template-rows: 1fr; opacity: 1; }
.cc-style-reveal .cc-content { margin-top: 12px; }
.cc-style-reveal .cc-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
    padding: 11px 18px 11px 20px;
    border-radius: 999px;
    background: var(--cc-accent);
    color: #0b1120;
    font-size: 14px;
    font-weight: 700;
}

/* =========================================================
   Responsive tweaks for designs
   ========================================================= */

@media (max-width: 1024px) {
    .cc-style-editorial .cc-card,
    .cc-style-arch .cc-card { height: min(var(--cc-card-height), 540px); }
}

@media (max-width: 767px) {
    .cc-style-glass .cc-body { padding: 16px 72px 16px 18px; min-height: 84px; }
    .cc-style-glass .cc-go { right: 28px; bottom: 32px; width: 42px; height: 42px; }
    .cc-style-editorial .cc-badge { top: 22px; left: 22px; }
    .cc-style-reveal .cc-index { top: 22px; right: 22px; }
    .cc-style-arch .cc-badge { bottom: 124px; }
}

/* touch screens can't hover – show the hidden content */
@media (hover: none) {
    .cc-style-reveal .cc-extra { grid-template-rows: 1fr; opacity: 1; }
}
