.mariendaal-calendar-wrap {
    max-width: 1200px;
    margin: 1.5rem auto;
}

.mariendaal-calendar-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.mariendaal-month-link {
    color: #0f5132;
    text-decoration: none;
    font-weight: 600;
}

.mariendaal-month-link:hover,
.mariendaal-month-link:focus {
    text-decoration: underline;
}

.mariendaal-month-link.is-disabled {
    color: #6c757d;
}

.mariendaal-calendar {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.mariendaal-calendar th,
.mariendaal-calendar td {
    border: 1px solid #d8dee4;
    vertical-align: top;
    padding: 0.65rem;
}

.mariendaal-calendar th {
    text-align: center;
    background: #f3f8f4;
}

.mariendaal-day-cell {
    min-height: 155px;
    background: #ffffff;
}

.mariendaal-day-cell.is-outside-month {
    background: #f6f7f8;
}

.mariendaal-day-number {
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.mariendaal-day-weekday {
    display: none;
}

.mariendaal-slot-list {
    display: grid;
    gap: 0.45rem;
}

.mariendaal-slot {
    display: inline-block;
    border-radius: 0.45rem;
    padding: 0.45rem 0.55rem;
    font-size: 0.85rem;
    line-height: 1.25;
    text-decoration: none;
}

.mariendaal-slot-label {
    display: block;
    font-weight: 600;
}

.mariendaal-slot-time {
    display: block;
    margin-top: 0.12rem;
    font-size: 0.74rem;
    opacity: 0.9;
}

.mariendaal-slot.is-available {
    border: 1px solid #198754;
    color: #0f5132;
    background: #e9f7ef;
}

.mariendaal-slot.is-available:hover,
.mariendaal-slot.is-available:focus {
    background: #d9f0e3;
}

.mariendaal-slot.is-unavailable {
    border: 1px solid #dc3545;
    color: #842029;
    background: #f8d7da;
    opacity: 0.8;
}

.mariendaal-day-state {
    display: inline-block;
    border-radius: 0.45rem;
    padding: 0.4rem 0.55rem;
    font-size: 0.85rem;
}

.mariendaal-day-state.is-closed {
    color: #5c3c00;
    background: #fff3cd;
    border: 1px solid #ffecb5;
}

.mariendaal-res-summary {
    margin: 0.5rem 0 1rem;
    padding: 0.75rem 1rem;
    border: 1px solid #badbcc;
    border-radius: 0.45rem;
    background: #eef9f1;
    color: #0f5132;
}

.mariendaal-res-summary.is-warning {
    border-color: #ffecb5;
    background: #fff8dc;
    color: #664d03;
}

.mariendaal-res-hidden-field {
    display: none !important;
}

@media (max-width: 900px) {
    .mariendaal-calendar-nav {
        flex-direction: column;
        align-items: stretch;
    }

    .mariendaal-calendar-wrap {
        margin: 1rem auto;
    }

    .mariendaal-calendar thead {
        display: none;
    }

    .mariendaal-calendar,
    .mariendaal-calendar tbody,
    .mariendaal-calendar tr,
    .mariendaal-calendar td {
        display: block;
        width: 100%;
    }

    .mariendaal-calendar tr {
        margin-bottom: 0.6rem;
    }

    .mariendaal-calendar th,
    .mariendaal-calendar td {
        padding: 0.65rem;
    }

    .mariendaal-day-cell {
        min-height: 0;
        border-radius: 0.5rem;
        background: #fff;
    }

    .mariendaal-day-cell.is-outside-month {
        display: none;
    }

    .mariendaal-day-weekday {
        display: block;
        font-size: 0.78rem;
        color: #5f6b76;
        margin-bottom: 0.1rem;
        text-transform: uppercase;
        letter-spacing: 0.03em;
    }

    .mariendaal-day-number {
        margin-bottom: 0.4rem;
    }

    .mariendaal-slot {
        display: block;
        width: 100%;
        font-size: 0.8rem;
        padding: 0.42rem 0.48rem;
    }
}
