/* Infokiosek info.uspza.cz - Celoobrazovkový Kiosk Layout (1920x1080 pixel-perfect) */
:root {
    --barva-zelena1: #9ECD3E;
    --barva-zelena2: #D4E78D;
    --barva-hover: #FFF368;
    --barva-active: #2b5e08;
    --barva-tmava: #1a2e05;
    --header-height: 110px;
    --footer-height: 42px;
    --menu-width: 320px;
}

* {
    box-sizing: border-box;
}

html, body {
    height: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    font-family: 'Roboto Condensed', sans-serif;
    background-color: #e5ecd6;
    color: #222;
    -webkit-user-select: none;
    user-select: none;
}

h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6, button, input, select, textarea {
    font-family: 'Roboto Condensed', sans-serif;
}

/* Odkazy podle stylu www.uspza.cz */
a {
    color: #84C225;
    text-decoration: none;
    transition: color 0.2s ease, text-decoration 0.2s ease;
}

a:hover, a:focus {
    color: #57870a;
    text-decoration: underline;
}

/* Ochrana tlačítek a ovládacích prvků před nechtěným podtržením */
.btn,
.btn:hover,
.btn:focus,
.kiosk-btn,
.kiosk-btn:hover,
.header-nav-btn,
.header-nav-btn:hover,
.footer-btn,
.footer-btn:hover,
.swipebox,
.swipebox:hover,
.plant-photo,
.plant-photo:hover {
    text-decoration: none !important;
}

/* Stránkování v rejstříku */
.pagination .page-link {
    color: #57870a;
    border-color: #dee2e6;
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: 500;
}

.pagination .page-link:hover {
    color: #2b5e08;
    background-color: #E8F2C2;
    border-color: #84C225;
    text-decoration: none !important;
}

.pagination .page-item.active .page-link {
    background-color: #84C225;
    border-color: #84C225;
    color: #ffffff;
}

.pagination .page-item.disabled .page-link {
    color: #6c757d;
}

/* Hlavní flex obal na 100vh */
.kiosk-wrapper {
    display: flex;
    flex-direction: column;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
}

/* HLAVIČKA */
.kiosk-header {
    position: relative;
    height: var(--header-height);
    min-height: var(--header-height);
    max-height: var(--header-height);
    background: linear-gradient(135deg, #8cb833 0%, #9ecd3e 100%);
    color: white;
    padding: 8px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
    z-index: 100;
}

.kiosk-header-left,
.kiosk-header-right {
    width: var(--menu-width);
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.kiosk-header-left {
    justify-content: flex-start;
}

.kiosk-header-right {
    justify-content: flex-end;
}

.kiosk-header-center {
    flex: 1;
    text-align: center;
    padding: 0 10px;
    min-width: 0;
}

.kiosk-title {
    font-size: 1.65rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    margin: 0;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.kiosk-subtitle {
    font-size: 1.05rem;
    font-weight: 500;
    margin: 2px 0 0 0;
    color: #f7fee7;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

.header-logo {
    height: 80px;
    max-height: 80px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.header-nav-btn {
    color: white;
    font-size: 2.2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 8px;
    text-decoration: none;
    transition: transform 0.15s ease, color 0.15s ease;
}

.header-nav-btn:hover {
    color: var(--barva-hover);
    transform: scale(1.1);
    text-decoration: none;
}

.home-btn {
    color: #ffffff;
    font-size: 3.2rem;
    margin-left: 10px;
}

.home-btn:hover {
    color: var(--barva-hover);
}

/* ODEČET NEČINNOSTI (IDLE TIMER) PRO INFOKIOSEK - MALÝM PÍSMEM ÚPLNĚ NAHOŘE */
.kiosk-idle-box {
    position: absolute;
    top: 2px;
    right: 14px;
    display: inline-flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.28);
    color: #ffffff;
    padding: 1px 7px;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1.25;
    z-index: 150;
    border: 1px solid rgba(255, 255, 255, 0.35);
    cursor: pointer;
    user-select: none;
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
    white-space: nowrap;
}

.kiosk-idle-box:hover,
.kiosk-idle-box:active {
    background: rgba(0, 0, 0, 0.45);
    border-color: rgba(255, 255, 255, 0.7);
    color: #ffffff;
}

.kiosk-idle-box .idle-icon {
    margin-right: 3px;
    font-size: 0.65rem;
    opacity: 0.85;
}

.kiosk-idle-box .idle-text {
    font-size: 0.72rem;
    font-weight: 500;
    margin-right: 2px;
    opacity: 0.95;
}

.kiosk-idle-box #kiosk-idle-sec,
.kiosk-idle-box .idle-num {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    min-width: 14px;
    text-align: center;
    color: #ffffff;
    display: inline-block;
}

.kiosk-idle-box.warning {
    background: rgba(220, 53, 69, 0.95) !important;
    border-color: #ffcccc !important;
    animation: idlePulse 1s infinite alternate;
}

@keyframes idlePulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.6);
    }
    100% {
        transform: scale(1.06);
        box-shadow: 0 0 10px 4px rgba(220, 53, 69, 0.75);
    }
}

/* Toast varování před automatickým resetem nečinnosti */
.kiosk-idle-toast {
    display: none;
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(30, 30, 30, 0.95);
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 30px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
    z-index: 99999;
    font-size: 0.95rem;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.25);
    animation: toastSlideUp 0.3s ease-out;
}

@keyframes toastSlideUp {
    from {
        transform: translate(-50%, 20px);
        opacity: 0;
    }
    to {
        transform: translate(-50%, 0);
        opacity: 1;
    }
}

/* HLAVNÍ TĚLO: 3 SLOUPCE */
.kiosk-body {
    flex: 1;
    display: flex;
    height: calc(100vh - var(--header-height) - var(--footer-height));
    min-height: 0;
    overflow: hidden;
    background-color: #dbe4c8;
}

/* BOČNÍ MENU - PŘESNÉ FLEX ROZTAŽENÍ 12 TLAČÍTEK */
.kiosk-left-menu,
.kiosk-right-menu {
    width: var(--menu-width);
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    height: 100%;
    border-top: 1px solid white;
    position: relative !important;
    z-index: 100 !important;
}

.kiosk-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin: 0;
    padding: 0 20px;
    border: none;
    border-bottom: 1px solid white;
    border-radius: 0;
    font-size: 1.05rem;
    font-weight: 600;
    color: #000000 !important;
    text-decoration: none !important;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.kiosk-btn-left {
    text-align: left;
}

.kiosk-btn-right {
    text-align: right;
    flex-direction: row-reverse;
}

/* Střídání barev tlačítek */
.kiosk-btn:nth-of-type(odd) {
    background-color: var(--barva-zelena2);
}

.kiosk-btn:nth-of-type(even) {
    background-color: var(--barva-zelena1);
}

.kiosk-btn:hover {
    background-color: var(--barva-hover);
    color: #000000 !important;
}

.kiosk-btn.active {
    background-color: var(--barva-active) !important;
    color: #ffffff !important;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.3);
}

.kiosk-btn.active i {
    color: #ffffff !important;
}

/* Ikony a jejich animace */
.kiosk-btn i {
    font-size: 1.35rem;
    color: #ffffff;
    text-shadow: 0 0 2px rgba(0,0,0,0.6);
    flex-shrink: 0;
}

.kiosk-btn:hover i {
    color: #000000;
    text-shadow: none;
    -webkit-animation: spin 1.5s;
    animation: spin 1.5s;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* STŘEDOVÝ PANEL */
.kiosk-center-content {
    flex: 1;
    min-width: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative !important;
    background-color: #ffffff;
    border-left: 2px solid white;
    border-right: 2px solid white;
}

/* Zajištění, že se Swipebox a fotonáhledy otevírají POUZE ve středovém panelu a NEPŘEKRÝVAJÍ boční menu */
.kiosk-center-content #swipebox-overlay {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    z-index: 50 !important;
    overflow: hidden !important;
}

body > #swipebox-overlay,
#swipebox-overlay {
    position: fixed !important;
    top: var(--header-height, 110px) !important;
    bottom: var(--footer-height, 42px) !important;
    left: var(--menu-width, 320px) !important;
    right: var(--menu-width, 320px) !important;
    width: calc(100vw - (2 * var(--menu-width, 320px))) !important;
    height: calc(100vh - var(--header-height, 110px) - var(--footer-height, 42px)) !important;
    max-width: calc(100vw - (2 * var(--menu-width, 320px))) !important;
    max-height: calc(100vh - var(--header-height, 110px) - var(--footer-height, 42px)) !important;
    z-index: 50 !important;
    overflow: hidden !important;
}

#swipebox-close {
    top: 0 !important;
    right: 0 !important;
    position: absolute !important;
    z-index: 9999 !important;
    width: 50px !important;
    height: 50px !important;
    border: none !important;
    border-radius: 0 !important;
    background-color: transparent !important;
}

.kiosk-content-inner {
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.kiosk-scrollable {
    flex: 1;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 15px;
    -webkit-overflow-scrolling: touch;
}

/* Hezký posuvník pro dotykový kiosek - aplikován na všechny scrollovatelné prvky */
::-webkit-scrollbar {
    width: 14px;
    height: 14px;
}
::-webkit-scrollbar-track {
    background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
    background: #9ecd3e;
    border-radius: 7px;
}
::-webkit-scrollbar-thumb:hover {
    background: #7aab1f;
}

*::-webkit-scrollbar,
html::-webkit-scrollbar,
body::-webkit-scrollbar,
.kiosk-scrollable::-webkit-scrollbar,
.modal::-webkit-scrollbar,
.modal-body::-webkit-scrollbar,
.table-responsive::-webkit-scrollbar {
    width: 14px;
    height: 14px;
}
*::-webkit-scrollbar-track,
html::-webkit-scrollbar-track,
body::-webkit-scrollbar-track,
.kiosk-scrollable::-webkit-scrollbar-track,
.modal::-webkit-scrollbar-track,
.modal-body::-webkit-scrollbar-track,
.table-responsive::-webkit-scrollbar-track {
    background: #f1f1f1;
}
*::-webkit-scrollbar-thumb,
html::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb,
.kiosk-scrollable::-webkit-scrollbar-thumb,
.modal::-webkit-scrollbar-thumb,
.modal-body::-webkit-scrollbar-thumb,
.table-responsive::-webkit-scrollbar-thumb {
    background: #9ecd3e;
    border-radius: 7px;
}
*::-webkit-scrollbar-thumb:hover,
html::-webkit-scrollbar-thumb:hover,
body::-webkit-scrollbar-thumb:hover,
.kiosk-scrollable::-webkit-scrollbar-thumb:hover,
.modal::-webkit-scrollbar-thumb:hover,
.modal-body::-webkit-scrollbar-thumb:hover,
.table-responsive::-webkit-scrollbar-thumb:hover {
    background: #7aab1f;
}

/* Standardní posuvník pro Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: #9ecd3e #f1f1f1;
}

/* IFRAME - PLNÁ VÝŠKA BEZ VLASTNÍHO DVOJITÉHO SCROLLBARU */
.iframe {
    border: none;
    width: 100%;
    height: 100%;
    flex: 1;
    background: #ffffff;
}

/* ORIENTAČNÍ PLÁNY (INTERAKTIVNÍ TOUCH ZOOM A PAN V RÁMCI AKTIVNÍ ČÁSTI) */
.kiosk-plan-wrapper {
    flex: 1;
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 0;
    background: #ffffff;
}

.kiosk-plan-header {
    padding: 8px 14px;
    background: #f8f9fa;
    border-bottom: 1px solid #e2e8f0;
    flex-shrink: 0;
}

.kiosk-plan-body {
    flex: 1;
    width: 100%;
    height: 100%;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    padding: 0;
    background: #ffffff;
    user-select: none;
    touch-action: none;
}

.kiosk-plan-img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    transition: transform 0.15s ease-out;
    transform-origin: center center;
    cursor: grab;
}

.kiosk-plan-img.grabbing {
    cursor: grabbing;
    transition: none;
}

/* SLIDESHOW */
.kiosk-slideshow-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    min-height: 0;
    overflow: hidden;
    background-color: #0b1505;
}

.kiosk-slideshow-carousel-wrap {
    flex: 1 1 auto;
    min-height: 0;
    position: relative;
    overflow: hidden;
    background-color: #0b1505;
}

#kioskCarousel {
    height: 100%;
    width: 100%;
}

#kioskCarousel .carousel-inner,
#kioskCarousel .carousel-item {
    height: 100%;
    width: 100%;
}

.kiosk-slide-img {
    height: 100%;
    width: 100%;
    object-fit: contain;
    object-position: center center;
    background: radial-gradient(circle at center, #1b300c 0%, #081003 100%);
}

.kiosk-slide-fallback {
    height: 100%;
    width: 100%;
    background: linear-gradient(135deg, #3d6812 0%, #7dae2b 100%);
}

/* SPODNÍ PANEL SLIDESHOW S POPISEM A ODKAZEM DO FOTOGALERIE */
.kiosk-slideshow-bottom {
    flex-shrink: 0;
    width: 100%;
    background: #f8faf5;
    border-top: 3px solid var(--barva-zelena1);
    padding: 10px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    z-index: 20;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.08);
}

.kiosk-slideshow-info {
    flex: 1 1 auto;
    min-width: 0;
}

.kiosk-slideshow-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #2b5e08;
    margin: 0;
    line-height: 1.3;
}

.kiosk-slideshow-count {
    color: #666;
    font-weight: normal;
    font-size: 0.9rem;
    white-space: nowrap;
    margin-left: 6px;
}

.kiosk-slideshow-link {
    font-size: 0.85rem;
    color: #555;
    text-decoration: underline;
    display: inline-block;
    margin-top: 3px;
}

.kiosk-slideshow-link:hover {
    color: #2b5e08;
}

.kiosk-slideshow-action {
    flex-shrink: 0;
}

.kiosk-slideshow-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #2b7a0b;
    color: #ffffff !important;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 9px 18px;
    border-radius: 6px;
    text-decoration: none !important;
    white-space: nowrap;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
    transition: background 0.2s, transform 0.15s;
}

.kiosk-slideshow-btn:hover {
    background: #1e5606;
    transform: translateY(-1px);
    color: #ffffff !important;
}

/* Přizpůsobení na displejích s užším středním panelem (např. 1024x768) */
@media (max-width: 1200px) {
    .kiosk-slideshow-bottom {
        flex-wrap: wrap;
        padding: 8px 12px;
        gap: 6px;
    }
    .kiosk-slideshow-info {
        width: 100%;
    }
    .kiosk-slideshow-action {
        width: 100%;
    }
    .kiosk-slideshow-btn {
        width: 100%;
        padding: 7px 12px;
        font-size: 0.88rem;
    }
    .kiosk-slideshow-title {
        font-size: 1rem;
    }
}

.carousel-caption {
    background: rgba(0, 0, 0, 0.7);
    border-radius: 8px;
    padding: 12px 24px;
    bottom: 30px;
    left: 20%;
    right: 20%;
}

/* PATIČKA */
.kiosk-footer {
    height: var(--footer-height);
    min-height: var(--footer-height);
    max-height: var(--footer-height);
    background: var(--barva-zelena1);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    font-size: 0.95rem;
    font-weight: 500;
    box-shadow: 0 -2px 6px rgba(0,0,0,0.1);
    z-index: 100;
}

.kiosk-footer a {
    color: #ffffff;
    text-decoration: underline;
}

.kiosk-footer a:hover {
    color: var(--barva-hover);
}

.footer-btn {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff !important;
    border: 1px solid white;
    border-radius: 4px;
    padding: 4px 12px;
    font-size: 0.85rem;
    font-weight: bold;
    text-decoration: none !important;
    transition: all 0.2s;
}

.footer-btn:hover {
    background: var(--barva-hover);
    color: #000000 !important;
    border-color: var(--barva-hover);
}

/* Články */
body.kiosk-article-body {
    background: #ffffff;
    padding: 20px;
    font-size: 1.1rem;
    line-height: 1.6;
    overflow-y: auto;
}

.article-title {
    color: #2b5e08;
    border-bottom: 2px solid var(--barva-zelena1);
    padding-bottom: 8px;
    margin-bottom: 15px;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

/* ==========================================================================
   COLLAPSE & ACCORDION STYLES (podle www.uspza.cz)
   ========================================================================== */

.pull-right {
    float: right !important;
}

.collapsible-item.panel {
    border: 1px solid #84C225;
    margin-bottom: 10px;
    background: #ffffff;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.collapsible-item .panel-heading {
    background: #84C225;
    padding: 0;
    cursor: pointer;
    border: none;
}

.collapsible-item .panel-title {
    background: #84C225;
    margin-bottom: 0px;
    padding: 12px 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.collapsible-item .panel-title a {
    color: #ffffff !important;
    font-size: 1.05rem;
    font-weight: 600;
    text-decoration: none !important;
    display: inline-block;
}

.collapsible-item .panel-title a.pull-right,
.collapsible-item .panel-title a.float-right {
    float: right;
    color: #ffffff !important;
    font-size: 1.15rem;
    padding: 0 5px;
}

.collapsible-item .panel-title a span {
    display: inline-block;
    padding-top: 2px;
    padding-bottom: 2px;
}

.collapsible-item .panel-body {
    padding: 20px;
    background: #ffffff;
    color: #333333;
}

.collapsible-item .panel-body p {
    margin-bottom: 8px;
}

/* Animace otočení šipky při rozbalení / sbalení */
.panel-heading a.collapsed.pull-right span.fa,
.panel-heading a.collapsed.float-right span.fa,
.collapsible-item a.collapsed span.fa {
    display: inline-block;
    transition: transform 0.4s ease-in-out;
    transform: rotate(0deg);
}

.panel-heading a:not(.collapsed) span.fa,
.collapsible-item a:not(.collapsed) span.fa {
    display: inline-block;
    -webkit-transform: rotate(180deg);
    -moz-transform: rotate(180deg);
    transform: rotate(180deg);
    transition: transform 0.4s ease-in-out;
}

/* Accordion Styles (style.css z www.uspza.cz) */
.accordion-wrap {
    margin-top: -20px;
}

.accordion {
    margin-top: 20px;
}

.accordion-title {
    background: #84C225;
    text-align: left;
    color: #ffffff;
    padding: 16px 24px;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease-in-out 0s;
    border-radius: 4px;
}

.accordion-title:not(.collapsed) {
    background: #e3ad1a;
    color: #ffffff;
}

.accordion-title:focus, .accordion-title:active {
    outline: none;
}

.accordion-title h5 {
    font-weight: 500;
    font-size: 1.125rem;
    margin-bottom: 0;
    font-family: 'Roboto Condensed', sans-serif;
}

.accordion-body {
    padding: 20px;
    color: #333333;
    text-align: left;
}

/* Responsivita pro menší notebooky a tablety naležato (992px - 1280px) */
@media (min-width: 992px) and (max-width: 1280px) {
    :root {
        --menu-width: 250px;
    }
    .kiosk-title {
        font-size: 1.35rem;
    }
    .kiosk-subtitle {
        font-size: 0.95rem;
    }
    .kiosk-btn {
        padding: 0 12px;
        font-size: 0.92rem;
    }
}

/* Responsivita pro menší zařízení (tablety na výšku a mobily <= 991px) */
@media (max-width: 991px) {
    html, body {
        overflow-y: auto;
        overflow-x: hidden;
        height: auto;
    }
    .kiosk-wrapper {
        height: auto;
        min-height: 100vh;
    }
    .kiosk-header {
        height: auto;
        min-height: 0;
        max-height: none;
        flex-direction: column;
        padding: 8px 12px;
    }
    .kiosk-header-left, .kiosk-header-right {
        width: 100%;
        justify-content: space-between;
    }
    .header-logo {
        height: 52px;
        max-height: 52px;
    }
    .header-nav-btn {
        font-size: 1.7rem;
        margin: 0 4px;
    }
    .home-btn {
        font-size: 2.2rem;
        margin-left: 6px;
    }
    .kiosk-idle-box {
        position: absolute;
        top: 2px;
        right: 8px;
        font-size: 0.68rem;
        padding: 1px 5px;
        margin: 0;
        border-radius: 5px;
    }
    .kiosk-idle-box .idle-icon {
        font-size: 0.62rem;
        margin-right: 2px;
    }
    .kiosk-idle-box .idle-text {
        font-size: 0.68rem;
        margin-right: 2px;
    }
    .kiosk-idle-box #kiosk-idle-sec,
    .kiosk-idle-box .idle-num {
        font-size: 0.72rem;
        min-width: 12px;
    }
    .kiosk-idle-toast {
        bottom: 12px;
        width: 92%;
        padding: 8px 14px;
        font-size: 0.85rem;
        justify-content: space-between;
    }
    .kiosk-header-center {
        margin: 4px 0 6px 0;
        padding: 0 4px;
    }
    .kiosk-title {
        white-space: normal;
        font-size: 1.05rem;
        line-height: 1.2;
    }
    .kiosk-subtitle {
        font-size: 0.8rem;
        margin-top: 2px;
    }
    .kiosk-body {
        flex-direction: column;
        height: auto;
    }
    /* Na menších zařízeních posuneme středový panel se slideshow / obsahem úplně NAHORU,
       aby návštěvník okamžitě viděl aktivní obsah a nemusel rolovat pod 12 tlačítek */
    .kiosk-center-content {
        order: -1;
        width: 100%;
        min-height: 0;
        height: auto;
        border-left: none;
        border-right: none;
        border-bottom: 3px solid var(--barva-zelena1);
        display: flex;
        flex-direction: column;
    }
    .kiosk-content-inner {
        height: auto;
        min-height: 0;
        width: 100%;
        display: flex;
        flex-direction: column;
        overflow: visible;
    }
    /* Zajištění plné a přizpůsobivé výšky pro iframy (YouTube videa, články, galerie) na mobilu */
    .kiosk-center-content .iframe {
        width: 100%;
        height: 78vh !important;
        min-height: 520px !important;
        max-height: 88vh !important;
        display: block;
        border: none;
        flex: none;
    }
    /* Zajištění scrollovatelnosti a rozumné výšky pro nástěnku a rejstřík na mobilu */
    .kiosk-center-content .kiosk-scrollable {
        min-height: 60vh;
        max-height: 85vh;
        height: auto;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        flex: none;
    }
    /* Zajištění výšky pro orientační plán na mobilu */
    .kiosk-center-content .kiosk-plan-wrapper {
        min-height: 60vh;
        height: 70vh;
        flex: none;
    }
    .kiosk-slideshow-container {
        height: auto;
        overflow: visible;
    }
    .kiosk-slideshow-carousel-wrap {
        height: 56.25vw;
        min-height: 250px;
        max-height: 480px;
    }
    .kiosk-left-menu {
        width: 100%;
        height: auto;
        margin-bottom: 22px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
        border-bottom: 2px solid rgba(255, 255, 255, 0.7);
    }
    .kiosk-right-menu {
        width: 100%;
        height: auto;
    }
    .kiosk-btn {
        min-height: 50px;
        padding: 0 16px;
    }
    .kiosk-footer {
        height: auto;
        max-height: none;
        flex-direction: column;
        padding: 12px;
        text-align: center;
        gap: 8px;
    }
}

@media (max-width: 576px) {
    .kiosk-slideshow-carousel-wrap {
        height: 60vw;
        min-height: 220px;
    }
    .kiosk-slideshow-bottom {
        padding: 8px 10px;
    }
    .kiosk-slideshow-title {
        font-size: 0.95rem;
    }
    .kiosk-slideshow-btn {
        font-size: 0.85rem;
        padding: 7px 10px;
    }
}

/* Zákaz mailto: a tel: odkazů */
a[href^="mailto:"], a[href^="tel:"] {
    pointer-events: none !important;
    cursor: default !important;
    text-decoration: none !important;
    color: inherit !important;
}

/* ==========================================================================
   REJSTŘÍKY / SBÍRKA DŘEVIN (styly karet, fotografií, tabulky a zoom ikon)
   ========================================================================== */
.rejstriky-views .btn .fa {
    width: 16px;
    text-align: center;
}

.rejstriky-table .table td,
.rejstriky-table .table th {
    vertical-align: middle;
}

.rejstriky-cards .rejstriky-card {
    border: 1px solid #487008;
    border-radius: .5rem;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 3px 3px rgba(0, 0, 0, 0.2); 
    transition: 
        box-shadow 0.3s ease,
        border-color 0.3s ease,
        transform 0.3s ease;
}

.rejstriky-cards .rejstriky-card:hover {
    border-color: #487008;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25), 0 10px 20px rgba(0, 0, 0, 0.15);
    background-color: #E8F2C2;
}

.rejstriky-cards .rejstriky-card__img {
    display: block;
    width: 100%;
    height: 180px;
    object-fit: cover;
    background: #f3f3f3;
    transition: transform 1s cubic-bezier(0.22, 1, 0.36, 1);
    transform-origin: bottom center;
    will-change: transform;
}

.rejstriky-cards .rejstriky-card:hover .rejstriky-card__img {
    transform: scale(1.04);
}

.rejstriky-cards .rejstriky-card__noimg {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 180px;
    background: #f8f9fa;
    color: #98a6ad;
}

.rejstriky-cards .rejstriky-card__body {
    padding: .75rem 1rem;
}

.rejstriky-cards .rejstriky-card__title {
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    margin: 0 0 .25rem 0;
    color: #1a1a1a;
    line-height: 1.2;
}

.rejstriky-cards .rejstriky-card__title i,
.rejstriky-cards .rejstriky-card__title em {
    font-family: 'Roboto Condensed', sans-serif;
    font-style: italic;
    font-weight: 700;
}

.rejstriky-cards .rejstriky-card__subtitle {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 1.05rem;
    color: #555555;
    margin: 0 0 .5rem 0;
}

.rejstriky-cards .rejstriky-card__meta {
    font-size: .9rem;
    color: #495057;
}

.rejstriky-cards .rejstriky-card__actions {
    padding: .5rem 1rem 1rem;
}

.rejstriky-cards .rejstriky-card__actions .btn {
    margin-right: .25rem;
    min-width: 34px;
    text-align: center;
}

.rejstriky-card .plant-photo {
    display: block;
    position: relative;
    overflow: hidden;
}

.rejstriky-card .plant-photo img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.rejstriky-card .plant-photo:hover img {
    transform: scale(1.04);
    filter: brightness(0.85);
}

.rejstriky-card .zoom-icon,
.plant-photo .zoom-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 22px;
    color: white;
    background: rgba(0,0,0,0.5);
    border-radius: 50%;
    padding: 6px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.rejstriky-card .plant-photo:hover .zoom-icon,
.plant-photo:hover .zoom-icon {
    opacity: 1;
}

/* Zákaz mailto:, tel: a PDF odkazů na celém infokiosku */
a[href^="mailto:"],
a[href^="tel:"],
a[href*=".pdf"],
a[href$=".pdf"] {
    pointer-events: none !important;
    cursor: default !important;
    text-decoration: none !important;
    color: inherit !important;
}

