/* Podstrona wydarzenia: jedna kolumna, czytelna na telefonie */
.event-page { overflow-y: auto; }
.event-page .top { padding: 14px 20px; border-bottom: 1px solid var(--line); }
.back {
  display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none;
  font-weight: 700; font-size: 17px;
}
.back svg { width: 20px; height: 20px; color: var(--muted); }
.back .brand-logo, .back:hover .brand-logo { width: 34px; height: 34px; color: var(--accent-ink); }
.back:hover svg { color: var(--ink); }

.event { width: min(720px, 100%); margin: 0 auto; padding: 28px 20px 64px; }
.event-loading { color: var(--muted); }
.event-img { display: block; width: 100%; max-height: 380px; object-fit: cover; border-radius: 14px; margin-top: 18px; background: var(--raise); }

.event-cat { display: inline-flex; align-items: center; gap: 10px; font-weight: 650; font-size: 15px; }
[data-theme="dark"] .event-cat span { filter: brightness(1.35); }
.event-title {
  margin: 12px 0 20px; font-size: clamp(28px, 5vw, 40px); line-height: 1.08; font-weight: 780;
  letter-spacing: -0.025em; text-wrap: balance;
}

.event-facts { margin: 0 0 22px; display: grid; gap: 12px; }
.event-facts div { display: grid; grid-template-columns: 70px 1fr; gap: 12px; align-items: baseline; }
.event-facts dt { color: var(--muted); font-size: 14px; }
.event-facts dd { margin: 0; font-size: 17px; font-weight: 550; line-height: 1.4; }

.event-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px; cursor: pointer;
  border: 1.5px solid var(--line); border-radius: 999px; background: var(--card); color: var(--ink);
  font: inherit; font-size: 14.5px; font-weight: 600; text-decoration: none;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:hover { border-color: var(--ink); }
.btn.primary { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn.fav svg { color: var(--muted); }
.btn.fav.on { background: var(--fav); border-color: var(--fav); color: #3a2a00; }
.btn.fav.on svg { color: #3a2a00; }

.event-desc { margin-top: 26px; }
.event-desc h2 { font-size: 15px; font-weight: 650; color: var(--muted); margin: 0 0 6px; }
.event-desc p { margin: 0 0 12px; font-size: 17px; line-height: 1.6; max-width: 65ch; white-space: pre-line; }
.event-desc p:last-child { margin-bottom: 0; }
.event-desc h3 { margin: 24px 0 8px; font-size: 19px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.3; }
.event-desc ul { margin: 0 0 14px; padding-left: 22px; max-width: 65ch; }
.event-desc li { font-size: 17px; line-height: 1.55; margin-bottom: 4px; }
.event-desc li::marker { color: var(--accent-ink); }
.event-tags { margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.event-tags span { font-size: 13px; color: var(--muted); background: var(--raise); padding: 3px 10px; border-radius: 999px; }

.event-map { height: 280px; margin-top: 26px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); }
.map-badge { width: 38px; height: 38px; border: 3px solid #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .4); }
.map-badge svg { width: 20px; height: 20px; }

.event .empty { padding: 40px 0; }

/* --- zgłaszanie błędów ---------------------------------------------------- */
.report { margin-top: 34px; border-top: 1px solid var(--line); padding-top: 18px; }
.report summary {
  cursor: pointer; color: var(--muted); font-size: 15px; font-weight: 600; list-style: none;
  display: inline-flex; align-items: center; gap: 8px;
}
.report summary::-webkit-details-marker { display: none; }
.report summary::before { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); transition: transform .2s; }
.report[open] summary::before { transform: rotate(45deg); }
.report summary:hover { color: var(--ink); }
.report-hint { color: var(--muted); font-size: 14px; margin: 12px 0; max-width: 60ch; }
.report-reasons { display: flex; flex-wrap: wrap; gap: 8px; }
.report-chip { position: relative; cursor: pointer; }
.report-chip input { position: absolute; opacity: 0; pointer-events: none; }
.report-chip span {
  display: inline-block; padding: 8px 13px; border: 1.5px solid var(--line); border-radius: 999px;
  font-size: 14px; color: var(--ink); user-select: none;
}
.report-chip input:checked + span { border-color: var(--sun); background: var(--sun-soft); color: var(--accent-ink); font-weight: 600; }
.report-chip input:focus-visible + span { outline: 3px solid var(--sun); outline-offset: 2px; }
.report-label { display: block; margin: 16px 0 6px; font-size: 14px; color: var(--muted); }
.report textarea {
  width: 100%; resize: vertical; min-height: 84px; padding: 12px 14px; border-radius: 12px;
  border: 1.5px solid var(--line); background: var(--card); color: var(--ink); font: inherit; font-size: 16px;
}
.report textarea:focus { outline: none; border-color: var(--sun); }
.report-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; flex-wrap: wrap; }
.report-status { color: var(--muted); font-size: 14px; }
.report-done { margin: 14px 0 0; color: var(--accent-ink); font-weight: 600; }
.btn:disabled { opacity: .6; cursor: default; }

/* --- inne wydarzenia tego dnia (linki między podstronami) ------------------ */
.related { width: min(720px, 100%); margin: 0 auto; padding: 0 20px 72px; }
.related h2 { font-size: 20px; font-weight: 720; letter-spacing: -0.01em; margin: 0 0 10px; }
.related ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.related li a {
  display: grid; grid-template-columns: 76px 1fr; column-gap: 12px; padding: 12px 0;
  border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none;
}
.related li a:hover .rel-title { text-decoration: underline; text-underline-offset: 3px; }
.related li a:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; border-radius: 6px; }
.rel-time { color: var(--accent-ink); font-weight: 650; font-variant-numeric: tabular-nums; grid-row: span 2; }
.rel-title { font-weight: 600; line-height: 1.35; }
.rel-place { color: var(--muted); font-size: 14px; grid-column: 2; }
.related-all { display: inline-block; margin-top: 14px; color: var(--accent-ink); font-weight: 650; }
.event .empty p { color: var(--muted); }

.owner-tools { margin-top: 28px; padding: 16px; border: 1.5px dashed var(--line); border-radius: 14px; }
.owner-state { margin: 0 0 12px; color: var(--muted); }
.owner-state b { color: var(--ink); }
.owner-msg { margin: 8px 0 0; color: var(--muted); font-size: 14px; }
.btn.danger { color: #dc2626; }
.btn.danger:hover { border-color: #dc2626; }

.event-desc h4 { font-size: 1.05em; margin: 1.1em 0 .4em; }
.event-desc ol { padding-left: 1.4em; }
.event-desc blockquote { margin: 0 0 1em; padding-left: 14px; border-left: 3px solid var(--line); color: var(--muted); }

.event-lang { display: inline-flex; align-items: center; gap: 7px; margin: -4px 0 14px; padding: 5px 12px 5px 9px;
  border-radius: 999px; background: var(--card); border: 1.5px solid var(--line); font-size: 14px; font-weight: 600; }
.event-lang svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; flex: none; }
.event-directions { font-size: .95em; }
