.poie-calendar-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.poie-filter-item {
  display: inline-flex;
  align-items: center;
  gap: 0;
  font-size: 14px;
  position: relative;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: transparent;
  color: #ffffff;
  border-radius: 4px;
  cursor: pointer;
  overflow: hidden;
  transition: color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.poie-filter-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.12);
  transition: background-color 0.18s ease;
  z-index: 0;
}

.poie-filter-item > span {
  position: relative;
  z-index: 1;
}

.poie-filter-item input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 1px;
  height: 1px;
}

.poie-filter-item.is-active {
  color: #1e325c;
  border-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.5) inset;
}

.poie-filter-item.is-active::before {
  background: rgba(255, 255, 255, 0.92);
}

.poie-filter-item:hover::before {
  background: rgba(255, 255, 255, 0.2);
}

.poie-filter-item.is-active:hover::before {
  background: rgba(255, 255, 255, 0.98);
}

.poie-filter-item:focus-within {
  box-shadow: 0 0 0 2px rgba(249, 178, 51, 0.65);
}

.poie-calendar-wrap .poie-calendar-stage {
  position: relative;
}

/* Fallback for stale cached markup: hide legacy custom month bar. */
.poie-calendar-wrap .poie-calendar-monthbar {
  display: none !important;
}

.poie-calendar-wrap .fc .fc-header-toolbar {
  display: flex !important;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.poie-calendar-wrap .fc .fc-toolbar-chunk {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.poie-calendar-wrap .fc .fc-toolbar-chunk:empty {
  display: none;
}

.poie-calendar-wrap .fc .fc-toolbar-title {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  color: #ffffff !important;
  margin: 0 !important;
  white-space: nowrap;
  text-transform: capitalize;
}

.poie-calendar-wrap .poie-calendar {
  position: relative;
}

.poie-calendar-loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(30, 50, 92, 0.36);
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  opacity: 0;
  visibility: hidden;
  pointer-events: auto;
  z-index: 60;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.poie-calendar-wrap.is-loading .poie-calendar-loading {
  opacity: 1;
  visibility: visible;
}

.poie-calendar-spinner {
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.35);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: poie-spin 0.75s linear infinite;
}

@keyframes poie-spin {
  to {
    transform: rotate(360deg);
  }
}

.poie-calendar-wrap .fc .fc-scrollgrid-section > td,
.poie-calendar-wrap .fc .fc-scrollgrid-section > th {
  padding: 0 !important;
}

.poie-calendar-wrap .fc .fc-scrollgrid-section-header > td,
.poie-calendar-wrap .fc .fc-scrollgrid-section-header > th {
  border-bottom: 0 !important;
}

.poie-calendar-wrap .fc .fc-scrollgrid-section-body > td {
  border-top: 0 !important;
}

.poie-modal {
  --poie-blue: #1e325c;
  --poie-cyan: #1961ac;
  --poie-white: #ffffff;
  --poie-yellow: #f9b233;
  position: fixed;
  inset: 0;
  z-index: 99999;
}

.poie-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}

.poie-modal-dialog {
  position: relative;
  max-width: 980px;
  max-height: 92vh;
  overflow: auto;
  margin: 4vh auto 0;
  background: #f2f2f2;
  border-radius: 0;
  padding: 0;
  z-index: 1;
}

.poie-modal-close {
  border: 0;
  background: var(--poie-blue);
  color: var(--poie-white);
  font-size: 28px;
  cursor: pointer;
  line-height: 1;
  position: absolute;
  /*left: 8px;*/
  top: 8px;
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  aspect-ratio: 1 / 1;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  box-sizing: border-box;
  z-index: 3;
}

.poie-modal-content {
  padding: 0;
}

.poie-event-sheet {
  color: var(--poie-cyan);
  background: #f2f2f2;
}

.poie-event-top {
  position: relative;
  background: var(--poie-blue);
  padding: 28px 24px 22px;
  text-align: center;
}

.poie-event-author {
  color: #ffffff !important;
  font-size: 22px;
  line-height: 1.1;
  letter-spacing: 0.01em;
  margin-right: 0;
  text-align: center;
}

.poie-event-title {
  color: #ffffff !important;
  font-size: 28px;
  font-style: italic;
  font-weight: 500;
  line-height: 1.12;
  margin: 8px 0 0;
  letter-spacing: 0.01em;
  text-align: center;
}

.poie-event-link {
  color: inherit;
  text-decoration: none;
}

.poie-event-top .poie-event-author,
.poie-event-top .poie-event-author.poie-event-link,
.poie-event-top .poie-event-author.poie-event-link:hover,
.poie-event-top .poie-event-title,
.poie-event-top .poie-event-title a,
.poie-event-top .poie-event-title a:hover {
  color: #ffffff !important;
}

.poie-event-link:hover {
  text-decoration: underline;
}

.poie-event-main {
  display: grid;
  grid-template-columns: minmax(260px, 46%) minmax(260px, 1fr);
  gap: 20px;
  padding: 22px 20px 8px;
}

.poie-event-media {
  min-height: 260px;
  background: #d9d9d9;
}

.poie-modal-image {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
}

.poie-event-image-link {
  display: block;
  height: 100%;
}

.poie-modal-image-placeholder {
  min-height: 260px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--poie-cyan);
  font-size: 15px;
}

.poie-event-info {
  color: var(--poie-cyan);
  font-size: 18px;
  line-height: 1.2;
}

.poie-info-line {
  margin: 0 0 10px;
}

.poie-info-with-icon {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.poie-info-icon {
  flex: 0 0 auto;
  width: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.poie-info-line a {
  color: var(--poie-cyan);
  font-weight: 700;
  text-decoration: underline;
}

.poie-short-description {
  margin-bottom: 14px;
}

.poie-short-description p {
  margin: 0 0 8px;
}

.poie-short-description p:last-child {
  margin-bottom: 0;
}

.poie-event-text {
  color: var(--poie-cyan);
  font-size: 16px;
  line-height: 1.27;
  text-align: justify;
  padding: 8px 20px 24px;
}

.poie-event-text a {
  color: var(--poie-cyan);
  font-weight: 700;
  text-decoration: none;
}

.poie-event-text a:hover,
.poie-info-line a:hover {
  text-decoration: underline;
}

.poie-modal-flags {
  margin: 0 0 12px;
}

.poie-flag {
  display: inline-block;
  margin-right: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 13px;
  line-height: 1.2;
  font-weight: 600;
}

.poie-flag-coming {
  background: #fff6d8;
  color: #7a5600;
}

.poie-flag-featured {
  background: #dff2ff;
  color: #004a76;
}

.poie-flag-open-day {
  background: #e5f8ea;
  color: #17633a;
}

body.poie-modal-open {
  overflow: hidden;
}

@media (max-width: 860px) {
  .poie-event-main {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 16px 12px 8px;
  }

  .poie-event-top {
    padding: 22px 12px 16px;
  }

  .poie-event-author {
    margin-right: 0;
    font-size: 19px;
  }

  .poie-event-title {
    font-size: 23px;
  }

  .poie-event-info {
    font-size: 16px;
  }

  .poie-event-text {
    font-size: 15px;
  }

  .poie-event-text {
    padding: 8px 12px 18px;
  }
}

.nascondere{
  display: none !important;
}
