/* =========================
   KM EVENTS – GRID VÝPIS
========================= */
.km-events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.event-card {
  background: #fff;
  border: 1px solid #ddd;
  overflow: hidden;
  transition: all 0.2s ease-in-out;
}

.event-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.event-link {
  color: inherit;
  text-decoration: none;
  display: block;
  height: 100%;
}

.event-thumb {
  background-size: cover;
  background-position: center;
  height: 340px;
  position: relative;
}

.event-date-badge {
  position: absolute;
  background: color(srgb 0.9491 0.6872 0.0051);
  color: white;
  padding: 5px 10px;
  font-size: 14px;
  font-weight: bold;
}

.event-info {
  padding: 15px;
}

.event-title {
  font-size: 16px;
  font-weight: 600;
  margin: 0;
  text-align: center;
}


/* ================================
   KM EVENTS – FILTRAČNÝ FORMULÁR (MOBILE)
================================ */
@media (max-width: 600px) {
  .event-filter-form {
    flex-direction: column;
    align-items: center; 
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-bottom: 60px;
  }

  .filter-group {
    flex-direction: column;
    width: 100%;
    max-width: 200px;
  }

  .filter-group label {
    margin-bottom: 6px;
    margin-right: 0;
    text-align: left;
  }

  .filter-group input[type="date"],
  .filter-group .filter-button {
    width: 100%;
  }
}

/* ================================
   KM EVENTS – FORM HEADING
================================ */
.event-date-heading {
  text-align: center;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
}

/* ================================
   KM EVENTS – FILTRAČNÝ FORMULÁR (DESKTOP)
================================ */
@media (min-width: 601px) {
  .event-filter-form {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-end;
    gap: 15px;
    margin-bottom: 60px;
  }
}

.filter-group {
  display: flex;
  flex-direction: row;
  align-items: center;
}

.filter-group label {
  font-size: 14px;
  font-weight: 600;
  color: #222;
  margin-right: 10px;
  line-height: 1;
}

@media (min-width: 601px) {
  .filter-group input[type="date"] {
    font-size: 16px;
    width: 180px;
  }
}


/* =========================
   KM EVENTS – IKONKOVÝ FILTER
========================= */
.event-type-filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 25px;
  margin: 50px auto 50px auto;
  padding: 0 20px;
}

.type-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  color: #555;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  line-height: 1.2;
  transition: 0.2s ease;
  border-bottom: 2px solid transparent;
  width: 100px;
}

.type-icon img {
  width: 80px;
  height: 80px;
  margin-bottom: 6px;
  transition: 0.2s ease;
  filter: grayscale(100%);
  opacity: 0.8;
}

.type-icon:hover img,
.type-icon.active img {
  filter: none;
  opacity: 1;
  transform: scale(1.05);
}

.type-icon:hover,
.type-icon.active {
  color: #f7941e;
}

/* =========================
   KM EVENTS – IKONKY (MOBILE GRID)
========================= */
@media (max-width: 600px) {
  .event-type-filter {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }

  .type-icon {
    width: 100%;
    font-size: 10px;
  }

  .type-icon img {
    width: 48px;
    height: 48px;
  }
}