/* ================================
   Landgoed Rijckholt — Dagmenu
   ================================ */

/* Voorkom scrollen op body als popup open is */
body.lr-no-scroll { overflow: hidden; }

/* --------------------------------
   Kalender wrapper
   -------------------------------- */
.lr-dagmenu-wrap {
    max-width: 480px;
    margin: 0 auto;
    font-family: inherit;
}

/* --------------------------------
   Kalender
   -------------------------------- */
.lr-kalender {
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
}

.lr-kalender-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #2c5f2e;
    color: #fff;
    padding: 14px 16px;
}

.lr-maand-titel {
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.lr-nav-btn {
    color: #fff;
    text-decoration: none;
    font-size: 1.6rem;
    line-height: 1;
    padding: 2px 10px;
    border-radius: 4px;
    transition: background .15s;
}
.lr-nav-btn:hover { background: rgba(255,255,255,.2); color: #fff; }

.lr-kalender-dagen {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background: #f5f5f5;
    border-bottom: 1px solid #e0e0e0;
}

.lr-dag-naam {
    text-align: center;
    padding: 8px 0;
    font-size: .75rem;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
}

.lr-kalender-cellen {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background: #e0e0e0;
}

.lr-cel {
    background: #fff;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .95rem;
    position: relative;
    transition: background .15s;
}

.lr-cel.lr-leeg { background: #f9f9f9; }

.lr-cel.lr-verleden span,
.lr-cel.lr-geen-menu span {
    color: #bbb;
}

.lr-cel.lr-vandaag span {
    font-weight: 700;
}

/* Beschikbare dag */
.lr-cel.lr-heeft-menu {
    cursor: pointer;
    background: #fff;
}
.lr-cel.lr-heeft-menu span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #2c5f2e;
    color: #fff;
    font-weight: 600;
    transition: background .15s, transform .1s;
}
.lr-cel.lr-heeft-menu:hover span,
.lr-cel.lr-heeft-menu:focus span {
    background: #1e4420;
    transform: scale(1.1);
}
.lr-cel.lr-heeft-menu:focus {
    outline: 2px solid #2c5f2e;
    outline-offset: -2px;
}

/* --------------------------------
   Popup overlay
   -------------------------------- */
.lr-popup-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0);
    z-index: 99999;
    padding: 16px;
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
    transition: background .25s ease;
}
.lr-popup-overlay.lr-open {
    display: flex;
    animation: lrOverlayFadeIn .25s ease forwards;
}

@keyframes lrOverlayFadeIn {
    from { background: rgba(0,0,0,0); }
    to   { background: rgba(0,0,0,.55); }
}

/* --------------------------------
   Popup
   -------------------------------- */
.lr-popup {
    background: #fff;
    border-radius: 12px;
    width: 100%;
    max-width: 540px;
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    position: relative;
    box-shadow: 0 8px 40px rgba(0,0,0,.25);
    padding: 28px 24px 24px;
    box-sizing: border-box;
    -webkit-overflow-scrolling: touch;
    animation: lrPopupSlideIn .3s cubic-bezier(.22,.61,.36,1) forwards;
}

@keyframes lrPopupSlideIn {
    from {
        opacity: 0;
        transform: translateY(24px) scale(.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.lr-popup-sluit {
    position: sticky;
    top: 0;
    float: right;
    background: none;
    border: none;
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
    color: #666;
    padding: 0 0 8px 8px;
    margin: -4px -4px 0 0;
    z-index: 1;
}
.lr-popup-sluit:hover { color: #000; }

/* --------------------------------
   Popup inhoud
   -------------------------------- */
.lr-popup-datum {
    font-size: 1.05rem;
    color: #2c5f2e;
    font-weight: 600;
    margin: 0 0 16px;
    text-transform: capitalize;
}

.lr-gerecht-naam {
    font-size: 1.25rem;
    margin: 0 0 10px;
}

.lr-gerecht-omschrijving {
    font-size: .95rem;
    color: #444;
    margin-bottom: 12px;
    line-height: 1.6;
}

.lr-prijs {
    font-weight: 600;
    font-size: 1rem;
    color: #2c5f2e;
    margin: 6px 0 12px;
}

.lr-gerecht-foto {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 16px;
    object-fit: cover;
    max-height: 220px;
}

.lr-kindermenu {
    background: #f7fbf7;
    border-left: 3px solid #2c5f2e;
    padding: 12px 14px;
    border-radius: 0 6px 6px 0;
    margin-bottom: 16px;
}
.lr-kindermenu h5 {
    margin: 0 0 6px;
    font-size: .95rem;
    color: #2c5f2e;
}

.lr-vol {
    color: #c0392b;
    font-weight: 600;
    text-align: center;
    padding: 16px 0;
}

/* --------------------------------
   Formulier
   -------------------------------- */
.lr-form-titel {
    font-size: 1.05rem;
    margin: 20px 0 14px;
    padding-top: 16px;
    border-top: 1px solid #e0e0e0;
}

.lr-label {
    display: block;
    font-size: .875rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: #333;
}
.lr-verplicht { color: #c0392b; }

.lr-input {
    display: block;
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    margin-bottom: 14px;
    box-sizing: border-box;
    transition: border-color .15s;
    -webkit-appearance: none;
}
.lr-input:focus {
    outline: none;
    border-color: #2c5f2e;
    box-shadow: 0 0 0 3px rgba(44,95,46,.15);
}
.lr-textarea { resize: vertical; min-height: 80px; }

.lr-form-rij {
    display: flex;
    gap: 12px;
}
.lr-form-col { flex: 1; }

.lr-form-fout {
    background: #fdecea;
    color: #c0392b;
    border-radius: 6px;
    padding: 10px 12px;
    font-size: .875rem;
    margin-bottom: 12px;
}

.lr-verzend-knop {
    display: block;
    width: 100%;
    padding: 13px;
    background: #2c5f2e;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s;
    font-family: inherit;
}
.lr-verzend-knop:hover:not(:disabled) { background: #1e4420; }
.lr-verzend-knop:disabled { opacity: .6; cursor: not-allowed; }

/* --------------------------------
   Bevestiging
   -------------------------------- */
.lr-bevestiging {
    text-align: center;
    padding: 24px 8px;
}
.lr-bevestiging-icoon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: #2c5f2e;
    color: #fff;
    border-radius: 50%;
    font-size: 1.8rem;
    margin: 0 auto 16px;
}
.lr-bevestiging h4 { margin: 0 0 10px; font-size: 1.2rem; }
.lr-bevestiging p  { color: #555; font-size: .95rem; margin-bottom: 20px; }

.lr-sluit-knop {
    padding: 10px 28px;
    background: #2c5f2e;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    font-family: inherit;
}
.lr-sluit-knop:hover { background: #1e4420; }

/* --------------------------------
   Lader
   -------------------------------- */
.lr-lader {
    text-align: center;
    padding: 32px;
    color: #888;
    font-size: .95rem;
}

/* --------------------------------
   Responsive aanpassingen
   -------------------------------- */
@media (max-width: 480px) {
    .lr-popup {
        padding: 20px 16px 16px;
        border-radius: 12px 12px 0 0;
        max-height: 90vh;
        animation: lrPopupSlideUp .3s cubic-bezier(.22,.61,.36,1) forwards;
    }
    .lr-popup-overlay {
        align-items: flex-end;
        padding: 0;
    }
    .lr-popup { width: 100%; max-width: 100%; }
    .lr-form-rij { flex-direction: column; gap: 0; }
}

@keyframes lrPopupSlideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}