/* =========================
   ARCHIVE FILIAIS — LIGHT UI
========================= */

.archive-filiais {
    background: #f5f6f8;
    color: #1a1a1a;
    min-height: 100vh;
}

/* =========================
   HERO
========================= */

.archive-hero {
    padding: 50px 20px 20px;
    text-align: center;
}

.archive-hero h1 {
    font-size: 2.2rem;
    font-weight: 700;
}

.archive-hero p {
    color: #666;
    margin-top: 8px;
}

/* =========================
   FILTROS
========================= */

.archive-filters {
    padding: 15px 20px;
    position: sticky;
    top: 0;
    z-index: 20;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
}

.filiais-filter-form {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    gap: 10px;
    background: #fff;
    padding: 10px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.filiais-filter-form input {
    flex: 1;
    border: none;
    padding: 10px;
    outline: none;
    font-size: 0.95rem;
}

.filiais-filter-form select {
    border: 1px solid #ddd;
    padding: 10px;
    border-radius: 8px;
    background: #fff;
}

.filiais-filter-form button {
    background: #ff7a00;
    color: #fff;
    border: none;
    padding: 10px 16px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
}

/* =========================
   GRID
========================= */

.archive-loop {
    padding: 30px 20px;
}

.filiais-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

/* =========================
   CARD
========================= */

.filial-card {
    background: #ffffff;
    border-radius: 14px;
    overflow: hidden;
    transition: 0.25s ease;
    border: 1px solid #e5e7eb;
}

.filial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

/* IMAGE */
.card-image {
    height: 160px;
    background-size: cover;
    background-position: center;
}

/* CONTENT */
.card-content {
    padding: 16px;
}

.card-content h2 {
    font-size: 1.05rem;
    margin-bottom: 8px;
    font-weight: 600;
}

/* META */
.distance,
.plans,
.rating {
    font-size: 0.85rem;
    color: #555;
    margin-bottom: 4px;
}

/* CTA */
.btn {
    display: inline-block;
    margin-top: 10px;
    background: #ff7a00;
    color: #fff;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* =========================
   PAGINAÇÃO
========================= */

.pagination {
    display: flex;
    justify-content: center;
    margin-top: 40px;
    flex-wrap: wrap;
    gap: 6px;
}

.pagination a,
.pagination span {
    padding: 8px 12px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.85rem;
    color: #444;
}

.pagination .current {
    background: #ff7a00;
    color: #fff;
    border-color: #ff7a00;
}

/* =========================
   EMPTY STATE
========================= */

.no-results {
    text-align: center;
    padding: 60px;
    color: #777;
}

/* =========================
   MOBILE
========================= */

@media (max-width: 768px) {

    .archive-hero h1 {
        font-size: 1.7rem;
    }

    .filiais-filter-form {
        flex-direction: column;
    }

    .filiais-filter-form button {
        width: 100%;
    }

}