#filtro-credenciados {
    margin: auto;
}

#resultados {
    min-height: calc(100vh - 500px);
}

/* Estilização do formulário para versão mobile */

@media screen and (max-width: 768px) {
    #filtro-credenciados {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        padding: 15px;
    }

    #filtro-credenciados select {
        width: 90%;
        max-width: 400px;
        padding: 12px;
        font-size: 16px;
        border: 1px solid #ccc;
        border-radius: 8px;
        background-color: #f7f7f7;
        color: #333;
        appearance: none;
        -webkit-appearance: none;
        -moz-appearance: none;
        text-align: left;
        margin-bottom: 10px;
    }

    /* Adicionando seta personalizada */
    #filtro-credenciados select {
        background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="%23333"><path d="M7 10l5 5 5-5z"/></svg>');
        background-repeat: no-repeat;
        background-position: right 10px center;
        background-size: 16px;
        padding-right: 35px;
    }

    /* Botão de busca */
    #filtro-credenciados button {
        width: 90%;
        max-width: 400px;
        padding: 12px;
        font-size: 18px;
        font-weight: bold;
        color: #fff;
        background-color: #8a2063;
        /* Rosa conforme solicitado */
        border: none;
        border-radius: 8px;
        cursor: pointer;
        transition: background 0.3s ease;
        text-transform: uppercase;
    }

    #filtro-credenciados button:hover {
        background-color: #a32c78;
    }
}

/* Adicione este CSS ao seu arquivo style.css */

/* Grid de credenciados */
.credenciados-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px;
}

/* Card individual */
.credenciado-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.credenciado-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* Logotipo */
.credenciado-logo {
    height: 200px;
    overflow: hidden;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.credenciado-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    padding: 20px;
}

/* Informações do credenciado */
.credenciado-info {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.credenciado-nome {
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.credenciado-desconto {
    margin-top: -5px;
}

.desconto-tag {
    background: #8a2063;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    display: inline-block;
}

.credenciado-resumo {
    font-size: 0.925rem;
    color: #666;
    line-height: 1.5;
    margin: 0;
}

/* Contato e localização */
.credenciado-contato {
    margin-top: auto;
    font-size: 0.875rem;
    color: #555;
}

.credenciado-telefone,
.credenciado-endereco {
    margin: 5px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Botões e ações */
.credenciado-acoes {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.btn-whatsapp,
.btn-instagram,
.btn-ver-mais {
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    flex: 1;
    text-align: center;
    transition: background-color 0.3s ease;
}

.btn-instagram {
    background: #e1306c;
    color: white;
}

.btn-whatsapp {
    background: #04a00e!important;
    color: white;
}

.btn-ver-mais {
    background: #8a2063;
    color: white;
}

.btn-whatsapp:hover,
.btn-instagram:hover,
.btn-ver-mais:hover {
    opacity: 0.9;
}

/* Loader */
.loader-container {
    width: 100%;
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.loader {
    width: 50px;
    height: 50px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #8a2063;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loader-text {
    color: #666;
    font-size: 0.9rem;
    text-align: center;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.skeleton-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px;
}

.skeleton-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    height: 450px;
}

.skeleton-image {
    height: 200px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

.skeleton-content {
    padding: 20px;
}

.skeleton-line {
    height: 20px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
    margin-bottom: 15px;
}

.skeleton-line:nth-child(2) {
    width: 60%;
}

.skeleton-line:nth-child(3) {
    width: 80%;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Mensagem de nenhum resultado */
.no-results {
    text-align: center;
    padding: 40px;
    color: #666;
    font-size: 1.1rem;
}

/* Responsividade */
@media screen and (max-width: 768px) {
    .credenciados-grid {
        grid-template-columns: 1fr;
        padding: 15px;
    }
    
    .credenciado-card {
        margin-bottom: 15px;
    }
}