:root {
    --ratio: 1.25;
  --h1: 3.4rem;
  --h2: calc(var(--h1) / var(--ratio));
  --h3: calc(var(--h2) / var(--ratio));
  --h4: calc(var(--h3) / var(--ratio));
  --h5: calc(var(--h4) / var(--ratio));
  --h6: calc(var(--h5) / var(--ratio));
  --badge-font-size: 0.9rem;
  --acymailing-module: #f3f6ee;
  --acymailing-border: #e2ebd5;
  --body-bg-color: #f6f4ee;
  --body-bg2-color: #fefcf7;
    --body-link-color: #769a32;
    --body-link-hover-color: #658921;
    --color-primary: #769a32;
    --color-success: #769a32;
    --dark-bg: #394044;
    --dark-bg-text: #f6f4ee;
    --mainnav-link-color: #f6f4ee;
    --mainnav-link-hover-color: #a0af4e;
    --mainnav-link-active-color: #a0af4e;
    --mr-badge: #cbd1a5;
    --new-badge: #f9a880;
    --tip-badge: #fe7044;
    --t4-primary-rgb: #769a32;
    --t4-card-inner-border-radius: calc(0.25rem - 1px);
}
h4, .h4 {font-size: var(--h4)}
h5, .h5 {font-size: var(--h5)}
h6, .h6 {font-size: var(--h6)}
h1 {margin-top: 0}
.btn-light { --t4-btn-color: #fefcf7;
    --t4-btn-bg-hero: #00000070;}
body.dark-active {
      --acymailing-module: #394044;
  --acymailing-border: #283033;
    --body-bg-color: #394044;
    --body-bg2-color: #283033;
    --color-dark: #f6f4ee;
    --t4-list-group-color: #f6f4ee !important; 
}
body.dark-active .list-group {
    --t4-list-group-color: #f6f4ee !important; 
}
/* Příklad ztmavnutí mapového podkladu pro dark mode */
body.dark-active .leaflet-tile-pane {
    filter: brightness(0.6) invert(1) contrast(3) hue-rotate(200deg) saturate(0.3);
}
body.dark-active .mm-category-checkbox {color: var(--body-bg2-color)}
html {overflow-x: hidden !important;}
.d-light {display: block}
.d-light .logo-img, .d-dark .logo-img {width: 300px}

.item-101 .t4-breadcrumbs {display: none}
.newsletter .section-inner {
    
    margin-bottom: 2rem;
}
#t4-header {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 9999;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
    backdrop-filter: blur(10px);
   /* background: rgba(246, 244, 238, .84); */
   background: linear-gradient(0deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.5) 49%, rgba(0, 0, 0, 0.7) 100%);
}
.view-map #t4-header, .item-130 #t4-header, .item-132 #t4-header, .item-133 #t4-header {background-color: var(--dark-bg)}
#t4-header.is-hidden {
  transform: translateY(-100%);
}
#t4-header.is-sticky {
  background-color: var(--dark-bg); 
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15); /* Jemný stín pro oddělení od obsahu */
}
.navbar-toggler {color: var(--mainnav-link-color)} 
@media (max-width: 991.98px) {
.nav-breakpoint-lg .t4-megamenu {background: var(--dark-bg)} }
.dropdown-menu.level1 {background: var(--dark-bg)}
.t4-megamenu .navbar-nav > li > a, .t4-megamenu .navbar-nav > li > .nav-link {color: var(--mainnav-link-color)}
.svg-light, .svg-dark {
    fill: var(--mainnav-link-color);
}
/*body.dark-active #t4-header {
    background: rgba(40, 48, 51, .84);
}*/
.section-inner .section-ct {
    position: relative;
}
.home-hero .btn.btn-light {
    background-color: var(--t4-btn-bg-hero);

}
@media (min-width: 1400px) {
    .container-xxl, .container-xl, .container-lg, .container-md, .container-sm, .container, .section-inner .section-ct {
        max-width: 1200px;
    }
}
.view-home .t4-section.lighter {background: var(--body-bg2-color)}
.section-inner .section-ct {
    --t4-gutter-x: 2rem;
    --t4-gutter-y: 0;
    width: 100%;
    margin-right: auto;
    margin-left: auto;

}
.acym_introtext {font-size: 1.1rem; font-weight: 700; padding-bottom: 1.5rem}
.no-display {display: none}
.view-home .t4-main-body {padding-top: 0}
.view-home .input-group {width: 100%; background: #ffffff; border-radius: 25px; padding: 5px; }
.view-home .input-group .input-group-text {font-size: 1rem; border: none; background-color: transparent}
.view-home .input-group-lg > .form-control {font-size: 1rem; border: none; background-color: transparent; max-width: 100%}
.btn.btn-success {border-radius: 25px; border-top-left-radius: 25px; 
    border-bottom-left-radius: 25px !important;}
   
.home-hero {background-image: url(../../../images/hero.webp); background-repeat: no-repeat; background-size: cover; width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    padding-right: calc(var(--t4-gutter-x) * 0.5);
    padding-left: calc(var(--t4-gutter-x) * 0.5); margin-top: -80px;
    
    /* Vlastní stylování bloku */
    box-sizing: border-box;
    padding: 3rem 1rem;}
.home-hero .container {margin-top: 25%; margin-left: 18%}
@media screen and (max-width: 1600px){
.home-hero .container {margin-top: 25%; margin-left: 15%}
}
@media screen and (max-width: 850px){
    /* Základní styl pro Hero sekci */
.home-hero {
    background-image: url('../../../images/hero-mobile.webp'); /* Obrázek BEZ textu pro mobily */
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    position: relative;
    min-height: 480px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

/* Tmavší překrytí (overlay) pro lepší čitelnost ovládacích prvků */
.home-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.15); /* Jemné ztmavení */
    z-index: 1;
}

/* Zajištění, že obsah bude nad overlay vrstvou */
.home-hero .container {
    position: relative;
    z-index: 2;
    margin-left: 0%;
}

/* Úprava vyhledávacího pole pro mobilní zařízení */
@media (max-width: 575.98px) {
    .home-hero {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
        min-height: 380px;
    }

    /* Převod Bootstrap input-group do vertikálního rozložení na malých displejích */
    .home-hero .input-group {
        flex-direction: column;
        box-shadow: none !important;
    }

    .home-hero .input-group-text {
        display: none; /* Skrytí ikony lupy pro úsporu místa */
    }

    .home-hero .form-control {
        border-radius: 25px !important;
        border: 1px solid #ced4da !important;
        text-align: center;
        font-size: 0.95rem;
        padding: 0.75rem;
        margin-bottom: 0.5rem;
        width: 100%;
    }

    .home-hero .btn-success {
        width: 100%;
        padding: 0.75rem;
        font-weight: 600;
    }

    /* Úprava tlačítkových chipů pod vyhledáváním */
    .home-hero .btn-sm {
        font-size: 0.8rem;
        padding: 0.35rem 0.75rem;
    }
}

/* Desktopová verze (od 768px výše) */
@media (min-width: 768px) {
    .home-hero {
        background-image: url('cesta/k/obrazku-desktop.jpg'); /* Obrázek S NÁPISEM pro desktop */
        min-height: 550px;
        background-position: center 30%; /* Vertikální posun pro ideální ořez */
    }

    /* Na desktopu vypneme stmavení, pokud je obrázek dostatečně čitelný */
    .home-hero::before {
        background: rgba(0, 0, 0, 0.1); 
    }
}
    
}
.btn-outline-success.rounded-pill {border-top-left-radius: 3px !important}
.badge {font-size: var(--badge-font-size); font-family: Helvetica, sans-serif; border-radius: 2rem;}
h5.card-title a {color: var(--body-text-color)}
.mojericansko-home .badge.bg-primary {background-color: var(--color-primary) !important}
.ratio > .badge {height: auto; width: auto; padding: 0.4rem 0.6rem; border-radius: 2rem;}
.card, body.contentpane .well {--t4-card-border-radius: 0.7rem;}
.mojericansko-home .intro .card-body {margin-top: -4rem; padding-top: 1rem !important; z-index: 999; background: linear-gradient(0deg,rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.5) 49%, rgba(0, 0, 0, 0) 100%); color:#ffffff}
.ratio-3x2 {
    --t4-aspect-ratio: 52%;
}
/*.mojericansko-home .intro .card-body .small {transform: translate(2px, 20px);} */
.btn-primary{border-radius: 25px; border-top-left-radius: 3px; 
    border-bottom-left-radius: 25px !important;}
#t4-footer, #t4-footnav {background: var(--dark-bg); color: var(--dark-bg-text)}
.badge.ff-tag {background: var(--mr-badge); color: var(--dark-bg); border-radius: 3rem; padding: 0.4rem}
.badge.bg-success {background: var(--new-badge) !important; color: var(--dark-bg); box-shadow: rgba(149, 157, 165, 0.5) 0px 3px 3px;}
.badge.bg-danger {background: var(--tip-badge) !important; box-shadow: rgba(149, 157, 165, 0.5) 0px 3px 3px;}
.ff-inline-bar {
    display: flex;
    align-items: center;
}

.ff-active-filters .ff-pill {
    background: var(--color-primary);
    color: var(--body-bg-color);
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 2rem;
    font-size: 0.8rem;
    cursor: pointer;
}

.ff-active-filters .ff-pill:hover {
    background: var(--mainnav-link-hover-color);
}
.card-body, .kategorie {background: var(--body-bg2-color)}
.mb-5.kategorie {margin-left: -20px; margin-right: -20px; padding: 20px}
/* Kontejner modulu */
.acymailing_module_box {
    background-color: var(--acymailing-module);
    border: 1px solid var(--acymailing-border);
    border-radius: 16px !important;
}

/* Styl pro ikonu */
.acy-icon-wrapper i {
    color: var(--color-primary); /* Odpovídající zelená barva */
}

/* Úprava vstupního pole v Acymailingu */
.acymailing_module_box .form-control,
.acymailing_module_box input[type="text"],
.acymailing_module_box input[type="email"] {
    border-radius: 12px !important;
    border: 1px solid #e0e0e0 !important;
    padding: 0.65rem 1rem !important;
    background-color: #ffffff !important;
    box-shadow: none !important;
    font-size: 0.95rem;
    width: 100% !important;
}

/* Tlačítko Přihlásit se */
.acymailing_module_box .subbutton {
    background-color: var(--color-primary) !important;
    border-color: var(--color-primary) !important;
    padding: 0.65rem 1.5rem !important;
    font-weight: 600;
    white-space: nowrap;
    transition: all 0.2s ease-in-out;
    margin-top: 10px
}

.acymailing_module_box .subbutton:hover {
    background-color: var(--body-link-hover-color) !important;
    border-color: var(--color-primary) !important;
}

/* Responzivní chování na mobilu */
@media (max-width: 575.98px) {
    .acymailing_module_box {
        padding: 1.25rem !important;
    }
    .acymailing_module_box .d-flex {
        flex-direction: column;
    }
    .acymailing_module_box .subbutton {
        width: 100% !important;
    }
}
.acymailing_module_box .text-muted {font-size: 1rem; padding-bottom: 12px}
.com_tags #t4-main-body {padding-top: 0}
.com_tags .kategorie {background-color: #d6dbb2; color: #3d4f1a; font-size: 0.85rem; font-weight: 700}
.hlavni-tagy h3, .hlavni-tagy .mod-tagspopular {display: inline;}
.hlavni-tagy h3 {margin: 8px 1rem 0 0;}
.tagspopular ul > li, .tags > li > a {
    background: var(--color-primary); color: var(--body-bg-color); border-radius: var(--t4-border-radius-pill); padding: 5px 15px
}

.tagspopular ul > li a {color: var(--body-bg-color)}
.module-uzitecne h3 {color: var(--body-bg-color)}
.t4-module.module-uzitecne .navbar .nav > li a.nav-link {color: var(--body-bg2-color); font-size: 0.85rem; padding: 0}
.t4-module.module-uzitecne .navbar .nav > li a.nav-link:hover {color: var(--body-link-color)}
.list-group-item {
    color: var(--t4-list-group-color);
}
.item-133 .nav-link {color: #f3f6ee; font-size: 0.9rem}
/* .home-day-panel .list-group {flex-direction: row; flex-flow: row wrap;}
.home-day-panel .list-group-item-action {width: 25%; font-size: 0.9rem} */
.nav-tabs#home-day-tabs  .nav-link.active {background: transparent; border-color: transparent; border-bottom-color: var(--color-primary); border-width: 2px; font-weight: 700}
.nav-link:hover {color: var(--body-link-hover-color)}
/* Container pro karty v řadě */
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
  align-items: center;
}

/* Karta akce – obrázek vlevo, texty vpravo */
.event-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease;
}

.event-card:hover {
  transform: translateY(-2px);
  color: inherit;
}

/* Větší obrázek s výrazným zakulacením rohu (jako na náhledu) */
.event-card-img img {
  width: 72px;
  height: 72px;
  min-width: 72px; /* Pojistka č. 1: nikdy nechoď pod 72px */
  min-height: 72px;
  flex-shrink: 0;  /* Klíčová oprava: ZAKAZUJE Flexboxu obrázek smáčknout! */
  object-fit: cover;
  border-radius: 16px;
}

/* Obsah karty */
.event-card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.event-card-time {
  font-size: 0.85rem;
  font-weight: 600;
  color: #6c757d;
  margin-bottom: 2px;
}

.event-card-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: #1a1a1a;
  line-height: 1.25;
  margin-bottom: 3px;
}

.event-card-location {
  font-size: 0.85rem;
  color: #8c8c8c;
}
h3.visit {font-size: var(--h4); margin-top: 0.5rem;}
.mod-mojericansko-places {    --t4-gutter-y: 3rem;}
.mod-mojericansko-places-item {background: var(--body-bg2-color); border-radius: var(--t4-card-inner-border-radius);}
.mod-mojericansko-places-item h3 {padding: 0 1rem}
.mod-mojericansko-places-category {padding: 0.5rem 1rem}
.mod-mojericansko-places img {border-radius: 0.25rem; border-bottom-left-radius: 0; border-bottom-right-radius: 0;}
.magazin .item-content .tags, .magazin .item-content .item-intro {display: none}
.bottom-article-info .article-inner .col-md-3 {width: 5%}
@media (min-width: 768px) {
    .bottom-article-info .article-inner .col-md-9 {
        -webkit-box-flex: 0;
        -ms-flex: 0 0 auto;
        flex: 0 0 auto;
        width: 90%;
    }
}
.marker-cluster-small div {
    background-color: rgba(57, 57, 57, 0.6);
}

/*mapa*/
#mojericansko-map-page {
    display: flex;
    height: calc(100vh - var(--mm-header-offset, 80px));
    min-height: 500px;
    position: relative;
}

.mm-sidebar {
    width: 34%;
    min-width: 320px;
    max-width: 480px;
    display: flex;
    flex-direction: column;
    border-right: 1px solid #e0e0e0;
    background: #fff;
    overflow: hidden;
}

.mm-sidebar-header {
    padding: 16px;
    border-bottom: 1px solid #eee;
}

.mm-category-filters {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 220px;
    overflow-y: auto;
}

.mm-category-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 6px;
}

.mm-category-checkbox:hover {
    background: #f5f5f5;
}

.mm-cat-dot {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--cat-color);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    flex-shrink: 0;
}

.mm-results-list {
    flex: 1;
    overflow-y: auto;
    padding: 8px;
}

.mm-result-item {
    display: flex;
    gap: 10px;
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    transition: background 0.15s ease;
}

.mm-result-item:hover,
.mm-result-item.mm-active {
    background: #f0f4f0;
}

.mm-result-thumb {
    width: 56px;
    height: 56px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    background: #eee;
}

.mm-result-title {
    font-weight: 600;
    font-size: 0.9rem;
}

.mm-result-address {
    font-size: 0.78rem;
    color: #777;
}

.mm-map-wrapper {
    flex: 1;
    position: relative;
}

#mm-map {
    width: 100%;
    height: 100%;
}

.mm-marker-icon {
    width: 32px;
    height: 32px;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    border: 2px solid #fff;
}

.mm-marker-icon i {
    transform: rotate(45deg);
    color: #fff;
    font-size: 0.85rem;
}

.mm-marker-icon.mm-marker-highlight {
    transform: rotate(-45deg) scale(1.3);
    z-index: 1000 !important;
}

.mm-popup-title {
    font-weight: 700;
    margin-bottom: 4px;
}

.mm-popup-img {
    width: 100%;
    max-width: 200px;
    height: 100px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 6px;
}

.mm-mobile-toggle {
    display: none;
}

@media (max-width: 768px) {
    #mojericansko-map-page {
        height: calc(100vh - var(--mm-header-offset, 60px));
    }

    .mm-sidebar {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        max-width: 100%;
        height: 100%;
        z-index: 500;
        transform: translateY(100%);
        transition: transform 0.3s ease;
    }

    .mm-sidebar.mm-sidebar-open {
        transform: translateY(0);
    }

    .mm-mobile-toggle {
        display: flex;
        align-items: center;
        gap: 6px;
        position: absolute;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        z-index: 600;
        background: #1b1b1b;
        color: #fff;
        border: none;
        padding: 10px 20px;
        border-radius: 30px;
        box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    }
}
.leaflet-popup-content a {color: var(--body-bg-color) !important}

.view-events .t4-content-inner, .view-event .t4-content-inner {background-image: url(../../../images/events2_head.webp); background-repeat: no-repeat; background-size: contain; }
.view-places .t4-content-inner, .view-place .t4-content-inner {background-image: url(../../../images/places_head.webp); background-repeat: no-repeat; background-size: contain; }
.item-125 .t4-content-inner {background-image: url(../../../images/forest_head.webp); background-repeat: no-repeat; background-size: contain; }
.item-130.view-event .t4-content-inner, .item-132.view-place .t4-content-inner {background-image: none}
.item-130 .mojericansko-submit, .item-132 .t4-main-body, .item-133 .t4-main-body  {margin-top: 6rem}
@media (min-width: 991px) {
    .item-125 .t4-main-body, .view-map #t4-main-body {
        padding-top: 10rem;
        padding-bottom: 3rem;
    }
}
.mod-breadcrumbs.breadcrumb {display: flex; justify-content: center; align-items: center; font-size: 2rem; padding: 9rem 0 0 0 !important; flex-direction: column}
.mod-breadcrumbs a {color: var(--mainnav-link-color)}
.mod-breadcrumbs .divider {display: none}
.breadcrumb li:nth-child(3) {font-size: 1.3rem; display: block; color: var(--body-bg-color)}
.hlavni-tagy {border: none; display: flex; justify-content: center;}
#t4-masthead {display: none}

/* Skleněný widget počasí v rohu fotky */
.mr-glass-weather {
  background: rgba(15, 23, 42, 0.35); /* Tmavší sklo pro 100% čitelnost na světlých fotkách */
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  max-width: 280px;
  z-index: 2;
}

/* Responzivní chování na mobilu */
@media (max-width: 576px) {
  .mr-glass-weather {
    position: relative !important;
    bottom: auto !important;
    end: auto !important;
    margin: 10px !important;
    max-width: 100% !important;
  }
}
.text-warning {color: var(--body-bg-color) !important}
.nas-tip .moduletable {margin: 0; padding: 0; border: none}
.nas-tip {background: var(--body-bg2-color)}
.nas-tip h3.tip {font-size: 1.6rem; text-align: center}
.nas-tip .row-cols-1 > * {width: 16.66%}
.nas-tip .row > * {padding-left: 0; padding-right: 0}
.nas-tip .ff-tag, .nas-tip .bg-danger {display: none}
.nas-tip .img-fluid {aspect-ratio: 1/1; object-fit: cover; border-radius: 0}
.nas-tip .mod-mojericansko-places-item h3 {margin-top: -80px; font-size: 0.9rem; z-index: 2; position: relative; display: none}
.nas-tip h3 a {color: #ffffff; background: #00000055; padding: 0.3rem}
.nas-tip .mod-mojericansko-places-category.mb-1 {margin-bottom: 0 !important; padding: 0}
.yt-video {
    width: 100%;
    aspect-ratio: 16 / 9;
    margin: -.5rem 0 3rem 0;
    overflow: hidden;
    border-radius: var(--t4-border-radius) !important;
    z-index: 2;
}
.article-body iframe[src*="youtube-nocookie.com"] {
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    border-radius: var(--t4-border-radius);
    display: block;
    margin: 2.5rem 0 3rem 0;
}
