/* R19/R20/R20b: PAST events on Athens club pages: ONE line per event (date, title, DJ links; ellipsis if long), centred, in a scrollable box that shows 5 rows at a time (the rest scrolls).
   DJ names link to /artists/<slug>/ when such a page exists. Future events stay full cards. */
#past-events .club-events{display:grid;grid-auto-rows:52px;gap:8px;margin:18px 0;max-height:292px;overflow-y:auto;padding-right:6px;overscroll-behavior:auto;scrollbar-width:thin;text-align:center}
#past-events .club-ev{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:14px;align-items:center;box-sizing:border-box;height:52px;padding:6px 12px;border:1px solid rgba(255,255,255,.14);border-radius:12px;background:rgba(255,255,255,.04);overflow:hidden}
#past-events .club-ev time{display:flex;align-items:baseline;gap:5px;white-space:nowrap;line-height:1.1;opacity:.8}
#past-events .club-ev time b{font-size:16px}
#past-events .club-ev time span{font-size:11px;letter-spacing:.08em}
#past-events .club-ev .club-ev-line{min-width:0;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:center;line-height:1.3}
#past-events .club-ev h3{display:inline;margin:0;font-size:15px;font-weight:600;line-height:1.3}
#past-events .club-ev .club-ev-lineup{display:inline;margin:0;font-size:13px;color:#aeb2be}
#past-events .club-ev .club-ev-lineup:before{content:" \2014  ";color:#aeb2be}
#past-events .club-ev .club-ev-lineup a{color:#d9dbe3;text-decoration:none}
#past-events .club-ev .club-ev-lineup a:hover,#past-events .club-ev .club-ev-lineup a:focus-visible{color:#fff;text-decoration:none}
#past-events .club-ev .acts{display:flex;gap:8px}
#past-events .club-ev .acts a{display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:0 14px;border-radius:9px;border:1px solid rgba(255,255,255,.3);color:inherit;text-decoration:none;font-weight:600;font-size:13px;white-space:nowrap}
#past-events .club-ev .acts a:hover,#past-events .club-ev .acts a:focus-visible{border-color:rgba(255,255,255,.7)}
@media(max-width:640px){#past-events .club-ev{gap:8px;padding:6px 10px}#past-events .club-ev time span{font-size:10px;letter-spacing:.04em}#past-events .club-ev h3{font-size:13px}#past-events .club-ev .club-ev-lineup{font-size:12px}#past-events .club-ev .acts a{padding:0 10px;font-size:12px}}
/* upcoming cards: Book a Table sits first, three buttons share the row */
#events .event-actions{flex-wrap:wrap}
#events .event-actions .event-link,#events .event-actions .event-ticket{flex:1 1 30%}

/* R21: shared by every city. Upcoming = poster cards (.event-card), previous = one line (.club-ev-line). */
#events .event-lineup a{color:inherit;text-decoration:none}#events .event-lineup a:hover,#events .event-lineup a:focus-visible{text-decoration:underline}

/* KX-V80-P3 (round 5, decision P3 approved): on club pages the "Explore nearby stays" button is NEUTRAL Liquid Glass
   (it was the red primary). Scoped by the page's canonical address to the Dubai, Athens, Berlin and Tulum club pages;
   The glass sits on the light hotel card, so its base is the dark glass
   (rgba 16,17,22,.84) with white text. Also /pattern/club/. Ibiza and Mykonos club pages get the same rule from their own agents (snippet in the v80 README). */
html:has(link[rel="canonical"][href*="/dubai/clubs/"]) .visit-action.button-primary,
html:has(link[rel="canonical"][href*="/athens/clubs/"]) .visit-action.button-primary,
html:has(link[rel="canonical"][href*="/berlin/clubs/"]) .visit-action.button-primary,
html:has(link[rel="canonical"][href*="/tulum/clubs/"]) .visit-action.button-primary,
html:has(link[rel="canonical"][href$="/pattern/club/"]) .visit-action.button-primary {
  border-color: rgba(255, 255, 255, 0.2) !important;
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 255, 255, 0.12), transparent 42%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(237, 28, 36, 0.055) 50%, rgba(255, 255, 255, 0.04)),
    rgba(16, 17, 22, 0.84) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), inset 0 -1px 0 rgba(255, 255, 255, 0.06), 0 7px 16px rgba(0, 0, 0, 0.18), 0 0 0 1px rgba(255, 255, 255, 0.05) !important;
  -webkit-backdrop-filter: blur(14px) saturate(128%) !important; /* KX-V83 */
  backdrop-filter: blur(14px) saturate(128%) !important; /* KX-V83 */
  color: #fff8ef !important;
}
html:has(link[rel="canonical"][href*="/dubai/clubs/"]) .visit-action.button-primary:hover,
html:has(link[rel="canonical"][href*="/athens/clubs/"]) .visit-action.button-primary:hover,
html:has(link[rel="canonical"][href*="/berlin/clubs/"]) .visit-action.button-primary:hover,
html:has(link[rel="canonical"][href*="/tulum/clubs/"]) .visit-action.button-primary:hover,
html:has(link[rel="canonical"][href$="/pattern/club/"]) .visit-action.button-primary:hover {
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.52) !important;
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 255, 255, 0.18), transparent 42%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(237, 28, 36, 0.23) 58%, rgba(255, 255, 255, 0.08)),
    rgba(40, 18, 22, 0.88) !important;
}

/* KX-V80-CIRCLES (round 5): a club with SIX hero circles (Ushuaia Dubai Harbour) lost the last circle off-screen on
   phones (6 x 60 px + gaps = 420 px in a 350 px row). With six circles, phones get 48 px circles and 9 px gaps
   (one row, tap target still 48 px). Five or fewer circles are unchanged. */
@media (max-width: 440px) {
  .contact-circles:has(> .contact-circle:nth-child(6)) { gap: 9px; flex-wrap: nowrap; }
  .contact-circles:has(> .contact-circle:nth-child(6)) > .contact-circle { flex-basis: 48px; width: 48px; height: 48px; }
  .contact-circles:has(> .contact-circle:nth-child(6)) > .contact-circle svg { width: 22px; height: 22px; }
}

/* KX-V84-P3-RED (round 7, Niko 13 Nov: "Explore nearby stays button to be the classic red (same colour as the box next to it)
   on all pages"). SUPERSEDES KX-V80-P3 (neutral dark glass) and its KX-V83 blur fix: on every club page (Dubai, Athens, Berlin,
   Tulum, Ibiza, Mykonos) and /pattern/club/ + /pattern/club-mykonos/ the button is the classic solid red #e23c3e (the
   .button-primary red, = the red Directions box beside it) with white text, no glass. Extra "body" + doubled class = wins over the
   P3 rules whatever the stylesheet order. */
html:has(link[rel="canonical"][href*="/clubs/"]) body .visit-action.button-primary.visit-action,
html:has(link[rel="canonical"][href*="/pattern/club"]) body .visit-action.button-primary.visit-action {
  border-color: transparent !important;
  background: #e23c3e !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  color: #fff !important;
}
html:has(link[rel="canonical"][href*="/clubs/"]) body .visit-action.button-primary.visit-action:hover,
html:has(link[rel="canonical"][href*="/clubs/"]) body .visit-action.button-primary.visit-action:focus-visible,
html:has(link[rel="canonical"][href*="/pattern/club"]) body .visit-action.button-primary.visit-action:hover,
html:has(link[rel="canonical"][href*="/pattern/club"]) body .visit-action.button-primary.visit-action:focus-visible {
  background: #e23c3e !important; /* classic: hover keeps the same red */
  color: #fff !important;
}

/* KX-V86-STAY-GLASS (round 9, Niko Review 33 note 2: "it is red but not with the same liquid glass effect before hovering").
   SUPERSEDES the solid fill of KX-V84-P3-RED: "Explore nearby stays" = classic red in the same Liquid Glass treatment as the
   red Directions box/button beside it, in the RESTING state: Directions-button glass layers (radial highlight, 135deg white/red
   sheen, blur(14px) saturate(1.28), white hairline border, inset highlight + soft drop shadow) over the Directions box red
   gradient (140deg #e23c3e -> #731012). Hover = brighter border + stronger sheen + lift, as the Directions button.
   One more class than KX-V84 so it wins whatever the stylesheet order. All club pages (6 cities) + /pattern/club(-mykonos)/. */
html:has(link[rel="canonical"][href*="/clubs/"]) body .visit-action.button-primary.visit-action.visit-action,
html:has(link[rel="canonical"][href*="/pattern/club"]) body .visit-action.button-primary.visit-action.visit-action {
  border: 1px solid rgba(255, 255, 255, .2) !important;
  background-color: rgba(0, 0, 0, 0) !important;
  background-image: radial-gradient(circle at 16% 12%, rgba(255, 255, 255, .12), rgba(0, 0, 0, 0) 42%),
    linear-gradient(135deg, rgba(255, 255, 255, .08), rgba(237, 28, 36, .055) 50%, rgba(255, 255, 255, .04)),
    linear-gradient(140deg, rgba(226, 60, 62, .96), rgba(115, 16, 18, .95)) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), inset 0 -1px 0 rgba(255, 255, 255, .06),
    0 7px 16px rgba(0, 0, 0, .18), 0 0 0 1px rgba(255, 255, 255, .05) !important;
  -webkit-backdrop-filter: blur(14px) saturate(1.28) !important;
  backdrop-filter: blur(14px) saturate(1.28) !important;
  color: #fff !important;
  transition: transform .18s ease, border-color .18s ease, background-image .18s ease !important;
}
html:has(link[rel="canonical"][href*="/clubs/"]) body .visit-action.button-primary.visit-action.visit-action:hover,
html:has(link[rel="canonical"][href*="/clubs/"]) body .visit-action.button-primary.visit-action.visit-action:focus-visible,
html:has(link[rel="canonical"][href*="/pattern/club"]) body .visit-action.button-primary.visit-action.visit-action:hover,
html:has(link[rel="canonical"][href*="/pattern/club"]) body .visit-action.button-primary.visit-action.visit-action:focus-visible {
  border-color: rgba(255, 255, 255, .38) !important;
  background-color: rgba(0, 0, 0, 0) !important;
  background-image: radial-gradient(circle at 16% 12%, rgba(255, 255, 255, .18), rgba(0, 0, 0, 0) 42%),
    linear-gradient(135deg, rgba(255, 255, 255, .12), rgba(237, 28, 36, .23) 58%, rgba(255, 255, 255, .08)),
    linear-gradient(140deg, rgba(226, 60, 62, .96), rgba(115, 16, 18, .95)) !important;
  transform: translateY(-1px);
  color: #fff !important;
}
html:has(link[rel="canonical"][href*="/clubs/"]) body .visit-action.button-primary.visit-action.visit-action:focus-visible,
html:has(link[rel="canonical"][href*="/pattern/club"]) body .visit-action.button-primary.visit-action.visit-action:focus-visible {
  outline: 3px solid #fff !important; outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  html:has(link[rel="canonical"][href*="/clubs/"]) body .visit-action.button-primary.visit-action.visit-action:hover,
  html:has(link[rel="canonical"][href*="/pattern/club"]) body .visit-action.button-primary.visit-action.visit-action:hover { transform: none; }
}
