:root {
  color-scheme: dark;
  font-family:
    -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  --bg: #050a24;
  --bg-soft: #071a3e;
  --panel: #080d2d;
  --panel-strong: #040820;
  --text: #f8fbff;
  --muted: #9aa9c9;
  --line: rgba(139, 163, 210, 0.24);
  --grid-line: rgba(215, 253, 176, 0.09);
  --accent: #ff3b45;
  --green: #d7fdb0;
  --mint: #00aa6c;
  --yellow: #f5d35d;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
}

[data-theme="light"] {
  color-scheme: light;
  --bg: #f7f9ff;
  --bg-soft: #e4ebf7;
  --panel: rgba(255, 255, 255, 0.76);
  --panel-strong: rgba(255, 255, 255, 0.92);
  --text: #050817;
  --muted: #5f6b7f;
  --line: rgba(32, 45, 72, 0.16);
  --grid-line: rgba(35, 48, 76, 0.13);
  --shadow: 0 24px 60px rgba(30, 42, 66, 0.18);
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
}

body {
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  overflow-x: hidden;
}

main,
.view,
.app-shell,
.home-page,
.about-page,
.event-card,
.chat-message,
.chat-result,
.emergency-panel,
.detail,
.add-event-form {
  min-width: 0;
}

h1,
h2,
h3,
p,
a,
button,
label,
strong,
span {
  overflow-wrap: anywhere;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.loader {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-content: center;
  gap: 30px;
  background:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px),
    #020617;
  background-size: 34px 34px;
  color: var(--text);
  transition:
    opacity 420ms ease,
    visibility 420ms ease;
}

.loader.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.loader__logo {
  width: min(300px, 72vw);
  height: auto;
  justify-self: center;
  filter: drop-shadow(0 0 26px rgba(215, 253, 176, 0.22));
  transform-origin: 50% 52%;
  animation: wingBeat 1.35s ease-in-out infinite;
  will-change: transform;
}

.loader__bar {
  position: relative;
  width: min(280px, 64vw);
  height: 7px;
  overflow: hidden;
  border: 1px solid rgba(215, 253, 176, 0.42);
  border-radius: 999px;
  background: rgba(215, 253, 176, 0.08);
  box-shadow:
    0 0 28px rgba(215, 253, 176, 0.18),
    inset 0 0 18px rgba(215, 253, 176, 0.08);
}

.loader__bar span {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--green), #ffffff, var(--green));
  transform: translateX(-100%);
  animation: techLoad 3s cubic-bezier(0.45, 0, 0.18, 1) forwards;
}

@keyframes techLoad {
  0% {
    transform: translateX(-100%);
  }
  72% {
    transform: translateX(-18%);
  }
  90% {
    transform: translateX(-5%);
  }
  100% {
    transform: translateX(0);
  }
}

.app-shell {
  min-height: 100vh;
  background: var(--bg);
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: block;
  align-items: center;
  gap: 0 22px;
  height: 92px;
  padding: 0 max(18px, env(safe-area-inset-left)) 0 max(18px, env(safe-area-inset-right));
  background: rgba(5, 10, 36, 0.2);
  border-bottom: 0;
  backdrop-filter: none;
  pointer-events: none;
}

[data-theme="light"] .topbar {
  background: rgba(255, 255, 255, 0.2);
}

.brand {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1;
  display: block;
  height: 82px;
  line-height: 0;
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.brand img {
  display: block;
  width: 470px;
  height: auto;
  max-height: 82px;
  object-fit: contain;
  transform-origin: 50% 52%;
  animation: wingBeat 1.9s ease-in-out infinite;
  will-change: transform;
}

@keyframes wingBeat {
  0%,
  100% {
    transform: perspective(680px) rotateX(0deg) scaleX(1) scaleY(1);
  }

  18% {
    transform: perspective(680px) rotateX(7deg) scaleX(1.055) scaleY(0.975);
  }

  38% {
    transform: perspective(680px) rotateX(-3deg) scaleX(0.99) scaleY(1.02);
  }

  58% {
    transform: perspective(680px) rotateX(5deg) scaleX(1.035) scaleY(0.985);
  }
}

@media (prefers-reduced-motion: reduce) {
  .loader__logo,
  .brand img {
    animation: none;
  }
}

.theme-switch {
  position: absolute;
  left: max(18px, env(safe-area-inset-left));
  top: 18px;
  z-index: 2;
  display: flex;
  width: 112px;
  min-height: 34px;
  padding: 3px;
  border: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--panel-strong) 58%, transparent);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(18px) saturate(1.25);
  pointer-events: auto;
  transform: none;
}

.theme-btn,
.add-event-btn {
  font-family:
    -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  border: 0;
  cursor: pointer;
  color: var(--muted);
  font-size: 11px;
  font-weight: 400;
  text-transform: uppercase;
}

.theme-btn {
  flex: 1;
  min-width: 0;
  padding: 0 6px;
  border-radius: 999px;
  background: transparent;
}

.theme-btn.is-active {
  background: color-mix(in srgb, var(--green) 88%, transparent);
  color: #06101c;
  box-shadow: 0 6px 18px rgba(215, 253, 176, 0.18);
}

.filter-dock {
  position: fixed;
  top: 60px;
  left: max(18px, env(safe-area-inset-left));
  z-index: 11;
  display: grid;
  gap: 8px;
  justify-items: start;
  width: min(112px, calc(100vw - 36px));
  pointer-events: none;
}

.filter-toggle {
  display: grid;
  place-items: center;
  justify-self: stretch;
  width: 100%;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--panel-strong) 58%, transparent);
  color: var(--text);
  font-size: 11px;
  font-weight: 400;
  text-transform: uppercase;
  backdrop-filter: blur(18px) saturate(1.25);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
  pointer-events: auto;
}

.filter-toggle.is-active {
  border-color: color-mix(in srgb, #1024ff 58%, var(--line));
  background: #1024ff;
  color: #fff;
}

.velib-toggle {
  display: none;
}

[data-active-route="map"] .filter-dock,
[data-active-route="list"] .filter-dock {
  display: grid;
}

[data-active-route="chat"] .filter-dock,
[data-active-route="emergency"] .filter-dock {
  display: none;
}

[data-active-route="map"] .velib-toggle {
  display: grid;
}

.velib-toggle.is-active {
  border-color: #ff22a8;
  background: #ff22a8;
  color: #06101c;
  box-shadow: 0 0 20px rgba(255, 34, 168, 0.48);
}

.velib-toggle svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.add-event-btn {
  position: absolute;
  right: max(18px, env(safe-area-inset-right));
  top: 18px;
  z-index: 2;
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--panel-strong) 58%, transparent);
  color: var(--text);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(18px) saturate(1.25);
  pointer-events: auto;
  transform: none;
}

.topnav {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 24px;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 800;
}

.topnav a,
.tabbar a {
  color: var(--muted);
}

.topnav a.is-active,
.tabbar a.is-active {
  color: var(--text);
}

.topnav a.is-active::after {
  content: "";
  display: block;
  height: 2px;
  margin-top: 8px;
  background: var(--green);
}

.icon-btn,
.control-btn,
.dialog-close {
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  cursor: pointer;
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
}

main {
  padding-top: 0;
}

.view {
  display: none;
}

.view.is-active {
  display: block;
}

[data-active-route="home"],
[data-active-route="about"] {
  background: #fff;
}

[data-active-route="home"] .topbar,
[data-active-route="about"] .topbar,
[data-active-route="home"] .filter-dock,
[data-active-route="about"] .filter-dock,
[data-active-route="home"] .tabbar,
[data-active-route="about"] .tabbar {
  display: none;
}

.home-page,
.about-page {
  min-height: 100vh;
  min-height: 100dvh;
  background: #fff;
  color: #0a0a0a;
  font-family:
    -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
}

.about-actions {
  position: absolute;
  top: 22px;
  left: clamp(20px, 5vw, 64px);
  z-index: 20;
  display: flex;
  gap: 8px;
}

.about-actions__link {
  display: grid;
  place-items: center;
  min-height: 36px;
  padding: 0 15px;
  border: 1px solid #050505;
  border-radius: 999px;
  background: #fff;
  color: #050505;
  cursor: pointer;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.about-actions__link:hover {
  background: #050505;
  color: #fff;
}

.home-page.is-active .home-wing-logo,
.home-page.is-active .home-mobile-title,
.home-page.is-active .home-eyebrow,
.home-page.is-active .home-label,
.home-page.is-active #homeTitle,
.home-page.is-active .home-intro,
.home-page.is-active .home-event,
.home-page.is-active #openMapBtn,
.home-page.is-active .home-poster__topline,
.home-page.is-active .home-explore .home-section-number,
.home-page.is-active .home-explore > div {
  opacity: 0;
  transform: translateY(18px);
  animation: homeFadeIn 760ms cubic-bezier(0.2, 0.72, 0.25, 1) forwards;
}

.home-page.is-active .home-wing-logo {
  transform: rotate(-5deg);
  animation:
    homeLogoFade 760ms ease 80ms forwards,
    homeWingFloat 4.8s ease-in-out 840ms infinite;
}

.home-page.is-active .home-mobile-title {
  animation-delay: 140ms;
}

.home-page.is-active .home-eyebrow {
  animation-delay: 240ms;
}

.home-page.is-active .home-label {
  animation-delay: 310ms;
}

.home-page.is-active #homeTitle {
  animation-delay: 380ms;
}

.home-page.is-active .home-intro {
  animation-delay: 500ms;
}

.home-page.is-active .home-event {
  animation-delay: 590ms;
}

.home-page.is-active #openMapBtn {
  animation-delay: 680ms;
}

.home-page.is-active .home-poster__topline {
  animation-delay: 200ms;
}

.home-page.is-active .home-explore .home-section-number {
  animation-delay: 760ms;
}

.home-page.is-active .home-explore > div {
  animation-delay: 840ms;
}

@keyframes homeFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes homeLogoFade {
  to {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-page.is-active .home-wing-logo,
  .home-page.is-active .home-mobile-title,
  .home-page.is-active .home-eyebrow,
  .home-page.is-active .home-label,
  .home-page.is-active #homeTitle,
  .home-page.is-active .home-intro,
  .home-page.is-active .home-event,
  .home-page.is-active #openMapBtn,
  .home-page.is-active .home-poster__topline,
  .home-page.is-active .home-explore .home-section-number,
  .home-page.is-active .home-explore > div {
    opacity: 1;
    transform: none;
    animation: none;
  }
}

.home-nav {
  position: absolute;
  inset: 0 0 auto;
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 82px;
  padding: 0 clamp(22px, 4vw, 64px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  color: #fff;
  mix-blend-mode: difference;
}

.home-wordmark {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.06em;
}

.about-page .home-nav {
  position: relative;
  color: #0a0a0a;
  mix-blend-mode: normal;
  border-bottom-color: #d8d8d8;
}

.about-simple {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 100vh;
  max-width: 1060px;
  padding: clamp(112px, 12vw, 170px) clamp(28px, 5vw, 72px) clamp(28px, 5vw, 72px);
  background: #fff;
  color: #050505;
}

.about-simple__label {
  margin: 0 0 20px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.about-simple h1 {
  max-width: 980px;
  margin: 0;
  font-family:
    -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(40px, 6vw, 86px);
  font-style: normal;
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 0.98;
  text-transform: none;
}

.about-simple > p:not(.about-simple__label) {
  max-width: 760px;
  margin: 30px 0 0;
  font-size: clamp(18px, 2vw, 28px);
  font-weight: 700;
  line-height: 1.32;
}

.about-simple h2 {
  margin: clamp(74px, 11vw, 150px) 0 0;
  font-size: clamp(32px, 4.5vw, 62px);
  font-weight: 800;
  letter-spacing: -0.045em;
}

.about-simple__button {
  display: inline-grid;
  place-items: center;
  min-width: 154px;
  min-height: 50px;
  margin-top: 42px;
  padding: 0 28px;
  border-radius: 999px;
  background: #050505;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.about-simple__button:hover {
  background: #ff3b45;
  color: #050505;
}

.home-nav__link,
.home-text-link {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.home-hero {
  position: relative;
  display: block;
  min-height: 100vh;
  overflow: hidden;
  border-bottom: 1px solid #050a24;
  background: #050a24;
}

.home-hero__copy {
  position: relative;
  z-index: 4;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 100vh;
  max-width: 820px;
  padding: 100px clamp(24px, 5vw, 76px) 20px;
  color: #fff;
}

.home-wing-logo {
  position: absolute;
  top: 158px;
  right: clamp(32px, 7vw, 110px);
  left: auto;
  z-index: 6;
  width: clamp(150px, 17vw, 250px);
  height: auto;
  filter:
    brightness(0)
    invert(1)
    contrast(1.35)
    drop-shadow(0 5px 12px rgba(0, 0, 0, 0.55));
  opacity: 1;
  pointer-events: none;
  transform: rotate(-5deg);
  animation: homeWingFloat 4.8s ease-in-out infinite;
}

@keyframes homeWingFloat {
  0%,
  100% {
    transform: translateY(0) rotate(-5deg);
  }
  50% {
    transform: translateY(-10px) rotate(-2deg);
  }
}

.home-eyebrow {
  max-width: 190px;
  margin: 0 0 26px;
  padding: 8px 10px;
  border: 1px solid #fff;
  background: #d7fdb0;
  color: #050a24;
  font-size: 11px;
  font-weight: 650;
  line-height: 1.2;
  text-transform: uppercase;
}

.home-mobile-title {
  display: grid;
  align-self: flex-start;
  margin: 0 0 30px;
  color: #fff;
  font-family: "Helvetica Hebrew", Helvetica, Arial, sans-serif;
  font-size: clamp(76px, 9vw, 132px);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.1em;
  line-height: 0.56;
  text-transform: uppercase;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.34);
}

.home-mobile-title strong {
  margin: 0 0 24px 8px;
  color: #fff;
  font-family:
    -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}

.home-mobile-title span:last-child {
  color: #d7fdb0;
}

.home-label {
  margin: 0 0 14px;
  color: #d7fdb0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.home-label span {
  margin-right: 16px;
  color: #fff;
  font-size: 16px;
  letter-spacing: -0.04em;
}

.home-hero h1,
.about-intro h1 {
  max-width: 1050px;
  margin: 0;
  font-family:
    -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(46px, 4.5vw, 68px);
  font-style: normal;
  font-weight: 850;
  letter-spacing: -0.065em;
  line-height: 0.92;
  text-transform: none;
}

.home-intro,
.about-intro > p:last-child {
  max-width: 560px;
  margin: 20px 0 0;
  font-size: clamp(17px, 1.7vw, 23px);
  font-weight: 750;
  letter-spacing: -0.025em;
  line-height: 1.25;
}

.home-event {
  display: grid;
  gap: 5px;
  margin: 18px 0 14px;
  font-size: 14px;
}

.home-poster {
  position: absolute;
  inset: 0;
  z-index: 1;
  min-height: 100%;
  overflow: hidden;
  background: #050a24;
  color: #fff;
  isolation: isolate;
}

.home-poster img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 62%;
  filter: none;
}

.home-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  background: rgba(5, 10, 36, 0.14);
  pointer-events: none;
}

.home-poster__topline {
  position: absolute;
  top: 82px;
  right: 0;
  left: auto;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(350px, 45vw);
  height: 56px;
  padding: 0 18px;
  background: #d7fdb0;
  color: #050a24;
  font-size: 12px;
  font-weight: 800;
}

.home-poster__topline > span:last-child {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.home-poster__topline strong {
  font-size: 18px;
}

.home-poster__title {
  display: none;
}

.home-wing-logo {
  z-index: 12;
}

.home-event strong {
  font-size: 22px;
  font-weight: 600;
}

.home-event span {
  color: #fff;
  font-weight: 800;
}

.home-primary-btn {
  display: inline-grid;
  place-items: center;
  justify-self: start;
  align-self: flex-start;
  min-width: 150px;
  min-height: 48px;
  padding: 0 26px;
  border: 1px solid #d7fdb0;
  border-radius: 999px;
  background: #d7fdb0;
  color: #050a24;
  cursor: pointer;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition:
    background 180ms ease,
    color 180ms ease;
}

.home-primary-btn:hover {
  background: #ff3b45;
  color: #050a24;
}

.home-explore,
.about-promote {
  display: grid;
  grid-template-columns: minmax(120px, 0.35fr) minmax(0, 1.65fr);
  column-gap: clamp(24px, 6vw, 100px);
  padding: clamp(70px, 10vw, 140px) clamp(22px, 4vw, 64px);
  background:
    linear-gradient(rgba(215, 253, 176, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(215, 253, 176, 0.16) 1px, transparent 1px),
    #050a24;
  background-size: 38px 38px;
  color: #fff;
}

.home-section-number {
  margin: 5px 0 0;
  color: #d7fdb0;
  font-size: 11px;
}

.home-explore > div,
.about-promote > div {
  max-width: 850px;
}

.home-explore h2,
.about-promote h2 {
  margin: 0 0 34px;
  font-size: clamp(36px, 5vw, 78px);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.home-explore p,
.about-promote > div > p,
.about-intro > p {
  max-width: 720px;
  margin: 0 0 22px;
  font-size: clamp(17px, 1.7vw, 24px);
  line-height: 1.4;
}

.home-text-link {
  display: inline-flex;
  gap: 12px;
  margin-top: 24px;
  padding-bottom: 5px;
  border-bottom: 1px solid #d7fdb0;
  color: #d7fdb0;
}

.about-intro .home-label {
  grid-column: 1;
  grid-row: 1 / span 3;
}

.about-intro h1,
.about-intro > p:last-child {
  grid-column: 2;
}

.about-intro h1 {
  font-style: normal;
  line-height: 0.98;
}

.about-promote,
.about-promote > div > p {
  color: #151515;
}

.promote-options dd {
  color: #252525;
}

.promote-options {
  margin: 54px 0 42px;
  border-top: 1px solid #bdbdbd;
}

.promote-options > div {
  display: grid;
  grid-template-columns: minmax(160px, 0.45fr) minmax(0, 1fr);
  gap: 28px;
  padding: 24px 0;
  border-bottom: 1px solid #bdbdbd;
}

.promote-options dt {
  font-size: 16px;
  font-weight: 650;
}

.promote-options dd {
  margin: 0;
  color: #151515;
  font-size: 16px;
  line-height: 1.45;
}

.landing {
  min-height: 100vh;
  padding: 96px 6vw 80px;
  background:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px),
    var(--bg);
  background-size: 42px 42px;
}

.landing.is-active {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(320px, 1fr);
  align-items: center;
  gap: 42px;
}

.kicker {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.landing h1,
.section-head h2,
.detail h2 {
  font-family:
    -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", system-ui,
    sans-serif;
  font-weight: 600;
  margin: 0;
  line-height: 1;
  letter-spacing: 0;
}

.landing h1 {
  max-width: 760px;
  font-size: clamp(36px, 6vw, 72px);
}

.landing p:not(.kicker) {
  max-width: 560px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.landing__actions,
.event-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.event-teaser .event-actions {
  gap: 10px;
  margin-top: 26px;
}

.primary-btn,
.secondary-btn {
  display: inline-grid;
  place-items: center;
  min-width: 78px;
  height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--line) 72%, transparent);
  cursor: pointer;
  font-family:
    -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  font-weight: 400;
  font-size: 11px;
  line-height: 1;
  text-transform: uppercase;
  backdrop-filter: blur(16px) saturate(1.22);
  transition:
    transform 180ms cubic-bezier(0.34, 1.56, 0.64, 1),
    background 180ms ease,
    opacity 180ms ease;
}

.primary-btn:active,
.secondary-btn:active,
.theme-btn:active,
.tabbar a:active {
  transform: scale(0.96);
}

.add-event-btn:active {
  transform: translateY(-50%) scale(0.96);
}

.event-teaser .primary-btn,
.event-teaser .secondary-btn {
  width: 88px;
  min-width: 88px;
  height: 34px;
  padding: 0 14px;
}

.primary-btn {
  background: color-mix(in srgb, var(--text) 12%, transparent);
  color: var(--text);
  backdrop-filter: blur(12px);
}

.secondary-btn {
  background: color-mix(in srgb, var(--panel) 64%, transparent);
  color: var(--text);
  backdrop-filter: blur(12px);
}

button[data-open-event] {
  border-color: color-mix(in srgb, var(--green) 80%, transparent);
  background: color-mix(in srgb, var(--green) 88%, transparent);
  color: #06101c;
}

.landing__map-preview {
  position: relative;
  min-height: 520px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px),
    var(--bg-soft);
  background-size: 42px 42px;
}

.preview-pin {
  display: block;
  position: relative;
  width: 25px;
  height: 25px;
  border-radius: 50% 50% 50% 0;
  border: 2px solid #fff;
  transform: rotate(-45deg);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.preview-pin::after {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
}

.leaflet-marker-icon .marker-pin {
  --pin-color: var(--accent);
  --pin-color-soft: color-mix(in srgb, var(--pin-color) 52%, transparent);
  position: relative;
  display: block;
  width: 16px;
  height: 16px;
  border: 1.5px solid rgba(255, 255, 255, 0.88);
  border-radius: 999px;
  background:
    radial-gradient(circle at 34% 30%, rgba(255, 255, 255, 0.72), transparent 20%),
    linear-gradient(145deg, color-mix(in srgb, var(--pin-color) 94%, white), var(--pin-color) 52%, color-mix(in srgb, var(--pin-color) 82%, black));
  box-shadow:
    0 0 0 5px var(--pin-color-soft),
    0 8px 18px rgba(0, 0, 0, 0.38),
    inset 0 -2px 5px rgba(0, 0, 0, 0.18);
}

.leaflet-marker-icon .marker-pin::before,
.leaflet-marker-icon .marker-pin::after {
  content: "";
  position: absolute;
  inset: -7px;
  border-radius: inherit;
  border: 1.5px solid var(--pin-color);
  opacity: 0.54;
  animation: pinPulse 1.9s ease-out infinite;
}

.leaflet-marker-icon .marker-pin::after {
  animation-delay: 0.72s;
}

@keyframes pinPulse {
  0% {
    opacity: 0.46;
    transform: scale(0.65);
  }
  80%,
  100% {
    opacity: 0;
    transform: scale(1.9);
  }
}

.preview-pin {
  position: absolute;
}

.preview-pin--one {
  top: 24%;
  left: 32%;
  background: var(--accent);
}

.preview-pin--two {
  top: 39%;
  right: 22%;
  background: var(--green);
}

.preview-pin--three {
  bottom: 32%;
  left: 58%;
  background: var(--mint);
}

.preview-user {
  position: absolute;
  top: 48%;
  left: 42%;
  width: 16px;
  height: 16px;
  border: 4px solid color-mix(in srgb, var(--green) 70%, white);
  border-radius: 50%;
  box-shadow: 0 0 0 8px rgba(185, 255, 128, 0.16);
}

.preview-card,
.event-teaser,
.event-card,
.event-dialog::backdrop,
.chat-message,
.filters {
  border-radius: 8px;
}

.preview-card {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  padding: 22px;
  background: var(--panel);
  border: 1px solid var(--line);
}

.preview-card p,
.event-card__genre,
.detail-genre {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.preview-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 18px;
}

.preview-card span {
  color: var(--muted);
}

.map-layout {
  position: relative;
  min-height: 100vh;
}

.map-layout.is-active {
  display: block;
}

.map {
  width: 100%;
  height: 100vh;
  background: var(--bg-soft);
}

.leaflet-control-container {
  display: none;
}

.leaflet-container {
  overflow: hidden;
}

.leaflet-pane,
.leaflet-tile,
.leaflet-marker-icon,
.leaflet-marker-shadow,
.leaflet-tile-container,
.leaflet-pane > svg,
.leaflet-pane > canvas,
.leaflet-zoom-box,
.leaflet-image-layer,
.leaflet-layer {
  position: absolute;
  left: 0;
  top: 0;
}

.leaflet-tile,
.leaflet-marker-icon {
  user-select: none;
  -webkit-user-drag: none;
}

.leaflet-tile-pane {
  z-index: 200;
}

.leaflet-overlay-pane {
  z-index: 400;
}

.leaflet-marker-pane {
  z-index: 600;
}

.leaflet-tile-pane {
  filter: saturate(0.82) contrast(1.04);
}

[data-theme="dark"] .leaflet-tile-pane {
  filter: invert(1) hue-rotate(180deg) saturate(0.75) brightness(0.72) contrast(1.12);
}

[data-theme="light"] .leaflet-tile-pane {
  filter: invert(1) hue-rotate(180deg) saturate(0.45) brightness(1.36) contrast(0.82);
}

.marker-label {
  position: absolute;
  left: 50%;
  bottom: 27px;
  transform: translateX(-50%);
  padding: 3px 6px;
  border-radius: 3px;
  background: var(--panel);
  color: var(--text);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  white-space: nowrap;
}

.leaflet-marker-icon.event-marker {
  position: absolute;
}

.leaflet-marker-icon.hospital-marker {
  position: absolute;
}

.leaflet-marker-icon.velib-marker {
  position: absolute;
}

.hospital-pin {
  position: relative;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 999px;
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.92), transparent 28%),
    linear-gradient(145deg, #ff7a7b, #ff4a4c);
  color: #fff;
  font-size: 15px;
  line-height: 1;
  box-shadow:
    0 0 0 5px rgba(255, 74, 76, 0.18),
    0 8px 24px rgba(0, 0, 0, 0.32);
}

.hospital-pin::before {
  content: "";
  position: absolute;
  inset: -8px;
  border: 1px solid rgba(255, 74, 76, 0.7);
  border-radius: inherit;
  animation: pinPulse 2.2s ease-out infinite;
}

.velib-pin {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 42px;
  height: 24px;
  padding: 0 8px;
  border: 1px solid rgba(71, 240, 255, 0.42);
  border-radius: 999px;
  background: rgba(16, 36, 255, 0.58);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 0 0 4px rgba(71, 240, 255, 0.08);
  backdrop-filter: blur(10px) saturate(1.16);
}

.velib-bike {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

[data-theme="light"] .velib-pin {
  border-color: rgba(16, 36, 255, 0.24);
  background: rgba(16, 36, 255, 0.44);
  box-shadow: 0 0 0 4px rgba(16, 36, 255, 0.08);
}

.hospital-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.user-location-marker {
  position: relative;
  display: grid;
  place-items: center;
  width: 96px;
  height: 48px;
  pointer-events: none;
}

.user-location-star {
  position: relative;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 999px;
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.95), transparent 28%),
    linear-gradient(145deg, #d7fdb0, #78f4c5);
  color: #06101c;
  font-size: 17px;
  line-height: 1;
  box-shadow:
    0 0 0 7px rgba(215, 253, 176, 0.16),
    0 8px 24px rgba(0, 0, 0, 0.28);
}

.user-location-star::before,
.user-location-star::after {
  content: "";
  position: absolute;
  inset: -8px;
  border: 1px solid rgba(215, 253, 176, 0.76);
  border-radius: inherit;
  animation: pinPulse 1.9s ease-out infinite;
}

.user-location-star::after {
  animation-delay: 0.72s;
}

.user-location-label {
  position: absolute;
  left: 50%;
  top: 32px;
  min-width: max-content;
  padding: 4px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--panel-strong) 74%, transparent);
  color: var(--text);
  font-size: 10px;
  transform: translateX(-50%);
  backdrop-filter: blur(12px);
}

.map-controls {
  position: absolute;
  right: 18px;
  top: 102px;
  z-index: 5;
  display: grid;
  gap: 8px;
}

.map-search {
  position: absolute;
  top: 102px;
  left: max(18px, env(safe-area-inset-left));
  z-index: 7;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px;
  width: calc(100vw - 96px);
  max-width: 620px;
  transform: none;
}

.map-search > input {
  min-width: 0;
  height: 34px;
  min-height: 34px;
  padding: 0 16px;
  border: 1px solid color-mix(in srgb, var(--line) 78%, transparent);
  border-right: 0;
  border-radius: 999px 0 0 999px;
  outline: 0;
  background: color-mix(in srgb, var(--panel-strong) 78%, transparent);
  color: var(--text);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(20px) saturate(1.25);
}

.map-search > input::placeholder {
  color: var(--muted);
}

.map-search > button {
  display: grid;
  place-items: center;
  border: 1px solid #ff22a8;
  border-radius: 0 999px 999px 0;
  background: #ff22a8;
  color: #06101c;
  cursor: pointer;
  font-size: 22px;
}

.map-search__suggestions {
  position: absolute;
  top: 40px;
  left: 0;
  right: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: color-mix(in srgb, var(--panel-strong) 94%, transparent);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.map-search__suggestions button {
  display: grid;
  gap: 3px;
  width: 100%;
  padding: 11px 14px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  text-align: left;
}

.map-search__suggestions button:hover,
.map-search__suggestions button:focus-visible {
  background: rgba(255, 34, 168, 0.12);
}

.map-search__suggestions strong {
  font-size: 12px;
}

.map-search__suggestions span,
.map-search__empty {
  color: var(--muted);
  font-size: 10px;
}

.map-search__empty {
  margin: 0;
  padding: 14px;
}

.map-search-marker {
  background: transparent;
  border: 0;
}

.map-search-pin {
  position: absolute;
  left: 6px;
  top: 3px;
  width: 30px;
  height: 30px;
  border: 3px solid #fff;
  border-radius: 50% 50% 50% 0;
  background: #ff22a8;
  box-shadow:
    0 0 8px #ff22a8,
    0 0 22px #ff22a8,
    0 0 42px rgba(255, 34, 168, 0.95);
  transform: rotate(-45deg);
}

.map-search-pin::after {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 10px #fff;
}

.map-search-nearby {
  display: grid;
  gap: 6px;
  margin-top: 12px;
}

.map-search-nearby button {
  display: grid;
  gap: 3px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  text-align: left;
}

.map-search-nearby span {
  color: var(--muted);
  font-size: 10px;
}

.control-btn {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  font-size: 20px;
  font-weight: 900;
}

.event-teaser {
  position: absolute;
  left: max(18px, env(safe-area-inset-left));
  right: max(18px, env(safe-area-inset-right));
  bottom: 92px;
  z-index: 5;
  max-width: 430px;
  padding: 16px;
  background: color-mix(in srgb, var(--panel-strong) 68%, transparent);
  border: 1px solid color-mix(in srgb, var(--line) 76%, transparent);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px) saturate(1.2);
  transform-origin: 30% 100%;
  animation: teaserJelly 520ms cubic-bezier(0.16, 1.25, 0.3, 1) both;
}

[data-theme="light"] .event-teaser {
  background: rgba(255, 255, 255, 0.72);
}

@keyframes teaserJelly {
  0% {
    opacity: 0;
    transform: translateY(14px) scale(0.96, 0.9);
  }
  58% {
    opacity: 1;
    transform: translateY(-2px) scale(1.015, 1.025);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.teaser-close {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--panel-strong) 62%, transparent);
  color: var(--muted);
  cursor: pointer;
  font-family:
    -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1;
  backdrop-filter: blur(12px);
}

.event-teaser:empty {
  display: none;
}

.location-dialog {
  width: min(360px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  padding: 0;
  overflow: auto;
  border: 1px solid color-mix(in srgb, var(--line) 76%, transparent);
  border-radius: 18px;
  background: color-mix(in srgb, var(--panel-strong) 68%, transparent);
  color: var(--text);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px) saturate(1.2);
  animation: teaserJelly 520ms cubic-bezier(0.16, 1.25, 0.3, 1) both;
}

.location-dialog::backdrop {
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
}

[data-theme="light"] .location-dialog {
  background: rgba(255, 255, 255, 0.78);
}

.location-card {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 24px;
  text-align: center;
}

.location-card h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 500;
}

.location-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.location-card .event-actions {
  justify-content: center;
  margin-top: 8px;
}

.location-star {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: var(--green);
  color: #06101c;
  font-size: 22px;
}

.event-title {
  margin: 0 0 8px;
  font-family: "Helvetica Hebrew", Helvetica, Arial, sans-serif;
  font-size: 17px;
  font-weight: 400;
}

.event-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.teaser-description {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.list-view,
.chat-view,
.emergency-view {
  min-height: calc(100vh - 92px);
  padding: 134px 6vw 110px;
  background: var(--bg);
}

.list-view {
  background:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px),
    var(--bg);
  background-size: 34px 34px;
  color: var(--text);
}

.list-view .section-head {
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  max-width: 760px;
  padding: 0;
  border-bottom: 0;
  background: transparent;
  text-align: center;
}

.list-view .section-head .kicker {
  position: static;
  margin: 0 0 8px;
  color: var(--green);
  font-family: Didot, "Bodoni 72", "Times New Roman", serif;
  font-size: 15px;
  font-style: italic;
  font-weight: 400;
  text-transform: none;
}

.list-view .section-head h2 {
  color: var(--text);
  font-size: clamp(32px, 8vw, 62px);
  font-weight: 400;
}

.emergency-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 14px;
}

.emergency-panel {
  display: grid;
  align-content: start;
  gap: 9px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: color-mix(in srgb, var(--panel-strong) 72%, transparent);
  backdrop-filter: blur(16px) saturate(1.12);
  overflow: hidden;
}

.emergency-panel--primary {
  border-color: rgba(255, 74, 76, 0.42);
}

.emergency-panel summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 56px;
  padding: 16px;
  color: #ff4a4c;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  cursor: pointer;
  list-style: none;
}

.emergency-panel summary::-webkit-details-marker {
  display: none;
}

.emergency-panel summary::after {
  content: "+";
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  font-size: 16px;
  line-height: 1;
}

.emergency-panel[open] summary::after {
  content: "-";
}

.emergency-panel a {
  display: grid;
  gap: 3px;
  padding: 12px 16px;
  border-top: 1px solid var(--line);
}

.emergency-panel strong {
  font-size: 14px;
  font-weight: 500;
}

.emergency-panel span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.section-head h2 {
  font-size: clamp(30px, 6vw, 56px);
}

.filters {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  padding: 12px;
  border: 1px solid color-mix(in srgb, var(--line) 76%, transparent);
  border-radius: 18px;
  background: color-mix(in srgb, var(--panel-strong) 62%, transparent);
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(22px) saturate(1.24);
  pointer-events: auto;
}

.filters[hidden] {
  display: none;
}

.filters label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

select,
input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-strong);
  color: var(--text);
  min-height: 44px;
  padding: 0 12px;
}

textarea {
  min-height: 104px;
  padding: 12px;
  resize: vertical;
  font-size: 13px;
}

select[multiple] {
  min-height: 172px;
  padding: 8px;
}

select[multiple] option {
  padding: 4px 6px;
}

select,
input {
  font-size: 13px;
}

.event-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 14px;
}

.list-view .event-list {
  grid-template-columns: 1fr;
  max-width: 760px;
  margin: 0 auto;
  gap: 12px;
}

.event-card {
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
}

.list-view .event-card {
  border: 1px solid color-mix(in srgb, var(--line) 78%, transparent);
  border-radius: 18px;
  background: color-mix(in srgb, var(--panel-strong) 64%, transparent);
  color: var(--text);
  box-shadow: 0 20px 54px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(22px) saturate(1.16);
}

.event-card img,
.event-flyer img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.event-card__body {
  padding: 16px;
}

.list-view .event-card__body {
  display: grid;
  gap: 8px;
  padding: 16px;
}

.event-card h3 {
  margin: 0 0 10px;
  font-family: "Helvetica Hebrew", Helvetica, Arial, sans-serif;
  font-size: 17px;
  font-weight: 700;
}

.list-view .event-card h3 {
  margin: 0;
  color: var(--text);
  font-family: "Helvetica Hebrew", Helvetica, Arial, sans-serif;
  font-size: clamp(24px, 6vw, 42px);
  font-weight: 800;
  line-height: 0.9;
  text-transform: uppercase;
}

.event-card p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.list-view .event-card p {
  color: var(--muted);
  font-size: 12px;
}

.list-view .event-card__genre {
  color: var(--accent);
  font-size: 9px;
  font-weight: 400;
}

.list-view .event-meta {
  justify-content: space-between;
  color: var(--muted);
}

.list-view .event-actions {
  justify-content: flex-end;
  margin-top: 10px;
}

.list-view .event-actions .primary-btn,
.list-view .event-actions .secondary-btn {
  min-width: 74px;
  height: 32px;
  border-color: color-mix(in srgb, var(--line) 88%, transparent);
  background: color-mix(in srgb, var(--panel) 62%, transparent);
  color: var(--text);
  font-size: 10px;
  font-weight: 400;
}

.list-view .event-actions .primary-btn {
  border-color: color-mix(in srgb, var(--green) 80%, transparent);
  background: color-mix(in srgb, var(--green) 88%, transparent);
  color: #06101c;
}

.empty-state {
  margin: 0;
  padding: 20px;
  border: 1px solid color-mix(in srgb, var(--line) 78%, transparent);
  border-radius: 18px;
  background: color-mix(in srgb, var(--panel-strong) 62%, transparent);
  color: var(--muted);
  text-align: center;
  backdrop-filter: blur(18px) saturate(1.14);
}

.chat-view.is-active {
  display: grid;
  grid-template-rows: auto 1fr auto;
  justify-items: center;
}

.chat-log {
  display: grid;
  align-content: start;
  gap: 14px;
  max-width: 760px;
  width: 100%;
}

.chat-message {
  width: min(680px, 100%);
  padding: 16px 18px;
  border: 1px solid color-mix(in srgb, var(--line) 78%, transparent);
  border-radius: 20px;
  background: color-mix(in srgb, var(--panel-strong) 52%, transparent);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.14);
  backdrop-filter: blur(22px) saturate(1.18);
  animation: chatFadeIn 420ms ease both;
}

.chat-message.is-user {
  justify-self: end;
  width: fit-content;
  max-width: min(560px, 82%);
  border-color: color-mix(in srgb, var(--green) 30%, var(--line));
  background: color-mix(in srgb, var(--panel-strong) 34%, transparent);
  color: var(--text);
}

[data-theme="light"] .chat-message.is-user {
  border-color: rgba(32, 45, 72, 0.16);
  background: rgba(255, 255, 255, 0.42);
}

.chat-message.is-user p,
.chat-message.is-user strong {
  color: var(--text);
}

.chat-message p {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.38;
}

.chat-message strong {
  color: var(--text);
  font-size: 16px;
  font-weight: 700;
}

.chat-form {
  position: sticky;
  bottom: 84px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  align-self: end;
  gap: 7px;
  width: min(720px, 100%);
  max-width: 720px;
  height: 54px;
  max-height: 54px;
  margin-top: 18px;
  padding: 6px;
  border: 1px solid color-mix(in srgb, var(--line) 78%, transparent);
  border-radius: 24px;
  background: color-mix(in srgb, var(--panel-strong) 46%, transparent);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.14);
  backdrop-filter: blur(22px) saturate(1.22);
}

.chat-form input {
  align-self: center;
  min-height: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font-size: 14px;
}

.chat-form .primary-btn {
  height: 42px;
  min-width: 64px;
  padding: 0 14px;
  background: color-mix(in srgb, var(--green) 88%, transparent);
  color: #06101c;
}

.chat-results {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.chat-result {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid color-mix(in srgb, var(--line) 78%, transparent);
  border-radius: 16px;
  background: color-mix(in srgb, var(--panel) 48%, transparent);
  backdrop-filter: blur(16px) saturate(1.16);
  animation: chatFadeIn 520ms ease both;
}

.chat-result h3 {
  margin: 0;
  font-family: "Helvetica Hebrew", Helvetica, Arial, sans-serif;
  font-size: clamp(19px, 4vw, 28px);
  font-weight: 800;
  line-height: 0.96;
  text-transform: uppercase;
}

.chat-result p {
  margin: 0;
}

.chat-loading {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--text);
}

.chat-loading span {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--green);
  animation: loadingDot 900ms ease-in-out infinite;
}

.chat-loading span:nth-child(2) {
  animation-delay: 120ms;
}

.chat-loading span:nth-child(3) {
  animation-delay: 240ms;
}

.chat-loading strong {
  margin-left: 4px;
}

@keyframes chatFadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes loadingDot {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.46;
  }
  50% {
    transform: translateY(-6px);
    opacity: 1;
  }
}

.event-dialog,
.form-dialog {
  width: min(920px, calc(100vw - 28px));
  max-height: min(820px, calc(100vh - 28px));
  max-height: min(820px, calc(100dvh - 28px));
  padding: 0;
  overflow: auto;
  background: color-mix(in srgb, var(--panel) 78%, transparent);
  color: var(--text);
  border: 1px solid color-mix(in srgb, var(--line) 76%, transparent);
  border-radius: 18px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px) saturate(1.2);
  animation: teaserJelly 520ms cubic-bezier(0.16, 1.25, 0.3, 1) both;
}

.event-dialog {
  width: min(620px, calc(100vw - 28px));
  background:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px),
    color-mix(in srgb, var(--panel-strong) 74%, transparent);
  background-size: 22px 22px;
}

.event-dialog::backdrop,
.form-dialog::backdrop {
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(5px);
}

.dialog-close {
  position: sticky;
  top: 12px;
  left: calc(100% - 50px);
  z-index: 3;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 24px;
}

.detail {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.detail-hero {
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: 20px 18px 22px;
  border: 1px solid color-mix(in srgb, var(--green) 68%, transparent);
  border-radius: 18px;
  background: var(--green);
  color: #06101c;
  text-align: center;
}

.detail-body {
  padding: 6px 2px 2px;
}

.detail h2 {
  max-width: 13ch;
  margin: 0;
  font-family: "Helvetica Hebrew", Helvetica, Arial, sans-serif;
  font-size: clamp(42px, 12vw, 76px);
  font-weight: 900;
  line-height: 0.82;
  text-transform: uppercase;
}

.detail-hero .detail-genre {
  margin: 0;
  color: #06101c;
  text-align: center;
}

.detail-hero .event-meta {
  justify-content: center;
  color: #06101c;
  font-weight: 700;
  text-align: center;
}

.detail-description {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.detail-info {
  display: grid;
  gap: 7px;
  margin: 18px 0;
  color: var(--text);
  font-size: 13px;
  line-height: 1.42;
  text-align: left;
}

.detail-info p {
  margin: 0;
}

.detail-info a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.detail .event-actions .primary-btn {
  border-color: color-mix(in srgb, var(--green) 80%, transparent);
  background: color-mix(in srgb, var(--green) 88%, transparent);
  color: #06101c;
}

.route-note {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
}

.form-dialog {
  width: min(560px, calc(100vw - 28px));
  border-color: #0c0c0c;
  border-radius: 20px;
  background: #1024ff;
  color: #fff;
  box-shadow: 0 24px 80px rgba(16, 36, 255, 0.34);
}

.form-dialog::backdrop {
  background: rgba(0, 0, 0, 0.46);
  backdrop-filter: blur(4px);
}

.form-dialog .dialog-close {
  background: rgba(255, 255, 255, 0.9);
  color: #1024ff;
  border-color: transparent;
}

.add-event-form {
  display: grid;
  gap: 12px;
  padding: 2px 18px 18px;
}

.add-event-form,
.add-event-form label,
.genre-picker {
  font-family:
    -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
}

.add-event-form .kicker {
  font-family: "Helvetica Hebrew", Helvetica, Arial, sans-serif;
  color: #fff;
  font-size: clamp(22px, 5vw, 34px);
  font-style: italic;
  font-weight: 400;
  line-height: 1;
  text-transform: lowercase;
}

.add-event-form label,
.genre-picker__head {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
  text-transform: uppercase;
}

.add-event-form label,
.genre-picker__head {
  color: rgba(255, 255, 255, 0.72);
  font-size: 10px;
}

.add-event-form input,
.add-event-form textarea,
.add-event-form select {
  border-color: transparent;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  color: #1024ff;
}

.add-event-form input::placeholder,
.add-event-form textarea::placeholder {
  color: rgba(16, 36, 255, 0.48);
}

.address-field {
  position: relative;
}

.address-suggestions {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 8;
  overflow: hidden;
  border: 1px solid rgba(215, 253, 176, 0.32);
  border-radius: 14px;
  background: #080d2d;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.42);
}

.address-suggestions button {
  display: block;
  width: 100%;
  padding: 11px 13px;
  border: 0;
  border-bottom: 1px solid rgba(139, 163, 210, 0.18);
  background: transparent;
  color: #fff;
  cursor: pointer;
  font-size: 12px;
  text-align: left;
  text-transform: none;
}

.address-suggestions button:last-child {
  border-bottom: 0;
}

.address-suggestions button:hover,
.address-suggestions button:focus-visible {
  background: rgba(215, 253, 176, 0.12);
  color: var(--green);
}

.genre-picker {
  display: grid;
  gap: 8px;
}

.genre-picker__head {
  grid-template-columns: 1fr auto;
  align-items: center;
}

.genre-summary {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  text-transform: none;
}

.genre-panel {
  display: grid;
  gap: 12px;
  max-height: 320px;
  overflow: auto;
  padding: 12px;
  border: 1px solid var(--line);
  border-color: rgba(255, 255, 255, 0.34);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.12);
}

.genre-panel[hidden] {
  display: none;
}

.genre-panel fieldset {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 8px;
  margin: 0;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 10px;
}

.genre-panel legend {
  padding: 0 6px;
  color: #fff;
  font-size: 10px;
  text-transform: uppercase;
}

.genre-panel label {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #fff;
  font-size: 12px;
  text-transform: none;
}

.genre-panel input {
  width: 14px;
  min-height: 14px;
  accent-color: var(--green);
}

.genre-picker #genreToggle,
.add-event-form > .primary-btn {
  border-color: rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.add-event-form > .primary-btn {
  width: 100%;
  height: 48px;
  margin-top: 4px;
  background: #fff;
  color: #1024ff;
  font-size: 16px;
  text-transform: none;
}

.tabbar {
  position: fixed;
  left: 50%;
  right: auto;
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 10;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: min(460px, calc(100vw - 32px));
  min-height: 46px;
  padding: 4px;
  transform: translateX(-50%);
  background: color-mix(in srgb, var(--panel-strong) 56%, transparent);
  border: 1px solid color-mix(in srgb, var(--line) 72%, transparent);
  border-radius: 999px;
  backdrop-filter: blur(22px) saturate(1.24);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.24);
}

.tabbar a {
  display: grid;
  place-items: center;
  align-content: center;
  min-height: 38px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  color: #1024ff;
}

.tabbar a.is-active {
  background: #1024ff;
  color: #fff;
}

.tabbar .emergency-tab {
  color: #ff4a4c;
}

.tabbar .emergency-tab.is-active {
  background: #ff4a4c;
  color: #fff;
}

@media (max-width: 760px) {
  .about-actions {
    top: 16px;
    left: 20px;
  }

  .about-actions__link {
    min-height: 34px;
    padding: 0 13px;
  }

  .about-simple {
    padding: 24px 20px 64px;
  }

  .about-simple__back {
    margin-bottom: 90px;
  }

  .about-simple h1 {
    font-size: clamp(38px, 12vw, 50px);
  }

  .home-nav {
    min-height: 66px;
    padding: 0 20px;
  }

  .about-intro,
  .home-explore,
  .about-promote {
    grid-template-columns: 1fr;
    padding: 54px 20px 68px;
  }

  .about-intro .home-label {
    grid-column: 1;
    grid-row: auto;
    margin: 0 0 58px;
  }

  .home-hero {
    min-height: 100svh;
    min-height: 100dvh;
  }

  .home-hero__copy {
    min-height: 100svh;
    min-height: 100dvh;
    padding: 108px 20px 28px;
  }

  .home-eyebrow {
    margin-bottom: 28px;
  }

  .home-wing-logo {
    top: 112px;
    right: 18px;
    width: 140px;
  }

  .home-poster {
    min-height: 100%;
  }

  .home-label {
    margin-bottom: 18px;
  }

  .home-hero h1,
  .about-intro h1 {
    font-size: clamp(36px, 10.4vw, 44px);
  }

  .home-poster img {
    object-position: 58% center;
  }

  .home-poster::after {
    display: block;
    background: rgba(5, 10, 36, 0.14);
  }

  .home-poster__topline {
    top: 66px;
    width: 178px;
    height: 34px;
    padding: 0 10px;
    font-size: 9px;
  }

  .home-mobile-title {
    margin-bottom: 24px;
    font-size: clamp(70px, 22vw, 92px);
  }

  .home-mobile-title strong {
    margin-bottom: 20px;
    font-size: 14px;
  }

  .about-intro h1,
  .about-intro > p:last-child {
    grid-column: 1;
  }

  .home-intro {
    margin-top: 26px;
  }

  .home-event {
    margin-top: 28px;
  }

  .home-section-number {
    margin-bottom: 54px;
  }

  .promote-options > div {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .topbar {
    height: 92px;
    padding-bottom: 0;
  }

  .theme-switch {
    top: 18px;
    left: max(14px, env(safe-area-inset-left));
    min-height: 34px;
    transform: none;
  }

  .filter-dock {
    top: 60px;
    left: max(14px, env(safe-area-inset-left));
    width: min(112px, calc(100vw - 28px));
  }

  .filter-toggle {
    min-height: 34px;
    padding: 0 11px;
    font-size: 10px;
  }

  .add-event-btn {
    top: 18px;
    right: max(12px, env(safe-area-inset-right));
    min-height: 34px;
    padding: 0 12px;
    font-size: 10px;
    transform: none;
  }

  .brand {
    height: 74px;
  }

  .brand img {
    width: min(360px, 78vw);
    max-height: 74px;
  }

  .topnav {
    gap: 28px;
    justify-content: center;
  }

  main {
    padding-top: 0;
  }

  .landing.is-active {
    grid-template-columns: 1fr;
    padding: 32px 18px 96px;
  }

  .landing__map-preview {
    min-height: 430px;
  }

  .map,
  .map-layout {
    height: 100vh;
    min-height: 100vh;
    height: 100dvh;
    min-height: 100dvh;
  }

  .map-controls {
    top: 102px;
    right: 12px;
  }

  .map-search {
    top: 102px;
    left: 14px;
    width: calc(100vw - 80px);
    transform: none;
  }

  .map-search > input {
    height: 34px;
    min-height: 34px;
    padding-left: 13px;
    font-size: 12px;
  }

  .event-teaser {
    left: max(12px, env(safe-area-inset-left));
    right: max(12px, env(safe-area-inset-right));
    bottom: 78px;
    max-height: calc(100dvh - 210px);
    overflow: auto;
  }

  .list-view,
  .chat-view,
  .emergency-view {
    padding: 122px 18px 102px;
  }

  .list-view .section-head {
    margin: 0 0 18px;
  }

  .list-view .event-card {
    border-radius: 16px;
  }

  .section-head {
    display: block;
  }

  .filters {
    grid-template-columns: 1fr;
  }

  .chat-form {
    bottom: 82px;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .detail {
    grid-template-columns: 1fr;
    padding: 14px;
  }

  .detail-hero {
    padding: 16px;
  }

  .detail h2 {
    font-size: clamp(38px, 14vw, 58px);
  }

  .topbar .icon-btn {
    display: none;
  }
}

@media (max-width: 480px) {
  .about-actions {
    left: 14px;
    right: 14px;
    flex-wrap: wrap;
  }

  .about-simple {
    padding-right: 14px;
    padding-left: 14px;
  }

  .home-hero__copy {
    padding-right: 14px;
    padding-left: 14px;
  }

  .home-wing-logo {
    right: 14px;
    width: min(140px, 38vw);
  }

  .home-poster__topline {
    right: 14px;
    width: min(178px, calc(100vw - 28px));
  }

  .theme-switch {
    left: max(10px, env(safe-area-inset-left));
    width: 104px;
  }

  .filter-dock {
    left: max(10px, env(safe-area-inset-left));
    width: 104px;
  }

  .add-event-btn {
    right: max(10px, env(safe-area-inset-right));
    max-width: calc(100vw - 134px);
  }

  .map-search {
    left: max(10px, env(safe-area-inset-left));
    width: calc(100vw - 70px);
  }

  .map-controls {
    right: max(10px, env(safe-area-inset-right));
  }

  .list-view,
  .chat-view,
  .emergency-view {
    padding-right: 12px;
    padding-left: 12px;
  }

  .chat-message.is-user {
    max-width: 92%;
  }

  .chat-form {
    width: 100%;
  }

  .chat-form input {
    min-width: 0;
    padding-right: 8px;
    padding-left: 8px;
  }

  .chat-form .primary-btn {
    min-width: 54px;
    padding: 0 10px;
  }

  .event-actions {
    gap: 8px;
  }

  .event-teaser .event-actions {
    margin-top: 18px;
  }

  .event-teaser .primary-btn,
  .event-teaser .secondary-btn {
    width: auto;
    min-width: 0;
    flex: 1 1 82px;
    padding: 0 10px;
  }

  .event-dialog,
  .form-dialog {
    width: calc(100vw - 16px);
    max-height: calc(100dvh - 16px);
    border-radius: 14px;
  }

  .detail {
    padding: 10px;
  }

  .detail-hero {
    padding: 14px 10px 16px;
  }

  .detail h2 {
    max-width: 100%;
    font-size: clamp(30px, 13vw, 52px);
  }

  .add-event-form {
    padding-right: 12px;
    padding-left: 12px;
  }

  .genre-panel fieldset {
    grid-template-columns: 1fr;
  }

  .location-card {
    padding: 20px 14px;
  }

  .tabbar {
    bottom: max(8px, env(safe-area-inset-bottom));
    width: calc(100vw - 16px);
  }

  .tabbar a {
    min-width: 0;
    font-size: 9px;
  }
}
