:root {
    --eco-bg: #e8f3e7;
    --eco-bg-soft: #f5fbf3;
    --eco-bg-card: #ffffff;
    --eco-primary: #2f6b3b;
    --eco-primary-dark: #214f2a;
    --eco-primary-soft: #dcefdc;
    --eco-accent: #7fb069;
    --eco-accent-2: #f0b84f;
    --eco-text: #203321;
    --eco-muted: #64715f;
    --eco-border: #c9dec7;
    --eco-danger: #dc2626;
    --shadow-soft: 0 12px 34px rgba(38, 82, 45, 0.10);
    --shadow-card: 0 10px 26px rgba(38, 82, 45, 0.09);
    --radius-lg: 20px;
    --radius-md: 14px;
    --radius-sm: 10px;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--eco-text);
    background:
        radial-gradient(circle at top left, rgba(127, 176, 105, 0.28), transparent 340px),
        linear-gradient(180deg, var(--eco-bg-soft) 0%, var(--eco-bg) 48%, #dfeedd 100%);
}

a {
    color: var(--eco-primary-dark);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

img {
    max-width: 100%;
}

.container {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(246, 252, 244, 0.94);
    border-bottom: 1px solid rgba(201, 222, 199, 0.85);
    box-shadow: 0 8px 26px rgba(38, 82, 45, 0.08);
    backdrop-filter: blur(12px);
}

.header-inner {
    min-height: 112px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding: 16px 0;
}

.site-brand {
    display: inline-flex;
    align-items: center;
    gap: 18px;
    min-width: 310px;
    color: var(--eco-primary-dark);
}

.site-brand:hover {
    text-decoration: none;
}

.brand-logo {
    width: 88px;
    height: 88px;
    flex: 0 0 88px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #ffffff;
    background: linear-gradient(145deg, var(--eco-primary) 0%, var(--eco-accent) 100%);
    box-shadow: 0 14px 32px rgba(47, 107, 59, 0.28);
}

.brand-logo-symbol {
    display: block;
    font-size: 56px;
    line-height: 1;
    color: #ffffff;
    transform: translateY(-1px);
}

.brand-text {
    display: grid;
    gap: 2px;
}

.brand-title {
    font-size: clamp(24px, 2.7vw, 34px);
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: -0.02em;
}

.brand-tagline {
    color: var(--eco-muted);
    font-size: 15px;
    font-weight: 800;
}

.site-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
}

.site-nav a,
.site-nav .nav-user {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 8px 11px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 14px;
    color: var(--eco-primary-dark);
}

.site-nav a:hover {
    background: var(--eco-primary-soft);
    text-decoration: none;
}

.site-nav .nav-cta {
    background: var(--eco-primary);
    color: #fff;
    box-shadow: 0 6px 16px rgba(47, 107, 59, 0.22);
}

.site-nav .nav-cta:hover {
    background: var(--eco-primary-dark);
    color: #fff;
}

.nav-user {
    color: var(--eco-muted);
    background: rgba(255, 255, 255, 0.58);
    border: 1px solid var(--eco-border);
}

.admin-link {
    background: #f59e0b !important;
    color: #1f2937 !important;
    padding: 8px 12px;
    border-radius: 999px;
    font-weight: 900;
}

.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 21px;
    height: 21px;
    padding: 0 7px;
    margin-left: 6px;
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
    font-size: 12px;
    font-weight: 900;
}

/* Main */
.site-main {
    flex: 1;
    padding: 28px 0 44px;
}

/* Hero */
.hero {
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 26px;
    padding: clamp(24px, 4vw, 42px);
    margin-bottom: 24px;
    border: 1px solid var(--eco-border);
    border-radius: 28px;
    background:
        radial-gradient(circle at right center, rgba(127, 176, 105, 0.24), transparent 320px),
        linear-gradient(135deg, #ffffff 0%, #f1faef 58%, #dcefdc 100%);
    box-shadow: var(--shadow-soft);
}

.hero::after {
    content: '♻';
    position: absolute;
    right: 28px;
    bottom: -32px;
    color: rgba(47, 107, 59, 0.10);
    font-size: clamp(100px, 16vw, 180px);
    line-height: 1;
    pointer-events: none;
}

.hero > * {
    position: relative;
    z-index: 1;
}

.hero h1 {
    max-width: 780px;
    margin: 0 0 10px;
    font-size: clamp(30px, 5vw, 25px);
    line-height: 1.02;
    letter-spacing: -0.04em;
}

.hero p {
    margin: 0;
    color: var(--eco-muted);
    max-width: 700px;
    font-size: 17px;
    line-height: 1.55;
}

/* Buttons */
.button,
button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    background: var(--eco-primary);
    color: #fff;
    padding: 12px 18px;
    border-radius: 999px;
    font: inherit;
    font-weight: 900;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 8px 18px rgba(47, 107, 59, 0.20);
}

.button:hover,
button:hover {
    background: var(--eco-primary-dark);
    color: #fff;
    text-decoration: none;
}

.button.secondary,
.secondary-button {
    background: #6b7280;
}

.button.secondary:hover,
.secondary-button:hover {
    background: #4b5563;
}

.button.small {
    padding: 8px 12px;
    font-size: 13px;
}

button.danger,
.button.danger {
    background: var(--eco-danger);
}

button.danger:hover,
.button.danger:hover {
    background: #b91c1c;
}

/* Forms */
.search-box {
    display: flex;
    gap: 10px;
    margin: 0 0 24px;
    padding: 12px;
    border: 1px solid var(--eco-border);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 8px 20px rgba(38, 82, 45, 0.06);
}

input,
textarea,
select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #bfd4bd;
    border-radius: 12px;
    font: inherit;
    color: var(--eco-text);
    background: #fff;
    outline: none;
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--eco-primary);
    box-shadow: 0 0 0 4px rgba(47, 107, 59, 0.12);
}

.search-box input {
    flex: 1;
}

label {
    display: block;
    margin-bottom: 16px;
    font-weight: 900;
}

label input,
label textarea,
label select {
    margin-top: 7px;
    font-weight: 400;
}

.form-card {
    max-width: 520px;
    margin: 0 auto;
    background: var(--eco-bg-card);
    padding: 28px;
    border: 1px solid var(--eco-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
}

.form-card.wide {
    max-width: 760px;
}

.form-card h1,
.page-title h1 {
    margin-top: 0;
}

.upload-fields {
    margin-bottom: 18px;
    padding: 16px;
    border-radius: 16px;
    background: #f4faf4;
    border: 1px solid var(--eco-border);
}

.upload-fields-title {
    font-weight: 900;
    margin-bottom: 6px;
}

.upload-help {
    margin: 0 0 12px;
    color: var(--eco-muted);
    font-size: 14px;
}

.upload-fields label {
    margin-bottom: 10px;
}

.upload-fields input[type="file"] {
    padding: 10px;
}

/* Feedback */
.flash {
    padding: 13px 15px;
    border-radius: 14px;
    margin-bottom: 16px;
    font-weight: 900;
    border: 1px solid transparent;
}

.flash.success {
    background: #dcfce7;
    color: #166534;
    border-color: #bbf7d0;
}

.flash.error {
    background: #fee2e2;
    color: #991b1b;
    border-color: #fecaca;
}

.muted {
    color: var(--eco-muted);
}

.empty {
    background: var(--eco-bg-card);
    padding: 30px;
    border: 1px solid var(--eco-border);
    border-radius: var(--radius-lg);
    color: var(--eco-muted);
    text-align: center;
    box-shadow: var(--shadow-card);
}

/* Cards */
.grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.card {
    background: var(--eco-bg-card);
    border: 1px solid var(--eco-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.card-image {
    display: block;
    height: 220px;
    background: #e6eee4;
}

.card-image img,
.gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.card-body {
    padding: 18px;
}

.card h2 {
    margin: 10px 0;
    font-size: 21px;
}

.card p {
    color: var(--eco-muted);
    min-height: 44px;
}

.index-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.index-card {
    display: flex;
    align-items: flex-start;
    min-height: 132px;
    transition: transform 160ms ease, box-shadow 160ms ease;
}

.index-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(38, 82, 45, 0.14);
}

.index-card .index-thumb {
    flex: 0 0 100px;
    width: 100px;
    height: 100px;
    margin: 16px 0 16px 16px;
    border-radius: 14px;
    overflow: hidden;
}

.index-card .index-thumb img,
.index-card .index-thumb .placeholder {
    width: 100px;
    height: 100px;
}

.index-card-body {
    padding: 14px 16px;
    min-width: 0;
}

.index-card h2 {
    margin: 7px 0 6px;
    font-size: 17px;
    line-height: 1.25;
}

.index-card p {
    margin: 0 0 8px;
    min-height: 0;
    font-size: 14px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.index-card small {
    display: block;
    color: var(--eco-muted);
    font-size: 12px;
    line-height: 1.35;
}

.placeholder {
    display: grid;
    place-items: center;
    height: 100%;
    color: var(--eco-muted);
    font-weight: 900;
    background: repeating-linear-gradient(45deg, #e1ebdf, #e1ebdf 10px, #f1f7f0 10px, #f1f7f0 20px);
}

.placeholder.large {
    min-height: 300px;
    border-radius: 16px;
}

.status {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    background: #dcfce7;
    color: #166534;
}

.index-card .status {
    padding: 4px 8px;
    font-size: 11px;
}

.status.reserved {
    background: #fef3c7;
    color: #92400e;
}

.status.taken {
    background: #fee2e2;
    color: #991b1b;
}

/* Detailpagina */
.item-detail {
    display: grid;
    grid-template-columns: 330px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}

.gallery {
    width: 300px;
    max-width: 100%;
}

.gallery .placeholder.large {
    width: 300px;
    height: 300px;
    min-height: 300px;
    border-radius: 18px;
    box-shadow: var(--shadow-card);
    background: #e6eee4;
}

.item-carousel {
    position: relative;
    width: 300px;
    max-width: 100%;
}

.carousel-stage {
    position: relative;
    width: 300px;
    max-width: 100%;
    height: 300px;
    overflow: hidden;
    background: #e6eee4;
    border: 1px solid var(--eco-border);
    border-radius: 18px;
    box-shadow: var(--shadow-card);
}

.carousel-slide {
    display: none;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    cursor: zoom-in;
}

.carousel-slide.is-active {
    display: block;
}

.carousel-slide:hover {
    text-decoration: none;
    opacity: 0.96;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    z-index: 2;
    width: 40px;
    height: 40px;
    padding: 0;
    transform: translateY(-50%);
    border-radius: 999px;
    background: rgba(33, 79, 42, 0.88);
    color: #fff;
    font-size: 32px;
    line-height: 34px;
    font-weight: 400;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.20);
}

.carousel-nav:hover {
    background: rgba(33, 79, 42, 0.98);
}

.carousel-prev {
    left: 10px;
}

.carousel-next {
    right: 10px;
}

.carousel-counter {
    position: absolute;
    right: 12px;
    bottom: 12px;
    z-index: 2;
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(33, 79, 42, 0.86);
    color: #fff;
    font-size: 13px;
    line-height: 1;
    font-weight: 900;
}

.carousel-thumbs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-top: 12px;
}

.carousel-thumb {
    width: 100%;
    aspect-ratio: 1 / 1;
    padding: 0;
    overflow: hidden;
    border: 2px solid transparent;
    border-radius: 12px;
    background: #e6eee4;
    cursor: pointer;
    box-shadow: none;
}

.carousel-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-thumb.is-active,
.carousel-thumb:hover {
    border-color: var(--eco-primary);
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
}

.carousel-dot {
    width: 11px;
    height: 11px;
    padding: 0;
    border-radius: 999px;
    background: #c5d7c2;
    box-shadow: none;
}

.carousel-dot.is-active,
.carousel-dot:hover {
    background: var(--eco-primary);
}

.item-info {
    background: var(--eco-bg-card);
    padding: 28px;
    border: 1px solid var(--eco-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
}

.item-info h1 {
    margin: 12px 0 8px;
    font-size: clamp(28px, 4vw, 42px);
    letter-spacing: -0.03em;
}

.description {
    margin: 22px 0;
    line-height: 1.7;
}

.message-box,
.owner-panel {
    padding: 18px;
    border-radius: 16px;
    background: #f4faf4;
    border: 1px solid var(--eco-border);
}

.inline-form {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* Berichten */
.thread-list {
    display: grid;
    gap: 12px;
}

.thread-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    background: var(--eco-bg-card);
    padding: 18px;
    border: 1px solid var(--eco-border);
    border-radius: 16px;
    box-shadow: var(--shadow-card);
    transition: transform 160ms ease;
}

.thread-row:hover {
    text-decoration: none;
    transform: translateY(-1px);
}

.thread-row p {
    margin: 8px 0 0;
    color: var(--eco-muted);
}

.thread-meta {
    text-align: right;
    display: grid;
    gap: 8px;
    justify-items: end;
}

.thread-header,
.page-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    margin-bottom: 18px;
}

.messages {
    display: grid;
    gap: 12px;
    margin-bottom: 18px;
}

.message {
    max-width: 720px;
    padding: 14px 16px;
    border-radius: 16px;
    background: var(--eco-bg-card);
    border: 1px solid var(--eco-border);
    box-shadow: 0 8px 22px rgba(38, 82, 45, 0.07);
}

.message.mine {
    margin-left: auto;
    background: #e0f1dc;
}

.message-meta {
    font-size: 12px;
    color: var(--eco-muted);
    margin-bottom: 6px;
}

.message-body {
    line-height: 1.5;
}

.reply-box {
    display: grid;
    gap: 10px;
    background: var(--eco-bg-card);
    padding: 18px;
    border: 1px solid var(--eco-border);
    border-radius: 16px;
    box-shadow: var(--shadow-card);
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 28px;
    background: rgba(16, 34, 18, 0.92);
}

.lightbox.is-open {
    display: flex;
}

.lightbox-image {
    max-width: calc(100vw - 56px);
    max-height: calc(100vh - 56px);
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 14px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
    background: #fff;
}

.lightbox-close {
    position: fixed;
    top: 18px;
    right: 22px;
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 999px;
    background: #fff;
    color: #102212;
    font-size: 32px;
    line-height: 44px;
    font-weight: 400;
    box-shadow: none;
}

.lightbox-close:hover {
    background: #e5eee3;
    color: #102212;
}

body.lightbox-open {
    overflow: hidden;
}

/* Admin */
.admin-stats {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 22px;
}

.admin-stats div {
    background: var(--eco-bg-card);
    border: 1px solid var(--eco-border);
    border-radius: 18px;
    padding: 20px;
    box-shadow: var(--shadow-card);
}

.admin-stats strong {
    display: block;
    font-size: 32px;
    margin-bottom: 6px;
}

.admin-stats span {
    color: var(--eco-muted);
}

.admin-menu {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.admin-menu a {
    display: block;
    background: var(--eco-bg-card);
    border: 1px solid var(--eco-border);
    padding: 26px;
    border-radius: 18px;
    font-weight: 900;
    box-shadow: var(--shadow-card);
}

.table-wrap {
    overflow-x: auto;
    background: var(--eco-bg-card);
    border: 1px solid var(--eco-border);
    border-radius: 18px;
    box-shadow: var(--shadow-card);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 980px;
}

.admin-table th,
.admin-table td {
    text-align: left;
    padding: 14px;
    border-bottom: 1px solid var(--eco-border);
    vertical-align: top;
}

.admin-table th {
    background: #f4faf4;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--eco-muted);
}

.admin-table tr:last-child td {
    border-bottom: 0;
}

.actions {
    display: grid;
    gap: 8px;
    min-width: 180px;
}

.actions form,
.compact-form,
.delete-inline {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.actions button,
.actions .button,
.compact-form button,
.delete-inline button {
    padding: 8px 10px;
    font-size: 13px;
}

.actions select,
.compact-form select {
    padding: 8px;
}

.delete-inline {
    margin-top: 12px;
}

/* Footer */
.site-footer {
    background: linear-gradient(180deg, #dcefdc 0%, #cfe6ce 100%);
    border-top: 1px solid var(--eco-border);
    color: #38503b;
}

.footer-inner.footer-two-columns {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.9fr);
    align-items: start;
    gap: 34px;
    padding: 32px 0;
}

.footer-html {
    color: #38503b;
    line-height: 1.65;
}

.footer-html h2,
.footer-html h3,
.footer-html h4,
.footer-menu h3 {
    margin: 0 0 10px;
    color: var(--eco-primary-dark);
}

.footer-html p,
.footer-html ul,
.footer-html ol {
    margin-top: 0;
    margin-bottom: 12px;
}

.footer-html a,
.footer-menu a {
    color: var(--eco-primary-dark);
    font-weight: 800;
}

.footer-menu {
    justify-self: end;
    width: 100%;
    max-width: 360px;
}

.footer-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 18px;
}

.footer-menu li {
    min-width: 0;
}

.footer-menu a {
    display: inline-flex;
    padding: 2px 0;
    font-size: 14px;
}

.footer-menu a:hover,
.footer-html a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 1050px) {
    .index-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 850px) {
    .header-inner,
    .hero,
    .thread-header,
    .page-title {
        flex-direction: column;
        align-items: stretch;
    }

    .site-brand {
        min-width: 0;
    }

    .brand-logo {
        width: 70px;
        height: 70px;
        flex-basis: 70px;
    }

    .brand-logo-symbol {
        font-size: 44px;
    }

    .brand-title {
        font-size: 24px;
    }

    .brand-tagline {
        font-size: 13px;
    }

    .site-nav {
        justify-content: flex-start;
        width: 100%;
    }

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

    .index-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .item-detail {
        display: block;
    }

    .item-info {
        margin-top: 18px;
    }

    .search-box,
    .inline-form {
        flex-direction: column;
    }

    .thread-row {
        flex-direction: column;
    }

    .thread-meta {
        text-align: left;
        justify-items: start;
    }

    .admin-stats,
    .admin-menu {
        grid-template-columns: 1fr;
    }

    .footer-inner.footer-two-columns {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .footer-menu {
        justify-self: stretch;
        max-width: none;
    }
}

@media (max-width: 650px) {
    .container {
        width: min(100% - 22px, 1180px);
    }

    .site-main {
        padding-top: 18px;
    }

    .brand-logo {
        width: 50px;
        height: 50px;
        flex-basis: 50px;
    }

    .brand-logo svg {
        width: 37px;
        height: 37px;
    }

    .site-nav a,
    .site-nav .nav-user {
        font-size: 13px;
        min-height: 35px;
        padding: 7px 10px;
    }

    .hero {
        border-radius: 20px;
    }

    .index-grid {
        grid-template-columns: 1fr;
    }

    .index-card .index-thumb {
        margin: 14px 0 14px 14px;
    }

    .index-card-body {
        padding: 12px 14px;
    }

    .form-card,
    .item-info {
        padding: 20px;
    }

    .lightbox {
        padding: 14px;
    }

    .lightbox-image {
        max-width: calc(100vw - 28px);
        max-height: calc(100vh - 28px);
    }

    .lightbox-close {
        top: 10px;
        right: 10px;
    }
}

@media (max-width: 360px) {
    .gallery,
    .item-carousel,
    .carousel-stage,
    .gallery .placeholder.large {
        width: 100%;
    }

    .carousel-stage,
    .gallery .placeholder.large {
        height: auto;
        aspect-ratio: 1 / 1;
        min-height: 0;
    }
}

/* Categorieën, filters en verloopdatum */
.filter-box {
    align-items: center;
    flex-wrap: wrap;
}

.filter-box .search-wide {
    min-width: 260px;
    flex: 1 1 260px;
}

.filter-box input:not(.search-wide),
.filter-box select {
    flex: 0 1 190px;
}

.filter-box button,
.filter-box .button {
    flex: 0 0 auto;
}

.form-grid.two {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.card-labels {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    align-items: center;
}

.category-pill {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: #edf7eb;
    color: var(--eco-primary-dark);
    border: 1px solid var(--eco-border);
    font-size: 12px;
    font-weight: 900;
}

.index-card .category-pill {
    padding: 4px 8px;
    font-size: 11px;
}

.status.expired {
    background: #e5e7eb;
    color: #374151;
}

.detail-labels {
    margin-bottom: 8px;
}

.item-meta {
    display: grid;
    gap: 7px;
    padding: 14px 16px;
    margin: 12px 0 18px;
    border: 1px solid var(--eco-border);
    border-radius: 14px;
    background: #f4faf4;
    color: var(--eco-muted);
}

.owner-actions,
.card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.owner-actions {
    margin-bottom: 14px;
}

.card-actions form {
    margin: 0;
}

button.small,
.button.small {
    padding: 8px 12px;
    font-size: 13px;
}

.admin-stats {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

@media (max-width: 850px) {
    .form-grid.two {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .filter-box input:not(.search-wide),
    .filter-box select,
    .filter-box button,
    .filter-box .button {
        flex: 1 1 100%;
    }
}

.admin-table {
    min-width: 1180px;
}

/* Responsive zoek/filterbalk op mobiel */
.search-box.filter-box {
    display: grid;
    grid-template-columns: minmax(240px, 2fr) minmax(150px, 1fr) minmax(170px, 1fr) auto auto;
    gap: 10px;
    align-items: center;
}

.search-box.filter-box input,
.search-box.filter-box select,
.search-box.filter-box button,
.search-box.filter-box .button {
    min-width: 0;
    width: 100%;
    min-height: 42px;
    margin: 0;
}

.search-box.filter-box button,
.search-box.filter-box .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    padding-left: 14px;
    padding-right: 14px;
}

@media (max-width: 950px) {
    .search-box.filter-box {
        grid-template-columns: 1fr 1fr;
    }

    .search-box.filter-box .search-wide {
        grid-column: 1 / -1;
    }
}

@media (max-width: 650px) {
    .search-box.filter-box {
        padding: 10px;
        gap: 8px;
        border-radius: 14px;
        grid-template-columns: 1fr 1fr;
    }

    .search-box.filter-box input,
    .search-box.filter-box select,
    .search-box.filter-box button,
    .search-box.filter-box .button {
        min-height: 38px;
        padding: 8px 9px;
        font-size: 13px;
        border-radius: 10px;
    }

    .search-box.filter-box .search-wide {
        grid-column: 1 / -1;
    }

    .search-box.filter-box button,
    .search-box.filter-box .button {
        font-size: 13px;
    }
}

@media (max-width: 390px) {
    .search-box.filter-box {
        grid-template-columns: 1fr;
    }

    .search-box.filter-box .search-wide {
        grid-column: auto;
    }
}

/* Artikel bewerken, hero instellingen en 2FA */
.compact-title {
    margin-bottom: 10px;
}

.current-images {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.current-image-option {
    margin: 0;
    padding: 10px;
    border: 1px solid var(--eco-border);
    border-radius: 14px;
    background: #fff;
    font-weight: 800;
}

.current-image-option img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
    border-radius: 10px;
    margin-bottom: 8px;
    background: #e6eee4;
}

.current-image-option span {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    color: var(--eco-muted);
}

.current-image-option input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.code-input {
    max-width: 190px;
    font-size: 24px;
    letter-spacing: 8px;
    font-weight: 900;
    text-align: center;
}

.resend-form {
    margin-top: 14px;
}

@media (max-width: 650px) {
    .current-images {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .code-input {
        max-width: 100%;
    }
}


.html-editor {
    font-family: Consolas, Monaco, "Courier New", monospace;
    font-size: 14px;
    line-height: 1.5;
}

.small-help {
    font-size: 13px;
}

.content-page {
    line-height: 1.7;
}

.content-page h1 {
    margin-top: 0;
}

@media (max-width: 650px) {
    .footer-inner.footer-two-columns {
        padding: 24px 0;
    }

    .footer-menu ul {
        grid-template-columns: 1fr;
        gap: 6px;
    }
}
