/* Fitxa d'una activitat. Reaprofita els components de /cerca/cerca.css i els colors de /ui/tokens.css. */

.fitxa { max-width: 1040px; }
.searchbar.compact { flex: 1 1 320px; max-width: 520px; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2); margin-bottom: var(--s4); font-size: 13px; color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }

.notice { margin: 0 0 var(--s4); padding: var(--s3) var(--s4); border-radius: var(--r-m); background: var(--soft); border: 1px solid var(--line); }
.notice.danger { background: var(--danger-bg); color: var(--danger-ink); border-color: transparent; }

.fitxa-head { display: flex; gap: var(--s5); align-items: flex-start; margin-bottom: var(--s5); }
.thumb.hero { flex: 0 0 200px; height: 200px; border-radius: var(--r-l); }
.fitxa-title { min-width: 0; flex: 1; }
.kicker { margin: 0 0 var(--s2); font-size: 12px; font-weight: 600; letter-spacing: .6px; text-transform: uppercase; color: var(--muted); }
.fitxa h1 { margin: 0 0 var(--s2); font-size: clamp(26px, 4vw, 36px); line-height: 1.15; letter-spacing: -.6px; overflow-wrap: anywhere; }
.fitxa h2 { margin: 0 0 var(--s3); font-size: 17px; }
.organizer { margin: 0 0 var(--s3); color: var(--muted); }
.verified-note { display: flex; align-items: center; gap: 6px; margin: 0 0 var(--s3); font-size: 13px; color: var(--muted); }
.verified-note svg { color: var(--price-ink); }
.fitxa .tags { display: flex; flex-wrap: wrap; gap: var(--s2); }
.fitxa .tag { padding: 6px 10px; font-size: 13px; }

.row { display: flex; flex-wrap: wrap; gap: var(--s2); align-items: center; }
.online-box { margin-bottom: var(--s5); padding: var(--s4) var(--s5); border-radius: var(--r-l); background: var(--online-bg); color: var(--online-ink); }
.online-box h2 { display: flex; align-items: center; gap: var(--s2); margin-bottom: var(--s2); }
.online-box p { margin: 0 0 var(--s3); }
.online-box p:last-child { margin-bottom: 0; }
.online-box .button.outline { border-color: currentColor; color: inherit; }

.fitxa-grid { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: var(--s6); align-items: start; }
.facts { margin: 0; padding: var(--s2) var(--s4); border: 1px solid var(--line); border-radius: var(--r-l); background: var(--surface); }
.fact { padding: var(--s3) 0; }
.fact + .fact { border-top: 1px solid var(--line); }
.fact dt { margin-bottom: 2px; font-size: 11px; font-weight: 600; letter-spacing: .6px; text-transform: uppercase; color: var(--muted); }
.fact dd { margin: 0; overflow-wrap: anywhere; }
.fact small { color: var(--muted); }
.fitxa-main > * + * { margin-top: var(--s5); }
.description { margin: 0; white-space: pre-line; overflow-wrap: anywhere; font-size: 16px; line-height: 1.6; max-width: 68ch; }

.actions-row { align-items: flex-start; }
.share { position: relative; }
.share > summary { list-style: none; cursor: pointer; }
.share > summary::-webkit-details-marker { display: none; }
.share[open] { flex: 1 1 100%; }
.share-tools { display: flex; flex-direction: column; gap: var(--s3); margin-top: var(--s3); padding: var(--s4); border: 1px solid var(--line); border-radius: var(--r-l); background: var(--surface); }
.share-link { display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 600; color: var(--muted); }
.share-address { min-height: var(--touch); padding: 0 var(--s3); border: 1px solid var(--border); border-radius: var(--r-m); background: var(--bg); font-weight: 400; color: var(--ink); }
.share-status { margin: 0; min-height: 1.2em; font-size: 13px; color: var(--muted); }
.share-status:empty { display: none; }
.plain-link { font-size: 14px; }

.map.small { height: 260px; min-height: 0; }
.related { margin-top: var(--s7); padding-top: var(--s5); border-top: 1px solid var(--line); }
.related-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: var(--s3); margin-bottom: var(--s4); }
.related-item { display: flex; align-items: center; gap: var(--s3); padding: var(--s3); border: 1px solid var(--line); border-radius: var(--r-l); background: var(--surface); color: var(--ink); text-decoration: none; }
.related-item:hover { border-color: var(--ink); color: var(--ink); }
.related-item .thumb { flex: 0 0 52px; height: 52px; }
.related-item strong { display: block; overflow-wrap: anywhere; }
.related-item small { color: var(--muted); }
.fitxa .empty h1 { font-size: 22px; }

@media (max-width: 820px) {
  .fitxa-grid { grid-template-columns: 1fr; gap: var(--s5); }
  .fitxa-head { flex-direction: column; gap: var(--s4); }
  .thumb.hero { flex: none; width: 100%; height: 180px; }
  .searchbar.compact { order: 3; flex: 1 1 100%; max-width: none; flex-wrap: nowrap; }
  .searchbar.compact .field { border: 0; }
  .searchbar.compact .go { border-radius: 0 calc(var(--r-l) - 1px) calc(var(--r-l) - 1px) 0; }
}
@media print { .top, .foot, .share, .related, .actions-row, .map-note a { display: none; } }

/* Avís d'un problema: discret, al final de la fitxa. */
.report { margin-top: var(--s6); font-size: 14px; }
.report > summary { cursor: pointer; color: var(--muted); }
.report form { max-width: 520px; margin-top: var(--s3); padding: var(--s4); border: 1px solid var(--line); border-radius: var(--r-l); background: var(--surface); }
.report-reasons { display: flex; flex-direction: column; gap: var(--s1); margin-bottom: var(--s3); }
.report-reasons label { display: flex; align-items: center; gap: var(--s2); min-height: 36px; }
.report-reasons input { width: 18px; height: 18px; margin: 0; accent-color: var(--accent); }
.report-note { display: flex; flex-direction: column; gap: 6px; margin-bottom: var(--s3); font-weight: 600; font-size: 13px; }
.report-note small { font-weight: 400; color: var(--muted); }
.report-note textarea { padding: var(--s2) var(--s3); border: 1px solid var(--border); border-radius: var(--r-m); background: var(--bg); color: var(--ink); font: inherit; font-size: 16px; font-weight: 400; resize: vertical; }
.report-status { margin: var(--s3) 0 0; color: var(--muted); }
.report-status:empty { display: none; }

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Altres dates de la mateixa activitat */
.more-dates { display: flex; flex-wrap: wrap; gap: 6px; }
