/* CMS bloky (backoffice Obsah webu) - stranky z databaze, pages/cms_page.php.
   Samostatny soubor (mimo grunt build main.css), nacita se jen na CMS strankach. */
.cms-page .cms-content { max-width: 960px; }
.cms-page .cms-perex { font-size: 1.15rem; color: #444; margin-bottom: 1.5rem; }
.cms-block { margin: 0 0 1.25rem; }
.cms-heading { margin-top: 2rem; }
.cms-text p:last-child { margin-bottom: 0; }
.cms-text ol { padding-left: 1.4rem; }
.cms-text img { max-width: 100%; height: auto; }

.cms-image { margin: 1.5rem 0; }
.cms-image img, .cms-image picture img { max-width: 100%; height: auto; border-radius: 8px; display: block; }
.cms-image-full img { width: 100%; }
.cms-image-wide { margin-left: -15px; margin-right: -15px; }
.cms-image-wide img { width: 100%; border-radius: 0; }
.cms-image-half img { max-width: 50%; }
.cms-align-center img { margin-left: auto; margin-right: auto; }
.cms-align-center figcaption { text-align: center; }
.cms-align-right { text-align: right; }
.cms-align-right img { margin-left: auto; }
.cms-image figcaption, .cms-video figcaption { font-size: .85rem; color: #6c757d; margin-top: .4rem; }
@media (max-width: 767px) { .cms-image-half img { max-width: 100%; } }

.cms-gallery { display: grid; gap: 10px; }
.cms-cols-2 { grid-template-columns: repeat(2, 1fr); }
.cms-cols-3 { grid-template-columns: repeat(3, 1fr); }
.cms-cols-4 { grid-template-columns: repeat(4, 1fr); }
.cms-gallery-item img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; border-radius: 6px; display: block; }
.cms-gallery-slider { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 10px; -webkit-overflow-scrolling: touch; }
.cms-gallery-slider .cms-gallery-item { flex: 0 0 80%; scroll-snap-align: start; }
@media (max-width: 767px) { .cms-cols-3, .cms-cols-4 { grid-template-columns: repeat(2, 1fr); } }

.cms-video-frame { position: relative; padding-top: 56.25%; border-radius: 8px; overflow: hidden; background: #000; }
.cms-video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.cms-list-checks { list-style: none; padding-left: 0; }
.cms-list-checks li { position: relative; padding-left: 1.7rem; margin-bottom: .4rem; }
.cms-list-checks li::before { content: "\2713"; position: absolute; left: 0; top: 0; color: #28a745; font-weight: 700; }

.cms-quote { border-left: 4px solid #e9ecef; padding: .5rem 1.25rem; font-size: 1.1rem; color: #495057; }
.cms-quote footer { font-size: .9rem; color: #6c757d; margin-top: .3rem; }
.cms-quote footer::before { content: "\2014 "; }

.cms-button { margin: 1.25rem 0; }
.cms-button .btn { padding: .6rem 1.4rem; }

.cms-faq-item { border: 1px solid #e9ecef; border-radius: 8px; padding: .75rem 1rem; margin-bottom: .5rem; background: #fff; }
.cms-faq-item summary { cursor: pointer; font-weight: 600; list-style: none; position: relative; padding-right: 1.5rem; }
.cms-faq-item summary::-webkit-details-marker { display: none; }
.cms-faq-item summary::after { content: "+"; position: absolute; right: 0; top: 0; font-size: 1.2rem; line-height: 1; color: #6c757d; }
.cms-faq-item[open] summary::after { content: "\2212"; }
.cms-faq-answer { padding-top: .6rem; color: #444; }
.cms-faq-answer p:last-child { margin-bottom: 0; }

.cms-table { overflow-x: auto; }
.cms-table table { min-width: 480px; }

.cms-notice { border-left: 4px solid; padding: .8rem 1rem; border-radius: 0 8px 8px 0; }
.cms-notice p:last-child { margin-bottom: 0; }
.cms-notice-info { background: #eaf4fb; border-color: #4a9fd8; }
.cms-notice-warning { background: #fff5e6; border-color: #f0a030; }
.cms-notice-success { background: #edf9f0; border-color: #3cb371; }

.cms-file a { font-weight: 600; }
.cms-file a::before { content: "\2B07 "; }
.cms-divider { margin: 2rem 0; }

/* ---------- Blog (E2) ---------- */
.cms-breadcrumb { font-size: .85rem; color: #6c757d; margin-bottom: .75rem; }
.cms-breadcrumb a { color: #6c757d; }
.cms-cats { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 1rem 0 1.5rem; }
.cms-chip { display: inline-block; padding: .35rem .9rem; border-radius: 999px; border: 1px solid #dde3ea; color: #334155; background: #fff; font-size: .9rem; text-decoration: none; }
.cms-chip small { color: #94a3b8; }
.cms-chip:hover { border-color: #0f766e; color: #0f766e; text-decoration: none; }
.cms-chip.act { background: #0f766e; border-color: #0f766e; color: #fff; }
.cms-chip.act small { color: rgba(255,255,255,.75); }
.cms-chip-sub { font-size: .82rem; padding: .25rem .7rem; }
.cms-chip-sep { width: 1px; height: 22px; background: #dde3ea; margin: 0 4px; }
.cms-grid-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.cms-grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 991px) { .cms-grid-cards, .cms-grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575px) { .cms-grid-cards, .cms-grid-3 { grid-template-columns: 1fr; } }
.cms-card { display: flex; flex-direction: column; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 12px rgba(15,23,42,.08); transition: transform .15s, box-shadow .15s; }
.cms-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(15,23,42,.12); }
.cms-card-img { display: block; aspect-ratio: 16 / 10; background: #eef1f4; overflow: hidden; }
.cms-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cms-card-noimg { display: block; width: 100%; height: 100%; background: linear-gradient(135deg, #e2e8f0, #cbd5e1); }
.cms-card-body { padding: 1rem 1.15rem 1.25rem; display: flex; flex-direction: column; flex: 1; }
.cms-card-meta { font-size: .78rem; color: #6c757d; display: flex; flex-wrap: wrap; gap: 4px 10px; margin-bottom: .4rem; }
.cms-card-cat { color: #0f766e; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; }
.cms-card-title { font-size: 1.15rem; line-height: 1.3; margin: 0 0 .5rem; }
.cms-card-title a { color: #0f172a; text-decoration: none; }
.cms-card-title a:hover { color: #0f766e; }
.cms-card-perex { font-size: .92rem; color: #475569; margin: 0 0 .75rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.cms-card-more { margin-top: auto; font-weight: 600; font-size: .9rem; color: #0f766e; text-decoration: none; }
.cms-card-featured .cms-card-cat::before { content: "\2605 "; }
.cms-article { max-width: 860px; }
.cms-article-head .cms-card-meta { margin-bottom: .75rem; }
.cms-article-cover { margin: 1.25rem 0 2rem; }
.cms-article-cover img { width: 100%; height: auto; border-radius: 12px; display: block; }
.cms-article .cms-content { font-size: 1.05rem; line-height: 1.65; }
.cms-article .cms-content .cms-heading { margin-top: 2.2rem; }
.cms-article-foot { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid #e9ecef; }
.cms-related { margin-top: 3.5rem; }
.cms-related h2 { font-size: 1.5rem; margin-bottom: 1.25rem; }
/* homepage sekce */
.cms-home-blog { padding: 3rem 0; }
.cms-home-blog h2 { text-align: center; margin-bottom: 1.5rem; }
.cms-home-blog .cms-home-more { text-align: center; margin-top: 1.5rem; }

/* ---------- bloky trasa / kolo (E3) ---------- */
.cms-route, .cms-bike { display: flex; gap: 20px; border: 1px solid #e9ecef; border-radius: 12px; overflow: hidden; background: #fff; margin: 1.5rem 0; }
.cms-route-img, .cms-bike-img { flex: 0 0 38%; background: #f4f6f8; display: block; }
.cms-route-img img, .cms-bike-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cms-bike-img img { object-fit: contain; padding: 10px; }
.cms-route-body, .cms-bike-body { padding: 1rem 1.25rem 1rem 0; flex: 1; }
.cms-route-body h3, .cms-bike-body h3 { font-size: 1.25rem; margin: 0 0 .5rem; }
.cms-route-body h3 a, .cms-bike-body h3 a { color: #0f172a; text-decoration: none; }
.cms-route-stats { list-style: none; padding: 0; margin: 0 0 .75rem; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .9rem; color: #475569; }
.cms-route-stats b { color: #0f172a; }
.cms-route-note, .cms-bike-note { font-size: .9rem; color: #6c757d; margin: .75rem 0 0; }
.cms-bike-alias { color: #475569; margin: 0 0 .4rem; font-size: .95rem; }
.cms-bike-price { margin: 0 0 .75rem; color: #475569; }
.cms-bike-price b { color: #0f766e; font-size: 1.15rem; }
@media (max-width: 575px) { .cms-route, .cms-bike { flex-direction: column; } .cms-route-img, .cms-bike-img { flex-basis: auto; aspect-ratio: 16 / 9; } .cms-route-body, .cms-bike-body { padding: 0 1rem 1rem; } }
