/* ============== 1. MAI BERLIN — COMMUNITY MAP ==============
   Dark, high-contrast, editorial. Extracted from prototype.
   Uses its own design tokens, isolated from the main site CSS.
============================================================= */

/* Put the design tokens on body.onemai-body so they cascade into both
   the body (background) and its .onemai-scope descendants */
body.onemai-body {
  --bg: #000000;          /* Matches main site --background-color */
  --surface: #111827;     /* Matches main site --secondary-color */
  --surface-raised: #1a2236;
  --ink: #FFFFFF;         /* Matches main site --text-color */
  --ink-dim: #E5E7EB;     /* Matches main site --text-color-light */
  --ink-mute: #9ca3af;
  --red: #6B00BE;         /* Matches main site --primary-color */
  --red-deep: #4d0088;
  --red-dark: #2a0438;
  --cream: #FFFFFF;
  --line: #374151;        /* Matches main site --border-color */
  --radius: 2px;
}

.onemai-scope *,
.onemai-scope *::before,
.onemai-scope *::after { box-sizing: border-box; }

body.onemai-body {
  background: #000000;
  color: var(--ink);
  font-family: 'Inter Tight', sans-serif;
  font-size: 15px;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  margin: 0;
  padding: 0;
}

/* Grain overlay */
body.onemai-body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.08;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.onemai-scope ::selection { background: var(--red); color: var(--cream); }

/* ============== HEADER ============== */
.onemai-scope .onemai-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(0,0,0,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  padding: 14px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.onemai-scope .brand {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  letter-spacing: 0.12em;
  color: var(--cream);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}
.onemai-scope .brand::before {
  content: '';
  width: 10px; height: 10px;
  background: var(--red);
  display: inline-block;
  border-radius: 50%;
  box-shadow: 0 0 12px var(--red);
  animation: onemai-pulse 2s ease-in-out infinite;
}
@keyframes onemai-pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.85); }
}

.onemai-scope .nav-right { display: flex; align-items: center; gap: 14px; }

.onemai-scope .lang-toggle {
  display: flex;
  border: 1px solid var(--line);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.05em;
}
.onemai-scope .lang-toggle button {
  background: none; border: none; color: var(--ink-dim);
  padding: 6px 10px; cursor: pointer;
  font-family: inherit; font-size: inherit;
}
.onemai-scope .lang-toggle button.active { background: var(--cream); color: var(--bg); }

.onemai-scope .add-party-btn {
  background: var(--red);
  color: var(--cream);
  border: none;
  padding: 10px 18px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 15px;
  letter-spacing: 0.12em;
  cursor: pointer;
  transition: background 0.15s ease;
  display: flex; align-items: center; gap: 8px;
}
.onemai-scope .add-party-btn:hover { background: var(--red-deep); }
.onemai-scope .add-party-btn::before { content: '+'; font-size: 20px; line-height: 0.9; }

/* ============== HERO ============== */
.onemai-scope .hero {
  padding: 60px 24px 40px;
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
}
.onemai-scope .hero-meta {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--ink-dim);
  text-transform: uppercase;
  margin-bottom: 24px;
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  align-items: center;
}
.onemai-scope .hero-meta .dot { width: 4px; height: 4px; background: var(--red); border-radius: 50%; display: inline-block; }

.onemai-scope .hero h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(72px, 14vw, 220px);
  line-height: 0.85;
  letter-spacing: -0.02em;
  color: var(--cream);
  margin-bottom: 8px;
}
.onemai-scope .hero h1 .red {
  color: var(--red);
  font-style: italic;
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
  letter-spacing: -0.02em;
}

.onemai-scope .hero-sub {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: clamp(20px, 2.5vw, 30px);
  color: var(--ink);
  max-width: 620px;
  margin-top: 28px;
  line-height: 1.35;
}

.onemai-scope .hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 40px;
  flex-wrap: wrap;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.onemai-scope .hero-stats > div { border-left: 1px solid var(--line); padding-left: 14px; }
.onemai-scope .hero-stats .big {
  display: block;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 36px;
  color: var(--cream);
  letter-spacing: 0.04em;
  line-height: 1;
  margin-bottom: 4px;
}

/* ============== FILTERS ============== */
.onemai-scope .filters {
  padding: 24px;
  max-width: 1400px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
}
.onemai-scope .filter-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-right: 8px;
}
.onemai-scope .chip-row { display: flex; gap: 6px; flex-wrap: wrap; }
.onemai-scope .chip {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-dim);
  background: none;
  border: 1px solid var(--line);
  padding: 7px 12px;
  cursor: pointer;
  transition: all 0.12s ease;
}
.onemai-scope .chip:hover { color: var(--cream); border-color: var(--ink-mute); }
.onemai-scope .chip.active {
  background: var(--cream);
  color: var(--bg);
  border-color: var(--cream);
}
.onemai-scope .chip.live.active { background: var(--red); color: var(--cream); border-color: var(--red); }

/* ============== MAP ============== */
.onemai-scope .map-section {
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 24px;
  min-height: 600px;
}
.onemai-scope #map {
  height: 70vh;
  min-height: 520px;
  background: var(--surface);
  border: 1px solid var(--line);
  filter: contrast(1.05);
}
.onemai-scope .leaflet-control-attribution {
  background: rgba(0,0,0,0.8) !important;
  color: var(--ink-mute) !important;
  font-family: 'IBM Plex Mono', monospace !important;
  font-size: 9px !important;
}
.onemai-scope .leaflet-control-attribution a { color: var(--ink-dim) !important; }

.onemai-scope .leaflet-popup-content-wrapper {
  background: var(--surface-raised) !important;
  color: var(--ink) !important;
  border-radius: 0 !important;
  border: 1px solid var(--red);
  padding: 0 !important;
  box-shadow: 0 12px 40px rgba(107,0,190,0.15) !important;
}
.onemai-scope .leaflet-popup-content { margin: 0 !important; width: 260px !important; }
.onemai-scope .leaflet-popup-tip { background: var(--red) !important; }
.onemai-scope .leaflet-popup-close-button { color: var(--ink-dim) !important; }

/* ============== MAP MARKERS ============== */

/* Drop-shaped pins rendered via inline SVG; colour + animation applied here. */

.onemai-scope .custom-marker {
  cursor: pointer;
  transform-origin: 50% 100%;  /* tip of the drop, so hover/animate scale from the anchor */
  filter: drop-shadow(0 3px 6px rgba(0,0,0,0.6));
  transition: transform 0.18s ease;
}
.onemai-scope .custom-marker svg {
  display: block;
  overflow: visible;           /* let the white stroke render past the viewBox */
}
/* Regular event — solid purple drop, no rim */
.onemai-scope .custom-marker svg path {
  fill: var(--red);
  stroke: none;
}
.onemai-scope .custom-marker:hover { transform: scale(1.1); }

/* Live (happening now) — subtle pulse on the drop shape */
.onemai-scope .custom-marker.live:not(.featured) {
  animation: onemai-marker-pulse 1.6s ease-in-out infinite;
}
@keyframes onemai-marker-pulse {
  0%, 100% { filter: drop-shadow(0 3px 6px rgba(0,0,0,0.6)) drop-shadow(0 0 0 rgba(107,0,190,0)); }
  50%      { filter: drop-shadow(0 3px 6px rgba(0,0,0,0.6)) drop-shadow(0 0 10px rgba(107,0,190,0.8)); }
}

/* Past event — muted, no animation, no rim */
.onemai-scope .custom-marker.past {
  animation: none;
  opacity: 0.4;
}
.onemai-scope .custom-marker.past svg path {
  fill: var(--ink-mute);
  stroke: none;
}
.onemai-scope .custom-marker.past:hover { opacity: 1; }

/* Odys Pick — gradient fill, no rim, bigger, bouncing */
.onemai-scope .custom-marker.featured {
  animation: onemai-featured-bounce 1.4s cubic-bezier(0.28, 0.84, 0.42, 1) infinite;
  filter: drop-shadow(0 6px 10px rgba(0,0,0,0.7)) drop-shadow(0 0 12px rgba(107,0,190,0.5));
}
.onemai-scope .custom-marker.featured svg path {
  fill: url(#onemai-featured-gradient);
  stroke: none;
}
.onemai-scope .custom-marker.featured:hover { animation-play-state: paused; transform: scale(1.08); }

@keyframes onemai-featured-bounce {
  0%, 100% { transform: translateY(0); }
  45%      { transform: translateY(-10px); }
  55%      { transform: translateY(-10px); }
}

.onemai-scope .custom-marker.featured.past {
  animation: none;
  opacity: 0.4;
}

/* Event sidebar */
.onemai-scope .event-sidebar {
  background: var(--surface);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  max-height: 70vh;
  overflow: hidden;
}
.onemai-scope .event-sidebar-header {
  padding: 16px;
  border-bottom: 1px solid var(--line);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-dim);
  display: flex;
  justify-content: space-between;
}
.onemai-scope .event-sidebar-header .count { color: var(--red); }
.onemai-scope .event-list { overflow-y: auto; flex: 1; }
.onemai-scope .event-list::-webkit-scrollbar { width: 6px; }
.onemai-scope .event-list::-webkit-scrollbar-track { background: var(--surface); }
.onemai-scope .event-list::-webkit-scrollbar-thumb { background: var(--line); }

.onemai-scope .event-list-section-header {
  padding: 10px 16px;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  position: sticky;
  top: 0;
  z-index: 1;
}
.onemai-scope .event-list-section-header.featured {
  color: var(--cream);
  background: linear-gradient(90deg, var(--red-dark), var(--bg) 80%);
  border-left: 3px solid var(--red);
}

.onemai-scope .event-card {
  padding: 16px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition: background 0.12s ease;
  display: flex;
  gap: 12px;
}
.onemai-scope .event-card:hover { background: var(--surface-raised); }
.onemai-scope .event-card.active { background: var(--surface-raised); border-left: 3px solid var(--red); padding-left: 13px; }
.onemai-scope .event-card.featured {
  background: linear-gradient(90deg, rgba(107,0,190,0.08), transparent 70%);
  border-left: 3px solid var(--red);
  padding-left: 13px;
}
.onemai-scope .event-card.featured:hover { background: linear-gradient(90deg, rgba(107,0,190,0.14), var(--surface-raised) 70%); }
.onemai-scope .event-card.featured h3 {
  color: var(--cream);
}
.onemai-scope .event-card.featured h3::before {
  content: '★ ';
  color: var(--red);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 14px;
  letter-spacing: 0;
  margin-right: 2px;
}

.onemai-scope .event-card-dot {
  width: 10px; height: 10px;
  background: var(--red);
  border-radius: 50%;
  margin-top: 6px;
  flex-shrink: 0;
}
.onemai-scope .event-card.past .event-card-dot { background: var(--ink-mute); }
.onemai-scope .event-card.live .event-card-dot { animation: onemai-pulse 1.8s ease-in-out infinite; }

.onemai-scope .event-card-body { flex: 1; min-width: 0; }
.onemai-scope .event-card h3 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 20px;
  letter-spacing: 0.04em;
  color: var(--cream);
  margin-bottom: 4px;
  line-height: 1.1;
}
.onemai-scope .event-card .meta {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-dim);
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.onemai-scope .event-card .meta .sep { color: var(--ink-mute); }
.onemai-scope .event-card .meta .price-free { color: var(--red); }
.onemai-scope .event-card p {
  font-size: 13px;
  color: var(--ink-dim);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ============== DETAIL DRAWER ============== */
.onemai-scope .detail-drawer {
  position: fixed;
  top: 0; right: 0;
  width: 460px;
  max-width: 100%;
  height: 100vh;
  background: var(--surface);
  border-left: 1px solid var(--red);
  z-index: 1000;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.onemai-scope .detail-drawer.open { transform: translateX(0); box-shadow: -24px 0 60px rgba(0,0,0,0.5); }
.onemai-scope .detail-drawer .drawer-image {
  height: 240px;
  background: var(--surface-raised);
  background-size: cover;
  background-position: center;
  position: relative;
  border-bottom: 1px solid var(--line);
}
.onemai-scope .detail-drawer .drawer-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--surface), transparent 50%);
}
.onemai-scope .drawer-close {
  position: absolute; top: 16px; right: 16px;
  width: 36px; height: 36px;
  background: rgba(0,0,0,0.8);
  border: 1px solid var(--line);
  color: var(--cream);
  cursor: pointer;
  font-size: 18px;
  z-index: 2;
  backdrop-filter: blur(8px);
  transition: background 0.15s ease;
}
.onemai-scope .drawer-close:hover { background: var(--red); border-color: var(--red); }

.onemai-scope .drawer-content { padding: 28px; overflow-y: auto; flex: 1; }
.onemai-scope .drawer-content::-webkit-scrollbar { width: 6px; }
.onemai-scope .drawer-content::-webkit-scrollbar-thumb { background: var(--line); }

.onemai-scope .drawer-badges { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.onemai-scope .badge {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 8px;
  border: 1px solid var(--line);
  color: var(--ink-dim);
}
.onemai-scope .badge.live { background: var(--red); color: var(--cream); border-color: var(--red); }
.onemai-scope .badge.free { color: var(--red); border-color: var(--red); }
.onemai-scope .badge.genre { color: var(--cream); border-color: var(--ink-mute); }
.onemai-scope .badge.featured {
  background: var(--cream);
  color: var(--red-dark);
  border-color: var(--cream);
  font-weight: 600;
}

.onemai-scope .drawer-content h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 42px;
  letter-spacing: 0.02em;
  color: var(--cream);
  line-height: 0.95;
  margin-bottom: 18px;
}

.onemai-scope .drawer-info-grid {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 12px 16px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.onemai-scope .drawer-info-grid dt {
  color: var(--ink-mute);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding-top: 2px;
}
.onemai-scope .drawer-info-grid dd { color: var(--ink); margin: 0; }

.onemai-scope .drawer-description {
  font-family: 'Instrument Serif', serif;
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink);
  margin-bottom: 28px;
}

.onemai-scope .drawer-actions { display: flex; gap: 8px; }
.onemai-scope .drawer-actions button {
  flex: 1;
  padding: 12px;
  background: none;
  border: 1px solid var(--line);
  color: var(--ink);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.15s ease;
}
.onemai-scope .drawer-actions button:hover { background: var(--cream); color: var(--bg); border-color: var(--cream); }

/* ============== SUBMIT MODAL ============== */
.onemai-scope .modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(6px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.onemai-scope .modal-backdrop.open { display: flex; animation: onemai-fade-in 0.25s ease; }
@keyframes onemai-fade-in { from { opacity: 0; } to { opacity: 1; } }

.onemai-scope .modal {
  background: var(--surface);
  border: 1px solid var(--red);
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  overflow-y: auto;
  animation: onemai-slide-up 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}
@keyframes onemai-slide-up { from { transform: translateY(40px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.onemai-scope .modal::-webkit-scrollbar { width: 6px; }
.onemai-scope .modal::-webkit-scrollbar-thumb { background: var(--red); }

.onemai-scope .modal-header {
  padding: 24px 28px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  position: sticky;
  top: 0;
  background: var(--surface);
  z-index: 2;
}
.onemai-scope .modal-header h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 32px;
  letter-spacing: 0.04em;
  color: var(--cream);
  line-height: 1;
}
.onemai-scope .modal-header p {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-top: 6px;
}
.onemai-scope .modal-close {
  background: none;
  border: 1px solid var(--line);
  color: var(--ink);
  width: 32px; height: 32px;
  cursor: pointer;
  font-size: 16px;
  transition: all 0.15s ease;
  flex-shrink: 0;
}
.onemai-scope .modal-close:hover { background: var(--red); border-color: var(--red); color: var(--cream); }

.onemai-scope .modal-body { padding: 28px; }

.onemai-scope .mini-map-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
}
.onemai-scope .mini-map-hint {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red);
}
.onemai-scope #mini-map {
  height: 200px;
  border: 1px solid var(--line);
  margin-bottom: 8px;
}

.onemai-scope .geosearch-wrap {
  position: relative;
  margin-bottom: 10px;
  z-index: 500;  /* above Leaflet's internal panes (default 400) */
}
.onemai-scope #geosearch-input {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 10px 12px;
  font-family: 'Inter Tight', sans-serif;
  font-size: 13px;
  transition: border-color 0.15s ease;
}
.onemai-scope #geosearch-input:focus {
  outline: none;
  border-color: var(--red);
}
.onemai-scope .geosearch-results {
  position: absolute;
  top: calc(100% - 1px);
  left: 0;
  right: 0;
  background: var(--surface-raised);
  border: 1px solid var(--red);
  border-top: none;
  max-height: 260px;
  overflow-y: auto;
  z-index: 1001;  /* sit above the mini-map which may create its own stacking context */
  box-shadow: 0 8px 20px rgba(0,0,0,0.5);
}
.onemai-scope .geosearch-results::-webkit-scrollbar { width: 6px; }
.onemai-scope .geosearch-results::-webkit-scrollbar-thumb { background: var(--line); }
.onemai-scope .geosearch-item {
  display: block;
  width: 100%;
  background: none;
  border: none;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  padding: 10px 12px;
  cursor: pointer;
  text-align: left;
  font-family: 'Inter Tight', sans-serif;
  transition: background 0.12s ease;
}
.onemai-scope .geosearch-item:last-child { border-bottom: none; }
.onemai-scope .geosearch-item:hover { background: rgba(107,0,190,0.2); }
.onemai-scope .geosearch-primary {
  display: block;
  font-size: 13px;
  color: var(--ink);
  font-weight: 500;
}
.onemai-scope .geosearch-secondary {
  display: block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  color: var(--ink-mute);
  letter-spacing: 0.04em;
  margin-top: 3px;
  text-transform: uppercase;
}
.onemai-scope .geosearch-status {
  padding: 12px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: var(--ink-mute);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
}
.onemai-scope .coord-display {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  color: var(--ink-mute);
  margin-bottom: 20px;
  letter-spacing: 0.05em;
}

.onemai-scope form { display: flex; flex-direction: column; gap: 18px; }
.onemai-scope .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.onemai-scope .field { display: flex; flex-direction: column; gap: 6px; }
.onemai-scope .field.full { grid-column: 1 / -1; }

.onemai-scope label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.onemai-scope label .required { color: var(--red); }
.onemai-scope label .optional { color: var(--ink-mute); font-size: 9px; }

.onemai-scope input[type=text],
.onemai-scope input[type=email],
.onemai-scope input[type=url],
.onemai-scope input[type=datetime-local],
.onemai-scope textarea,
.onemai-scope select {
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 10px 12px;
  font-family: 'Inter Tight', sans-serif;
  font-size: 14px;
  transition: border-color 0.15s ease;
  border-radius: 0;
}
.onemai-scope input:focus,
.onemai-scope textarea:focus,
.onemai-scope select:focus {
  outline: none;
  border-color: var(--red);
}
.onemai-scope textarea { resize: vertical; min-height: 80px; font-family: inherit; }
.onemai-scope select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23a8a199' fill='none' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}

.onemai-scope input[type=file] {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: var(--ink-dim);
}
.onemai-scope input[type=file]::file-selector-button {
  background: var(--line); color: var(--ink);
  border: none; padding: 8px 12px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
  cursor: pointer; margin-right: 12px;
}

.onemai-scope .multi-check-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 4px;
}
.onemai-scope .multi-check { display: block; position: relative; cursor: pointer; }
.onemai-scope .multi-check input { position: absolute; opacity: 0; }
.onemai-scope .multi-check span {
  display: block;
  padding: 7px 10px;
  border: 1px solid var(--line);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-dim);
  text-align: center;
  transition: all 0.12s ease;
}
.onemai-scope .multi-check:hover span { color: var(--cream); border-color: var(--ink-mute); }
.onemai-scope .multi-check input:checked + span {
  background: var(--cream);
  color: var(--bg);
  border-color: var(--cream);
}
.onemai-scope .multi-check input:disabled + span { opacity: 0.4; cursor: not-allowed; }

.onemai-scope .radio-pills { display: flex; gap: 4px; }
.onemai-scope .radio-pills label { flex: 1; cursor: pointer; }
.onemai-scope .radio-pills input { position: absolute; opacity: 0; }
.onemai-scope .radio-pills span {
  display: block;
  padding: 9px;
  border: 1px solid var(--line);
  text-align: center;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-dim);
  transition: all 0.12s ease;
}
.onemai-scope .radio-pills label:hover span { color: var(--cream); border-color: var(--ink-mute); }
.onemai-scope .radio-pills input:checked + span {
  background: var(--red);
  color: var(--cream);
  border-color: var(--red);
}

.onemai-scope .check-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px dashed var(--line);
  cursor: pointer;
}
.onemai-scope .check-row:first-of-type { border-top: none; padding-top: 0; }
.onemai-scope .check-row input { margin-top: 3px; accent-color: var(--red); }
.onemai-scope .check-row-text {
  font-size: 13px;
  color: var(--ink-dim);
  line-height: 1.4;
}
.onemai-scope .check-row-text strong { color: var(--cream); font-weight: 500; }
.onemai-scope .check-row-text a { color: var(--red); }

.onemai-scope .submit-btn {
  background: var(--red);
  color: var(--cream);
  border: none;
  padding: 16px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 18px;
  letter-spacing: 0.15em;
  cursor: pointer;
  transition: background 0.15s ease;
  margin-top: 8px;
}
.onemai-scope .submit-btn:hover { background: var(--red-deep); }
.onemai-scope .submit-btn:disabled { background: var(--line); color: var(--ink-mute); cursor: not-allowed; }

.onemai-scope .form-disclaimer {
  font-size: 11px;
  color: var(--ink-mute);
  line-height: 1.5;
  padding: 14px;
  border: 1px dashed var(--line);
  font-family: 'IBM Plex Mono', monospace;
}

.onemai-scope .form-error {
  padding: 12px 14px;
  border: 1px solid var(--red);
  background: var(--red-dark);
  color: var(--cream);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: 0.03em;
}
.onemai-scope .form-error ul { margin: 6px 0 0 16px; padding: 0; }

.onemai-scope .success-state { text-align: center; padding: 40px 28px; }
.onemai-scope .success-state h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 56px;
  color: var(--red);
  letter-spacing: 0.04em;
  margin-bottom: 12px;
  line-height: 0.9;
}
.onemai-scope .success-state p {
  font-family: 'Instrument Serif', serif;
  font-size: 18px;
  color: var(--ink);
  max-width: 420px;
  margin: 0 auto 28px;
  line-height: 1.4;
}

.onemai-scope .honeypot { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }

/* ============== FOOTER ============== */
.onemai-scope .onemai-footer {
  border-top: 1px solid var(--line);
  padding: 48px 24px;
  max-width: 1400px;
  margin: 0 auto;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--ink-mute);
  line-height: 1.6;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.onemai-scope .onemai-footer h4 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 16px;
  color: var(--cream);
  letter-spacing: 0.1em;
  margin-bottom: 14px;
}
.onemai-scope .onemai-footer a { color: var(--ink-dim); text-decoration: none; }
.onemai-scope .onemai-footer a:hover { color: var(--red); }
.onemai-scope .onemai-footer .disclaimer {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  margin-top: 32px;
  grid-column: 1 / -1;
  font-size: 10px;
  color: var(--ink-mute);
  line-height: 1.6;
}

/* ============== LEGAL / STATIC PAGES ============== */
.onemai-scope .legal {
  max-width: 780px;
  margin: 0 auto;
  padding: 60px 24px 80px;
}
.onemai-scope .legal h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(48px, 7vw, 84px);
  color: var(--cream);
  letter-spacing: 0.02em;
  line-height: 0.95;
  margin-bottom: 24px;
}
.onemai-scope .legal h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 24px;
  color: var(--cream);
  letter-spacing: 0.06em;
  margin: 36px 0 12px;
}
.onemai-scope .legal p, .onemai-scope .legal li {
  font-size: 14px;
  color: var(--ink-dim);
  line-height: 1.7;
  margin-bottom: 14px;
}
.onemai-scope .legal ul { padding-left: 20px; }
.onemai-scope .legal a { color: var(--red); }

/* ============== RESPONSIVE ============== */
@media (max-width: 900px) {
  .onemai-scope .map-section { grid-template-columns: 1fr; }
  .onemai-scope .event-sidebar { max-height: 400px; }
  .onemai-scope .hero h1 { font-size: clamp(60px, 18vw, 140px); }
  .onemai-scope .detail-drawer { width: 100%; }
  .onemai-scope .field-row { grid-template-columns: 1fr; }
  .onemai-scope .onemai-footer { grid-template-columns: 1fr; }
  .onemai-scope .onemai-header { padding: 12px 16px; }
  .onemai-scope .hero { padding: 40px 16px 28px; }
  .onemai-scope .filters { padding: 16px; gap: 14px; }
  .onemai-scope .map-section { padding: 16px; }
  .onemai-scope .modal-body { padding: 20px; }
  .onemai-scope .modal-header { padding: 20px; }
}
@media (max-width: 600px) {
  /* Keep the Add-Party button text on mobile (just shrink it),
     but drop the language toggle to save header width */
  .onemai-scope .add-party-btn {
    padding: 8px 12px;
    font-size: 12px;
    letter-spacing: 0.08em;
  }
  .onemai-scope .add-party-btn::before { font-size: 16px; }
  .onemai-scope .lang-toggle { display: none; }

  /* Keep the hero stats on one line — scale numbers + gap down to fit 4 columns */
  .onemai-scope .hero-stats {
    gap: 10px;
    flex-wrap: nowrap;
    font-size: 9px;
    letter-spacing: 0.06em;
  }
  .onemai-scope .hero-stats > div {
    padding-left: 8px;
    flex: 1 1 0;
    min-width: 0;
  }
  .onemai-scope .hero-stats .big {
    font-size: 24px;
    letter-spacing: 0.02em;
  }
}
