/* Vehicles page styles */

/* =========================================================
   KATALOG KENDARAAN SUZUKI
========================================================= */

.vehicle-page {
    --vehicle-accent: var(--primary, #dc2626);
    --vehicle-ink: #191b24;
    --vehicle-muted: #737987;
    --vehicle-line: #e7e9ef;
    color: var(--vehicle-ink);
    padding-bottom: 76px;
}

.vehicle-container {
    width: min(1180px, calc(100% - 40px));
    margin-inline: auto;
}

.vehicle-hero {
    padding: 64px 0 58px;
    background:
        radial-gradient(ellipse at 90% 10%, rgba(220,38,38,.10), transparent 36%),
        linear-gradient(135deg, #f8f9fc, #fff 58%, #f7f7fa);
    border-bottom: 1px solid var(--vehicle-line);
}

.vehicle-hero-inner {
    max-width: 850px;
}

.vehicle-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 18px;
    color: var(--vehicle-accent);
    font-size: 12px;
    font-weight: 850;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.vehicle-eyebrow::before {
    content: "";
    width: 30px;
    height: 3px;
    border-radius: 5px;
    background: currentColor;
}

.vehicle-hero h1 {
    margin: 0;
    font-size: clamp(35px, 5vw, 58px);
    line-height: 1.08;
    font-weight: 850;
    letter-spacing: -1.8px;
}

.vehicle-hero h1 span {
    color: var(--vehicle-accent);
}

.vehicle-hero-description {
    max-width: 680px;
    margin: 20px 0 0;
    color: var(--vehicle-muted);
    font-size: 16px;
    line-height: 1.85;
}

.vehicle-filters {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(180px, 230px) auto;
    gap: 10px;
    margin-top: 28px;
    padding: 7px;
    border: 1px solid #e4e6ec;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 8px 28px rgba(20,24,40,.05);
}

.vehicle-filters input,
.vehicle-filters select {
    width: 100%;
    min-width: 0;
    padding: 12px;
    border: 1px solid transparent;
    border-radius: 9px;
    outline: none;
    background: #fff;
    color: var(--vehicle-ink);
    font: inherit;
    font-size: 14px;
}

.vehicle-filters input:focus,
.vehicle-filters select:focus {
    border-color: var(--vehicle-accent);
}

.vehicle-filter-button {
    padding: 12px 20px;
    border: 0;
    border-radius: 10px;
    background: var(--vehicle-accent);
    color: #fff;
    font: inherit;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
}

.vehicle-filter-button:hover {
    opacity: .9;
}

.vehicle-content {
    padding-top: 44px;
}

.vehicle-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 18px;
    margin-bottom: 24px;
}

.vehicle-heading h2 {
    margin: 0;
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 850;
    letter-spacing: -.8px;
}

.vehicle-heading p {
    margin: 8px 0 0;
    color: var(--vehicle-muted);
    font-size: 14px;
    line-height: 1.7;
}

.vehicle-count {
    flex-shrink: 0;
    color: var(--vehicle-muted);
    font-size: 13px;
}

/* GRID KENDARAAN */
.vehicle-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.vehicle-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--vehicle-line);
    border-radius: 18px;
    background: #fff;
    transition: transform .25s, box-shadow .25s, border-color .25s;
}

.vehicle-card:hover {
    transform: translateY(-5px);
    border-color: #d9dce5;
    box-shadow: 0 16px 36px rgba(20,24,40,.09);
}

.vehicle-media {
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #f0f1f5;
}

.vehicle-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .45s;
}

.vehicle-card:hover .vehicle-media img {
    transform: scale(1.045);
}

.vehicle-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    padding: 23px;
}

.vehicle-pill {
    display: inline-flex;
    align-items: center;
    padding: 7px 10px;
    border-radius: 7px;
    background: #f8e9e9;
    color: var(--vehicle-accent);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .7px;
}

.vehicle-card h3 {
    margin: 14px 0 10px;
    font-size: 23px;
    font-weight: 850;
    line-height: 1.3;
    letter-spacing: -.5px;
    overflow-wrap: anywhere;
}

.vehicle-description {
    display: -webkit-box;
    overflow: hidden;
    margin: 0 0 22px;
    color: var(--vehicle-muted);
    font-size: 13px;
    line-height: 1.85;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.vehicle-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    width: 100%;
    margin-top: auto;
}

.vehicle-button {
    display: inline-flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 44px;
    padding: 11px 13px;
    border: 1px solid var(--vehicle-accent);
    border-radius: 10px;
    background: var(--vehicle-accent);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    text-align: center;
    text-decoration: none;
    transition: opacity .2s;
}

.vehicle-button:hover {
    opacity: .88;
}

.vehicle-button-outline {
    background: #fff;
    color: var(--vehicle-accent);
}

.vehicle-empty {
    grid-column: 1 / -1;
    padding: 54px 24px;
    border: 1px dashed #d9dce5;
    border-radius: 18px;
    background: #fafbfc;
    text-align: center;
}

.vehicle-empty h2 {
    margin: 0 0 10px;
    font-size: 24px;
}

.vehicle-empty p {
    margin: 0 0 20px;
    color: var(--vehicle-muted);
    font-size: 14px;
    line-height: 1.8;
}

.vehicle-reset {
    display: inline-flex;
    padding: 12px 18px;
    border-radius: 10px;
    background: var(--vehicle-accent);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

/* PAGINATION */
.vehicle-pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 42px;
}

.vehicle-page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    min-height: 42px;
    padding: 0 13px;
    border: 1px solid var(--vehicle-line);
    border-radius: 10px;
    background: #fff;
    color: var(--vehicle-ink);
    font-size: 13px;
    font-weight: 750;
    text-decoration: none;
}

.vehicle-page-link:hover,
.vehicle-page-link.is-active {
    border-color: var(--vehicle-accent);
    background: var(--vehicle-accent);
    color: #fff;
}

.vehicle-page-link.is-disabled {
    opacity: .4;
    pointer-events: none;
}

@media (max-width: 950px) {
    .vehicle-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
    }
}

@media (max-width: 620px) {
    .vehicle-container {
        width: min(100% - 28px, 1180px);
    }

    .vehicle-hero {
        padding: 42px 0 38px;
    }

    .vehicle-hero h1 {
        letter-spacing: -1px;
    }

    .vehicle-hero-description {
        font-size: 14px;
    }

    .vehicle-filters {
        grid-template-columns: 1fr;
        gap: 5px;
    }

    .vehicle-filters input,
    .vehicle-filters select,
    .vehicle-filter-button {
        min-height: 44px;
    }

    .vehicle-content {
        padding-top: 32px;
    }

    .vehicle-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .vehicle-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .vehicle-card {
        border-radius: 15px;
    }

    .vehicle-card-body {
        padding: 19px;
    }

    .vehicle-card h3 {
        font-size: 22px;
    }

    .vehicle-pagination {
        gap: 6px;
        margin-top: 30px;
    }

    .vehicle-page-link {
        min-width: 36px;
        min-height: 36px;
        padding: 0 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .vehicle-page *,
    .vehicle-page *::before,
    .vehicle-page *::after {
        transition: none !important;
    }
}
