/* Eseményeink – rendezett, innovatív, illeszkedik a 10milliofa témahoz */

.tmf-esemeny {
  padding-bottom: 4rem;
  font-family: "Poppins", sans-serif;
  background: transparent;
}

/* ── Intro: enyhe gradient sáv, mint a header hangulata ── */
.tmf-esemeny__intro {
  padding: 2.5rem 24px 2rem;
  background: linear-gradient(135deg, #1f4b33 0%, #193124 50%, #223724 100%);
  color: #F2F5EA;
  position: relative;
}

.tmf-esemeny__intro::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 24px;
  background: rgba(230, 234, 214, 0.75);
  border-radius: 24px 24px 0 0;
}

.tmf-esemeny__content {
  max-width: var(--container, 1200px);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.tmf-esemeny__title {
  font-family: "Coustard", serif;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 400;
  margin: 0 0 0.5rem;
  color: #F2F5EA;
  letter-spacing: 0.02em;
}

.tmf-esemeny__intro-text {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: rgba(242, 245, 234, 0.92);
  max-width: 36em;
}

/* ── Wrap: világos háttér, egyértelmű szekciók ── */
.tmf-esemeny__wrap {
  max-width: var(--container, 1200px);
  margin: 0 auto;
  padding: 2rem 24px;
}

.tmf-esemeny__filter-desc {
  margin: 0 0 0.25rem;
  font-size: 0.875rem;
  color: #385244;
  font-weight: 500;
}

.tmf-esemeny__elmult-link-wrap {
  margin: 0 0 1.5rem;
}

.tmf-esemeny__elmult-link {
  color: #1f4b33;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.9375rem;
}

.tmf-esemeny__elmult-link:hover {
  color: #193124;
  text-decoration: underline;
}

/* ── Szűrők: kompakt sáv, egy sorban lehetőség szerint ── */
.tmf-esemeny__filters {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1rem 1.5rem;
  align-items: end;
  margin-bottom: 2.25rem;
  padding: 1.5rem 1.5rem;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(8px);
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(25, 49, 36, 0.06);
  border: 1px solid rgba(56, 82, 68, 0.1);
}

.tmf-esemeny__filter-row {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.tmf-esemeny__filter-row label {
  font-size: 0.6875rem;
  font-weight: 600;
  color: #385244;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.tmf-esemeny__filter-row input[type="text"],
.tmf-esemeny__filter-row select {
  padding: 0.5rem 0.75rem;
  border: 1px solid #c5ccbe;
  border-radius: 8px;
  font-size: 0.875rem;
  background: #fafbf9;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.tmf-esemeny__filter-row input[type="text"]:focus,
.tmf-esemeny__filter-row select:focus {
  outline: none;
  border-color: #385244;
  box-shadow: 0 0 0 3px rgba(56, 82, 68, 0.12);
}

.tmf-esemeny__filter-row input[type="checkbox"] {
  margin-right: 0.5rem;
  width: 1.1em;
  height: 1.1em;
  accent-color: #385244;
}

.tmf-esemeny__filter-btn {
  padding: 0.6rem 1.25rem;
  background: #385244;
  color: #f2f5ea;
  border: 0;
  border-radius: 8px;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.tmf-esemeny__filter-btn:hover {
  background: #eebb07;
  color: #212529;
}

/* ── Naptár szekció: fejléc és navigáció ── */
.tmf-esemeny__calendar-title {
  font-family: "Coustard", serif;
  font-size: 1.5rem;
  margin: 0 0 1rem;
  color: #193124;
  letter-spacing: 0.01em;
}

.tmf-esemeny__nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.tmf-esemeny__nav-months {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.tmf-esemeny__nav-month {
  padding: 0.4rem 0.65rem;
  font-size: 0.8125rem;
  color: #385244;
  text-decoration: none;
  border-radius: 8px;
  background: #f2f5ea;
  transition: background 0.2s, color 0.2s;
}

.tmf-esemeny__nav-month:hover {
  background: #e0e4d8;
  color: #193124;
}

.tmf-esemeny__nav-month.is-active {
  background: #385244;
  color: #f2f5ea;
}

.tmf-esemeny__nav-years .tmf-esemeny__year-select {
  padding: 0.45rem 0.75rem;
  border: 1px solid #c5ccbe;
  border-radius: 8px;
  font-size: 0.875rem;
  background: rgba(255, 255, 255, 0.9);
  color: #193124;
}

.tmf-esemeny__nav-arrows {
  display: flex;
  gap: 0.75rem;
  margin-left: auto;
}

.tmf-esemeny__nav-link {
  font-size: 0.9375rem;
  color: #385244;
  font-weight: 600;
  text-decoration: none;
}

.tmf-esemeny__nav-link:hover {
  color: #1f4b33;
  text-decoration: underline;
}

/* ── Naptár rács: tisztán tagolt, Hétfővel kezdődik ── */
.tmf-esemeny__calendar {
  margin-bottom: 3rem;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(8px);
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(25, 49, 36, 0.06);
  overflow: visible;
  border: 1px solid rgba(56, 82, 68, 0.1);
}

.tmf-esemeny__weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  background: linear-gradient(90deg, #193124 0%, #1f4b33 100%);
  color: #F2F5EA;
  font-size: 0.75rem;
  font-weight: 600;
  text-align: center;
  padding: 0.75rem 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.tmf-esemeny__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
  background: #e0e2de;
}

.tmf-esemeny__day {
  min-height: 108px;
  background: rgba(255, 255, 255, 0.88);
  padding: 0.5rem;
  font-size: 0.8125rem;
}

.tmf-esemeny__day--empty {
  background: rgba(247, 248, 245, 0.75);
}

.tmf-esemeny__day--has {
  background: linear-gradient(180deg, #f0f4ed 0%, #e8ede4 100%);
}

.tmf-esemeny__day-num {
  font-weight: 700;
  color: #193124;
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.875rem;
}

.tmf-esemeny__day-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.tmf-esemeny__day-list li {
  margin-bottom: 0.35rem;
  padding: 0.25rem 0;
  border-bottom: 1px solid rgba(56, 82, 68, 0.08);
}

.tmf-esemeny__day-list li:last-child {
  border-bottom: 0;
}

.tmf-esemeny__day-item {
  position: relative;
}

.tmf-esemeny__day-link,
.tmf-esemeny__day-list a {
  color: #385244;
  text-decoration: none;
  font-size: 0.75rem;
  line-height: 1.3;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

.tmf-esemeny__day-link:hover,
.tmf-esemeny__day-list a:hover {
  color: #1f4b33;
  text-decoration: underline;
}

/* Hover popover: középen, kattintható; JS vezérli .tmf-esemeny__day-popover--visible */
.tmf-esemeny__day-popover {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.98);
  z-index: 100;
  width: 320px;
  max-width: calc(100vw - 2rem);
  max-height: calc(100vh - 2rem);
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(25, 49, 36, 0.2);
  border: 1px solid rgba(56, 82, 68, 0.12);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
  pointer-events: none;
  overflow: hidden;
}

/* Enyhe overlay: a naptár továbbra is jól látszódjon */
.tmf-esemeny__day-popover::before {
  content: '';
  position: fixed;
  inset: 0;
  background: rgba(25, 49, 36, 0.18);
  z-index: -1;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.tmf-esemeny__day-popover--visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

.tmf-esemeny__day-popover--visible::before {
  opacity: 1;
  visibility: visible;
}

.tmf-esemeny__day-popover-img {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #e8ede4;
}

.tmf-esemeny__day-popover-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tmf-esemeny__day-popover-body {
  padding: 0.75rem 1rem 1rem;
}

.tmf-esemeny__day-popover-title {
  display: block;
  font-family: "Coustard", serif;
  font-size: 1rem;
  color: #193124;
  margin: 0 0 0.5rem;
  line-height: 1.3;
}

.tmf-esemeny__day-popover-meta {
  margin: 0 0 0.35rem;
  font-size: 0.75rem;
  color: #5a6b5e;
  line-height: 1.4;
}

.tmf-esemeny__day-popover-desc {
  margin: 0.5rem 0 0.5rem;
  font-size: 0.8125rem;
  color: #385244;
  line-height: 1.45;
}

.tmf-esemeny__day-popover-more {
  display: inline-block;
  margin-top: 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #1f4b33;
  text-decoration: none;
}

.tmf-esemeny__day-popover-more:hover {
  color: #193124;
  text-decoration: underline;
}

.tmf-esemeny__day-time {
  display: block;
  font-size: 0.625rem;
  color: #5a6b5e;
  margin-top: 0.15rem;
}

.tmf-esemeny__day-more {
  font-size: 0.625rem;
  color: #385244;
  font-weight: 600;
}

/* ── Szekciócímek: egységes stílus ── */
.tmf-esemeny__list-title {
  font-family: "Coustard", serif;
  font-size: 1.375rem;
  margin: 0 0 1.25rem;
  color: #193124;
  letter-spacing: 0.01em;
}

/* ── Lista: kártyák képpel, enyhe emelés hoverre ── */
.tmf-esemeny__list {
  list-style: none;
  margin: 0 0 3rem;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}

.tmf-esemeny__item-link {
  display: flex;
  align-items: stretch;
  gap: 0;
  text-decoration: none;
  color: #252525;
  padding: 0;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(6px);
  box-shadow: 0 2px 12px rgba(25, 49, 36, 0.06);
  border: 1px solid rgba(56, 82, 68, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tmf-esemeny__item-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(25, 49, 36, 0.12);
}

.tmf-esemeny__item-img {
  flex: 0 0 180px;
  min-height: 130px;
  background: linear-gradient(135deg, #e8ede4 0%, #dce0d4 100%);
  overflow: hidden;
}

.tmf-esemeny__item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tmf-esemeny__item-body {
  flex: 1;
  padding: 1.25rem 1.5rem;
  min-width: 0;
}

.tmf-esemeny__item-title {
  display: block;
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.35rem;
  line-height: 1.35;
  color: #193124;
}

.tmf-esemeny__item-date,
.tmf-esemeny__item-loc,
.tmf-esemeny__item-tipus {
  display: block;
  font-size: 0.8125rem;
  color: #5a6b5e;
  margin-top: 0.25rem;
}

.tmf-esemeny__item-closed {
  display: inline-block;
  font-size: 0.75rem;
  color: #b54;
  font-weight: 500;
  margin-top: 0.35rem;
}

.tmf-esemeny__list--past .tmf-esemeny__item-link {
  opacity: 0.98;
}

.tmf-esemeny__empty {
  color: #5a6b5e;
  font-style: italic;
  margin: 0 0 2rem;
  font-size: 0.9375rem;
}

/* ── Elmúlt szekció: elválasztó vonal ── */
.tmf-esemeny__past {
  margin-bottom: 3rem;
  padding-top: 2.5rem;
  border-top: 2px solid rgba(56, 82, 68, 0.12);
}

/* ── CTA: illeszkedik a tmf-help kártyákhoz ── */
.tmf-esemeny__cta {
  padding: 2.5rem 1.5rem;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(8px);
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(25, 49, 36, 0.06);
  border: 1px solid rgba(56, 82, 68, 0.1);
  margin-top: 1.5rem;
}

.tmf-esemeny__cta-title {
  font-family: "Coustard", serif;
  font-size: 1.375rem;
  margin: 0 0 1.5rem;
  color: #193124;
  text-align: center;
  letter-spacing: 0.01em;
}

.tmf-esemeny__cta-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.tmf-esemeny__cta-card {
  display: block;
  padding: 1rem 1.25rem;
  background: #385244;
  color: #f2f5ea;
  text-align: center;
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  border-radius: 10px;
  transition: background 0.2s, color 0.2s;
}

.tmf-esemeny__cta-card:hover {
  background: #eebb07;
  color: #212529;
}

.tmf-esemeny__newsletter {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(56, 82, 68, 0.12);
}

.tmf-esemeny__newsletter-title {
  font-family: "Coustard", serif;
  font-size: 1.125rem;
  margin: 0 0 0.5rem;
  color: #193124;
}

.tmf-esemeny__newsletter-text {
  margin: 0 0 1rem;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: #5a6b5e;
  max-width: 32em;
  margin-left: auto;
  margin-right: auto;
}

.tmf-esemeny__newsletter-btn {
  display: inline-block;
  padding: 0.65rem 1.5rem;
  background: #385244;
  color: #f2f5ea;
  font-weight: 600;
  text-decoration: none;
  border-radius: 10px;
  font-size: 0.9375rem;
  transition: background 0.2s, color 0.2s;
}

.tmf-esemeny__newsletter-btn:hover {
  background: #eebb07;
  color: #212529;
}

/* ── Esemény modal: kattintásra nagy kép + részletek (dizájn igazítva) ── */
.tmf-esemeny-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.tmf-esemeny-modal--open {
  opacity: 1;
  visibility: visible;
}

.tmf-esemeny-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(25, 49, 36, 0.45);
  cursor: pointer;
}

.tmf-esemeny-modal__box {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 24px 64px rgba(25, 49, 36, 0.22);
  border: 1px solid rgba(56, 82, 68, 0.12);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: tmf-modal-appear 0.25s ease;
}

@keyframes tmf-modal-appear {
  from { opacity: 0; transform: scale(0.97); }
  to { opacity: 1; transform: scale(1); }
}

.tmf-esemeny-modal__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 2;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: none;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  font-size: 1.5rem;
  line-height: 1;
  color: #193124;
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
  transition: background 0.2s, color 0.2s;
}

.tmf-esemeny-modal__close:hover {
  background: #F2F5EA;
  color: #1f4b33;
}

.tmf-esemeny-modal__img-wrap {
  width: 100%;
  aspect-ratio: 16 / 10;
  background: #e8ede4;
  overflow: hidden;
  flex-shrink: 0;
}

.tmf-esemeny-modal__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tmf-esemeny-modal__body {
  padding: 1.25rem 1.5rem 1.5rem;
  overflow-y: auto;
}

.tmf-esemeny-modal__title {
  font-family: "Coustard", serif;
  font-size: 1.375rem;
  font-weight: 400;
  margin: 0 0 0.75rem;
  color: #193124;
  line-height: 1.3;
}

.tmf-esemeny-modal__meta {
  margin: 0 0 0.35rem;
  font-size: 0.875rem;
  color: #5a6b5e;
  line-height: 1.45;
}

.tmf-esemeny-modal__btn {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.6rem 1.25rem;
  background: #385244;
  color: #f2f5ea;
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  border-radius: 10px;
  transition: background 0.2s, color 0.2s;
}

.tmf-esemeny-modal__btn:hover {
  background: #eebb07;
  color: #212529;
}

/* ── Single esemény ── */
.tmf-single--esemeny .tmf-esemeny__meta { margin-bottom: 1.25rem; }
.tmf-esemeny__meta-row { margin: 0 0 0.5rem; font-size: 1rem; }
.tmf-esemeny__closed { color: #b54; }
.tmf-esemeny__back { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid rgba(56, 82, 68, 0.12); }
.tmf-esemeny__back a { color: #385244; text-decoration: none; font-weight: 600; }
.tmf-esemeny__back a:hover { color: #1f4b33; text-decoration: underline; }

.tmf-single__content img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}

/* ── Reszponzív ── */
@media (max-width: 900px) {
  .tmf-esemeny__cta-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .tmf-esemeny__intro { padding: 1.75rem 20px 1.5rem; }
  .tmf-esemeny__wrap { padding: 1.5rem 20px; }
  .tmf-esemeny__nav-months { order: 2; width: 100%; }
  .tmf-esemeny__nav-arrows { order: 1; margin-left: 0; }
  .tmf-esemeny__nav-years { order: 3; }
  .tmf-esemeny__weekdays { font-size: 0.625rem; padding: 0.5rem 0.25rem; }
  .tmf-esemeny__day { min-height: 88px; padding: 0.35rem; font-size: 0.6875rem; }
  .tmf-esemeny__day-list a { font-size: 0.6875rem; }
  .tmf-esemeny__item-link {
    flex-direction: column;
    min-height: 44px;
  }
  .tmf-esemeny__item-img { flex: 0 0 auto; min-height: 180px; }
  .tmf-esemeny__cta-grid { grid-template-columns: 1fr; }
  .tmf-esemeny__filters { grid-template-columns: 1fr; }
  .tmf-esemeny__cta { padding: 1.5rem 1rem; }
  .tmf-esemeny-modal { padding: 1rem; }
  .tmf-esemeny-modal__box { max-height: 85vh; }
  .tmf-esemeny-modal__close { min-width: 44px; min-height: 44px; top: 0.5rem; right: 0.5rem; }
  .tmf-esemeny-modal__btn { min-height: 44px; display: inline-flex; align-items: center; }
}

@media (max-width: 480px) {
  .tmf-esemeny__intro { padding: 1.25rem 16px 1rem; }
  .tmf-esemeny__title { font-size: 1.5rem; }
  .tmf-esemeny__wrap { padding: 1rem 16px; }
  .tmf-esemeny__day { min-height: 72px; padding: 0.25rem; font-size: 0.625rem; }
  .tmf-esemeny__day-num { font-size: 0.75rem; }
  .tmf-esemeny__list-title { font-size: 1.125rem; }
  .tmf-esemeny__item-link { padding: 0; }
  .tmf-esemeny__item-img { min-height: 140px; }
  .tmf-esemeny__cta-title { font-size: 1.125rem; }
  .tmf-esemeny__cta-card { min-height: 44px; display: flex; align-items: center; justify-content: center; }
  .tmf-esemeny__newsletter-btn { min-height: 44px; }
  .tmf-esemeny__day-popover { width: calc(100vw - 2rem); max-width: none; }
}
