/* ============================================================
   CATEGORIAS — Estilos da página de categorias (área pública)
   ============================================================
   Origem: app/sts/Views/home/categorias.php
   Migrado em: 2026-05-09
   ============================================================ */

/* ===== CARDS MODERNOS PARA ANÚNCIOS ===== */
.anuncio-card-modern {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    animation: fadeInUp 0.6s ease forwards;
}

.anuncio-card-modern:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.anuncio-image-container {
    position: relative;
    height: 280px;
    overflow: hidden;
}

.anuncio-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.anuncio-card-modern:hover .anuncio-image {
    transform: scale(1.05);
}

.anuncio-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.anuncio-nome {
    font-size: 18px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 12px;
    line-height: 1.3;
}

.anuncio-location,
.anuncio-cidade-estado,
.anuncio-preco {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    font-size: 14px;
    color: #7f8c8d;
}

.anuncio-location i,
.anuncio-cidade-estado i,
.anuncio-preco i {
    color: #e74c3c;
    width: 16px;
}

.anuncio-bairro {
    font-weight: 600;
    color: #34495e;
}

/* ===== BOTÕES DE AÇÃO FIXOS ===== */
.anuncio-actions-fixed {
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #ecf0f1;
    display: flex;
    gap: 8px;
    flex-direction: column;
}

.anuncio-actions-fixed .btn {
    border-radius: 25px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 12px;
    padding: 8px 16px;
    transition: all 0.3s ease;
    text-align: center;
}

.anuncio-actions-fixed .btn-primary {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    border: none;
    color: white;
}

.anuncio-actions-fixed .btn-primary:hover {
    background: linear-gradient(135deg, #c82333 0%, #a71e2a 100%);
    transform: translateY(-2px);
    color: white;
}

.anuncio-actions-fixed .btn-success {
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    border: none;
}

.anuncio-actions-fixed .btn-success:hover {
    background: linear-gradient(135deg, #20b358 0%, #0f7a6b 100%);
    transform: translateY(-2px);
}

/* ===== ANIMAÇÕES ===== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

.anuncio-card-modern:nth-child(1) { animation-delay: 0.1s; }
.anuncio-card-modern:nth-child(2) { animation-delay: 0.2s; }
.anuncio-card-modern:nth-child(3) { animation-delay: 0.3s; }
.anuncio-card-modern:nth-child(4) { animation-delay: 0.4s; }

/* ── Autocomplete de busca na lista de categorias ── */
#searchSuggestions li {
    padding: 9px 16px;
    font-family: 'Poppins', sans-serif;
    font-size: .85rem;
    color: #e2e8f0;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background .15s;
}
#searchSuggestions li:hover,
#searchSuggestions li.active {
    background: rgba(212,175,55,.15);
    color: #f5d76e;
}
#searchSuggestions li i { color: #d4af37; font-size: .75rem; width: 14px; }
#searchSuggestions .sug-sep {
    padding: 4px 16px 2px;
    font-size: .65rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: .08em;
    cursor: default;
    background: none !important;
}
#searchSuggestions .sug-sep:hover { background: none !important; color: #64748b !important; }
