/* ==========================================================================
   Play Axis Club — base styles
   1. Design tokens
   2. Reset & base elements
   3. Typography
   4. Layout helpers
   5. Header & navigation
   6. Hero
   7. Sections
   8. Footer
   9. Motion preferences
   ========================================================================== */

/* 1. Design tokens ======================================================== */
:root {
  /* Brand colours (sampled from the PSD) */
  --clr-navy: #0c1c72;
  --clr-navy-dark: #0e132d;
  --clr-navy-ink: #151e4c;
  --clr-navy-deep: #0d1229;
  --clr-blue: #162c9c;
  --clr-blue-dark: #0d1e73;
  --clr-amber: #f4931e;
  --clr-amber-dark: #d97b0c;
  --clr-yellow: #ffc600;
  --clr-yellow-dark: #e5b100;
  --clr-sand: #debb9c;

  /* Neutrals */
  --clr-ink: #21201f;
  --clr-body: #4a4a4a;
  --clr-muted: #676768;
  --clr-muted-soft: #8b8b8b;
  --clr-quiet: #bcbcbc;
  --clr-line: #e6e6ea;
  --clr-surface: #ffffff;
  --clr-surface-2: #f7f7f7;
  --clr-surface-3: #f4f4f4;
  --clr-cream: #fdf9f9;
  --clr-black: #000000;

  /* Upcoming-sport tints */
  --tint-pickleball: #ebf8f7;
  --tint-tennis: #eef8eb;
  --tint-hockey: #f8f7eb;
  --tint-kabaddi: #eaf0f4;

  /* Typography */
  --font-sans: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-display: "Poppins", "Nunito", system-ui, -apple-system, Arial, sans-serif;

  --fs-h1: clamp(2.125rem, 1.1rem + 3.5vw, 4.5rem);
  --fs-h2: clamp(1.5rem, 0.19rem + 0.98vw, 2.0625rem);
  --fs-h3: clamp(1.25rem, 1.12rem + 0.55vw, 1.625rem);
  --fs-h4: clamp(1.0625rem, 0.98rem + 0.36vw, 1.4375rem);
  --fs-body: clamp(1rem, 0.94rem + 0.28vw, 1.25rem);
  --fs-sm: clamp(0.9rem, -1.09rem + -0.84vw, 1.0625rem);
  --fs-xs: clamp(0.8125rem, 0.79rem + 0.13vw, 0.9375rem);

  --lh-tight: 1.2;
  --lh-snug: 1.4;
  --lh-base: 1.62;

  /* Layout */
  --container-max: 1440px;
  --section-space: clamp(1.5rem, 0rem + 3vw, 4.5rem);
  --grid-gap: clamp(1rem, 0.6rem + 1vw, 1.25rem);

  --radius-xs: 0.375rem;
  --radius-sm: 0.625rem;
  --radius: 1rem;
  --radius-lg: 1.375rem;
  --radius-pill: 999px;

  --shadow-soft: 0 6px 18px rgb(14 19 45 / 7%);
  --shadow-card: 0 12px 30px rgb(14 19 45 / 12%);
  --shadow-panel: 0 20px 55px rgb(14 19 45 / 9%);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur: 0.35s;

  /* Hero slide proportions — widened again on large screens (see responsive.css) */
  --hero-ratio: 3.55;
  --hero-slide-width: 90%;
  --hero-radius: 0.875rem;
}

/* 2. Reset & base ========================================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  margin: 0;
  background-color: var(--clr-surface);
  color: var(--clr-body);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-base);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--dur) var(--ease);
}

button {
  font: inherit;
}

:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 3px solid var(--clr-amber);
  outline-offset: 3px;
  border-radius: var(--radius-xs);
}

.skip-link {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 2000;
  translate: -50% -120%;
  padding: 0.75rem 1.5rem;
  background: var(--clr-navy);
  color: #fff;
  font-weight: 600;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  transition: translate var(--dur) var(--ease);
}

.skip-link:focus-visible {
  translate: -50% 0;
}

/* 3. Typography =========================================================== */
h1,
h2,
h3,
h4 {
  margin: 0 0 0.5em;
  color: var(--clr-navy);
  font-weight: 600;
  line-height: var(--lh-tight);
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); }

p {
  margin: 0 0 1rem;
}

p:last-child {
  margin-bottom: 0;
}

.section-title {
  margin-bottom: 0.8rem;
  color: var(--clr-navy);
  font-size: var(--fs-h2);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.section-title--dark { color: var(--clr-navy-dark); }
.section-title--light { color: #fff; }

/* Heading followed by a dotted rule (Our Sponsors) */
.section-head {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 3rem);
  margin-bottom: clamp(1.5rem, 1rem + 1.6vw, 2.5rem);
}

.section-head .section-title {
  margin-bottom: 0;
  flex: 0 0 auto;
}

.section-head__rule {
  flex: 1 1 auto;
  height: 1px;
  background-image: linear-gradient(to right, #9b9fae 0 6px, transparent 6px 12px);
  background-size: 12px 1px;
  background-repeat: repeat-x;
}

/* 4. Layout helpers ======================================================= */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: clamp(1rem, 0.6rem + 1.2vw, 1.5rem);
}

.section {
  padding-block: var(--section-space);
}

.section--tight {
  padding-block: clamp(0.25rem, -0.2rem + -0.5vw, 2.25rem);
}
.section--about, .section--sponsors{
  padding: 1rem;
}
.rule {
  height: 1px;
  margin: 0 0 clamp(2rem, 1.2rem + 2.4vw, 3.75rem);
  border: 0;
  opacity: 1;
  background-image: linear-gradient(to right, #b6b8c2 0 6px, transparent 6px 12px);
  background-size: 12px 1px;
  background-repeat: repeat-x;
}

/* Scroll-reveal base state (activated by js/main.js) */
[data-reveal] {
  opacity: 0;
  translate: 0 22px;
  transition: opacity 0.7s var(--ease), translate 0.7s var(--ease);
}

[data-reveal].is-visible {
  opacity: 1;
  translate: 0 0;
}

/* 5. Header & navigation ================================================== */
.site-header {
  position: relative;
  z-index: 1040;
  background: var(--clr-surface);
}

.topbar {
  background: var(--clr-surface);
}

.topbar__inner {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 2vw, 2.125rem);
  min-height: 4.5rem;
  padding-block: 0.75rem;
}

.brand {
  flex: 0 0 auto;
  display: inline-flex;
}

.brand img {
  width: clamp(4.75rem, 6vw, 6.5625rem);
  height: auto;
}

.topbar__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: auto;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.875rem;
  height: 2.875rem;
  padding: 0;
  border: 1px solid var(--clr-line);
  border-radius: var(--radius-xs);
  background: var(--clr-surface-2);
  color: var(--clr-navy);
  font-size: 1.6rem;
  line-height: 1;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}

.nav-toggle:hover {
  background: var(--clr-navy);
  color: #fff;
}

/* Primary navigation strip */
.mainnav {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: var(--clr-surface-2);
  transition: box-shadow var(--dur) var(--ease);
}

.mainnav.is-stuck {
  box-shadow: 0 6px 20px rgb(14 19 45 / 10%);
}

.mainnav__body {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 0rem;
  padding: 0;
}

.mainnav__list,
.mainnav__meta {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mainnav__list {
  flex: 1 1 auto;
  flex-wrap: wrap;
  gap: clamp(0.5rem, 1.4vw, 1.6rem);
}

.mainnav__meta {
  flex: 0 0 auto;
  gap: 0.75rem;
}

.mainnav__sep {
  color: var(--clr-navy);
  opacity: 0.55;
}

.mainnav__link {
  display: inline-block;
  padding-block: 0.4rem;
  color: var(--clr-navy);
  font-size: var(--fs-sm);
  font-weight: 400;
  white-space: nowrap;
}

.mainnav__link:hover,
.mainnav__link:focus-visible {
  color: var(--clr-amber);
}

.mainnav__link.is-active {
  color: var(--clr-blue);
  font-weight: 700;
}

/* Off-canvas shell (only active below the lg breakpoint) */
.mainnav__panel .offcanvas-header {
  border-bottom: 1px solid var(--clr-line);
}

.mainnav__panel .offcanvas-title {
  margin: 0;
  color: var(--clr-navy);
  font-size: 1.25rem;
  font-weight: 700;
}

.hero {
  max-width: var(--container-max);  /* NEW — caps hero at 1440px like every other section */
  margin-inline: auto;               /* NEW — centers it instead of hugging the left edge */
  padding-block: clamp(1rem, 0.6rem + 1.2vw, 1.75rem) 0;
  padding-inline: clamp(1rem, 4vw, 3rem); 
  overflow: visible;
}

.hero-slider {
  width: 100%;
  overflow: hidden;
  padding: 0;
}

.hero-slider .swiper-wrapper {
  width: 100%;
  align-items: flex-start;   /* slides stop stretching to the tallest one */
}

.hero-slider .swiper-slide {
  width: 100% !important;
  max-width: 100%;
  height: auto;
  flex-shrink: 0;
}

.hero-slide {
  position: relative;
  width: 100%;
  /* margin-inline: 5%; */
  /* aspect-ratio removed — height now comes from the image itself */
  overflow: visible;
  border-radius: var(--hero-radius);
  background: #0f131c;
  isolation: isolate;
}

.hero-slide__media {
  position: relative;
  display: block;
  width: 100%;
  margin: 0 auto;
  overflow: hidden;
  border-radius: var(--hero-radius);
  background: #0f131c;
}

.hero-slide__media img {
  display: block;
  width: 100%;
  height: auto;              /* natural shape, nothing is cut off */
}


.hero-slide__media--left {
  width: 100%;
}

.hero-slide__media--left img {
  object-position: 60% 50%;
}

/* Diagonal brand panel behind the campaign copy */
.hero-slide__panel {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(135deg, #f9c51b 0%, #f2a016 45%, #e55e0d 100%);
  clip-path: polygon(46.4% 0, 100% 0, 100% 100%, 59.5% 100%);
}

.hero-slide__content {
  position: absolute;
  inset: 0 3% 0 auto;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 44%;
  /* asymmetric padding nudges the lock-up to the optical centre of the panel */
  padding: 2.5% 0 0;
  text-align: center;
  color: #fdf8fe;
}

.hero-slide__kicker,
.hero-slide__title,
.hero-slide__subtitle,
.hero-slide__season,
.hero-slide__tag {
  margin: 0;
  font-family: var(--font-display);
  text-transform: uppercase;
  line-height: 1.05;
}

.hero-slide__kicker {
  font-size: clamp(1.45rem, 0.4rem + 3.5vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.015em;
}

.hero-slide__title {
  color: #0b2964;
  font-size: clamp(1.05rem, 0.3rem + 2.6vw, 3.4rem);
  font-weight: 800;
  letter-spacing: 0.005em;
}

.hero-slide__subtitle {
  margin-top: 0.1em;
  font-size: clamp(0.8rem, 0.26rem + 1.9vw, 2.5rem);
  font-weight: 700;
  letter-spacing: 0.01em;
}

.hero-slide__season {
  margin-top: 0.25em;
  font-size: clamp(0.62rem, 0.2rem + 1.45vw, 1.9rem);
  font-weight: 700;
}

.hero-slide__tag {
  margin-top: 1em;
  color: #0f131c;
  font-size: clamp(0.5rem, 0.18rem + 1.15vw, 1.55rem);
  font-weight: 700;
  letter-spacing: 0.38em;
  text-indent: 0.38em;
}

.hero-slide__text {
  max-width: 31ch;
  margin: 1em 0 0;
  font-family: var(--font-display);
  font-size: clamp(0.5rem, 0.28rem + 0.7vw, 0.95rem);
  font-weight: 500;
  line-height: 1.5;
}

/* Slide 2 — Ekalavya */
.hero-slide--ekalavya {
  background: #0f131c;
}

.hero-slide__content--split {
  inset: 0 0 0 18%;
  width: auto;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: clamp(1rem, 4vw, 4rem);
  padding: 0 clamp(1rem, 4vw, 4.5rem);
  text-align: left;
}

.hero-slide__copy {
  display: flex;
  flex-direction: column;
  gap: 0.15em;
}

.hero-slide__season--lg {
  font-size: clamp(0.85rem, 0.28rem + 2vw, 2.6rem);
  font-weight: 800;
}

.hero-slide__title--light {
  color: #fdf8fe;
  font-size: clamp(1.15rem, 0.3rem + 3.1vw, 3.6rem);
  font-weight: 800;
}

.hero-slide__logo {
  width: clamp(4.5rem, 12vw, 12.5rem);
  height: auto;
  filter: brightness(0) invert(1);
}

.hero__controls {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding-top: clamp(0.75rem, 0.5rem + 1vw, 1.25rem);
}

/* 7. Sections ============================================================= */

/* Our Events — full-bleed dark band with cards spilling past the edge */
.events {
  position: relative;
  margin-top: var(--section-space);
  padding-block: clamp(2rem, 0.1rem + 2.4vw, 5.5rem) 0;
}

.events__backdrop {
  position: absolute;
  inset: 0 0 auto 0;
  height: clamp(17.5rem, 26vw, 25rem);
  background-color: #12172d;
  background-image:
    linear-gradient(180deg, rgb(12 17 41 / 30%) 0%, rgb(14 19 42 / 72%) 100%),
    url("../assets/images/events/events-backdrop.png");
  background-size: cover;
  background-position: center;
}

.events__inner {
  position: relative;
}

.events .section-title {
  margin-bottom: clamp(1.25rem, 0.8rem + 2vw, 3.25rem);
}

.events .event-grid {
  margin-bottom: 0;
  padding-bottom: clamp(1.5rem, 1rem + 2vw, 3rem);
}

/* Media News panel */
.news-panel {
  padding: clamp(1.5rem, 1.1rem + 1.6vw, 2.75rem) clamp(1.25rem, 0.9rem + 1.3vw, 2.25rem);
  background: var(--clr-cream);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-panel);
}

.news-panel .section-title {
  margin-bottom: clamp(1.25rem, 0.9rem + 1.4vw, 2rem);
}

.news-grid {
  margin-bottom: 0;
}

/* About */
.about__text {
  max-width: 84ch;
  margin-bottom: 1.85rem;
  color: var(--clr-body);
  font-size: var(--fs-body);
  line-height: 1.55;
}

.about__img {
  display: block;
  width: 100%;
  max-width: 28.4375rem;
  margin-inline: auto 0;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-soft);
}

/* 8. Footer =============================================================== */
.site-footer {
  position: relative;
  color: var(--clr-quiet);
  font-family: var(--font-display);
}

/* The dark newsletter bar straddles the white page and the black footer */
.site-footer > .container {
  position: relative;
  z-index: 2;
}

.newsletter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(1rem, 2vw, 2.5rem);
  padding: clamp(1.25rem, 0.9rem + 1.4vw, 1.5rem) clamp(1.25rem, 1rem + 1.6vw, 2.5rem);
  background: #1e202c;
  border-radius: var(--radius-sm);
  translate: 0 50%;
}

.newsletter__title {
  flex: 0 0 auto;
  margin: 0;
  color: #fff;
  font-family: var(--font-sans);
  font-size: var(--fs-h3);
  font-weight: 500;
}

.newsletter__form {
  flex: 1 1 420px;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: clamp(0.5rem, 1.2vw, 0.875rem);
}

.newsletter__status {
  flex: 1 0 100%;
  margin: 0;
  color: var(--clr-yellow);
  font-size: var(--fs-xs);
}

.newsletter__status:empty {
  display: none;
}

.footer-main {
  padding-top: calc(clamp(1.25rem, 0.9rem + 1.4vw, 1.5rem) + 5rem);
  padding-bottom: 1.5rem;
  background: var(--clr-black);
}

.footer__logo {
  width: 9rem;
  height: auto;
  margin-bottom: 1.5rem;
}

.footer__text {
  max-width: 38ch;
  margin-bottom: 1.5rem;
  color: var(--clr-muted-soft);
  font-size: var(--fs-sm);
  line-height: 1.55;
}

.footer__heading {
  margin-bottom: 1.5rem;
  color: #fff;
  font-family: var(--font-sans);
  font-size: var(--fs-h3);
  font-weight: 500;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem clamp(2rem, 5vw, 4.25rem);
}

.footer__links ul {
  margin: 0;
  display: grid;
  gap: 0.55rem;
}

.footer__links a,
.footer__address {
  color: var(--clr-muted-soft);
  font-size: var(--fs-sm);
  font-style: normal;
  line-height: 1.5;
}

.footer__links a:hover,
.footer__links a:focus-visible {
  color: #fff;
}

.footer__office {
  margin-bottom: 0.35rem;
  color: var(--clr-quiet);
  font-family: var(--font-sans);
  font-size: var(--fs-sm);
  font-weight: 500;
}

.footer__address {
  margin-bottom: 1.35rem;
}

.footer__address:last-child {
  margin-bottom: 0;
}

.footer-contactbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem clamp(1.5rem, 5vw, 5rem);
  margin-top: clamp(2rem, 1.4rem + 2vw, 3.5rem);
  padding: clamp(0.85rem, 0.7rem + 0.6vw, 1.15rem) clamp(1rem, 0.8rem + 1vw, 1.75rem);
  border: 1px solid #3a3a3a;
  border-radius: var(--radius-sm);
}

.footer-contactbar__item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0;
  color: var(--clr-quiet);
  font-family: var(--font-sans);
  font-size: var(--fs-sm);
  font-weight: 500;
}

.footer-contactbar__item img {
  width: 1.625rem;
  height: auto;
  flex: 0 0 auto;
}

.footer-contactbar__item a:hover,
.footer-contactbar__item a:focus-visible {
  color: #fff;
}

.footer-contactbar__item--end {
  margin-left: auto;
}

.footer-contactbar__item--end strong {
  color: #fff;
  font-weight: 700;
}

.footer-legal {
  padding-top: clamp(1.25rem, 1rem + 1.2vw, 2rem);
  text-align: center;
}

.footer-legal p {
  margin: 0;
  color: var(--clr-quiet);
  font-family: var(--font-sans);
  font-size: var(--fs-sm);
  font-weight: 500;
}

.footer-legal span {
  display: inline-block;
  padding-inline: 0.6rem;
  opacity: 0.6;
}

.footer-legal a:hover,
.footer-legal a:focus-visible {
  color: #fff;
  text-decoration: underline;
}

/* 9. Motion preferences =================================================== */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  [data-reveal] {
    opacity: 1;
    translate: none;
  }
}


.location-map-section__inner {
  position: relative;
}

/* Map: always centered, independent of the legend */
.location-map {
  position: relative;
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
}

.location-map__img {
  display: block;
  width: 100%;
  height: auto;
}

/* Legend — pinned to the left on desktop, stacked above the map on mobile */
.location-legend {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 0 0 1.25rem;
  padding: 0.65rem 0.9rem;
  list-style: none;
  width: fit-content;
  background: rgba(255, 255, 255, 0.92);
  border-radius: var(--radius-sm, 10px);
  box-shadow: 0 4px 14px rgba(12, 28, 114, 0.12);
}

@media (min-width: 992px) {
  .location-legend {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    margin: 0;
    z-index: 3;
  }
}

.location-legend__item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--clr-navy, #0c1c72);
  white-space: nowrap;
}

.location-legend__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex: 0 0 auto;
}

.location-legend__dot--upcoming  { background: #2f80ed; }
.location-legend__dot--running   { background: var(--clr-amber, #f4931e); }
.location-legend__dot--completed { background: #9aa0ac; }

/* Pins — dot only, colored + blinking by status */
.location-pin {
  position: absolute;
  transform: translate(-50%, -50%);
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
  z-index: 2;
}

.location-pin__dot {
  display: block;
  width: 16px;
  height: 16px;
  border-radius: 50%;
}

.location-pin[data-status="upcoming"] .location-pin__dot {
  background: #2f80ed;
  animation: pin-blink-upcoming 1.8s ease-out infinite;
}
.location-pin[data-status="running"] .location-pin__dot {
  background: var(--clr-amber, #f4931e);
  animation: pin-blink-running 1.8s ease-out infinite;
}
.location-pin[data-status="completed"] .location-pin__dot {
  /* background: #9aa0ac;
  animation: none; */

  background:#9aa0ac;
  animation: pin-blink-completed 1.8s ease-out infinite;
}

.location-pin.is-active .location-pin__dot {
  outline: 3px solid #fff;
  outline-offset: 1px;
}

@keyframes pin-blink-upcoming {
  0%   { box-shadow: 0 0 0 0 rgba(47, 128, 237, 0.55); }
  70%  { box-shadow: 0 0 0 14px rgba(47, 128, 237, 0); }
  100% { box-shadow: 0 0 0 0 rgba(47, 128, 237, 0); }
}
@keyframes pin-blink-running {
  0%   { box-shadow: 0 0 0 0 rgba(244, 147, 30, 0.55); }
  70%  { box-shadow: 0 0 0 14px rgba(244, 147, 30, 0); }
  100% { box-shadow: 0 0 0 0 rgba(244, 147, 30, 0); }
}
@keyframes pin-blink-completed {
  0%   { box-shadow: 0 0 0 0 rgba(154, 160, 172, 0.55); }
  70%  { box-shadow: 0 0 0 14px rgba(154, 160, 172, 0); }
  100% { box-shadow: 0 0 0 0 rgba(154, 160, 172, 0); }
}

/* Popover card — anchored beside the clicked pin via inline top/left from JS */
.location-popover {
  position: absolute;
  z-index: 4;
  width: min(290px, 78vw);
  padding: 1.1rem 1.25rem;
  border-radius: var(--radius, 14px);
  background: #fff;
  box-shadow: var(--shadow-panel, 0 20px 55px rgba(14, 19, 45, 0.18));
}

.location-popover[hidden] {
  display: none !important;
}

.location-popover__close {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  border: none;
  background: none;
  font-size: 1rem;
  color: #9aa0ac;
  cursor: pointer;
}

.location-popover__title {
  margin: 0 1.75rem 0.85rem 0;
  font-size: var(--fs-h4, 1.15rem);
  font-weight: 800;
  color: var(--clr-navy, #0c1c72);
}

.location-popover__list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

/* Popover falls back to a centered overlay on small screens */
@media (max-width: 575.98px) {
  .location-popover {
    position: fixed !important;
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -50%);
    width: min(320px, 88vw);
    max-height: 80vh;
    overflow-y: auto;
  }
}

/* Event cards inside the popover */
.location-event-card {
  padding: 0.95rem 1.05rem;
  border-radius: var(--radius-sm, 10px);
  background: var(--clr-surface-2, #f7f7f7);
  border: 1px solid var(--clr-line, #e6e6ea);
}

.location-event-card__status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.28rem 0.7rem;
  margin-bottom: 0.6rem;
  border-radius: var(--radius-pill, 999px);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #fff;
}

.location-event-card__status::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  filter: brightness(1.6);
}

.location-event-card__status--upcoming  { background: #2f80ed; }
.location-event-card__status--running   { background: var(--clr-amber, #f4931e); }
.location-event-card__status--completed { background: #9aa0ac; }

.location-event-card__title {
  margin: 0 0 0.55rem;
  font-family: var(--font-display, inherit);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--clr-navy, #0c1c72);
  line-height: 1.35;
}

.location-event-card__meta {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 0.85rem;
}

.location-event-card__meta-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--clr-body, #4a4a4a);
}

.location-event-card__meta-row i {
  color: var(--clr-amber, #f4931e);
  font-size: 0.85rem;
  flex: 0 0 auto;
}

.location-event-card__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1.05rem;
  border-radius: var(--radius-pill, 999px);
  background: var(--clr-navy, #0c1c72);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  transition: background var(--dur, 0.35s) var(--ease, ease);
}

.location-event-card__btn:hover,
.location-event-card__btn:focus-visible {
  background: var(--clr-amber, #f4931e);
  color: #fff;
}

/* City name tooltip on hover */
.location-pin::after {
  content: attr(data-location);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);

  padding: 5px 10px;
  border-radius: 6px;

  background: #0c1c72;
  color: #fff;

  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;

  text-transform: capitalize;

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transition:
    opacity 0.2s ease,
    transform 0.2s ease;

  z-index: 10;
}

/* Small arrow */
.location-pin::before {
  content: "";
  position: absolute;
  bottom: calc(100% + 3px);
  left: 50%;

  transform: translateX(-50%);

  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid #0c1c72;

  opacity: 0;
  visibility: hidden;

  transition: opacity 0.2s ease;
}

/* Show city name when hovering */
.location-pin:hover::after,
.location-pin:hover::before,
.location-pin:focus-visible::after,
.location-pin:focus-visible::before {
  opacity: 1;
  visibility: visible;
}

.location-pin:hover::after,
.location-pin:focus-visible::after {
  transform: translateX(-50%) translateY(-2px);
}

.btn-outline-light {
  min-height: clamp(3rem, 3.7vw, 4.4375rem);
  padding: 0.7rem 1.9rem;
  background: transparent;
  border: 2px solid #fff;
  color: #fff;
  font-size: var(--fs-sm);
  font-weight: 700;
}

.btn-outline-light:hover,
.btn-outline-light:focus-visible {
  background: #fff;
  color: var(--clr-navy-deep);
}

/* Groups two or more CTAs inside a promo banner without inheriting the
   banner's wide media/text gap. */
.promo__actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
}