:root {
    --header-height: 120px;
    --footer-height: 120px;
    --primary-color: #28A69A;
}

/* Override Bootstrap's text-primary class */
.text-primary {
    color: var(--primary-color) !important;
}

.list-item.activity-link{
    min-height: unset!important;
}

/* Define variables for each page */

.bg-novinka {
    background-image: url('../images/novinka-banner.png');
    background-size: cover;
    background-position: center;
}

.bg-stezka {
    background-image: url('../images/stezka-banner.png');
    background-size: cover;
    background-position: center;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    height: 100vh;
    /* Remove overflow: hidden to allow scrolling when needed */
}

/* Smooth page load
body {
    animation: pageLoad 0.3s ease-out;
} */

@keyframes pageLoad {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fs-10 {
    font-size: 10px !important;
}

.fs-12 {
    font-size: 12px !important;
}

.fs-14 {
    font-size: 14px !important;
}

.mh-3{
    min-height: 3rem;
}

.objekt-icon{
    height:12px;
    width:12px;
}

.objekt-button-layout {
    flex: 0 0 auto;
    max-width: 65%;
}

.objekt-info-icon {
    width: 30px;
    height: 30px;
    flex-shrink: 0;
}

.objekt-qr-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    margin-left: 10px;
}

.main-container {
    min-height: 100vh;
    /* Changed from height to min-height */
    display: flex;
    flex-direction: column;
}

/* Header Styles */
.header {
    height: var(--header-height);
    background: white;
    color: #000000;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.carousel-indicators {
    position: static;
    /* or keep absolute if you want positioning */
    bottom: auto;
    /* reset bottom positioning if needed */
    left: auto;
    /* reset left positioning if needed */
    right: auto;
    /* reset right positioning if needed */
    transform: none;
    /* reset transform if needed */
    margin: 0;
    /* reset margin */
    padding: 0;
    /* reset padding */
}

.carousel-indicators button {
    width: 15px !important;
    height: 14px !important;
    background: url("data:image/svg+xml,%3Csvg width='9' height='8' viewBox='0 0 9 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='4.5' cy='4' r='4' fill='%23D3D3D3'/%3E%3C/svg%3E") no-repeat center !important;
    background-size: contain !important;
    border: none !important;
    border-radius: 0 !important;
    /* Remove Bootstrap's border-radius */
    text-indent: -9999px !important;
    margin: 15px 3px !important;
    padding: 0 !important;
    /* Remove any padding */
    box-shadow: none !important;
    /* Remove any box-shadow */
    outline: none !important;
    /* Remove focus outline if needed */
    opacity: 1 !important;
    /* Reset opacity */
}

.carousel-indicators button.active {
    background: url("data:image/svg+xml,%3Csvg width='9' height='8' viewBox='0 0 9 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='4.5' cy='4' r='4' fill='%2328A69A'/%3E%3C/svg%3E") no-repeat center !important;
    background-size: contain !important;
    opacity: 1 !important;
}

/* Remove any hover/focus effects that might interfere */
.carousel-indicators button:hover,
.carousel-indicators button:focus {
    opacity: 1 !important;
    background-color: transparent !important;
}

.container-fw {
    max-width: 90% !important;
    width: 90% !important;
    margin: 0 auto !important;
    /* This ensures centering */
}

.header .container-fluid {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0% 5%;
}

.logo img {
    height: 80px;
    width: auto;
    max-width: 200px;
}

.header-center {
    text-align: center;
    flex-grow: 1;
    margin: 0 30px;
}
/*
.card-text-limit {
            display: -webkit-box;
            -webkit-line-clamp: 3;
            line-clamp: 3;
            -webkit-box-orient: vertical;
            overflow: hidden;
            text-overflow: ellipsis;
            line-height: 1.4;
            max-height: calc(2.4em * 3); 
            min-height: calc(1.4em * 3); 
 }
 .text-limit-4 {
            display: -webkit-box;
            -webkit-line-clamp: 4;
            line-clamp: 4;
            -webkit-box-orient: vertical;
            overflow: hidden;
            text-overflow: ellipsis;
            line-height: 1.4;
            max-height: calc(2.4em * 4); 
            min-height: calc(1.4em * 4); 
}


 .text-limit-5 {
            display: -webkit-box;
            -webkit-line-clamp: 5;
            line-clamp: 5;
            -webkit-box-orient: vertical;
            overflow: hidden;
            text-overflow: ellipsis;
            line-height: 1.4;
            max-height: calc(2.4em * 5); 
            min-height: calc(1.4em * 5); 
}

 .text-limit-6 {
            display: -webkit-box;
            -webkit-line-clamp: 6;
            line-clamp: 6;
            -webkit-box-orient: vertical;
            overflow: hidden;
            text-overflow: ellipsis;
            line-height: 1.4;
            max-height: calc(2.4em * 6); 
            min-height: calc(1.4em * 6); 
}


 .text-limit-7 {
            display: -webkit-box;
            -webkit-line-clamp: 7;
            line-clamp: 7;
            -webkit-box-orient: vertical;
            overflow: hidden;
            text-overflow: ellipsis;
            line-height: 1.4;
            max-height: calc(2.4em * 7);
            min-height: calc(1.4em * 7); 
}


 .text-limit-8 {
            display: -webkit-box;
            -webkit-line-clamp: 8;
            line-clamp: 8;
            -webkit-box-orient: vertical;
            overflow: hidden;
            text-overflow: ellipsis;
            line-height: 1.4;
            max-height: calc(2.4em * 8); 
            min-height: calc(1.4em * 8); 
}

.text-limit-9 {
            display: -webkit-box;
            -webkit-line-clamp: 9;
            line-clamp: 9;
            -webkit-box-orient: vertical;
            overflow: hidden;
            text-overflow: ellipsis;
            line-height: 1.4;
            max-height: calc(2.4em * 9); 
            min-height: calc(1.4em * 9); 
} */

.all-height-150{
    height:150px;
    max-height:150px;
    min-height:150px;
    object-fit: cover;
}

.all-height-250{
    height:250px;
    max-height:250px;
    min-height:250px;
    object-fit: cover;
}

.all-height-560{
    height:560px;
    max-height:560px;
    min-height:560px;
    object-fit: cover;
}

.modal-fixed-image {
    max-width: 100%;
    max-height: 70vh;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center;
    margin: 0 auto;
    display: block;
    padding-top: 1rem;
}

.header-center h1 {
    font-size: 24px;
    margin: 0;
    font-weight: 600;
    letter-spacing: 1px;
}

.header-subtitle {
    font-size: 14px;
    margin: 5px 0 0 0;
    opacity: 0.8;
    color: #000000;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.real-time {
    font-size: 22px;
    font-weight: 600;
    min-width: 85px;
}

.language-changer {
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 8px;
    padding: 5px;
    position: relative;
}

.cursor-pointer {
    cursor: pointer;
}

.language-changer:hover {
    transform: scale(1.1);
    background: rgba(44, 62, 80, 0.1);
}

.language-changer img {
    width: 40px;
    height: 30px;
    border-radius: 4px;
}

/* Language Dropdown Styles */
.language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 2px solid #dee2e6;
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    padding: 10px;
    min-width: 200px;
    z-index: 1050;
}

.language-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.language-option:hover {
    background: rgba(44, 62, 80, 0.1);
}

.language-option img {
    width: 30px;
    height: 22px;
    border-radius: 3px;
}

.language-option span {
    font-size: 14px;
    font-weight: 500;
    color: #2c3e50;
}

/* Content Styles */
.content {
    flex: 1;
    background-size: cover;
    background-image: var(--background-image);
    background-repeat: no-repeat;
    background-position: center;
    background-attachment: fixed;
    padding: clamp(60px, 15vh, 120px) clamp(40px, 12vw, 120px);
    margin-right: 5%;
    margin-left: 5%;
    /* Remove overflow-y and height constraints for desktop */
}

.content-cards {
    display: flex;
    gap: 20px;
    align-items: stretch;
    min-height: 0;
}

.main-card {
    flex: 1;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    min-height: 0;
    height: auto;
    align-self: stretch;
    min-height: 437px;
    max-height: 495px;
}

.main-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.main-card:hover h3 {
    color: var(--primary-color);
}

.main-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #2c3e50;
}

.main-card p {
    font-size: 12px;
    line-height: 1.6;
    color: #34495e;
    flex-grow: 1;
    margin-bottom: 20px;
    overflow-wrap: break-word;
    word-wrap: break-word;
    text-align: justify;
}

.card-image {
    width: 100%;
    height: 140px;
    border-radius: 10px;
    margin-bottom: 10px;
    overflow: hidden;
}

.card-button {
    background: none;
    color: #2c3e50;
    border: none;
    padding: 0;
    padding-top: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    font-size: 20px;
    width: 100%;
}

.card-button::before {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.card-button:hover {
    color: var(--primary-color);
}

.card-button:hover::before {
    width: 80%;
}

.card-button:hover::after {
    transform: translateX(3px);
}


.news-button {
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    font-size: 20px;
    width: 100%;
}

.news-button::before {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.news-button:hover {
    color: var(--primary-color);
}

.news-button:hover h4 {
    color: var(--primary-color) !important;
}

.news-button:hover svg {
    fill: var(--primary-color);
}

.news-button:hover::before {
    width: 100%;
}

.news-button:hover::after {
    transform: translateX(3px);
}

.footer-info .kontakt-header h5{
    margin-bottom: 0px!important;
}


/* Sidebar Card with Arrow */
.sidebar-card-with-arrow {
    position: relative;
    cursor: pointer;
    min-height: 110px;
}

.sidebar-card-with-arrow .card-arrow {
    position: absolute;
    top: 15px;
    right: 15px;
    color: #2c3e50;
    transition: all 0.3s ease;
    transform: rotate(0deg);
}

.sidebar-card-with-arrow:hover .card-arrow {
    transform: translateX(5px);
    color: var(--primary-color);
}

.sidebar-card-with-arrow:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.sidebar-card:hover h4 {
    color: var(--primary-color);
}

.news-container:hover a {
    color: var(--primary-color) !important;
}

/* News Card Styling */
.news-card {
    display: flex;
    flex-direction: column;
    gap: 15px;
    position: relative;
}

.news-card .carousel-inner {
    overflow: visible;
}

.news-card .carousel-item {
    transition: transform 0.4s ease-in-out;
}

.news-header h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
}

.news-tags {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: -5px 0 5px 0;
}

.news-category {
    font-size: 11px;
    font-weight: 700;
    color: #2c3e50;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.news-date {
    font-size: 11px;
    color: #6c757d;
    font-weight: 500;
}

.news-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 5px 0;
}

.news-title h5 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: #2c3e50;
    flex-grow: 1;
}

.news-icon {
    font-size: 16px;
    color: #6c757d;
    margin-left: 10px;
    transition: all 0.3s ease;
}

.news-content {
    flex-grow: 1;
}

.news-content p {
    font-size: 9px;
    line-height: 1.5;
    color: #34495e;
    margin: 0;
    text-align: justify;
}

.news-card-button a{
    color: #2c3e50;
}

.news-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 10px;
}

.pagination-dots {
    display: flex;
    gap: 6px;
}

.dot {
    width: 20px;
    height: 4px;
    border-radius: 2px;
    background: #dee2e6;
    transition: all 0.3s ease;
    cursor: pointer;
}

.dot.active {
    background: #2c3e50;
}

.dot:hover {
    background: #6c757d;
}

.news-card:hover .news-icon {
    color: var(--primary-color);
    transform: scale(1.1);
}

.sidebar-column {
    width: 300px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
    min-height: 0;
}

.sidebar-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.sidebar-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.4);
}

.sidebar-card.large {
    flex: 2;
}

.sidebar-card h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #2c3e50;
}

.sidebar-card p {
    font-size: 9px;
    line-height: 1.5;
    color: #34495e;
    margin: 0;
    overflow-wrap: break-word;
    word-wrap: break-word;
    flex-grow: 1;
    text-align: justify;
}

/* Footer Styles */
.footer {
    height: var(--footer-height);
    background: white;
    color: #2c3e50;
    position: sticky;
    bottom: 0;
    z-index: 1000;
}

.footer .container-fluid {
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0% 5%;
}

.footer-logo {
    margin-right: 40px;
}

.footer-logo img {
    height: 60px;
    width: auto;
    max-width: 200px;
}

.footer-info {
    flex-grow: 1;
    margin-right: 40px;
}

.footer-info h5 {
    font-size: 22px;
    margin: 0 0 10px 0;
    font-weight: 600;
}

.contact-row {
    font-size: 15px;
    margin: 5px 0;
    font-weight: 500;
    color: #2c3e50;
}

.contact-row strong {
    font-weight: 700;
}

/* Kontakt Header with Line */
.kontakt-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

/* Copyright Row */
.copyright-row {
    font-size: 13px;
    margin-top: 8px;
    color: #6c757d;
    font-style: italic;
}

.footer-qr {
    display: flex;
    gap: 30px;
    margin-right: 60px;
}

.qr-code {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #2c3e50;
    font-size: 24px;
}

.qr-code:hover {
    transform: scale(1.05) rotate(5deg);
    background: rgba(44, 62, 80, 0.2);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.footer-temp {
    font-size: 20px;
    font-weight: 600;
    color: #000000;
}

.text-red {
    color: red;
}

/* Modal/Lightbox Styles */
.modal-content {
    background: white;
    border-radius: 15px;
    border: none;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
}

.modal-header {
    border-bottom: 2px solid #dee2e6;
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: white;
    border-radius: 15px 15px 0 0;
}

.modal-title {
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-title i {
    font-size: 24px;
}

.btn-close {
    filter: invert(1);
}

.modal-body {
    padding: 30px;
    text-align: center;
}

.qr-code-large {
    width: 250px;
    height: 250px;
    background: linear-gradient(45deg, #f8f9fa, #e9ecef);
    border: 3px solid #dee2e6;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 100px;
    color: #6c757d;
}

.social-info {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin-top: 20px;
}

.social-info h5 {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 10px;
}

.social-info p {
    color: #6c757d;
    margin: 5px 0;
}

.social-button {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    margin-top: 15px;
    transition: all 0.3s ease;
}

.social-button:hover {
    background: linear-gradient(135deg, #2980b9, #1f5582);
    transform: translateY(-2px);
    color: white;
}

.instagram-button {
    background: linear-gradient(135deg, #e4405f, #c13584);
}

.instagram-button:hover {
    background: linear-gradient(135deg, #c13584, #833ab4);
}

.facebook-button {
    background: linear-gradient(135deg, #1877f2, #166fe5);
}

.facebook-button:hover {
    background: linear-gradient(135deg, #166fe5, #0f5bd1);
}

/* Vertical Green Line */
.vertical-line {
    width: 3px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 2px;
}

.news-container {
    max-width: 300px;
    height: 100%;
    min-height:215px!important;
    max-height:215px!important;
    padding:20px 20px 10px 20px;
}

.swipe-wrapper {
    height: 154px;
    overflow: hidden;
}

.swipe-container {
    display: flex;
    transition: transform 0.3s ease;
    height: 100%;
}

.news-slide {
    min-width: 100%;
}

.page-indicator {
    width: 60px;
    height: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    background-color: #dee2e6 !important;
}

.page-indicator.active {
    background-color: #495057 !important;
}


/* Add this CSS to your custom.css file */

.logo-link {
    display: inline-block;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
    border-radius: 8px;
    /* Optional: rounds the pulse effect */
}

/* Pulse effect */
.pulse-logo:hover {
/*Deaktivována nejvíce cool animace    animation: logoPulse 1s infinite; */
}

@keyframes logoPulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(39, 174, 96, 0.7);
    }

    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 20px rgba(39, 174, 96, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(39, 174, 96, 0);
    }
}

/* Active state (when clicked) */
.pulse-logo:active {
    transform: scale(0.98);
}

/* Optional: Tooltip styling */
.logo-link[title]:hover::after {
    content: attr(title);
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(44, 62, 80, 0.9);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 1000;
    animation: tooltipFadeIn 0.3s ease;
}

.list-item {
    transition: all 0.3s ease;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    text-decoration: none;
    color: inherit;
    display: block;
    border: 1px solid #e9ecef;
    min-height:81px;
}

.list-item:hover {
    background-color: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    color: inherit;
    text-decoration: none;
}

.list-item .icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    flex-shrink: 0;
}


.list-item .content {
    flex-grow: 1;
    padding: 0;
}

.list-item .title {
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 5px;
    color: #212529;
}

.list-item .description {
    color: #6c757d;
    font-size: 14px;
    line-height: 1.4;
    margin: 0;
}

        .custom-scrollbar {
            /* Webkit browsers (Chrome, Safari, Edge) */
            scrollbar-width: thin;
            scrollbar-color: var(--primary-color) #f8f9fa;
        }

          .custom-scrollbar img {
            max-width: 100%;
            height: auto;
            margin: 0 auto;
        }
        
        .custom-scrollbar::-webkit-scrollbar {
            width: 1px;
        }
        
        .custom-scrollbar::-webkit-scrollbar-track {
            background: #f8f9fa;
            border-radius: 2px;
        }
        
        .custom-scrollbar::-webkit-scrollbar-thumb {
            background: var(--primary-color);
            border-radius: 2px;
        }
        
        .custom-scrollbar::-webkit-scrollbar-thumb:hover {
            background: var(--primary-color);
        }

@keyframes tooltipFadeIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* Responsive: Reduce effect on mobile */
@media (max-width: 768px) {
    .pulse-logo:hover {
        animation: logoPulseMobile 1s infinite;
    }

    @keyframes logoPulseMobile {
        0% {
            transform: scale(1);
            box-shadow: 0 0 0 0 rgba(39, 174, 96, 0.5);
        }

        70% {
            transform: scale(1.02);
            box-shadow: 0 0 0 10px rgba(39, 174, 96, 0);
        }

        100% {
            transform: scale(1);
            box-shadow: 0 0 0 0 rgba(39, 174, 96, 0);
        }
    }
}


/* NEW RESPONSIVE DESIGN - Starting from 1600px and below */

/* Above 1600px - Keep original horizontal layout */
@media (min-width: 1601px) {
    .content-cards {
        flex-direction: row;
        height: 100%;
        align-items: stretch;
    }

.main-cards-wrapper {
    display: flex;
    flex-direction: row;
    flex: 1;
    gap: 20px;
    height: 100%;
    flex-wrap: wrap;
    align-content: center;
    justify-content: center;
    align-items: center;
}

    .main-card {
        flex: 1;
        height: auto;
        align-self: stretch;
    }

.sidebar-column {
    width: 300px;
    display: flex;
    flex-direction: column;
    height: 100%;
    align-content: center;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
}

    body {
        overflow: hidden;
        height: 100vh;
    }

    .main-container {
        height: 100vh;
    }

.content {
    height: 100%;
    overflow-y: auto;
    display: flex;
    flex-wrap: wrap;
    align-content: center;
    align-items: center;
}

main.content:has(.bg-stezka) {
    display: unset;
    align-content: unset;
}

main.content:has(.bg-novinka) {
    display: unset;
    align-content: unset;
}



}

/* Enable scrolling and adjust layout below 1600px */
@media (max-width: 1600px) {
    body {
        overflow-y: auto;
        /* Enable vertical scrolling */
        height: auto;
    }

    .main-container {
        height: auto;
        min-height: 100vh;
    }

     .footer {
        height: auto;
        /* Allow footer to grow */
        min-height: var(--footer-height);
        padding: 15px 0;
    }

    .content {
        overflow-y: visible;
        height: auto;
        min-height: auto;
        padding: 40px clamp(20px, 5vw, 60px);
    }

    /* Create main cards wrapper for 2x2 grid */
    .content-cards {
        flex-direction: column;
        gap: 30px;
        align-items: stretch;
        height: auto;
    }

    .main-cards-wrapper {
        display: flex;
        flex-wrap: wrap;
        gap: 20px;
        margin-bottom: 30px;
    }

    .main-card {
        align-self: stretch;
        height: auto;
        min-height: 350px;
        /* Ensure consistent card height */
    }

    /* Extend sidebar to match the height */
    .sidebar-column {
        width: 100%;
        flex-direction: column;
        gap: 20px;
        height: auto;
    }

    .sidebar-card {
        flex: 1;
        min-height: 100px;
    }

    .news-container {
        max-width: 100%;
        height: auto;
        min-height: 200px;
    }
}

/* Layout adjustments for medium screens */
@media (max-width: 1400px) {
    .content {
        padding: 30px clamp(15px, 4vw, 50px);
    }

    .main-cards-wrapper {
        gap: 15px;
    }

    .main-card {
        min-height: 320px;
        padding: 20px;
    }

    .main-card h3 {
        font-size: 18px;
    }

    .main-card p {
        font-size: 11px;
    }
}

@media (max-width: 1200px) {
    .content {
        padding: 25px clamp(10px, 3vw, 40px);
    }

    .main-card {
        min-height: 300px;
        padding: 18px;
    }

    .main-card h3 {
        font-size: 17px;
    }

    .main-card p {
        font-size: 10px;
    }

    .card-image {
        height: 120px;
    }

        .main-cards-wrapper {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
        margin-bottom: 30px;
    }
}

/* Move sidebar below content at 1024px */
@media (max-width: 1024px) {
    .content-cards {
        flex-direction: column;
    }

    .main-cards-wrapper {
        margin-bottom: 30px;
    }

    .sidebar-column {
        width: 100%;
        flex-direction: column;
        gap: 15px;
    }

    .sidebar-card {
        height: 100%;
    }

    .news-container {
        height: 200px;
    }
}

.lead a {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.left-bold-text .fs-4{
    font-size: 1.3rem!important;
}

.QR-show-button{
    color: #2c3e50;
    font-weight: 600;
}

/* Tablet and mobile adjustments */
@media (max-width: 768px) {
    .header-center h1 {
        font-size: 20px;
    }

    .content-cards .main-card p{
        font-size: 12px!important;
    }

    .left-bold-text .fs-4{
        font-size: 1.1rem!important;
    }

    .gallery-slide-container {
        gap: unset!important;
        height: 100%!important;
        overflow-y: hidden!important;
    }

    .points-columns .list-item:last-of-type {
        margin-bottom: 0 !important;
    }

    .gallery-item{
        margin-bottom: 20px!important;
    }

    #galleryCarousel button, #mainGallery button, #videoCarousel button, #sidebarGallery button{
        display: none;
    }

    .carousel-indicators button{
        display: unset!important;
    }

    .sidebar-card-with-arrow .card-arrow{
        top: unset!important;
    }

    .news-carousel-page a{
        max-width: unset!important;
    }

    .gallery-carousel-next{
        right: 13%!important;
        top: 80vh!important;
    }

    .container-fw{
        width: 100%!important;
        max-width: 100%!important;
    }

    .container-fw .row{
        width: 100%!important;
        --bs-gutter-x: unset;
        --bs-gutter-y: unset;
    }

    .container-fw .row .p-4{
        padding: 1rem!important;
    }

    .container-fw.p-4{
        padding: 1rem!important;
    }

    .gallery-carousel-prev{
        left: 13%!important;
        top: 80vh!important;
    }

    .quiz-container{
        margin-bottom: unset!important;
    }

    .breadcrumb-item{
        font-size: 12px!important;
    }

    .points-columns:not(:first-child) {
        margin-top: 0px !important;
    }

    .quiz-container{
        max-width: unset!important;
    }

    .slider-margin {
        margin-left: 25px;
    }

    .content {
        padding: 20px 15px;
        margin-right: 2%;
        margin-left: 2%;
    }

    .main-cards-wrapper {
        grid-template-columns: 1fr;
        gap: 15px;
        margin-bottom: 20px;
    }

    .main-card {
        min-height: 250px;
        padding: 15px;
    }

    .card-image {
        height: 200px;
    }

    .sidebar-column {
        gap: 10px;
    }

    .sidebar-card {
        padding: 15px;
    }

    .sidebar-card h4 {
        font-size: 14px;
    }

    .sidebar-card p {
        font-size: 8px;
    }

    .sidebar-card-with-arrow p{
        font-size: 12px;
    }

    .cursor-pointer, .sidebar-card-with-arrow h4{
        font-size: 1rem!important;
    }
}

@media (max-height: 500px) and (orientation: landscape) {
  .gallery-slide-container{
        padding-top: unset!important;
    }
}

@media (max-width: 576px) {
    .content {
        padding: 15px 10px;
    }

    .main-card {
        min-height: 330px;
        padding: 12px;
    }

    .main-card h3 {
        margin-bottom: 10px;
    }

    .main-card p {
        margin-bottom: 15px;
    }

    .card-button {
        font-size: 16px;
        padding-top: 0.5rem;
    }

    .sidebar-card {
        min-height: 100px;
        padding: 12px;
    }
}

/* Add these responsive footer styles to your CSS */

/* Footer responsive adjustments */
@media (max-width: 1200px) {
    .footer {
        height: auto;
        /* Allow footer to grow */
        min-height: var(--footer-height);
        padding: 15px 0;
    }

    .footer .container-fluid {
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
        gap: 15px;
    }

    .footer-info {
        margin-right: 20px;
    }

    .contact-row {
        font-size: 13px;
    }

    .footer-qr {
        gap: 20px;
        margin-right: 30px;
    }

    .qr-code {
        width: 60px;
        height: 60px;
    }
}

@media (max-width: 768px) {
    .footer {
        height: auto;
        min-height: 140px;
        padding: 20px 0;
    }

    .main-padding{
        padding-top: 1rem !important;
        padding-bottom: 1rem !important;
    }

    .breadcrumb-container{
        padding: 8px 10px!important;
        gap: 5px!important;
    }

    .card-title{
        font-size: 18px!important;
    }

    .footer .container-fluid {
        flex-direction: column;
        text-align: center;
        gap: 15px;
        padding: 0 3%;
    }

    .footer-logo {
        margin: 0;
        order: 1;
    }

    .footer-logo img {
        height: 40px;
    }

    .footer-info {
        margin: 0;
        order: 2;
    }

    .footer-info h5 {
        font-size: 18px;
        margin-bottom: 8px;
    }

    .kontakt-header {
        justify-content: center;
    }

    .contact-row {
        font-size: 11px;
        line-height: 1.4;
        margin: 8px 0;
    }

    .copyright-row {
        font-size: 10px;
        margin-top: 5px;
    }

    .footer-qr {
        margin: 0;
        gap: 15px;
        order: 3;
        justify-content: center;
    }

    .qr-code {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .qr-code img {
        width: 30px;
        height: 30px;
    }

    .footer-temp {
        font-size: 16px;
        order: 4;
        margin-top: 5px;
    }
}

@media (max-width: 576px) {
    .footer {
        min-height: 160px;
        padding: 15px 0;
    }

    .footer .container-fluid {
        gap: 12px;
        padding: 0 2%;
    }

    .footer-logo img {
        height: 35px;
    }

    .footer-info h5 {
        font-size: 16px;
    }

    .contact-row {
        font-size: 10px;
        /* Stack contact info vertically on very small screens */
        display: flex;
        flex-direction: column;
        gap: 3px;
        align-items: center;
    }

    .contact-row strong {
        display: inline-block;
        min-width: 60px;
        text-align: left;
    }

    .copyright-row {
        font-size: 9px;
        line-height: 1.3;
    }

    .footer-qr {
        gap: 12px;
    }

    .qr-code {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }

    .qr-code img {
        width: 25px;
        height: 25px;
    }

    .footer-temp {
        font-size: 14px;
    }
}

/* Alternative mobile layout - uncomment if you prefer horizontal contact info */

@media (max-width: 576px) {
    .contact-row {
        font-size: 9px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}



/* Desktop footer - Add sticky positioning and maintain original layout */
@media (min-width: 1025px) {
    .footer {
        position: sticky;
        bottom: 0;
        z-index: 1000;
    }
}

/* Keep original desktop layout for 1600px+ */
@media (min-width: 1600px) {
    .footer .container-fluid {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        text-align: left;
    }

    .footer-info {
        order: 2;
        flex-grow: 1;
        margin: 0 40px;
    }

    .footer-qr {
        order: 3;
        margin-right: 60px;
        gap: 30px;
    }

    .footer-temp {
        order: 4;
        margin: 0;
    }

    .footer-bottom {
        display: contents;
        /* This makes the wrapper disappear on desktop */
    }

    .contact-row {
        display: block;
        /* Reset to original inline layout */
    }

    .contact-item {
        display: inline;
        /* Reset to original inline layout */
    }

    .contact-item strong,
    .contact-item span {
        display: inline;
        /* Reset to original inline layout */
    }
}

/* Disable sticky footer on tablets and mobile */
@media (max-width: 1024px) {
    .footer {
        position: static;
        bottom: auto;
    }

    .footer-bottom {
        display: flex;
    }
}

/* Mobile Footer Layout */
@media (max-width: 768px) {
    .footer .container-fluid {
        flex-direction: column;
        text-align: center;
        gap: 20px;
        padding: 25px 4%;
    }

    /* Mobile Layout Order */
    .footer-logo {
        order: 1;
        margin: 0;
    }

    .footer-logo img {
        height: 50px;
    }

    .footer-info {
        order: 2;
        margin: 0;
        width: 100%;
    }

    .footer-info h5 {
        font-size: 20px;
        margin-bottom: 12px;
    }

    .kontakt-header {
        justify-content: center;
        margin-bottom: 15px;
    }

    .vertical-line {
        height: 35px;
    }

    /* Mobile Contact Layout - Single Column */
    .contact-row {
        font-size: 13px;
        line-height: 1.6;
        margin: 12px 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }

    .contact-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        margin: 0;
        padding: 5px 0;
        width: 100%;
    }

    .contact-item strong {
        display: block;
        margin-bottom: 2px;
        font-size: 14px;
    }

    .contact-item span {
        font-size: 12px;
        color: #2c3e50;
    }

    .copyright-row {
        font-size: 11px;
        margin-top: 12px;
        line-height: 1.4;
    }

    /* QR Codes and Temperature in same row */
.footer-bottom {
    order: 3;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-top: 10px;
    flex-wrap: nowrap;
    align-content: center;
}

    .footer-qr {
        gap: 15px;
        margin: 0;
    }

    .qr-code {
        width: 45px;
        height: 45px;
        font-size: 14px;
    }

    .qr-code img {
        width: 45px;
        height: 45px;
    }

    .footer-temp {
        font-size: 16px;
        margin-left: 15px;
    }
}

/* Very Small Mobile Screens */
@media (max-width: 480px) {
    .footer .container-fluid {
        padding: 20px 3%;
        gap: 15px;
    }

    .footer-logo img {
        height: 45px;
    }

    .footer-info h5 {
        font-size: 18px;
    }

    .contact-row {
        font-size: 12px;
    }

    .contact-item {
        margin: 6px 0;
    }

    .copyright-row {
        font-size: 10px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 15px;
    }

    .footer-qr {
        gap: 12px;
    }

    .qr-code {
        width: 40px;
        height: 40px;
    }

    .qr-code img {
        width: 45px;
        height: 45px;
    }

    .footer-temp {
        font-size: 15px;
        margin: 0;
    }
}

/* Breadcrumb Styles */
.breadcrumb-container {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background-color: rgba(255, 255, 255, 0.9);
    border: 1px solid #dee2e6;
    border-radius: 25px;
    width: fit-content;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #2c3e50;
    font-size: 14px;
    transition: all 0.3s ease;
    padding: 4px 8px;
    border-radius: 15px;
    font-weight: 500;
}

.breadcrumb-item:hover {
    color: var(--primary-color);
    background-color: rgba(39, 174, 96, 0.1);
    text-decoration: none;
}

.breadcrumb-item i {
    margin-right: 6px;
}

.breadcrumb-separator {
    color: #6c757d;
    font-size: 12px;
    margin: 0 2px;
}

/* Point Number Circle */
.point-number-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: white;
    border-radius: 50%;
    font-weight: bold;
    font-size: 18px;
    margin-right: 12px;
    flex-shrink: 0;
}


/* Carousel transition */
.transition-transform {
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}

/* Trail card hover effect */
.trail-card {
    transition: transform 0.3s ease;
}

.trail-card:hover {
    transform: translateY(-8px);
}

.card-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #2c3e50;
}

.card-body:hover h5 {
    color: var(--primary-color);
}

.trail-card-bottom {
    display: flex;
    gap: 10px;
    justify-content: space-between;
}

/* Trail card layout components */
.trail-card-bottom {
    display: flex;
    gap: 10px;
}

.trail-qr-code {
    display: flex;
    align-items: end;
    justify-content: center;
}

/* Pagination dots active state */
.pagination-dot.active {
    background-color: var(--primary-color) !important;
    transform: scale(1.2);
}

.pagination-dot:hover {
    background-color: rgba(255, 255, 255, 0.8) !important;
    transform: scale(1.1);
}

/* Trail card container - fixed width based on 5-card layout */
.trail-card-container {
    width: calc(20% - 16px) !important;
    max-width: calc(20% - 16px) !important;
    min-width: 0 !important;
    flex-basis: auto !important;
    flex-shrink: 0 !important;
    margin: 0 8px !important;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .trail-card-container {
        width: calc(33.333% - 16px) !important;
        max-width: calc(33.333% - 16px) !important;
    }
}

@media (max-width: 992px) {
    .trail-card-container {
        width: calc(50% - 16px) !important;
        max-width: calc(50% - 16px) !important;
    }
}

@media (max-width: 768px) {
    .trail-card-container {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
    }
    
    #trailsCarouselTrack {
        touch-action: pan-y pinch-zoom !important;
    }

    .display-4 {
        font-size: 2rem !important;
    }
    
    /* Mobile list styles for trails */
    .trail-card {
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    }
    
    .trail-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
    }
}

/* News Carousel Styles */
.news-carousel-slide {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 300px;
}

.news-carousel-wrapper {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.news-carousel-page {
    min-width: 100%;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.news-carousel-page:last-child {
    margin-right: 0;
}

.news-carousel-row {
    display: flex;
    gap: 20px;
    margin: 10px 0;
    justify-content: center;
}

.news-card-container {
    width: 350px;
    height: 200px;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
}

.news-card-content {
    padding: 15px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.news-card-title {
    font-size: 15px;
    font-weight: bold;
    margin: 0 0 12px 0;
    line-height: 1.2;
    height: 36px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    text-align: left;
}

.news-card-image {
    width: 100%;
    height: 130px;
    border-radius: 8px;
    margin-bottom: 12px;
    flex-shrink: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.news-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.news-card-meta {
    display: flex;
    align-items: center;
    gap: 6px;
}


.news-card-tag {
    font-weight: bold;
    font-size: 11px;
    text-transform: uppercase;
    color: #2c3e50;
}

.news-card-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.news-card-date {
    font-size: 11px;
    color: #666;
}

.news-card-button {
    background: none;
    color: #2c3e50;
    border: none;
    padding: 0;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    position: relative;
    font-size: 14px;
}

.news-card-button::before {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 1.5px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.news-card-button:hover a {
    color: var(--primary-color);
}

.news-card-button:hover::before {
    width: 80%;
}

.news-card-button svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.news-card-button:hover svg {
    transform: translateX(3px);
}

/* Hover effects */
.news-card-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Novinky page specific styles */
.novinky-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    min-height: 250px;
}

/* Custom Leaflet Popup Styles */
.leaflet-popup-content {
    width: 280px !important;
    min-height: 80px !important;
    max-height: 300px !important;
    overflow-y: auto !important;
    margin: 0 !important
}

.leaflet-popup-content-wrapper {
    border-radius:22px!important;
}

.point-marker-content {
    position: relative;
    padding: 0.5rem;
    min-height: 90px; /* Minimální výška pro tlačítko GPS */
}

.leaflet-popup-close-button {
    position: absolute !important;
    top: 4px !important;
    right: 4px !important;
    color: #6c757d !important;
    font-size: 18px !important;
    line-height: 1 !important;
    z-index: 10 !important;
    background: none !important;
    border: none !important;
    padding: 0.25rem !important;
    cursor: pointer;
    transition: all 0.3s ease;
}

.leaflet-popup-close-button:hover {
    color: #28A69A !important;
    transform: scale(1.1);
}

.point-marker-header {
    display: flex;
    align-items: flex-start;
    margin-bottom: 0.5rem;
    padding-right: 20px;
    padding-left: 50px; /* Místo pro absolutně pozicovanou ikonu */
    padding-top: 4px; /* Zarovnání s ikonou */
    min-height: 40px; /* Zajistí místo pro kulatou ikonu */
}

.point-num {
    position: absolute;
    top: 0px;
    left: 0px;
    width: 40px;
    height: 40px;
    color: white;
    font-weight: bold;
    border-radius: 50%;
    font-size: 17,6px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
}

.point-marker-header strong {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.point-marker-content .description {
    margin-bottom: 0;
    color: #6c757d;
    font-size: 0.875rem;
    line-height: 1.4;
    word-wrap: break-word;
    overflow-wrap: break-word;
    /* Omezí text, pokud bude příliš dlouhý */
    max-height: 150px;
    overflow-y: auto;
}

/* Pokud není žádný text, skryje se popis */
.point-marker-content .description:empty {
    display: none;
    margin: 0;
}

.point-marker-link {
    position: absolute;
    bottom: 0px;
    right: 0px;
    padding: 0.5rem;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
}

.leaflet-popup-close-button{
    display:none!important;
}

.point-marker-link:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.point-marker-link img {
    width: 20px;
    height: 20px;
}

.trail-badges .badge {
    padding:2px 2px!important;
    align-items: center;
}
.trail-badges .badge img{
    padding-bottom:3px!important;
}

.trail-badges-events .badge {
display:flex;
align-items: center;
}

.trail-badges-events .badge {
    padding:10px 0px 0px!important;
    align-items: center;
}

.trail-badges-events .badge img{
    padding-right:5px!important;
}

.attachment-gallery{
    text-align: center;
}

.richtext img{
    display: block;
    margin: 20px auto;
    max-width: 100%;
    height: auto;
}

.richtext figure{
     pointer-events: none;
}

.richtext a{
    text-decoration: none!important;
}

.attachment__caption{
    text-decoration: none;
    color:black;
}

.gallery-modal .modal-content {
    background: #d2d2d299;
    border: none;
}

.gallery-modal-close {
    position: absolute;
    top: 40px;
    right: 60px;
    z-index: 1060;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    padding: 12px;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
    cursor: pointer;
}

.gallery-modal-close:hover {
    background: rgba(255, 255, 255, 1);
}

.gallery-modal-close img {
    width: 20px;
    height: 20px;
}

.gallery-modal-body {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    height: 100%;
}

.gallery-carousel {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-slide-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100vh;
    position: relative;
    padding-top: 60px;
}

.gallery-image-wrapper {
    display: inline-flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    max-width: 75vw;
    position: relative;
}

.gallery-image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    position: relative;
}

.gallery-modal-image {
    max-width: 75vw;
    max-height: 75vh;
    object-fit: contain;
    height: auto;
    width: 100%;
    display: block;
}

.gallery-image-description {
    text-align: center;
    color: black;
    font-style: italic;
    padding: 10px 20px;
    background: white;
    margin: 0;
    box-sizing: border-box;
    width: 100%;
}

.gallery-carousel-prev,
.gallery-carousel-next {
    position: fixed;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1061;
    transition: background 0.3s ease;
    cursor: pointer;
    opacity: 1;
}

.gallery-carousel-prev:hover,
.gallery-carousel-next:hover {
    background: rgba(255, 255, 255, 1);
}

.gallery-carousel-prev:focus,
.gallery-carousel-next:focus {
    background: rgba(255, 255, 255, 0.9);
    outline: none;
}

.gallery-carousel-prev:active,
.gallery-carousel-next:active {
    background: rgba(255, 255, 255, 0.9);
}

.gallery-carousel-prev {
    left: 10%;
}

.gallery-carousel-next {
    right: 10%;
}

.gallery-arrow-icon {
    width: 30px;
    height: 30px;
}

.attachment__caption {
    text-align: center;
    color: grey;
    text-decoration: none!important;
    font-style: italic;
}

.qr-code-img {
    width: 60px;
    height: 60px;
}

.trail-info-right{
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.leaflet-pane.leaflet-marker-pane img.leaflet-marker-icon {
    display: none !important;
}

.fs-11{
    font-size: 11px!important;
}


/* Zakázat pouze pro konkrétní zařízení*/
/*Disable map links*/
.leaflet-control-container .leaflet-bottom a{
    pointer-events: none!important;
    cursor: default!important;
}

/* Image Comparison Slider */
.image-comparison-slider {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    user-select: none;
}

.comparison-container {
    position: relative;
    width: 100%;
    max-width: 100%;
    max-height: 450px;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    background: #f0f0f0;
}

.comparison-image {
    display: block;
    width: 100%;
    height: 100%;
    max-height: 450px;
    object-fit: cover;
    object-position: center;
}

.comparison-before {
    position: relative;
    z-index: 1;
    display: block;
}

.comparison-after {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    clip-path: inset(0 50% 0 0);
}

.comparison-slider {
    position: absolute;
    top: 0;
    left: 50%;
    width: 4px;
    height: 100%;
    background-color: white;
    z-index: 3;
    cursor: ew-resize;
    transform: translateX(-50%);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.comparison-handle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background-color: white;
    border-radius: 50%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    color: #333;
    font-weight: bold;
    white-space: nowrap;
    gap: 2px;
}

.comparison-icon {
    width: 32px;
    height: 32px;
    display: block;
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
}

.comparison-label {
    position: absolute;
    top: 20px;
    padding: 8px 16px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    z-index: 4;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.comparison-label-before {
    left: 20px;
}

.comparison-label-after {
    right: 20px;
}

/* Responsive adjustments for Image Comparison Slider */
@media (max-width: 768px) {
    .comparison-container {
        max-height: 350px;
    }
    
    .comparison-image {
        max-height: 350px;
    }
    
    .comparison-handle {
        width: 50px;
        height: 50px;
        gap: 1px;
    }
    
    .comparison-icon {
        width: 26px;
        height: 26px;
    }
    
    .comparison-label {
        font-size: 11px;
        padding: 5px 10px;
        top: 15px;
    }
    
    .comparison-label-before {
        left: 15px;
    }
    
    .comparison-label-after {
        right: 15px;
    }
}

@media (max-width: 480px) {
    .comparison-container {
        max-height: 250px;
    }
    
    .comparison-image {
        max-height: 250px;
    }
    
    .comparison-handle {
        width: 40px;
        height: 40px;
        gap: 1px;
    }
    
    .comparison-icon {
        width: 20px;
        height: 20px;
    }
    
    .comparison-label {
        font-size: 10px;
        padding: 4px 8px;
        top: 10px;
    }
    
    .comparison-label-before {
        left: 10px;
    }
    
    .comparison-label-after {
        right: 10px;
    }
}

@media (min-width: 769px) {
    .comparison-image {
        width: auto;
        height: 100%;
    }
}
