/* ==========================================================
   ROTAS PÚBLICAS
========================================================== */

.rotas-publicas-topo {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: 42px 0 24px;
}

.rotas-publicas-topo .secao-etiqueta {
    color: var(--laranja);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.rotas-publicas-topo h1 {
    margin: 8px 0 12px;
    font-size: clamp(36px, 10vw, 56px);
    line-height: 1;
    letter-spacing: -1.5px;
}

.rotas-publicas-topo p {
    max-width: 560px;
    margin: 0;
    color: var(--texto-claro);
    font-size: 15px;
    line-height: 1.55;
}


/* ÁREA */

.rotas-publicas-area {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding-bottom: 70px;
}

/* ==========================================================
   FILTROS
========================================================== */

.rotas-filtros {
    padding: 18px;

    background: #ffffff;
    border-radius: 20px;

    box-shadow: 0 10px 30px rgba(18, 33, 59, 0.06);
}

.filtro-grupo + .filtro-grupo {
    margin-top: 18px;
}

.filtro-titulo {
    display: block;

    margin-bottom: 9px;

    color: var(--texto-claro);

    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .6px;
}

.filtro-chips {
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
}

.filtro-chip {
    min-height: 38px;
    padding: 0 11px;

    border: 1px solid #dfe5ec;
    border-radius: 999px;

    background: #ffffff;
    color: var(--azul);

    display: inline-flex;
    align-items: center;
    justify-content: center;

    font: inherit;
    font-size: 11px;
    font-weight: 700;

    white-space: nowrap;
    cursor: pointer;
}

.filtro-chip.ativo {
    border-color: var(--azul);

    background: var(--azul);
    color: #ffffff;
}

.filtro-limpar {
    display: inline-block;

    margin-top: 17px;

    color: var(--texto-claro);

    font-size: 12px;
    font-weight: 700;
}


/* CONTADOR */

.rotas-publicas-contador {
    margin: 24px 2px 16px;

    display: flex;
    align-items: baseline;
    gap: 6px;
}

.rotas-publicas-contador strong {
    color: var(--azul);

    font-size: 24px;
}

.rotas-publicas-contador span {
    color: var(--texto-claro);

    font-size: 12px;
}

/* ==========================================================
   GRID
========================================================== */

.rotas-publicas-grid {
    display: grid;
    gap: 22px;
}

/* ==========================================================
   CARD DA ROTA
========================================================== */

.rota-card {
    overflow: hidden;

    background: #ffffff;

    border-radius: 24px;

    box-shadow:
        0 14px 38px rgba(18, 33, 59, 0.09);
}


/* FOTO */

.rota-card-foto {
    height: 230px;

    position: relative;

    overflow: hidden;

    background: #dfe7ef;
}

.rota-card-foto img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform .35s ease;
}

.rota-card-foto-vazia {
    width: 100%;
    height: 100%;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;

    background:
        linear-gradient(
            145deg,
            #dfe8f0,
            #eef3f7
        );

    color: #718096;
}

.rota-card-foto-vazia span {
    font-size: 52px;
}

.rota-card-foto-vazia small {
    font-size: 11px;
}


/* BADGES */

.rota-card-tipo,
.rota-card-dificuldade {
    position: absolute;
    top: 16px;

    padding: 7px 11px;

    border-radius: 999px;

    font-size: 10px;
    font-weight: 800;

    backdrop-filter: blur(8px);
}

.rota-card-tipo {
    left: 16px;

    background: rgba(18, 33, 59, .88);
    color: #ffffff;
}

.rota-card-dificuldade {
    right: 16px;

    background: rgba(255, 255, 255, .90);
    color: var(--azul);
}


/* CONTEÚDO */

.rota-card-corpo {
    padding: 22px;
}

.rota-card-local {
    margin-bottom: 8px;

    color: var(--laranja);

    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .7px;
}

.rota-card h2 {
    margin: 0;

    color: var(--azul);

    font-size: 24px;
    line-height: 1.15;
}

.rota-card-resumo {
    min-height: 42px;

    margin: 11px 0 0;

    color: var(--texto-claro);

    font-size: 13px;
    line-height: 1.55;
}


/* NÚMEROS */

.rota-card-numeros {
    margin-top: 20px;
    padding: 17px 0;

    display: grid;
    grid-template-columns: repeat(2, 1fr);

    border-top: 1px solid #edf0f4;
    border-bottom: 1px solid #edf0f4;
}

.rota-numero + .rota-numero {
    padding-left: 18px;

    border-left: 1px solid #edf0f4;
}

.rota-numero span {
    display: block;

    margin-bottom: 4px;

    color: var(--texto-claro);

    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.rota-numero strong {
    color: var(--azul);

    font-size: 21px;
}

.rota-numero strong small {
    font-size: 11px;
    font-weight: 700;
}


/* ABRIR */

.rota-card-abrir {
    margin-top: 17px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    color: var(--azul-claro);

    font-size: 13px;
    font-weight: 800;
}

.rota-card-abrir strong {
    font-size: 22px;

    transition: transform .2s ease;
}


/* VAZIO */

.rotas-publicas-vazio {
    padding: 45px 20px;

    background: #ffffff;

    border-radius: 20px;

    color: var(--texto-claro);

    text-align: center;
}

/* ==========================================================
   ROTAS - DESKTOP
========================================================== */

@media (min-width: 900px) {

    .rotas-publicas-topo {
        padding-top: 58px;
    }

    .rotas-filtros {
        display: flex;
        align-items: flex-end;
        gap: 32px;

        padding: 20px 24px;
    }

    .filtro-grupo + .filtro-grupo {
        margin-top: 0;
    }

    .filtro-limpar {
        margin:
            0
            0
            11px
            auto;
    }

    .rotas-publicas-grid {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }

    .rota-card-foto {
        height: 220px;
    }

    .rota-card:hover {
        transform: translateY(-5px);

        box-shadow:
            0 20px 45px rgba(18, 33, 59, .14);
    }

    .rota-card:hover .rota-card-foto img {
        transform: scale(1.04);
    }

    .rota-card:hover .rota-card-abrir strong {
        transform: translateX(4px);
    }

}

/* ==========================================================
   ROTA - PÁGINA INDIVIDUAL
========================================================== */

.rota-detalhe {
    padding-bottom: 40px;
}


/* HERO */

.rota-hero {
    width: min(1180px, 100%);

    height: 430px;

    margin: 0 auto;

    position: relative;

    overflow: hidden;

    background: #dfe7ef;
}

.rota-hero > img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}

.rota-hero-sem-imagem {
    width: 100%;
    height: 100%;

    display: grid;
    place-items: center;

    font-size: 70px;

    background:
        linear-gradient(
            145deg,
            #dfe8f0,
            #eef3f7
        );
}

.rota-hero-sombra {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            180deg,
            rgba(10, 20, 35, .03) 30%,
            rgba(10, 20, 35, .62) 100%
        );
}

.rota-hero-badges {
    position: absolute;
    top: 18px;
    right: 18px;

    display: flex;
    gap: 8px;

    z-index: 2;
}

.rota-hero-badges span {
    padding: 7px 11px;

    border-radius: 999px;

    background:
        rgba(255, 255, 255, .92);

    color: var(--azul);

    font-size: 10px;
    font-weight: 800;
}

.rota-voltar {
    position: absolute;
    top: 18px;
    left: 18px;
	z-index: 2;

    padding: 9px 13px;

    border-radius: 999px;

    background:
        rgba(18, 33, 59, .76);

    color: #ffffff;

    font-size: 12px;
    font-weight: 700;

    backdrop-filter: blur(8px);
}


/* CONTEÚDO */

.rota-detalhe-conteudo {
    width: min(900px, calc(100% - 40px));

    margin: -26px auto 0;

    position: relative;
    z-index: 2;

    padding: 26px 22px 30px;

    background: #ffffff;

    border-radius: 26px;

    box-shadow:
        0 16px 42px rgba(18, 33, 59, .11);
}

.rota-detalhe-local {
    margin-bottom: 9px;

    color: var(--laranja);

    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .7px;
}

.rota-detalhe-topo h1 {
    margin: 0;

    color: var(--azul);

    font-size: clamp(34px, 10vw, 52px);
    line-height: 1;
    letter-spacing: -1px;
}

.rota-detalhe-resumo {
    max-width: 650px;

    margin: 14px 0 0;

    color: var(--texto-claro);

    font-size: 15px;
    line-height: 1.6;
}


/* NÚMEROS */

.rota-detalhe-numeros {
    margin-top: 26px;

    display: grid;
    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    border-top: 1px solid #edf0f4;
    border-bottom: 1px solid #edf0f4;
}

.rota-detalhe-numero {
    padding: 20px 10px;
}

.rota-detalhe-numero + .rota-detalhe-numero {
    border-left: 1px solid #edf0f4;
}

.rota-detalhe-numero span {
    display: block;

    margin-bottom: 5px;

    color: var(--texto-claro);

    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.rota-detalhe-numero strong {
    color: var(--azul);

    font-size: clamp(18px, 5vw, 26px);
}

.rota-detalhe-numero small {
    font-size: 10px;
}


/* BLOCOS */

.rota-info-bloco {
    margin-top: 30px;
}

.rota-info-etiqueta {
    display: block;

    margin-bottom: 8px;

    color: var(--laranja);

    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .7px;
}

.rota-info-bloco h2 {
    margin: 0;

    color: var(--azul);

    font-size: 20px;
}

.rota-texto {
    color: var(--texto-claro);

    font-size: 15px;
    line-height: 1.7;
}


/* AÇÕES */

.rota-acoes {
    margin-top: 34px;

    display: grid;
    gap: 12px;
}

.rota-acao {
    min-height: 72px;

    padding: 14px 16px;

    display: grid;
    grid-template-columns:
        42px
        minmax(0, 1fr)
        auto;

    align-items: center;
    gap: 12px;

    border: 1px solid #e4e9ef;
    border-radius: 18px;

    background: #ffffff;

    transition:
        transform .2s ease,
        box-shadow .2s ease;
}

.rota-acao > span {
    width: 42px;
    height: 42px;

    display: grid;
    place-items: center;

    border-radius: 13px;

    background: #edf2f7;

    font-size: 21px;
}

.rota-acao div small,
.rota-acao div strong {
    display: block;
}

.rota-acao div small {
    margin-bottom: 3px;

    color: var(--texto-claro);

    font-size: 10px;
}

.rota-acao div strong {
    color: var(--azul);

    font-size: 14px;
}

.rota-acao b {
    color: var(--azul-claro);

    font-size: 20px;
}

.rota-acao-strava > span {
    background: #fff0e3;
}

.rota-acao-gpx > span {
    background: #eaf7eb;
}

/* ==========================================================
   ROTA INDIVIDUAL - DESKTOP
========================================================== */

@media (min-width: 900px) {

    .rota-hero {
        height: 560px;

        margin-top: 26px;

        border-radius: 28px;
    }

    .rota-detalhe-conteudo {
        margin-top: -55px;

        padding: 38px 42px 42px;
    }

    .rota-acoes {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }

    .rota-acao:hover {
        transform: translateY(-4px);

        box-shadow:
            0 12px 28px rgba(18, 33, 59, .10);
    }

}

/* DESKTOP DA LISTAGEM */

@media (min-width: 900px) {

    .rotas-filtros {
        grid-template-columns:
            minmax(260px, 1fr)
            170px
            170px
            auto;

        align-items: end;
    }

    .rota-admin-item {
        min-height: 88px;

        padding: 18px 20px;

        grid-template-columns:
            minmax(0, 1fr)
            auto
            70px;

        align-items: center;
    }

    .rota-admin-editar {
        text-align: right;
    }
}
