/* CykloInfo – modul OBSAH (agent D): články, podujatia, servisy, statické stránky, pravý panel.
   Základné komponenty (.ci-card, .ci-btn, .ci-chip, .ci-badge, .cpf-*) sú v app.css (agent C). */

.ct-wrap { min-width: 0; }
.ct-wrap + .ct-wrap { margin-top: 20px; }
.ct-h1 { display: flex; align-items: center; gap: 10px; margin: 0 0 6px; font-size: clamp(1.45rem, 1.1rem + 1.4vw, 2rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.15; color: var(--ci-ink, #2b2c30); }
.ct-h1 .lc { color: var(--ci-green, #2f9e6b); flex: none; }
.ct-lead { color: var(--ci-muted, #6b716e); margin: 0 0 16px; max-width: 680px; }
.ct-muted { color: var(--ci-muted, #6b716e); }
.ct-note { margin: 12px 0; font-size: 14px; }
.ct-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.ct-head .ct-h1 { margin: 0; }

/* omrvinky */
.ct-crumbs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 13px; color: var(--ci-muted, #6b716e); margin: 0 0 12px; }
.ct-crumbs a { color: var(--ci-muted, #6b716e); text-decoration: none; }
.ct-crumbs a:hover { color: var(--ci-green-600, #1f7a4f); text-decoration: underline; }
.ct-crumbs [aria-current] { color: var(--ci-ink, #2b2c30); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 46ch; }

/* vyhľadávanie a filtre */
.ct-search { display: flex; gap: 8px; flex: 1 1 260px; max-width: 380px; }
.ct-search .cpf-input { flex: 1; min-width: 0; }
.ct-search .ci-btn { flex: none; width: 48px; padding: 0; }
.ct-chips { margin-bottom: 10px; }
.ct-chips small { font-size: 12px; opacity: .75; font-weight: 600; }
.ct-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 14px; }
.ct-cswitch { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.ct-chips + .ct-cswitch { margin-bottom: 16px; }
.ct-cswitch .ci-chip { min-height: 36px; padding: 6px 12px; font-size: 13.5px; }
.ct-locbox { margin: 0 0 14px; }
.ct-locbox > summary { cursor: pointer; display: inline-flex; gap: 6px; align-items: center; font-weight: 600; font-size: 14px; color: var(--ci-green-600, #1f7a4f); list-style: none; }
.ct-locbox > summary::-webkit-details-marker { display: none; }
.ct-locbox[open] > summary { margin-bottom: 10px; }
.ct-locf { flex: 1 1 100%; }

/* placeholder obrázka */
.ct-ph { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; background: linear-gradient(135deg, #dff2e7, #c4e7d3 60%, #b2dcc4); color: var(--ci-green-600, #1f7a4f); }
.ct-ph .lc { width: 30%; height: auto; max-width: 64px; opacity: .55; stroke-width: 1.5; }

/* ---------- pravý panel ---------- */
.ct-side__all { display: inline-flex; align-items: center; gap: 3px; font-size: 12.5px; font-weight: 700; color: var(--ci-green-600, #1f7a4f); text-decoration: none; white-space: nowrap; }
.ct-side__all:hover { text-decoration: underline; }
.ct-side__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ct-side__empty { margin: 0; font-size: 14px; color: var(--ci-muted, #6b716e); }
.ct-side__title { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: 1.05rem; font-weight: 800; }
.ct-side__title .lc { color: var(--ci-green, #2f9e6b); }
.ct-side-art, .ct-side-ev { display: flex; gap: 12px; align-items: center; text-decoration: none; color: var(--ci-ink, #2b2c30); border-radius: 12px; }
.ct-side-art:hover b, .ct-side-ev:hover b { color: var(--ci-green-600, #1f7a4f); }
.ct-side-art__img { flex: 0 0 92px; width: 92px; height: 62px; border-radius: 10px; overflow: hidden; background: #eef3f0; }
.ct-side-art__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ct-side-art__img .ct-ph { height: 100%; aspect-ratio: auto !important; }
.ct-side-art__t, .ct-side-ev__t { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ct-side-art__t b, .ct-side-ev__t b { font-size: 14px; font-weight: 700; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ct-side-art__t small, .ct-side-ev__t small { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--ci-muted, #6b716e); }
.ct-side-ev__t small .lc { color: var(--ci-green, #2f9e6b); }

/* dlaždica dátumu */
.ct-date { flex: 0 0 52px; width: 52px; height: 52px; border-radius: 12px; background: var(--ci-green-50, #eaf6ef); color: var(--ci-ink, #2b2c30); display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; }
.ct-date b { font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.ct-date small { font-size: 11px; font-weight: 800; color: var(--ci-green-600, #1f7a4f); margin-top: 3px; letter-spacing: .04em; }
.ct-date--lg { flex-basis: 60px; width: 60px; height: 60px; }
.ct-date--lg b { font-size: 23px; }
.ct-date--xl { flex-basis: 76px; width: 76px; height: 76px; border-radius: 16px; background: var(--ci-green, #2f9e6b); color: #fff; }
.ct-date--xl b { font-size: 30px; }
.ct-date--xl small { color: rgba(255, 255, 255, .85); font-size: 12px; }

/* meta riadky */
.ct-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin: 0; font-size: 13.5px; color: var(--ci-muted, #6b716e); }
.ct-meta .lc { color: var(--ci-green, #2f9e6b); flex: none; }
.ct-meta__sep { opacity: .6; }
.ct-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.ct-acts--center { justify-content: center; }

/* ---------- články ---------- */
.ct-agrid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.ct-acard { padding: 0; overflow: hidden; display: flex; flex-direction: column; margin: 0 !important; }
.ct-acard__img { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #eef3f0; }
.ct-acard__img img, .ct-acard__img .ct-ph { width: 100%; height: 100%; object-fit: cover; display: flex; aspect-ratio: auto !important; transition: transform .3s; }
.ct-acard:hover .ct-acard__img img { transform: scale(1.03); }
.ct-acard__body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.ct-acard__body .ci-badge { align-self: flex-start; text-decoration: none; }
.ct-acard__title { margin: 0; font-size: 1.08rem; font-weight: 800; line-height: 1.3; letter-spacing: -.015em; }
.ct-acard__title a { color: var(--ci-ink, #2b2c30); text-decoration: none; }
.ct-acard__title a:hover { color: var(--ci-green-600, #1f7a4f); }
.ct-acard__perex { margin: 0; font-size: 14px; color: #55585f; line-height: 1.5; }
.ct-acard .ct-meta { margin-top: auto; }
@media (min-width: 700px) {
  .ct-acard--big { grid-column: 1 / -1; flex-direction: row; }
  .ct-acard--big .ct-acard__img { flex: 0 0 52%; aspect-ratio: auto; min-height: 260px; }
  .ct-acard--big .ct-acard__body { padding: 22px 24px; justify-content: center; }
  .ct-acard--big .ct-acard__title { font-size: 1.45rem; }
}
.ct-pager { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 20px 0 4px; flex-wrap: wrap; }
.ct-pager__info { font-size: 14px; color: var(--ci-muted, #6b716e); }

.ct-article__head { margin-bottom: 14px; }
.ct-article__head .ci-badge { margin-bottom: 8px; text-decoration: none; }
.ct-article__cover { margin: 0 0 16px; border-radius: var(--ci-radius, 16px); overflow: hidden; background: #eef3f0; }
.ct-article__cover img { width: 100%; height: auto; display: block; }
.ct-article__perex { font-size: 1.12rem; line-height: 1.6; font-weight: 500; color: var(--ci-ink-2, #3a3c41); margin: 0 0 16px; }
.ct-prose { font-size: 16.5px; line-height: 1.7; color: var(--ci-ink, #2b2c30); overflow-wrap: anywhere; }
.ct-article .ct-prose { background: none; border: 0; box-shadow: none; padding: 0; }
.ct-prose > :first-child { margin-top: 0; }
.ct-prose > :last-child { margin-bottom: 0; }
.ct-prose h2 { font-size: 1.35rem; font-weight: 800; letter-spacing: -.02em; margin: 1.6em 0 .5em; line-height: 1.25; }
.ct-prose h3 { font-size: 1.12rem; font-weight: 700; margin: 1.3em 0 .4em; }
.ct-prose p, .ct-prose ul, .ct-prose ol { margin: 0 0 1em; }
.ct-prose ul, .ct-prose ol { padding-left: 1.3em; }
.ct-prose li { margin: .3em 0; }
.ct-prose li::marker { color: var(--ci-green, #2f9e6b); }
.ct-prose a { color: var(--ci-green-600, #1f7a4f); text-decoration: underline; text-underline-offset: 2px; }
.ct-prose blockquote { margin: 1.2em 0; padding: 12px 18px; border-left: 4px solid var(--ci-green, #2f9e6b); background: var(--ci-green-50, #eaf6ef); border-radius: 0 12px 12px 0; }
.ct-prose img { max-width: 100%; height: auto; border-radius: 12px; }
.ct-prose table { width: 100%; border-collapse: collapse; margin: 0 0 1em; font-size: 14.5px; display: block; overflow-x: auto; }
.ct-prose th, .ct-prose td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--ci-line, #e4e9e6); vertical-align: top; }
.ct-prose th { background: #f6f9f7; font-weight: 700; }
.ct-prose code { background: #f1f4f2; padding: 1px 6px; border-radius: 6px; font-size: .9em; }
.ct-prose .lead { font-size: 1.1em; font-weight: 500; }
.ct-prose .ct-video, .ct-prose iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: 12px; }
.ct-tags { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 20px 0 0; }
.ct-tags .lc { color: var(--ci-muted, #6b716e); }
.ct-tags .ci-chip { min-height: 32px; padding: 4px 12px; font-size: 13px; }
.ct-share { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 18px 0 0; padding-top: 16px; border-top: 1px solid var(--ci-line, #e4e9e6); }
.ct-share__lbl { font-weight: 700; font-size: 14px; margin-right: 4px; }
.ct-share .ci-btn--ghost { border: 1px solid var(--ci-line, #e4e9e6); }
.ct-related { margin-top: 28px; }
.ct-agrid--3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }

/* ---------- podujatia ---------- */
.ct-month { font-size: 1.05rem; font-weight: 800; margin: 22px 0 10px; color: var(--ci-ink, #2b2c30); text-transform: none; display: flex; align-items: center; gap: 10px; }
.ct-month::after { content: ''; flex: 1; height: 1px; background: var(--ci-line, #e4e9e6); }
.ct-elist { display: grid; gap: 10px; }
.ct-erow { display: flex; gap: 14px; align-items: center; text-decoration: none; color: var(--ci-ink, #2b2c30); margin: 0 !important; transition: box-shadow .15s, transform .15s; }
.ct-erow:hover { box-shadow: var(--ci-shadow-lg, 0 8px 24px rgba(0, 0, 0, .08)); }
.ct-erow__t { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1; }
.ct-erow__t > b { font-size: 1.02rem; font-weight: 800; line-height: 1.3; }
.ct-erow__going { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 700; color: var(--ci-green-600, #1f7a4f); background: var(--ci-green-50, #eaf6ef); border-radius: 999px; padding: 4px 10px; flex: none; }
.ct-mine ul { margin: 0; padding-left: 1.1em; font-size: 14px; display: grid; gap: 6px; }
.ct-event__head { display: flex; gap: 16px; align-items: center; margin: 0 0 14px; }
.ct-event__head .ct-h1 { margin: 0 0 4px; }
.ct-facts { display: grid; gap: 8px; }
.ct-facts .ct-meta { font-size: 15px; color: var(--ci-ink, #2b2c30); }
.ct-facts .ct-meta a { color: var(--ci-green-600, #1f7a4f); }
.ct-going-form { display: contents; }
[data-ct-going].is-on { background: var(--ci-green-600, #1f7a4f); color: #fff; }
.ct-going-n { display: inline-flex; min-width: 24px; height: 22px; padding: 0 7px; align-items: center; justify-content: center; border-radius: 999px; background: rgba(0, 0, 0, .08); font-size: 12.5px; }
.ci-btn--primary .ct-going-n, .is-on .ct-going-n { background: rgba(255, 255, 255, .22); }
.ct-mapbox { padding: 0; overflow: hidden; }
.ct-staticmap { display: flex; align-items: center; gap: 14px; min-height: 120px; padding: 20px; text-decoration: none; color: var(--ci-ink, #2b2c30);
  background: radial-gradient(circle at 20% 30%, rgba(47, 158, 107, .18), transparent 40%), repeating-linear-gradient(45deg, #eef5f1 0 14px, #e6f0ea 14px 28px); }
.ct-staticmap__pin { width: 56px; height: 56px; border-radius: 50%; background: #fff; display: grid; place-items: center; color: var(--ci-red, #e5484d); box-shadow: var(--ci-shadow, 0 4px 14px rgba(0, 0, 0, .08)); flex: none; }
.ct-staticmap__txt { font-weight: 700; display: flex; flex-direction: column; gap: 3px; }
.ct-staticmap__txt small { color: var(--ci-green-600, #1f7a4f); font-weight: 700; }
.ct-goers__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.ct-goers__list a { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ci-ink, #2b2c30); font-size: 14px; font-weight: 600; background: #f6f9f7; border-radius: 999px; padding: 4px 12px 4px 4px; }
.ct-goers__list .ci-avatar, .ct-ava { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; display: inline-grid; place-items: center; background: var(--ci-green-100, #cfeedd); color: var(--ci-green-700, #1f7a4f); font-weight: 800; font-size: 14px; }

/* ---------- formuláre ---------- */
.ct-form-2, .ct-form-3 { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .ct-form-2 { grid-template-columns: 1fr 1fr; } .ct-form-3 { grid-template-columns: 1fr 1fr 1fr; } }
.ct-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ct-contact { margin-top: 16px; }
.ct-operator { margin: 14px 0 0; font-size: 13px; color: var(--ci-muted, #6b716e); }

/* ---------- katalóg ---------- */
.ct-plist { display: grid; gap: 12px; }
.ct-pcard { display: flex; gap: 14px; align-items: flex-start; margin: 0 !important; }
.ct-pcard.is-featured { border-color: #ecd398; background: linear-gradient(100deg, #fffaf0, #fff 55%); box-shadow: 0 4px 18px rgba(201, 160, 74, .16); }
.ct-pcard__img { flex: 0 0 92px; width: 92px; height: 92px; border-radius: 14px; overflow: hidden; display: grid; place-items: center; color: var(--c, #2f9e6b); background: color-mix(in srgb, var(--c, #2f9e6b) 12%, #fff); }
.ct-pcard__img img, .ct-pcard__img .ct-ph { width: 100%; height: 100%; object-fit: cover; aspect-ratio: auto !important; }
.ct-pcard__img .lc { width: 34px; height: 34px; }
.ct-pcard__body { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 4px; }
.ct-pcard__top { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 0; }
.ct-pcard__title { margin: 2px 0 0; font-size: 1.08rem; font-weight: 800; letter-spacing: -.015em; }
.ct-pcard__title a { color: var(--ci-ink, #2b2c30); text-decoration: none; }
.ct-pcard__title a:hover { color: var(--ci-green-600, #1f7a4f); }
.ct-pcard .ct-acts { margin-top: 6px; }
.ct-pcard .ct-acts .ci-btn--ghost, .ct-place .ct-acts .ci-btn--ghost { border: 1px solid var(--ci-line, #e4e9e6); }
.ct-ptype { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; color: var(--c, #2f9e6b); background: color-mix(in srgb, var(--c, #2f9e6b) 11%, #fff); border-radius: 999px; padding: 3px 9px; }
.ct-open { font-size: 12px; font-weight: 700; border-radius: 999px; padding: 3px 9px; }
.ct-open.is-open { color: #1e7a4a; background: #e3f5ea; }
.ct-open.is-closed { color: #b3382c; background: #fdecec; }
.ct-open-txt.is-open span { color: #1e7a4a; font-weight: 700; }
.ct-open-txt.is-closed span { color: #b3382c; font-weight: 600; }
.ct-dist { font-weight: 800; color: var(--ci-green-600, #1f7a4f); }
.ct-dist::before { content: '· '; color: var(--ci-muted, #6b716e); font-weight: 400; }
.ct-map { padding: 0; height: 420px; overflow: hidden; margin-bottom: 14px !important; z-index: 0; }
.ct-map .leaflet-popup-content { font: 13px/1.4 var(--ci-font, system-ui, sans-serif); }
.ct-map .leaflet-popup-content a { font-weight: 700; color: var(--ci-green-600, #1f7a4f); }
.ct-place__head { display: flex; gap: 16px; align-items: center; margin-bottom: 14px; }
.ct-place__head .ct-h1 { margin: 4px 0; }
.ct-place__logo { flex: 0 0 84px; width: 84px; height: 84px; border-radius: 18px; overflow: hidden; display: grid; place-items: center; color: var(--c, #2f9e6b); background: color-mix(in srgb, var(--c, #2f9e6b) 12%, #fff); }
.ct-place__logo img { width: 100%; height: 100%; object-fit: cover; }
.ct-place__grid { display: grid; gap: 12px; margin-top: 12px; }
.ct-place__grid > .ci-card { margin: 0; }
@media (min-width: 760px) { .ct-place__grid { grid-template-columns: 1.4fr 1fr; } }
.ct-place .ct-prose h2 { margin-top: 0; font-size: 1.05rem; }
.ct-place .ct-mapbox { margin-top: 12px; }
.ct-hours { width: 100%; border-collapse: collapse; font-size: 14px; }
.ct-hours th, .ct-hours td { padding: 6px 0; border-bottom: 1px solid var(--ci-line-2, #eef1ef); text-align: left; font-weight: 500; }
.ct-hours td { text-align: right; font-variant-numeric: tabular-nums; }
.ct-hours .is-today th, .ct-hours .is-today td { font-weight: 800; color: var(--ci-green-700, #1f7a4f); }
.ct-hours th small { font-weight: 700; font-size: 11px; background: var(--ci-green-50, #eaf6ef); border-radius: 999px; padding: 1px 6px; margin-left: 4px; }
.ct-hours .is-closed { color: var(--ci-muted, #6b716e); }
.ct-nearby { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
.ct-nearby a { display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: var(--ci-ink, #2b2c30); margin: 0 !important; height: 100%; }
.ct-nearby .ct-ptype { align-self: flex-start; }
.ct-nearby small { color: var(--ci-muted, #6b716e); font-size: 12.5px; }
@media (max-width: 560px) {
  .ct-pcard__img { flex-basis: 68px; width: 68px; height: 68px; }
  .ct-hide-sm { display: none; }
  .ct-search { max-width: none; }
}

/* ---------- statické stránky + 404 ---------- */
.ct-static .ct-prose { padding: clamp(16px, 3vw, 28px); }
.ct-404 { text-align: center; padding: clamp(28px, 6vw, 56px) 20px; max-width: 720px; margin: 10px auto; }
.ct-404__icon { color: var(--ci-green, #2f9e6b); margin-bottom: 4px; }
.ct-404__code { font-size: clamp(56px, 12vw, 110px); font-weight: 900; line-height: 1; margin: 0; letter-spacing: -.05em; background: linear-gradient(135deg, var(--ci-green, #2f9e6b), var(--ci-green-700, #1f7a4f)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ct-404 .ct-h1 { justify-content: center; }
.ct-404 p { color: var(--ci-muted, #6b716e); max-width: 520px; margin: 8px auto 18px; }
