/* Obecně */
.pu-wrapper { max-width: 1000px; margin: 0 auto; font-family: inherit; }
.pu-title { text-align: center; margin: 10px 0 32px; }

/* Měsíční navigace */
.pu-monthnav { display:flex; align-items:center; justify-content:space-between; margin:10px 0 16px; }
.pu-months { display:flex; gap:10px; flex-wrap:wrap; }
.pu-month { background:#f3f3f3; border:1px solid #e2e2e2; border-radius:999px; padding:6px 12px; cursor:pointer; }
.pu-month.is-active { background:#111; color:#fff; border-color:#111; }
.pu-more .pu-forward { background:transparent; border:none; font-size:22px; cursor:pointer; padding:4px 8px; }

/* Spodní navigace měsíců (pod výpisem) je zatím schovaná. */
.pu-monthnav[data-bottom="1"] { display:none; }

/* Horní řádek: navigace měsíců vlevo, Filtrovat akce / Tisk vpravo */
.pu-toprow { display:flex; align-items:center; justify-content:space-between; gap:12px; margin:10px 0 16px; flex-wrap:wrap; }
.pu-toprow .pu-monthnav { margin:0; flex:0 1 auto; min-width:0; justify-content:flex-start; }
.pu-toprow .filtry { display:flex; gap:8px; flex:none; }

/* Filtrování + tisk */
.pu-filter-toggle, .pu-print, .pu-apply, .pu-reset {
  padding:6px 10px; border:1px solid #e2e2e2; background:#fff; border-radius:6px; cursor:pointer;
}
button.pu-apply {
    background-color: #c36;
    color: #fff;
    text-decoration: none;
}

.pu-filters { border:1px solid #e2e2e2; padding:12px; border-radius:8px; margin: 0 0 16px; }

.pu-filter-fields {
    display: grid;
    grid-template-columns: minmax(100px, 1fr) minmax(100px, 1fr) minmax(100px, 2fr) minmax(100px, 1fr);
    gap: 12px;
}

.pu-filter-fields select, .pu-filter-fields input[type="date"] { width:100%; }

.pu-filter-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pu-filter-group-label {
  font-weight: 600;
  font-size: 14px;;
}

.pu-filter-options {
  display: flex;
  flex-wrap: wrap;          /* z chipů udělá řádky */
  gap: 6px;
  max-height: 140px;        /* výška cca pro 5 řádků (můžeš upravit) */
  overflow-y: auto;         /* vertikální scroll */
  overflow-x: hidden;
  padding-right: 4px;
}
.pu-filter-option {
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid #e2e2e2;
  background: #f5f5f5;
  cursor: pointer;
  font-size: 13px;
}

.pu-filter-option.is-active {
  background: #111;
  color: #fff;
  border-color: #111;
}



.pu-filter-dates label {
  display: block;
  font-size: 13px;
}

.pu-filter-dates input[type="date"] {
  width: 100%;
  padding: 6px 10px;
  border-radius: 999px;          /* stejné zaoblení jako „štítky“ */
  border: 1px solid #e2e2e2;     /* jemná šedá jako u chipů */
  background: #fdf5f8;           /* lehce růžový podklad (doladíš podle své barvy) */
  font-size: 14px;
  line-height: 1.4;
  box-sizing: border-box;
  outline: none;
  color: #c36;;
}

/* efekt při fokusu – sladěné s růžovou */
.pu-filter-dates input[type="date"]:focus {
  border-color: #e91e63;         /* uprav na svůj odstín růžové */
  box-shadow: 0 0 0 2px rgba(233, 30, 99, 0.15);
}

/* popisek „Od / Do“ trošku sjednotíme se zbytkem */
.pu-filter-dates label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: #c2185b;                /* můžeš změnit na stejnou růžovou jako tlačítka */
  margin-bottom: 4px;
}




/* Seznam */
.pu-list { position:relative; min-height:100px; }
.pu-item { display:grid; grid-template-columns: 1fr 140px; gap:12px; align-items:center; border-top:1px solid #e6e6e6; padding: 16px 0; min-height:150px; }
.pu-item:last-child { border-bottom:1px solid #e6e6e6; }
.pu-item.is-past { color:#999; }
.pu-col1 {}
.pu-col2 { display:flex; justify-content:flex-end; align-items:center; }

.pu-item-title { font-size:18px; margin:0 0 8px; }
.pu-item-title a { text-decoration:none; color:inherit; }
.pu-item-meta { display:grid; grid-template-columns: 240px 1fr; gap:12px; }
.pu-perex { line-height:1.5; }
.pu-contact { margin-top: 6px; font-size: 14px; }
.pu-contact a { color: inherit; }

.pu-btn { display:inline-block; padding:6px 10px; border-radius:6px; border:1px solid #e2e2e2; text-decoration:none; }
.pu-empty { padding:20px 0; color:#666; }

/* Dlaždice pro výběr na hlavní stránce */
.pu-featured-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  max-width: 1290px;
  margin: 0 auto;
}
.pu-featured-card {
  min-width: 0;
  background: #cf54ad;
}
.pu-featured-link {
  display: grid;
  grid-template-rows: 1fr auto;
  height: 100%;
  color: #fff;
  text-decoration: none;
}
.pu-featured-link:hover,
.pu-featured-link:focus {
  color: #fff;
  text-decoration: none;
}
.pu-featured-image {
  aspect-ratio: 1 / 0.59;
  overflow: hidden;
  background: #cf54ad;
}
.pu-featured-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pu-featured-body {
  min-height: 174px;
  padding: 28px 30px 24px;
  background: #cf54ad;
  color: #fff;
}
.pu-featured-body h3 {
  margin: 0 0 14px;
  color: #fff;
  font-size: 26px;
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: 0;
}
.pu-featured-text {
  margin: 0 0 28px;
  color: #fff;
  font-size: 17px;
  line-height: 1.35;
  font-weight: 600;
}
.pu-featured-date {
  margin: 0;
  color: #fff;
  font-size: 17px;
  line-height: 1.35;
  font-weight: 800;
}
.pu-loop-excerpt,
.pu-loop-date {
  color: inherit;
  font: inherit;
  line-height: inherit;
  text-decoration: inherit;
}
.pu-loop-date {
  font-weight: 800;
}

@media (max-width: 900px) {
  .pu-featured-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  .pu-featured-grid {
    grid-template-columns: 1fr;
  }
  .pu-featured-body {
    min-height: 150px;
    padding: 24px 24px 22px;
  }
  .pu-featured-body h3 {
    font-size: 24px;
  }
}

/* Tisk pouze wrapperu */
@media print {
  body * { visibility: hidden !important; }
  .pu-wrapper, .pu-wrapper * { visibility: visible !important; }
  .pu-wrapper { position: absolute; left: 0; top: 0; width: 100%; }
  .pu-filter-toggle, .pu-print, .pu-more, .pu-apply, .pu-reset, .pu-btn, .pu-col2 { display:none !important; }
}


/* */
.pu-term-link { text-decoration: none; border-bottom: 1px solid currentColor; }
.pu-term-link:hover { border-bottom-color: transparent; }

/* šipky */

.pu-monthnav { display:flex; align-items:center; justify-content:space-between; gap:8px; }
.pu-monthnav .pu-prev, .pu-monthnav .pu-next {
  display:flex; align-items:center; justify-content:center; flex:none;
  width:28px; height:28px; padding:0; line-height:1; font-size:18px;
  background:#fff; border:1px solid #e2e2e2; border-radius:999px; cursor:pointer;
}
.pu-monthnav [type=button]:hover, .pu-monthnav  [type=button]:focus {
  color: #000;
}

/* Elementor Pro Gallery používá při lazy-loadu vlastní zvětšovací animaci,
   i když je vstupní animace widgetu nastavená na "None". */
body.single-udalost .elementor-widget-gallery .e-gallery-item,
body.single-udalost .elementor-widget-gallery .e-gallery-image,
body.single-udalost .elementor-widget-gallery .elementor-gallery-item__image {
  animation: none !important;
  transition: none !important;
}

body.single-udalost .elementor-widget-gallery .e-gallery--lazyload .e-gallery-image:not(.e-gallery-image-loaded) {
  filter: none !important;
  transform: none !important;
}
