/* 
============================================
FRÝDLANTSKÁ PADESÁTKA - HLAVNÍ CSS
============================================
Created :: 2026-01-22
Updated :: 2026-01-22

Struktura:
1. Reset & Base
2. Layout
3. Header / Záhlaví
4. Navigation / Menu
5. Content Sections
6. Containers (pochod info, trasy)
7. Forms
8. Articles & News
9. Footer / Patička
10. Utility Classes
============================================
*/

/* ==========================================
   1. RESET & BASE
   ========================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    transition: color 0.2s ease, opacity 0.2s ease;
}

/* ==========================================
   2. LAYOUT
   ========================================== */

.in {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 25px;
}

#content {
    position: relative;
}

#content_obsah {
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px 25px 50px 25px;
}

#content_obsah.hp {
    padding: 0;
    max-width: 100%;
}

#content_obsah.struktura {
    max-width: 900px;
    margin: 0px auto 0px auto;
}

#content_obsah.udalosti {
    max-width: 1000px;
    margin: 0px auto 0px auto;
}

#content_obsah.udalost_detail {
    max-width: 900px;
}

#content_obsah.system {
    max-width: 900px;
}

/* Aside - skrytý pokud prázdný */
aside {
    display: none;
}

.breaker {
    clear: both;
    border: 0;
    height: 0;
}

/* ==========================================
   3. HEADER / ZÁHLAVÍ
   ========================================== */

#header_zahlavi {
    position: relative;
    background-image: url(../../pics/header-bg-2.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 60px), 0 100%);
    padding-bottom: 60px;
}

#header_zahlavi::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.4) 0%,
        rgba(0, 0, 0, 0.2) 50%,
        rgba(0, 0, 0, 0.5) 100%
    );
    z-index: 1;
}

#header_zahlavi.podstranka {
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 40px), 0 100%);
    padding-bottom: 40px;
}

#zahlavi {
    position: relative;
    z-index: 2;
}

#zahlavi .in {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding-top: 20px;
    padding-bottom: 20px;
}

/* Logo */
#zahlavi .logo {
    flex: 0 0 auto;
}

#zahlavi .logo img {
    max-width: 120px;
    height: auto;
}

#zahlavi .logo a {
    display: block;
}

/* Container Header - Hlavní text */
#container_header {
    width: 100%;
    text-align: center;
    padding: 80px 20px 100px 20px;
}

#container_header ul {
    list-style: none;
}

#container_header li:first-child {
    margin-bottom: 8px;
}

#container_header li:nth-child(2) {
    margin-bottom: 50px;
}

#container_header li:nth-child(3) {
    margin-bottom: 20px;
}

#container_header li:nth-child(3) span {
    display: inline;
}

#container_header li:nth-child(4) {
    max-width: 700px;
    margin: 0 auto;
}

/* Podstránka header */
#container_header.sub {
    padding: 40px 20px 60px 20px;
}

#container_header.sub ul {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

#container_header.sub li:first-child,
#container_header.sub li:nth-child(2) {
    margin-bottom: 0;
}

#container_header.sub header {
    text-align: center;
}

/* ==========================================
   4. NAVIGATION / MENU
   ========================================== */

nav {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

/* Desktop menu */
#menu {
    display: block;
}

#menu ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

#menu ul li {
    position: relative;
}

#menu ul li a {
    display: block;
    padding: 15px 20px;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

#menu ul li a:hover {
    text-decoration: none;
}

#menu ul li.active a {
    position: relative;
}

#menu ul li.active a::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 20px;
    right: 20px;
    height: 2px;
    border-radius: 1px;
}

/* Burger menu button */
.nav_toggle {
    display: none;
    border: 0;
    padding: 10px;
    cursor: pointer;
    background: transparent;
    z-index: 1001;
}

.nav_toggle_box {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 28px;
    height: 24px;
}

.nav_toggle_bar {
    display: block;
    width: 28px;
    height: 3px;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav_toggle_bar:nth-child(2) {
    margin: 5px 0;
}

.nav_toggle[aria-expanded="true"] .nav_toggle_bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.nav_toggle[aria-expanded="true"] .nav_toggle_bar:nth-child(2) {
    opacity: 0;
}

.nav_toggle[aria-expanded="true"] .nav_toggle_bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Mobile drawer */
.nav_drawer {
    position: fixed;
    inset: 0;
    z-index: 5000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.nav_drawer[hidden] {
    display: block !important;
    opacity: 0;
    visibility: hidden;
}

.nav_drawer.open {
    opacity: 1;
    visibility: visible;
}

.nav_drawer_inner {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: min(85vw, 380px);
    padding: 80px 30px 40px;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.nav_drawer.open .nav_drawer_inner {
    transform: translateX(0);
}

.nav_close {
    position: absolute;
    right: 20px;
    top: 20px;
    border: 0;
    background: transparent;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

.menu_all {
    list-style: none;
    margin: 0;
    padding: 0;
}

.menu_all li {
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.menu_all li:last-child {
    border-bottom: none;
}

.menu_all li a {
    display: block;
    padding: 18px 10px;
    text-decoration: none;
    transition: background-color 0.2s ease, padding-left 0.2s ease;
}

.menu_all li a:hover {
    padding-left: 20px;
}

.menu_all li.active a {
    font-weight: 700;
}

body.no_scroll {
    overflow: hidden;
}

/* ==========================================
   5. CONTENT SECTIONS
   ========================================== */

/* Prvky - úvodní sekce */
.prvky {
    max-width: 900px;
    margin: 0px auto;
    padding: 0 25px;
}

.prvek_hp_uvod {
	margin: 120px auto;
}

.prvek_hp_uvod .tinymce {
    text-align: center;
}

/* Obsah - strukturované stránky */
.obsah {
    margin-bottom: 0px; /* xxxxxxxxxx  */
}

.obsah_uvod .tinymce {
    line-height: 1.7;
}

/* Admin box - skrýt v produkci nebo stylovat */
.admin_box {
    display: none; /* Skrýt v produkci */
}

/* ==========================================
   6. CONTAINERS (pochod info, trasy)
   ========================================== */

/* Container Pochod Info */
#container_pochod_info {
    padding: 120px 90px 100px 90px;
    clip-path: polygon(0 50px, 100% 0, 100% calc(100% - 50px), 0 100%);
    margin-top: -30px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 30px;
    max-width: 100%;
    box-sizing: border-box;
}

#container_pochod_info > .box {
    flex: 1 1 200px;
    min-width: 200px;
    max-width: calc(25% - 25px);
    padding: 0;
}

#container_pochod_info h3 {
    display: block;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 12px;
}

#container_pochod_info h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    border-radius: 2px;
}

#container_pochod_info p {
    display: block;
    line-height: 1.6;
}

/* Container Trasy */
#container_trasy {
    padding: 100px 25px 130px 25px;
    text-align: center;
    clip-path: polygon(0 50px, 100% 0, 100% calc(100% - 50px), 0 100%);
    margin-top: -30px;
}

#container_trasy h3 {
    margin-bottom: 60px;
}

#container_trasy .boxies {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto 40px auto;
}

#container_trasy .box {
    padding: 30px 25px;
    border-radius: 12px;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#container_trasy .box:hover {
    transform: translateY(-5px);
}

#container_trasy .box h4 {
    margin-bottom: 20px;
    text-align: center;
}

#container_trasy .box p {
    line-height: 1.7;
    margin-bottom: 20px;
}

#container_trasy .button_respo {
    display: none;
    margin-top: 20px;
    text-align: center;
}

#container_trasy .button_respo a {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#container_trasy .button_respo a:hover {
    transform: translateY(-2px);
}

#container_trasy .buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}

#container_trasy .buttons .box {
    padding: 0;
    border: none;
    background: transparent;
}

#container_trasy .button_desktop {
    text-align: center;
}

#container_trasy .button_desktop a {
    display: inline-block;
    padding: 14px 35px;
    border-radius: 25px;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#container_trasy .button_desktop a:hover {
    transform: translateY(-2px);
    text-decoration: none;
}

/* ==========================================
   7. FORMS
   ========================================== */

/* Honeypot */
#form_control_point {
    display: none !important;
}

/* Události - registrační formulář */
.udalost_registrace_form {
    margin-top: 50px;
    padding: 50px 40px;
    border-radius: 12px;
}

.udalost_registrace_form h2 {
    text-align: center;
    margin-bottom: 40px;
}

.udalost_registrace_form form {
    max-width: 500px;
    margin: 0 auto;
}

.udalost_registrace_form fieldset {
    border: none;
    padding: 0;
    margin: 0;
}

.form_line {
    margin-bottom: 25px;
}

.form_line label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form_line .inputdiv {
    width: 100%;
}

.form_line .inputdivokraj {
    width: 100%;
}

.form_line input[type="text"],
.form_line input[type="email"],
.form_line input[type="tel"],
.form_line select,
.form_line textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.form_line select {
    padding: 14px 40px 14px 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    cursor: pointer;
}

.form_line input:focus,
.form_line select:focus,
.form_line textarea:focus {
    outline: none;
    border-color: #7ed957;
    box-shadow: 0 0 0 3px rgba(126, 217, 87, 0.2);
}

.form_line textarea {
    resize: vertical;
    min-height: 100px;
}

.form_hint {
    margin-top: 6px;
    font-size: 13px;
    opacity: 0.7;
}

/* Checkbox line */
.form_line_checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.form_line_checkbox .inputdiv {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.form_line_checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    cursor: pointer;
}

.form_line_checkbox label {
    margin-bottom: 0;
    font-weight: normal;
    cursor: pointer;
}

/* Radio buttons - platba */
.form_line_platba .inputdiv {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.platba_option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.platba_option:hover {
    border-color: rgba(0, 0, 0, 0.2);
}

.platba_option input[type="radio"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.platba_option label {
    margin-bottom: 0;
    font-weight: normal;
    cursor: pointer;
}

/* ==========================================
   SHRNUTÍ FORMULÁŘE - NOVÁ VERZE
   ========================================== */

/* Hlavní kontejner */
.form_shrnuti {
    margin-top: 40px;
    background-color: #fff;
    border: 2px solid #e8eaed;
    border-radius: 12px;
    overflow: hidden;
}

/* Hlavička (náhrada za legend) */
.form_shrnuti_header {
    background-color: #f5f6f8;
    padding: 15px 25px;
    font-family: var(--font-heading, "Montserrat", sans-serif);
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    border-bottom: 2px solid #e8eaed;
}

/* Tělo s řádky */
.form_shrnuti_body {
    padding: 10px 25px 20px 25px;
}

/* Jednotlivé řádky */
.shrnuti_radek {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #e8eaed;
}
.shrnuti_radek.last {
    border-bottom: 0px solid #e8eaed;
}


.shrnuti_radek:last-child {
    border-bottom: none;
}

/* Label (levá strana) */
.shrnuti_label {
    font-family: var(--font-body, "Open Sans", sans-serif);
    font-size: 16px;
    color: #1a1a1a;
}

/* Hodnota (pravá strana) */
.shrnuti_hodnota {
    font-family: var(--font-body, "Open Sans", sans-serif);
    font-size: 16px;
    color: #1a1a1a;
    text-align: right;
}

/* Řádek "Celkem k úhradě" - zvýrazněný */
.shrnuti_celkem {
    margin-top: 10px;
    padding-top: 20px;
    border-top: 2px solid #e8eaed;
    border-bottom: none;
}

.shrnuti_celkem .shrnuti_label {
    font-size: 17px;
    font-weight: 700;
}

.shrnuti_celkem .shrnuti_hodnota,
.shrnuti_cena_celkem {
    font-size: 20px;
    font-weight: 700;
    color: #5cb83a;
}

/* Řádek "Nyní hradíte" (pokud je záloha) */
.shrnuti_platba {
    border-bottom: none;
}

.shrnuti_platba .shrnuti_label {
    color: rgba(26, 26, 26, 0.7);
}

.shrnuti_platba .shrnuti_hodnota {
    font-weight: 600;
}

/* Submit button */
.udalost_registrace_form button[type="submit"],
.btn_primary {
    display: block;
    width: 100%;
    padding: 18px 40px;
    margin-top: 30px;
    border: none;
    border-radius: 30px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn_primary:hover {
    transform: translateY(-2px);
}

/* Událost info tabulka */
.udalost_info_table {
    margin-bottom: 40px;
}

.udalost_info_table table {
    width: 100%;
    border-collapse: collapse;
}

.udalost_info_table th,
.udalost_info_table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.udalost_info_table th {
    width: 40%;
    font-weight: 600;
}

.kapacita_volna {
    opacity: 0.7;
    font-size: 14px;
}

.registrace_open {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 14px;
    font-weight: 600;
}

/* Událost popisy */
.udalost_popis_kratky,
.udalost_popis_dlouhy {
    margin-bottom: 30px;
    line-height: 1.7;
}

/* ==========================================
   8. ARTICLES & NEWS
   ========================================== */

/* Article HP */
.article_hp,
.article_hp_2 {
    max-width: 800px;
    margin: 80px auto;
    padding: 0 25px;
}

.article_hp_2 h2 {
    text-align: center;
    margin-bottom: 20px;
}

.article_hp .hlavnistrana,
.article_hp_2 .hlavnistrana {
    padding: 25px 30px;
    border-left-width: 5px;
    border-left-style: solid;
    margin: 30px 0;
}

.article_hp_2 .button {
    max-width: 220px;
    margin: 30px auto 0 auto;
    text-align: center;
}

.article_hp_2 .button a {
    display: block;
    padding: 16px 35px;
    border-radius: 25px;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.article_hp_2 .button a:hover {
    transform: translateY(-2px);
    text-decoration: none;
}

/* News vypis */
.next_articles:empty {
    display: none;
}

.next_articles {
    max-width: 900px;
    margin: 0px auto 60px auto;
    padding: 0 25px;
}

.vypis_box.news {
    padding: 30px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.vypis_box.news:first-child {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.vypis_box.news h2 {
    margin-bottom: 0;
}

.vypis_box.news h2 a {
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.vypis_box.news h2 a:hover {
    opacity: 0.7;
}

.vypis_box.novinky
{
    margin-bottom: 50px;
}
/* Události výpis */
.udalosti_uvod {
    margin-bottom: 40px;
}

.udalosti_vypis {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.udalosti_vypis .udalost {
    padding: 25px 30px;
    border-radius: 10px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 15px 30px;
    transition: transform 0.2s ease;
}

.udalosti_vypis .udalost:hover {
    transform: translateX(5px);
}

.udalosti_vypis .udalost strong {
    flex: 0 0 100px;
}

.udalosti_vypis .udalost a {
    flex: 1;
    text-decoration: none;
    font-weight: 600;
}

.udalosti_vypis .udalost a:hover {
    text-decoration: underline;
}

.udalosti_vypis .udalost p {
    flex: 0 0 100%;
    margin: 0;
    opacity: 0.7;
}

/* Registrace success */
.udalost_registrace_success main {
    padding: 0px 25px;
}

.success_message {
    text-align: center;
    padding: 40px;
    border-radius: 12px;
    margin-bottom: 40px;
}

.success_message p {
    margin-bottom: 10px;
}

.success_message p:last-child {
    margin-bottom: 0;
}

.registrace_summary {
    max-width: 600px;
    margin: 0 auto;
}

.registrace_summary h2 {
    margin: 40px 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(0, 0, 0, 0.1);
}

.registrace_summary table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.registrace_summary th,
.registrace_summary td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.registrace_summary th {
    width: 45%;
}

.qr_platba {
    text-align: center;
    padding: 30px;
    border-radius: 12px;
    margin-top: 30px;
}

.qr_platba h3 {
    margin-bottom: 20px;
}

.qr_platba img {
    max-width: 200px;
    margin: 0 auto;
}

.back_link {
    text-align: center;
    margin-top: 40px;
}

.back_link a {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 25px;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.back_link a:hover {
    transform: translateX(-5px);
}

/* ==========================================
   9. FOOTER / PATIČKA
   ========================================== */

footer {
    margin-top: -30px;
}

/* Partneři */
footer .article_hp_2 {
    margin: 70px auto 40px auto;
}

.partneri-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px 50px;
    padding: 0 25px;
    margin-bottom: 60px;
}

.partneri-logos img {
    max-width: 150px;
    max-height: 80px;
    object-fit: contain;
    filter: grayscale(30%);
    opacity: 0.8;
    transition: filter 0.3s ease, opacity 0.3s ease;
}

.partneri-logos img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* Patička */
#paticka {
    clip-path: polygon(0 50px, 100% 0, 100% 100%, 0 100%);
    padding: 120px 25px 80px 25px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px 60px;
    max-width: 100%;
}

#paticka .column {
    flex: 1 1 250px;
    max-width: 350px;
}

#paticka h4 {
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 12px;
}

#paticka h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
}

#paticka ul {
    list-style: none;
}

#paticka ul li {
    margin-bottom: 12px;
}

#paticka ul li a {
    text-decoration: none;
    transition: opacity 0.2s ease;
}

#paticka ul li a:hover {
    text-decoration: underline;
}

/* Kontakt column */
.column_kontakt ul li {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Social icons */
.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    text-decoration: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.social-icon:hover {
    transform: translateY(-3px);
    text-decoration: none;
}

.social-icon i {
    font-size: 20px;
}

/* Logo v patičce */
.column_logo {
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.column_logo .logo img {
    max-width: 120px;
}

/* Copyright */
#copyright {
    padding: 30px 25px 40px 25px;
    text-align: center;
}

#copyright span {
    display: inline-block;
    margin: 3px 0;
}

#copyright span:not(:first-child)::before {
    content: " • ";
    margin: 0 8px;
}

#copyright a {
    text-decoration: none;
}

#copyright a:hover {
    text-decoration: underline;
}

/* ==========================================
   10. UTILITY CLASSES
   ========================================== */

/* Galerie */
.galerie_mini { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-top: 10px; }
.galerie_mini a { display: block; border-radius: 6px; overflow: hidden; }
.galerie_mini a:not(.galerie_all) { aspect-ratio: 1 / 1; }
.galerie_mini img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.galerie_mini a:not(.galerie_all):hover img { transform: scale(1.05); }
/* CTA odkaz */
.galerie_mini a.galerie_all { grid-column: 1 / -1; padding: 14px 18px; border-radius: 10px; text-align: center; text-decoration: none; margin-top: 0px; }

/* Responzivita */
@media (max-width: 1000px) {
    .galerie_mini { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 650px) {
    .galerie_mini { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 420px) {
    .galerie_mini { grid-template-columns: repeat(2, 1fr); }
}

/* TinyMCE obsah */
.tinymce h2 {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(0, 0, 0, 0.1);
}

.tinymce h3 {
    margin: 30px 0 15px 0;
}

.tinymce p {
    margin-bottom: 20px;
    line-height: 1.7;
}

.tinymce p:last-child {
    margin-bottom: 0;
}

.tinymce ul,
.tinymce ol {
    margin: 0 0 20px 25px;
}

.tinymce li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.tinymce a {
    text-decoration: underline;
}

.tinymce a:hover {
    text-decoration: none;
}

.tinymce table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.tinymce table td,
.tinymce table th {
    padding: 12px 15px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    text-align: left;
}

/* Kontakty stránka */
ul.kontakty {
    list-style: none;
}

ul.kontakty li {
    margin-bottom: 15px;
    font-size: 18px;
}

ul.kontakty li a {
    text-decoration: none;
}

ul.kontakty li a:hover {
    text-decoration: underline;
}

/* Errors */
div.error_box,
div.success_box,
div.info_box,
div.warning_box {
    padding: 20px 25px;
    border-radius: 8px;
    margin-bottom: 20px;
}

/* Startovní listina tabulka */
table.startlistina {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0 90px 0px;
    border-radius: 8px;
    overflow: hidden;
}

table.startlistina th {
    text-align: left;
    padding: 15px;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.5px;
}

table.startlistina td {
    padding: 12px 15px;
    vertical-align: middle;
}

table.startlistina tr {
    transition: background-color 0.2s ease;
}

/* Badge */
.badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 13px;
    font-weight: 600;
}

/* ==========================================
   HOMEPAGE COUNTDOWN
   ========================================== */

#hp_countdown_wrapper {
    display: flex;
    justify-content: center;
    padding: 80px 25px 0px 25px;
}

#hp_countdown {
    max-width: 1000px;
    width: 100%;
    text-align: center;
}

/* Horní texty */
#hp_countdown .count-left {
    margin-bottom: 20px;
}

#hp_countdown .count-label-small {
    margin-bottom: 0px;
}

#hp_countdown .count-title {
    max-width: 700px;
    margin: 0 auto;
}

/* Počítadlo */
#hp_countdown .count-right {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

#hp_countdown .count-item {
    min-width: 90px;
    text-align: center;
}


/* ==========================================
   JINE
   ========================================== */


.obsah.obsah_uvod + .next_articles { margin-top: 90px; }
#container_trasy + .next_articles { margin-top: 90px; }