     body {
        margin-top: 120px; /* Space for fixed header */
         max-width: 100vw;
        overflow-x: hidden; /* Toto skryje vodorovný posuvník */
        margin: 0;
        padding: 0;
    }
@media (max-width: 768px) {
    /* 1. Oprava Headeru - aby byl fixní a neposouval web */
    .header-container {
        width: 100% !important;
        left: 0 !important;
        right: 0 !important;
        margin: 0 !important;
        box-sizing: border-box !important;
    }

    .header-content {
        justify-content: center !important; /* Vycentruje logo a název */
        padding: 0 15px !important;
    }

    /* 2. Kompletní reset Banneru pro mobily */
    .banner {
        height: auto !important; /* Zrušíme fixních 600px, které dělají neplechu */
        min-height: 300px !important;
        margin-top: 60px !important; /* Prostor pod headerem */
        padding: 40px 20px !important;
        align-items: center !important; /* Vynutí centrování obsahu */
        justify-content: center !important;
        width: 100% !important;
        left: 0 !important;
        overflow: hidden !important;
    }

    /* 3. Vycentrování obsahu uvnitř banneru */
    .banner-content {
        margin: 0 auto !important; /* Zrušíme margin-left: 10% */
        padding: 0 !important;
        max-width: 100% !important;
        align-items: center !important; /* Zarovná text a tlačítko pod sebe na střed */
        text-align: center !important;   /* Vystředí texty */
        transform: none !important;      /* Pojistka proti posunům */
    }

    /* 4. Oprava tlačítka v banneru */
    .btnmapa {
        margin: 20px auto 0 !important; /* Zrušíme margin-right: 55px a vycentrujeme */
        width: fit-content !important;
        display: block !important;
        position: relative !important;
        right: auto !important;
    }

    /* 5. Responzivní texty v banneru */
    .banner h1 {
        font-size: 1.8rem !important;
        text-align: center !important;
        width: 100% !important;
    }

    .banner p {
        text-align: center !important;
        margin: 0 auto !important;
        width: 100% !important;
    }
}

    
    /* Responsive Banner */
       .banner {
        width: 100%;
        height: 600px;
        min-height: 200px;
        
        background: 
            url('img/homepage-banner.png') center/cover no-repeat;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        color: white;
        text-align: center;
        margin-top: 60px; /* Reduced for mobile */
        padding: 2rem 1rem;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        box-sizing: border-box;
    }
    
    .banner h1 {
        font-size: clamp(1.8rem, 5vw, 2.5rem); /* Responsive font size */
        margin-bottom: 1rem;
        text-shadow: 0 2px 4px rgba(0,0,0,0.3);
        line-height: 1.3;
    }
    
    .banner p {
        font-size: clamp(1rem, 3vw, 1.2rem); /* Responsive font size */
        max-width: min(90%, 700px); /* Responsive max-width */
        margin: 0 auto;
        text-shadow: 0 1px 3px rgba(0,0,0,0.2);
        line-height: 1.5;
    }
    .banner-content {
    display: flex;
    max-width: 380px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    text-align: left;
    /* Místo transformu použijeme margin nebo relativní pozici v rámci kontejneru */
    margin-right: auto; 
    margin-left: 10%; /* Posune obsah doleva, ale bezpečně */
    
    transition: all 0.3s ease;
    box-sizing: border-box;
}

/* Na velkých obrazovkách to můžeme posunout víc, pokud chceš */
@media (min-width: 1400px) {
    .banner-content {
        margin-left: 5%;
    }
}

/* Oprava pro mobily a tablety (vše pod 1400px) */
@media (max-width: 1400px) {
    .banner-content {
        margin: 0 auto; /* Vycentruje obsah na střed */
        align-items: center;
        text-align: center;
        padding: 0 20px;
        width: 100%;
    }
}
    
    /* When the content is about to go off-screen */
    @media (max-width: 1400px) { /* Adjust this breakpoint as needed */
        .banner-content {
            transform: none; /* Remove the negative translation */
            align-items: center; /* Center content */
            text-align: center; /* Center text */
            padding: 0 20px; /* Add some padding */
        }
    }
    /* Responsive Main Content */
   
    .main-content {
        
        width: 100%;
        max-width: 1200px;
        margin: 2rem auto;
        padding: 0 clamp(1rem, 5%, 2rem); /* Responsive padding */
        box-sizing: border-box;
    }
    
    .welcome-section {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    .welcome-message {
        font-size: clamp(1.4rem, 4vw, 1.8rem); /* Responsive font size */
        color: #444a85;
        margin-bottom: 1rem;
        line-height: 1.4;
    }
    
    .map-section {
        background: white;
        border-radius: 10px;
        padding: clamp(1.5rem, 5%, 2rem); /* Responsive padding */
        box-shadow: 0 2px 10px rgba(0,0,0,0.05);
        margin-bottom: 2rem;
    }
    
    /* Responsive adjustments for smaller devices */
    @media (max-width: 768px) {
        .banner {
            margin-top: 50px; /* Less space needed for mobile header */
            padding: 1.5rem 1rem;
        }
        
        .map-section {
            padding: 1.25rem;
        }
    }
    
    @media (max-width: 480px) {
        .banner {
            min-height: 180px;
            margin-top: 40px;
        }
        
        .banner h1 {
            margin-bottom: 0.75rem;
        }
        
        .main-content {
            margin: 1.5rem auto;
        }
    }
    
    /* Special cases for landscape mobile */
    @media (max-height: 500px) and (orientation: landscape) {
        .banner {
            min-height: 150px;
            max-height: 70vh;
        }
        
        .banner h1 {
            font-size: 1.5rem;
        }
        
        .banner p {
            font-size: 0.9rem;
        }
    }
    
    /* Ultra-wide screens adjustment */
    @media (min-width: 2000px) {
        .main-content {
            max-width: 1400px;
        }
    }
            
            /* Button styles */
            .btnmapa {
                display: block; /* Change from inline-block to block */
                margin: 20px auto 0; /* top | horizontal | bottom */
                margin-left: auto;
                margin-right: 55px; /* Adjust this to push it right */
                padding: 15px 30px;
                background-color: #3a5bff;
                color: white;
                font-size: 1.1rem;
                font-weight: 600;
                text-decoration: none;
                border-radius: 8px;
                transition: all 0.3s ease;
                border: none;
                cursor: pointer;
                box-shadow: 0 4px 12px rgba(27, 56, 197, 0.3);
                width: fit-content; /* Makes the button only as wide as its content */
            }
            
            .btnmapa:hover {
                transform: translateY(-2px);
                box-shadow: 0 6px 16px rgba(58, 91, 255, 0.4);
                background-color: #2a4bef;
            }
            
            
            .gallery-container {
                width: 100%;
                max-width: 1200px;
                margin: 0 auto;
                overflow: hidden;
                transform: translateZ(0); /* GPU boost */
            }
            
            .gallery-track {
                display: flex;
                transition: transform 0.5s ease;
                gap: 20px;
                padding: 1px 0; /* Prevents edge bleeding */
                margin: -1px 0; /* Offset padding */
            }
            
            .gallery-slide {
                flex: 0 0 20%; /* Exact width control */
                aspect-ratio: 1;
                position: relative;
                overflow: hidden;
                background: #000;
                border-radius: 6px;
                box-shadow: 0 0 10px rgba(0,0,0,0.5);
                transform: translateZ(0); /* GPU layer */
            }
            
            .gallery-slide img {
                width: 100%;
                height: 100%;
                object-fit: cover;
                position: absolute;
                top: 0;
                left: 0;
                /* Sharpness combo */
                image-rendering: crisp-edges;
                image-rendering: -webkit-optimize-contrast;
                /* Rendering optimizations */
                transform: translateZ(0);
                backface-visibility: hidden;
                outline: 1px solid transparent;
            }
            
            /* Retina display fix */
            @media (-webkit-min-device-pixel-ratio: 2) {
                .gallery-slide {
                    transform: translateZ(0) scale(0.9999);
                }
            }
    
    /* ==================== */
/* USER CONTRIBUTION SECTION */
/* ==================== */

.user-contribution {
    background: white;
    padding: 3rem 1rem;
    margin: 2rem auto;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    max-width: 1200px;
    font-family: 'Poppins', sans-serif;
}

.contribution-container {
    text-align: center;
}

.contribution-container h2 {
    color: #3b4782;
    margin-bottom: 1rem;
    font-size: clamp(1.5rem, 3vw, 2rem);
}

.contribution-container p {
    color: #555;
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto 2rem;
}

/* ================================== */
/* STYLES FOR THE CONTRIBUTION OPTIONS */
/* ================================== */
.contribution-options {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    margin: 2rem auto;
    max-width: 1000px;
}

.submission-option {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    text-align: center;
    flex: 1;
    min-width: 300px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.submission-option:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

.submission-option i {
    font-size: 2.5rem;
    color: #3b4782;
    margin-bottom: 1rem;
}

.submission-option h3 {
    color: #444a85;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}








/* ================================== */
/* STYLES FOR THE EMAIL SUBMISSION OPTION */
/* ================================== */
.email-submission .legal-checkbox {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 10px;
    margin-bottom: 1.5rem;
    text-align: left;
}

.legal-checkbox input[type="checkbox"] {
    display: none;
}

.legal-checkbox .custom-checkbox {
    width: 20px;
    height: 20px;
    border: 2px solid #3b4782;
    border-radius: 4px;
    position: relative;
    cursor: pointer;
    flex-shrink: 0;
}

.legal-checkbox input[type="checkbox"]:checked + label .custom-checkbox:after {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
}

.legal-checkbox input[type="checkbox"]:checked + label .custom-checkbox {
    background-color: #3b4782;
    border-color: #3b4782;
}

.legal-checkbox .legal-text {
    font-size: 0.9rem;
    color: #777;
    line-height: 1.4;
}

.legal-checkbox .terms-link {
    color: #3b4782;
    text-decoration: underline;
    font-weight: 600;
}

/* ================================== */
/* STYLES FOR BUTTONS */
/* ================================== */
.submission-btn {
    background-color: #3b4782;
    color: white;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease;
    display: inline-block;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.submission-btn:hover {
    background-color: #444a85;
    transform: translateY(-2px);
}

.submission-btn.full-width-btn {
    width: 100%;
}

.submission-option small {
    display: block;
    margin-top: 10px;
    color: #999;
}

/* ================================== */
/* STYLES FOR THE FEEDBACK MODAL */
/* ================================== */
.feedback-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
}

.feedback-modal.show-modal {
    display: flex;
}

.modal-content {
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 500px;
    position: relative;
    transform: scale(0.95);
    opacity: 0;
    animation: scaleIn 0.3s forwards cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes scaleIn {
    from {
        transform: scale(0.95);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.modal-content h3 {
    color: #3b4782;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content h3 i {
    margin-right: 10px;
    color: #6a6ee0;
}

.modal-content .close-btn {
    color: #aaa;
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
}

.modal-content .close-btn:hover {
    color: #333;
}

.modal-content .form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.modal-content .form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #555;
}

.modal-content .form-group input,
.modal-content .form-group textarea,
.modal-content .form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.modal-content .form-group input:focus,
.modal-content .form-group textarea:focus,
.modal-content .form-group select:focus {
    outline: none;
    border-color: #3b4782;
    box-shadow: 0 0 0 3px rgba(59, 71, 130, 0.2);
}

/* ================================== */
/* STYLES FOR PHOTO GUIDELINES */
/* ================================== */
.guidelines-box {
    background-color: #f0f4f8;
    border: 1px solid #dcdfe4;
    border-radius: 10px;
    padding: 2rem;
    margin-top: 3rem;
}

.guidelines-box h3 {
    color: #3b4782;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.guidelines-box h3 i {
    margin-right: 10px;
    color: #5f66c8;
}

.guidelines-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    text-align: center;
}

.guideline-item i {
    font-size: 2.5rem;
    color: #444a85;
    margin-bottom: 10px;
}

.guideline-item p {
    font-size: 1rem;
    color: #555;
    margin: 0;
}

/* ================================== */
/* RESPONSIVE STYLES */
/* ================================== */
@media (max-width: 992px) {
    .contribution-options {
        flex-direction: column;
        align-items: center;
    }
    .submission-option {
        width: 100%;
        max-width: 450px;
    }
    .contribution-options.two-columns .submission-option,
    .contribution-options.three-columns .submission-option {
        min-width: unset;
    }
}










/* ==================== */
/* EMAIL SUBMISSION FORM */
/* ==================== */
.email-submission p {
    margin-bottom: 1rem;
    font-size: 1rem;
}

.legal-checkbox {
    margin: 1.5rem 0;
    text-align: left;
    font-size: 0.8rem;
    padding: 0 10px;
}

.legal-checkbox label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    line-height: 1.4;
}

.legal-checkbox a {
    color: #3a5bff;
    text-decoration: underline;
}

.legal-checkbox input[type="checkbox"] {
    min-width: 18px;
    min-height: 18px;
    cursor: pointer;
}

.submission-btn {
    display: inline-block;
    background: #3a5bff;
    color: white;
    padding: 0.8rem 1.8rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    margin: 1rem 0 0.5rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.submission-btn:hover {
    background: #2a4bef;
    box-shadow: 0 4px 12px rgba(58, 91, 255, 0.3);
}

.submission-option small {
    display: block;
    font-size: 0.8rem;
    color: #666;
    margin-top: 0.5rem;
}

/* Disable button until checkbox is checked */
#emailSubmitBtn {
    pointer-events: none;
    opacity: 0.7;
}

.legal-checkbox input:checked ~ #emailSubmitBtn {
    pointer-events: auto;
    opacity: 1;
}

/* ==================== */
/* PHOTO GUIDELINES */
/* ==================== */
.guidelines-list {
    list-style: none;
    padding: 0;
    text-align: left;
    margin: 0;
}

.guidelines-list li {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.95rem;
    color: #444;
}

.guidelines-list i.fa-check {
    color: #4CAF50;
    margin-top: 3px;
    font-size: 0.9rem;
}

/* ==================== */
/* MOTIVATION SECTION */
/* ==================== */
.motivation-box {
    margin-top: 3rem;
    padding: 2rem;
    background: #f0f4ff;
    border-radius: 8px;
    border: 1px solid #e0e6ff;
}

.motivation-box h3 {
    color: #3b4782;
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
}

.motivation-items {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 1rem;
}

.motivation-item {
    flex: 1;
    min-width: 150px;
    max-width: 250px;
    text-align: center;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.motivation-item i {
    font-size: 2rem;
    color: #3b4782;
    margin-bottom: 0.8rem;
}

.motivation-item p {
    margin: 0;
    font-size: 0.95rem;
    color: #444;
}
    
    /* ==================== */
    /* RESPONSIVE ADJUSTMENTS */
    /* ==================== */
    @media (max-width: 992px) {
        .contribution-options {
            flex-direction: column;
            align-items: center;
        }
        
        .submission-option {
            width: 100%;
            max-width: 500px;
        }
    }
    
    @media (max-width: 576px) {
        .user-contribution {
            padding: 2rem 0.5rem;
        }
        
        .submission-option {
            padding: 1.5rem;
            min-width: 280px;
        }
        
        .motivation-item {
            min-width: 120px;
            padding: 0.8rem;
        }
        
        .legal-checkbox label {
            font-size: 0.85rem;
        }
    }
    
    /* Landscape mobile optimization */
    @media (max-height: 500px) and (orientation: landscape) {
        .user-contribution {
            padding: 1.5rem 0.5rem;
        }
        
        .submission-option {
            padding: 1rem;
        }
    }
    /* ==================== */
    /* FEEDBACK MODAL STYLES */
    /* ==================== */
    .feedback-modal {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0,0,0,0.7);
        z-index: 2000;
        overflow-y: auto;
    }
    
    .modal-content {
        background: white;
        margin: 5% auto;
        padding: 2rem;
        border-radius: 10px;
        max-width: 600px;
        position: relative;
        box-shadow: 0 5px 20px rgba(0,0,0,0.2);
        animation: modalFadeIn 0.3s ease-out;
    }
    
    @keyframes modalFadeIn {
        from { opacity: 0; transform: translateY(-20px); }
        to { opacity: 1; transform: translateY(0); }
    }
    
    .close-btn {
        position: absolute;
        top: 1rem;
        right: 1.5rem;
        font-size: 1.8rem;
        color: #777;
        cursor: pointer;
        transition: color 0.2s;
    }
    
    .close-btn:hover {
        color: #333;
    }
    
    .modal-content h3 {
        color: #3b4782;
        margin-bottom: 1.5rem;
        font-size: 1.5rem;
        display: flex;
        align-items: center;
        gap: 10px;
    }
    
    /* Feedback Form Styles */
    #feedbackForm {
        display: flex;
        flex-direction: column;
        gap: 1.2rem;
    }
    
    .form-group {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .form-group label {
        font-weight: 900;
        color: #444;
        font-size: 1.3rem;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.8rem;
        border: 1px solid #ddd;
        border-radius: 6px;
        font-family: 'Poppins', sans-serif;
        font-size: 1rem;
        transition: border-color 0.3s;
    }
    
    .form-group input:focus,
    .form-group select:focus,
    .form-group textarea:focus {
        border-color: #3a5bff;
        outline: none;
    }
    
    .form-group textarea {
        resize: vertical;
        min-height: 120px;
    }
    
    .full-width-btn {
        width: 100%;
        padding: 1rem;
        margin-top: 0.5rem;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
    }
    
    /* Guidelines Box */
    .guidelines-box {
        margin-top: 3rem;
        padding: 1.5rem;
        background: #f8f9ff;
        border-radius: 10px;
        border: 1px solid #e0e6ff;
    }
    
    .guidelines-box h3 {
        color: #3b4782;
        margin-bottom: 1.5rem;
        display: flex;
        align-items: center;
        gap: 10px;
        font-size: 1.3rem;
    }
    
    .guidelines-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1.5rem;
    }
    
    .guideline-item {
        display: flex;
        align-items: center;
        gap: 12px;
        background: white;
        padding: 1rem;
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    }
    
    .guideline-item i {
        font-size: 1.3rem;
        color: #3a5bff;
        min-width: 30px;
    }
    
    .guideline-item p {
        margin: 0;
        font-size: 0.95rem;
        color: #444;
    }
    
    /* Responsive Adjustments */
    @media (max-width: 768px) {
        .modal-content {
            margin: 2% auto;
            width: 95%;
            padding: 1.5rem;
        }
        
        .guidelines-grid {
            grid-template-columns: 1fr 1fr;
        }
    }
    
    @media (max-width: 480px) {
        .modal-content {
            padding: 1.2rem;
        }
        
        .guidelines-grid {
            grid-template-columns: 1fr;
        }
        
        .full-width-btn {
            padding: 0.8rem;
        }
    }