/* © 2026 H.W. & H. Investments Pty Ltd. All rights reserved. */
/* ═══════════════════════════════════════════════════════════════════════════ */
/* Browse by Make — Styles                                                    */
/* ═══════════════════════════════════════════════════════════════════════════ */

/* ─── Hero ─── */
.bm-hero {
    background: linear-gradient(135deg, #0f1a2e 0%, var(--navy, #0f1f3d) 60%, #1a3460 100%);
    color: var(--white, #fff);
    padding: 3rem 0;
    margin-bottom: 2rem;
}
.bm-hero h1 {
    margin: 0 0 0.5rem;
    font-size: 2rem;
    font-weight: 800;
    color: var(--gold, #f0a500);
}
.bm-hero p {
    margin: 0;
    opacity: 0.88;
    max-width: 600px;
    font-size: 1.05rem;
}

/* ─── Page ─── */
.browse-makes-page {
    padding-bottom: 3rem;
}

/* ─── Popular Makes ─── */
.bm-popular {
    margin-bottom: 2.5rem;
}
.bm-popular h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--navy, #0f1f3d);
    margin-bottom: 1rem;
}
.bm-popular-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 0.75rem;
}
.bm-popular-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.25rem 0.75rem;
    background: var(--white, #fff);
    border: 2px solid var(--gold, #f0a500);
    border-radius: var(--radius-lg, 16px);
    text-decoration: none;
    color: var(--navy, #0f1f3d);
    transition: all var(--transition, 0.2s ease);
    text-align: center;
    box-shadow: var(--shadow-sm, 0 1px 3px rgba(15,31,61,0.06));
}
.bm-popular-card:hover {
    background: var(--gold, #f0a500);
    color: var(--navy, #0f1f3d);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md, 0 4px 20px rgba(15,31,61,0.10));
}
.bm-popular-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--navy, #0f1f3d);
    color: var(--gold, #f0a500);
    border-radius: var(--radius-full, 9999px);
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}
.bm-popular-card:hover .bm-popular-icon {
    background: var(--white, #fff);
    color: var(--navy, #0f1f3d);
}
.bm-popular-name {
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 0.125rem;
}
.bm-popular-count {
    font-size: 0.75rem;
    color: var(--grey-500, #8892a4);
}
.bm-popular-card:hover .bm-popular-count {
    color: var(--navy, #0f1f3d);
    opacity: 0.7;
}

/* ─── Category Section ─── */
.bm-category {
    margin-bottom: 2.5rem;
}
.bm-category-heading {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--grey-200, #e2e5ed);
}
.bm-category-heading a {
    color: var(--navy, #0f1f3d);
    text-decoration: none;
}
.bm-category-heading a:hover {
    color: var(--gold, #f0a500);
}
.bm-category-count {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--grey-400, #b0b7c8);
}

/* ─── Make Grid ─── */
.bm-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.75rem;
}
.bm-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    background: var(--white, #fff);
    border: 1px solid var(--grey-200, #e2e5ed);
    border-radius: var(--radius, 10px);
    text-decoration: none;
    color: var(--grey-900, #1a202c);
    transition: border-color var(--transition, 0.2s ease), box-shadow var(--transition, 0.2s ease);
}
.bm-card:hover {
    border-color: var(--gold, #f0a500);
    box-shadow: var(--shadow, 0 2px 8px rgba(15,31,61,0.08));
}
.bm-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--off-white, #f7f8fc);
    color: var(--navy, #0f1f3d);
    border-radius: var(--radius-sm, 6px);
    font-size: 0.9rem;
    font-weight: 800;
    flex-shrink: 0;
}
.bm-card:hover .bm-card-icon {
    background: var(--gold, #f0a500);
    color: var(--navy, #0f1f3d);
}
.bm-card-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.bm-card-name {
    font-weight: 600;
    font-size: 0.9rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.bm-card-count {
    font-size: 0.75rem;
    color: var(--grey-500, #8892a4);
}

/* ─── Empty State ─── */
.bm-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--grey-500, #8892a4);
}

/* ─── Responsive ─── */
@media (max-width: 768px) {
    .bm-hero { padding: 2rem 0; }
    .bm-hero h1 { font-size: 1.5rem; }
    .bm-popular-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    }
    .bm-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }
    .bm-popular-card:hover,
    .bm-card:hover { transform: none; }
}

@media (max-width: 480px) {
    .bm-hero { padding: 1.5rem 0; }
    .bm-hero h1 { font-size: 1.25rem; }
    .bm-popular-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .bm-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
    }
    .bm-card { padding: 0.75rem; }
    .bm-card-icon { width: 30px; height: 30px; font-size: 0.8rem; }
}
