/* ============ Renginių lenta (/renginiai/) ============ */
.lz-events {
    --lz-purple: #423f68;
    --lz-yellow: #fbce04;
    --lz-border: #e6e6e6;
    --lz-muted: #6c6c6c;
    margin-bottom: 32px;
}

.lz-events [hidden] {
    display: none !important;
}

.lz-events__toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px 24px;
    margin-bottom: 12px;
}

.lz-events__views {
    display: inline-flex;
    border: 1px solid var(--lz-purple);
    border-radius: 4px;
    overflow: hidden;
}

.lz-events__view-btn {
    padding: 9px 16px;
    border: 0;
    background: #fff;
    color: var(--lz-purple);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.lz-events__view-btn + .lz-events__view-btn {
    border-left: 1px solid var(--lz-purple);
}

.lz-events__view-btn.is-active {
    background: var(--lz-purple);
    color: #fff;
}

.lz-events__view-btn:focus-visible,
.lz-events__legend button:focus-visible,
.lz-events__reset:focus-visible,
.lz-item a:focus-visible,
.lz-popover a:focus-visible,
.lz-popover button:focus-visible,
.eo-fullcalendar .fc-event:focus-visible {
    outline: 3px solid var(--lz-yellow, #fbce04);
    outline-offset: 2px;
}

.lz-events__filters {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 12px;
}

.lz-events__filter {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 13px;
    color: var(--lz-muted);
}

.lz-events__filter select {
    min-width: 190px;
    padding: 8px 10px;
    border: 1px solid #c9c9c9;
    border-radius: 4px;
    background: #fff;
    color: #222;
    font: inherit;
    font-size: 15px;
}

.lz-events__reset {
    padding: 9px 4px;
    border: 0;
    background: none;
    color: var(--lz-purple);
    font: inherit;
    text-decoration: underline;
    cursor: pointer;
}

/* Legenda */
.lz-events__legend {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 16px;
    padding: 0;
    list-style: none;
}

.lz-events__legend li {
    margin: 0;
    padding: 0;
}

.lz-events__legend li::before {
    display: none;
}

.lz-events__legend button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border: 1px solid var(--lz-border);
    border-radius: 999px;
    background: #fff;
    color: #333;
    font: inherit;
    font-size: 14px;
    cursor: pointer;
}

.lz-events__legend button:hover {
    border-color: var(--lz-color);
}

.lz-events__legend.has-active button:not(.is-active) {
    opacity: 0.5;
}

.lz-events__legend button.is-active {
    border-color: var(--lz-color);
    box-shadow: inset 0 0 0 1px var(--lz-color);
    font-weight: 600;
}

.lz-events__dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--lz-color);
    flex: none;
}

.lz-events__hint {
    margin: 8px 0 0;
    font-size: 13px;
    color: var(--lz-muted);
}

.lz-events__empty {
    padding: 24px;
    background: #f7f7f7;
    text-align: center;
    color: var(--lz-muted);
}

/* Kalendorius */
.lz-events .eo-fullcalendar .fc-toolbar h2 {
    font-size: 22px;
    text-transform: none;
}

.lz-events .eo-fullcalendar .fc-event {
    cursor: pointer;
}

/* Sąrašas */
.lz-day {
    margin-bottom: 24px;
}

.lz-day__title {
    margin: 0 0 8px;
    padding-bottom: 6px;
    border-bottom: 2px solid var(--lz-purple);
    color: var(--lz-purple);
    font-size: 18px;
}

.lz-day__title span {
    margin-left: 8px;
    font-size: 14px;
    font-weight: normal;
    color: var(--lz-muted);
}

.lz-day__list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.lz-day__list li::before {
    display: none;
}

.lz-item {
    margin: 0 0 8px;
    padding: 0;
}

.lz-item a {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    border: 1px solid var(--lz-border);
    border-left: 5px solid var(--lz-color);
    border-radius: 4px;
    background: #fff;
    color: #222;
    text-decoration: none;
    transition: box-shadow 0.15s;
}

.lz-item a:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.lz-item__time {
    flex: none;
    min-width: 96px;
    font-weight: 700;
    color: var(--lz-purple);
}

.lz-item__body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    min-width: 0;
}

.lz-item__title {
    font-weight: 600;
}

.lz-item__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 12px;
    font-size: 13px;
    color: var(--lz-muted);
}

.lz-item__cat {
    color: var(--lz-color);
    font-weight: 600;
}

.lz-item__arrow {
    flex: none;
    color: var(--lz-muted);
}

/* Dienos puslapis */
.lz-daynav {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
}

.lz-daynav__link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    max-width: 48%;
    padding: 8px 12px;
    border: 1px solid var(--lz-border);
    border-radius: 4px;
    color: var(--lz-purple);
    text-decoration: none;
}

.lz-daynav__link:hover {
    border-color: var(--lz-purple);
}

.lz-daynav__link span {
    display: flex;
    flex-direction: column;
    font-weight: 600;
}

.lz-daynav__link--next span {
    text-align: right;
}

.lz-daynav__link small {
    font-size: 12px;
    font-weight: normal;
    color: var(--lz-muted);
}

.lz-day__count {
    margin: 0 0 12px;
    font-weight: 600;
    color: var(--lz-purple);
}

.lz-day__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.lz-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border: 1px solid var(--lz-purple);
    border-radius: 4px;
    background: var(--lz-purple);
    color: #fff !important;
    font-weight: 600;
    text-decoration: none !important;
}

.lz-btn--ghost {
    background: #fff;
    color: var(--lz-purple) !important;
}

/* Kalendoriuje pažymėta diena (?diena=) */
.eo-fullcalendar .fc-day.lz-goto {
    background: #fff3b0 !important;
    box-shadow: inset 0 0 0 2px #fbce04;
}

.eo-fullcalendar .fc-day-number.lz-goto {
    font-weight: bold;
    color: #423f68;
}

/* Iššokantis langelis */
.lz-popover {
    position: absolute;
    z-index: 10000;
    width: 340px;
    max-width: calc(100vw - 32px);
    padding: 18px 20px 20px;
    border-top: 5px solid var(--lz-color);
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22);
    color: #222;
    font-size: 15px;
    line-height: 1.45;
}

.lz-popover--sheet {
    position: fixed;
    left: 0 !important;
    right: 0;
    bottom: 0;
    top: auto !important;
    width: auto;
    max-width: none;
    max-height: 80vh;
    overflow-y: auto;
    border-radius: 12px 12px 0 0;
}

.lz-popover__close {
    position: absolute;
    top: 6px;
    right: 8px;
    width: 36px;
    height: 36px;
    border: 0;
    background: none;
    color: #666;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
}

.lz-popover__cat {
    display: inline-block;
    margin-bottom: 6px;
    color: var(--lz-color);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.lz-popover__title {
    margin: 0 32px 10px 0;
    font-size: 18px;
    line-height: 1.3;
    color: #423f68;
}

.lz-popover__row {
    display: flex;
    gap: 8px;
    margin: 0 0 6px;
}

.lz-popover__row i {
    width: 16px;
    margin-top: 4px;
    color: #423f68;
    flex: none;
}

.lz-popover__text {
    margin: 10px 0 14px;
    color: #555;
    font-size: 14px;
}

.lz-popover__more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    border-radius: 4px;
    background: #423f68;
    color: #fff !important;
    font-weight: 600;
    text-decoration: none !important;
}

.lz-popover__more:hover {
    background: #2f2d4d;
}

@media (max-width: 767px) {
    .lz-events__toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .lz-events__views {
        display: flex;
    }

    .lz-events__view-btn {
        flex: 1;
    }

    .lz-events__filters,
    .lz-events__filter {
        width: 100%;
    }

    .lz-events__filter select {
        width: 100%;
        min-width: 0;
    }

    .lz-item a {
        flex-wrap: wrap;
        gap: 4px 12px;
    }

    .lz-item__time {
        min-width: 0;
    }

    .lz-item__body {
        flex-basis: 100%;
        order: 2;
    }

    .lz-item__arrow {
        display: none;
    }
}
