/* ============================================================
   LA MALAFAMERA — INTERNATIONAL TOUR LISTING
   Editorial club-night layout. No faux ticket stub or cut-out shape.
   ============================================================ */

.lmf-event-card {
  --event-accent: #ff1744;
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 124px minmax(0, 1fr) 188px;
  align-items: stretch;
  min-height: 174px;
  margin: 13px 0;
  overflow: hidden;
  color: #f1eee8;
  background: linear-gradient(112deg, #171717 0%, #101010 58%, #0b0b0b 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 4px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
  transition: border-color 260ms ease, transform 260ms ease, box-shadow 260ms ease;
}

.lmf-event-card::before {
  position: absolute;
  z-index: 2;
  inset: 0 auto 0 0;
  width: 3px;
  content: "";
  background: var(--event-accent);
}


@media (hover: hover) {
  .lmf-event-card:hover {
    transform: translateY(-3px);
    border-color: color-mix(in srgb, var(--event-accent) 58%, rgba(255, 255, 255, 0.14));
    box-shadow: 0 17px 36px rgba(0, 0, 0, 0.28);
  }
}

/* Date rail */
.lmf-event-card__date {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 18px 12px;
  background: rgba(255, 255, 255, 0.025);
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
}

.lmf-event-card__date-kicker,
.lmf-event-card__date-year {
  color: rgba(241, 238, 232, 0.43);
  font-family: var(--font-body);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.19em;
  line-height: 1.3;
  text-transform: uppercase;
}

.lmf-event-card__date strong {
  display: block;
  margin: 2px 0 0;
  color: var(--event-accent);
  font-family: var(--font-display);
  font-size: clamp(3.7rem, 5vw, 5rem);
  font-weight: 400;
  line-height: 0.82;
  letter-spacing: -0.055em;
}

.lmf-event-card__date-caption {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 7px;
  color: #f1eee8;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.lmf-event-card__date-caption i {
  color: var(--event-accent);
  font-style: normal;
}


/* City lettering: each flag fills the complete word, not just the visible middle. */
.lmf-event-card__city-flag {
  display: inline-block;
  width: max-content;
  max-width: 100%;
  white-space: nowrap;
  color: transparent;
  -webkit-text-fill-color: transparent;
  /* Scale the whole word to its content column; the flag then spans every glyph. */
  font-size: clamp(2rem, 14.5cqi, 5.5rem);
  line-height: 0.96;
  -webkit-text-stroke: 0.25px rgba(5, 5, 5, 0.45);
  paint-order: stroke fill;
  background-clip: text;
  -webkit-background-clip: text;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% 100%;
  background-origin: border-box;
  filter: drop-shadow(0 0 5px rgba(255, 23, 68, 0.22));
}

/* United Kingdom — simplified Union Jack */
/* Reino Unido — Union Jack mediante gradientes CSS */
/* Reino Unido — Union Jack completa */
.lmf-flag--uk {
  background-color: #012169;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 30' preserveAspectRatio='none'%3E%3Crect width='60' height='30' fill='%23012169'/%3E%3Cpath d='M0 0L60 30M60 0L0 30' stroke='%23FFFFFF' stroke-width='8'/%3E%3Cpath d='M0 0L60 30M60 0L0 30' stroke='%23C8102E' stroke-width='3'/%3E%3Cpath d='M30 0V30M0 15H60' stroke='%23FFFFFF' stroke-width='10'/%3E%3Cpath d='M30 0V30M0 15H60' stroke='%23C8102E' stroke-width='5'/%3E%3C/svg%3E");
  background-size: 100% 100%;
  background-position: center;
  background-repeat: no-repeat;
}

/* Denmark */
/* Dinamarca — fondo rojo y cruz blanca */
.lmf-flag--denmark {
  background-color: #FF1744;
  background-image:
    linear-gradient(
      to right,
      transparent 28%,
      #ffffff 28% 39%,
      transparent 39%
    ),
    linear-gradient(
      to bottom,
      transparent 42%,
      #ffffff 42% 58%,
      transparent 58%
    );
}

/* Spain — red / gold / red */
.lmf-flag--spain {
  background-image: linear-gradient(180deg, #FF1744 0 25%, #FFD52E 25% 75%, #FF1744 75% 100%);
}

/* France — blue / white / red */
.lmf-flag--france {
  background-image: linear-gradient(90deg, #2458D3 0 33.333%, #fff 33.333% 66.666%, #FF1744 66.666% 100%);
}

/* Ireland — green / white / orange */
.lmf-flag--ireland {
  background-image: linear-gradient(90deg, #16A66A 0 33.333%, #fff 33.333% 66.666%, #FF9A45 66.666% 100%);
}

.lmf-flag--default {
  color: #FF1744;
  -webkit-text-fill-color: #FF1744;
  -webkit-text-stroke: 0;
  background: none;
  filter: none;
}

.lmf-event-card.is-soldout .lmf-event-card__city-flag {
  filter: grayscale(1);
  opacity: 0.58;
}

/* City, venue and event information */
.lmf-event-card__content {
  container-type: inline-size;
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 22px 28px 19px;
}

.lmf-event-card__eyebrow {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  color: rgba(241, 238, 232, 0.49);
  font-family: var(--font-body);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.19em;
  line-height: 1.4;
  text-transform: uppercase;
}

.lmf-event-card__eyebrow i {
  color: var(--event-accent);
  font-style: normal;
}

.lmf-event-card__city {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  margin: 0;
  overflow: visible;
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: normal;
  color: #f1eee8;
  font-family: var(--font-display);
  font-size: clamp(3.1rem, 5.1vw, 5.5rem);
  font-weight: 400;
  line-height: 0.96;
  letter-spacing: -0.035em;
  text-transform: uppercase;
}

.lmf-event-card__details {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px 19px;
  color: rgba(241, 238, 232, 0.65);
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1.45;
  text-transform: uppercase;
}

.lmf-event-card__details span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.lmf-event-card__details svg {
  flex: 0 0 auto;
  color: var(--event-accent);
}

/* Availability badges and music signature */
.lmf-event-card__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 14px;
  margin-top: 4px;
}

.lmf-event-card__badges {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.lmf-event-card__badges:empty {
  display: none;
}

.lmf-stamp {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 8px;
  color: var(--event-accent);
  background: color-mix(in srgb, var(--event-accent) 9%, transparent);
  border: 1px solid color-mix(in srgb, var(--event-accent) 50%, transparent);
  border-radius: 2px;
  font-family: var(--font-body);
  font-size: 8px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  white-space: nowrap;
  transform: none;
}

.lmf-stamp:nth-child(even) {
  transform: none;
}

.lmf-event-card__genres {
  color: rgba(241, 238, 232, 0.38);
  font-family: var(--font-body);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.13em;
  line-height: 1.4;
  text-transform: uppercase;
  white-space: nowrap;
}

.lmf-event-card__genres i {
  padding: 0 2px;
  color: var(--event-accent);
  font-style: normal;
}

/* CTA rail */
.lmf-event-card__action {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 11px;
  padding: 20px 18px;
  background: rgba(0, 0, 0, 0.16);
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.lmf-event-card__action-kicker {
  color: rgba(241, 238, 232, 0.4);
  font-family: var(--font-body);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-align: center;
  text-transform: uppercase;
}

.lmf-event-card__action .lmf-ticket__btn {
  display: inline-flex;
  width: 100%;
  min-height: 43px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 11px;
  color: #111;
  background: var(--event-accent);
  border: 1px solid var(--event-accent);
  border-radius: 2px;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transition: color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.lmf-event-card__action .lmf-ticket__btn:active {
  transform: translateY(1px);
}

.lmf-event-card__action .lmf-ticket__btn:focus-visible {
  outline: 2px solid var(--event-accent);
  outline-offset: 4px;
}

@media (hover: hover) {
  .lmf-event-card__action .lmf-ticket__btn:hover {
    color: var(--event-accent);
    background: transparent;
  }
}

.lmf-event-card__action .lmf-ticket__soldout {
  display: flex;
  min-height: 43px;
  align-items: center;
  justify-content: center;
  padding: 9px 10px;
  color: rgba(241, 238, 232, 0.68);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.24);
  font-family: var(--font-display);
  font-size: 1.08rem;
  line-height: 1;
  letter-spacing: 0.12em;
  text-align: center;
}

.lmf-event-card__serial {
  position: absolute;
  right: 9px;
  bottom: 7px;
  color: rgba(255, 255, 255, 0.13);
  font-family: var(--font-body);
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.16em;
  pointer-events: none;
}

.lmf-event-card.is-today {
  border-color: color-mix(in srgb, var(--event-accent) 65%, rgba(255, 255, 255, 0.14));
}

.lmf-event-card.is-soldout {
  filter: saturate(0.45);
}

.lmf-event-card.is-soldout .lmf-event-card__city {
  color: rgba(241, 238, 232, 0.65);
}

/* Month dividers: solid editorial labels rather than outlined letters. */
.lmf-events__month {
  margin-top: 11px;
}

.lmf-events__month > .lmf-month__head {
  display: flex !important;
  align-items: center !important;
  gap: 18px !important;
  padding: 30px 0 13px !important;
}

.lmf-events__month > .lmf-month__head > .lmf-month__name {
  display: inline-block !important;
  flex: 0 0 auto !important;
  width: max-content !important;
  max-width: 100% !important;
  color: #f1eee8 !important;
  -webkit-text-fill-color: #f1eee8 !important;
  -webkit-text-stroke: 0 !important;
  font-family: var(--font-display) !important;
  font-size: clamp(2.2rem, 5vw, 3.7rem) !important;
  font-weight: 400 !important;
  line-height: 0.9 !important;
  letter-spacing: -0.025em !important;
  text-transform: uppercase !important;
  white-space: nowrap !important;
}

.lmf-events__month > .lmf-month__head > .lmf-month__rule {
  flex: 1 1 auto !important;
  min-width: 18px !important;
  height: 1px !important;
  margin: 0 !important;
  background: linear-gradient(90deg, var(--lmf-red, #ff1744), rgba(255, 255, 255, 0.14) 45%, transparent 100%) !important;
}

.lmf-events__row {
  padding: 0 !important;
}

.lmf-events__row + .lmf-events__row {
  margin-top: 12px;
}

/* Main section heading / tour identity. */
#events.lmf-events {
  width: 100%;
  max-width: 1180px !important;
  box-sizing: border-box;
}

.lmf-events__heading {
  margin-bottom: clamp(28px, 4vw, 48px) !important;
  text-align: left;
}

.lmf-events__eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  color: rgba(241, 238, 232, 0.48);
  font-family: var(--font-body);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.lmf-events__eyebrow::before {
  width: 27px;
  height: 1px;
  content: "";
  background: #ff1744;
}

.lmf-events__heading-main {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 22px;
}

.lmf-events__heading h2 {
  margin: 0;
  color: #f1eee8;
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 8vw, 7.2rem);
  font-weight: 400;
  line-height: 0.82;
  letter-spacing: -0.045em;
  text-align: left;
  text-transform: uppercase;
}

.lmf-events__sound {
  flex: 0 0 auto;
  margin: 0 0 5px;
  color: rgba(241, 238, 232, 0.46);
  font-family: var(--font-body);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1.7;
  text-align: right;
  text-transform: uppercase;
}

.lmf-events__sound span {
  color: #ff1744;
}

/* Tablet */
@media (max-width: 900px) and (min-width: 641px) {
  .lmf-event-card {
    grid-template-columns: 105px minmax(0, 1fr) 158px;
  }

  .lmf-event-card__content {
    padding: 19px 20px 17px;
  }

  .lmf-event-card__city {
    font-size: clamp(2.8rem, 5.4vw, 4.4rem);
  }

  .lmf-event-card__action {
    padding: 16px 13px;
  }
}

/* Mobile: date first, city second, full-width ticket action last. */
@media (max-width: 640px) {
  .lmf-events__heading-main {
    display: block;
  }

  .lmf-events__heading h2 {
    font-size: clamp(3.35rem, 14vw, 5.2rem);
    line-height: 0.86;
  }

  .lmf-events__sound {
    margin-top: 15px;
    text-align: left;
    font-size: 8px;
  }

  .lmf-events__month > .lmf-month__head {
    gap: 12px !important;
    padding: 25px 0 11px !important;
  }

  .lmf-events__month > .lmf-month__head > .lmf-month__name {
    font-size: clamp(2rem, 9vw, 3rem) !important;
  }

  .lmf-event-card {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    margin: 12px 0;
  }

  .lmf-event-card__date {
    display: flex;
    min-height: 0;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 9px;
    padding: 11px 15px 10px 18px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    text-align: left;
  }

  .lmf-event-card__date-kicker {
    margin-right: auto;
    font-size: 7px;
    letter-spacing: 0.14em;
  }

  .lmf-event-card__date strong {
    order: 2;
    margin: 0;
    font-size: 2.25rem;
    line-height: 0.9;
  }

  .lmf-event-card__date-caption {
    order: 3;
    margin: 0;
    font-size: 8px;
  }

  .lmf-event-card__date-year {
    display: none;
  }

  .lmf-event-card__content {
    gap: 8px;
    padding: 19px 16px 16px 18px;
  }

  .lmf-event-card__eyebrow {
    gap: 6px;
    font-size: 8px;
    letter-spacing: 0.13em;
  }

  .lmf-event-card__city {
    font-size: clamp(2.15rem, 10.5vw, 3.7rem);
    line-height: 0.98;
    letter-spacing: -0.045em;
  }

  .lmf-event-card__details {
    gap: 7px 14px;
    font-size: 9px;
  }

  .lmf-event-card__footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    margin-top: 4px;
  }

  .lmf-event-card__genres {
    font-size: 7px;
    letter-spacing: 0.14em;
  }

  .lmf-event-card__action {
    gap: 8px;
    padding: 12px 16px 15px 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    border-left: 0;
  }

  .lmf-event-card__action-kicker {
    text-align: left;
    font-size: 7px;
  }

  .lmf-event-card__action .lmf-ticket__btn,
  .lmf-event-card__action .lmf-ticket__soldout {
    width: 100%;
    min-height: 45px;
    font-size: 1.12rem;
  }

  .lmf-event-card__serial {
    display: none;
  }
}

@media (max-width: 360px) {
  .lmf-event-card__content {
    padding-right: 13px;
    padding-left: 15px;
  }

  .lmf-event-card__city {
    font-size: clamp(1.95rem, 9.8vw, 2.8rem);
    letter-spacing: -0.05em;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lmf-event-card,
  .lmf-event-card__action .lmf-ticket__btn {
    transition: none !important;
  }
}
