/* ── Let's Produce — Frontend Stylesheet ─────────────────────────────────── */

:root {
    --lp-primary:     #1C3D54;
    --lp-primary-dk:  #152D3E;
    --lp-primary-lt:  #EDF2F5;
    --lp-teal:        #1D9E75;
    --lp-teal-lt:     #E8F7F2;
    --lp-teal-dk:     #0D6B50;
    --lp-amber:       #B07A20;
    --lp-amber-lt:    #FBF2E3;
    --lp-blue-lt:     #EAF1F9;
    --lp-blue-dk:     #1A5C9A;
    --lp-border:      #E4E6E8;
    --lp-border-md:   #CDD0D3;
    --lp-font:        -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --lp-bg:          #F6F7F8;
    --lp-surface:     #FFFFFF;
    --lp-text:        #1E2228;
    --lp-text-2:      #5C6370;
    --lp-text-3:      #9AA0A8;
}

/* ── Wrap ─────────────────────────────────────────────────────────────────── */
.lp-wrap {
    font-family: var(--lp-font);
    background: var(--lp-bg);
    border: 1px solid var(--lp-border);
    overflow: hidden;
    color: var(--lp-text);
    min-height: 600px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}
.entry-content .lp-wrap,
.page-content .lp-wrap,
.lp-page-fullwidth .lp-wrap { max-width: none; }

/* ── Top bar ──────────────────────────────────────────────────────────────── */
.lp-topbar {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--lp-surface);
    border-bottom: 1px solid var(--lp-border);
    padding: 14px 24px;
    flex-wrap: wrap;
}
.lp-brand {
    font-size: 14px;
    font-weight: 700;
    color: var(--lp-primary);
    white-space: nowrap;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.lp-search {
    flex: 1;
    min-width: 200px;
    height: 36px;
    border: 1px solid var(--lp-border-md);
    border-radius: 4px;
    padding: 0 14px;
    font-size: 13px;
    background: var(--lp-bg);
    color: var(--lp-text);
    outline: none;
    transition: border-color .15s;
}
.lp-search:focus { border-color: var(--lp-primary); }
.lp-search::placeholder { color: var(--lp-text-3); }


/* ── Body layout ──────────────────────────────────────────────────────────── */
.lp-body { display: grid; grid-template-columns: 250px 1fr; }
@media (max-width: 768px) {
    .lp-body { grid-template-columns: 1fr; }
    .lp-sidebar { border-right: none; border-bottom: 1px solid var(--lp-border); }
}

/* ── Sidebar ──────────────────────────────────────────────────────────────── */
.lp-sidebar {
    background: var(--lp-surface);
    border-right: 1px solid var(--lp-border);
    padding: 18px 16px 32px;
    overflow: visible;
}

.lp-active-chips {
    background: var(--lp-primary-lt);
    border-radius: 4px;
    padding: 10px;
    margin-bottom: 14px;
}
.lp-chips-inner { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 6px; }
.lp-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--lp-primary);
    color: #fff;
    border-radius: 3px;
    padding: 3px 9px;
    font-size: 11px;
    font-weight: 500;
}
.lp-chip-rm { cursor: pointer; opacity: .65; font-size: 13px; line-height: 1; border: none; background: none; padding: 0; color: inherit; }
.lp-chip-rm:hover { opacity: 1; }
.lp-clear-all { font-size: 11px; color: var(--lp-primary); font-weight: 500; cursor: pointer; border: none; background: none; padding: 0; }
.lp-clear-all:hover { text-decoration: underline; }

.lp-filter-group { margin-bottom: 0; }
.lp-filter-heading {
    font-size: 10px;
    font-weight: 700;
    color: var(--lp-text-3);
    text-transform: uppercase;
    letter-spacing: .08em;
    padding: 14px 0 7px;
    border-top: 1px solid var(--lp-border);
}
.lp-filter-group:first-child .lp-filter-heading { border-top: none; padding-top: 0; }

.lp-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 3px 0;
    font-size: 13px;
    color: var(--lp-text-2);
    cursor: pointer;
    line-height: 1.4;
    transition: color .12s;
}
.lp-checkbox:hover { color: var(--lp-primary); }
.lp-checkbox input[type=checkbox] { width: 14px; height: 14px; accent-color: var(--lp-primary); flex-shrink: 0; cursor: pointer; }
.lp-filter-count { margin-left: auto; font-size: 11px; color: var(--lp-text-3); }

.lp-range-row { display: flex; gap: 6px; }
.lp-range-field { display: flex; flex-direction: column; gap: 3px; flex: 1; }
.lp-range-label { font-size: 10px; color: var(--lp-text-3); font-weight: 600; letter-spacing: .04em; }
.lp-range-input {
    width: 100%; height: 32px;
    border: 1px solid var(--lp-border-md);
    border-radius: 4px;
    padding: 0 8px;
    font-size: 12px;
    background: var(--lp-bg);
    color: var(--lp-text);
    outline: none;
    box-sizing: border-box;
}
.lp-range-input:focus { border-color: var(--lp-primary); }

/* ── Results ──────────────────────────────────────────────────────────────── */
.lp-results { padding: 20px 22px; }
.lp-results-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.lp-results-count { font-size: 14px; font-weight: 600; color: var(--lp-text); }
.lp-sort {
    height: 30px;
    border: 1px solid var(--lp-border-md);
    border-radius: 4px;
    padding: 0 10px;
    font-size: 12px;
    background: var(--lp-surface);
    color: var(--lp-text-2);
    cursor: pointer;
}

/* ── Bedrijfskaarten ──────────────────────────────────────────────────────── */
.lp-cards { display: flex; flex-direction: column; gap: 8px; }
.lp-card {
    display: block;
    background: var(--lp-surface);
    border: 1px solid var(--lp-border);
    border-radius: 6px;
    padding: 16px 18px;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    transition: border-color .15s, box-shadow .15s;
}
.lp-card:hover {
    border-color: var(--lp-primary);
    box-shadow: 0 1px 6px rgba(28,61,84,.08);
    color: inherit;
    text-decoration: none;
}
.lp-card:hover .lp-card-name { color: var(--lp-primary); }

.lp-card-top { display: flex; gap: 13px; align-items: flex-start; }

.lp-card-logo {
    width: 54px; height: 54px;
    border-radius: 6px;
    border: 1px solid var(--lp-border);
    display: flex; align-items: center; justify-content: center;
    font-size: 17px; font-weight: 700;
    color: var(--lp-primary);
    background: var(--lp-primary-lt);
    flex-shrink: 0;
    overflow: hidden;
}
.lp-card-logo img { width: 100%; height: 100%; object-fit: contain; }

.lp-card-meta { flex: 1; min-width: 0; }
.lp-card-name-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 3px; }
.lp-card-name { font-size: 15px; font-weight: 600; color: var(--lp-text); transition: color .12s; }
.lp-cap-badge { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--lp-text-3); }
.lp-cap-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cap-color, #1D9E75); flex-shrink: 0; }
.lp-card-location { font-size: 12px; color: var(--lp-text-3); display: flex; align-items: center; gap: 4px; margin-bottom: 7px; }
.lp-card-desc { margin: 0 0 8px; font-size: 12px; color: var(--lp-text-2); line-height: 1.5; }

/* Tags — licht en subtiel */
.lp-tag-row { display: flex; flex-wrap: wrap; gap: 5px; }
.lp-tag {
    font-size: 11px;
    font-weight: 500;
    padding: 2px 9px;
    border-radius: 3px;
    white-space: nowrap;
    background: var(--lp-bg);
    color: var(--lp-text-2);
    border: 1px solid var(--lp-border);
}
.lp-tag--proc { background: var(--lp-primary-lt); color: var(--lp-primary); border-color: #C8D8E3; }
.lp-tag--cert { background: var(--lp-blue-lt);    color: var(--lp-blue-dk);  border-color: #C0D6EA; }
.lp-tag--mat  { background: var(--lp-teal-lt);    color: var(--lp-teal-dk);  border-color: #B8E0D3; }

/* Machine pills */
.lp-card-machines { margin-top: 10px; border-top: 1px solid var(--lp-border); padding-top: 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.lp-machine-pill { display: flex; align-items: center; gap: 6px; background: var(--lp-bg); border: 1px solid var(--lp-border); border-radius: 4px; padding: 3px 10px; font-size: 11px; color: var(--lp-text-2); }
.lp-machine-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.lp-machine-dot--open     { background: #1D9E75; }
.lp-machine-dot--beperkt  { background: #D4861A; }
.lp-machine-dot--vol      { background: #C93A3A; }
.lp-machine-dot--unknown { background: #AAAAAA; }

/* Loading */
.lp-loading { display: flex; justify-content: center; padding: 40px; }
.lp-spinner { width: 26px; height: 26px; border: 2px solid var(--lp-border); border-top-color: var(--lp-primary); border-radius: 50%; animation: lp-spin .7s linear infinite; }
@keyframes lp-spin { to { transform: rotate(360deg); } }
.lp-no-results { text-align: center; padding: 60px 20px; font-size: 14px; color: var(--lp-text-3); }

/* ── Faceted filter counts ────────────────────────────────────────────────── */
.lp-filter-count {
    transition: opacity .2s;
}
/* Zero-result options get dimmed — but never hidden so user can deselect */
label.lp-filter-zero {
    opacity: .38;
}
label.lp-filter-zero .lp-filter-count {
    color: #bbb;
}
/* Checked items always stay fully visible even if count is zero */
label.lp-filter-zero input:checked ~ span,
label.lp-filter-zero input:checked {
    opacity: 1;
}
