
.Blurcard {
  --blur: 16px;
  --size: clamp(300px, 90vmin, 500px);
  --leadfont: 20px;
  max-width: 500px;
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  color: #222;
  margin: 25px;
  border: 2px solid #ccc;
  background: white;
  box-shadow: 0 4px 18px rgba(0,0,0,0.13);
}

.Blurcard__img {
  object-fit: cover;
  width: 100%;
  position: relative;
  height: 20%;
  object-position: 50% 0%;
  transform: scale(calc(1 + (var(--hover, 0) * 0.25))) rotate(calc(var(--hover, 0) * -5deg));
  transition: transform 0.2s;
}

.Blurcard__content {
  padding: 14px 16px;
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0;
  backdrop-filter: blur(var(--blur));
}

/* Title */
.Blurcard__title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: #111;
}

/* Datetime + countdown row */
.Blurcard__meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.88rem;
  color: #555;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.Blurcard__meta i {
  margin-right: 3px;
  color: #777;
}

.Blurcard__badge {
  background: #e8f5e9;
  color: #2e7d32;
  border-radius: 20px;
  padding: 2px 10px;
  font-size: 0.78rem;
  font-weight: 600;
}

.Blurcard__badge--today {
  background: #fff3e0;
  color: #e65100;
}

/* Ticket-style divider */
.Blurcard__divider {
  border: none;
  border-top: 2px dashed #ccc;
  margin: 10px -16px;
}

/* Main ticket body - two columns when QR present */
.Blurcard__body {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.Blurcard__info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

/* Booking reference pill */
.Blurcard__ref {
  display: inline-block;
  background: #f5f5f5;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 3px 10px;
  font-size: 0.78rem;
  font-family: monospace;
  letter-spacing: 0.05em;
  color: #444;
  margin-bottom: 4px;
}

/* Ticket count row */
.Blurcard__tickets {
  display: flex;
  gap: 14px;
  font-size: 0.88rem;
  color: #333;
  margin: 2px 0;
}

.Blurcard__tickets i {
  margin-right: 3px;
  color: #555;
}

/* Payment */
.Blurcard__payment {
  font-size: 0.88rem;
  color: #444;
}

/* QR code */
.Blurcard__qr {
  width: 88px;
  min-width: 88px;
  height: 88px;
  border-radius: 8px;
  overflow: hidden;
}

.Blurcard__qr img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Refund warning */
.Blurcard__refund {
  background: #fff3cd;
  color: #856404;
  border-radius: 6px;
  padding: 7px 10px;
  font-size: 0.82rem;
  margin-top: 4px;
}

/* Secondary info (location, description) */
.Blurcard__secondary {
  font-size: 0.78rem;
  color: #666;
  margin-top: 2px;
  line-height: 1.45;
}

.Blurcard__description {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.Blurcard form {
  padding: 0;
  margin: 0;
}

/* Actions bar — holds the cancel dropdown */
.Blurcard__actions {
  display: flex;
  justify-content: flex-end;
}

.Blurcard__actions select {
  appearance: none;
  -webkit-appearance: none;
  background: #f5f5f5;
  color: #333;
  border: 1.5px solid #bbb;
  border-radius: 20px;
  padding: 5px 32px 5px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23555'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  transition: background 0.15s, border-color 0.15s;
}

.Blurcard__actions select:hover {
  background-color: #ebebeb;
  border-color: #888;
}

.Blurcard__actions select option[value="null"] {
  color: #999;
}

.Blurcard__action {
  position: absolute;
  aspect-ratio: 1;
  width: calc(var(--size) * 0.15);
  bottom: 30%;
  right: 1.5rem;
  transform: translateY(50%)
    translateY(calc((var(--size) * 0.4)))
    translateY(calc(var(--hover, 0) * (var(--size) * -0.4)));
  display: grid;
  place-items: center;
  border-radius: 0.5rem;
  background: hsl(0 0% 100% / 0.5);
  transition: transform 0.2s;
}

.Blurcard__action svg {
  aspect-ratio: 1;
  width: 50%;
}

/* Legacy span sizing — kept for historic bookings widget */
.Blurcard__content > span:nth-of-type(1) {
  font-size: calc(var(--leadfont) * 1);
}

.Blurcard__content > span:nth-of-type(2) {
  font-size: calc(var(--leadfont) * 0.85);
}

.Blurcard__content > span:nth-of-type(3) {
  font-size: calc(var(--leadfont) * 0.75);
}

.Blurcard:is(:hover, :focus-visible) {
  --hover: 1;
}