/* =========================================================
   RPM Automotive – Auto Stylesheet (Archive + Single)
   ========================================================= */

/* =========================================================
   ARCHIVE PAGE LAYOUT
   ========================================================= */

/* Wrapper: filter links + grid rechts */
.rpm-archive-wrapper {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
    display: grid;
    grid-template-columns: 260px 1fr; /* vaste breedte filter */
    gap: 2rem;
    align-items: start;
}

/* Filterbalk links */
.rpm-filter-bar {
    background: #f7f7f7;
    padding: 1rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    position: sticky;
    top: 1rem;
}

.rpm-filter-bar form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.rpm-filter-bar select,
.rpm-filter-bar input {
    width: 100%;
    padding: 0.7rem 0.9rem;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 1rem;
    background: #fff;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.06);
}

/* Filterknop */
.rpm-filter-bar button {
    padding: 0.7rem 1.4rem;
    background: var(--rpm-blue, #1a4db3);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
}

.rpm-filter-bar button:hover {
    background: #174a92;
}

/* Wis filters */
.rpm-clear-filters {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: #666;
    text-decoration: underline;
}

/* Auto grid rechts */
.rpm-auto-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

/* =========================================================
   AUTO CARDS
   ========================================================= */

.rpm-auto-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    overflow: hidden;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.rpm-auto-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.rpm-auto-thumb img {
    width: 100%;
    display: block;
}

.rpm-auto-card h2 {
    font-size: 1.2rem;
    margin: 0.8rem 1rem 0.4rem;
}

.rpm-auto-meta {
    margin: 0.5rem 1rem 1rem;
    font-size: 0.95rem;
}

/* =========================================================
   SINGLE PAGE LAYOUT
   ========================================================= */

/* Wrapper */
.rpm-single-wrapper {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

/* Hoofdfoto + specificaties naast elkaar */
.rpm-single-top {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.rpm-single-photo img {
    width: 100%;
    border-radius: 10px;
}

.rpm-single-specs p {
    margin: 0.4rem 0;
}

/* Content onder specificaties */
.rpm-single-content {
    margin-top: 1rem;
}

/* =========================================================
   SLIDER ONDER HOOFDFOTO + SPECIFICATIES
   ========================================================= */

.rpm-gallery-slider {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 1rem;
}

.rpm-gallery-slide {
    min-width: 250px;
    flex: 0 0 auto;
    scroll-snap-align: start;
}

.rpm-gallery-slide img {
    width: 100%;
    border-radius: 10px;
}

/* =========================================================
   BUTTONS
   ========================================================= */

.rpm-auto-button {
    display: inline-block;
    margin: 0.6rem 1rem 1rem;
    background: var(--rpm-blue, #1a4db3);
    color: #fff;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
}

.rpm-auto-button:hover {
    background: #174a92;
}

/* Verwijder WP standaard knoppen */
.wp-block-button,
.wp-block-buttons,
.wp-block-post-excerpt__more-text {
    display: none !important;
}

/* =========================================================
   MOBIEL
   ========================================================= */

@media (max-width: 900px) {

    /* Archive filter boven */
    .rpm-archive-wrapper {
        grid-template-columns: 1fr;
    }

    .rpm-filter-bar {
        position: static;
        width: 100%;
    }

    /* Single page: alles onder elkaar */
    .rpm-single-top {
        grid-template-columns: 1fr;
    }
}
/* Rij 2: Beschrijving links, Opties rechts */
.rpm-single-middle {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 40px;
}

/* Blokken netjes stylen */
.rpm-single-description,
.rpm-single-options {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
}

/* Mobiel fallback */
@media (max-width: 768px) {
    .rpm-single-middle {
        grid-template-columns: 1fr;
    }
}

/* Tabs container (mag breed blijven) */
.rpm-tabs {
    margin: 40px 0;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #ddd;
    padding-top: 0;
}

/* Tab knoppen — LINKS uitlijnen, compact */
.rpm-tabs-nav {
    display: flex;
    justify-content: flex-start; /* <<< LINKS UITLIJNEN */
    gap: 0;
    border-bottom: 1px solid #ddd;
    padding-left: 20px; /* <<< Mooie marge links */
}

/* Individuele tab-knoppen */
.rpm-tab-btn {
    padding: 12px 30px;
    background: #f2f2f2;
    border: none;
    cursor: pointer;
    font-weight: 600;
    color: #333;
    border-right: 1px solid #ddd;
    transition: 0.2s;
}

.rpm-tab-btn:hover {
    background: #e5e5e5;
}

.rpm-tab-btn.active {
    background: #222;
    color: #fff;
}

/* Tab inhoud (breed vak) */
.rpm-tabs-content {
    padding: 20px;
}

.rpm-tab-pane {
    display: none;
}

.rpm-tab-pane.active {
    display: block;
}

/* Opties in 3 kolommen */
.rpm-opties-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px 20px;
    margin-top: 10px;
}

.rpm-optie-item {
    padding: 6px 0;
    border-bottom: 1px solid #eee;
    font-size: 15px;
}

/* Mobiel: 1 kolom */
@media (max-width: 768px) {
    .rpm-opties-grid {
        grid-template-columns: 1fr;
    }
}
.rpm-verkocht-banner {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #e63946;
    color: #fff;
    padding: 10px 18px;
    font-size: 18px;
    font-weight: 700;
    border-radius: 6px;
    z-index: 20;
    box-shadow: 0 4px 10px rgba(0,0,0,0.25);
    text-transform: uppercase;
}
