/* Shared event cards — homepage + kalender.html */
.ev-card {
  position: relative;
  display: block;
  width: 100%;
  min-width: 0;
  height: 200px;
  min-height: 44px;
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: #fff;
  background: #1C2B3A;
  box-shadow:
    0 1px 3px rgba(28, 43, 58, 0.08),
    0 6px 16px rgba(28, 43, 58, 0.10),
    0 16px 32px rgba(28, 43, 58, 0.06);
}
.ev-card.is-compact {
  height: 160px;
}
.ev-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  display: block;
}
.ev-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(10, 16, 26, 0.96) 0%,
    rgba(10, 16, 26, 0.75) 45%,
    rgba(10, 16, 26, 0.28) 65%,
    transparent 80%
  );
  pointer-events: none;
}
.ev-kat,
.ev-status {
  position: absolute;
  top: 10px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  white-space: nowrap;
  max-width: 46%;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ev-kat {
  left: 10px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.ev-status {
  right: 10px;
  background: rgba(28, 43, 58, 0.48);
  color: rgba(255, 255, 255, 0.88);
}
.ev-card.is-pagar .ev-status {
  background: #0A7A8C;
  color: #fff;
}
.ev-meta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 0.7rem 0.8rem 0.75rem;
}
.ev-card time {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
  margin: 0 0 0.22rem;
}
.ev-card h3 {
  font-family: "Playfair Display", Palatino, Georgia, serif;
  font-size: 1.12rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
}
.ev-card.is-compact h3 {
  font-size: 0.95rem;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
}
.ev-plats {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin: 0.28rem 0 0;
  font-size: 0.78rem;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.7);
  min-width: 0;
}
.ev-plats .ph {
  flex-shrink: 0;
  font-size: 0.85rem;
}
.ev-plats span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ev-card.is-compact .ev-meta {
  padding: 0.6rem 0.75rem 0.7rem;
}
.ev-card.is-compact .ev-plats {
  font-size: 0.7rem;
}
.ev-card.is-compact time {
  font-size: 0.6rem;
}
.ev-card.is-compact .ev-kat,
.ev-card.is-compact .ev-status {
  font-size: 0.55rem;
  padding: 0.12rem 0.45rem;
  min-height: 20px;
}
