/* ============================
   LAYOUT GERAL REVENDAS
=============================== */

.um-revendas-wrapper {
    padding-top: 40px;
}

/* Título principal */
.um-title-page h1 {
    font-size: 30px;
    margin-top: 5px;
    margin-bottom: 12px;
    color: #0f4a1c;
    font-weight: 700;
    letter-spacing: -0.3px;
}

/* Breadcrumb */
.um-breadcrumb {
    font-size: 15px;
    color: #3f513d;
    margin-bottom: 22px;
}

.um-breadcrumb a {
    color: #0f4a1c;
    text-decoration: none;
    font-weight: 600;
}

.um-breadcrumb a:hover {
    text-decoration: underline;
}

.um-breadcrumb span {
    margin: 0 6px;
}

/* Imagem principal */
.revendas-img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 20px;
    object-fit: cover;
    max-height: 350px;
}

.revendas-img-estado {
    margin-top: 10px;
}

/* Bloco SEO padrão */
.revendas-seo {
    background: #f8f8f8;
    padding: 22px 24px;
    border-left: 5px solid #0f4a1c;
    border-radius: 6px;
    margin: 25px 0;
    font-size: 16px;
    line-height: 1.6;
}

/* Card de representante */
.revendas-card {
    background: #f1f1f1;
    padding: 18px 20px;
    border-radius: 8px;
    margin-top: 10px;
    margin-bottom: 20px;
}

.revendas-card h2 {
    margin: 0 0 10px;
    font-size: 18px;
}

.revendas-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.revendas-card li {
    margin-bottom: 5px;
    font-size: 14px;
}

.revendas-card i {
    margin-right: 6px;
    color: #ffba00;
}

/* ============================
   CTA TOPO
=============================== */

.revendas-cta-top {
    background: #e7f8ea;
    border-left: 4px solid #0f4a1c;
    padding: 14px 18px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 16px;
}

/* ============================
   REGIÕES + ESTADOS
=============================== */

.revendas-regiao-bloco {
    margin: 30px 0 15px;
}

.revendas-regiao-titulo {
    font-size: 20px;
    font-weight: 700;
    color: #0f4a1c;
    margin-bottom: 10px;
}

.revendas-estados-bloco,
.revendas-estados-outros {
    margin: 25px 0;
}

.revendas-estados-outros h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: #0f4a1c;
}

.revendas-estados-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 14px;
}

.estado-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 14px 16px;
    border-radius: 8px;
    background: #f2f7f2;
    border: 1px solid #d0e4d2;
    text-decoration: none;
    transition: .2s;
}

.estado-card:hover {
    background: #dff5e1;
    border-color: #0f4a1c;
    transform: translateY(-1px);
}

.estado-uf {
    font-size: 16px;
    font-weight: 700;
    color: #0f4a1c;
}

.estado-nome {
    font-size: 13px;
    color: #555;
    margin-top: 3px;
}

/* ============================
   LISTA DE CIDADES (MODO ESTADO)
=============================== */

.revendas-subtitle {
    font-size: 22px;
    margin-bottom: 15px;
    color: #0f4a1c;
    font-weight: 700;
}

.est-cidades-lista {
    margin: 25px 0 10px;
}

.est-cidades-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 12px;
}

.est-cidade-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    border-radius: 8px;
    background: #f2f7f2;
    border: 2px solid #0f4a1c;
    text-decoration: none;
    color: #0f4a1c;
    font-weight: 600;
    font-size: 15px;
    transition: .2s;
}

.est-cidade-card:hover {
    background: #d6f5d7;
}

.cidade-nome {
    font-size: 15px;
}

.cidade-uf {
    font-size: 13px;
    opacity: .8;
}

/* ============================
   OUTRAS CIDADES (MODO CIDADE)
=============================== */

.outras-cidades-box {
    background: #ffffff;
    padding: 22px 26px;
    margin-top: 25px;
    border-radius: 8px;
    border: 1px solid #d6e8db;
    border-left: 5px solid #0f4a1c;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.outras-cidades-box h3 {
    font-size: 20px;
    margin-bottom: 14px;
    color: #0f4a1c;
}

.outras-cidades-box ul {
    list-style: none;
    margin: 0;
    padding: 0;
    columns: 2;
    column-gap: 40px;
}

.outras-cidades-box li {
    margin-bottom: 8px;
}

.outras-cidades-box a {
    font-size: 16px;
    font-weight: 600;
    color: #0f4a1c;
    text-decoration: none;
}

.outras-cidades-box a:hover {
    text-decoration: underline;
    color: #0c3917;
}

/* ============================
   CTA VOLTAR PARA ESTADOS
=============================== */

.um-revendas-voltar-estados {
    margin-top: 30px;
    text-align: center;
    padding: 26px 22px;
    background: #eef8f0;
    border-radius: 8px;
    border: 1px solid #d4e7d7;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.um-revendas-voltar-estados p {
    margin-bottom: 12px;
    font-size: 16px;
    color: #0f4a1c;
    font-weight: 600;
}

.btn-voltar-estados {
    padding: 12px 28px;
    background: #0f4a1c;
    color: #fff;
    font-size: 16px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 700;
    transition: .2s;
}

.btn-voltar-estados:hover {
    background: #0c3617;
}

/* ============================
   CTA FINAL
=============================== */

.revendas-cta {
    margin-top: 35px;
    text-align: center;
    background: #0f4a1c;
    padding: 26px 18px;
    color: #fff;
    border-radius: 8px;
}

.revendas-cta h3 {
    margin: 0 0 8px;
    font-size: 20px;
}

.revendas-cta p {
    margin: 0 0 14px;
    font-size: 15px;
}

.revendas-cta a {
    display: inline-block;
    padding: 12px 26px;
    background: #34af23;
    border-radius: 5px;
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
}

/* ============================
   DESKTOP – AJUSTES FINOS
=============================== */

@media (min-width: 1025px) {

    .um-revendas-voltar-estados {
        padding: 35px 40px !important;
        margin-top: 40px !important;
        margin-bottom: 60px !important;
        border-radius: 10px;
    }

    .btn-voltar-estados {
        display: inline-block;
        padding: 16px 40px !important;
        background: #0f4a1c !important;
        color: #fff !important;
        font-size: 18px !important;
        border-radius: 8px;
        font-weight: 700;
        text-align: center;
    }

    .btn-voltar-estados:hover {
        background: #0c3617 !important;
    }

    .revendas-cta {
        margin-top: 70px !important;
        margin-bottom: 80px !important;
        padding: 55px 40px !important;
        border-radius: 12px;
    }

    .revendas-cta h3 {
        font-size: 30px !important;
        margin-bottom: 16px;
    }

    .revendas-cta p {
        font-size: 18px !important;
        margin-bottom: 22px !important;
    }

    .revendas-cta a {
        font-size: 20px !important;
        padding: 16px 45px !important;
        border-radius: 8px !important;
    }
}

/* ============================
   MOBILE
=============================== */

@media (max-width: 768px) {

    #revendas.um-revendas-wrapper {
        padding-left: 18px !important;
        padding-right: 18px !important;
    }

    .um-title-page h1 {
        font-size: 26px;
        line-height: 1.2;
    }

    .um-breadcrumb {
        padding-left: 2px;
        padding-right: 2px;
    }

    .revendas-img {
        border-radius: 12px;
        margin-top: 10px;
    }

    .revendas-seo {
        padding: 18px 18px;
    }

    .est-cidade-card,
    .estado-card {
        padding: 14px 16px;
    }

    .outras-cidades-box {
        padding: 20px !important;
    }

    .revendas-cta {
        padding-left: 20px;
        padding-right: 20px;
        margin-bottom: 40px !important;
        border-radius: 10px;
    }

    .um-revendas-voltar-estados {
        padding: 20px 15px !important;
        text-align: center;
        margin-top: 30px;
        margin-bottom: 30px;
    }

    .btn-voltar-estados {
        display: inline-block;
        width: 100%;
        max-width: 260px;
        text-align: center;
        padding: 14px 20px !important;
        font-size: 15px !important;
        white-space: normal !important;
        line-height: 1.25 !important;
        background: #0f4a1c !important;
        color: #fff !important;
        border-radius: 6px;
    }

    .outras-cidades-box ul {
        columns: 1;
    }
}

/* Fallback geral */
@media (max-width: 900px) {
    .outras-cidades-box ul {
        columns: 1;
    }
}
