


.dsc-root {
    --dsc-primary: #ff007f;
    --dsc-primary-ghost: rgba(255, 0, 127, .08);
    --dsc-bg: var(--cor_fundo_tela);
    --dsc-card: #fff;
    --dsc-border: #ddd;
    --dsc-text: #333;
    --dsc-muted: #666;
    --dsc-radius: 12px;
    --dsc-shadow: 0 4px 10px rgba(0,0,0,0.05);
    --dsc-sticky-top: 8vh; /* ajuste se seu header tiver outra altura */
    font-family: 'Segoe UI', system-ui, -apple-system, Roboto, Arial, sans-serif;
    background: var(--dsc-bg);
}

.dsc-container {
    max-width: 780px;
    margin: 0 auto;
    padding: 16px;
}

/* ===== Toolbar ===== */
.dsc-toolbar {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.dsc-btn {
    background: var(--dsc-primary);
    color: #fff;
    border: 0;
    border-radius: 999px;
    padding: 3px 14px;
    font-size: 14px;
    cursor: pointer;
    box-shadow: var(--dsc-shadow);
}

    .dsc-btn:hover {
        opacity: .92;
    }

.dsc-btn--world {
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.dsc-btn--ghost {
    background: #fff;
    color: var(--dsc-primary);
    border: 1px solid var(--dsc-primary);
    box-shadow: none;
    padding:0.2em 1.5em;
}

.dsc-city-switcher {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dsc-city-label {
    color: var(--dsc-text);
    font-weight: 600;
}

.dsc-city-current {
    color: var(--dsc-primary);
    font-weight: 700;
}

.dsc-select,
.dsc-select-sm {
    border: 1px solid var(--dsc-border);
    background: #fff;
    border-radius: 10px;
    padding: 6px 10px;
    font-size: 14px;
    color: var(--dsc-text);
}

/* ===== Card Base ===== */
.dsc-card {
    background: var(--dsc-card);
    border: 1px solid var(--dsc-border);
    border-radius: var(--dsc-radius);
    box-shadow: var(--dsc-shadow);
    margin-bottom: 24px;
    overflow: hidden;
    position: relative;
}

    .dsc-card img {
        display: block;
        width: 100%;
        height: auto;
        object-fit: cover;
    }

.dsc-card-content {
    padding: 16px;
}

.dsc-title {
    margin: 0 0 6px 0;
    color: var(--dsc-primary);
    font-size: 1.25rem;
}

.dsc-badge {
    font-size: .9rem;
    color: var(--dsc-text);
    font-weight: 600;
    margin-bottom: 6px;
}

.dsc-address {
    font-size: .9rem;
    color: var(--dsc-muted);
    margin-bottom: 10px;
    line-height:1.5em;
}

.dsc-description {
    color: var(--dsc-text);
    line-height: 1.5;
    font-size: 1rem;
}

/* Card footer */
.dsc-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 16px 16px 16px;
    gap: 12px;
    flex-wrap: wrap;
}

.dsc-meta {
    font-size: .9rem;
    color: var(--dsc-text);
    display: flex;
    gap: 12px;
}

.dsc-actions {
    display: flex;
    align-items:center;
    justify-content:flex-end;
    width:100%;
    gap: 8px;
}

.dsc-btn--save {
    background: #fff;
    color: var(--dsc-primary);
    border: 1px solid var(--dsc-primary);
}

    .dsc-btn--save:hover {
        background: var(--dsc-primary);
        color: #fff;
    }

/* Tag no canto do card */
.dsc-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--dsc-primary);
    color: #fff;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 700;
    z-index: 2;
}

/* Cupom */
.dsc-coupon {
    background: var(--dsc-primary-ghost);
    border: 1px dashed var(--dsc-primary);
    color: var(--dsc-primary);
    padding: 10px 16px;
    margin: 0 16px 16px 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;

    gap: 8px;
}
.dsc-cashback {
    background: rgba(0, 200, 83, .08); /* verde suave */
    border: 1px dashed #00c853;
    color: #0a7a3a;
    padding: 10px 16px;
    margin: 0 16px 16px 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}
/* ===== Ranking ===== */
.dsc-ranking {
    background: var(--dsc-card);
    border: 1px solid var(--dsc-border);
    border-radius: var(--dsc-radius);
    padding: 16px;
    box-shadow: var(--dsc-shadow);
    margin-bottom: 16px;
}

.dsc-ranking-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--dsc-text);
    margin-bottom: 12px;
}

.dsc-ranking-cards {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.dsc-ranking-card {
    background: var(--dsc-bg);
    border: 1px solid var(--dsc-border);
    border-radius: 10px;
    flex: 1;
    min-width: 30%;
    cursor: pointer;
    transition: transform .2s, box-shadow .2s;
    position: relative;
    overflow: hidden;
}

    .dsc-ranking-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(0,0,0,.08);
    }

    .dsc-ranking-card img {
        width: 100%;
        height: 90px;
        object-fit: cover;
    }

.dsc-medal {
    position: absolute;
    top: 8px;
    left: 8px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: gold;
    color: #fff;
    font-size: .8rem;
    font-weight: 800;
    display: grid;
    place-items: center;
}

.dsc-medal--silver {
    background: silver;
    color: #333;
}

.dsc-medal--bronze {
    background: #cd7f32;
}

.dsc-name {
    font-size: .95rem;
    color: var(--dsc-primary);
    font-weight: 700;
    margin-bottom: 4px;
}

.dsc-score {
    display: inline-block;
    background: var(--dsc-primary);
    color: #fff;
    font-size: .75rem;
    padding: 2px 8px;
    border-radius: 999px;
}

.dsc-center-button {
    text-align: center;
    margin-top: 12px;
}

    .dsc-center-button a {
        padding: 6px 18px;
        font-size: .9rem;
        background: var(--dsc-primary);
        color: #fff;
        border: none;
        border-radius: 999px;
        cursor: pointer;
        text-decoration:none;
    }

        .dsc-center-button button:hover {
            opacity: .92;
        }

/* ===== Filtro (sticky) ===== */
.dsc-filter {
    background: var(--dsc-card);
    border: 1px solid var(--dsc-border);
    border-radius: var(--dsc-radius);
    padding: 10px 12px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.dsc-sticky {
    position: sticky;
    top: var(--dsc-sticky-top);
    z-index: 100; /* acima do conteúdo */
    box-shadow: var(--dsc-shadow);
}

.dsc-chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    padding:0.1em 0.2em;
}

.dsc-chip {
    background: #fff;
    color: var(--dsc-text);
    border: 1px solid var(--dsc-border);
    border-radius: 999px;
    padding: 6px 12px;
    font-size: .9rem;
    cursor: pointer;
}

    .dsc-chip.is-active,
    .dsc-chip:hover {
        border-color: var(--dsc-primary);
        color: var(--dsc-primary);
    }

/* ===== Responsividade ===== */
@media (max-width: 768px) {
    .dsc-container {
        padding: 12px;
        max-width: 96%;
    }

    .dsc-ranking-cards {
        flex-direction: column;
    }

    .dsc-ranking-card img {
        height: 140px;
    }
}

@media (max-width: 480px) {
    .dsc-toolbar {
        flex-direction: column;
        align-items: stretch;
        text-align:center;
    }

    .dsc-city-switcher {
        flex-wrap: wrap;
    }

    .dsc-filter {
        flex-direction: column;
        align-items: stretch;
    }

        .dsc-filter .dsc-filter-right {
            width: 100%;
        }

    .dsc-select-sm {
        width: 100%;
    }
}


/* ===== City dropdown (seta + painel abaixo) ===== */
.dsc-city-dropdown {
    position: relative;
    display: inline-block;
}

.dsc-city-trigger {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.dsc-city-dropdown summary::-webkit-details-marker {
    display: none;
}

.dsc-city-dropdown[open] .fa-chevron-down {
    transform: rotate(180deg);
    transition: transform .2s;
}

.dsc-city-panel {
    margin-top: 8px;
    padding: 8px 10px;
    background: #fff;
    border: 1px solid var(--dsc-border);
    border-radius: 10px;
    box-shadow: var(--dsc-shadow);
    display: flex;
    align-items: center;
    gap: 10px;
}

.dsc-city-label--inline {
    font-weight: 600;
    color: var(--dsc-text);
}

.dsc-city-select {
    min-width: 220px;
}

/* ===== Select de salvar (Já fui / Quero ir) ===== */
.dsc-save-select {
    border: 1px solid var(--dsc-primary);
    background: #fff;
    color: var(--dsc-primary);
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 14px;
    cursor: pointer;
}

/* ===== Caixa de CashBack com cor própria ===== */

/* Tornar a “área clicável” estilosa */
.dsc-card-hit {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* Imagem com altura controlada para não ficar “uma tela” inteira */
.dsc-card img {
    height: clamp(180px, 26vw, 260px); /* mobile ~180, desktop máx ~260 */
    object-fit: cover;
    object-position: center;
}

/* Truncar a descrição para caber melhor */
.dsc-description {
    display: -webkit-box;
    -webkit-line-clamp: 2; /* 2 linhas no desktop */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 768px) {
    .dsc-card img {
        height: 200px;
    }

    .dsc-description {
        -webkit-line-clamp: 3;
    }
    /* um pouco mais de texto no mobile */
}

/* Spinner do feed */
.dsc-loading {
    text-align: center;
    color: var(--dsc-muted);
    padding: 12px 0 18px;
    font-size: .95rem;
}

.dsc-card-hit {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* link cobrindo o card inteiro (evita “faixa” em branco) */
.dsc-card-hit {
    display: block;
    position: relative;
    text-decoration: none;
    color: inherit;
    line-height: 0; /* remove possíveis gaps ao redor da imagem */
}

.dsc-ranking-card {
    overflow: hidden;
    padding: 0;
}

    .dsc-ranking-card img {
        display: block;
        width: 100%;
        height: 120px;
        object-fit: cover;
        margin: 0;
    }

@media (max-width:768px) {
    .dsc-ranking-card img {
        height: 140px;
    }
}

.dsc-ranking-card .dsc-card-content {
    line-height: 1.2;
}

.dsc-medal {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 2;
}
/* garantir overlay */
