/*
Theme Name: Chinatown Gateway
Theme URI: https://chinatowngateway.ca
Author: Chinatown Gateway
Author URI: https://chinatowngateway.ca
Description: Bright, playful WordPress theme for Chinatown Gateway (Calgary) — pink/purple palette, wavy section dividers, Baloo 2 + Nunito type. Ported 1:1 from the chinatown-gateway React build (V21 skin).
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Tested up to: 6.7
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: chinatown-gateway
*/

/* Minimal global reset — mirrors src/index.css from the source app. */
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; padding: 0; }

/* ============================================================
   Chinatown V21 — bright, playful skin. Pink/purple palette,
   rounded pill buttons, wavy section dividers, Baloo 2 display
   type over Nunito body text. Original stylesheet.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@500;600;700;800&family=Nunito:wght@400;600;700;800&family=Noto+Serif+SC:wght@900&display=swap');

.cv21 {
  --pink: #F0325F;
  --pink-dark: #D42350;
  --purple: #8B5CF6;
  --purple-dark: #6D28D9;
  --bg: #F7F5FA;
  --white: #FFFFFF;
  --ink: #2B2233;
  --muted: #6E6478;
  --border: rgba(43,34,51,0.08);

  background: var(--bg);
  color: var(--ink);
  font-family: 'Nunito', sans-serif;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

.cv21 *, .cv21 *::before, .cv21 *::after { box-sizing: border-box; }
.cv21 img { display: block; max-width: 100%; }
.cv21 a { text-decoration: none; }

.cv21-wrap { max-width: 1160px; margin: 0 auto; padding: 0 44px; }

.cv21-wave { display: block; width: 100%; height: 70px; }

/* ---------- NAV ---------- */
.cv21-nav {
  position: sticky;
  top: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 0 44px;
  height: 68px;
  background: var(--white);
  box-shadow: 0 2px 16px rgba(43,34,51,.07);
}

.cv21-logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.cv21-logo__mark {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: var(--pink);
  color: #fff;
  border-radius: 10px;
  font-size: 18px;
}

.cv21-logo__text {
  font-family: 'Baloo 2', sans-serif;
  font-weight: 800;
  font-size: 18px;
  color: var(--ink);
  letter-spacing: .01em;
}
.cv21-logo__text em { font-style: normal; color: var(--pink); }

.cv21-navlinks { display: flex; gap: 30px; margin-left: auto; }
.cv21-navlinks a {
  font-family: 'Baloo 2', sans-serif;
  font-weight: 600;
  font-size: 16px;
  color: var(--ink);
  transition: color .2s;
}
.cv21-navlinks a:hover { color: var(--pink); }

.cv21-navcta {
  font-family: 'Baloo 2', sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: #fff;
  background: var(--pink);
  padding: 10px 24px;
  border-radius: 100px;
  white-space: nowrap;
  transition: background .15s, transform .15s;
  flex-shrink: 0;
}
.cv21-navcta:hover { background: var(--pink-dark); transform: translateY(-1px); }

/* ---------- HERO ---------- */
.cv21-hero {
  position: relative;
  height: calc(100svh - 68px);
  min-height: 520px;
  overflow: hidden;
  background: #100510;
}

.cv21-hero__frame { position: absolute; inset: 0; }
.cv21-hero__frame iframe {
  position: absolute;
  top: 50%; left: 50%;
  width: 177.78vh;
  height: 100%;
  min-width: 100%;
  min-height: 56.25vw;
  transform: translate(-50%, -50%);
  border: 0;
  pointer-events: none;
}

.cv21-hero__scrim {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 50% 50%, rgba(0,0,0,.55) 0%, rgba(0,0,0,.1) 100%),
    linear-gradient(to bottom,
      rgba(0,0,0,.15) 0%,
      transparent 50%,
      rgba(240,50,95,.20) 82%,
      rgba(240,50,95,.40) 100%);
  z-index: 1;
}

.cv21-hero__content {
  position: absolute;
  top: 56%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 90%;
  max-width: 820px;
}

.cv21-welcome {
  font-family: 'Baloo 2', cursive;
  font-weight: 600;
  font-size: clamp(14px, 2.2vw, 26px);
  letter-spacing: .3em;
  text-transform: uppercase;
  color: #fff;
  margin: 0 -0.3em 12px 0;
  text-shadow: 0 2px 16px rgba(0,0,0,.7);
}

.cv21-lockup { display: inline-flex; flex-direction: column; align-items: stretch; margin-bottom: 28px; }

.cv21-zh-row {
  display: flex;
  justify-content: center;
  gap: clamp(6px, 1.4vw, 18px);
  font-family: 'Noto Serif SC', serif;
  font-size: clamp(26px, 4vw, 64px);
  font-weight: 900;
  line-height: 1;
  color: var(--pink);
  text-shadow: 0 0 12px rgba(0,0,0,.8), 0 4px 28px rgba(0,0,0,.55);
  user-select: none;
}

.cv21-title {
  font-family: 'Baloo 2', cursive;
  font-weight: 800;
  font-size: clamp(24px, 6vw, 84px);
  letter-spacing: .08em;
  line-height: 1;
  color: #fff;
  text-align: center;
  text-shadow: 0 2px 12px rgba(0,0,0,.85), 0 4px 40px rgba(0,0,0,.55);
  margin: clamp(-6px, -0.8vw, -12px) -0.08em 0 0;
  white-space: nowrap;
}

.cv21-sub {
  font-family: 'Nunito', sans-serif;
  font-size: clamp(15px, 2vw, 22px);
  font-weight: 600;
  color: rgba(255,255,255,.9);
  max-width: 520px;
  line-height: 1.6;
  text-shadow: 0 2px 12px rgba(0,0,0,.7);
  margin: 0 0 28px;
}

.cv21-btns { margin-bottom: 28px; }

.cv21-scroll {
  font-size: 3rem;
  color: rgba(216,196,255,.85);
  line-height: 1;
  animation: cv21bounce 2s ease-in-out infinite;
}

@keyframes cv21bounce {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(6px); }
}

.cv21-hero__wave { position: absolute; bottom: -1px; left: 0; right: 0; z-index: 3; }

/* ---------- BUTTONS ---------- */
.cv21-btn {
  display: inline-block;
  font-family: 'Baloo 2', sans-serif;
  font-weight: 700;
  font-size: 16px;
  padding: 13px 32px;
  border-radius: 100px;
  transition: all .18s;
}
.cv21-btn--white { background: var(--white); color: var(--pink); }
.cv21-btn--white:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.15); }
.cv21-btn--outline { border: 2px solid rgba(255,255,255,.7); color: #fff; }
.cv21-btn--outline:hover { background: rgba(255,255,255,.12); }
.cv21-btn--pink { background: var(--pink); color: #fff; }
.cv21-btn--pink:hover { background: var(--pink-dark); transform: translateY(-2px); box-shadow: 0 10px 28px rgba(240,50,95,.35); }

/* ---------- WHAT'S ON STRIP ---------- */
.cv21-strip { position: relative; background: var(--pink); overflow: hidden; }

.cv21-strip__bg { position: absolute; inset: 0; pointer-events: none; }
.cv21-circle { position: absolute; border-radius: 50%; }
.cv21-circle--a { width: 480px; height: 480px; background: rgba(255,255,255,.08); top: -180px; right: -80px; }
.cv21-circle--b { width: 240px; height: 240px; background: rgba(0,0,0,.06); bottom: 20px; left: -60px; }
.cv21-circle--c { width: 140px; height: 140px; background: rgba(255,255,255,.06); top: 50%; left: 44%; transform: translateY(-50%); }

.cv21-strip__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: flex-end;
  padding-top: 32px;
}

.cv21-strip__copy { padding-bottom: 60px; }

.cv21-strip__kicker {
  font-family: 'Baloo 2', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.78);
  margin-bottom: 10px;
}

.cv21-strip__h1 {
  font-family: 'Baloo 2', sans-serif;
  font-weight: 800;
  font-size: clamp(28px, 3.5vw, 46px);
  line-height: 1.06;
  color: #fff;
  margin: 0 0 12px;
}

.cv21-strip__sub {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.6;
  color: rgba(255,255,255,.88);
  max-width: 420px;
  margin: 0 0 22px;
}

.cv21-strip__btns { display: flex; gap: 12px; flex-wrap: wrap; }

.cv21-strip__mascot { position: relative; display: flex; justify-content: center; align-items: flex-end; }

.cv21-dragon {
  height: clamp(200px, 30vw, 340px);
  width: auto;
  object-fit: contain;
  object-position: bottom;
  display: block;
  filter: drop-shadow(-6px 14px 28px rgba(0,0,0,.22));
  animation: cv21float 5s ease-in-out infinite;
}
@keyframes cv21float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-16px); }
}

.cv21-sticker {
  position: absolute;
  top: 20px; left: 0;
  background: #fff;
  color: var(--pink);
  font-family: 'Baloo 2', sans-serif;
  font-weight: 800;
  font-size: 17px;
  padding: 7px 13px;
  border-radius: 12px;
  box-shadow: 0 8px 22px rgba(0,0,0,.16);
  transform: rotate(-5deg);
}

.cv21-strip__wave { margin-top: 0; }

/* ---------- EVENTS ---------- */
.cv21-events { padding: 56px 0 72px; background: var(--bg); }

.cv21-events__head { text-align: center; margin-bottom: 44px; }
.cv21-h2 {
  font-family: 'Baloo 2', sans-serif;
  font-weight: 800;
  font-size: clamp(28px, 3.8vw, 40px);
  color: var(--ink);
  margin: 0 0 6px;
}
.cv21-events__sub { font-size: 16px; font-weight: 600; color: var(--muted); margin: 0; }

.cv21-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.cv21-card {
  display: block;
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(43,34,51,.08);
  transition: transform .2s, box-shadow .2s;
}
.cv21-card:hover { transform: translateY(-4px); box-shadow: 0 14px 32px rgba(43,34,51,.12); }

.cv21-card__img { position: relative; aspect-ratio: 16 / 9; overflow: hidden; }
.cv21-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.cv21-card:hover .cv21-card__img img { transform: scale(1.05); }

.cv21-card__cat {
  position: absolute;
  top: 12px; left: 12px;
  background: var(--pink); color: #fff;
  font-family: 'Baloo 2', sans-serif;
  font-weight: 700; font-size: 11.5px;
  padding: 4px 12px; border-radius: 100px;
}

.cv21-card__body { padding: 16px 20px 18px; }
.cv21-card__date {
  font-family: 'Baloo 2', sans-serif;
  font-weight: 700; font-size: 12px;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--purple); margin: 0 0 4px;
}
.cv21-card__title {
  font-family: 'Baloo 2', sans-serif;
  font-weight: 800; font-size: 17px;
  line-height: 1.25; color: var(--ink); margin: 0 0 6px;
}
.cv21-card__desc {
  font-size: 13px; font-weight: 600;
  line-height: 1.5; color: var(--muted); margin: 0 0 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.cv21-card__link {
  font-family: 'Baloo 2', sans-serif;
  font-weight: 700; font-size: 15px;
  color: var(--pink); text-decoration: underline;
  text-underline-offset: 3px; transition: color .15s;
}
.cv21-card__link:hover { color: var(--pink-dark); }

.cv21-events__more { text-align: center; margin-top: 40px; }

@media (max-width: 900px) {
  .cv21-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .cv21-grid { grid-template-columns: 1fr; }
}

/* ---------- MAP / FILTERS (shared ChinatownMap component) ---------- */
.cv21 .cgmap-section { padding: 56px 0 72px; background: var(--bg); }

.cv21 .cgmap-shell { max-width: 1160px; margin: 0 auto; padding: 0 44px; }

.cv21 .cgmap-head { text-align: center; margin-bottom: 44px; }

.cv21 .cgmap-head__kicker {
  display: block;
  font-family: 'Baloo 2', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 6px;
}

.cv21 .cgmap-head__title {
  font-family: 'Baloo 2', sans-serif;
  font-weight: 800;
  font-size: clamp(28px, 3.8vw, 40px);
  color: var(--ink);
  margin: 0;
}

.cv21 .cgmap-layout { display: flex; align-items: flex-start; gap: 26px; }

.cv21 .cgmap-sidebar {
  flex: 0 0 300px;
  width: 300px;
  height: 620px;
  overflow-y: auto;
  background: var(--white);
  border-radius: 20px;
  box-shadow: 0 6px 24px rgba(43,34,51,.07);
  padding: 24px;
}

.cv21 .cgmap-sidebar__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.cv21 .cgmap-sidebar__head h3 {
  margin: 0;
  font-family: 'Baloo 2', sans-serif;
  font-size: 19px;
  font-weight: 800;
  color: var(--ink);
}

.cv21 .cgmap-reset {
  background: none;
  border: 0;
  padding: 0;
  font-family: 'Baloo 2', sans-serif;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--pink);
  cursor: pointer;
}
.cv21 .cgmap-reset:hover { color: var(--pink-dark); text-decoration: underline; }

.cv21 .cgmap-summary { font-size: 13px; font-weight: 600; color: var(--muted); margin: 0 0 18px; }
.cv21 .cgmap-summary strong { color: var(--ink); }

.cv21 .cgmap-select-label {
  display: block;
  font-family: 'Baloo 2', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

.cv21 .cgmap-select {
  width: 100%;
  padding: 10px 14px;
  margin-bottom: 14px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  background: var(--white);
  color: var(--ink);
  font-family: 'Baloo 2', sans-serif;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.15s;
}
.cv21 .cgmap-select:hover, .cv21 .cgmap-select:focus { border-color: var(--pink); outline: none; }

.cv21 .cgmap-subfilters { border-top: 1px solid var(--border); margin-top: 4px; padding-top: 16px; }

.cv21 .cgmap-filter-sub { margin-bottom: 14px; }
.cv21 .cgmap-filter-sub:last-child { margin-bottom: 0; }

.cv21 .cgmap-filter-sub h4 {
  margin: 0 0 8px;
  font-family: 'Baloo 2', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--purple);
}

.cv21 .cgmap-filter-sub__checks {
  display: flex;
  flex-direction: column;
  gap: 7px;
  max-height: 220px;
  overflow-y: auto;
}

.cv21 .cgmap-filter-check, .cv21 .cgmap-filter-radio {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  text-transform: capitalize;
  cursor: pointer;
}
.cv21 .cgmap-filter-check input, .cv21 .cgmap-filter-radio input { accent-color: var(--pink); width: 14px; height: 14px; flex-shrink: 0; }

.cv21 .cgmap-filter-radio { margin-bottom: 7px; }
.cv21 .cgmap-filter-radio:last-child { margin-bottom: 0; }

.cv21 .cgmap-frame {
  flex: 1;
  min-width: 0;
  width: 100%;
  height: 620px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(43,34,51,.07);
  /* Leaflet's internal panes/controls/popups use z-index values up to
     1000+; without isolating a stacking context here, those values
     compare directly against the rest of the page (nav, flyer) instead
     of staying contained to the map. */
  isolation: isolate;
}

.cv21 .cgmap-pin, .cv21 .cgmap-pin__shape, .cv21 .cgmap-pin__icon { background: none; border: none; }

.cv21 .cgmap-pin__shape {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50% 50% 50% 0;
  border: 2px solid #fff;
  box-shadow: 0 2px 5px rgba(0,0,0,0.3);
  transform: rotate(-45deg);
}

.cv21 .cgmap-pin__icon { width: 15px; height: 15px; transform: rotate(45deg); }

.cv21 .cgmap-pin__shape { transition: transform .15s; }
.cv21 .cgmap-pin:hover .cgmap-pin__shape { transform: rotate(-45deg) scale(1.15); }

/* Leaflet chrome, themed to match the rest of the page */
.cv21 .leaflet-control-zoom {
  border: none;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(43,34,51,.18);
}
.cv21 .leaflet-control-zoom a {
  background: var(--white);
  color: var(--pink);
  font-family: 'Baloo 2', sans-serif;
  font-weight: 800;
  border: none !important;
}
.cv21 .leaflet-control-zoom a:hover { background: var(--pink); color: #fff; }

.cv21 .leaflet-control-attribution {
  font-family: 'Nunito', sans-serif;
  font-size: 10.5px;
  font-weight: 600;
  background: rgba(255,255,255,.85);
  color: var(--muted);
  border-radius: 8px 0 0 0;
}
.cv21 .leaflet-control-attribution a { color: var(--purple); }

.cv21 .cgmap-frame .leaflet-popup-content-wrapper { border-radius: 14px; }
.cv21 .cgmap-frame .leaflet-popup-content { margin: 12px 14px; }

.cv21 .cgmap-popup { font-family: 'Nunito', sans-serif; min-width: 190px; }

.cv21 .cgmap-popup__cat {
  display: inline-block;
  font-family: 'Baloo 2', sans-serif;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #fff;
  padding: 3px 10px;
  border-radius: 100px;
  margin-bottom: 6px;
}

.cv21 .cgmap-popup h4 { margin: 0 0 4px; font-family: 'Baloo 2', sans-serif; font-size: 15px; font-weight: 800; color: var(--ink); line-height: 1.3; }
.cv21 .cgmap-popup p { margin: 0 0 3px; font-size: 12.5px; font-weight: 600; color: var(--muted); line-height: 1.4; }
.cv21 .cgmap-popup a { font-size: 12.5px; font-weight: 700; color: var(--pink); }

/* ---------- NEWSLETTER ---------- */
.cv21-newsletter { background: var(--purple); }
.cv21-newsletter__wave-top { margin-bottom: -1px; }

.cv21-newsletter__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  padding-top: 44px;
  padding-bottom: 56px;
  flex-wrap: wrap;
}
.cv21-newsletter__h2 {
  font-family: 'Baloo 2', sans-serif;
  font-weight: 800;
  font-size: clamp(24px, 3.2vw, 34px);
  color: #fff; margin: 0 0 4px;
}
.cv21-newsletter__sub { font-size: 15px; font-weight: 600; color: rgba(255,255,255,.85); margin: 0; }
.cv21-newsletter__form { display: flex; gap: 10px; flex-wrap: wrap; }
.cv21-newsletter__form input {
  font-family: 'Nunito', sans-serif;
  font-size: 15px; font-weight: 600;
  padding: 13px 22px; border: none;
  border-radius: 100px; min-width: 260px;
  outline: none; color: var(--ink);
}
.cv21-newsletter__form button {
  font-family: 'Baloo 2', sans-serif;
  font-weight: 700; font-size: 15px;
  color: var(--purple); background: #fff;
  border: none; padding: 13px 30px;
  border-radius: 100px; cursor: pointer;
  transition: transform .15s, box-shadow .15s;
}
.cv21-newsletter__form button:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,.2); }

/* ---------- FOOTER ---------- */
.cv21-footer { background: var(--purple); }
.cv21-footer__wave { margin-bottom: -2px; }
.cv21-footer__body { background: var(--pink); padding: 48px 0 36px; }

.cv21-footer__cols {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 56px;
  margin-bottom: 48px;
}
.cv21-footer__logo {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Baloo 2', sans-serif;
  font-weight: 800; font-size: 22px;
  color: #fff; margin: 0 0 14px;
}
.cv21-footer__logo-mark {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  background: #fff; color: var(--pink);
  border-radius: 10px; font-size: 18px; flex-shrink: 0;
}
.cv21-footer__blurb {
  font-size: 15px; font-weight: 600;
  line-height: 1.65; color: rgba(255,255,255,.95);
  max-width: 340px; margin: 0 0 22px;
}
.cv21-socials { list-style: none; padding: 0; margin: 0; display: flex; gap: 12px; }
.cv21-socials a {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  background: #fff; color: var(--pink);
  border-radius: 50%; transition: transform .15s;
}
.cv21-socials a:hover { transform: translateY(-3px); }

.cv21-footer__links h3, .cv21-footer__search h3 {
  font-family: 'Baloo 2', sans-serif;
  font-weight: 800; font-size: 18px;
  color: #fff; margin: 0 0 16px;
}
.cv21-footer__links ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.cv21-footer__links a {
  font-size: 15px; font-weight: 700;
  color: #fff; text-decoration: underline;
  text-underline-offset: 3px; transition: opacity .15s;
}
.cv21-footer__links a:hover { opacity: .75; }

.cv21-searchbox { display: flex; gap: 8px; margin-bottom: 14px; }
.cv21-searchbox input {
  flex: 1; font-family: 'Nunito', sans-serif;
  font-size: 14px; font-weight: 600;
  padding: 11px 16px; border: none;
  border-radius: 10px; outline: none;
  color: var(--ink); min-width: 0;
}
.cv21-searchbox input::placeholder { color: var(--purple); opacity: .7; }
.cv21-searchbox button {
  width: 44px; flex-shrink: 0;
  display: grid; place-items: center;
  background: #fff; color: var(--purple);
  border: none; border-radius: 10px;
  cursor: pointer; transition: transform .15s;
}
.cv21-searchbox button:hover { transform: scale(1.06); }

.cv21-sitemap {
  display: block; text-align: center;
  font-family: 'Baloo 2', sans-serif;
  font-weight: 700; font-size: 15px;
  color: var(--pink); background: #fff;
  padding: 11px 0; border-radius: 100px;
  transition: transform .15s, box-shadow .15s;
}
.cv21-sitemap:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(0,0,0,.14); }

.cv21-footer__legal { text-align: center; border-top: 1px solid rgba(255,255,255,.15); padding-top: 20px; }
.cv21-footer__legal p { font-size: 14px; font-weight: 600; color: rgba(255,255,255,.95); margin: 0; }
.cv21-footer__legal a { color: #fff; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- EVENTS CALENDAR PAGE ---------- */
.cv21-cal-hero {
  position: relative;
  overflow: hidden;
  padding: 64px 0 96px;
  background: linear-gradient(120deg, var(--pink) 0%, var(--purple) 100%);
}
.cv21-cal-hero__circle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.cv21-cal-hero__circle--a { width: 420px; height: 420px; background: rgba(255,255,255,.08); top: -160px; right: -100px; }
.cv21-cal-hero__circle--b { width: 220px; height: 220px; background: rgba(0,0,0,.06); bottom: -80px; left: -60px; }

.cv21-cal-hero__inner { position: relative; z-index: 1; text-align: center; max-width: 720px; }
.cv21-cal-hero__kicker {
  font-family: 'Baloo 2', sans-serif;
  font-weight: 700; font-size: 13px;
  letter-spacing: .14em; text-transform: uppercase;
  color: rgba(255,255,255,.8); margin: 0 0 10px;
}
.cv21-cal-hero__title {
  font-family: 'Baloo 2', sans-serif;
  font-weight: 800; font-size: clamp(30px, 4.5vw, 52px);
  color: #fff; line-height: 1.08; margin: 0 0 14px;
}
.cv21-cal-hero__sub { font-size: 16px; font-weight: 600; color: rgba(255,255,255,.9); margin: 0; line-height: 1.6; }
.cv21-cal-hero__wave { position: absolute; bottom: -1px; left: 0; right: 0; z-index: 1; }

.cv21-cal-filters {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 10px; margin-bottom: 36px;
}
.cv21-cal-chip {
  font-family: 'Baloo 2', sans-serif;
  font-weight: 700; font-size: 14px;
  color: var(--ink); background: var(--white);
  border: 2px solid var(--border);
  padding: 8px 20px; border-radius: 100px;
  cursor: pointer; transition: all .15s;
}
.cv21-cal-chip:hover { border-color: var(--pink); }
.cv21-cal-chip--active { background: var(--pink); border-color: var(--pink); color: #fff; }

/* ---------- AGENDA (LIST VIEW) ---------- */
.cv21-agenda-month { margin-bottom: 48px; }
.cv21-agenda-month:last-child { margin-bottom: 0; }
.cv21-agenda-month__h {
  font-family: 'Baloo 2', sans-serif;
  font-weight: 800; font-size: 22px; color: var(--ink);
  margin: 0 0 20px; padding-bottom: 10px; border-bottom: 2px solid var(--border);
}

/* ---------- EVENT DETAIL PAGE ---------- */
.cv21-detail-hero {
  position: relative;
  min-height: 380px;
  display: flex; align-items: flex-end;
  background-size: cover; background-position: center;
  padding-bottom: 48px;
  overflow: hidden;
}
.cv21-detail-hero__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(43,34,51,.55) 0%, rgba(43,34,51,.35) 40%, rgba(43,34,51,.85) 100%);
}
.cv21-detail-hero__inner { position: relative; z-index: 1; }
.cv21-detail-back {
  display: block; color: rgba(255,255,255,.85);
  font-family: 'Baloo 2', sans-serif; font-weight: 700; font-size: 14px;
  margin-bottom: 18px; transition: color .15s;
}
.cv21-detail-back:hover { color: #fff; }
.cv21-detail-hero__cat { position: static; display: inline-block; margin-bottom: 14px; }
.cv21-detail-hero__title {
  font-family: 'Baloo 2', sans-serif;
  font-weight: 800; font-size: clamp(28px, 4.2vw, 48px);
  color: #fff; line-height: 1.1; margin: 0 0 10px; max-width: 780px;
}
.cv21-detail-hero__date {
  font-family: 'Baloo 2', sans-serif;
  font-weight: 700; font-size: 15px;
  letter-spacing: .04em; text-transform: uppercase;
  color: rgba(255,255,255,.85); margin: 0;
}
.cv21-detail-hero__wave { position: absolute; bottom: -1px; left: 0; right: 0; z-index: 1; }

.cv21-detail-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 48px;
  align-items: start;
}
.cv21-detail-body__text { font-size: 16px; font-weight: 600; line-height: 1.75; color: var(--muted); margin: 0; }

.cv21-detail-side {
  background: var(--white); border-radius: 16px;
  padding: 26px 26px 28px;
  box-shadow: 0 6px 20px rgba(43,34,51,.08);
}
.cv21-detail-side__h3 {
  font-family: 'Baloo 2', sans-serif;
  font-weight: 800; font-size: 18px; color: var(--ink); margin: 0 0 16px;
}
.cv21-detail-side__list { margin: 0 0 22px; }
.cv21-detail-side__list dt {
  font-family: 'Baloo 2', sans-serif;
  font-weight: 700; font-size: 11.5px;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--purple); margin: 0 0 2px;
}
.cv21-detail-side__list dd {
  font-size: 14.5px; font-weight: 600; color: var(--ink);
  margin: 0 0 14px;
}
.cv21-detail-side__list dd:last-child { margin-bottom: 0; }
.cv21-detail-side__cta { display: block; width: 100%; text-align: center; }

.cv21-detail-related { margin-top: 64px; }
.cv21-detail-related .cv21-h2 { text-align: center; margin-bottom: 28px; }

.cv21-detail-notfound { padding: 96px 0; text-align: center; }
.cv21-detail-notfound h1 { font-family: 'Baloo 2', sans-serif; font-weight: 800; font-size: 32px; color: var(--ink); margin: 0 0 12px; }
.cv21-detail-notfound p { font-size: 16px; font-weight: 600; color: var(--muted); margin: 0 0 24px; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .cv21-strip__inner { grid-template-columns: 1fr; }
  .cv21-footer__cols { grid-template-columns: 1fr; gap: 36px; }
  .cv21-navlinks { display: none; }
  .cv21 .cgmap-shell { padding: 0 20px; }
  .cv21 .cgmap-layout { flex-direction: column; }
  .cv21 .cgmap-sidebar { width: 100%; flex-basis: auto; height: 340px; }
  .cv21 .cgmap-frame { width: 100%; height: 380px; }
  .cv21-detail-layout { grid-template-columns: 1fr; }
}

/* ---------- WP ADMIN BAR OFFSET ---------- */
body.admin-bar .cv21-nav { top: 32px; }
@media (max-width: 782px) {
  body.admin-bar .cv21-nav { top: 46px; }
}

/* ---------- SCREEN-READER-ONLY SKIP LINK ---------- */
.cv21-skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100000;
  background: #fff;
  color: #2B2233;
  padding: 12px 20px;
  font-family: 'Baloo 2', sans-serif;
  font-weight: 700;
  border-radius: 0 0 10px 0;
}
.cv21-skip-link:focus { left: 0; }
