.categoria-personalizada-container {
    padding: 60px 0;
    background: #f8f9fa;
}

.filtro-cidade-wrapper {
    background: #ffffff;
    padding: 20px 24px 24px;
    border-radius: 6px;
    margin-bottom: 40px;
    border: 1px solid #d8d8d8;
    box-shadow: none;
}

.filtro-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 12px 0;
}

.barra-cidade {
    display: flex;
    align-items: center;
    position: relative;
}

.input-cidade {
    width: 100%;
    flex: 1;
    padding: 13px 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    background: #f0f0f0;
    color: #555;
    transition: background 0.2s, border-color 0.2s;
}

.input-cidade::placeholder {
    color: #999;
    font-size: 14px;
}

.input-cidade:focus {
    outline: none;
    border-color: #aaa;
    background: #fff;
    color: #333;
}

.btn-limpar {
    margin-left: 10px;
    padding: 8px 14px;
    background: transparent;
    color: #666;
    border-radius: 4px;
    text-decoration: none;
    font-size: 16px;
    line-height: 1;
    transition: color 0.2s, background 0.2s;
    border: 1px solid #ccc;
    font-weight: 700;
    white-space: nowrap;
}

.btn-limpar:hover {
    background: #f0f0f0;
    color: #333;
}

.filtro-ativo {
    margin-top: 12px;
    padding: 8px 12px;
    background: #f0f4ff;
    border-left: 3px solid #555;
    font-size: 13px;
    color: #444;
    border-radius: 0 4px 4px 0;
}

.posts-personalizados-wrapper {
    min-height: 400px;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.post-card {
    background: #333;
    border: none;
    border-radius: 4px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
}


.post-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    position: relative;
}

.post-card-image {
    aspect-ratio: 1 / 1;
    width: 100%;
    overflow: hidden;
    position: relative;
}

.post-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}


.post-card-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 75%;
    background: linear-gradient(
        to top,
        rgba(0,0,0,0.88) 0%,
        rgba(0,0,0,0.45) 45%,
        rgba(0,0,0,0) 100%
    );
    z-index: 1;
}

.post-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px 12px 12px;
    z-index: 2;
    box-sizing: border-box;
}

.post-card-title {
    margin: 0 0 4px 0;
    font-size: 1.2rem;
    color: #ffffff;
    font-weight: 700;
    text-shadow: 0 1px 6px rgba(0,0,0,0.7);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-card-cidade {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.85);
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.post-card:hover .post-card-title,
.post-card:hover .post-card-cidade {
    text-decoration: underline;
}

.post-card-cidade:before {
    content: none;
}

.post-card.no-image {
    background: #555;
    min-height: 200px;
}

.post-card.no-image .post-card-content {
    position: static;
    padding: 25px 20px;
}

.post-card.no-image .post-card-title {
    color: #ffffff;
    -webkit-line-clamp: unset;
    overflow: visible;
}

.post-card.no-image .post-card-cidade {
    color: rgba(255,255,255,0.8);
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
}

.nenhum-resultado {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
}

.nenhum-resultado p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 20px;
}

.btn-voltar {
    display: inline-block;
    padding: 10px 25px;
    background: #333;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s;
}

.btn-voltar:hover {
    background: #555;
}

.page-banner.sem-imagem {
    min-height: 320px;
    background-image: url('../../assets/IMG/Banner_pagina.png');
    background-size: cover;
    background-position: center;
    margin-top: 61px;
}

/* ===== RESPONSIVO ===== */

@media (max-width: 900px) {
    .categoria-personalizada-container {
        padding: 30px 0;
    }

    .posts-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .post-card-title {
        font-size: 0.82rem;
        -webkit-line-clamp: 3;
    }

    .post-card-cidade {
        font-size: 0.72rem;
    }

    .post-card-content {
        padding: 16px 8px 8px;
    }
}

@media (max-width: 600px) {
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .post-card-title {
        font-size: 0.88rem;
        line-height: 1.25;
    }

    .post-card-cidade {
        font-size: 0.75rem;
    }

    .post-card-content {
        padding: 18px 10px 10px;
    }
}

@media (max-width: 360px) {
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }

    .post-card-title {
        font-size: 0.8rem;
    }
}