/* =============================================
   VoresKalundborg – Begivenheder Side
   Placering: /css/begivenheder-side.css
   ============================================= */

/* --- Søgefelt --- */
.vk-ev-search-wrap {
  margin-top: -24px;
  margin-bottom: 32px;
  position: relative;
  z-index: 10;
}

.vk-ev-search-bar {
  background: #fff;
  border-radius: 14px;
  padding: 6px 6px 6px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
}

.vk-ev-search-input {
  flex: 1;
  border: none !important;
  outline: none;
  font-family: 'Work Sans', sans-serif;
  font-size: 15px;
  color: #2C2C2C;
  background: transparent;
  padding: 8px 0;
}

.vk-ev-search-input::placeholder {
  color: rgba(44, 44, 44, 0.75);
}

/* --- Layout --- */
.vk-ev-layout {
  display: grid;
  grid-template-columns: 268px 1fr;
  gap: 28px;
  align-items: start;
}

/* =============================================
   FILTER SIDEBAR
   ============================================= */

.vk-ev-filter-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.vk-ev-filter-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(44, 44, 44, 0.75);
}

.vk-ev-reset {
  font-size: 12px;
  color: #468F9E;
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'Work Sans', sans-serif;
  font-weight: 600;
  padding: 0;
  visibility: hidden;
}

.vk-ev-reset.show {
  visibility: visible;
}

.vk-ev-filter-section {
  margin-bottom: 20px;
}

.vk-ev-filter-section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(44, 44, 44, 0.75);
  margin-bottom: 10px;
}

/* --- Måned-liste --- */
.vk-ev-maaned-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.vk-ev-maaned-btn {
  width: 100%;
  text-align: left;
  padding: 9px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  font-family: 'Work Sans', sans-serif;
  cursor: pointer;
  background: rgba(44, 44, 44, 0.05);
  color: rgba(44, 44, 44, 0.75);
  border: 1.5px solid transparent;
  transition: all 0.15s;
}

.vk-ev-maaned-btn:hover {
  background: rgba(44, 44, 44, 0.09);
  color: #2C2C2C;
}

.vk-ev-maaned-btn.is-active {
  background: #1E2E1E;
  color: #fff;
  font-weight: 600;
}

/* --- Accordion kategorifilter --- */
.vk-ev-acc-group {
  background: #fff;
  border-radius: 12px;
  border: 1px solid rgba(44, 44, 44, 0.07);
  margin-bottom: 6px;
  overflow: hidden;
}

.vk-ev-acc-group.has-active {
  border-color: rgba(70, 143, 158, 0.3);
}

.vk-ev-acc-header {
  width: 100%;
  background: none;
  border: none;
  padding: 11px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-family: 'Work Sans', sans-serif;
  text-align: left;
}

.vk-ev-acc-header--leaf {
  cursor: pointer;
}

.vk-ev-acc-header--leaf:hover .vk-ev-acc-name {
  color: #468F9E;
}

.vk-ev-acc-group.has-active .vk-ev-acc-header {
  background: rgba(70, 143, 158, 0.05);
}

.vk-ev-acc-group.has-active .vk-ev-acc-header--leaf .vk-ev-acc-name {
  color: #2d6e7a;
  font-weight: 700;
}

.vk-ev-acc-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.vk-ev-acc-name {
  font-size: 13px;
  font-weight: 600;
  color: #2C2C2C;
}

.vk-ev-acc-count {
  font-size: 11px;
  background: rgba(44, 44, 44, 0.06);
  color: rgba(44, 44, 44, 0.75);
  padding: 2px 7px;
  border-radius: 100px;
}

.vk-ev-chev {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  transition: transform 0.2s;
  color: rgba(44, 44, 44, 0.75);
}

.vk-ev-chev.open {
  transform: rotate(180deg);
}

.vk-ev-acc-body {
  display: none;
  padding: 8px 12px 12px;
  border-top: 1px solid rgba(44, 44, 44, 0.06);
  flex-wrap: wrap;
  gap: 6px;
}

.vk-ev-acc-body.open {
  display: flex;
}

.vk-ev-tag {
  font-size: 12px;
  padding: 5px 12px;
  border-radius: 100px;
  background: rgba(44, 44, 44, 0.05);
  color: rgba(44, 44, 44, 0.75);
  border: 1.5px solid transparent;
  cursor: pointer;
  font-family: 'Work Sans', sans-serif;
  transition: all 0.15s;
  white-space: nowrap;
}

.vk-ev-tag:hover {
  background: rgba(44, 44, 44, 0.1);
  color: #2C2C2C;
}

.vk-ev-tag.active {
  background: rgba(70, 143, 158, 0.1);
  color: #2d6e7a;
  border-color: rgba(70, 143, 158, 0.35);
  font-weight: 600;
}

/* =============================================
   GRID + KORT
   ============================================= */

.vk-ev-results-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.vk-ev-results-count {
  font-size: 13px;
  color: rgba(44, 44, 44, 0.75);
}

.vk-ev-results-count strong {
  color: #2C2C2C;
}

.vk-ev-sort {
  font-family: 'Work Sans', sans-serif;
  font-size: 13px;
  color: #2C2C2C;
  background: #fff;
  border: 1px solid rgba(44, 44, 44, 0.12);
  border-radius: 8px;
  padding: 7px 12px;
  cursor: pointer;
  outline: none;
}

.vk-ev-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

/* Begivenhedskort */
.vk-ev-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(44, 44, 44, 0.07);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: transform 0.18s, box-shadow 0.18s;
}

.vk-ev-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.09);
}

.vk-ev-card-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #EBE4D1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vk-ev-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.vk-ev-card-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2C2C2C;
  opacity: 0.2;
}

/* Dato-badge */
.vk-ev-card-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: #A83232;
  color: #fff;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.1;
}

.vk-ev-card-badge-day {
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
}

.vk-ev-card-badge-month {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  opacity: 0.9;
}

/* Kategori-badge */
.vk-ev-card-cat {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  border-radius: 100px;
  padding: 5px 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* Kortbody */
.vk-ev-card-body {
  padding: 14px 16px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.vk-ev-card-meta {
  font-size: 12px;
  color: rgba(44, 44, 44, 0.75);
  display: flex;
  align-items: center;
  gap: 5px;
}

.vk-ev-card-title {
  font-size: 15px;
  font-weight: 700;
  color: #1E2E1E;
  line-height: 1.3;
}

.vk-ev-card-desc {
  font-size: 13px;
  color: rgba(44, 44, 44, 0.75);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Ingen resultater */
.vk-ev-no-results {
  text-align: center;
  padding: 60px 0;
  display: none;
  color: rgba(44, 44, 44, 0.75);
  grid-column: 1 / -1;
}

.vk-ev-no-results.show {
  display: block;
}

.vk-ev-no-results svg {
  margin: 0 auto 14px;
  display: block;
  opacity: 0.25;
}

.vk-ev-no-results h3 {
  font-size: 18px;
  font-weight: 700;
  color: #1E2E1E;
  margin-bottom: 8px;
}

.vk-ev-no-results p {
  font-size: 14px;
}

/* Fjern Elementors hover/focus på knapper */
.vk-ev-side button:hover,
.vk-ev-side button:focus,
.vk-ev-side button:focus-visible {
  background-color: unset;
  color: unset;
  outline: none;
}

.vk-ev-side .vk-ev-maaned-btn.is-active:hover,
.vk-ev-side .vk-ev-maaned-btn.is-active:focus {
  background: #1E2E1E;
  color: #fff;
}

.vk-ev-side .vk-ev-acc-header:hover,
.vk-ev-side .vk-ev-acc-header:focus {
  background: rgba(44, 44, 44, 0.04) !important;
  color: #2C2C2C !important;
}

.vk-ev-side .vk-ev-acc-header--leaf:hover,
.vk-ev-side .vk-ev-acc-header--leaf:focus {
  background: rgba(70, 143, 158, 0.05) !important;
  color: #2C2C2C !important;
}

.vk-ev-side .vk-ev-tag:hover,
.vk-ev-side .vk-ev-tag:focus {
  background: rgba(44, 44, 44, 0.1);
  color: #2C2C2C;
}

/* =============================================
   RESPONSIV
   ============================================= */

@media (max-width: 900px) {
  .vk-ev-side {
    padding-left: 16px;
    padding-right: 16px;
  }

  .vk-ev-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .vk-ev-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 380px) {
  .vk-ev-grid {
    grid-template-columns: 1fr;
  }
}
