/* Cerstyl Wydarzenia - kalendarz miesieczny + nadchodzace wydarzenia */
.csev-cal { --c-ink: #242424; --c-sub: #777; --c-line: #e9e3dc; --c-soft: #f8f5f1; --c-red: var(--csev-accent, #951d13); --c-brown: #54473c; max-width: 1180px; margin: 0 auto; color: var(--c-sub); font-size: 15px; line-height: 1.5; }
.csev-cal [hidden] { display: none !important; }
.csev-cal button, .csev-cal select { font: inherit; cursor: pointer; }
.csev-cal svg.cc-ico { width: 16px; height: 16px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.cc-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--dot, var(--c-red)); flex-shrink: 0; }

/* pasek filtrow */
.csev-cal__toolbar { display: flex; align-items: center; gap: 24px; padding: 12px 0 18px; border-bottom: 1px solid var(--c-line); flex-wrap: wrap; }
.csev-cal__field { display: flex; align-items: center; gap: 12px; margin: 0; font-size: 14px; color: var(--c-sub); }
.csev-cal__field select { width: auto; min-width: 180px; height: auto; padding: 11px 32px 11px 14px; border: 1px solid var(--c-line); border-radius: 4px; background-color: #fff; color: var(--c-ink); font-size: 14px; line-height: 1.3; box-shadow: none; }
.csev-cal__types { display: flex; flex-wrap: wrap; gap: 6px; }
.csev-cal__type { display: flex; align-items: center; gap: 8px; padding: 11px 14px; border: 0; border-radius: 4px; background: transparent; color: var(--c-ink); font-size: 14px; font-weight: 500; line-height: 1.2; text-transform: none; letter-spacing: 0; box-shadow: none; }
.csev-cal__type:hover { background: var(--c-soft); }
.csev-cal__type[aria-pressed="true"] { background: var(--c-soft); font-weight: 700; }

/* uklad dwukolumnowy */
.csev-cal__main { display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(0, 1fr); gap: 30px; margin-top: 28px; align-items: start; }
.csev-cal__calendar { min-width: 0; padding-right: 28px; border-right: 1px solid var(--c-line); }
.csev-cal__panel { min-width: 0; }
@media (min-width: 721px) {
  .csev-cal__main { align-items: stretch; }
  .csev-cal__panel { position: relative; min-height: 480px; }
  .csev-cal__box { position: absolute; inset: 0; display: flex; flex-direction: column; }
  .csev-cal__box .csev-pe__head { flex: none; }
  .csev-pe__list { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding-right: 8px; scrollbar-width: thin; scrollbar-color: var(--c-line) transparent; }
  .csev-pe__list::-webkit-scrollbar { width: 6px; }
  .csev-pe__list::-webkit-scrollbar-thumb { background: var(--c-line); border-radius: 3px; }
  .csev-pe__list .csev-pe:last-child { border-bottom: 0; }
}

.csev-cal__head { display: grid; grid-template-columns: 38px minmax(0, 1fr) 38px; align-items: center; gap: 10px; margin-bottom: 24px; }
.csev-cal__month { grid-column: 2; margin: 0; font-family: inherit; font-size: 22px; line-height: 1.2; font-weight: 700; letter-spacing: 0; text-transform: none; text-align: center; color: var(--c-ink); }
.csev-cal__nav { width: 38px; height: 38px; padding: 0 0 2px; border: 1px solid var(--c-line); border-radius: 4px; background: #fff; color: var(--c-ink); font-size: 20px; line-height: 1; box-shadow: none; }
.csev-cal__nav[data-cal-nav="-1"] { grid-column: 1; grid-row: 1; }
.csev-cal__nav[data-cal-nav="1"] { grid-column: 3; grid-row: 1; }
.csev-cal__nav:hover { border-color: var(--c-red); color: var(--c-red); }

.csev-cal__dow, .csev-cal__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.csev-cal__dow { margin-bottom: 12px; }
.csev-cal__dow span { text-align: center; color: var(--c-sub); font-size: 12px; font-weight: 600; letter-spacing: .6px; }
.csev-cal__grid { row-gap: 6px; }
.csev-cal__cell { position: relative; min-width: 0; min-height: 62px; padding: 2px 0; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.csev-cal__num { width: 42px; height: 42px; padding: 0; display: grid; place-items: center; border: 1px solid transparent; border-radius: 50%; font-size: 15px; line-height: 1; color: var(--c-ink); font-variant-numeric: tabular-nums; transition: background .15s; }
.csev-cal__cell.is-out { opacity: .5; }
.csev-cal__cell.has-ev { cursor: pointer; }
.csev-cal__cell.has-ev:hover .csev-cal__num, .csev-cal__cell.is-hov .csev-cal__num { background: color-mix(in srgb, var(--c-red) 12%, #fff); color: var(--c-red); }
.csev-cal__cell.is-today .csev-cal__num { border-color: var(--c-red); }
.csev-cal__cell.is-sel .csev-cal__num, .csev-cal__cell.is-sel:hover .csev-cal__num { background: var(--c-red); border-color: var(--c-red); color: #fff; }
.csev-cal__cell:focus-visible { outline: 2px solid var(--c-red); outline-offset: -2px; border-radius: 4px; }
.csev-cal__dots { display: flex; gap: 3px; height: 6px; }
.csev-cal__dots b { width: 6px; height: 6px; border-radius: 50%; background: var(--dot, var(--c-red)); display: block; }


/* panel wybranego dnia */
.csev-pe__head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-bottom: 20px; border-bottom: 1px solid var(--c-line); }
.csev-pe__kicker { display: block; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 1.4px; color: var(--c-sub); }
.csev-pe__day { display: block; margin-top: 4px; font-size: 22px; font-weight: 700; line-height: 1.3; letter-spacing: 0; color: var(--c-ink); }
.csev-pe__count { font-size: 13px; color: var(--c-sub); white-space: nowrap; }
@keyframes csevFade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.csev-pe { padding: 22px 0; border-bottom: 1px solid var(--c-line); animation: csevFade .22s ease both; }
.csev-pe__top { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 17px; }
.csev-pe__thumb { width: 96px; height: 96px; object-fit: cover; border-radius: 4px; display: block; }
.csev-pe__ph { width: 96px; height: 96px; border-radius: 4px; background: var(--c-soft); color: var(--c-red); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px; font-size: 11px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; }
.csev-cal .csev-pe__ph svg.cc-ico { width: 26px; height: 26px; }
.csev-pe__cat { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin-bottom: 6px; font-size: 12px; font-weight: 600; line-height: 1.5; letter-spacing: .6px; text-transform: uppercase; color: var(--c-ink); }
.csev-pe__title { margin: 0 0 8px; font-family: inherit; font-size: 18px; font-weight: 700; line-height: 1.35; letter-spacing: 0; color: var(--c-ink); }
.csev-pe__title a { color: inherit; text-decoration: none; }
.csev-pe__title a:hover { color: var(--c-red); }
.csev-pe__meta, .csev-up__meta { display: flex; align-items: flex-start; gap: 8px; margin-top: 6px; font-size: 14px; line-height: 1.5; color: var(--c-sub); }
.csev-cal .csev-pe__meta svg.cc-ico, .csev-cal .csev-up__meta svg.cc-ico { width: 15px; height: 15px; margin-top: 3px; }
.csev-pe__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; margin-top: 18px; }
.csev-cal .cc-cta { padding: 12px 22px; border-radius: 4px; font-size: 14px; font-weight: 600; line-height: 1.3; min-height: 0; box-shadow: none; }
.csev-cal .cc-cta.is-off, .csev-cal .cc-cta:disabled { opacity: .55; }
.csev-cal .cc-details { padding: 8px 0; border: 0; background: transparent; color: var(--c-ink); font-size: 14px; font-weight: 500; text-decoration: underline; text-underline-offset: 4px; text-transform: none; letter-spacing: 0; box-shadow: none; }
.csev-cal .cc-details:hover { color: var(--c-red); }
.csev-pe__places { margin: 0 0 0 auto; font-size: 13px; line-height: 1.4; color: var(--c-sub); text-align: right; }
.csev-pe__places.is-low { color: var(--c-red); }

.csev-cal__empty { padding: 30px 0; font-size: 15px; color: var(--c-sub); }
.csev-cal__empty p { margin: 0; }

/* nadchodzace wydarzenia */
.csev-up { margin-top: 42px; padding-top: 30px; border-top: 1px solid var(--c-line); }
.csev-up__title { margin: 0; font-family: inherit; font-size: 26px; font-weight: 700; line-height: 1.3; letter-spacing: 0; color: var(--c-ink); }
.csev-up__sub { margin: 8px 0 22px; font-size: 15px; color: var(--c-sub); }
.csev-up__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.csev-up__item { display: flex; flex-direction: column; min-width: 0; overflow: hidden; border-radius: 5px; background: var(--c-soft); }
.csev-up__media { position: relative; display: block; aspect-ratio: 1.65; overflow: hidden; background: var(--c-soft); }
.csev-up__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.csev-up__ph { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px; background: #eee4dd; color: var(--c-brown); font-size: 11px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; }
.csev-cal .csev-up__ph svg.cc-ico { width: 29px; height: 29px; }
.csev-up__date { position: absolute; left: 12px; top: 12px; padding: 7px 11px; border-radius: 3px; background: #fff; color: var(--c-sub); text-align: center; font-size: 11px; font-weight: 600; line-height: 1.15; text-transform: uppercase; }
.csev-up__date strong { display: block; margin-bottom: 2px; font-size: 24px; font-weight: 700; color: var(--c-red); }
.csev-up__body { display: flex; flex: 1; flex-direction: column; padding: 18px 18px 20px; }
.csev-up__cat { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; font-size: 12px; font-weight: 600; line-height: 1.5; letter-spacing: .6px; text-transform: uppercase; color: var(--c-ink); }
.csev-up__body h4 { margin: 8px 0 12px; font-family: inherit; font-size: 18px; font-weight: 700; line-height: 1.35; letter-spacing: 0; color: var(--c-ink); }
.csev-up__body h4 a { color: inherit; text-decoration: none; }
.csev-up__body h4 a:hover { color: var(--c-red); }
.csev-up__meta { font-size: 14px; }
.csev-up__cta { margin-top: auto; padding-top: 18px; }
.csev-up__cta .cc-cta { width: 100%; }
.csev-up__empty { padding: 20px 0; font-size: 15px; color: var(--c-sub); }

/* lista terminow na stronie wydarzenia cyklicznego */
.csev-terms { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--csev-line); }
.csev-terms h4 { margin: 0 0 10px; font-family: var(--csev-font-h); font-size: 17px; }
.csev-terms ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.csev-terms li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 0; padding: 10px 0; border-bottom: 1px solid var(--csev-line); }
.csev-terms li:last-child { border-bottom: 0; }
.csev-terms__when { flex: 1 1 220px; font-size: 15px; }
.csev-terms__seats { font-size: 13px; color: var(--csev-muted); }
.csev-terms .csev-btn { padding: 8px 16px; font-size: 14px; }

@media (max-width: 800px) {
  .csev-up__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .csev-cal__main { grid-template-columns: 1fr; gap: 28px; }
  .csev-cal__calendar { padding-right: 0; border-right: 0; }
  .csev-cal__toolbar { gap: 12px; }
  .csev-cal__types { gap: 0; }
  .csev-cal__type { padding: 9px 8px; font-size: 13px; }
  .csev-up__title { font-size: 22px; }
  .csev-cal__month { font-size: 20px; }
}
@media (max-width: 460px) {
  .csev-up__list { grid-template-columns: 1fr; }
  .csev-up__media { aspect-ratio: 1.9; }
}
@media (pointer: coarse) {
  .csev-cal__nav { width: 44px; height: 44px; }
  .csev-cal__head { grid-template-columns: 44px minmax(0, 1fr) 44px; }
  .csev-cal__num { width: 40px; height: 40px; }
  .csev-cal__field select { font-size: 16px; }
  .csev-cal__type, .csev-cal .cc-details { min-height: 44px; }
}
