/* =========================================
   Caravan Compleet Plugin
   ========================================= */

.camper-datum-filter {
    display: flex;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 0;
    width: 100%;
    box-sizing: border-box;
    background: #f5f5f5;
    border: 1px solid #e5e7eb;
    border-radius: 3px;
    padding: 0.875rem 1.25rem;
}

.camper-datum-filter__veld {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    padding: 0 1.25rem;
    border-right: 1px solid #e5e7eb;
}

.camper-datum-filter__veld:first-of-type {
    padding-left: 0;
}

.camper-datum-filter__veld label {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    color: #6b7280;
    white-space: nowrap;
    margin: 0;
}

.camper-datum-filter__optioneel {
    font-weight: 400;
    color: #9ca3af;
}

.camper-datum-filter__veld input[type="date"] {
    height: 36px;
    padding: 0 0.6rem;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    font-size: 0.82rem;
    color: #374151;
    background: #fff;
    font-family: inherit;
    box-sizing: border-box;
    outline: none;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    min-width: 150px;
}

.camper-datum-filter__veld input[type="date"]:focus {
    border-color: #111827;
}

.camper-datum-filter__veld input[type="date"]::-webkit-calendar-picker-indicator {
    opacity: 0.5;
    cursor: pointer;
}

.camper-datum-filter__veld--last {
    border-right: none;
}

.camper-datum-filter__select {
    height: 36px;
    padding: 0 1.6rem 0 0.6rem;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    font-size: 0.82rem;
    color: #374151;
    background: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.5rem center;
    appearance: none;
    -webkit-appearance: none;
    font-family: inherit;
    cursor: pointer;
    outline: none;
    min-width: 140px;
}

.camper-datum-filter__select:focus {
    border-color: #111827;
}

.camper-datum-filter__acties {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-left: 1.25rem;
    flex-shrink: 0;
}

.camper-datum-filter__knop {
    height: 36px;
    padding: 0 1.25rem;
    background: #DE8D31 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 6px;
    font-size: 0.82rem !important;
    font-weight: 500 !important;
    font-family: inherit;
    letter-spacing: normal !important;
    text-transform: none !important;
    cursor: pointer;
    white-space: nowrap;
    line-height: 1;
    transition: background 0.15s ease;
    outline: none !important;
    box-shadow: none !important;
}

.camper-datum-filter__knop:hover,
.camper-datum-filter__knop:focus {
    background: #C27824 !important;
    color: #fff !important;
}

.camper-datum-filter__reset {
    font-size: 0.8rem;
    color: #6b7280;
    text-decoration: underline;
    white-space: nowrap;
    cursor: pointer;
}

.camper-datum-filter__reset:hover {
    color: #111827;
}

/* =========================================
   Loading state
   ========================================= */

#camper-resultaten {
    transition: opacity 0.2s ease;
}

#camper-resultaten.is-loading {
    opacity: 0.4;
    pointer-events: none;
}

/* =========================================
   Responsive
   ========================================= */

@media (max-width: 600px) {
    .camper-datum-filter {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
        padding: 1rem;
    }

    .camper-datum-filter__veld {
        padding: 0;
        border-right: none;
        border-bottom: 1px solid #e5e7eb;
        padding-bottom: 1rem;
    }

    .camper-datum-filter__veld input[type="date"] {
        width: 100%;
    }

    .camper-datum-filter__acties {
        padding-left: 0;
        flex-wrap: wrap;
    }

    .camper-datum-filter__knop {
        width: 100%;
        justify-content: center;
        display: flex;
        align-items: center;
    }

    .camper-datum-filter__veld--last {
        border-bottom: none;
        padding-bottom: 0;
    }

    .camper-datum-filter__select {
        width: 100%;
    }
}

/* =========================================
   Last Minute — Boekformulier
   ========================================= */

.lm-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

.lm-boek {
    max-width: 600px;
}

.lm-boek__datums {
    display: flex;
    gap: 3rem;
    margin-bottom: 1.75rem;
}

.lm-boek__datum-veld {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.lm-boek__datum-veld strong {
    font-size: 0.9rem;
    color: #111827;
}

.lm-boek__datum-veld span {
    font-size: 0.9rem;
    color: #374151;
}

.lm-boek__samenvatting {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.75rem;
}

.lm-boek__samenvatting-titel {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.75rem;
    color: #111827;
}

.lm-boek__samenvatting-lijst {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.lm-boek__samenvatting-lijst li {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: #374151;
}

.lm-boek__samenvatting-lijst li span {
    color: #6b7280;
}

.lm-boek__prijs {
    color: #DE8D31;
    font-size: 1rem;
}

.lm-boek__veld {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    margin-bottom: 1rem;
}

.lm-boek__veld label {
    font-size: 0.85rem;
    font-weight: 500;
    color: #374151;
}

.lm-boek__verplicht {
    color: #DE8D31;
}

.lm-boek__veld input,
.lm-boek__veld textarea {
    padding: 0.55rem 0.75rem;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 0.9rem;
    font-family: inherit;
    color: #111827;
    outline: none;
    transition: border-color 0.15s ease;
    width: 100%;
    box-sizing: border-box;
}

.lm-boek__veld input:focus,
.lm-boek__veld textarea:focus {
    border-color: #111827;
}

.lm-boek__acties {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 0.5rem;
}

.lm-boek__knop {
    height: 42px;
    padding: 0 1.5rem;
    background: #DE8D31;
    color: #fff !important;
    border: 0px solid transparent;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.15s ease;
}

.lm-boek__knop:hover:not(:disabled) {
    background: #C27824;
}

.lm-boek__knop:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.lm-boek__spinner {
    font-size: 0.85rem;
    color: #6b7280;
}

.lm-boek__melding {
    padding: 0.75rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    margin-top: 1rem;
}

.lm-boek__melding--fout {
    background: #fef2f2;
    border: 1px solid #fca5a5;
    color: #991b1b;
}

.lm-boek__melding--info {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    color: #0c4a6e;
}

.lm-boek__succes {
    background: #f0fdf4;
    border: 1px solid #86efac;
    border-radius: 8px;
    padding: 1.5rem;
    color: #166534;
}

.lm-boek__succes h3 {
    margin: 0 0 0.5rem;
    font-size: 1.1rem;
}

.lm-boek__succes p {
    margin: 0;
    font-size: 0.9rem;
}

/* =========================================
   WP Booking System — stijl overschrijvingen
   ========================================= */

/* ── Kalender: rand en header ─────────────────────────────────────────────── */

.wpbs-container .wpbs-calendars .wpbs-calendar {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
}

.wpbs-container .wpbs-calendars .wpbs-calendar .wpbs-calendar-header {
    background: #f9fafb;
}

/* ── Kalender: navigatieknoppen ──────────────────────────────────────────── */

.wpbs-container .wpbs-calendars .wpbs-calendar .wpbs-calendar-header .wpbs-calendar-header-navigation .wpbs-prev,
.wpbs-container .wpbs-calendars .wpbs-calendar .wpbs-calendar-header .wpbs-calendar-header-navigation .wpbs-next {
    background: #DE8D31;
    border-radius: 4px;
}

.wpbs-container .wpbs-calendars .wpbs-calendar .wpbs-calendar-header .wpbs-calendar-header-navigation .wpbs-prev:hover,
.wpbs-container .wpbs-calendars .wpbs-calendar .wpbs-calendar-header .wpbs-calendar-header-navigation .wpbs-next:hover {
    background: #C27824;
}

/* ── Kalender: legenda ───────────────────────────────────────────────────── */

.wpbs-calendars-wrapper {
    display: flex !important;
    flex-direction: column-reverse !important;
    align-items: flex-start !important;
    padding: 0 !important;
}

.wpbs-calendars-wrapper.wpbs-legend-position-side .wpbs-legend {
    position: static !important;
}

.wpbs-legend {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap;
    gap: 0.4rem 1.25rem;
    padding: 0.5rem 0.75rem !important;
    margin: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.wpbs-legend .wpbs-legend-item,
.wpbs-calendars-wrapper.wpbs-legend-position-side .wpbs-legend .wpbs-legend-item {
    display: flex !important;
    flex: 0 0 auto !important;
    align-items: center;
    gap: 0.35rem;
    margin: 0 !important;
}

.wpbs-legend .wpbs-legend-item-icon {
    width: 12px !important;
    height: 12px !important;
    min-width: 12px;
}

.wpbs-legend .wpbs-legend-item-icon div {
    width: 12px !important;
    height: 12px !important;
}

.wpbs-legend .wpbs-legend-item-name {
    font-size: 0.75rem;
}

/* ── Formulier: labels ───────────────────────────────────────────────────── */

.wpbs-main-wrapper .wpbs-form-container {
    padding: 0px 0 20px 0 !important;
}

.wpbs-main-wrapper .wpbs-form-container .wpbs-form-field label {
    font-size: 0.85rem !important;
    font-weight: 500 !important;
    color: #fff !important;
}

.wpbs-main-wrapper .wpbs-form-container .wpbs-field-required-asterisk {
    color: #DE8D31 !important;
}

/* ── Formulier: invoervelden ─────────────────────────────────────────────── */

.wpbs-main-wrapper .wpbs-form-container .wpbs-form-field input[type="text"],
.wpbs-main-wrapper .wpbs-form-container .wpbs-form-field input[type="number"],
.wpbs-main-wrapper .wpbs-form-container .wpbs-form-field input[type="email"] {
    height: 40px !important;
    line-height: 40px !important;
    font-size: 0.9rem !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 6px !important;
    color: #111827 !important;
}

.wpbs-main-wrapper .wpbs-form-container .wpbs-form-field input[type="text"]:focus,
.wpbs-main-wrapper .wpbs-form-container .wpbs-form-field input[type="email"]:focus,
.wpbs-main-wrapper .wpbs-form-container .wpbs-form-field input[type="number"]:focus,
.wpbs-main-wrapper .wpbs-form-container .wpbs-form-field select:focus {
    border-color: #111827 !important;
}

.wpbs-main-wrapper .wpbs-form-container .wpbs-form-field textarea {
    font-size: 0.9rem !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 6px !important;
    color: #111827 !important;
}

.wpbs-main-wrapper .wpbs-form-container .wpbs-form-field select {
    font-size: 0.9rem !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 6px !important;
    color: #111827 !important;
}

/* ── Formulier: prijstabel ───────────────────────────────────────────────── */

.wpbs-main-wrapper table.wpbs-pricing-table {
    border-radius: 8px !important;
    overflow: hidden !important;
}

.wpbs-main-wrapper table.wpbs-pricing-table thead th,
.wpbs-main-wrapper table.wpbs-pricing-table tfoot th {
    background: #f9fafb !important;
    color: #111827 !important;
    font-size: 0.9rem !important;
}

.wpbs-main-wrapper table.wpbs-pricing-table th,
.wpbs-main-wrapper table.wpbs-pricing-table td {
    font-size: 0.9rem !important;
    border-bottom: 1px solid #e5e7eb !important;
    padding: 8px 12px !important;
}

/* ── Formulier: verzendknop ──────────────────────────────────────────────── */

.wpbs-main-wrapper .wpbs-form-container .wpbs-form-field button[type="submit"],
.wpbs-main-wrapper .wpbs-form-container .wpbs-form-field input[type="submit"] {
    background-color: #DE8D31 !important;
    border-radius: 6px !important;
    font-size: 0.9rem !important;
    font-weight: 500 !important;
    padding: 10px 24px !important;
    letter-spacing: normal !important;
    text-transform: none !important;
}

.wpbs-main-wrapper .wpbs-form-container .wpbs-form-field button[type="submit"]:hover,
.wpbs-main-wrapper .wpbs-form-container .wpbs-form-field input[type="submit"]:hover {
    background-color: #C27824 !important;
}

/* ── Verleden datums ─────────────────────────────────────────────────────── */

.wpbs-date.wpbs-past-date .wpbs-legend-item-icon div:first-of-type {
    background-color: #e5e7eb !important;
}

.wpbs-date.wpbs-past-date {
    cursor: default !important;
    opacity: 0.7;
}

/* ── 2-staps boekflow ────────────────────────────────────────────────────── */

.wpbs-main-wrapper .wpbs-form-container {
    display: none !important;
}

.wpbs-main-wrapper.wpbs-stap-2 .wpbs-form-container {
    display: block !important;
    animation: wpbs-fade-in 0.25s ease;
}

@keyframes wpbs-fade-in {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.wpbs-stap-hint {
    font-size: 0.85rem;
    color: #111827;
    margin-top: 0.75rem;
    margin-bottom: 0;
}

.wpbs-main-wrapper.wpbs-stap-2 .wpbs-stap-header-1,
.wpbs-main-wrapper.wpbs-stap-2 .wpbs-stap-hint {
    display: none !important;
}

.wpbs-stap-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.875rem;
}

.wpbs-stap-header__nr {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #DE8D31;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    flex-shrink: 0;
}

.wpbs-stap-header__titel {
    font-size: 1rem;
    font-weight: 600;
    color: #111827;
}

.wpbs-stap-2-header {
    display: none;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e5e7eb;
}

.wpbs-main-wrapper.wpbs-stap-2 .wpbs-stap-2-header {
    display: flex;
}

.wpbs-stap-2-header__titel {
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
}

.wpbs-stap-2-header__wijzig {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.3rem !important;
    background: none !important;
    border: none !important;
    padding: 0 !important;
    color: #424242 !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    font-family: inherit !important;
    text-decoration: none !important;
    cursor: pointer !important;
    transition: color 0.15s ease !important;
}

.wpbs-stap-2-header__wijzig::before {
    content: '←';
    font-size: 1em !important;
    line-height: 1 !important;
}

.wpbs-stap-2-header__wijzig:hover {
    color: #111 !important;
}

/* =========================================
   Camper Zoekwidget (Elementor)
   ========================================= */

.ccp-zoekwidget {
    display: flex;
    align-items: center;
    gap: 0;
    box-sizing: border-box;
    flex-wrap: wrap;
}

.ccp-zoekwidget__veld {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    flex: 1;
    min-width: 140px;
    padding: 0 1.25rem;
}

.ccp-zoekwidget__veld:first-child {
    padding-left: 0;
}

.ccp-zoekwidget__label {
    font-size: 0.75rem;
    font-weight: 500;
    color: #6b7280;
    white-space: nowrap;
}

.ccp-zoekwidget__input-wrapper {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.ccp-zoekwidget__icoon {
    flex-shrink: 0;
    color: #DE8D31;
    display: block;
}

.ccp-zoekwidget__input,
.ccp-zoekwidget__select {
    border: none !important;
    outline: none;
    box-shadow: none !important;
    font-size: 0.9rem;
    color: #111827;
    font-family: inherit;
    background: transparent;
    width: 100%;
    padding: 0;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

.ccp-zoekwidget__input::-webkit-calendar-picker-indicator {
    opacity: 0.4;
    cursor: pointer;
}

.ccp-zoekwidget__select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0 center;
    padding-right: 1.2rem;
}

.ccp-zoekwidget__divider {
    width: 1px;
    height: 32px;
    background: #e5e7eb;
    align-self: center;
    flex-shrink: 0;
}

.ccp-zoekwidget__knop {
    flex-shrink: 0;
    margin-left: 1.25rem;
    background: #DE8D31;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s ease;
    align-self: stretch;
    display: flex;
    align-items: center;
}

.ccp-zoekwidget__knop:hover,
.ccp-zoekwidget__knop:focus {
    background: #C27824;
    color: #fff;
}

.ccp-zoekwidget--verticaal {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
}

.ccp-zoekwidget--verticaal .ccp-zoekwidget__veld {
    padding: 0;
    min-width: 0;
}

.ccp-zoekwidget--verticaal .ccp-zoekwidget__input-wrapper {
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    padding: 0.5rem 0.6rem;
}

.ccp-zoekwidget--verticaal .ccp-zoekwidget__input,
.ccp-zoekwidget--verticaal .ccp-zoekwidget__select {
    border: none;
    padding: 0;
}

.ccp-zoekwidget--verticaal .ccp-zoekwidget__divider {
    display: none;
}

.ccp-zoekwidget--verticaal .ccp-zoekwidget__knop {
    margin-left: 0;
    width: 100%;
    justify-content: center;
}

@media (max-width: 768px) {
    .ccp-zoekwidget {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .ccp-zoekwidget__veld {
        padding: 0;
        min-width: 0;
    }

    .ccp-zoekwidget__input-wrapper {
        border: 1px solid #e5e7eb;
        border-radius: 4px;
        padding: 0.5rem 0.6rem;
    }

    .ccp-zoekwidget__input,
    .ccp-zoekwidget__select {
        border: none;
        padding: 0;
    }

    .ccp-zoekwidget__divider {
        display: none;
    }

    .ccp-zoekwidget__knop {
        margin-left: 0;
        width: 100%;
        justify-content: center;
    }
}

/* ── Formulier: veldlabels ───────────────────────────────────────────────── */

.wpbs-main-wrapper .wpbs-form-container .wpbs-form-field-label label {
    color: #111827 !important;
}

/* ── Formulier: verzendknop full width + oranje ──────────────────────────── */

#wpbs-form-submit-1 {
    background-color: #DE8D31 !important;
    width: 100% !important;
    border-radius: 6px !important;
    font-size: 0.9rem !important;
    font-weight: 500 !important;
    padding: 10px 24px !important;
    letter-spacing: normal !important;
    text-transform: none !important;
}

#wpbs-form-submit-1:hover {
    background-color: #C27824 !important;
}

/* ── Formulier: foutmeldingen ────────────────────────────────────────────── */

.wpbs-main-wrapper .wpbs-form-general-error {
    color: #991b1b !important;
    font-size: 0.9rem !important;
    font-weight: 500 !important;
}

.wpbs-main-wrapper .wpbs-form-container .wpbs-form-field-error {
    color: #991b1b !important;
}

/* =========================================
   Coppelmans | Herhaler
   ========================================= */

.ccp-herhaler {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    list-style: none;
    margin: 0;
    padding: 0;
}

.ccp-herhaler__item {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25em;
    line-height: 1.5;
}

.ccp-herhaler__label {
    font-weight: 700;
}
