/* ============================================
   ANNONCES.CSS — Listing cards, toolbar
   & pagination
   ============================================ */

.annonces-section {
    margin-bottom: 36px;
}

/* --- Toolbar --- */
.annonces-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-light);
}

.annonces-count {
    font-size: 13px;
    color: var(--text-light);
}

.toolbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sort-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: white;
    font-size: 13px;
    cursor: pointer;
    color: var(--text);
    transition: border-color 0.15s;
}

.sort-btn:hover {
    border-color: var(--orange);
}

.view-toggle {
    display: flex;
    border: 1px solid var(--border);
    border-radius: 6px;
    overflow: hidden;
}

.view-btn {
    padding: 7px 10px;
    background: white;
    border: none;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-light);
    transition: all 0.15s;
}

.view-btn.active {
    background: var(--orange);
    color: white;
}

/* --- Grid --- */
.annonces-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}

/* --- LBC Card --- */
.lbc-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: box-shadow 0.15s;
    border: 1px solid var(--border-light);
    position: relative;
}

.lbc-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.lbc-card-img {
    width: 100%;
    height: 130px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 52px;
    background: var(--border-light);
    position: relative;
}

.lbc-card-img.bg1 { background: linear-gradient(135deg, #ffe0ea, #fff0f5); }
.lbc-card-img.bg2 { background: linear-gradient(135deg, #fff0e0, #fff8ec); }
.lbc-card-img.bg3 { background: linear-gradient(135deg, #e0f0ff, #f0f8ff); }
.lbc-card-img.bg4 { background: linear-gradient(135deg, #e8ffe0, #f5fff0); }
.lbc-card-img.bg5 { background: linear-gradient(135deg, #f5e0ff, #fdf0ff); }

/* --- Badges --- */
.lbc-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.badge-premium { background: #f5a623; color: white; }
.badge-urgent  { background: var(--red);    color: white; }
.badge-new     { background: #2ecc71;       color: white; }

/* --- Favorite Button --- */
.lbc-fav {
    position: absolute;
    top: 8px;
    right: 8px;
    background: white;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.15);
    cursor: pointer;
    border: none;
    transition: transform 0.15s;
}

.lbc-fav:hover {
    transform: scale(1.2);
}

/* --- Card Body --- */
.lbc-card-body {
    padding: 10px 12px 12px;
}

.lbc-price {
    font-size: 16px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 4px;
}

.lbc-price.free     { color: var(--red); font-size: 13px; }
.lbc-price.exchange { color: #2ecc71;   font-size: 13px; }

.lbc-title {
    font-size: 13px;
    color: var(--text);
    margin-bottom: 8px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.lbc-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.lbc-location {
    font-size: 11px;
    color: var(--text-lighter);
}

.lbc-date {
    font-size: 11px;
    color: var(--text-lighter);
}

/* --- Seller Info --- */
.lbc-seller {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
}

.seller-avatar {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: white;
    font-weight: 700;
    flex-shrink: 0;
}

.av1 { background: linear-gradient(135deg, #e8003d, #ff6b9d); }
.av2 { background: linear-gradient(135deg, #ff6e14, #ffb366); }
.av3 { background: linear-gradient(135deg, #0078d4, #66b3ff); }
.av4 { background: linear-gradient(135deg, #2ecc71, #a8f0c6); }
.av5 { background: linear-gradient(135deg, #9b59b6, #d4a0f5); }

.seller-name {
    font-size: 11px;
    color: var(--text-lighter);
}

.seller-rating {
    font-size: 10px;
    color: #f5a623;
    margin-left: auto;
}

/* --- Pagination --- */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin: 24px 0 36px;
}

.pg-btn {
    min-width: 36px;
    height: 36px;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: white;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    transition: all 0.15s;
    padding: 0 8px;
}

.pg-btn:hover {
    border-color: var(--orange);
    color: var(--orange);
}

.pg-btn.active {
    background: var(--orange);
    color: white;
    border-color: var(--orange);
    font-weight: 700;
}

/* ============================================
   RESPONSIVE — Tablet (768px) & Mobile (480px)
   ============================================ */
@media (max-width: 1024px) {
    .annonces-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .annonces-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .annonces-toolbar {
        flex-wrap: wrap;
        gap: 10px;
    }

    .lbc-card-img {
        height: 110px;
    }
}

@media (max-width: 480px) {
    .annonces-grid {
        grid-template-columns: 1fr;
    }

    .view-toggle {
        display: none;
    }

    .lbc-card-img {
        height: 160px;
        font-size: 60px;
    }

    .lbc-price {
        font-size: 14px;
    }

    .lbc-title {
        font-size: 12px;
    }
}
