/* ═══════════════════════════════════════════════════════════════════════════
   Moto Models Showcase — pixel-matched to global.zxmoto.com
═══════════════════════════════════════════════════════════════════════════ */

.moto-models-wrap {
    width: 100%;
    font-family: Arial, Helvetica, sans-serif;
    background: #ffffff;
    color: #111;
}

/* ── BANNER ──────────────────────────────────────────────────────────────── */
/* When a banner image is set it covers the full area.
   The plain fallback mimics the dark-navy motorcycle illustration bg. */
.moto-banner {
    width: 100%;
    min-height: 380px;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Fallback – dark navy gradient (matches the reference screenshot) */
.moto-banner-plain {
    background: linear-gradient(135deg, #1c2a4a 0%, #2d3f6b 40%, #3a4f7a 70%, #2a3d60 100%);
    min-height: 380px;
}

/* Slight dark overlay so uploaded images keep the title readable */
.moto-banner-overlay {
    position: absolute;
    inset: 0;
    background: rgba(20, 30, 55, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
}

.moto-banner-plain .moto-banner-overlay {
    background: transparent;
    position: relative;
    inset: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 380px;
}

.moto-banner-title {
    color: #ffffff;
    font-size: 3.2rem;
    font-weight: 900;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    margin: 0;
    padding: 0;
    line-height: 1;
    text-align: center;
    /* matches the clean centred white MODELS text in the screenshot */
}

/* ── FILTER / CATEGORY TAB BAR ───────────────────────────────────────────── */
/* White bar, tabs left-aligned with generous spacing, thin line below */
.moto-filter-bar {
    background: #ffffff;
    padding: 0 60px;
    border-bottom: 1px solid #dddddd;
    margin-bottom: 0;
}

.moto-filter-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
    gap: 0;
}

.moto-filter-list::-webkit-scrollbar { display: none; }

.moto-filter-list li {
    margin: 0;
    flex-shrink: 0;
}

/* Tab links — text only, no icons (matches screenshot) */
.moto-filter-btn {
    display: block;
    padding: 22px 28px;
    text-decoration: none;
    color: #222222;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    border-bottom: 2px solid transparent;
    transition: color 0.18s, border-color 0.18s;
    white-space: nowrap;
    cursor: pointer;
    line-height: 1;
}

.moto-filter-btn:hover,
.moto-filter-btn:focus {
    color: #1a4fce;
    border-bottom-color: #1a4fce;
    text-decoration: none;
}

/* Active tab — blue underline, matches the "ALL" in the reference screenshot */
.moto-filter-btn.active {
    color: #1a4fce;
    border-bottom-color: #1a4fce;
}

/* Hide category icons in the filter bar (reference shows text-only tabs) */
.moto-cat-icon {
    display: none;
}

/* ── MODEL GRID ──────────────────────────────────────────────────────────── */
/* White background, 3 columns, cards separated only by thin grey lines */
.moto-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    background: #ffffff;
    padding: 20px 60px 60px;
}

/* ── MODEL CARD ──────────────────────────────────────────────────────────── */
/* Pure white, no box shadow, thin bottom border — exactly like the reference */
.moto-card {
    background: #ffffff;
    border: none;
    border-bottom: 1px solid #e2e2e2;
    border-right: none;
    border-radius: 0;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: block;
    padding: 30px 24px 24px;
    box-sizing: border-box;
    transition: opacity 0.2s;
    cursor: pointer;
    position: relative;
}

.moto-card:hover {
    opacity: 0.85;
    text-decoration: none;
    color: inherit;
}

/* Image area — large, padded, no background tint */
.moto-card-img-wrap {
    width: 100%;
    aspect-ratio: 4 / 3;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: transparent;
    padding: 0 10px 10px;
    box-sizing: border-box;
}

.moto-card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;   /* full bike visible, never cropped */
    display: block;
    transition: transform 0.32s ease;
}

.moto-card:hover .moto-card-img-wrap img {
    transform: scale(1.05);
}

.moto-card-no-img {
    color: #bbb;
    font-size: 0.82rem;
}

/* Model name — bold, black, centred, below a thin separator */
.moto-card-name {
    padding: 18px 10px 6px;
    font-size: 1.05rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #111111;
    text-align: center;
    border-top: 1px solid #e2e2e2;
    margin-top: 10px;
}

/* ── RESPONSIVE ──────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .moto-filter-bar  { padding: 0 24px; }
    .moto-grid        { padding: 10px 24px 40px; }
    .moto-banner-title { font-size: 2.6rem; }
}

@media (max-width: 800px) {
    .moto-grid         { grid-template-columns: repeat(2, 1fr); padding: 10px 16px 32px; }
    .moto-filter-bar   { padding: 0 12px; }
    .moto-filter-btn   { padding: 18px 16px; font-size: 0.72rem; letter-spacing: 0.09em; }
    .moto-banner       { min-height: 260px; }
    .moto-banner-plain { min-height: 260px; }
    .moto-banner-plain .moto-banner-overlay { min-height: 260px; }
    .moto-banner-title { font-size: 2.2rem; }
}

@media (max-width: 480px) {
    .moto-grid         { grid-template-columns: repeat(2, 1fr); padding: 8px 8px 24px; }
    .moto-filter-btn   { padding: 16px 12px; font-size: 0.65rem; }
    .moto-banner       { min-height: 180px; }
    .moto-banner-plain { min-height: 180px; }
    .moto-banner-plain .moto-banner-overlay { min-height: 180px; }
    .moto-banner-title { font-size: 1.7rem; letter-spacing: 0.14em; }
    .moto-card         { padding: 16px 10px 14px; }
}
