/* ── Club card — shared component across all views ── */

.club-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.88), transparent 28%),
    linear-gradient(180deg, #fffdf8 0%, #faf4ea 100%);
  border: 1px solid rgba(143, 115, 75, 0.18);
  border-radius: 18px;
  box-shadow:
    0 18px 32px rgba(61, 42, 17, 0.08),
    0 3px 10px rgba(61, 42, 17, 0.05);
  padding: 18px 18px 16px;
  margin-bottom: 4px;
}

.club-card.night-edition {
  background:
    radial-gradient(circle at top right, rgba(164, 198, 255, 0.22), transparent 34%),
    linear-gradient(180deg, var(--night-sky) 0%, var(--night-sky-deep) 100%);
  border-color: var(--night-line);
  color: var(--night-ink);
}

.flagship-card {
  background: linear-gradient(135deg, #fffbef 0%, #fdf3cc 100%);
  border-color: #e2c96a;
  box-shadow: 0 0 0 2px rgba(226, 193, 71, 0.2);
}

.inactive-card {
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.6), transparent 28%),
    linear-gradient(180deg, #f1f1ef 0%, #e4e1db 100%);
  border-color: rgba(109, 104, 95, 0.22);
  box-shadow:
    0 10px 18px rgba(67, 61, 53, 0.06),
    0 2px 6px rgba(67, 61, 53, 0.05);
  color: #5a5650;
}

.inactive-card::before {
  background: rgba(208, 205, 198, 0.78);
  border-color: rgba(120, 113, 103, 0.16);
}

.club-card::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 26px;
  width: 68px;
  height: 18px;
  border-radius: 5px;
  background: rgba(248, 221, 171, 0.72);
  border: 1px solid rgba(181, 133, 60, 0.16);
  box-shadow: 0 2px 5px rgba(107, 75, 25, 0.08);
  transform: rotate(-4deg);
  pointer-events: none;
}

.club-card.night-edition::before {
  background: rgba(242, 222, 154, 0.14);
  border-color: rgba(242, 222, 154, 0.22);
}

/* City name — primary headline */

.card-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 8px;
}

.title-badges {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
}

.city-name {
  display: block;
  font-size: clamp(20px, 2.1vw, 28px);
  font-weight: 600;
  line-height: 1.1;
  color: var(--ink);
  text-decoration: none;
}

.city-name:where(a) {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.club-card.night-edition .city-name {
  color: var(--night-ink);
}

.city-name.original-bc {
  color: #0b5f3b;
}

.city-name.original-bc::after {
  content: "  The Original BC";
  font-size: 0.4em;
  font-weight: 500;
  color: #0b5f3b;
  vertical-align: middle;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.card-timetable {
  position: relative;
  display: grid;
  gap: 2px;
  align-self: flex-start;
  min-width: min(100%, 146px);
  max-width: min(100%, 210px);
  padding: 7px 11px 6px;
  border-radius: 12px;
  border: 1px solid rgba(121, 91, 47, 0.16);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(249, 241, 231, 0.96) 100%);
  box-shadow: 0 8px 18px rgba(74, 54, 24, 0.07);
}

.card-timetable::before {
  content: "";
  position: absolute;
  top: -6px;
  right: 16px;
  width: 34px;
  height: 11px;
  border-radius: 4px;
  background: rgba(248, 221, 171, 0.8);
  border: 1px solid rgba(181, 133, 60, 0.16);
  transform: rotate(5deg);
}

.card-timetable-day {
  font-size: 8px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(96, 71, 34, 0.72);
}

.card-timetable-time {
  font-size: clamp(13px, 1.1vw, 15px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: #20160d;
}

.card-timetable-detail {
  font-size: 10px;
  line-height: 1.3;
  color: rgba(77, 56, 31, 0.8);
}

.club-card.night-edition .card-timetable {
  border-color: rgba(176, 199, 240, 0.2);
  background:
    linear-gradient(180deg, rgba(12, 24, 44, 0.9) 0%, rgba(10, 19, 34, 0.96) 100%);
  box-shadow: 0 14px 28px rgba(2, 7, 15, 0.24);
}

.club-card.night-edition .card-timetable::before {
  background: rgba(242, 222, 154, 0.2);
  border-color: rgba(242, 222, 154, 0.16);
}

.club-card.night-edition .card-timetable-day {
  color: rgba(242, 222, 154, 0.82);
}

.club-card.night-edition .card-timetable-time {
  color: var(--night-ink);
}

.club-card.night-edition .card-timetable-detail {
  color: rgba(220, 228, 243, 0.82);
}

/* Subline — frequency, venue, badges */

.card-subline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 3px 6px;
  font-size: 13px;
  color: #4a4a4a;
  line-height: 1.4;
}

.card-subline-main {
  display: inline-flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 3px 6px;
  min-width: 0;
  white-space: normal;
}

.subline-badges {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
}

.card-subline .subline-sep {
  display: inline-flex;
  align-items: center;
  color: #aaa;
  user-select: none;
}

.club-card.night-edition .card-subline {
  color: #dce4f3;
}

.club-card.night-edition .card-subline .subline-sep {
  color: #7a8caa;
}

.badge {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 1px 6px;
  border-radius: 999px;
  border: 1px solid;
  line-height: 1.25;
}

.badge-tbd {
  color: #5a5a5a;
  border-color: #b8b8b8;
  background: transparent;
}

.badge-night {
  background: #ffb347;
  border-color: #d97a13;
  color: #2c1400;
}

.badge-featured {
  background: #f5ecd0;
  border-color: #c7b06a;
  color: #5a4a18;
}

.badge-new {
  background: #0b7144;
  border-color: #0b7144;
  color: #fff;
}

.badge-verified {
  position: relative;
  justify-content: center;
  flex: 0 0 auto;
  min-width: 22px;
  width: 22px;
  height: 22px;
  padding: 0;
  margin-right: 1px;
  border-width: 2px;
  border-radius: 999px;
  background: linear-gradient(180deg, #fff3d8 0%, #f8d89d 100%);
  border-color: #d08a2f;
  color: #8a4711;
  line-height: 1;
  letter-spacing: 0;
  box-shadow:
    0 6px 14px rgba(165, 104, 25, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  cursor: help;
}

.badge-verified-mark {
  width: 18px;
  height: 18px;
  display: block;
  object-fit: contain;
  image-rendering: -webkit-optimize-contrast;
  transform: none;
  filter: sepia(1) saturate(4.2) hue-rotate(-12deg) brightness(0.82) contrast(1.15);
}

.badge-verified::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%) translateY(4px);
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(34, 23, 12, 0.94);
  color: #fff8ef;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
  box-shadow: 0 10px 20px rgba(40, 26, 11, 0.18);
  transition: opacity 120ms ease, transform 120ms ease;
  z-index: 8;
}

.badge-verified:hover::after,
.badge-verified:focus-visible::after,
.badge-verified:active::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.badge-verified:focus-visible {
  outline: 2px solid rgba(208, 138, 47, 0.45);
  outline-offset: 2px;
}

.club-card.night-edition .badge-verified::after {
  background: rgba(255, 244, 220, 0.96);
  color: #3b2208;
}

.badge-verified--seal {
  background: radial-gradient(circle at 30% 28%, #fffaf0 0%, #fff1d3 20%, #f4ce8a 100%);
  border-color: #d08a2f;
  color: #8a4711;
  border-radius: 999px;
  transform: rotate(-6deg);
}

.badge-verified--stamp {
  border-radius: 999px;
  background: linear-gradient(180deg, #fff8ec 0%, #f7ddb0 100%);
  border-color: #d99a44;
  color: #955214;
  transform: rotate(5deg);
}

.badge-verified--spark {
  background: linear-gradient(180deg, #fff9ee 0%, #f6e2b6 100%);
  border-color: #daa04d;
  color: #955214;
  border-radius: 999px;
  transform: rotate(-3deg);
  box-shadow:
    0 6px 14px rgba(165, 104, 25, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    inset 0 0 0 1px rgba(255, 245, 224, 0.38);
}

.club-card.night-edition .badge-verified--seal {
  background: linear-gradient(180deg, #ffd792 0%, #efab43 100%);
  border-color: #ffcf7d;
  color: #5e2d05;
  box-shadow:
    0 8px 18px rgba(255, 186, 82, 0.28),
    inset 0 1px 0 rgba(255, 248, 229, 0.72);
}

.club-card.night-edition .badge-verified--stamp {
  background: linear-gradient(180deg, #ffdca0 0%, #f2b24f 100%);
  border-color: #ffd18c;
  color: #5e2d05;
  box-shadow:
    0 8px 18px rgba(255, 186, 82, 0.28),
    inset 0 1px 0 rgba(255, 248, 229, 0.72);
}

.club-card.night-edition .badge-verified--spark {
  background: linear-gradient(180deg, #ffe2aa 0%, #f4bb5d 100%);
  border-color: #ffd693;
  color: #5e2d05;
  box-shadow:
    0 8px 18px rgba(255, 186, 82, 0.28),
    inset 0 1px 0 rgba(255, 248, 229, 0.72);
}

.club-card.night-edition .badge-verified-mark {
  filter: sepia(1) saturate(4.5) hue-rotate(-12deg) brightness(0.42) contrast(1.28);
}

.badge-verified--blam {
  animation: verified-badge-blam 760ms cubic-bezier(0.2, 0.9, 0.25, 1);
}

.badge-verified--settled {
  transform: rotate(-18deg);
}

@keyframes verified-badge-blam {
  0% {
    transform: scale(1) rotate(0deg);
    box-shadow:
      0 6px 14px rgba(165, 104, 25, 0.18),
      inset 0 1px 0 rgba(255, 255, 255, 0.8);
  }
  22% {
    transform: scale(1.3) rotate(18deg);
    box-shadow:
      0 12px 28px rgba(255, 140, 26, 0.38),
      0 0 0 8px rgba(255, 206, 132, 0.24),
      inset 0 1px 0 rgba(255, 255, 255, 0.94);
  }
  48% {
    transform: scale(1.08) rotate(208deg);
    box-shadow:
      0 14px 30px rgba(255, 140, 26, 0.34),
      0 0 0 10px rgba(255, 206, 132, 0.18),
      inset 0 1px 0 rgba(255, 255, 255, 0.92);
  }
  70% {
    transform: scale(0.96) rotate(166deg);
  }
  100% {
    transform: scale(1) rotate(-18deg);
  }
}

.badge-popup {
  background: #f2de9a;
  border-color: #d3b24d;
  color: #111;
}

.badge-location {
  background: #ff5c00;
  border-color: #cc4900;
  color: #ffffff;
  font-weight: 700;
}

.badge-inactive-sticker {
  margin-right: 2px;
  background: #6c6a65;
  border-color: #5b5853;
  color: #ffffff;
  transform: rotate(-5deg);
  box-shadow: 0 4px 10px rgba(61, 57, 52, 0.16);
}

.club-card.night-edition .badge-night {
  background: rgba(255, 179, 71, 0.18);
  border-color: rgba(255, 179, 71, 0.58);
  color: #ffc86e;
}

.inactive-card .city-name,
.inactive-card .card-location,
.inactive-card .card-host,
.inactive-card .card-confirmation-note,
.inactive-card .card-timetable-day,
.inactive-card .card-timetable-detail {
  color: inherit;
}

.inactive-card .card-timetable {
  background: linear-gradient(180deg, rgba(247, 247, 245, 0.98) 0%, rgba(232, 229, 223, 0.98) 100%);
  border-color: rgba(109, 104, 95, 0.18);
  box-shadow: 0 8px 16px rgba(67, 61, 53, 0.06);
}

.inactive-card .card-timetable::before {
  background: rgba(208, 205, 198, 0.88);
  border-color: rgba(120, 113, 103, 0.14);
}

/* Links inside night cards */

.club-card.night-edition a {
  color: #f2de9a;
}

.host-note-body {
  margin: 8px 0 0;
  padding: 10px 12px;
  border-left: 4px solid #ff5c00;
  background: rgba(255, 247, 239, 0.92);
  color: #5f4635;
  font-size: 12px;
  font-style: italic;
  line-height: 1.5;
  border-radius: 10px;
}

.host-note-body strong {
  font-style: normal;
  font-weight: 700;
  color: #9b3e04;
}

.club-card.night-edition .host-note-body {
  background: rgba(33, 24, 14, 0.82);
  border-left-color: #f2de9a;
  color: #e8edf8;
}

.club-card.night-edition .host-note-body strong {
  color: #f2de9a;
}

/* Event time — inline in subline */

.card-time {
  font-weight: 600;
}

.club-card.night-edition .card-time {
  color: #f2de9a;
}

.card-location {
  font-size: 16px;
  line-height: 1.4;
  color: #38322b;
}

.club-card.night-edition .card-location {
  color: #e8edf8;
}

.card-flyer-callout {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  width: auto;
  border: 0;
  padding: 0;
  margin: 2px 0 4px;
  background: transparent;
  text-align: left;
  cursor: pointer;
  transform: rotate(-2.5deg);
}

.card-flyer-callout:hover,
.card-flyer-callout:focus-visible {
  transform: translateY(-1px) rotate(-3.5deg);
}

.card-flyer-copy {
  min-width: 0;
  display: inline-flex;
}

.card-flyer-title {
  font-family: "Marker Felt", "Bradley Hand", "Comic Sans MS", cursive;
  font-size: 24px;
  line-height: 1;
  color: #d53a1f;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.club-card.night-edition .card-flyer-callout {
  background: transparent;
}

.club-card.night-edition .card-flyer-title {
  color: #f2de9a;
}

/* Host line */

.card-host {
  font-size: 12px;
  color: #555;
  letter-spacing: 0.01em;
  line-height: 1.4;
}

.club-card.night-edition .card-host {
  color: #dce4f3;
}

.card-confirmation-note {
  margin: -2px 0 0;
  font-size: 12px;
  line-height: 1.45;
  color: #6b5737;
  font-style: italic;
}

.club-card.night-edition .card-confirmation-note {
  color: rgba(242, 222, 154, 0.88);
}

.host-instagram-link {
  color: inherit;
  text-decoration: underline;
}

.card-update {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  margin-left: 0;
}

.card-update-link {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(17, 17, 17, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: rgba(17, 17, 17, 0.72);
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  cursor: pointer;
  text-align: center;
  white-space: nowrap;
}

.card-update-link:hover,
.card-update-link:focus-visible {
  border-color: #c85a11;
  background: #fff3e8;
  color: #c85a11;
  box-shadow: 0 0 0 3px rgba(200, 90, 17, 0.14);
}

/* Utility row — maps, socials, contact */

.card-utility {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
}

.card-utility a,
.card-utility button {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  font-size: 11px;
  font-weight: 500;
  text-decoration: none;
  padding: 4px 10px;
  border: 1px solid #bbb;
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font-family: inherit;
  line-height: 1.4;
}

.social-icon-link,
.social-menu-trigger {
  justify-content: center;
}

.social-icon-link {
  min-width: 40px;
  padding: 4px 9px;
}

.social-glyph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.social-glyph--linkedin {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.social-glyph--instagram svg {
  width: 15px;
  height: 15px;
  display: block;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
}

.social-glyph--maps svg {
  width: 16px;
  height: 16px;
  display: block;
  stroke: currentColor;
  stroke-width: 1.7;
  fill: none;
}

.card-utility details {
  position: relative;
}

.social-menu-trigger {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  font-size: 11px;
  font-weight: 500;
  text-decoration: none;
  padding: 4px 9px;
  border: 1px solid #bbb;
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font-family: inherit;
  line-height: 1.4;
  list-style: none;
}

.social-count {
  font-size: 10px;
  font-weight: 600;
  line-height: 1;
}

.social-menu-trigger::-webkit-details-marker {
  display: none;
}

.social-menu[open] .social-menu-trigger,
.social-menu-trigger:hover {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.social-menu-panel {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 10;
  min-width: 160px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px;
  border: 1px solid #d5d5d5;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.social-menu-link {
  display: block;
  font-size: 11px;
  font-weight: 500;
  padding: 6px 8px;
  border-radius: 8px;
  color: var(--ink);
  text-decoration: none;
}

.social-menu-link:hover {
  background: #f2f2f2;
}

.card-utility a:hover,
.card-utility button:hover {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.club-card.night-edition .card-utility a,
.club-card.night-edition .card-utility button {
  background: rgba(7, 16, 31, 0.7);
  border-color: var(--night-line);
  color: var(--night-ink);
}

.club-card.night-edition .social-menu-trigger {
  background: rgba(7, 16, 31, 0.7);
  border-color: var(--night-line);
  color: var(--night-ink);
}

.club-card.night-edition .social-menu-panel {
  background: rgba(7, 16, 31, 0.96);
  border-color: var(--night-line);
}

.club-card.night-edition .social-menu-link {
  color: var(--night-ink);
}

.club-card.night-edition .social-menu-link:hover {
  background: rgba(255, 255, 255, 0.08);
}

.club-card.night-edition .card-utility a:hover,
.club-card.night-edition .card-utility button:hover {
  background: var(--night-line);
  color: var(--night-ink);
}

.club-card.night-edition .card-update-link {
  border-color: rgba(242, 222, 154, 0.28);
  background: rgba(7, 16, 31, 0.78);
  color: rgba(245, 240, 225, 0.78);
}

.club-card.night-edition .card-update-link:hover,
.club-card.night-edition .card-update-link:focus-visible {
  border-color: #ff9a57;
  background: rgba(255, 154, 87, 0.14);
  color: #ff9a57;
  box-shadow: 0 0 0 3px rgba(255, 154, 87, 0.16);
}

/* Community link button */

.community-link-btn {
  background: #25d366 !important;
  border-color: #1da851 !important;
  color: #fff !important;
  font-weight: 600 !important;
}

.community-link-btn:hover {
  background: #1da851 !important;
  border-color: #128c3e !important;
  color: #fff !important;
}

/* Responsive */

@media (max-width: 960px) {
  .club-card {
    padding: 16px 16px 14px;
  }

  .card-title-row {
    gap: 6px 8px;
  }

  .badge {
    font-size: 10px;
  }

  .badge-verified {
    min-width: 24px;
    width: 24px;
    height: 24px;
  }

  .badge-verified-mark {
    width: 19px;
    height: 19px;
  }

  .card-subline-main {
    white-space: normal;
    flex-wrap: wrap;
  }

  .city-name {
    font-size: clamp(22px, 6vw, 30px);
  }

  .card-timetable,
  .card-flyer-callout {
    width: 100%;
    min-width: 0;
  }
}
