/* ==========================================================
   SKY'S HOME - EXPERIENCES / ROUTES (styles/home/experiences.css)
   Design com Split Background (Dark / White Bottom Sheet)
   Cards sobrepostos cruzando a divisa, 100% responsivo
   Base: 1rem = 10px
   ========================================================== */

/* 1. Container Geral da Seção */

.routes-section {
    position: relative;
    z-index: 20;
    margin-top: -100vh;
    margin-top: -100svh;
    box-shadow: none !important;
    border-top: none !important;
    width: 100%;
    background-color: transparent !important;
    /* Começa transparente para sincronizar com o escurecimento da seção building */
    overflow: hidden;
    color: #ffffff;
    font-family: var(--font-sans, 'Inter Tight', sans-serif);
}

/* 1.1 Camadas de Fundo Dinâmicas por Ambiente (Transição Suave de Cores) */

.routes-themes-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
    background-color: transparent;
    opacity: 0;
    will-change: opacity;
    /* Garante que o topo do degradê seja 100% transparente para transição imperceptível entre seções */
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.25) 8rem, rgba(0, 0, 0, 0.75) 18rem, #000000 30rem, #000000 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.25) 8rem, rgba(0, 0, 0, 0.75) 18rem, #000000 30rem, #000000 100%);
}

.routes-theme-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity;
}

.routes-theme-bg.is-active {
    opacity: 1;
}

/* Tema 0: Skybar (Azul Safira Noturno e Branco Reflexivo com Topo Transparente) */

.routes-theme-bg--0 {
    background:
        radial-gradient(circle at 25% 26%, rgba(255, 255, 255, 0.22) 0%, rgba(144, 202, 249, 0.26) 35%, transparent 65%),
        radial-gradient(circle at 85% 60%, rgba(13, 71, 161, 0.40) 0%, transparent 60%),
        linear-gradient(to bottom, transparent 0%, rgba(5, 13, 26, 0.4) 10rem, #050d1a 24rem),
        linear-gradient(135deg, #050d1a 0%, #0c1a36 38%, #112850 72%, #07101e 100%);
}

/* Tema 1: Sky Restô (Terracota, Bege Aveludado e Verde Oliva com Topo Transparente) */

.routes-theme-bg--1 {
    background:
        radial-gradient(circle at 80% 28%, rgba(212, 175, 122, 0.28) 0%, transparent 55%),
        radial-gradient(circle at 20% 70%, rgba(85, 107, 47, 0.38) 0%, transparent 55%),
        linear-gradient(to bottom, transparent 0%, rgba(40, 19, 11, 0.4) 10rem, #28130b 24rem),
        linear-gradient(135deg, #28130b 0%, #3e1b10 35%, #2e2413 65%, #182312 100%);
}

/* Tema 2: Sky Zenith Lounge (Tons Roxo para Vermelho, Magenta e Vermelho Rubi com Topo Transparente) */

.routes-theme-bg--2 {
    background:
        radial-gradient(circle at 18% 28%, rgba(224, 64, 251, 0.32) 0%, transparent 60%),
        radial-gradient(circle at 82% 40%, rgba(229, 57, 53, 0.30) 0%, transparent 55%),
        linear-gradient(to bottom, transparent 0%, rgba(29, 6, 36, 0.4) 10rem, #1d0624 24rem),
        linear-gradient(135deg, #1d0624 0%, #35082a 35%, #4c071d 70%, #26040e 100%);
}

/* Tema 3: Skygroup (Preto Arquitetônico Profundo & Grafite Noturno) */

.routes-theme-bg--3 {
    background-color: transparent;
    background: linear-gradient(to bottom, transparent 0%, rgba(20, 20, 20, 0.6) 12rem, #141414 24rem, #141414 100%);
}

/* 2. Controle de Visibilidade: Mobile View (< 1024px) vs Desktop View (>= 1024px) */

.routes-mobile-view {
    display: block;
    width: 100%;
}

.routes-desktop-view {
    display: none;
    width: 100%;
}

@media (min-width: 1024px) {
    .routes-mobile-view {
        display: none !important;
    }

    .routes-desktop-view {
        display: block !important;
    }
}

/* ==========================================================
   REVELAÇÃO GRADUAL POR MÁSCARA (IDÊNTICA À ANIMAÇÃO .text-scroll-fade)
   Efeito suave de wipe gradual no scroll (sem sumiço!)
   ========================================================== */

.routes-text-scroll-fade {
    position: relative;
    --mask-position: -60;
    -webkit-mask-image: linear-gradient(180deg,
            #000000 0%,
            #000000 calc(var(--mask-position) * 1%),
            rgba(0, 0, 0, 0.25) calc(var(--mask-position) * 1% + 30%),
            transparent calc(var(--mask-position) * 1% + 60%));
    mask-image: linear-gradient(180deg,
            #000000 0%,
            #000000 calc(var(--mask-position) * 1%),
            rgba(0, 0, 0, 0.25) calc(var(--mask-position) * 1% + 30%),
            transparent calc(var(--mask-position) * 1% + 60%));
    will-change: transform, opacity;
}

/* ==========================================================
   TRANSIÇÃO SUAVE DOS ELEMENTOS ABAIXO DO TÍTULO (.routes-sub-reveal)
   Surgimento ultra suave, gradual e cinematográfico de baixo para cima
   ========================================================== */

.routes-sub-reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
    will-change: transform, opacity;
}

.routes-sub-reveal.is-visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
    pointer-events: auto !important;
}

/* Base arquitetural branca com fade suave */

.routes-bg-white--desktop.routes-sub-reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1),
        transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.routes-bg-white--desktop.routes-sub-reveal.is-visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Stagger sutil no mobile */

.routes-mobile-view .routes-stage.routes-sub-reveal {
    transition-delay: 0.08s;
}

/* 2.1 Cabeçalho Original da Versão Mobile */

.routes-header-wrap {
    position: relative;
    width: 100%;
    background-color: transparent;
    padding-top: clamp(20rem, 50vh, 35rem);
    padding-bottom: clamp(3.5rem, 5vh, 6rem);
    z-index: 5;
}

.routes-header {
    width: 100%;
    max-width: var(--container-max, 140rem);
    margin: 0 auto;
    padding-left: var(--container-pad, clamp(1.6rem, 3.5vw, 4.8rem));
    padding-right: var(--container-pad, clamp(1.6rem, 3.5vw, 4.8rem));
    display: flex;
    flex-direction: column;
    gap: 3.2rem;
}

/* 2. Grupo de Título Editorial + Eyebrow */

.routes-header__title-group {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    max-width: 58rem;
}

/* Eyebrow / Kicker Arquitetônico */

.routes-header__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    font-family: var(--font-sans, 'Inter Tight', sans-serif);
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #e45b34;
}

.routes-header__eyebrow::before {
    content: '';
    display: inline-block;
    width: 2.4rem;
    height: 1px;
    background: currentColor;
    opacity: 0.85;
}

/* Título Principal Editorial de Luxo */

.routes-header__title {
    font-family: 'Cormorant Garamond', 'Hedvig Letters Serif', Georgia, serif !important;
    font-size: clamp(3.4rem, 5vw, 5.8rem);
    font-weight: 300;
    line-height: 1.12;
    letter-spacing: -0.015em;
    color: #ffffff;
    margin: 0;
}

/* Destaque Itálico Nobre da Marca */

.routes-header__title em {
    font-family: 'Cormorant Garamond', 'Hedvig Letters Serif', Georgia, serif;
    font-style: italic;
    font-weight: 400;
    padding: 0 0.15em 0 0.05em;
    background: linear-gradient(135deg, #ffffff 40%, rgba(228, 91, 52, 0.85) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* Controles de Navegação Desktop (Setas Circulares como na referência) */

.routes-desktop-nav {
    display: none;
    /* Oculto no mobile, ativado em >= 1024px */
}

/* 3. Filtros Horizontais (Pills) */

.routes-filters-wrap {
    position: relative;
    width: 100%;
    max-width: 100%;
}

@media (min-width: 1024px) {
    .routes-filters-wrap {
        width: auto;
    }
}

.routes-filters {
    display: flex;
    align-items: center;
    gap: 1rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding: 0.6rem 0.4rem;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE/Edge */
}

.routes-filters::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

/* Pill Individual */

.routes-pill {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.68);
    font-family: var(--font-sans, 'Inter Tight', sans-serif);
    font-size: 1.35rem;
    font-weight: 500;
    letter-spacing: -0.01em;
    padding: 1.1rem 2.2rem;
    border-radius: 9999px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    user-select: none;
}

.routes-pill:hover {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.05);
}

/* Pill Ativa */

.routes-pill.is-active {
    background: #ffffff;
    color: #111111;
    font-weight: 600;
    border-color: #ffffff;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.28);
    transform: scale(1.02);
}

/* 4. Palco dos Cards com o Split Background */

.routes-stage {
    position: relative;
    width: 100%;
    background-color: transparent;
    /* Revela o fundo dinâmico do tema */
}

/* FORMA BRANCA: Arredondada APENAS na esquerda e reta na direita */

.routes-bg-white {
    position: absolute;
    /* Cruza os cards proporcionalmente à nova altura compacta */
    top: 17rem;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ffffff;
    /* A FORMA BRANCA SÓ É ARREDONDADA NA ESQUERDA: */
    border-top-left-radius: clamp(3.2rem, 5.5vw, 5.2rem);
    border-top-right-radius: 0 !important;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    z-index: 1;
    box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.08);
}

@media (min-width: 1024px) {
    .routes-bg-white {
        top: 22rem;
        border-top-left-radius: 5.6rem;
    }
}

/* 5. Container dos Cards (Fica por CIMA de ambas as formas: preta e branca) */

.routes-cards-container {
    position: relative;
    z-index: 2;
    /* Sobreposto por cima do fundo preto e da forma branca */
    width: 100%;
    max-width: var(--container-max, 140rem);
    margin: 0 auto;
    /* Margem de respiro ampliada na esquerda conforme apontado pela seta vermelha */
    padding-left: clamp(5.4rem, 13vw, 8.4rem);
    padding-right: 0;
    /* Permite que o pedacinho do próximo card se estenda até a borda direita */
    padding-bottom: clamp(6rem, 10vh, 12rem);
    overflow: hidden;
    /* Corta o excesso de cards à direita da tela no mobile */
}

/* 6. Palco dos Cards com Lógica de Deck Absoluto no Mobile (< 1024px) */

.routes-cards-grid {
    position: relative;
    width: 100%;
    height: 44rem;
    /* Altura com folga para acomodar o card em foco de 39.5rem e sombras */
    display: block;
    overflow: visible;
    padding: 0;
    margin: 0;
    user-select: none;
    touch-action: pan-y pinch-zoom;
}

/* Card Base no Mobile (Posicionamento Absoluto / Deck) */

.routes-card {
    position: absolute;
    top: 50%;
    left: 0;
    margin: 0;
    flex: none;
    width: clamp(21rem, 60vw, 24.5rem);
    height: 31.5rem;
    /* Menor e centralizado verticalmente pelo translateY(-50%) */
    border-radius: 2.2rem;
    overflow: hidden;
    background-color: #1a1e28;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.10);
    cursor: pointer;
    /* Transições ultra fluidas */
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
        opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1),
        width 0.5s cubic-bezier(0.16, 1, 0.3, 1),
        height 0.5s cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow 0.45s ease,
        border-color 0.4s ease,
        visibility 0.45s;
    will-change: transform, opacity, width, height;
}

/* 1. Card ANTERIOR (is-prev):
   Desloca suavemente para a esquerda e some 100%.
   ZERO pixels visíveis na margem esquerda (sem sobrar nenhuma ponta à esquerda)! */

.routes-card.is-prev {
    transform: translateY(-50%) translateX(-80px) scale(0.92);
    width: clamp(21rem, 60vw, 24.5rem);
    height: 31.5rem;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    z-index: 1;
}

/* 2. Card EM FOCO / ATIVO (is-active / is-featured):
   Fica alinhado perfeitamente na margem esquerda de respiro.
   Maior altura e largura. */

.routes-card.is-active,
.routes-card.is-featured {
    transform: translateY(-50%) translateX(0);
    width: clamp(23rem, 64vw, 26rem);
    height: 39.5rem;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    z-index: 10;
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.28), 0 8px 18px rgba(0, 0, 0, 0.12);
    border-color: rgba(255, 255, 255, 0.35);
}

/* 3. PRÓXIMO CARD (is-next):
   Posicionado à direita do card em foco com gap de 1.6rem.
   Menor, centralizado verticalmente, com pedacinho visível na borda direita da viewport! */

.routes-card.is-next {
    transform: translateY(-50%) translateX(calc(clamp(23rem, 64vw, 26rem) + 1.6rem));
    width: clamp(21rem, 60vw, 24.5rem);
    height: 31.5rem;
    opacity: 0.78 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    z-index: 5;
    border-color: rgba(255, 255, 255, 0.16);
}

/* 4. CARDS FUTUROS (is-future):
   Aguardando além do próximo à direita, invisíveis */

.routes-card.is-future {
    transform: translateY(-50%) translateX(calc(clamp(23rem, 64vw, 26rem) + 8rem)) scale(0.88);
    width: clamp(21rem, 60vw, 24.5rem);
    height: 31.5rem;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    z-index: 1;
}

/* ==========================================================
   LAYOUT DESKTOP HERO SPLIT (>= 1024px) - Referência Africa Layout
   Coluna Esquerda: Título, Subtítulo, Botão CTA e Setas de Navegação
   Coluna Direita: Carrossel Horizontal de Cards Verticais Imersivos
   ========================================================== */

@media (min-width: 1024px) {
    .routes-section {
        min-height: 100vh;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        padding-top: clamp(9rem, 13vh, 16rem);
        padding-right: 0;
        padding-bottom: 0 !important;
        padding-left: 0;
        overflow: hidden;
        position: relative;
    }

    /* No mobile, a forma fica dentro de .routes-mobile-view */

    .routes-mobile-view .routes-bg-white {
        display: none !important;
    }

    .routes-desktop-view {
        position: relative;
        width: 100%;
        display: flex !important;
        flex-direction: column;
        justify-content: flex-start;
        flex: 1 1 auto;
        min-height: 0;
        z-index: 5;
    }

    /* 1. TÍTULOS ESTÁTICOS NA PARTE SUPERIOR ESQUERDA DA SEÇÃO */

    .routes-desktop-top-header {
        position: relative;
        z-index: 10;
        width: 100%;
        max-width: 172rem;
        margin: 0 auto;
        padding-left: clamp(4rem, 6vw, 9.6rem);
        padding-right: clamp(4rem, 6vw, 9.6rem);
        padding-top: clamp(2rem, 3.5vh, 4.5rem);
        padding-bottom: clamp(3rem, 4.5vh, 5.5rem);
        display: flex;
        flex-direction: column;
        gap: 1.4rem;
        box-sizing: border-box;
        transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1),
            transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
        will-change: opacity, transform;
    }

    .routes-desktop-top-header.is-hidden {
        opacity: 0 !important;
        transform: translateY(-24px) !important;
        pointer-events: none !important;
    }

    .routes-desktop-top-header .routes-header__eyebrow {
        font-size: 1.25rem;
        letter-spacing: 0.22em;
    }

    .routes-desktop-top-header .routes-header__title {
        font-size: clamp(3.8rem, 4vw, 5.4rem);
        line-height: 1.08;
        margin: 0;
        color: #ffffff;
    }

    /* Container dos Dois Blocos: Coluna Hero (Título Dinâmico + Controles) e Coluna de Cards */

    .routes-desktop-wrap {
        display: flex !important;
        flex-direction: row !important;
        align-items: flex-start;
        /* Alinhamento ao topo para que o título dinâmico permaneça na zona escura acima da base branca */
        justify-content: space-between;
        width: 100%;
        max-width: 172rem;
        margin: 0 auto;
        padding-left: clamp(4rem, 6vw, 9.6rem);
        padding-right: 0;
        padding-bottom: clamp(6rem, 9vh, 14rem);
        /* Cards fluem em direção à borda direita da viewport */
        gap: clamp(4rem, 5vw, 7.5rem);
        box-sizing: border-box;
        position: relative;
        z-index: 10;
        will-change: transform, opacity;
    }

    /* 2. Coluna Hero / Esquerda: Título Dinâmico, Filtros e Setas */

    .routes-hero-col {
        flex: 0 0 clamp(36rem, 28vw, 46rem);
        max-width: 46rem;
        padding: 0;
        margin: 0;
        display: flex;
        flex-direction: column;
        z-index: 10;
        position: relative;
    }

    /* Bloco do TÍTULO DINÂMICO: Alinhado no topo à altura dos cards, com altura estável anti-salto */

    .routes-hero-title-group {
        position: relative;
        width: 100%;
        height: clamp(12rem, 13.5vw, 15.5rem);
        min-height: clamp(12rem, 13.5vw, 15.5rem);
        max-height: clamp(12rem, 13.5vw, 15.5rem);
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        margin-top: clamp(0.6rem, 1.2vw, 2rem);
        margin-bottom: clamp(1.8rem, 2.2vw, 2.6rem);
        z-index: 12;
    }

    /* TÍTULO GRANDE DINÂMICO NA COLUNA ESQUERDA (Branco nobre serif sobre o fundo escuro da seção) */

    .routes-active-card-title {
        font-family: 'Cormorant Garamond', 'Hedvig Letters Serif', Georgia, serif;
        font-size: clamp(4.2rem, 4.6vw, 6.2rem);
        font-weight: 400;
        line-height: 1.05;
        letter-spacing: -0.02em;
        color: #ffffff;
        /* Branco nobre em alto contraste com o fundo escuro da seção */
        text-shadow: 0 4px 24px rgba(0, 0, 0, 0.45);
        margin: 0;
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1),
            transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
        will-change: opacity, transform;
    }

    /* Filtros / Pills Integrados na Coluna Esquerda */

    .routes-filters-wrap {
        width: 100%;
        margin-top: 0;
        position: relative;
        z-index: 10;
    }

    .routes-filters {
        padding: 0.4rem 0;
        gap: 1.2rem;
    }

    .routes-pill {
        background: rgba(255, 255, 255, 0.12);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        border: 1px solid rgba(0, 0, 0, 0.15);
        color: #111111;
        font-size: 1.35rem;
        font-weight: 500;
        padding: 1.1rem 2.2rem;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    }

    .routes-pill:hover {
        background: #ffffff;
        border-color: #111111;
        color: #111111;
        transform: translateY(-2px);
    }

    .routes-pill.is-active {
        background: #111111 !important;
        color: #ffffff !important;
        font-weight: 600;
        border-color: #111111 !important;
        box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
    }

    /* Controles de Navegação Desktop (Posicionados Abaixo do Título Dinâmico - High Contrast Outline) */

    .routes-desktop-nav {
        display: flex;
        align-items: center;
        gap: 1.4rem;
        margin-top: 0;
        margin-bottom: 2.2rem;
        position: relative;
        z-index: 10;
    }

    .routes-desktop-nav .routes-arrow {
        width: 5.4rem;
        height: 5.4rem;
        border-radius: 50%;
        background: #ffffff;
        border: 2px solid #111111;
        color: #111111;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
        transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .routes-desktop-nav .routes-arrow svg {
        width: 2.1rem;
        height: 2.1rem;
        stroke-width: 2.6;
        transition: transform 0.25s ease;
    }

    .routes-desktop-nav .routes-arrow:hover:not(:disabled) {
        background: #111111;
        color: #ffffff;
        border-color: #111111;
        transform: translateY(-3px) scale(1.03);
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
    }

    .routes-desktop-nav .routes-arrow:hover:not(:disabled) svg {
        transform: scale(1.06);
    }

    .routes-desktop-nav .routes-arrow:disabled {
        opacity: 0.28;
        cursor: not-allowed;
        background: #ffffff;
        border-color: rgba(17, 17, 17, 0.25);
        color: #999999;
        box-shadow: none;
    }

    /* Camada Clara / Branca que cruza horizontalmente por TODA a seção no Desktop */

    .routes-bg-white--desktop {
        display: block !important;
        position: absolute;
        top: var(--routes-white-top, clamp(28rem, 30vw, 36rem));
        /* Posicionado precisamente abaixo do título dinâmico e acima dos filtros */
        left: 0;
        right: 0;
        bottom: -15rem;
        /* Estende além da borda inferior para garantir que toda a base continue branca */
        width: 100%;
        background-color: #ffffff;
        border-top-left-radius: clamp(4.4rem, 6.5vw, 7.2rem);
        border-top-right-radius: 0;
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
        z-index: 1;
        box-shadow: 0 -10px 35px rgba(0, 0, 0, 0.09);
        pointer-events: none;
        will-change: transform, opacity;
    }

    /* 2. Coluna dos Cards / Direita */

    .routes-cards-col {
        flex: 1 1 auto;
        min-width: 0;
        overflow: hidden;
        position: relative;
        z-index: 5;
    }

    .routes-cards-container {
        position: relative;
        z-index: 2;
        /* Fica sobreposto por cima da camada branca */
        width: 100%;
        padding: 3rem 4vw 4rem 0;
        margin: 0;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-behavior: smooth;
        scrollbar-width: none;
        -ms-overflow-style: none;
        -webkit-overflow-scrolling: touch;
    }

    .routes-cards-container::-webkit-scrollbar {
        display: none;
    }

    .routes-cards-grid {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        /* Centralização vertical dos cards menores em relação ao card de destaque */
        gap: clamp(2.4rem, 2.5vw, 3.2rem);
        width: max-content;
        height: auto;
        min-height: clamp(52rem, 38vw, 60rem);
        /* Espaço para o card maior e elevação de sombra */
        padding: 1.5rem 0;
        margin: 0;
        position: static;
        user-select: auto;
        touch-action: auto;
    }

    /* Cards Verticais no Desktop: Cards Secundários / Não destacados (Menores e Centralizados) */

    .routes-desktop-view .routes-card {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        transform: none !important;
        opacity: 0.75 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        flex: 0 0 clamp(24rem, 18vw, 28rem) !important;
        width: clamp(24rem, 18vw, 28rem) !important;
        height: clamp(37rem, 27vw, 43rem) !important;
        /* Menor que o card em destaque */
        border-radius: 2.2rem;
        overflow: hidden;
        background-color: #1a1e28;
        border: 1px solid rgba(255, 255, 255, 0.12);
        box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
        cursor: pointer;
        transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .routes-desktop-view .routes-card:hover:not(.is-active) {
        opacity: 0.95 !important;
        transform: translateY(-0.6rem) !important;
        border-color: rgba(255, 255, 255, 0.35);
        box-shadow: 0 24px 50px rgba(0, 0, 0, 0.4);
    }

    /* CARD DE DESTAQUE NO DESKTOP: Maior, totalmente opaco, com presença nobre */

    .routes-desktop-view .routes-card.is-active {
        opacity: 1 !important;
        flex: 0 0 clamp(31rem, 23vw, 36.5rem) !important;
        width: clamp(31rem, 23vw, 36.5rem) !important;
        height: clamp(48rem, 35vw, 55rem) !important;
        /* Claramente maior e centralizado */
        border-radius: 2.6rem;
        border: 1.5px solid rgba(255, 255, 255, 0.45);
        box-shadow: 0 28px 65px rgba(0, 0, 0, 0.55), 0 0 35px rgba(255, 255, 255, 0.08);
        transform: scale(1.02) !important;
        z-index: 5;
    }

    .routes-desktop-view .routes-card.is-active:hover {
        transform: scale(1.02) translateY(-0.8rem) !important;
        box-shadow: 0 36px 80px rgba(0, 0, 0, 0.65), 0 0 45px rgba(255, 255, 255, 0.12);
    }

    /* Botão "Conheça" no desktop: cantos retos ou levemente arredondados, contraste absoluto */

    .routes-desktop-view .routes-card__btn {
        width: 100%;
        margin-top: 1.2rem;
        padding: 1.25rem 2rem;
        background: #ffffff !important;
        color: #111111 !important;
        font-size: 1.35rem;
        font-weight: 600;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
        border: none;
    }

    .routes-desktop-view .routes-card__btn:hover {
        background: #e45b34 !important;
        color: #ffffff !important;
    }

    /* Oculta controles mobile no desktop */

    .routes-mobile-nav,
    .routes-mobile-hint {
        display: none !important;
    }
}

/* Imagem de Fundo do Card */

.routes-card__img-wrap {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.routes-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.routes-card:hover .routes-card__img {
    transform: scale(1.06);
}

/* Overlay com Gradiente Escuro na Base */

.routes-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top,
            rgba(10, 12, 18, 0.96) 0%,
            rgba(10, 12, 18, 0.72) 38%,
            rgba(10, 12, 18, 0.25) 65%,
            rgba(10, 12, 18, 0.02) 100%);
    z-index: 2;
    pointer-events: none;
}

/* Conteúdo Inferior Sobreposto na Base do Card */

.routes-card__content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: clamp(1.8rem, 4vw, 2.6rem);
    z-index: 3;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

@media (min-width: 1024px) {
    .routes-desktop-view .routes-card__content {
        padding: clamp(1.8rem, 2vw, 2.2rem);
        gap: 0.8rem;
    }

    .routes-desktop-view .routes-card.is-active .routes-card__content {
        padding: clamp(2.4rem, 2.4vw, 3rem);
        gap: 1rem;
    }

    .routes-desktop-view .routes-card.is-active .routes-card__title {
        font-size: clamp(2rem, 2.2vw, 2.5rem);
    }
}

/* Título da Rota */

.routes-card__title {
    font-size: clamp(1.65rem, 3.8vw, 2.2rem);
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin: 0;
}

/* Descrição Curta (Máximo 2 linhas com reticências) */

.routes-card__desc {
    font-size: 1.2rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.72);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 8. Botão "Conheça" (Largura alinhada ao limite do texto de cima, cantos retos) */

.routes-card__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    width: 100%;
    box-sizing: border-box;
    margin-top: 1rem;
    padding: 1.1rem 1.6rem;
    border-radius: 0 !important;
    /* Sem borda arredondada (cantos retos) */
    background: #ffffff;
    color: #111111;
    font-family: 'Inter Tight', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    text-decoration: none;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.24);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.routes-card__btn svg {
    width: 1.3rem;
    height: 1.3rem;
    transition: transform 0.25s ease;
}

.routes-card__btn:hover {
    background: #e45b34;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(228, 91, 52, 0.4);
}

.routes-card__btn:hover svg {
    transform: translateX(3px);
}

/* 9. Indicador de Rolagem / Dica no Mobile */

/* 9. Controles de Navegação no Mobile (Dots + Setas Elegantes) */

.routes-mobile-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: clamp(23rem, 64vw, 26rem);
    /* Alinhado perfeitamente com a largura do card em foco */
    margin-top: 2rem;
    padding: 0 0.4rem;
}

@media (min-width: 1024px) {
    .routes-mobile-nav {
        display: none !important;
    }
}

.routes-mobile-dots {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.routes-dot {
    width: 0.8rem;
    height: 0.8rem;
    border-radius: 9999px;
    background: #d6d9e0;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.routes-dot.is-active {
    width: 2.4rem;
    background: #111111;
}

.routes-mobile-arrows {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.routes-arrow {
    width: 3.6rem;
    height: 3.6rem;
    border-radius: 50%;
    background: #f3f4f6;
    border: 1px solid rgba(0, 0, 0, 0.08);
    color: #111111;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
}

.routes-arrow svg {
    width: 1.6rem;
    height: 1.6rem;
}

.routes-arrow:hover:not(:disabled) {
    background: #111111;
    color: #ffffff;
}

.routes-arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

.routes-mobile-hint {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.2rem;
    color: #717886;
    margin-top: 1.4rem;
    font-weight: 500;
    max-width: clamp(23rem, 64vw, 26rem);
}

@media (min-width: 1024px) {
    .routes-mobile-hint {
        display: none;
    }
}

@media (min-width: 1024px) {
    .routes-mobile-hint {
        display: none;
    }
}
