@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');
:root {
    --bg: #eef4f2;
    --card: #ffffff;
    --text: #1f2d2b;
    --muted: #61716d;

    --accent: #2f7462;
    --accent-hover: #235a4c;

    --chip: #dcebe5;
    --chip-hover: #c6ddd4;

    --border: #dce7e3;

    --shadow: 0 10px 32px rgba(20, 45, 35, 0.08);
    --shadow-hover: 0 18px 40px rgba(20, 45, 35, 0.14);

    --radius: 20px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 36px;
    font-family: "Plus Jakarta Sans", sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

.container {
    max-width: 1500px;
    margin: auto;
}

h1 {
    font-size: 3rem;
    margin: 0 0 28px;
    font-weight: 700;
    letter-spacing: -1px;
}

h2 {
    margin-top: 32px;
    margin-bottom: 14px;
}

h3 {
    margin-top: 30px;
    margin-bottom: 14px;
    color: var(--muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

a {
    text-decoration: none;
    color: inherit;
}

/* SEARCH */
.search-box {
    margin-bottom: 30px;
}

.search-box form {
    display: flex;
    gap: 12px;
}

.search-box input {
    flex: 1;
    border: none;
    border-radius: 18px;
    padding: 18px 22px;
    font-size: 16px;
    background: white;
    box-shadow: var(--shadow);
    outline: none;
}

.search-box button {
    border: none;
    border-radius: 18px;
    background: var(--accent);
    color: white;
    font-weight: 600;
    padding: 0 28px;
    cursor: pointer;
    transition: 0.2s;
}

/* LAYOUT */

.layout {
    display: flex;
    gap: 32px;
}

.sidebar {
    width: 290px;
    background: white;
    border-radius: 24px;
    padding: 28px;
    box-shadow: var(--shadow);
    height: fit-content;
}

.content {
    flex: 1;
}

/* FILTERS */

.chip {
    background: var(--chip);
    border-radius: 999px;
    padding: 11px 16px;
    margin-bottom: 8px;
    transition: 0.2s;
    font-size: 0.95rem;
}

.chip:hover {
    background: var(--chip-hover);
    transform: translateX(4px);
}

.chip.active {
    background: var(--accent);
    color: white;
}

.chip.active a {
    color: white;
}

.chip.active:hover {
    background: var(--accent-hover);
}

.chip a {
    display: block;
}

/* RECEPTKAARTEN */

.recipe-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 28px;
}

.recipe-card {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: 0.25s;
}

.recipe-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.recipe-card h3 {
    font-size: 1.25rem;
    letter-spacing: 0;
    text-transform: none;
    color: var(--text);
    margin: 14px 20px 10px;
}

.recipe-card p {
    color: var(--muted);
    margin: 8px 20px;
}

.recipe-detail-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    object-position: center;
    display: block;
    margin-bottom: 32px;
    border-radius: 20px;
}

.photo-placeholder {
    height: 220px;

    background:
        linear-gradient(
            135deg,
            #9cc6bc,
            #6fa595
        );
}
.recipe-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* DETAILPAGINA */

.recipe-page {
    max-width: 1450px;
}

.recipe-layout {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 30px;
}

.recipe-sidebar,
.recipe-main {
    background: white;
    border-radius: 24px;
    padding: 32px;
    box-shadow: var(--shadow);
}

.recipe-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-bottom: 26px;
    color: var(--muted);
}

.recipe-source {
    margin-bottom: 24px;
    color: #666;
}

.recipe-source h3 {
    margin-bottom: 8px;
}

.recipe-source p {
    margin: 2px 0;
}

.back-link {
    display: inline-block;
    margin-bottom: 20px;
    color: var(--accent);
    font-weight: 600;
}

.recipe-photo-placeholder {
    min-height: 380px;

    background:
        linear-gradient(
            135deg,
            #9cc6bc,
            #6fa595
        );

    border-radius: 20px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 32px;

    color: rgba(255,255,255,0.8);
}

/* INGREDIENTEN */

.ingredients-table {
    width: 100%;
    border-collapse: collapse;
}

.ingredients-table td {
    padding: 12px 6px;
    border-bottom: 1px solid var(--border);
}

.ingredients-table td:first-child {
    width: 58%;
}

.ingredients-table td:nth-child(2) {
    width: 18%;
    text-align: right;
}

.ingredients-table td:nth-child(3) {
    width: 24%;
}

/* BEREIDING */

.preparation-steps {
    padding-left: 24px;
}

.preparation-steps li {
    margin-bottom: 20px;
    line-height: 1.8;
}

/* MOBIEL */

@media (max-width: 900px) {

    body {
        padding: 16px;
        font-size: 18px;
        line-height: 1.7;
    }

    h1 {
        font-size: 2.35rem;
        line-height: 1.15;
        margin-bottom: 24px;
    }

    h2 {
        font-size: 1.55rem;
        line-height: 1.25;
    }

    h3 {
        font-size: 1rem;
    }

    .layout {
        flex-direction: column;
        gap: 22px;
    }

    .sidebar {
        width: 100%;
        padding: 22px;
        border-radius: 20px;
    }

    summary {
        font-size: 1.08rem;
        padding: 13px 0;
    }

    .chip {
        padding: 13px 17px;
        font-size: 1.05rem;
        margin-bottom: 10px;
    }

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

    .search-box input {
        font-size: 18px;
        padding: 17px 18px;
    }

    .search-box button {
        height: 56px;
        font-size: 17px;
    }

    .recipe-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .recipe-card h3 {
        font-size: 1.4rem;
        line-height: 1.3;
        margin: 18px 20px 12px;
    }

    .recipe-card p {
        font-size: 1.05rem;
        margin: 10px 20px;
    }

    .recipe-card p:last-child {
        margin-bottom: 20px;
    }

    .recipe-layout {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .recipe-sidebar,
    .recipe-main {
        padding: 22px;
        border-radius: 20px;
    }

    .recipe-meta {
        font-size: 1.05rem;
        gap: 10px 18px;
    }

    .recipe-source {
        font-size: 1rem;
    }

    .ingredients-table {
        font-size: 1.05rem;
    }

    .ingredients-table td {
        padding: 13px 5px;
    }

    .preparation-steps {
        padding-left: 25px;
    }

    .preparation-steps li {
        font-size: 1.08rem;
        line-height: 1.75;
        margin-bottom: 22px;
        padding-left: 4px;
    }

    .back-link {
        font-size: 1.05rem;
        margin-bottom: 22px;
    }
}

details {
    margin-bottom: 12px;
}

summary {
    cursor: pointer;
    font-weight: 600;
    padding: 10px 0;
    list-style: none;
}

summary::-webkit-details-marker {
    display: none;
}

summary::before {
    content: "▶";
    margin-right: 8px;
    color: var(--accent);
    font-size: 0.8rem;
}

details[open] summary::before {
    content: "▼";
}

details .chip {
    margin-left: 8px;
}

#restaurant-map {
    width: 67%;
    height: 650px;
    margin: 24px auto 0;
    border-radius: 12px;
    overflow: hidden;
}

.restaurant-popup p {
    margin: 6px 0;
}

.restaurant-popup strong {
    font-weight: 700;
}

.result-count {
    margin: 0 0 18px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #4a5568;
}

.recipe-reference {
    color: #287c68;
    font-weight: 700;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

.recipe-reference:hover {
    color: #1f5f50;
}

.recipe-source a {
    color: var(--accent);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.recipe-source a:hover {
    color: var(--accent-hover);
}

.servings-control {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 14px 0;
    padding: 7px 10px;
    border-radius: 999px;
    background: #eef6f2;
    color: #285f50;
    font-size: 0.95rem;
    font-weight: 600;
}

.servings-button {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
    background: var(--accent);
    color: white;
    font: inherit;
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    transition: 0.2s;
}

.servings-button:hover:not(:disabled) {
    background: var(--accent-hover);
}

.servings-button:disabled {
    opacity: 0.35;
    cursor: default;
}


.restaurant-filters {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    flex-wrap: wrap;
    margin: 24px 0 16px;
    padding: 16px;
    background: #f7f7f5;
    border-radius: 14px;
}

.restaurant-filter-dropdown {
    position: relative;
}

.restaurant-filter-dropdown summary {
    min-width: 135px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid #d9d9d5;
    border-radius: 9px;
    background: white;
    color: #333;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
}

.restaurant-filter-dropdown summary::-webkit-details-marker {
    display: none;
}

.restaurant-filter-dropdown summary::after {
    content: "▾";
    color: #777;
    font-size: 0.8rem;
}

.restaurant-filter-dropdown[open] summary::after {
    content: "▴";
}

.restaurant-filter-count {
    min-width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    border-radius: 999px;
    background: #2f7d60;
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
}

.restaurant-filter-options {
    position: absolute;
    z-index: 1000;
    top: calc(100% + 6px);
    left: 0;
    min-width: 210px;
    max-height: 300px;
    overflow-y: auto;
    padding: 8px;
    border: 1px solid #deded9;
    border-radius: 10px;
    background: white;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
}

.restaurant-filter-options label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    border-radius: 7px;
    cursor: pointer;
    white-space: nowrap;
}

.restaurant-filter-options label:hover {
    background: #f1f6f3;
}

.restaurant-filter-options input {
    accent-color: #2f7d60;
}

.restaurant-rating-filter {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.restaurant-rating-filter label {
    font-size: 0.8rem;
    font-weight: 700;
    color: #555;
}

.restaurant-rating-filter select {
    min-height: 42px;
    padding: 8px 10px;
    border: 1px solid #d9d9d5;
    border-radius: 9px;
    background: white;
    font: inherit;
}

.restaurant-filter-actions {
    display: flex;
    gap: 8px;
    align-items: flex-end;
}

.restaurant-filter-actions button,
.restaurant-filter-actions a {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 13px;
    border-radius: 9px;
    font: inherit;
    font-weight: 700;
    text-decoration: none;
}

.restaurant-filter-actions button {
    border: none;
    background: #2f7d60;
    color: white;
    cursor: pointer;
}

.restaurant-filter-actions {
    display: flex;
    gap: 8px;
    align-items: flex-end;
    margin-left: auto;
}

.restaurant-result-count {
    margin: 8px 0 14px;
    color: #666;
    font-size: 0.95rem;
    font-weight: 600;
}

@media (max-width: 800px) {
    .restaurant-filters {
        align-items: stretch;
    }

    #restaurant-map {
        width: 100%;
        height: 430px;
    }


    .restaurant-filter-dropdown,
    .restaurant-rating-filter {
        width: 100%;
    }

    .restaurant-filter-dropdown summary {
        width: 100%;
        box-sizing: border-box;
    }

    .restaurant-filter-options {
        position: static;
        margin-top: 6px;
        box-shadow: none;
    }
}

.restaurant-map-legend {
    display: flex;
    align-items: center;
    gap: 18px;
    margin: 12px 0 8px;
    color: #555;
    font-size: 0.9rem;
    font-weight: 600;
}

.restaurant-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.restaurant-legend-dot {
    width: 12px;
    height: 12px;
    display: inline-block;
    border-radius: 50%;
}

.restaurant-legend-visited {
    background: #2f7d60;
}

.restaurant-legend-wishlist {
    background: #3976c5;
}

.restaurant-rating-icon-wrapper {
    background: transparent;
    border: none;
}

.restaurant-rating-marker {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    border: 3px solid white;
    border-radius: 50%;
    background: var(--marker-color);
    color: white;
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1;
    box-shadow: 0 2px 7px rgba(0, 0, 0, 0.28);
}


.restaurant-table-section {
    margin-top: 34px;
}

.restaurant-table-section h2 {
    margin-bottom: 14px;
}

.restaurant-table-wrapper {
    width: 100%;
    overflow-x: auto;
    border: 1px solid #e0e4e1;
    border-radius: 12px;
    background: white;
}

.restaurant-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 680px;
}

.restaurant-table th,
.restaurant-table td {
    padding: 13px 14px;
    border-bottom: 1px solid #e7e9e7;
    text-align: left;
    vertical-align: top;
}

.restaurant-table th {
    background: #f5f7f5;
    color: #414743;
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.restaurant-table tbody tr:last-child td {
    border-bottom: none;
}

.restaurant-table tbody tr:hover {
    background: #f8fbf9;
}

.restaurant-table-name {
    font-weight: 750;
    color: #24342e;
}

.restaurant-table-price,
.restaurant-table-rating {
    white-space: nowrap;
    font-weight: 700;
}

.restaurant-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
    font-weight: 650;
}

.restaurant-status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #999;
}

.restaurant-status-bezocht .restaurant-status-dot {
    background: #2f7d60;
}

.restaurant-status-wensenlijst .restaurant-status-dot {
    background: #3976c5;
}

.restaurant-table-empty {
    padding: 16px;
    border-radius: 10px;
    background: #f7f7f5;
    color: #666;
}

.restaurant-table-name a {
    color: #285f50;
    font-weight: 750;
    text-decoration: none;
}

.restaurant-table-name a:hover {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.restaurant-detail-page {
    padding-bottom: 50px;
}

.restaurant-detail-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin: 24px 0 30px;
}

.restaurant-detail-header h1 {
    margin-bottom: 6px;
}

.restaurant-detail-location {
    margin: 0;
    color: #66716c;
    font-size: 1.05rem;
}

.restaurant-detail-status-block {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.restaurant-detail-rating {
    min-width: 62px;
    padding: 10px 13px;
    border-radius: 12px;
    background: #2f7d60;
    color: white;
    text-align: center;
    font-size: 1.2rem;
    font-weight: 800;
}

.restaurant-detail-rating span {
    font-size: 0.75rem;
    font-weight: 600;
    opacity: 0.85;
}

.restaurant-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(250px, 1fr);
    gap: 28px;
}

.restaurant-detail-section {
    margin-bottom: 24px;
    padding: 20px;
    border: 1px solid #e1e6e2;
    border-radius: 14px;
    background: white;
}

.restaurant-detail-section h2 {
    margin-top: 0;
    margin-bottom: 16px;
}

.restaurant-detail-row {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 14px;
    padding: 9px 0;
    border-bottom: 1px solid #edf0ee;
}

.restaurant-detail-row:last-child {
    border-bottom: none;
}

.restaurant-detail-section a {
    color: #285f50;
    font-weight: 700;
}

@media (max-width: 800px) {
    .restaurant-detail-header {
        flex-direction: column;
    }

    .restaurant-detail-status-block {
        justify-content: flex-start;
    }

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

    .restaurant-detail-row {
        grid-template-columns: 1fr;
        gap: 4px;
    }
}

.restaurant-popup-compact {
    min-width: 220px;
    max-width: 290px;
    color: #27332f;
}

.restaurant-popup-name {
    margin-bottom: 7px;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.25;
}

.restaurant-popup-summary {
    margin-bottom: 10px;
    color: #2f5f50;
}

.restaurant-popup-compact p {
    margin: 7px 0;
    line-height: 1.35;
}

.restaurant-popup-note,
.restaurant-popup-tip-note {
    color: #444d49;
}

.restaurant-popup-tip-source {
    margin-top: 10px;
}

.restaurant-popup-classification {
    margin-top: 11px !important;
    padding-top: 9px;
    border-top: 1px solid #e4e8e5;
    color: #6a736f;
    font-size: 0.84rem;
    font-weight: 400;
}

.restaurant-popup-detail-link {
    display: inline-flex;
    margin-top: 8px;
    color: #285f50;
    font-weight: 750;
    text-decoration: none;
}

.restaurant-popup-detail-link:hover {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.restaurant-table-row {
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.restaurant-table-row:hover {
    background: #f1f7f4 !important;
}

.restaurant-table-row:focus-visible {
    outline: 3px solid rgba(47, 125, 96, 0.32);
    outline-offset: -3px;
}

.restaurant-table-row .restaurant-table-name a {
    position: relative;
    z-index: 1;
}

.restaurant-manage-page {
    padding-bottom: 50px;
}

.restaurant-manage-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin: 24px 0 18px;
}

.restaurant-manage-header h1 {
    margin-bottom: 6px;
}

.restaurant-manage-header p {
    margin: 0;
    color: #69726e;
}

.restaurant-manage-count {
    margin-bottom: 12px;
    color: #66716c;
    font-size: 0.92rem;
    font-weight: 650;
}

.restaurant-manage-table-wrapper {
    width: 100%;
    overflow-x: auto;
    border: 1px solid #e0e4e1;
    border-radius: 12px;
    background: white;
}

.restaurant-manage-table {
    width: 100%;
    min-width: 720px;
    border-collapse: collapse;
}

.restaurant-manage-table th,
.restaurant-manage-table td {
    padding: 13px 14px;
    border-bottom: 1px solid #e7e9e7;
    text-align: left;
    vertical-align: middle;
}

.restaurant-manage-table th {
    background: #f5f7f5;
    color: #414743;
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.restaurant-manage-table tbody tr:last-child td {
    border-bottom: none;
}

.restaurant-manage-table tbody tr:hover {
    background: #f8fbf9;
}

.restaurant-manage-name {
    font-weight: 750;
    color: #25362f;
}

.restaurant-manage-primary,
.restaurant-manage-edit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 12px;
    border: none;
    border-radius: 8px;
    background: #2f7d60;
    color: white;
    font: inherit;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.restaurant-manage-primary.is-disabled,
.restaurant-manage-edit.is-disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.restaurant-manage-empty {
    padding: 16px;
    border-radius: 10px;
    background: #f7f7f5;
    color: #666;
}

@media (max-width: 800px) {
    .restaurant-manage-header {
        align-items: stretch;
        flex-direction: column;
    }

    .restaurant-manage-primary {
        align-self: flex-start;
    }
}

.restaurant-manage-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    cursor: pointer;
}

.restaurant-form-page {
    padding-bottom: 60px;
}

.restaurant-form-header {
    margin: 24px 0 20px;
}

.restaurant-form-header h1 {
    margin-bottom: 6px;
}

.restaurant-form-header p {
    margin: 0;
    color: #69726e;
}

.restaurant-form-errors {
    margin-bottom: 18px;
    padding: 14px 16px;
    border: 1px solid #d99b96;
    border-radius: 10px;
    background: #fff2f0;
    color: #7a302b;
}

.restaurant-form-errors ul {
    margin: 8px 0 0 20px;
}

.restaurant-form-section {
    margin-bottom: 18px;
    padding: 20px;
    border: 1px solid #e1e6e2;
    border-radius: 14px;
    background: white;
}

.restaurant-form-section h2 {
    margin-top: 0;
    margin-bottom: 16px;
}

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

.restaurant-form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.restaurant-form-field > span {
    color: #414943;
    font-size: 0.86rem;
    font-weight: 750;
}

.restaurant-form-wide {
    grid-column: 1 / -1;
}

.restaurant-form-field input,
.restaurant-form-field select,
.restaurant-form-field textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 11px;
    border: 1px solid #d6dcd8;
    border-radius: 8px;
    background: white;
    color: #26332e;
    font: inherit;
}

.restaurant-form-field textarea {
    resize: vertical;
}

.restaurant-form-field input:focus,
.restaurant-form-field select:focus,
.restaurant-form-field textarea:focus {
    outline: 3px solid rgba(47, 125, 96, 0.16);
    border-color: #6ba38d;
}

.restaurant-form-help {
    margin-top: -4px;
    margin-bottom: 16px;
    color: #6b746f;
    font-size: 0.9rem;
}

.restaurant-form-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
}

.restaurant-form-cancel {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 12px;
    border: 1px solid #d6dcd8;
    border-radius: 8px;
    background: white;
    color: #39463f;
    font-weight: 700;
    text-decoration: none;
}

@media (max-width: 800px) {
    .restaurant-form-grid {
        grid-template-columns: 1fr;
    }

    .restaurant-form-wide {
        grid-column: auto;
    }

    .restaurant-form-actions {
        align-items: stretch;
        flex-direction: column;
    }
}

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

.restaurant-checkbox-group {
    min-width: 0;
    margin: 0;
    padding: 14px;
    border: 1px solid #dfe5e1;
    border-radius: 10px;
}

.restaurant-checkbox-group legend {
    padding: 0 6px;
    color: #34453d;
    font-weight: 800;
}

.restaurant-checkbox-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 4px;
    border-radius: 6px;
    cursor: pointer;
}

.restaurant-checkbox-group label:hover {
    background: #f2f7f4;
}

.restaurant-checkbox-group input {
    flex: 0 0 auto;
    accent-color: #2f7d60;
}

@media (max-width: 800px) {
    .restaurant-classification-grid {
        grid-template-columns: 1fr;
    }
}


.restaurant-geocode-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.restaurant-geocode-button {
    min-height: 40px;
    padding: 8px 13px;
    border: none;
    border-radius: 8px;
    background: #2f7d60;
    color: white;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.restaurant-geocode-button:hover:not(:disabled) {
    background: #276c53;
}

.restaurant-geocode-button:disabled {
    opacity: 0.55;
    cursor: wait;
}

.restaurant-geocode-status {
    color: #626d68;
    font-size: 0.9rem;
}

.restaurant-geocode-status.is-success {
    color: #2f7d60;
    font-weight: 650;
}

.restaurant-geocode-status.is-error {
    color: #a33e35;
    font-weight: 650;
}

.restaurant-geocode-attribution {
    margin: 10px 0 0;
    color: #777f7b;
    font-size: 0.78rem;
}

.restaurant-geocode-attribution a {
    color: inherit;
}

.recipe-personal-tip {
    margin: 22px 0 26px;
    padding: 14px 16px;
    border-left: 4px solid #2f7d60;
    border-radius: 0 8px 8px 0;
    background: #f2f7f4;
    color: #34443d;
}

.recipe-personal-tip p {
    margin: 0;
    line-height: 1.55;
}

.recipe-personal-tip strong {
    color: #285f50;
}

.recipe-personal-tip span {
    white-space: pre-line;
}

.site-header {
    margin: -36px -36px 36px;
    padding: 0 36px;
    background: #ffffff;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 4px 20px rgba(20, 45, 35, 0.05);
}

.site-header-inner {
    max-width: 1500px;
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    margin: 0 auto;
}

.site-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--accent);
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.site-logo {
    width: auto;
    height: 66px;
    display: block;
    object-fit: contain;
    object-position: center;
    flex: 0 0 auto;
}

.site-logo-frame {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    overflow: visible;
}

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

.site-nav a {
    padding: 9px 13px;
    border-radius: 10px;
    color: var(--text);
    font-weight: 600;
    transition: 0.2s;
}

.site-nav a:hover {
    background: var(--chip);
    color: var(--accent-hover);
}

.site-main {
    width: 100%;
}

@media (max-width: 900px) {
    .site-header {
        height: auto;
        min-height: 0;
        max-height: none;

        margin: -16px -16px 24px;
        padding: 10px 16px 12px;

        overflow: visible;
    }

    .site-header-inner {
        width: 100%;
        min-height: 0;
        height: auto;
        max-height: none;

        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        gap: 8px;

        margin: 0 auto;
        padding: 0;
        overflow: visible;
    }

    .site-brand {
        width: 100%;

        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;

        font-size: 1.05rem;
        text-align: center;
    }

    .site-logo-frame {
        width: min(100%, 340px);
        height: auto;

        display: flex;
        align-items: center;
        justify-content: center;

        margin: 0 auto;
        overflow: visible;
    }

    .site-logo {
        width: 100%;
        height: auto;
        max-width: 340px;
        max-height: none;

        display: block;
        margin: 0 auto;
        padding: 0;
    }

    .site-brand span:not(.site-logo-frame) {
        display: block;
        margin: 0;

        white-space: nowrap;
        font-size: 1rem;
        font-weight: 700;
    }

    .site-nav {
        width: 100%;

        display: flex;
        align-items: center;
        justify-content: center;
        gap: 4px;
        flex-wrap: nowrap;
    }

    .site-nav a {
        padding: 7px 9px;
        font-size: 0.86rem;
        white-space: nowrap;
    }
}


.landing-page {
    max-width: 1200px;
}

.landing-hero {
    max-width: 780px;
    margin: 40px auto 34px;
    text-align: center;
}

.landing-eyebrow {
    margin: 0 0 10px;
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.16em;
}

.landing-hero h1 {
    margin-bottom: 14px;
    font-size: clamp(3rem, 7vw, 5.4rem);
    line-height: 1;
    letter-spacing: -0.055em;
}

.landing-intro {
    max-width: 620px;
    margin: 0 auto;
    color: var(--muted);
    font-size: 1.15rem;
}

.landing-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
    margin-bottom: 60px;
}

.landing-card {
    min-height: 360px;
    display: flex;
    align-items: flex-end;
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    box-shadow: var(--shadow);
    transition: transform 0.25s, box-shadow 0.25s;
}

.landing-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.landing-card::before {
    content: "";
    position: absolute;
    inset: 0;
}

.landing-card-recipes {
    background: #dcebe5;
}

.landing-card-recipes::before {
    z-index: 1;
    background: linear-gradient(
        180deg,
        rgba(22, 51, 42, 0.02) 0%,
        rgba(22, 51, 42, 0.18) 100%
    );
    pointer-events: none;
}

.landing-recipe-slideshow,
.landing-recipe-photo {
    position: absolute;
    inset: 0;
}

.landing-recipe-slideshow {
    z-index: 0;
    overflow: hidden;
    background: linear-gradient(135deg, #eff7f3, #b8d8cc);
}

.landing-recipe-photo {
    opacity: 0;
    background-position: center;
    background-size: cover;
    transform: scale(1.01);
    transition: opacity 0.8s ease, transform 6s ease;
}

.landing-recipe-photo.is-active {
    opacity: 1;
    transform: scale(1.05);
}

.landing-card-recipes .landing-card-content {
    z-index: 2;
}

.landing-card-restaurants {
    background: #dce5e1;
}

.landing-card-restaurants::before {
    z-index: 1;
    background: linear-gradient(
        180deg,
        rgba(22, 51, 42, 0.01) 0%,
        rgba(22, 51, 42, 0.12) 100%
    );
    pointer-events: none;
}

.landing-map-visual {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    background:
        linear-gradient(rgba(255,255,255,0.3), rgba(255,255,255,0.3)),
        linear-gradient(145deg, #e7efec 0%, #b9cec6 100%);
}

.landing-map-road {
    position: absolute;
    height: 10px;
    display: block;
    border: 2px solid rgba(255,255,255,0.7);
    border-radius: 999px;
    background: rgba(229,237,234,0.95);
}

.landing-map-road.road-a {
    width: 125%;
    top: 28%;
    left: -12%;
    transform: rotate(15deg);
}

.landing-map-road.road-b {
    width: 115%;
    top: 62%;
    left: -8%;
    transform: rotate(-18deg);
}

.landing-map-road.road-c {
    width: 90%;
    top: 47%;
    left: 22%;
    transform: rotate(72deg);
}

.landing-map-road.road-d {
    width: 76%;
    top: 17%;
    left: 12%;
    transform: rotate(-48deg);
}

.landing-map-marker {
    width: 22px;
    height: 22px;
    position: absolute;
    display: block;
    border: 3px solid white;
    border-radius: 50% 50% 50% 0;
    background: var(--accent);
    box-shadow: 0 4px 10px rgba(31,62,52,0.24);
    transform: rotate(-45deg);
}

.landing-map-marker::after {
    content: "";
    width: 6px;
    height: 6px;
    position: absolute;
    top: 5px;
    left: 5px;
    border-radius: 50%;
    background: white;
}

.landing-map-marker.marker-a {
    top: 18%;
    left: 22%;
}

.landing-map-marker.marker-b {
    top: 28%;
    right: 19%;
}

.landing-map-marker.marker-c {
    top: 49%;
    left: 48%;
}

.landing-map-marker.marker-d {
    right: 28%;
    bottom: 22%;
}

.landing-map-marker.marker-e {
    left: 15%;
    bottom: 18%;
}

.landing-card-restaurants .landing-card-content {
    z-index: 2;
}

.landing-card-content {
    width: 66%;
    position: relative;
    z-index: 2;
    margin: 20px;
    padding: 22px 24px;
    border: 1px solid rgba(255,255,255,0.68);
    border-radius: 20px;
    background: rgba(255,255,255,0.84);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.landing-card-label {
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.landing-card h2 {
    margin: 6px 0 10px;
    color: var(--text);
    font-size: 2rem;
    line-height: 1.15;
}

.landing-card p {
    max-width: 460px;
    margin: 0 0 20px;
    color: var(--muted);
}

.landing-card-link {
    color: var(--accent);
    font-weight: 700;
}

@media (max-width: 800px) {
    .landing-hero {
        margin: 34px auto 30px;
    }

    .landing-hero h1 {
        font-size: 3.2rem;
    }

    .landing-options {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .landing-card {
        min-height: 300px;
    }

    .landing-card-content {
        width: calc(100% - 28px);
        margin: 14px;
        padding: 22px;
    }
}

.landing-counts {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: -30px auto 0;
    color: var(--muted);
    text-align: center;
}

.landing-counts strong {
    color: var(--accent-hover);
    font-weight: 700;
}

.landing-about {
    max-width: 760px;
    margin: 52px auto 8px;
    padding: 30px 34px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: rgba(255,255,255,0.62);
    text-align: center;
}

.landing-about h2 {
    margin: 4px 0 12px;
    font-size: 1.9rem;
    line-height: 1.25;
}

.landing-about > p:not(.landing-eyebrow) {
    margin: 0 auto 17px;
    color: var(--muted);
    line-height: 1.7;
}

.landing-about a {
    color: var(--accent);
    font-weight: 700;
}

.landing-about a:hover {
    color: var(--accent-hover);
    text-decoration: underline;
    text-underline-offset: 3px;
}

@media (max-width: 800px) {
    .landing-counts {
        margin-top: -34px;
        font-size: 0.94rem;
    }

    .landing-about {
        margin-top: 40px;
        padding: 24px 20px;
        border-radius: 18px;
    }

    .landing-about h2 {
        font-size: 1.6rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .landing-card,
    .landing-recipe-photo {
        transition: none;
    }

    .landing-card:hover {
        transform: none;
    }
}

.tip-callout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin: 22px 0 28px;
    padding: 16px 18px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.72);
}

.tip-callout-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.tip-callout-text strong {
    color: var(--text);
    font-size: 0.98rem;
}

.tip-callout-text span {
    color: var(--muted);
    font-size: 0.9rem;
}

.tip-mail-button {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 9px 15px;
    border-radius: 10px;
    background: var(--accent);
    color: white;
    font-weight: 700;
    text-decoration: none;
    transition: 0.2s;
}

.tip-mail-button:hover {
    background: var(--accent-hover);
    color: white;
}

@media (max-width: 800px) {
    .tip-callout {
        align-items: stretch;
        flex-direction: column;
        gap: 12px;
    }

    .tip-mail-button {
        width: 100%;
    }
}

.site-footer {
    margin-top: 56px;
    border-top: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.58);
}

.site-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 26px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.site-footer-brand {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.site-footer-brand strong {
    color: var(--accent);
    font-size: 1rem;
}

.site-footer-brand span {
    color: var(--muted);
    font-size: 0.86rem;
}

.site-footer-nav {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.site-footer-nav a {
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 650;
    text-decoration: none;
}

.site-footer-nav a:hover {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.info-page {
    max-width: 820px;
    margin: 0 auto;
    padding: 22px 0 18px;
}

.info-page-eyebrow {
    margin: 0 0 8px;
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.info-page h1 {
    margin-top: 0;
    margin-bottom: 22px;
}

.info-page-card {
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.75);
}

.info-page-card p {
    margin-top: 0;
    line-height: 1.7;
}

.info-page-card p:last-child {
    margin-bottom: 0;
}

.info-page-mail {
    color: var(--accent);
    font-size: 1.05rem;
    font-weight: 750;
    text-decoration: none;
}

.info-page-mail:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.info-page-note {
    color: var(--muted);
    font-size: 0.88rem;
}

@media (max-width: 800px) {
    .site-footer-inner {
        align-items: flex-start;
        flex-direction: column;
        padding: 22px 18px;
    }

    .site-footer-nav {
        gap: 12px 18px;
    }

    .info-page {
        padding-top: 10px;
    }

    .info-page-card {
        padding: 18px;
    }
}

/* BRONNEN EN DEFINITIES */
.source-section {
    margin-top: 30px;
}

.source-table-wrapper {
    width: 100%;
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: white;
}

.source-table {
    width: 100%;
    border-collapse: collapse;
}

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

.source-table th {
    background: #f5f7f5;
    color: var(--text);
    font-size: 0.82rem;
    font-weight: 800;
}

.source-table tbody tr:last-child td {
    border-bottom: none;
}

.source-table a {
    color: var(--accent);
    font-weight: 650;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.definition-list h3 {
    margin-top: 24px;
}

.definition-list h3:first-child {
    margin-top: 0;
}

.definition-list dl {
    margin: 0;
}

.definition-list dl > div {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 14px;
    padding: 9px 0;
    border-bottom: 1px solid var(--border);
}

.definition-list dl > div:last-child {
    border-bottom: none;
}

.definition-list dt {
    color: var(--accent);
    font-weight: 800;
}

.definition-list dd {
    margin: 0;
}

@media (max-width: 800px) {
    .source-table {
        min-width: 520px;
    }

    .definition-list dl > div {
        grid-template-columns: 72px 1fr;
        gap: 10px;
    }
}

/* RECEPTBEHEER */
.recipe-manage-page,
.recipe-manage-detail-page {
    max-width: 1200px;
    margin: 0 auto;
}

.recipe-manage-header,
.recipe-manage-detail-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin: 18px 0 26px;
}

.recipe-manage-header h1,
.recipe-manage-detail-header h1 {
    margin: 0 0 8px;
}

.recipe-manage-header p,
.recipe-manage-detail-header p {
    margin: 0;
    color: var(--muted);
}

.recipe-manage-primary {
    flex: 0 0 auto;
    padding: 11px 16px;
    border: 0;
    border-radius: 10px;
    background: var(--accent);
    color: white;
    font: inherit;
    font-weight: 700;
}

.recipe-manage-primary:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.recipe-manage-count {
    margin-bottom: 12px;
    color: var(--muted);
    font-weight: 700;
}

.recipe-manage-table-wrapper {
    width: 100%;
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: white;
}

.recipe-manage-table {
    width: 100%;
    border-collapse: collapse;
}

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

.recipe-manage-table th {
    background: #f5f7f5;
    font-size: 0.82rem;
    font-weight: 800;
}

.recipe-manage-table tbody tr:last-child td {
    border-bottom: none;
}

.recipe-manage-code {
    color: var(--accent);
    font-weight: 800;
}

.recipe-manage-name {
    font-weight: 700;
}

.recipe-manage-view {
    color: var(--accent);
    font-weight: 700;
}

.recipe-manage-section {
    margin-top: 26px;
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: white;
}

.recipe-manage-section > h2 {
    margin-top: 0;
}

.recipe-manage-definition-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 28px;
    margin: 0;
}

.recipe-manage-definition-grid > div {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

.recipe-manage-definition-grid dt {
    font-weight: 800;
}

.recipe-manage-definition-grid dd {
    min-width: 0;
    margin: 0;
    overflow-wrap: anywhere;
}

.recipe-manage-groups {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.recipe-manage-groups h3 {
    margin-top: 0;
}

.recipe-manage-groups ul {
    margin-bottom: 0;
    padding-left: 20px;
}

.recipe-manage-technical {
    margin-top: 18px;
}

.recipe-manage-technical summary {
    cursor: pointer;
    color: var(--accent);
    font-weight: 700;
}

.recipe-manage-technical .recipe-manage-table-wrapper {
    margin-top: 12px;
}

.recipe-manage-steps {
    margin: 0;
    padding-left: 28px;
}

.recipe-manage-steps li {
    padding: 8px 0 12px;
}

.recipe-manage-steps p {
    margin: 0;
}

.recipe-manage-steps span {
    color: var(--muted);
    font-size: 0.9rem;
}

.recipe-manage-source + .recipe-manage-source {
    margin-top: 20px;
}

.recipe-manage-photos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}

.recipe-manage-photo-card {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #f8faf8;
}

.recipe-manage-photo-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    display: block;
    object-fit: cover;
}

.recipe-manage-photo-card > div {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px;
}

.recipe-manage-photo-card span {
    color: var(--muted);
    font-size: 0.86rem;
    overflow-wrap: anywhere;
}

@media (max-width: 800px) {
    .recipe-manage-header,
    .recipe-manage-detail-header {
        flex-direction: column;
    }

    .recipe-manage-definition-grid,
    .recipe-manage-groups {
        grid-template-columns: 1fr;
    }

    .recipe-manage-definition-grid > div {
        grid-template-columns: 120px minmax(0, 1fr);
    }

    .recipe-manage-table {
        min-width: 680px;
    }
}

/* RECEPTBEHEER FORMULIER */
.recipe-form-page {
    max-width: 1100px;
    margin: 0 auto;
    padding-bottom: 60px;
}

.recipe-form-header {
    margin: 18px 0 22px;
}

.recipe-form-header h1 {
    margin-bottom: 6px;
}

.recipe-form-header p,
.recipe-form-help {
    color: var(--muted);
}

.recipe-form-errors {
    margin-bottom: 18px;
    padding: 14px 16px;
    border: 1px solid #d99b96;
    border-radius: 10px;
    background: #fff2f0;
    color: #7a302b;
}

.recipe-form-errors ul {
    margin: 8px 0 0 20px;
}

.recipe-form-section {
    margin-bottom: 20px;
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: white;
}

.recipe-form-section h2 {
    margin-top: 0;
}

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

.recipe-form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.recipe-form-field > span {
    font-size: 0.86rem;
    font-weight: 750;
}

.recipe-form-wide {
    grid-column: 1 / -1;
}

.recipe-form-field input,
.recipe-form-field select,
.recipe-form-field textarea,
.recipe-form-other-input {
    width: 100%;
    padding: 10px 11px;
    border: 1px solid #d6dcd8;
    border-radius: 8px;
    background: white;
    color: var(--text);
    font: inherit;
}

.recipe-form-field textarea {
    resize: vertical;
}

.recipe-form-field input:focus,
.recipe-form-field select:focus,
.recipe-form-field textarea:focus,
.recipe-form-other-input:focus {
    border-color: #6ba38d;
    outline: 3px solid rgba(47, 125, 96, 0.16);
}

.recipe-form-checkbox {
    display: flex;
    align-items: center;
    gap: 9px;
    font-weight: 700;
}

.recipe-form-checkbox input,
.recipe-checkbox-group input[type="checkbox"] {
    accent-color: var(--accent);
}

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

.recipe-checkbox-group {
    min-width: 0;
    margin: 0;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
}

.recipe-checkbox-group legend {
    padding: 0 6px;
    font-weight: 800;
}

.recipe-checkbox-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 4px;
    border-radius: 6px;
    cursor: pointer;
}

.recipe-checkbox-group label:hover {
    background: #f2f7f4;
}

.recipe-form-other-toggle {
    margin-top: 8px;
    border-top: 1px solid var(--border);
    padding-top: 10px !important;
    font-weight: 800;
}

.recipe-form-other-input {
    margin-top: 8px;
}

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

.recipe-form-cancel {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 9px 14px;
    border: 1px solid #d6dcd8;
    border-radius: 9px;
    background: white;
    font-weight: 700;
}

@media (max-width: 800px) {
    .recipe-form-grid,
    .recipe-classification-grid {
        grid-template-columns: 1fr;
    }

    .recipe-form-wide {
        grid-column: auto;
    }

    .recipe-form-actions {
        align-items: stretch;
        flex-direction: column;
    }
}

/* RECEPTBEHEER HERHAALBARE REGELS */
.recipe-form-section-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 14px;
}

.recipe-form-section-heading h2 {
    margin-bottom: 4px;
}

.recipe-form-section-heading .recipe-form-help {
    margin: 0;
}

.recipe-row-add,
.recipe-row-actions button {
    min-height: 38px;
    padding: 8px 12px;
    border: 1px solid #cad7d1;
    border-radius: 8px;
    background: #eef6f2;
    color: var(--accent-hover);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.recipe-row-add:hover,
.recipe-row-actions button:hover {
    background: #dcebe5;
}

.recipe-repeat-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.recipe-repeat-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #f9fbfa;
}

.ingredient-row {
    grid-template-columns: minmax(220px, 2fr) minmax(100px, 0.7fr) minmax(130px, 0.8fr) minmax(180px, 1.2fr);
}

.ingredient-row .recipe-form-wide,
.step-row .recipe-form-wide,
.source-row .recipe-form-wide {
    grid-column: 1 / -1;
}

.recipe-row-actions {
    grid-column: 1 / -1;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.recipe-row-actions .recipe-row-remove {
    border-color: #e0b4b0;
    background: #fff3f2;
    color: #8a3832;
}

.recipe-row-actions .recipe-row-remove:hover {
    background: #ffe4e1;
}

.recipe-form-section code {
    padding: 2px 5px;
    border-radius: 5px;
    background: #edf2ef;
}

@media (max-width: 900px) {
    .recipe-form-section-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .recipe-row-add {
        align-self: flex-start;
    }

    .recipe-repeat-row,
    .ingredient-row {
        grid-template-columns: 1fr;
    }

    .ingredient-row .recipe-form-wide,
    .step-row .recipe-form-wide,
    .source-row .recipe-form-wide,
    .recipe-row-actions {
        grid-column: auto;
    }

    .recipe-row-actions {
        justify-content: flex-start;
        flex-wrap: wrap;
    }
}

/* RECEPTBEHEER INGREDIENTENTAXONOMIE */
.ingredient-mode-field {
    grid-column: 1 / -1;
}

.ingredient-new-name-field,
.ingredient-target-field,
.ingredient-existing-field {
    min-width: 0;
}

.ingredient-row [hidden] {
    display: none !important;
}

@media (min-width: 901px) {
    .ingredient-row .ingredient-existing-field,
    .ingredient-row .ingredient-new-name-field,
    .ingredient-row .ingredient-target-field {
        grid-column: span 2;
    }
}

/* VEREENVOUDIGDE INGREDIENTEN-UX */
.recipe-new-ingredient-toggle {
    grid-column: 1 / -1;
    justify-self: start;
    min-height: 36px;
    padding: 7px 11px;
    border: 1px solid #b9cec5;
    border-radius: 8px;
    background: white;
    color: var(--accent-hover);
    font: inherit;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
}

.recipe-new-ingredient-toggle:hover {
    background: #eef6f2;
}

.recipe-new-ingredient-panel {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 14px;
    border: 1px solid #cfe0d8;
    border-radius: 10px;
    background: #f1f7f4;
}

.recipe-new-ingredient-panel[hidden] {
    display: none !important;
}

.recipe-new-ingredient-panel > .recipe-form-help {
    grid-column: 1 / -1;
    margin: 0;
}

.recipe-ingredient-choice-group {
    min-width: 0;
    margin: 0;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: white;
}

.recipe-ingredient-choice-group legend {
    padding: 0 5px;
    font-weight: 800;
}

.recipe-ingredient-choice-group label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 6px 3px;
    cursor: pointer;
}

.recipe-ingredient-choice-group input {
    margin-top: 5px;
    accent-color: var(--accent);
}

.recipe-ingredient-target {
    align-self: end;
}

.recipe-ingredient-target[hidden] {
    display: none !important;
}

.recipe-ingredient-advanced {
    grid-column: 1 / -1;
    margin: 0;
    padding: 0 2px;
}

.recipe-ingredient-advanced summary {
    color: var(--muted);
    font-size: 0.87rem;
    font-weight: 700;
}

.recipe-ingredient-advanced .recipe-form-field {
    margin-top: 8px;
}

@media (max-width: 900px) {
    .recipe-new-ingredient-panel {
        grid-template-columns: 1fr;
    }

    .recipe-new-ingredient-panel > .recipe-form-help {
        grid-column: auto;
    }
}

/* RECEPTBEHEER ACTIES */
.recipe-manage-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.recipe-manage-secondary {
    min-height: 42px;
    padding: 9px 14px;
    border: 1px solid #ccd7d2;
    border-radius: 9px;
    background: white;
    color: var(--muted);
    font: inherit;
    font-weight: 700;
}

.recipe-manage-secondary:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

@media (max-width: 800px) {
    .recipe-manage-actions {
        width: 100%;
        align-items: stretch;
        flex-direction: column;
    }

    .recipe-manage-actions > * {
        width: 100%;
    }
}

/* RECEPTBEHEER FOTO-UPLOAD */
.recipe-photo-current {
    max-width: 520px;
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    margin-bottom: 18px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #f8faf8;
}

.recipe-photo-current img {
    width: 150px;
    height: 112px;
    display: block;
    object-fit: cover;
}

.recipe-photo-current > div {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-right: 14px;
}

.recipe-photo-current span {
    color: var(--muted);
    font-size: 0.82rem;
    overflow-wrap: anywhere;
}

.recipe-photo-upload-field {
    max-width: 520px;
}

.recipe-photo-upload-field input[type="file"] {
    padding: 9px;
    background: #f8faf8;
}

.recipe-photo-remove {
    margin-top: 12px;
    color: #8a3832;
}

@media (max-width: 600px) {
    .recipe-photo-current {
        grid-template-columns: 1fr;
    }

    .recipe-photo-current img {
        width: 100%;
        height: auto;
        aspect-ratio: 4 / 3;
    }

    .recipe-photo-current > div {
        padding: 0 12px 12px;
    }
}

/* RECEPTBEHEER MARKDOWN-IMPORT */
.recipe-import-page {
    max-width: 760px;
    margin: 0 auto;
    padding-bottom: 60px;
}

.recipe-import-form {
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: white;
}

.recipe-import-form input[type="file"] {
    padding: 10px;
    background: #f8faf8;
}

.recipe-import-warning {
    margin-bottom: 18px;
    padding: 14px 16px;
    border: 1px solid #e3b36c;
    border-radius: 10px;
    background: #fff8e8;
    color: #634717;
}

.recipe-import-warning p {
    margin: 5px 0 8px;
}

.recipe-import-warning a {
    color: #795313;
    font-weight: 800;
}

.recipe-import-summary {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 18px;
    padding: 12px 14px;
    border: 1px solid #cfe0d8;
    border-radius: 10px;
    background: #f1f7f4;
    color: var(--muted);
}

/* RESTAURANTBEHEER ANDERS-OPTIE */
.restaurant-other-toggle {
    margin-top: 8px;
    padding-top: 10px !important;
    border-top: 1px solid var(--border);
    font-weight: 800;
}

.restaurant-other-input {
    width: 100%;
    margin-top: 8px;
    padding: 9px 10px;
    border: 1px solid #d6dcd8;
    border-radius: 8px;
    background: white;
    color: var(--text);
    font: inherit;
}

.restaurant-other-input:focus {
    border-color: #6ba38d;
    outline: 3px solid rgba(47, 125, 96, 0.16);
}

.restaurant-other-input[hidden] {
    display: none !important;
}

/* TOEGANGSCODES */
.site-navigation-area {
    display: flex;
    align-items: center;
    gap: 14px;
}

.site-navigation-area form {
    margin: 0;
}

.site-logout {
    min-height: 38px;
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: white;
    color: var(--muted);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.site-logout:hover {
    background: var(--chip);
    color: var(--accent-hover);
}

.access-page {
    min-height: 62vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 16px;
}

.access-card {
    width: min(100%, 460px);
    padding: 30px;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow);
}

.access-eyebrow {
    margin: 0 0 8px;
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.access-card h1 {
    margin: 0 0 12px;
    font-size: 2.2rem;
}

.access-intro {
    margin: 0 0 22px;
    color: var(--muted);
}

.access-error {
    margin-bottom: 16px;
    padding: 11px 13px;
    border: 1px solid #d99b96;
    border-radius: 9px;
    background: #fff2f0;
    color: #7a302b;
}

.access-form {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.access-form label {
    font-weight: 800;
}

.access-form input {
    width: 100%;
    padding: 12px 13px;
    border: 1px solid #d6dcd8;
    border-radius: 9px;
    background: white;
    font: inherit;
}

.access-form input:focus {
    border-color: #6ba38d;
    outline: 3px solid rgba(47, 125, 96, 0.16);
}

.access-form button,
.access-link {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 7px;
    padding: 10px 16px;
    border: 0;
    border-radius: 10px;
    background: var(--accent);
    color: white;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.access-form button:hover,
.access-link:hover {
    background: var(--accent-hover);
}

.access-help {
    margin: 18px 0 0;
    color: var(--muted);
    font-size: 0.84rem;
}

@media (max-width: 900px) {
    .site-navigation-area {
        width: 100%;
        flex-direction: column;
        gap: 8px;
    }

    .site-navigation-area form,
    .site-logout {
        width: 100%;
    }

    .access-page {
        padding: 20px 0;
    }

    .access-card {
        padding: 22px;
    }
}