/**
 * CSS: Aanbod - Occasions & Onderdelen (NIEUW)
 * Past bij het huidige Zuiderbaan Totaal Service thema
 * Vervangt: aanbod.css
 */

/* ========================
   FILTERS
   ======================== */
.aanbod-filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.aanbod-filters .filter-btn {
    padding: 8px 24px;
    border-radius: 100px;
    background: #DFE3EB;
    color: #04112A;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    font-family: 'Obvia', sans-serif;
}

.aanbod-filters .filter-btn:hover,
.aanbod-filters .filter-btn.active {
    background: #1373B9;
    color: white;
}


/* ========================
   ARCHIVE GRID
   ======================== */
.aanbod-archief {
    padding-bottom: 80px;
}

.aanbod-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.aanbod-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none !important;
    color: #04112A;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
    position: relative;
}

.aanbod-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.aanbod-card.verkocht {
    opacity: 0.7;
}

.aanbod-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 5px 14px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    z-index: 2;
    font-family: 'Obvia', sans-serif;
}

.verkocht-badge {
    background: #dc3545;
    color: white;
}

.gereserveerd-badge {
    background: #FCBE02;
    color: #04112A;
}

.aanbod-card-image {
    width: 100%;
    height: 240px;
    overflow: hidden;
    background: #f0f2f5;
}

.aanbod-card .aanbod-card-image img {
    width: 100% !important;
    height: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
    transition: transform 0.3s ease;
    padding: 10px;
    box-sizing: border-box;
}

.aanbod-card:hover .aanbod-card-image img {
    transform: scale(1.05);
}

.aanbod-no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: #C3C3C3;
    font-size: 48px;
    background: #f0f2f5;
}

.aanbod-no-image span {
    font-size: 14px;
    margin-top: 10px;
}

.aanbod-card-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.aanbod-type-label {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #1373B9;
    margin-bottom: 6px;
    font-family: 'Obvia', sans-serif;
}

.aanbod-card-content h3 {
    margin: 0 0 10px 0;
    font-size: 20px;
    line-height: 26px;
    color: #292459;
    font-weight: 700;
}

.aanbod-card-meta {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.aanbod-card-meta .meta-item {
    font-size: 14px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 5px;
}

.aanbod-card-meta .meta-item i {
    font-size: 12px;
    color: #1373B9;
}

.aanbod-card-prijs {
    font-size: 22px;
    font-weight: 700;
    color: #292459;
    margin-bottom: 15px;
    margin-top: auto;
}

.aanbod-card-content .button {
    background: #1373B9;
    color: white;
    padding: 8px 20px;
    border-radius: 100px;
    font-size: 15px;
    font-weight: 500;
    text-align: center;
    display: inline-block;
    margin-top: auto;
    align-self: flex-start;
}

.aanbod-geen-resultaten {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
    color: #999;
}

.aanbod-geen-resultaten i {
    font-size: 60px;
    margin-bottom: 20px;
    display: block;
}

.aanbod-paginering {
    margin-top: 50px;
    text-align: center;
}

.aanbod-paginering .page-numbers {
    display: inline-block;
    padding: 8px 16px;
    margin: 0 3px;
    border-radius: 8px;
    text-decoration: none;
    color: #04112A;
    font-weight: 500;
    transition: all 0.2s ease;
    font-family: 'Obvia', sans-serif;
}

.aanbod-paginering .page-numbers.current,
.aanbod-paginering .page-numbers:hover {
    background: #1373B9;
    color: white;
}


/* ========================
   SINGLE PAGE
   ======================== */
#single-aanbod .content-container {
    padding-top: 80px;
    padding-bottom: 40px;
}

#single-aanbod #breadcrumbs {
    margin-bottom: 25px;
    font-size: 14px;
    color: #666 !important;
}

#single-aanbod #breadcrumbs a {
    color: #1373B9 !important;
    text-decoration: none;
}

#single-aanbod #breadcrumbs a:hover {
    text-decoration: underline;
}

#single-aanbod #breadcrumbs span {
    color: #04112A !important;
}

.aanbod-single-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

/* Gallerij */
.aanbod-gallerij {
    position: sticky;
    top: 120px;
}

.gallerij-main {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    background: #f0f2f5;
    position: relative;
    height: 450px;
}

.aanbod-gallerij .gallerij-main img {
    width: 100% !important;
    height: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
    display: block;
    padding: 15px;
    box-sizing: border-box;
}

.gallerij-main .aanbod-badge {
    top: 15px;
    left: 15px;
}

.gallerij-main.no-image {
    height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.aanbod-no-image.large {
    font-size: 80px;
}

.gallerij-thumbs {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    overflow-x: auto;
    padding-bottom: 5px;
}

.gallerij-thumb {
    width: 80px;
    min-width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.2s ease;
    border: 2px solid transparent;
    background: #f0f2f5;
}

.gallerij-thumb:hover,
.gallerij-thumb.active {
    opacity: 1;
    border-color: #1373B9;
}

.gallerij-thumbs .gallerij-thumb img {
    width: 100% !important;
    height: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
    padding: 5px;
    box-sizing: border-box;
}

/* Product Info */
.aanbod-info h1 {
    margin-top: 5px !important;
    font-size: 32px !important;
    line-height: 40px !important;
    padding-left: 0 !important;
    border-bottom: none !important;
    font-style: normal !important;
    color: #292459 !important;
}

.aanbod-info h1:before {
    display: none !important;
}

.aanbod-prijs-groot {
    font-size: 28px;
    font-weight: 700;
    color: #292459;
    margin-bottom: 25px;
}

.aanbod-meta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 30px;
}

.meta-block {
    background: #f4f6f9;
    padding: 15px;
    border-radius: 10px;
}

.meta-block .meta-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #999;
    margin-bottom: 4px;
    font-family: 'Obvia', sans-serif;
}

.meta-block .meta-value {
    font-size: 16px;
    font-weight: 600;
    color: #04112A;
    display: flex;
    align-items: center;
    gap: 6px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.status-beschikbaar .status-dot { background: #28a745; }
.status-gereserveerd .status-dot { background: #FCBE02; }
.status-verkocht .status-dot { background: #dc3545; }

.aanbod-omschrijving {
    margin-bottom: 30px;
    color: #04112A !important;
}

.aanbod-omschrijving h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #292459 !important;
}

.aanbod-omschrijving p {
    font-size: 17px;
    line-height: 28px;
    color: #04112A !important;
}

.aanbod-info {
    color: #04112A !important;
}

.aanbod-info p,
.aanbod-info span,
.aanbod-info li {
    color: #04112A !important;
}

.aanbod-cta-btn {
    background: #1373B9 !important;
    color: white !important;
    padding: 14px 32px !important;
    border-radius: 100px !important;
    font-size: 17px !important;
    font-weight: 600 !important;
    display: inline-block;
    text-decoration: none !important;
}

.aanbod-cta-btn:hover {
    background: #0e5f9a !important;
}


/* ========================
   SPECIFICATIES
   ======================== */
.aanbod-specificaties {
    background: #f4f6f9;
    padding: 60px 0;
}

.aanbod-specificaties h2 {
    color: #292459;
    margin-bottom: 30px;
    font-weight: 700;
}

.specs-table {
    max-width: 700px;
}

.spec-row {
    display: flex;
    justify-content: space-between;
    padding: 14px 20px;
    border-radius: 8px;
}

.spec-row.odd {
    background: white;
}

.spec-label {
    font-weight: 600;
    color: #04112A;
    font-size: 16px;
}

.spec-waarde {
    color: #555;
    font-size: 16px;
}


/* ========================
   AANVRAAGFORMULIER
   ======================== */
.aanbod-aanvraag {
    padding: 80px 0;
    background: white;
}

.aanvraag-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: start;
}

.aanvraag-info h2 {
    color: #292459;
    font-weight: 700;
    margin-bottom: 15px;
}

.aanvraag-info p {
    font-size: 17px;
    line-height: 28px;
}

.aanvraag-contact-alt {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.aanvraag-contact-alt p {
    font-size: 15px;
    color: #999;
    margin-bottom: 10px;
}

.contact-link {
    display: flex !important;
    align-items: center;
    gap: 10px;
    color: #1373B9 !important;
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 10px;
    text-decoration: none !important;
}

.contact-link i {
    width: 20px;
    text-align: center;
}

.aanvraag-form {
    background: #f4f6f9;
    padding: 40px;
    border-radius: 16px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-groep {
    margin-bottom: 20px;
}

.form-groep label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #04112A;
    margin-bottom: 6px;
    font-family: 'Obvia', sans-serif;
}

.form-groep label .verplicht {
    color: #dc3545;
}

.form-groep input[type="text"],
.form-groep input[type="email"],
.form-groep input[type="tel"],
.form-groep textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid #ddd;
    border-radius: 10px;
    font-size: 16px;
    font-family: 'Obvia', sans-serif;
    transition: border-color 0.2s ease;
    background: white;
    box-sizing: border-box;
}

.form-groep input:focus,
.form-groep textarea:focus {
    outline: none;
    border-color: #1373B9;
    box-shadow: 0 0 0 3px rgba(19,115,185,0.1);
}

.form-groep textarea {
    resize: vertical;
    min-height: 100px;
}

.form-footer {
    margin-top: 10px;
}

.submit-btn {
    background: #1373B9;
    color: white;
    padding: 14px 32px;
    border-radius: 100px;
    font-size: 17px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background 0.2s ease;
    font-family: 'Obvia', sans-serif;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.submit-btn:hover {
    background: #0e5f9a;
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.form-melding {
    margin-top: 20px;
    padding: 15px 20px;
    border-radius: 10px;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-melding.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-melding.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}


/* ========================
   SECTION: AANBOD (homepage)
   ======================== */
section#aanbod-section {
    padding: 80px 0;
    background: #f4f6f9;
}

section#aanbod-section h2 {
    color: #292459;
    font-weight: 700;
    margin-bottom: 10px;
}

section#aanbod-section p.section-subtitle {
    font-size: 18px;
    color: #666;
    margin-bottom: 40px;
}

section#aanbod-section .aanbod-section-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

section#aanbod-section .section-footer {
    text-align: center;
}

section#aanbod-section .section-footer .button {
    background: #1373B9;
    color: white;
    padding: 12px 28px;
    border-radius: 100px;
    font-size: 16px;
    font-weight: 500;
}


/* ========================
   RESPONSIVE
   ======================== */
@media only screen and (max-width: 1200px) {
    .aanbod-single-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .aanbod-gallerij {
        position: static;
    }

    .aanvraag-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media only screen and (max-width: 1000px) {
    .aanbod-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    section#aanbod-section .aanbod-section-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .aanbod-meta-grid {
        grid-template-columns: 1fr 1fr;
    }

    .gallerij-main {
        height: 350px;
    }
}

@media only screen and (max-width: 700px) {
    .aanbod-grid {
        grid-template-columns: 1fr;
    }

    section#aanbod-section .aanbod-section-grid {
        grid-template-columns: 1fr;
    }

    .aanbod-card-image {
        height: 200px;
    }

    .gallerij-main {
        height: 280px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .aanvraag-form {
        padding: 25px;
    }

    .aanbod-info h1 {
        font-size: 26px !important;
        line-height: 34px !important;
    }

    .aanbod-prijs-groot {
        font-size: 24px;
    }

    .aanbod-meta-grid {
        grid-template-columns: 1fr;
    }

    .aanbod-filters .filter-btn {
        padding: 6px 16px;
        font-size: 14px;
    }
}
