/* ==========================================================
   VARIÁVEIS
========================================================== */

:root {
    --azul: #12213b;
    --azul-claro: #2964e8;
    --laranja: #f27a1a;
    --verde: #3a9142;
    --vermelho: #e34c4c;

    --fundo: #f4f6f8;
    --branco: #ffffff;

    --texto: #12213b;
    --texto-claro: #7a8494;

    --raio-card: 22px;

    --sombra-suave:
        0 10px 28px rgba(18, 33, 59, 0.08);

    --sombra-forte:
        0 18px 38px rgba(18, 33, 59, 0.14);
}


/* ==========================================================
   BASE
========================================================== */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;

    background: var(--fundo);
    color: var(--texto);

    font-family: Arial, Helvetica, sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}


/* ==========================================================
   TOPO
========================================================== */

.topo {
    min-height: 76px;

    padding:
        calc(14px + env(safe-area-inset-top))
        18px
        14px;

    position: relative;
    z-index: 10;

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

    background: var(--branco);

    box-shadow:
        0 4px 20px rgba(18, 33, 59, 0.08);
}

.marca {
    display: flex;
    align-items: center;
    gap: 11px;
}

.marca-simbolo {
    width: 46px;
    height: 46px;

    display: grid;
    place-items: center;

    border-radius: 15px;

    background:
        linear-gradient(
            135deg,
            var(--laranja),
            #ff9c3a
        );

    color: var(--branco);

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

    box-shadow:
        0 8px 18px rgba(242, 122, 26, 0.25);
}

.marca strong,
.marca span {
    display: block;
}

.marca strong {
    font-size: 18px;
    line-height: 1.1;
}

.marca span {
    margin-top: 3px;

    color: var(--texto-claro);

    font-size: 12px;
}

.botao-menu {
    width: 44px;
    height: 44px;

    border: 0;
    border-radius: 14px;

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

    font-size: 22px;

    cursor: pointer;
}

.menu {
    display: none;

    position: absolute;
    top: 100%;
    right: 16px;
    left: 16px;

    padding: 10px;

    background: var(--branco);
    border-radius: 18px;

    box-shadow:
        0 16px 35px rgba(18, 33, 59, 0.15);
}

.menu.menu-aberto {
    display: grid;
}

.menu a {
    padding: 14px 16px;

    border-radius: 12px;

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

.menu a:hover {
    background: #f2f5f8;
}


/* ==========================================================
   BANNER
========================================================== */

.banner {
    min-height: 520px;

    position: relative;
    overflow: hidden;

    background: var(--azul);
}

.banner > img {
    width: 100%;
    height: 520px;

    object-fit: cover;
    object-position: 67% center;
}

.banner-sombra {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            180deg,
            rgba(9, 20, 37, 0.12) 0%,
            rgba(9, 20, 37, 0.72) 72%,
            rgba(9, 20, 37, 0.93) 100%
        );
}

.banner-conteudo {
    position: absolute;
    right: 22px;
    bottom: 34px;
    left: 22px;

    color: var(--branco);
}

.banner-destaque {
    display: inline-block;

    margin-bottom: 12px;
    padding: 7px 12px;

    border:
        1px solid rgba(255, 255, 255, 0.35);

    border-radius: 999px;

    background:
        rgba(255, 255, 255, 0.12);

    backdrop-filter: blur(8px);

    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.banner h1 {
    max-width: 560px;

    margin: 0;

    font-size: clamp(38px, 10vw, 52px);
    line-height: 0.98;
    letter-spacing: -2px;
}

.banner h1 strong {
    color: #ff8a24;
}

.banner p {
    max-width: 430px;

    margin: 18px 0 0;

    color: rgba(255, 255, 255, 0.86);

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





/* ==========================================================
   CARD DO DESAFIO
========================================================== */

.card-rotas .rotas-contagem {
    margin-top: 14px;

    font-size: 14px;
    color: var(--texto-claro);
}

.card-rotas .rotas-contagem strong {
    margin-right: 3px;

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

    color: #2563eb;
}

.desafio-status-home {
    margin-top: 9px !important;

    color: var(--laranja) !important;

    font-size: 12px !important;
    font-weight: 800;
}

.card-desafio h2 {
    max-width: 170px;
}

.desafio-data {
    margin-top: 14px !important;

    color: var(--texto) !important;

    font-size: 14px !important;
    font-weight: 700;
}

.desafio-contagem {
    margin-top: 10px !important;

    color: var(--texto-claro) !important;

    font-size: 14px !important;
}

.desafio-contagem strong {
    color: var(--laranja);

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


/* ==========================================================
   NOVIDADES
========================================================== */

.novidades {
    padding: 18px 16px 50px;
}

.secao-topo {
    margin-bottom: 20px;

    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
}

.secao-etiqueta {
    color: var(--laranja);

    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.secao-topo h2 {
    margin: 5px 0 0;

    color: var(--texto);

    font-size: 28px;
    line-height: 1;
}

.secao-link {
    color: var(--azul-claro);

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

.novidades-grid {
    display: grid;
    gap: 16px;
}

.novidade {
    overflow: hidden;

    background: var(--branco);

    border-radius: var(--raio-card);

    box-shadow: var(--sombra-suave);
}

.novidade-imagem {
    height: 210px;

    overflow: hidden;
}

.novidade-imagem img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}

.novidade-conteudo {
    padding: 22px;
}

.novidade-categoria {
    color: var(--laranja);

    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.novidade h3 {
    margin: 9px 0 10px;

    color: var(--texto);

    font-size: 21px;
    line-height: 1.25;
}

.novidade p {
    margin: 0 0 18px;

    color: var(--texto-claro);

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

.novidade a {
    color: var(--texto);

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

.novidade-icone {
    width: 62px;
    height: 62px;

    margin: 22px 22px 0;

    display: grid;
    place-items: center;

    border-radius: 20px;

    font-size: 31px;
}

.novidade-icone-rotas {
    background: #eaf1ff;
}

.novidade-icone-loja {
    background: #eaf7eb;
}

/* ==========================================================
   ADMIN - ROTAS
========================================================== */

.rotas-cabecalho {
    margin-bottom: 22px;

    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
}

.rotas-cabecalho h1 {
    margin: 7px 0 7px;

    font-size: clamp(30px, 7vw, 42px);
}

.rotas-cabecalho p {
    margin: 0;

    color: var(--texto-claro);

    font-size: 14px;
}

.botao-novo {
    min-height: 46px;
    padding: 0 18px;

    flex-shrink: 0;

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

    border-radius: 14px;

    background: var(--laranja);
    color: var(--branco);

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

    box-shadow:
        0 8px 20px rgba(242, 122, 26, 0.20);
}


/* RESUMO */

.rotas-resumo {
    margin-bottom: 18px;
}

.rotas-resumo > div {
    display: inline-flex;
    align-items: baseline;
    gap: 7px;
}

.rotas-resumo strong {
    font-size: 25px;
}

.rotas-resumo span {
    color: var(--texto-claro);
    font-size: 13px;
}


/* FILTROS */

.rotas-filtros {
    margin-bottom: 22px;
    padding: 18px;

    display: grid;
    gap: 14px;

    background: var(--branco);

    border-radius: 18px;

    box-shadow: var(--sombra);
}

.rotas-filtros label {
    display: block;

    margin-bottom: 6px;

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

.rotas-filtros input,
.rotas-filtros select {
    width: 100%;
    height: 44px;

    padding: 0 12px;

    border: 1px solid #d8dee7;
    border-radius: 11px;

    background: var(--branco);
    color: var(--texto);

    font: inherit;
}

.filtro-acoes {
    display: flex;
    align-items: center;
    gap: 14px;
}

.filtro-acoes button {
    height: 44px;
    padding: 0 18px;

    border: 0;
    border-radius: 11px;

    background: var(--azul);
    color: var(--branco);

    font-weight: 700;

    cursor: pointer;
}

.filtro-acoes a {
    color: var(--texto-claro);

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


/* LISTAGEM */

.lista-rotas {
    display: grid;
    gap: 10px;
}

.rota-admin-item {
    padding: 17px;

    display: grid;
    gap: 15px;

    background: var(--branco);

    border-radius: 17px;

    box-shadow:
        0 5px 18px rgba(18, 33, 59, 0.05);
}

.rota-admin-titulo {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
}

.rota-admin-titulo strong {
    font-size: 16px;
}

.rota-tipo {
    padding: 4px 8px;

    border-radius: 999px;

    background: #eef3ff;
    color: var(--azul-claro);

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

.rota-admin-dados {
    margin-top: 9px;

    display: flex;
    flex-wrap: wrap;
    gap: 12px;

    color: var(--texto-claro);

    font-size: 12px;
}

.rota-admin-status {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.rota-admin-status span {
    padding: 5px 9px;

    border-radius: 999px;

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

.status-publicado {
    background: #eaf7eb;
    color: #277332;
}

.status-rascunho {
    background: #edf1f5;
    color: #66717f;
}

.status-home {
    background: #fff0e3;
    color: #bf5b0c;
}

.rota-admin-editar {
    color: var(--azul-claro);

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

.rotas-vazio {
    padding: 35px;

    background: var(--branco);

    border-radius: 18px;

    color: var(--texto-claro);
    text-align: center;
}

/* ==========================================================
   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;
    }
}

/* ==========================================================
   DESKTOP
========================================================== */

@media (min-width: 900px) {

    .topo {
        min-height: 90px;

        padding:
            16px
            max(
                32px,
                calc((100vw - 1180px) / 2)
            );
    }

    .marca-simbolo {
        width: 54px;
        height: 54px;

        font-size: 18px;
    }

    .marca strong {
        font-size: 22px;
    }

    .botao-menu {
        display: none;
    }

    .menu {
        display: flex;

        position: static;

        padding: 0;

        background: transparent;

        box-shadow: none;
    }

    .menu a {
        padding: 12px 16px;
    }

    .banner {
        min-height: 620px;
    }

    .banner > img {
        height: 620px;

        object-position: center;
    }

    .banner-sombra {
        background:
            linear-gradient(
                90deg,
                rgba(9, 20, 37, 0.88) 0%,
                rgba(9, 20, 37, 0.58) 42%,
                rgba(9, 20, 37, 0.05) 76%
            );
    }

    .banner-conteudo {
        width:
            min(
                1180px,
                calc(100% - 64px)
            );

        right: 0;
        bottom: 88px;
        left: 50%;

        transform: translateX(-50%);
    }

    .banner h1 {
        max-width: 700px;

        font-size:
            clamp(48px, 6vw, 68px);
    }

    .atalhos {
        width:
            min(
                1180px,
                calc(100% - 64px)
            );

        margin: -46px auto 0;
        padding: 0 0 50px;

        position: relative;
        z-index: 3;

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

        gap: 18px;
    }

    .card {
        min-height: 250px;
        padding: 24px 22px;
    }

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

        box-shadow: var(--sombra-forte);
    }

    .novidades {
        width:
            min(
                1180px,
                calc(100% - 64px)
            );

        margin: 0 auto;
        padding: 30px 0 70px;
    }

    .secao-topo h2 {
        font-size: 34px;
    }

    .novidades-grid {
        grid-template-columns:
            1.4fr 1fr 1fr;

        gap: 20px;
    }

    .novidade {
        min-height: 390px;

        transition:
            transform 0.2s ease,
            box-shadow 0.2s ease;
    }

    .novidade:hover {
        transform: translateY(-6px);

        box-shadow: var(--sombra-forte);
    }

    .novidade-destaque .novidade-imagem {
        height: 220px;
    }
}

/* ==========================================================
   ADMINISTRAÇÃO
========================================================== */

.topo-admin {
    gap: 16px;
}

.usuario-admin {
    display: flex;
    align-items: center;
    gap: 12px;
}

.usuario-texto {
    display: none;
}

.botao-sair {
    min-height: 42px;
    padding: 0 16px;

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

    border-radius: 13px;

    background: #edf2f7;
    color: var(--texto);

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

.admin-conteudo {
    width: min(1180px, calc(100% - 32px));

    margin: 0 auto;
    padding: 34px 0 50px;
}

.admin-boas-vindas {
    margin-bottom: 28px;
}

.admin-boas-vindas h1 {
    margin: 8px 0 10px;

    font-size: clamp(28px, 7vw, 42px);
    line-height: 1.05;
}

.admin-boas-vindas p {
    max-width: 620px;

    margin: 0;

    color: var(--texto-claro);

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

.atalhos-admin {
    margin: 0;
    padding: 0;
}

.card-novidades {
    border-color: #8b43e6;
}

.card-novidades .card-icone {
    background: #f2eaff;
}

.card-portal {
    border-color: #566273;
}

.card-portal .card-icone {
    background: #edf1f5;
}

@media (min-width: 900px) {

    .usuario-texto {
        display: block;
        text-align: right;
    }

    .usuario-texto span,
    .usuario-texto strong {
        display: block;
    }

    .usuario-texto span {
        color: var(--texto-claro);
        font-size: 12px;
    }

    .usuario-texto strong {
        margin-top: 2px;
        font-size: 14px;
    }

    .admin-conteudo {
        padding-top: 50px;
    }

    .atalhos-admin {
        width: 100%;

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

/* ==========================================================
   LOGIN
========================================================== */

.login-pagina {
    min-height: 100vh;

    display: grid;
    place-items: center;

    padding: 24px;

    background: var(--fundo);
}

.login-box {
    width: min(430px, 100%);

    overflow: hidden;

    background: var(--branco);

    border-radius: var(--raio-card);

    box-shadow: var(--sombra-forte);
}

.login-marca {
    padding: 24px;

    display: flex;
    align-items: center;
    gap: 12px;

    border-bottom: 1px solid #edf0f4;
}

.login-marca strong,
.login-marca span {
    display: block;
}

.login-marca strong {
    font-size: 20px;
}

.login-marca span {
    margin-top: 3px;

    color: var(--texto-claro);

    font-size: 12px;
}

.login-conteudo {
    padding: 30px;
}

.login-conteudo h1 {
    margin: 8px 0 8px;

    font-size: 30px;
}

.login-conteudo > p {
    margin: 0 0 26px;

    color: var(--texto-claro);

    font-size: 14px;
    line-height: 1.5;
}

.login-campo {
    margin-bottom: 18px;
}

.login-campo label {
    display: block;

    margin-bottom: 7px;

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

.login-campo input {
    width: 100%;
    height: 48px;

    padding: 0 14px;

    border: 1px solid #d8dee7;
    border-radius: 12px;

    background: var(--branco);
    color: var(--texto);

    font: inherit;

    outline: none;
}

.login-campo input:focus {
    border-color: var(--azul-claro);

    box-shadow:
        0 0 0 3px rgba(41, 100, 232, 0.10);
}

.login-botao {
    width: 100%;
    height: 50px;

    border: 0;
    border-radius: 14px;

    background: var(--laranja);
    color: var(--branco);

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

    cursor: pointer;
}

.login-voltar {
    display: block;

    margin-top: 22px;

    color: var(--texto-claro);

    text-align: center;
    font-size: 13px;
    font-weight: 700;
}

.login-erro {
    margin-bottom: 20px;
    padding: 12px 14px;

    border-radius: 12px;

    background: #ffebeb;
    color: #a92d2d;

    font-size: 14px;
}

.marca-logo {
    width: 58px;
    height: 58px;

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

.marca-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* ==========================================================
   RODAPÉ
========================================================== */

.rodape {
    margin-top: 30px;

    background: var(--azul);
    color: var(--branco);
}

.rodape-conteudo {
    width: min(1180px, calc(100% - 32px));

    margin: 0 auto;
    padding: 24px 0 16px;
}

.rodape-marca {
    display: flex;
    align-items: center;
    gap: 12px;
}

.rodape-marca img {
    width: 48px;
    height: 48px;

    object-fit: contain;
}

.rodape-marca strong,
.rodape-marca span {
    display: block;
}

.rodape-marca strong {
    font-size: 18px;
}

.rodape-marca span {
    margin-top: 3px;

    color: rgba(255, 255, 255, 0.62);

    font-size: 12px;
}

.rodape-links {
    margin-top: 18px;

    display: flex;
    gap: 22px;
}

.rodape-links a {
    color: rgba(255, 255, 255, 0.82);

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

.rodape-final {
    margin-top: 20px;
    padding-top: 14px;

    border-top: 1px solid rgba(255, 255, 255, 0.12);

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

    color: rgba(255, 255, 255, 0.48);

    font-size: 11px;
}

.rodape-admin {
    color: rgba(255, 255, 255, 0.38);
}

.rodape-admin:hover {
    color: var(--branco);
}

/* ==========================================================
   ADMIN - FORMULÁRIOS
========================================================== */

.form-ajuda {
    margin: 8px 0 0;

    color: var(--texto-claro);

    font-size: 12px;
}

.form-cabecalho {
    margin-bottom: 24px;
}

.form-voltar {
    color: var(--texto-claro);

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

.form-cabecalho h1 {
    margin: 12px 0 7px;

    font-size: clamp(30px, 7vw, 42px);
}

.form-cabecalho p {
    margin: 0;

    color: var(--texto-claro);

    font-size: 14px;
}

.form-admin {
    display: grid;
    gap: 18px;
}

.form-bloco {
    padding: 22px;

    background: var(--branco);

    border-radius: 20px;

    box-shadow: var(--sombra);
}

.form-bloco-titulo {
    margin-bottom: 22px;
}

.form-bloco-titulo h2 {
    margin: 0;

    font-size: 19px;
}

.form-bloco-titulo p {
    margin: 5px 0 0;

    color: var(--texto-claro);

    font-size: 13px;
}

.form-grid {
    display: grid;
    gap: 17px;
}

.form-campo label {
    display: block;

    margin-bottom: 7px;

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

.form-campo input,
.form-campo select,
.form-campo textarea {
    width: 100%;

    padding: 0 13px;

    border: 1px solid #d8dee7;
    border-radius: 11px;

    background: var(--branco);
    color: var(--texto);

    font: inherit;

    outline: none;
}

.form-campo input,
.form-campo select {
    height: 46px;
}

.form-campo textarea {
    padding-top: 12px;
    padding-bottom: 12px;

    resize: vertical;
}

.form-campo input:focus,
.form-campo select:focus,
.form-campo textarea:focus {
    border-color: var(--azul-claro);

    box-shadow:
        0 0 0 3px rgba(41, 100, 232, 0.10);
}

.form-check {
    min-height: 46px;

    display: flex;
    align-items: center;
    gap: 9px;

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

    cursor: pointer;
}

.form-check input {
    width: 18px;
    height: 18px;
}

.form-acoes {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
}

.botao-cancelar,
.botao-salvar {
    min-height: 48px;
    padding: 0 20px;

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

    border-radius: 13px;

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

.botao-cancelar {
    background: #e9edf2;
    color: var(--texto);
}

.botao-salvar {
    border: 0;

    background: var(--laranja);
    color: var(--branco);

    cursor: pointer;
}

.form-erro {
    margin-bottom: 18px;
    padding: 13px 15px;

    border-radius: 12px;

    background: #ffebeb;
    color: #a92d2d;

    font-size: 14px;
}


/* DESKTOP */

@media (min-width: 900px) {

    .form-grid {
        grid-template-columns:
            repeat(4, minmax(0, 1fr));
    }

    .form-campo-grande {
        grid-column: span 2;
    }

    .form-campo-total {
        grid-column: 1 / -1;
    }
}

/* ==========================================================
   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);
    }

}

.form-ajuda {
    margin: 8px 0 0;

    color: var(--texto-claro);

    font-size: 12px;
}

.form-imagem-atual {
    width: min(420px, 100%);

    overflow: hidden;

    border-radius: 16px;

    background: #edf2f7;
}

.form-imagem-atual img {
    width: 100%;
    aspect-ratio: 16 / 9;

    object-fit: cover;
}

/* ==========================================================
   ADMIN - DESAFIOS
========================================================== */

.admin-pagina-topo {
    margin-bottom: 22px;

    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
}

.admin-pagina-topo > div {
    min-width: 0;
}

.admin-pagina-topo .form-voltar {
    display: block;
    margin-bottom: 18px;
}

.admin-pagina-topo .etiqueta {
    display: block;
    margin-bottom: 7px;
}

.admin-pagina-topo h1 {
    margin: 0;

    color: var(--texto);

    font-size: clamp(32px, 7vw, 44px);
    line-height: 1;
}

.admin-pagina-topo p {
    margin: 10px 0 0;

    color: var(--texto-claro);

    font-size: 14px;
    line-height: 1.5;
}


/* ==========================================================
   RESUMO
========================================================== */

.admin-resumo {
    margin-bottom: 18px;

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

.admin-resumo strong {
    color: var(--texto);

    font-size: 25px;
}

.admin-resumo span {
    color: var(--texto-claro);

    font-size: 13px;
}


/* ==========================================================
   LISTA DE DESAFIOS
========================================================== */

.lista-desafios {
    display: grid;
    gap: 14px;
}

.desafio-admin-card {
    padding: 22px;

    display: grid;
    gap: 20px;

    background: var(--branco);

    border-radius: 20px;
    border-top: 4px solid var(--laranja);

    box-shadow: var(--sombra-suave);
}

.desafio-admin-edicao {
    margin-bottom: 8px;

    color: var(--laranja);

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

    text-transform: uppercase;
    letter-spacing: .8px;
}

.desafio-admin-card h2 {
    margin: 0;

    color: var(--texto);

    font-size: 22px;
    line-height: 1.2;
}

.desafio-admin-dados {
    margin-top: 14px;

    display: flex;
    flex-wrap: wrap;
    gap: 12px;

    color: var(--texto-claro);

    font-size: 13px;
}


/* ==========================================================
   STATUS E AÇÕES
========================================================== */

.desafio-admin-status {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.desafio-status,
.desafio-destaque {
    padding: 6px 10px;

    border-radius: 999px;

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

.status-planejamento {
    background: #fff0e3;
    color: #bd5b0d;
}

.status-inscricoes {
    background: #eaf7eb;
    color: #287433;
}

.status-andamento {
    background: #eef3ff;
    color: #2456be;
}

.status-encerrado {
    background: #edf1f5;
    color: #697483;
}

.desafio-destaque {
    background: #f4eaff;
    color: #7943b4;
}

.admin-editar {
    margin-left: 4px;

    color: var(--azul-claro);

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

.admin-editar:hover {
    text-decoration: underline;
}


/* ==========================================================
   SEM DESAFIOS
========================================================== */

.admin-vazio {
    padding: 45px 25px;

    background: var(--branco);

    border-radius: 20px;

    box-shadow: var(--sombra-suave);

    text-align: center;
}

.admin-vazio-icone {
    margin-bottom: 12px;

    font-size: 40px;
}

.admin-vazio h2 {
    margin: 0 0 8px;

    font-size: 21px;
}

.admin-vazio p {
    margin: 0 0 22px;

    color: var(--texto-claro);

    font-size: 14px;
}


/* ==========================================================
   DESAFIOS - DESKTOP
========================================================== */

@media (min-width: 900px) {

    .desafio-admin-card {
        min-height: 125px;

        padding: 24px 26px;

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

        align-items: center;
    }

    .desafio-admin-status {
        justify-content: flex-end;
    }

}


