@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap");

/* Basic reset */
*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  color-scheme: light;
  --ink: #0f172a;
  --ink-soft: #475569;
  --panel: rgba(255, 255, 255, 0.86);
  --border: rgba(148, 163, 184, 0.25);
  --shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
  --rainbow-1: #ff7aa2;
  --rainbow-2: #ffb86b;
  --rainbow-3: #ffe38f;
  --rainbow-4: #7ae4b6;
  --rainbow-5: #7fb7ff;
  --rainbow-6: #a78bfa;
  --pride-brown: #c28a6a;
  --pride-black: #2b2b2b;
  --pride-trans-blue: #87c9ff;
  --pride-trans-pink: #ffb8d2;
  --pride-white: #f9fbff;
  --primary-start: #9cc6ff;
  --primary-end: #e4a7ff;
  --primary-strong: #c88df3;
}

body {
  margin: 0;
  font-family: "Plus Jakarta Sans", "Helvetica Neue", sans-serif;
  overflow-x: hidden;
  background:
    repeating-linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.04) 0px,
      rgba(255, 255, 255, 0.04) 8px,
      rgba(255, 255, 255, 0) 8px,
      rgba(255, 255, 255, 0) 18px
    ),
    radial-gradient(circle at 12% 10%, rgba(255, 184, 210, 0.2), transparent 45%),
    radial-gradient(circle at 88% 12%, rgba(135, 201, 255, 0.22), transparent 45%),
    radial-gradient(circle at 18% 78%, rgba(255, 227, 143, 0.18), transparent 50%),
    radial-gradient(circle at 82% 76%, rgba(122, 228, 182, 0.18), transparent 50%),
    linear-gradient(
      135deg,
      rgba(255, 184, 210, 0.2),
      rgba(135, 201, 255, 0.18),
      rgba(255, 227, 143, 0.2),
      rgba(122, 228, 182, 0.18)
    ),
    linear-gradient(120deg, #fffdf8, #fff6ee 45%, #f6fbff);
  color: var(--ink);
  min-height: 100vh;
}

body.home-page {
  position: relative;
}

body.home-page::before {
  content: none;
}

body.home-page .site-header,
body.home-page .app-main,
body.home-page .app-footer {
  position: relative;
  z-index: 1;
}

/* Header */
.site-header {
  padding: 14px 18px 10px;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.brand-logo {
  width: min(360px, 80vw);
  height: auto;
  object-fit: contain;
  display: block;
}

.brand-tag {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink-soft);
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-link {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.nav-link:hover {
  color: var(--primary-strong);
}

.nav-button {
  margin-left: 8px;
}

.rainbow-band {
  height: 6px;
  margin-top: 16px;
  background: linear-gradient(
    90deg,
    var(--rainbow-1),
    var(--rainbow-2),
    var(--rainbow-3),
    var(--rainbow-4),
    var(--rainbow-5),
    var(--rainbow-6)
  );
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(139, 92, 246, 0.2);
}

/* Layout */
.app-main {
  max-width: 1100px;
  margin: 32px auto 64px;
  padding: 0 18px;
  display: grid;
  gap: 22px;
}

.card {
  background: var(--panel);
  border-radius: 22px;
  padding: 24px 26px 28px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  animation: rise 0.8s ease both;
}

body.home-page .card {
  backdrop-filter: blur(14px);
}

.card h2 {
  margin-top: 0;
  font-weight: 700;
}

.card p {
  color: var(--ink-soft);
}

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

/* Hero */
.hero {
  display: grid;
  gap: 24px;
  align-items: center;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.65), transparent 60%);
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.eyebrow {
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.3em;
  color: var(--ink-soft);
  margin: 0 0 8px;
}

.hero h1 {
  font-size: clamp(2rem, 3vw, 2.8rem);
  font-weight: 700;
  margin: 0 0 12px;
  position: relative;
  display: inline-block;
}

.hero h1::after {
  content: "";
  display: block;
  height: 6px;
  width: min(80%, 260px);
  margin-top: 10px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    rgba(255, 122, 162, 0.7),
    rgba(255, 227, 143, 0.65),
    rgba(122, 228, 182, 0.6),
    rgba(127, 183, 255, 0.7)
  );
  box-shadow: 0 6px 16px rgba(255, 122, 162, 0.35);
}

.hero-panel {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.12);
}

.hero-highlight {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.04);
  display: grid;
  gap: 4px;
}

.hero-highlight span {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--ink-soft);
}

.hero-highlight strong {
  font-size: 1rem;
}

/* Featured */
.section-header {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.section-header--featured {
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.section-subtitle {
  margin: 6px 0 0;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.section-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #111827;
  background: linear-gradient(
    120deg,
    rgba(255, 122, 162, 0.25),
    rgba(127, 183, 255, 0.24),
    rgba(122, 228, 182, 0.2)
  );
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 8px 20px rgba(127, 183, 255, 0.22);
}

.section-header.section-header--filter {
  flex-direction: row;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.content-section {
  display: grid;
  gap: 14px;
}

.content-lead {
  margin: 0;
  line-height: 1.7;
  color: var(--ink-soft);
}

.info-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.info-tile {
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(255, 255, 255, 0.75);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.info-tile h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.info-tile p {
  margin: 0;
  line-height: 1.6;
}

.content-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
  color: var(--ink-soft);
}

.content-list li {
  line-height: 1.6;
}

.featured-spotlight {
  position: relative;
  overflow: hidden;
  border: 1px solid transparent;
  background:
    linear-gradient(rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.82)) padding-box,
    linear-gradient(
      120deg,
      rgba(255, 122, 162, 0.6),
      rgba(255, 227, 143, 0.45),
      rgba(122, 228, 182, 0.45),
      rgba(127, 183, 255, 0.6)
    ) border-box;
  box-shadow:
    0 24px 60px rgba(15, 23, 42, 0.16),
    0 0 40px rgba(255, 182, 193, 0.25),
    0 0 50px rgba(135, 201, 255, 0.2);
}

.featured-spotlight::before {
  content: "";
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(circle at 18% 20%, rgba(255, 184, 210, 0.45), transparent 45%),
    radial-gradient(circle at 80% 30%, rgba(135, 201, 255, 0.4), transparent 50%),
    radial-gradient(circle at 60% 85%, rgba(255, 227, 143, 0.32), transparent 50%);
  opacity: 0.8;
  pointer-events: none;
}

.featured-spotlight::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 12% 28%, rgba(255, 255, 255, 0.7) 0, rgba(255, 255, 255, 0) 32%),
    radial-gradient(circle at 86% 18%, rgba(255, 255, 255, 0.7) 0, rgba(255, 255, 255, 0) 30%),
    radial-gradient(circle at 70% 78%, rgba(255, 255, 255, 0.6) 0, rgba(255, 255, 255, 0) 34%),
    radial-gradient(circle at 30% 70%, rgba(255, 255, 255, 0.5) 0, rgba(255, 255, 255, 0) 36%);
  opacity: 0.45;
  pointer-events: none;
}

.sort-form {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sort-form input[type="search"] {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  font-size: 0.95rem;
  background: rgba(255, 255, 255, 0.9);
}

.sort-form input[type="search"]:focus {
  outline: none;
  border-color: rgba(79, 172, 254, 0.7);
  box-shadow: 0 0 0 3px rgba(79, 172, 254, 0.2);
}

.sort-label {
  font-size: 0.9rem;
  color: var(--ink-soft);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.section-header.profile-header {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.primary-button.primary-button--large {
  padding: 14px 26px;
  font-size: 1.05rem;
}

.featured-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  position: relative;
  z-index: 1;
}

.upcoming-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.upcoming-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(255, 255, 255, 0.7);
  align-content: start;
  grid-template-rows: auto 1fr;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.upcoming-card-image {
  width: 100%;
  height: 140px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: linear-gradient(120deg, rgba(148, 163, 184, 0.2), rgba(226, 232, 240, 0.5));
}

.upcoming-card-body {
  display: grid;
  gap: 6px;
  align-content: start;
}

.upcoming-card-body h3 {
  margin: 0;
  font-size: 1.02rem;
}

.upcoming-card-body p {
  margin: 0;
  font-size: 0.9rem;
}

.featured-card {
  background:
    linear-gradient(rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.78)) padding-box,
    linear-gradient(
      140deg,
      rgba(255, 122, 162, 0.5),
      rgba(255, 227, 143, 0.45),
      rgba(122, 228, 182, 0.45),
      rgba(127, 183, 255, 0.5)
    ) border-box;
  border-radius: 16px;
  padding: 16px;
  border: 1px solid transparent;
  display: grid;
  gap: 10px;
  min-height: 260px;
  align-content: start;
  grid-template-rows: auto auto 1fr;
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.12);
}

.featured-card.is-clickable,
.upcoming-card.is-clickable {
  cursor: pointer;
}

.featured-card.is-clickable:hover,
.upcoming-card.is-clickable:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.16);
}

.featured-card.is-clickable:focus-within,
.upcoming-card.is-clickable:focus-within {
  outline: 2px solid rgba(99, 102, 241, 0.35);
  outline-offset: 2px;
}

.featured-card .chip {
  align-self: flex-start;
  margin-bottom: 4px;
  box-shadow: 0 6px 16px rgba(255, 122, 162, 0.25);
}

.featured-card h3 {
  margin: 0;
  font-size: 1.05rem;
}

.featured-card p {
  margin: 0;
  font-size: 0.92rem;
}

.featured-card-media {
  border: none;
  padding: 0;
  background: none;
  cursor: pointer;
  text-align: left;
  width: 100%;
  display: block;
  border-radius: 12px;
}

.featured-card-image {
  width: 100%;
  height: 150px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: linear-gradient(120deg, rgba(148, 163, 184, 0.2), rgba(226, 232, 240, 0.5));
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
}

.featured-card-body {
  display: grid;
  gap: 6px;
}

.featured-card-body .meta {
  margin-top: auto;
}

.event-clamp {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow: hidden;
}

.meta {
  font-size: 0.8rem;
  color: var(--ink-soft);
}

.event-modal {
  width: min(92vw, 720px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-height: 90vh;
  overflow: hidden;
}

.event-modal-image {
  width: 100%;
  height: min(45vh, 480px);
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.35);
}

.event-modal-body {
  display: grid;
  gap: 8px;
  overflow-y: auto;
  min-height: 0;
  padding-right: 6px;
}

.event-modal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

@media (max-width: 640px) {
  .event-modal {
    width: 94vw;
    max-height: 88vh;
  }

  .event-modal-image {
    height: min(35vh, 320px);
  }
}

.auth-stack {
  display: grid;
  gap: 18px;
  margin-top: 12px;
}

.auth-card {
  display: grid;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(255, 255, 255, 0.7);
}

.auth-card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.auth-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.is-hidden {
  display: none !important;
}

.button-small {
  margin-top: 12px;
  padding: 8px 14px;
  font-size: 0.85rem;
  justify-self: center;
}

.link-button {
  background: none;
  border: none;
  color: var(--primary-strong);
  font-weight: 600;
  cursor: pointer;
  padding: 6px 0;
}

.password-field {
  position: relative;
  display: flex;
  align-items: center;
}

.password-field input {
  width: 100%;
  padding-right: 44px;
}

.password-toggle {
  position: absolute;
  right: 10px;
  border: none;
  background: transparent;
  padding: 2px;
  cursor: pointer;
  color: var(--ink-soft);
}

.password-toggle svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #111827;
  background: linear-gradient(120deg, rgba(255, 77, 109, 0.2), rgba(79, 172, 254, 0.18));
  width: fit-content;
  line-height: 1;
}

/* Buttons */
button,
.primary-button,
.stacked-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.2s ease;
}

.primary-button,
.stacked-form button {
  background: linear-gradient(90deg, var(--primary-start), var(--primary-end));
  color: white;
  box-shadow: 0 10px 20px rgba(156, 198, 255, 0.25);
}

.primary-button:hover,
.stacked-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.2);
  background: linear-gradient(90deg, var(--primary-start), var(--primary-strong));
}

button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Venue list */
.venue-list {
  margin-top: 10px;
  display: grid;
  gap: 10px;
}

.venue-item {
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(255, 255, 255, 0.75);
  position: relative;
  overflow: hidden;
}

.venue-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    rgba(255, 77, 109, 0.15),
    rgba(255, 138, 0, 0.1),
    rgba(57, 217, 138, 0.1),
    rgba(79, 172, 254, 0.1),
    rgba(139, 92, 246, 0.1)
  );
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.venue-item:hover::before {
  opacity: 1;
}

.venue-item-title {
  font-weight: 600;
}

.venue-item-meta {
  font-size: 0.85rem;
  color: var(--ink-soft);
}

/* Forms */
.stacked-form {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.stacked-form label {
  font-size: 0.9rem;
  display: grid;
  gap: 4px;
  color: var(--ink);
}

.stacked-form input {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  font-size: 0.95rem;
  background: rgba(255, 255, 255, 0.9);
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.stacked-form input:focus {
  outline: none;
  border-color: rgba(79, 172, 254, 0.7);
  box-shadow: 0 0 0 3px rgba(79, 172, 254, 0.2);
}

/* Misc */
.hint {
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.note {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-top: 6px;
}

.note ul,
ul.note {
  margin: 8px 0 0;
  padding-left: 18px;
}

.note.error,
.error {
  color: #dc2626;
}

.note ul {
  padding-left: 18px;
}

.honeypot {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}

.admin-list {
  display: grid;
  gap: 12px;
}

.admin-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(255, 255, 255, 0.8);
}

.admin-detail p {
  margin: 6px 0;
}

.profile-preview {
  width: 160px;
  height: 160px;
  border-radius: 18px;
  object-fit: cover;
  border: 1px solid rgba(148, 163, 184, 0.35);
  margin-bottom: 10px;
}

.map-picker {
  position: relative;
  height: 180px;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.7), transparent 55%),
    linear-gradient(135deg, rgba(148, 163, 184, 0.15), rgba(226, 232, 240, 0.35)),
    repeating-linear-gradient(
      90deg,
      rgba(148, 163, 184, 0.06),
      rgba(148, 163, 184, 0.06) 22px,
      rgba(148, 163, 184, 0.12) 22px,
      rgba(148, 163, 184, 0.12) 44px
    );
  overflow: hidden;
}

.map-canvas {
  width: 100%;
  height: 100%;
}

.map-coords {
  display: flex;
  gap: 16px;
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-top: 8px;
}

.photo-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  align-items: start;
}

.photo-slot {
  display: grid;
  gap: 8px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(255, 255, 255, 0.75);
  align-content: start;
  min-width: 0;
}

.photo-slot img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}

.photo-placeholder {
  width: 100%;
  height: 140px;
  border-radius: 10px;
  background: rgba(148, 163, 184, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
  font-size: 0.85rem;
}

.photo-slot label {
  display: grid;
  gap: 6px;
}

.upload-label {
  display: grid;
  gap: 6px;
}

.upload-input {
  display: none;
}

.upload-status {
  font-size: 0.8rem;
  color: var(--ink-soft);
}

.upload-label.is-uploading .upload-button {
  opacity: 0.7;
}

select,
textarea {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  font-size: 0.95rem;
  font-family: inherit;
  background: rgba(255, 255, 255, 0.9);
}

select:focus,
textarea:focus {
  outline: none;
  border-color: rgba(58, 108, 246, 0.7);
  box-shadow: 0 0 0 3px rgba(58, 108, 246, 0.2);
}

select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, rgba(15, 23, 42, 0.45) 50%),
    linear-gradient(135deg, rgba(15, 23, 42, 0.45) 50%, transparent 50%);
  background-position: calc(100% - 18px) calc(1em + 2px), calc(100% - 13px) calc(1em + 2px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 32px;
}

.is-hidden {
  display: none !important;
}

.photo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 0.85rem;
}

.photo-actions button {
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: rgba(255, 255, 255, 0.8);
  border-radius: 999px;
  padding: 4px 10px;
  cursor: pointer;
  color: var(--ink);
  font-weight: 600;
}

.photo-remove {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
}

.photo-slot.is-removed {
  opacity: 0.5;
}

.button-danger {
  margin-top: 14px;
  background: linear-gradient(90deg, #fda4af, #fb7185);
  box-shadow: 0 10px 18px rgba(248, 113, 113, 0.25);
}

.venue-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.event-grid {
  display: grid;
  gap: 18px;
}

.event-card {
  display: grid;
  grid-template-columns: minmax(0, 200px) minmax(0, 1fr);
  gap: 16px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

.today-page .event-card {
  align-items: start;
}

.today-page .event-card-body {
  gap: 6px;
}

.today-page .event-card-body p {
  margin: 0;
}

.today-page .event-card-venue {
  margin-top: 2px;
}

.today-page .event-card-desc {
  margin-top: 4px;
}

.event-card-media {
  width: 100%;
  height: 160px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: linear-gradient(120deg, rgba(148, 163, 184, 0.2), rgba(226, 232, 240, 0.5));
}

.event-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.event-card-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: var(--ink-soft);
  background: rgba(148, 163, 184, 0.15);
}

.event-card-image {
  width: 100%;
  height: 160px;
  border-radius: 14px;
  object-fit: cover;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: linear-gradient(120deg, rgba(148, 163, 184, 0.2), rgba(226, 232, 240, 0.5));
}

.event-card-image.placeholder {
  display: block;
}

.event-card-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.event-card-body h3,
.event-card-date,
.event-card-venue,
.event-card-desc,
.event-card-meta span {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.event-card-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.event-card-date {
  font-size: 0.85rem;
  color: var(--ink-soft);
  font-weight: 600;
}

.event-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.event-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.event-card-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: auto;
}

.event-preview {
  width: 100%;
  max-width: 320px;
  border-radius: 16px;
  object-fit: cover;
  border: 1px solid rgba(148, 163, 184, 0.35);
  margin-bottom: 10px;
}

.toggle-field {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--ink);
}

.toggle-switch {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--ink);
}

.toggle-control {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}

.toggle-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: relative;
  width: 46px;
  height: 26px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.4);
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.5);
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.toggle-slider::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 6px 12px rgba(15, 23, 42, 0.2);
  transition: transform 0.2s ease;
}

.toggle-input:checked + .toggle-slider {
  background: linear-gradient(90deg, var(--primary-start), var(--primary-end));
  box-shadow: inset 0 0 0 1px rgba(124, 156, 255, 0.55);
}

.toggle-input:checked + .toggle-slider::after {
  transform: translateX(20px);
}

.toggle-text {
  font-size: 0.92rem;
  cursor: default;
}

.location-fields {
  display: grid;
  gap: 12px;
  margin-top: 10px;
}

@media (max-width: 760px) {
  .event-card {
    grid-template-columns: 1fr;
  }
}

.venue-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  color: inherit;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.venue-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 30px rgba(15, 23, 42, 0.15);
}

.venue-card-media {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  height: 160px;
  background: linear-gradient(135deg, rgba(156, 198, 255, 0.3), rgba(228, 167, 255, 0.25));
}

.venue-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.venue-card-placeholder {
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 20% 20%, rgba(255, 184, 210, 0.45), transparent 50%),
    radial-gradient(circle at 80% 10%, rgba(135, 201, 255, 0.4), transparent 45%),
    linear-gradient(120deg, rgba(255, 227, 143, 0.35), rgba(122, 228, 182, 0.35));
}

.venue-card-badge {
  position: absolute;
  bottom: 10px;
  left: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
}

.venue-card-title {
  margin: 0;
  font-size: 1.1rem;
}

.venue-card-text {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.venue-card-meta {
  font-size: 0.85rem;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
}

.venue-address {
  margin: 0 0 6px;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.venue-hero {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  align-items: start;
}

.venue-hero-main {
  display: grid;
  gap: 14px;
}

.venue-hero-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.venue-hero-eyebrow {
  margin: 0 0 6px;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.venue-type-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.35);
  color: var(--ink);
}

.venue-contact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.venue-share {
  display: grid;
  gap: 8px;
}

.venue-share-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.venue-share-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.venue-hero-side {
  display: grid;
  gap: 12px;
}

.profile-hero {
  width: 100%;
  height: 220px;
  border-radius: 18px;
  margin-bottom: 0;
}

.info-panel {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: rgba(255, 255, 255, 0.85);
}

.info-panel h3 {
  margin: 0;
  font-size: 1rem;
}

.info-panel ul {
  margin: 0;
  padding-left: 18px;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.venue-top {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  align-items: start;
}

.venue-top-info {
  align-self: start;
}

.map-picker .leaflet-container {
  filter: saturate(1.15) brightness(1.02) contrast(1.08) hue-rotate(-6deg);
}

.map-picker::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0));
  mix-blend-mode: screen;
}

.map-picker::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 10%, rgba(255, 160, 122, 0.18), transparent 45%),
    radial-gradient(circle at 80% 90%, rgba(129, 212, 250, 0.2), transparent 50%);
  mix-blend-mode: screen;
  opacity: 0.9;
}

.venue-gallery .photo-slot {
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  box-shadow: 0 18px 35px rgba(15, 23, 42, 0.15);
  transform: translateZ(0);
}

.venue-gallery .photo-slot img {
  height: 220px;
  object-fit: cover;
  border-radius: 18px;
  transition: transform 0.35s ease, filter 0.35s ease;
  filter: saturate(1.02);
}

.venue-gallery .photo-slot::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0) 40%, rgba(15, 23, 42, 0.35));
  opacity: 0.7;
  transition: opacity 0.35s ease;
}

.venue-gallery .photo-slot:hover img {
  transform: scale(1.03);
  filter: saturate(1.08);
}

.venue-gallery .photo-slot:hover::after {
  opacity: 0.85;
}

.venue-thumb-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.venue-thumb {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(255, 255, 255, 0.4);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.12);
  cursor: pointer;
}

.venue-thumb img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.venue-thumb:hover img {
  transform: scale(1.04);
  filter: saturate(1.08);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font-size: 1.6rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.18);
  cursor: pointer;
  z-index: 2;
}

.lightbox-nav.prev {
  left: 10px;
}

.lightbox-nav.next {
  right: 10px;
}

.rainbow-card {
  position: relative;
  overflow: hidden;
  border: none;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
}

.rainbow-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 20px;
  padding: 1px;
  background: linear-gradient(120deg, #ff7aa2, #ffb86b, #ffe38f, #7ae4b6, #7fb7ff);
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.6;
}

.date-chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.3);
  font-weight: 700;
}

.lightbox {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

.lightbox.is-open {
  display: flex;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.7);
}

.lightbox-content {
  position: relative;
  z-index: 1;
  max-width: 90vw;
  max-height: 90vh;
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.35);
}

.lightbox-content img {
  max-width: 100%;
  max-height: 70vh;
  display: block;
  border-radius: 12px;
}

.lightbox-close {
  position: absolute;
  top: 8px;
  right: 12px;
  border: none;
  background: #ffffff;
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.85rem;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #111827;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.2);
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.92);
}

.event-modal-share {
  margin-top: 16px;
  display: grid;
  gap: 10px;
}

.event-modal-share-label {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--ink);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.event-modal-share-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.event-modal-share-actions .primary-button {
  padding: 6px 10px;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}

.event-modal-actions {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Today page */
.today-page .app-main {
  display: grid;
  gap: 22px;
}

.today-hero {
  padding: 26px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.75));
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow: 0 28px 60px rgba(15, 23, 42, 0.12);
}

.today-hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.today-hero h1 {
  margin: 6px 0 6px;
  font-size: clamp(2rem, 3vw, 2.6rem);
  color: var(--ink);
}

.today-hero p {
  margin: 0;
  color: var(--ink-soft);
}

.today-kicker {
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.today-glow {
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: linear-gradient(90deg, rgba(255, 93, 126, 0.9), rgba(133, 166, 255, 0.9));
  color: #fff;
  box-shadow: 0 12px 30px rgba(255, 93, 126, 0.35);
}

.today-empty {
  text-align: center;
  padding: 30px 20px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 18px;
  color: var(--ink);
}

.today-grid-single {
  grid-template-columns: minmax(0, 1fr);
}

.today-featured-card {
  display: grid;
  grid-template-columns: minmax(240px, 360px) minmax(0, 1fr);
  align-items: start;
  gap: 18px;
  padding: 20px;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.95), rgba(250, 247, 255, 0.75));
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 24px 50px rgba(15, 23, 42, 0.12);
}

.today-featured-card .event-card-media {
  width: 100%;
  height: 220px;
  max-height: 240px;
  border-radius: 18px;
}

.today-featured-card .event-card-media img,
.today-featured-card .event-card-placeholder {
  height: 100%;
}

.today-featured-card .event-card-body h3 {
  font-size: 1.35rem;
}

.today-page .event-card {
  min-width: 0;
}

.today-page .event-card-body {
  min-width: 0;
}

.today-page .event-card-meta {
  align-items: flex-start;
}

@media (max-width: 860px) {
  .today-hero-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .today-featured-card {
    grid-template-columns: 1fr;
  }
}

.placeholder {
  font-size: 0.9rem;
  color: #94a3b8;
}

.app-footer {
  text-align: center;
  padding: 10px 0 20px;
  font-size: 0.8rem;
  color: var(--ink-soft);
}

.app-footer .footer-links {
  margin-top: 6px;
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.app-footer a {
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.app-footer a:hover {
  color: var(--ink);
  border-color: rgba(15, 23, 42, 0.2);
}

.ad-card {
  margin-top: 28px;
}

.ad-label {
  margin: 0 0 10px;
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 700;
}

.ad-slot {
  border-radius: 16px;
  border: 1px dashed rgba(148, 163, 184, 0.5);
  background: rgba(255, 255, 255, 0.78);
  padding: 20px;
  min-height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.ad-card.is-hidden,
.ad-slot.is-hidden {
  display: none;
}

.ad-placeholder {
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  max-width: 980px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 22px;
  padding: 16px 20px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.2);
  z-index: 10000;
}

.cookie-banner__content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.cookie-banner__copy strong {
  font-size: 1rem;
}

.cookie-banner__copy p {
  margin: 6px 0 0;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.cookie-banner__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.cookie-link {
  font-size: 0.85rem;
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.cookie-link:hover {
  color: var(--ink);
  border-color: rgba(15, 23, 42, 0.2);
}

@media (max-width: 720px) {
  .cookie-banner {
    bottom: 12px;
    left: 12px;
    right: 12px;
  }
}

@media (max-width: 820px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .brand-stack {
    width: 100%;
  }

  .site-nav {
    width: 100%;
    justify-content: flex-start;
    gap: 12px;
  }
}

@media (max-width: 720px) {
  .hero-panel {
    order: -1;
  }
}

/* Today page overflow guard */
.today-page .upcoming-grid {
  align-items: start;
  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
}

.today-page .event-card {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  grid-template-columns: minmax(0, 180px) minmax(0, 1fr);
}

.today-page .event-card-media,
.today-page .event-card-body,
.today-page .event-card-meta,
.today-page .event-card-meta span,
.today-page .event-card-date,
.today-page .event-card-venue,
.today-page .event-card-desc,
.today-page .event-card-body h3 {
  min-width: 0;
  max-width: 100%;
}

.today-page .event-card-body h3,
.today-page .event-card-date,
.today-page .event-card-venue,
.today-page .event-card-desc,
.today-page .event-card-meta span {
  overflow-wrap: break-word;
  word-break: normal;
}

.today-page .event-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
}

.today-page .event-card-meta span {
  display: inline-block;
}

@media (max-width: 900px) {
  .today-page .upcoming-grid {
    grid-template-columns: 1fr;
  }

  .today-page .event-card {
    grid-template-columns: 1fr;
  }

  .today-page .event-card-media {
    height: 200px;
  }
}
