/* ============================================================
   LISTA ANÚNCIOS — Cards Premium
   ============================================================ */

/* ── Card principal ── */
.anuncio-card {
    display: block;
    text-decoration: none;
    border-radius: 18px;
    overflow: hidden;
    background: #111827;
    border: 1px solid rgba(255,255,255,.07);
    transition: transform .35s cubic-bezier(.25,.8,.25,1), box-shadow .35s ease, border-color .35s;
    height: 100%;
}

/* ── Grid de 5 colunas customizado ── */
.col-xl-anuncio {
    flex: 0 0 auto;
    width: 20%;
    padding-right: calc(var(--bs-gutter-x) * .5);
    padding-left:  calc(var(--bs-gutter-x) * .5);
    margin-top: var(--bs-gutter-y);
}

/* 4 colunas em telas grandes (lg) */
.col-lg-anuncio {
    flex: 0 0 auto;
    width: 25%;
}

/* 2 colunas em tablet (md) — já coberto pelo col-md-6 do Bootstrap */

/* 1 coluna em mobile — col-12 do Bootstrap cobre */

@media (max-width: 1199px) {
    .col-xl-anuncio { width: 25%; }
}
@media (max-width: 991px) {
    .col-xl-anuncio,
    .col-lg-anuncio { width: 50%; }
}
@media (max-width: 575px) {
    .col-xl-anuncio,
    .col-lg-anuncio { width: 100%; }
}

.anuncio-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 56px rgba(0,0,0,.6);
    border-color: rgba(212,175,55,.35);
    text-decoration: none;
}

/* ── Imagem ── */
.anuncio-card__img {
    position: relative;
    height: 380px;
    overflow: hidden;
    background: #0a0a14;
}

.anuncio-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
    transition: transform .5s ease;
    filter: brightness(.9);
}

.anuncio-card:hover .anuncio-card__img img {
    transform: scale(1.07);
    filter: brightness(.75);
}

/* Gradiente inferior sobre a imagem */
.anuncio-card__grad {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 55%;
    background: linear-gradient(to top, rgba(0,0,0,.92) 0%, rgba(0,0,0,.4) 60%, transparent 100%);
    pointer-events: none;
}

/* ── Badges ── */
.anuncio-card__badge {
    position: absolute;
    top: 12px; left: 12px;
    font-family: 'Poppins', sans-serif;
    font-size: .72rem;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    backdrop-filter: blur(8px);
    z-index: 2;
    text-shadow: 0 1px 3px rgba(0,0,0,.5);
}
.anuncio-card__badge--premium {
    background: rgba(212,175,55,.85);
    color: #1a1000;
    border: 1px solid rgba(255,220,80,.6);
    box-shadow: 0 2px 10px rgba(212,175,55,.4);
}
.anuncio-card__badge--basic {
    background: rgba(59,130,246,.85);
    color: #fff;
    border: 1px solid rgba(147,197,253,.5);
    box-shadow: 0 2px 10px rgba(59,130,246,.4);
}

.anuncio-card__age {
    position: absolute;
    top: 12px; right: 12px;
    background: #d4af37;
    color: #1a1a1a;
    font-family: 'Poppins', sans-serif;
    font-size: .72rem;
    font-weight: 800;
    padding: 5px 12px;
    border-radius: 20px;
    z-index: 2;
    letter-spacing: .03em;
    text-transform: uppercase;
}

/* ── Info sobre a imagem ── */
.anuncio-card__info {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 14px 16px;
    z-index: 2;
}

.anuncio-card__name {
    font-family: 'Poppins', sans-serif;
    font-size: .95rem;
    font-weight: 700;
    color: #f1f5f9;
    margin: 0 0 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.anuncio-card__loc {
    font-family: 'Poppins', sans-serif;
    font-size: .75rem;
    color: rgba(255,255,255,.6);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 5px;
}
.anuncio-card__loc i { color: #d4af37; font-size: .65rem; }

/* ── Overlay hover — removido a pedido ── */
.anuncio-card__overlay { display: none !important; }
.anuncio-card__overlay-btn { display: none !important; }

/* ── Rodapé ── */
.anuncio-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: rgba(255,255,255,.03);
    border-top: 1px solid rgba(255,255,255,.06);
}

/* ── Preço inline dentro da imagem — oculto (preço fica no rodapé) ── */
.anuncio-card__price-inline {
    display: none;
}

.anuncio-card__price {
    font-family: 'Poppins', sans-serif;
    font-size: .82rem;
    color: rgba(255,255,255,.6);
    display: inline-block;
}
.anuncio-card__price strong {
    color: #4ade80;
    font-size: .95rem;
    font-weight: 700;
}
.anuncio-card__price--free {
    color: #4ade80;
    font-size: .85rem;
}

.anuncio-card__cta {
    font-family: 'Poppins', sans-serif;
    font-size: .75rem;
    font-weight: 700;
    color: #d4af37;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: gap .2s;
}
.anuncio-card:hover .anuncio-card__cta { gap: 8px; }
.anuncio-card__cta i { font-size: .65rem; }

/* ── Paginação ── */
.page-item.active .page-link {
    background: #d4af37;
    border-color: #d4af37;
    color: #0a0a14;
    font-weight: 700;
}
.page-link {
    color: #d4af37;
    background: #111827;
    border-color: rgba(255,255,255,.1);
    font-family: 'Poppins', sans-serif;
    font-size: .85rem;
}
.page-link:hover {
    background: #1e293b;
    color: #f5d76e;
    border-color: rgba(212,175,55,.3);
}

/* ── Responsivo ── */
@media (max-width: 767px) {
    .anuncio-card__img { height: 320px; }
}
@media (max-width: 480px) {
    .anuncio-card__img { height: 280px; }
}

/* ── Marca d'água CSS sobre as fotos dos cards ── */
.anuncio-card__img::after {
    content: 'GPHub';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-30deg);
    font-family: 'Poppins', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    color: rgba(255,255,255,.18);
    letter-spacing: .25em;
    text-transform: uppercase;
    pointer-events: none;
    z-index: 4;
    text-shadow: 0 2px 6px rgba(0,0,0,.3);
    user-select: none;
    white-space: nowrap;
}
