/* =======================
   SKIN / VISUALS (THEME)
   ======================= */
:root {
    --primary: #679e83;
    --primary-dark: #406a56;
    --accent: #eca434;
    --secondary: #db6f52;
    --bg: #fbf7f2;
    --section-even: #f0ebe4;
    --text: #2e2e2e;
    --text-anchor: #000;
    --font: 'Catamaran', sans-serif;
    --font-menu: 'Baloo 2', sans-serif;
    --file-icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'><path d='M7 3h7l5 5v13a1 1 0 0 1-1 1H7a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1z' stroke='currentColor' stroke-width='2' fill='none'/><path d='M14 3v5h5' stroke='currentColor' stroke-width='2' fill='none'/></svg>");
    --link-icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'><path d='M14 3h7v7m-1.5-5.5L10 14' stroke='currentColor' stroke-width='2'/><path d='M5 5h5v2H7v10h10v-3h2v5H5V5z' fill='currentColor'/></svg>");
    --image-icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'><rect x='3' y='5' width='18' height='14' rx='2' ry='2' stroke='currentColor' stroke-width='2'/><circle cx='8' cy='9' r='2' fill='currentColor'/><path d='M21 19l-6-7-5 6-3-4-4 5' stroke='currentColor' stroke-width='2' fill='none'/></svg>");
}

/* <weight>: Use a value from 100 to 900
/* <uniquifier>: Use a unique and descriptive class name

.catamaran-<uniquifier> {
  font-family: "Catamaran", sans-serif;
  font-optical-sizing: auto;
  font-weight: <weight>;
  font-style: normal;
}
/*

/* Základní vizuál */
html,
body {
    -webkit-touch-callout: none;
    /*-webkit-user-select: none;
    user-select: none; */
    overscroll-behavior-y: none;
    -webkit-overflow-scrolling: touch;
}

body {
    font-family: var(--font);
    font-size: 18px;    /* výchozí výška textu */
    background-color: var(--bg);
    color: var(--text);
    overflow-x: hidden;
}

h1, h2 {
    font-family: var(--font-menu);
}

body.force-mobile h2 {
    font-size: 1.4em;
}
body.force-mobile h3 {
    font-size: 1.2em;
}

.noscroll {
    overflow: hidden;
}

#content,
footer {
    transition: transform .4s cubic-bezier(.4, 0, .2, 1);
    will-change: transform;
}

img {
    -webkit-user-select: none;      /* zakázat označení textu */
    -moz-user-select: none;         
    user-select: none; 
}

/* NAV – vizuál */
#desktopNav {
    font-family: var(--font-menu);
    background-color: var(--primary);
    transition: background-color .4s ease;
    -webkit-user-select: none;      /* zakázat označení textu */
    -moz-user-select: none;         
    user-select: none; 
}

.shrink #desktopNav {
    background-color: var(--primary-dark);
}

#desktopNav .logo {
    height: 100%;
    font-size: 24px;
    font-weight: 600;
    color: #fff;
    transition: font-size .3s ease;
    flex-shrink: 0;
}

#desktopNav .logo img {
    height: 100%;
    width: auto;
    max-width: calc(100% - 50px);
    transition: height .3s ease;
}

.shrink #desktopNav .logo {
    font-size: 18px;
}

#desktopNav .links a {
    color: #fff;
    padding: 16px 12px;
    text-decoration: none;
    font-size: 20px;
    display: inline-block;
    transition: all .3s ease;
}

#desktopNav .links a:hover {
    transform: scale(1.1) translateY(-2px);
}

.shrink #desktopNav .links a {
    padding: 12px 10px;
    font-size: 16px;
}

#menu-toggle {
    color: #fff;
    font-size: 22px;
    transition: all .3s ease;
    background: transparent;
    border: 0;
    outline: 0;
}

.shrink #menu-toggle {
    font-size: 20px;
}

/* I v otevřeném stavu udrž průhledné a bez rámečku */
body.force-mobile.menu-open #menu-toggle {
  background: transparent !important;
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
}

.no-transition #desktopNav,
.no-transition #desktopNav .logo,
.no-transition #desktopNav .links a {
    transition: none !important;
}

#overlay {
      background: rgba(0, 0, 0, .4);
} 

#navMenu {
    background: var(--bg); 
    font-family: var(--font-menu);
    font-size: 18px;
    -webkit-user-select: none;      /* zakázat označení textu */
    -moz-user-select: none;         
    user-select: none; 
}

.menu-open #navMenu {
    box-shadow: -5px 0 20px rgba(0, 0, 0, .35);
}

#navMenu a {
    text-decoration: none;
    border-bottom: 1px solid rgba(0, 0, 0, .06);
    color: var(--text);
    transition: color .3s ease, transform .2s ease;
    display: inline-block; /* potřebné pro transform */
    width: 100%;
}
#navMenu a:hover {
    color: var(--primary-dark);
    transform: scale(1.05);
}

/* HERO – vizuál (nepřepisovat pozadím sekcí) */
.hero {
    background-color: var(--primary);
    color: #fff;
    font-family: var(--font-menu);
    text-align: center;
    -webkit-user-select: none;      /* zakázat označení textu */
    -moz-user-select: none;         
    user-select: none; 
/*     background-image: url('../img/hero/hero_meadow_no-ar.svg');
    background-repeat: no-repeat;
    background-position: center bottom;
    background-size: 170vw 55dvh; */
}
@media (orientation: portrait) {
  .hero {
    background-size: 350vw 55dvh;
  }
}

.hero .hero-text {
    font-size: 1.5em;
    line-height: 1.6;
}

.hero p {
    margin: .5em 0;
    font-weight: 400;
}

.hero .hero-visual img {
    max-width: min(540px, 80vw);
    margin-inline: auto;
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.2));
}

#scrollArrow {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity .5s ease;
    pointer-events: all;
    font-size: 40px;
    color: rgba(255, 255, 255, .4);
    cursor: pointer;
    background: transparent;
    border: none;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    z-index: 100;
}

#scrollArrow.visible {
    opacity: 1;
}
/* Section -------------------------------- */
.section a:not(.button-outline) {
    color: var(--text-anchor);
    text-decoration: none;
    transition: all .3s ease; /*color .3s ease, transform .2s ease;*/
    display: inline-block; /* potřebné pro transform */
}
.section a:not(.button-outline):hover {
    color: var(--primary-dark);
    transform: scale(1.05); 
}

/* Střídavé pozadí jen pro ostatní sekce */
.section:not(.hero):nth-of-type(even) {
    background-color: var(--section-even);
}

.section:not(.hero):nth-of-type(odd) {
    background-color: var(--bg);
}

/* kulaté rohy obrazů v section */
.section img {
    border-radius: 12px;
}    

/* položky seznamu */
.section ul {
    margin: 0;
}
.section ul li {
    margin-bottom: 10px;
    line-height: 1.2;
}

/* NEWS ------------ */
.news-main .card .date,
#modalContent.section .date,
.section.news .container .date {
    color:#888; 
    font-style: italic;
}

.news-main .card .date {
    position:absolute;
    translate: 0 -20px;
    font-size: 0.8em;
}

.section.news .container{
    position: relative;
}

.section.news .date {
    position:absolute;
    translate: 0 -30px;
}

#modalContent.section .date {
    position:absolute;
    translate: 0 -15px;
}


/* TEXTonly – vizuál */
  @media (min-width: 960px) {
    .TEXTonly.two-col .TEXTonly-content p {
        text-align: justify;
    }
  }

/* Button + Card */
.button-outline {
    display: inline-block;
    margin-top: 16px;
    padding: 10px 20px;
    border: 2px solid var(--primary);
    border-radius: 8px;
    color: var(--primary);
    text-decoration: none;
    font-weight: bold;
}

.button-outline:hover {
    background-color: var(--primary);
    color: #fff;
}

.card {
    background: #fff;
    padding: 12px 24px;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .1);
    margin: 16px 0;
    position: relative;
}

.card.clickable {
    cursor: pointer;
    transition: box-shadow .3s ease;
}

.card.clickable:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, .15);
}

.card.clickable::after {
    content: "+";
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    color: #aaa;
}

/* BOX – barevné info boxy */
.card.info-box {
    flex: 1 1 200px;
    padding: 24px;
    border-radius: 12px;
    color: #fff;
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(0,0,0,.12); 
}

.card.info-box.box-green {
    background-color: #7BAE7F;
}

.card.info-box.box-orange {
    background-color: #E19C6D;
}

.card.info-box.box-yellow {
    background-color: #F1C05D;
}

.card.info-box.box-blue {
    background-color: #6EB5D6;
}

.card-map {
   box-shadow: 0 2px 6px rgba(0, 0, 0, .1);
   padding:0;
   cursor: pointer; 
}
/* MODAL – vizuál */
#modalOverlay {
    background: rgba(0, 0, 0, .5);
}

#modalBox {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, .2);
}

#modalClose {
    box-sizing: border-box;
    width: 30px;
    height: 30px;
    padding: 0;
    text-align: center;
    font-size: 24px;
    cursor: pointer;
    color: #888;
    background:transparent;
    border:0;
    outline:0;
}

#modalContent {
    margin: 10px 0;
    padding: 10px 20px 20px;
    position: relative;
    background: none;
}

/* Loader (volitelné) */
.logo-loader {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100000;
    pointer-events: none;
}

.logo-loader .box {
    width: 240px;
    height: 85px;
    position: relative;
}

.dot {
    position: absolute;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--primary);
    opacity: .3;
    animation: blink 1.5s infinite ease-in-out;
}

.dot1 {
    top: 44%;
    left: 27%;
    animation-delay: 0s;
}

.dot2 {
    top: 18%;
    left: 47%;
    animation-delay: .2s;
}

.dot3 {
    top: 44%;
    left: 67%;
    animation-delay: .4s;
}

@keyframes blink {

    0%,
    80%,
    100% {
        opacity: .3;
        transform: scale(1);
    }

    40% {
        opacity: 1;
        transform: scale(1.4);
    }
}

@media (prefers-reduced-motion:reduce) {
    .dot {
        animation: none;
        opacity: .6;
    }
}

/* Footer */
footer {
    background-color: var(--primary);
    color: #fff;
    text-align: center;
    font-size: 14px;
    /*
    background-image: url('../img/footer_meadow.svg');
    background-repeat: no-repeat;
    background-position: center bottom;
    background-size: 1920px 75px;
    overflow: hidden;*/
}

footer a {
    color: #fff;
    text-decoration: none;
    transition: color .3s ease, transform .2s ease;
    display: inline-block; /* potřebné pro transform */
}
footer a:hover {
    color: var(--primary-dark);
    transform: scale(1.05);
    transform-origin: left center;
}

/* -------------------------  Obecná pravidla pro odkazy na soubory – bez tříd ------------------------ */
/* spolená nastavení pro všechny odkazy na soubory v sekcích */
.section a[href^="http"]:not(.button-outline),      /*:not([href*="mskekasne.cz"])*/
.section a[href$=".pdf"],
.section a[href$=".doc"], .section a[href$=".docx"],
.section a[href$=".xls"], .section a[href$=".xlsx"],
.section a[href$=".ppt"], .section a[href$=".pptx"],
.section a[href$=".zip"],
.section a[href$=".jpg"], .section a[href$=".jpeg"], .section a[href$=".png"] {
    position: relative;
    padding-left: 1.6em;
    color: var(--text-anchor);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    flex-wrap: wrap;
    transition: all 0.3s ease;
    line-height: 1.2;
}
/* společná nastavení pro ikonky souborů a externích odkazů */
.section a[href^="http"]:not(.button-outline)::before, /*:not([href*="mskekasne.cz"])*/
.section a[href$=".pdf"]::before,
.section a[href$=".doc"]::before, .section a[href$=".docx"]::before,
.section a[href$=".xls"]::before, .section a[href$=".xlsx"]::before,
.section a[href$=".ppt"]::before, .section a[href$=".pptx"]::before,
.section a[href$=".zip"]::before,
.section a[href$=".jpg"]::before, .section a[href$=".jpeg"]::before, .section a[href$=".png"]::before {
    content: "";
    position: absolute;
    left: 0;
    top: -0.1em;
    width: 1.2em;
    height: 1.2em;
    opacity: 0.5;
    background: currentColor;
    transition: all 0.3s ease;
}
.section a[href^="http"]:not(.button-outline)::before {      /*:not([href*="mskekasne.cz"])*/
    background: currentColor;   
    -webkit-mask: var(--link-icon) center/contain no-repeat;
            mask: var(--link-icon) center/contain no-repeat;
}
.section a[href$=".pdf"]::before,
.section a[href$=".doc"]::before, .section a[href$=".docx"]::before,
.section a[href$=".xls"]::before, .section a[href$=".xlsx"]::before,
.section a[href$=".ppt"]::before, .section a[href$=".pptx"]::before,
.section a[href$=".zip"]::before{
    background: currentColor;
    -webkit-mask: var(--file-icon) center/contain no-repeat !important;
            mask: var(--file-icon) center/contain no-repeat !important;
}
.section a[href$=".jpg"]::before, .section a[href$=".jpeg"]::before, .section a[href$=".png"]::before {
    background: currentColor;
    -webkit-mask: var(--image-icon) center/contain no-repeat !important;
            mask: var(--image-icon) center/contain no-repeat !important;
}
.section a[href^="http"]:not(.button-outline):hover::before,     /*:not([href*="mskekasne.cz"])*/
.section a[href$=".pdf"]:hover::before,
.section a[href$=".doc"]:hover::before, .section a[href$=".docx"]:hover::before,
.section a[href$=".xls"]:hover::before, .section a[href$=".xlsx"]:hover::before,
.section a[href$=".ppt"]:hover::before, .section a[href$=".pptx"]:hover::before,
.section a[href$=".zip"]:hover::before,
.section a[href$=".jpg"]:hover::before, .section a[href$=".jpeg"]:hover::before, .section a[href$=".png"]:hover::before {
    opacity: 1;
}

/* Specifické barvy ikon pro různé typy souborů */
.section a[href^="http"]:not(.button-outline)::before   { background: #999; }       /*:not([href*="mskekasne.cz"])*/
.section a[href$=".pdf"]::before   { background: #db6f52; }
.section a[href$=".doc"]::before,
.section a[href$=".docx"]::before { background: #6EB5D6; }
.section a[href$=".xls"]::before,
.section a[href$=".xlsx"]::before { background: #679e83; }
.section a[href$=".ppt"]::before,
.section a[href$=".pptx"]::before { background: #eca434; }
.section a[href$=".zip"]::before { background: #666; }
.section a[href$=".jpg"]::before, .section a[href$=".jpeg"]::before, .section a[href$=".png"]::before { background: #F1C05D; }
/* Hover efekty pro odkazy na soubory */
.section a[href^="http"]:not(.button-outline):hover   { color: var(--primary-dark); transform: none !important; }    /*:not([href*="mskekasne.cz"])*/
.section a[href$=".pdf"]:hover    { color: #db6f52 !important; transform: none !important;}
.section a[href$=".doc"]:hover,
.section a[href$=".docx"]:hover   { color: #6EB5D6 !important; transform: none !important; }
.section a[href$=".xls"]:hover,
.section a[href$=".xlsx"]:hover   { color: #679e83 !important; transform: none !important; }
.section a[href$=".ppt"]:hover,
.section a[href$=".pptx"]:hover   { color: #eca434 !important; transform: none !important; }
.section a[href$=".zip"]:hover   { color: #666 !important; transform: none !important; }
.section a[href$=".jpg"]:hover, .section a[href$=".jpeg"]:hover, .section a[href$=".png"]:hover { color: #F1C05D !important; transform: none !important; }

/* společné nastavení pro textové popisky souborů */
.section a[href$=".pdf"]::after,
.section a[href$=".doc"]::after, .section a[href$=".docx"]::after,
.section a[href$=".xls"]::after, .section a[href$=".xlsx"]::after,
.section a[href$=".ppt"]::after, .section a[href$=".pptx"]::after,
.section a[href$=".zip"]::after,
.section a[href$=".jpg"]::after, .section a[href$=".jpeg"]::after, .section a[href$=".png"]::after {
    font-size: .8em;
    display:inline-block;
    margin-left: .5em;
    line-height: 1;
    color: #999;
}
/* Specifické textové popisky pro různé typy souborů */
.section a[href$=".pdf"]:hover::after      { content: " PDF"; }
.section a[href$=".doc"]:hover::after      { content: " DOC"; }
.section a[href$=".docx"]:hover::after     { content: " DOCX"; }
.section a[href$=".xls"]:hover::after      { content: " XLS"; }
.section a[href$=".xlsx"]:hover::after     { content: " XLSX"; }
.section a[href$=".ppt"]:hover::after      { content: " PPT"; }
.section a[href$=".pptx"]:hover::after     { content: " PPTX"; }
.section a[href$=".zip"]:hover::after      { content: " ZIP"; }
.section a[href$=".jpg"]:hover::after,      
.section a[href$=".jpeg"]:hover::after     { content: " JPG"; }
.section a[href$=".png"]:hover::after      { content: " PNG"; }


/* Odznak/metainfo – vkládá jQuery */
.file-meta {
    font-size: .9em;
    color: #6b7280;
    background: #f4f6f5;
    padding: .15em .5em;
    border-radius: .5em;
    line-height: 1.3;
}