/* zaklad a barvy */
:root {
    /* barvy */
    --primary-blue: #184d85;
    --secondary-blue: #2b6cb0;
    --dark-blue: #1e4d7b;
    --accent-orange: #f6ad55;
    --accent-orange-hover: #ed8936;
    
    /* chyby */
    --danger-red: #e53e3e;
    --danger-red-hover: #c53030;
    
    /* pozadi a text */
    --bg-main: #f5f7fb;
    --text-dark: #2d3748;
    --text-gray: #4a5568;
    --text-light: #718096;
    
    /* ohraniceni */
    --border-main: #e2e8f0;
    --border-dark: #cbd5e0;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    margin: 0;
    background: var(--bg-main);
    /* aby paticka zustala dole */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

html {
    height: 100%;
}

/* hlavni menu (header) */
header {
    background: var(--primary-blue);
    color: #fff;
    padding: 20px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    /* zustava nahore */
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    box-sizing: border-box;
    flex-shrink: 0;
    height: 105px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.brand-container {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #fff;
    transition: opacity 0.2s;
}

.brand-container:hover {
    opacity: 0.8;
}

.brand-logo {
    height: 55px;
    width: auto;
}

.brand-text {
    font-weight: 700;
    font-size: 27px;
}

/* navigace */
.nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 0;
    align-items: center;
}

.nav-list a {
    color: #fff;
    text-decoration: none;
    padding: 12px 16px;
    display: block;
    transition: background-color 0.3s, color 0.3s, border-bottom-color 0.3s;
    border-bottom: 3px solid transparent;
    position: relative;
}

.nav-list a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-bottom-color: var(--accent-orange);
}

/* aktivni polozka na PC */
.nav-list a.active {
    background-color: rgba(246, 173, 85, 0.15);
    border-bottom-color: var(--accent-orange);
    color: var(--accent-orange);
    font-weight: 700;
}



.nav-toggle,
.nav-close {
    display: none;
}

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

.settings-btn {
    background: none;
    border: none;
    color: white;
    font-size: 32px;
    cursor: pointer;
    margin-right: 20px;
    transition: transform 0.3s, color 0.2s;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
}

.settings-btn:hover {
    transform: rotate(90deg);
    color: var(--accent-orange);
}

.user-info {
    color: white;
    margin-right: 15px;
}

.logout-btn {
    background: var(--danger-red);
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.2s;
}

.logout-btn:hover {
    background: var(--danger-red-hover);
}

.header-login {
    background: var(--accent-orange);
    border: 0;
    border-radius: 4px;
    color: #111;
    padding: 8px 12px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.2s;
}

.header-login:hover {
    background: var(--accent-orange-hover);
}

/* hlavni obsah */
main.container {
    margin-top: 0;
    /* odsazeni resi js kdyz je skryta hero sekce */
    flex: 1;
    width: 100%;
    box-sizing: border-box;
    padding: 16px;
    padding-bottom: 40px;
}

/* pridano pres js */
main.container.no-hero {
    margin-top: 105px;
}

.tab-content {
    display: none;
    background: #fff;
    border: 1px solid var(--border-main);
    padding: 20px;
    position: relative;
    border-radius: 6px;
    min-height: 220px;
    box-sizing: border-box;
}

.tab-content.active {
    display: block;
}

/* texty a bloky obsahu */
.tab-content h3 {
    font-size: 28px;
    color: var(--primary-blue);
    margin-bottom: 25px;
    font-weight: 700;
    border-bottom: 3px solid var(--accent-orange);
    padding-bottom: 10px;
    display: inline-block;
}

.tab-content>p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-dark);
    white-space: pre-line;
}

.tab-content p {
    margin-bottom: 20px;
}

.section-block {
    background: #f8f9fa;
    padding: 20px;
    border-left: 4px solid var(--secondary-blue);
    margin: 20px 0;
    border-radius: 8px;
}

.section-block strong {
    color: var(--primary-blue);
    font-size: 17px;
}

.tab-content p em {
    font-style: italic;
    color: var(--primary-blue);
    font-weight: 600;
}

.tab-content ul,
.tab-content ol {
    margin: 15px 0 15px 30px;
    line-height: 1.9;
}

.tab-content li {
    margin-bottom: 12px;
    color: var(--text-dark);
    font-size: 15px;
}

.tab-content li strong {
    color: var(--secondary-blue);
}

.tab-content strong {
    color: var(--primary-blue);
    font-weight: 700;
}

.highlight-text {
    background: linear-gradient(120deg, #fff5e6 0%, #fff 100%);
    padding: 15px 20px;
    border-radius: 8px;
    border-left: 4px solid var(--accent-orange);
    margin: 20px 0;
    font-size: 15px;
    color: var(--text-dark);
    font-weight: 500;
}

/* nahravani fotek */
.upload-section {
    position: relative; /* kvuli overlay */
    background: #fff;
    padding: 25px 30px;
    border-radius: 16px;
    margin-bottom: 30px;
    border: 2px dashed #e2e8f0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

/* barva kdyz se taha soubor */
.upload-section.dragover {
    border-color: var(--secondary-blue);
    background-color: #f0f7ff;
    box-shadow: 0 8px 30px rgba(43, 108, 176, 0.15);
}

.upload-header-modern h4 {
    font-size: 20px;
    color: var(--primary-blue);
    margin-top: 0;
    margin-bottom: 8px;
}

.upload-header-modern p {
    color: var(--text-light);
    font-size: 14px;
    margin-top: 0;
    margin-bottom: 25px;
}

/* animace pri drag and drop */
.upload-drop-overlay {
    position: absolute;
    inset: 0; /* pres cele okno */
    background: rgba(240, 247, 255, 0.95);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 10;
    color: var(--secondary-blue);
    font-size: 24px;
    font-weight: bold;
}

.upload-section.dragover .upload-drop-overlay {
    opacity: 1;
}

.upload-drop-overlay i {
    font-size: 64px;
    margin-bottom: 15px;
    animation: bounce 1s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.upload-modern-controls {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 5;
}

.file-select-area {
    flex: 1;
    min-width: 250px;
    background: #f8fafc;
    border: 1px solid var(--border-main);
    padding: 15px 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.file-select-area:hover {
    border-color: var(--secondary-blue);
    background: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.file-select-area i {
    font-size: 28px;
    color: var(--secondary-blue);
}

.file-select-area span {
    font-weight: 500;
    color: var(--text-dark);
}

.hidden-file-input {
    display: none;
}

.upload-modern-filters {
    display: flex;
    gap: 15px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.upload-modern-filters .form-row {
    margin-bottom: 0;
    min-width: 140px;
}

.upload-modern-filters label {
    display: block;
    margin-bottom: 6px;
    font-weight: bold;
    color: var(--secondary-blue);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.upload-modern-filters select {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-dark);
    border-radius: 8px;
    background-color: #fff;
}

.btn-upload-modern {
    padding: 11px 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    height: 42px; /* zarovnani tlacitka */
}

.btn-delete-modern {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 15px;
}

/* galerie fotek */
.photo-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.photo-item {
    position: relative;
    border: 1px solid #ddd;
    padding: 5px;
    background: white;
    height: 150px;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.2s;
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
    cursor: zoom-in;
    transition: transform 0.2s;
}

.gallery-img:hover {
    transform: scale(1.05);
}

.delete-checkbox {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 20px;
    height: 20px;
    z-index: 10;
    cursor: pointer;
    accent-color: var(--danger-red);
}

/* formulare a modaly */
.modal-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    align-items: center;
    justify-content: center;
    z-index: 1500;
}

.modal-backdrop.show {
    display: flex;
}

.modal {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    width: 100%;
    max-width: 450px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    text-align: center;
    margin: 20px;
    box-sizing: border-box;
    animation: modalIn 0.3s ease-out;
    position: relative;
}

/* krizek na zavreni */
.modal-x-btn {
    position: absolute;
    top: 12px;
    right: 14px;
    background: none;
    border: none;
    font-size: 22px;
    color: #a0aec0;
    cursor: pointer;
    line-height: 1;
    padding: 4px 8px;
    border-radius: 6px;
    transition: color 0.2s, background 0.2s;
    z-index: 10;
}
.modal-x-btn:hover {
    color: var(--danger-red);
    background: #fff5f5;
}

@keyframes modalIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.modal h2 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #1a202c;
}

.form-row {
    margin-bottom: 15px;
    text-align: left;
}

.form-row label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-row input,
.form-row select,
.form-row textarea {
    width: 100%;
    padding: 10px;
    box-sizing: border-box;
    border: 1px solid var(--border-dark);
    border-radius: 5px;
    font-size: 16px;
    font-family: inherit;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus,
.archive-input:focus {
    outline: none;
    border-color: var(--secondary-blue);
    box-shadow: 0 0 0 3px rgba(43, 108, 176, 0.15);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-wrapper input {
    padding-right: 65px;
}

#togglePassword,
#toggleNewPassword {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    color: var(--secondary-blue);
    cursor: pointer;
    font-weight: bold;
    height: 100%;
}

.form-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    gap: 10px;
    flex-wrap: wrap;
}

/* tlacitka */
.btn {
    padding: 12px 16px;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    font-size: 16px;
    flex: 1;
    min-width: 100px;
    transition: all 0.2s;
}

.btn.primary {
    background: var(--secondary-blue);
    color: #fff;
}

.btn.primary:hover {
    background: var(--dark-blue);
    transform: translateY(-1px);
}

.btn.ghost {
    background: #edf2f7;
    color: var(--text-gray);
}

.btn.ghost:hover {
    background: var(--border-main);
}

.btn.danger {
    background-color: var(--danger-red);
    color: white;
}

.btn.danger:hover {
    background-color: var(--danger-red-hover);
    transform: translateY(-1px);
}

.btn-add-new {
    flex: 0 0 auto !important;
    width: auto !important;
    display: inline-block;
    margin-bottom: 20px;
    margin-top: 5px;
    font-size: 14px;
    padding: 8px 16px;
}

.tab-content .btn-add-new {
    position: absolute;
    top: 20px;
    right: 20px;
    margin: 0;
}

/* prepinani roku v galerii */
.year-filter {
    margin: 20px 0;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.year-link {
    padding: 10px 15px;
    background: var(--secondary-blue);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
}

.year-link:hover {
    background: var(--dark-blue);
}

/* rozbalovaci filtr roku v akcich */
.akce-year-filter {
    margin: 0 0 20px 0;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.akce-year-filter label {
    font-weight: 700;
    color: var(--primary-blue);
    font-size: 14px;
    white-space: nowrap;
}

.akce-year-select {
    padding: 9px 36px 9px 14px;
    border: 2px solid var(--secondary-blue);
    border-radius: 8px;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%232b6cb0' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat right 10px center;
    background-size: 16px;
    appearance: none;
    -webkit-appearance: none;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: inherit;
    min-width: 130px;
}

.akce-year-select:hover,
.akce-year-select:focus {
    border-color: var(--dark-blue);
    box-shadow: 0 0 0 3px rgba(43, 108, 176, 0.15);
    outline: none;
}

.category-filter {
    margin: 10px 0;
    padding: 15px;
    background: #edf2f7;
    border-radius: 8px;
}

.cat-link {
    padding: 8px 12px;
    background: var(--text-gray);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    margin-right: 10px;
}

/* karty prispevku */
.clickable-item {
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, background-color 0.2s;
}

.clickable-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    background-color: #fafbfc !important;
}

.clickable-item div[style*="position: absolute"] {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    gap: 5px;
    z-index: 5;
}

.clickable-item button {
    padding: 5px 10px;
    font-size: 14px;
    min-width: auto;
}

.clickable-item small {
    color: #666;
    font-weight: bold;
}

.clickable-item h4 {
    margin: 8px 0;
    color: var(--secondary-blue);
}

.clickable-item p {
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-gray);
}

.clickable-item a {
    display: inline-block;
    margin-top: 10px;
    font-size: 13px;
}

/* Očištěný modal, rozměry nyní řídí HTML a třída settings-modal */
#detailModal .modal {
    width: 95% !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
}

/* Zachování hezkého formátování samotného textu */
#detailModal .content-text {
    width: 100% !important;
    font-size: 16px !important; /* Mírně zmenšeno pro lepší čitelnost v užším okně */
    line-height: 1.8 !important;
    color: var(--text-dark) !important;
    white-space: pre-wrap !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    margin-bottom: 30px !important;
}

#detailImageContainer {
    display: flex;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 15px !important;
    margin-top: 20px !important;
    width: 100% !important;
}

#detailImageContainer img,
#detailImageContainer img.detail-thumb {
    object-fit: contain !important;
    height: 350px !important;
    width: auto !important;
    max-width: 31% !important;
    margin: 0 !important;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    cursor: zoom-in;
    transition: transform 0.2s;
}

#detailImageContainer img:hover {
    transform: scale(1.02);
}

.detail-close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 36px;
    color: #a0aec0;
    cursor: pointer;
    line-height: 0.8;
    transition: color 0.2s;
    z-index: 100;
    font-weight: 300;
    padding: 5px;
}

.detail-close-btn:hover {
    color: var(--danger-red);
}

#detailTitle {
    padding-right: 40px;
}

#detailLinkContainer {
    margin-top: 20px;
    display: none;
    text-align: center;
    width: 100%;
}

#detailLink {
    display: inline-block;
}

#detailModal .form-actions {
    margin-top: 30px;
}

/* modaly pro upravu prispevku */
#editPostModal,
#editNewsModal {
    padding: 20px;
}

#editPostModal .modal-edit-post,
#editNewsModal .modal-edit-post {
    width: 100%;
    max-width: 700px;
    max-height: 90vh;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

#editPostModal .modal-header,
#editNewsModal .modal-header {
    flex-shrink: 0;
    padding: 20px;
    background: #f8f9fa;
    border-bottom: 2px solid var(--border-main);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#editPostModal .modal-header h2,
#editNewsModal .modal-header h2 {
    margin: 0;
    font-size: 22px;
    color: var(--secondary-blue);
}

#editPostModal .modal-close-btn,
#editNewsModal .modal-close-btn {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--text-light);
    transition: color 0.2s;
}

#editPostModal .modal-close-btn:hover,
#editNewsModal .modal-close-btn:hover {
    color: var(--danger-red);
}

#editPostModal .modal-content-scroll,
#editNewsModal .modal-content-scroll {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    box-sizing: border-box;
}

#editPostModal .modal-content-scroll form,
#editNewsModal .modal-content-scroll form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#editPostModal .modal-footer,
#editNewsModal .modal-footer {
    flex-shrink: 0;
    padding: 15px 20px;
    background: #f8f9fa;
    border-top: 2px solid var(--border-main);
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

#editPostModal .modal-footer .btn,
#editNewsModal .modal-footer .btn {
    flex: 0 1 auto;
    min-width: 120px;
}

/* sprava uzivatelu */
.settings-modal {
    max-width: 520px !important;
    padding: 0 !important;
    text-align: left !important;
    overflow: hidden;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.settings-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 22px 24px;
    background: linear-gradient(135deg, #1a4a8a 0%, var(--secondary-blue) 100%);
    color: #fff;
    flex-shrink: 0;
}

.settings-header-icon {
    font-size: 26px;
    background: rgba(255,255,255,0.15);
    border-radius: 10px;
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.settings-title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #fff !important;
}

.settings-subtitle {
    margin: 2px 0 0;
    font-size: 12px;
    color: rgba(255,255,255,0.7);
}

.settings-header .modal-x-btn {
    color: rgba(255,255,255,0.7) !important;
    font-size: 20px;
}

.settings-header .modal-x-btn:hover {
    color: #fff !important;
    background: rgba(255,255,255,0.15) !important;
}

.settings-body {
    padding: 20px 24px 24px;
    overflow-y: auto;
    flex: 1;
}

.settings-section-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-light);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.settings-user-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 20px;
}

.settings-user-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: #f8fafc;
    border: 1px solid #e8edf4;
    border-radius: 10px;
    transition: background 0.15s, border-color 0.15s;
}

.settings-user-row:hover {
    background: #f0f4fa;
    border-color: #c7d8ef;
}

.settings-user-info {
    display: flex;
    align-items: center;
    gap: 7px;
    flex: 1;
    min-width: 0;
}

.settings-user-name {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.settings-user-you {
    font-size: 11px;
    background: #ebf8ff;
    color: var(--secondary-blue);
    border: 1px solid #bee3f8;
    border-radius: 20px;
    padding: 1px 7px;
    font-weight: 600;
    flex-shrink: 0;
}

.settings-role-badge {
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    flex-shrink: 0;
    letter-spacing: 0.03em;
}

.settings-role-badge.role-admin {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}

.settings-role-badge.role-editor {
    background: #f0fff4;
    color: #276749;
    border: 1px solid #c6f6d5;
}

.settings-delete-btn {
    background: none;
    border: 1px solid #fed7d7;
    color: var(--danger-red);
    border-radius: 8px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    flex-shrink: 0;
    transition: background 0.15s, border-color 0.15s, transform 0.1s;
}

.settings-delete-btn:hover {
    background: #fff5f5;
    border-color: var(--danger-red);
    transform: scale(1.08);
}

.settings-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 20px 0 18px;
    color: #a0aec0;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.settings-divider::before,
.settings-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-main);
}

/* mazani fotek z akce */
#editPostModal #existingImagesContainer,
#editNewsModal #existingNewsImagesContainer {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 15px;
    min-height: 100px;
    align-items: flex-start;
    padding: 10px;
    background: #f9fafb;
    border-radius: 6px;
    border: 1px solid var(--border-main);
}

.image-item-edit label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    margin: 0;
    padding: 8px;
    background: white;
    border: 2px solid #ddd;
    border-radius: 6px;
    transition: all 0.2s;
}

.image-item-edit label:hover {
    border-color: var(--secondary-blue) !important;
    box-shadow: 0 2px 8px rgba(43, 108, 176, 0.2);
}

.image-item-edit img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    transition: transform 0.2s;
}

.image-item-edit label:hover img {
    transform: scale(1.05);
}

.image-item-edit input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--danger-red);
}

/* zvetsovani fotek v galerii */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

#lightbox-img {
    max-width: 90%;
    max-height: 85vh;
    border: 4px solid white;
}

.close-lightbox {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 50px;
    cursor: pointer;
}

.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 60px;
    padding: 20px;
    cursor: pointer;
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}

#detailLightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

#detailLightbox.show {
    display: flex !important;
}

#detailLightbox-img {
    max-width: 90%;
    max-height: 85vh;
    object-fit: contain;
    border: 4px solid white;
    border-radius: 8px;
}

.close-detail-lightbox {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 50px;
    cursor: pointer;
    transition: color 0.2s;
    z-index: 10001;
    line-height: 1;
}

.close-detail-lightbox:hover {
    color: var(--accent-orange);
}

.detail-nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 60px;
    padding: 20px;
    cursor: pointer;
    transition: color 0.2s;
    z-index: 10001;
    user-select: none;
}

.detail-nav-arrow:hover {
    color: var(--accent-orange);
}

.detail-prev {
    left: 10px;
}

.detail-next {
    right: 10px;
}

#detailLightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 16px;
    font-weight: bold;
    background: rgba(0, 0, 0, 0.5);
    padding: 8px 16px;
    border-radius: 20px;
    z-index: 10001;
}

/* paticka dole */
footer {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    color: #fff;
    padding: 30px 16px;
    text-align: center;
    border-top: 4px solid var(--accent-orange);
    width: 100%;
    box-sizing: border-box;
    flex-shrink: 0;
    z-index: 100;
}

.footer-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.footer-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    padding: 0;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    text-decoration: none;
    border-radius: 50%;
    font-size: 22px;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.footer-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-4px) scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}

.footer-btn i {
    font-size: 22px;
    margin: 0;
}

.footer-btn span {
    display: none;
}

.footer-info {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.85);
    margin-top: 15px;
    font-weight: 500;
}

/* tlacitko nahoru */
#scrollToTopBtn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: auto;
    height: auto;
    background: linear-gradient(135deg, var(--secondary-blue) 0%, var(--dark-blue) 100%);
    color: white;
    border: 2px solid var(--accent-orange);
    border-radius: 10px;
    font-size: 14px;
    font-weight: bold;
    font-family: inherit;
    letter-spacing: 0.3px;
    cursor: pointer;
    z-index: 99;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    display: none;
    align-items: center;
    justify-content: center;
    gap: 5px;
    line-height: 1;
    padding: 9px 16px;
    white-space: nowrap;
}

#scrollToTopBtn:hover {
    background: linear-gradient(135deg, var(--dark-blue) 0%, var(--secondary-blue) 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    border-color: var(--accent-orange-hover);
}

#scrollToTopBtn.show {
    display: flex !important;
}

/* styl posuvniku */

/* chrome a spol */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
    margin: 5px;
}

::-webkit-scrollbar-thumb {
    background-color: var(--border-dark);
    border-radius: 20px;
    border: 2px solid transparent;
    background-clip: content-box;
}

::-webkit-scrollbar-thumb:hover {
    background-color: var(--secondary-blue);
}

/* firefox */
html,
.modal,
.modal-content-scroll {
    scrollbar-width: thin;
    scrollbar-color: var(--border-dark) transparent;
}

/* responzivita */

/* mapa na mobilech */
.address-map-container {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    justify-content: space-between;
}

.address-text {
    flex: 1;
    min-width: 250px;
}

.address-map {
    flex: 1;
    min-width: 500px;
    max-width: 333px;
}

.address-map iframe {
    width: 100%;
    height: 250px;
    border-radius: 8px;
    border: 1px solid var(--border-dark);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

@media screen and (max-width: 1150px) {
    nav {
        position: fixed;
        top: -100%;
        left: 0;
        background-color: var(--secondary-blue);
        width: 100%;
        padding-block: 5rem 4rem;
        transition: top 0.4s;
        text-align: center;
        z-index: 1100;
    }

    .show-menu {
        top: 0;
    }

    .nav-list {
        flex-direction: column;
        gap: 2.5rem;
    }

    .nav-toggle,
    .nav-close {
        display: flex;
        font-size: 1.5rem;
        color: #fff;
        cursor: pointer;
    }

    .nav-close {
        position: absolute;
        top: 1.5rem;
        right: 1.5rem;
    }

    /* aktivni polozka v mobilnim menu */
    .nav-list a.active {
        background-color: rgba(246, 173, 85, 0.2);
        border-bottom-color: transparent;
        border-left: 4px solid var(--accent-orange);
        padding-left: 12px;
        border-radius: 6px;
    }

    .nav-list a.active::after {
        display: none;
    }

    .user-info {
        display: none;
    }

    /* mensi menu pro telefony */
    header {
        height: auto;
        min-height: 65px;
        padding: 10px 14px;
    }

    main.container {
        margin-top: 65px;
    }

    .brand-logo {
        height: 40px;
    }

    .brand-text {
        font-size: 20px;
    }

    /* mensi cudlik na odhlaseni */
    .logout-btn {
        padding: 5px 9px;
        font-size: 12px;
        border-radius: 4px;
    }

    .settings-btn {
        font-size: 24px;
        margin-right: 8px;
    }

    /* prihlaseni vpravo s mezerou od menu */
    .header-right {
        flex: 1;
        justify-content: flex-end;
    }

    .header-login {
        margin-right: 14px;
    }
}

@media (max-width: 850px) {
    .address-map-container {
        flex-direction: column;
    }

    .address-map {
        width: 100%;
        max-width: 100%;
        min-width: auto;
        margin-top: 15px;
    }

    .address-map iframe {
        height: 300px;
    }
}

@media (max-width: 768px) {
    .tab-content h3 { font-size: 22px; }
    .tab-content>p { font-size: 15px; }

    .section-block {
        padding: 15px;
        margin: 15px 0;
    }

    .photo-grid-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .photo-item {
        height: 120px;
    }

    .tab-content .btn-add-new {
        position: static;
        display: block;
        width: 100%;
        margin-top: 10px;
        margin-bottom: 20px;
    }

    #detailImageContainer img,
    #detailImageContainer img.detail-thumb {
        max-width: 100% !important;
        height: auto !important;
        max-height: 400px !important;
        margin-bottom: 10px !important;
    }

    #detailModal .modal { padding: 20px !important; }

    footer { padding: 25px 12px; }

    .footer-buttons {
        gap: 12px;
        margin-bottom: 15px;
    }

    .footer-btn {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .footer-btn i { font-size: 20px; }
    .footer-info { margin-top: 12px; font-size: 11px; }

    #scrollToTopBtn {
        bottom: 15px;
        right: 12px;
        font-size: 12px;
        padding: 7px 12px;
        border-radius: 8px;
        border-width: 2px;
    }
}

/* design paticky */
.footer-main {
    padding: 15px 0;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    position: relative;
}

.footer-btn-center {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    border: none;
    background: #fff;
    color: var(--primary-blue);
    font-size: 28px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    margin: 0 10px;
}

.footer-btn-center:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    background: #f8f9fa;
}

.footer-creators {
    margin-top: 8px;
    opacity: 1;
    font-size: 13px;
}

.footer-creators a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    margin: 0 5px;
    transition: color 0.2s;
}

.footer-creators a:hover {
    color: var(--accent-orange);
}

/* tabulka v kontaktu */
.contact-table-wrapper {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    padding: 10px 0;
    margin-top: 20px;
    margin-bottom: 30px;
    border: 1px solid #e1e5ee;
    overflow-x: auto;
}

.contact-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
    line-height: 1.5;
}

.contact-table tbody tr {
    transition: background-color 0.2s;
}

.contact-table tbody tr:hover {
    background-color: #f8fafc;
}

.contact-table td {
    padding: 14px 25px;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: top;
}

.contact-table tr:last-child td { border-bottom: none; }

.contact-table td:first-child {
    width: 35%;
    min-width: 160px;
    color: var(--primary-blue);
}

.contact-table td:first-child strong { font-weight: 600; }

.contact-table td:last-child {
    color: #333;
    font-weight: 400;
}

@media (max-width: 600px) {
    .contact-table td {
        padding: 12px 15px;
        display: block;
        width: 100%;
        box-sizing: border-box;
    }

    .contact-table td:first-child {
        padding-bottom: 4px;
        color: var(--primary-blue);
        border-bottom: none;
    }

    .contact-table td:last-child {
        padding-top: 0;
        color: #000;
    }
}

/* karty clenu oddilu */
.members-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.member-card {
    background: #fff;
    border: 1px solid var(--border-main);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    position: relative;
    flex: 0 1 250px;
    width: 250px;
    max-width: 100%;
}

.member-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
    border-color: var(--secondary-blue);
}

.member-photo {
    width: 100px;
    height: 100px;
    margin: 0 auto 15px;
    border-radius: 50%;
    overflow: hidden;
    background: #edf2f7;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid var(--secondary-blue);
}

.member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.member-avatar {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    font-weight: bold;
    color: var(--secondary-blue);
}

.member-info h5 {
    margin: 10px 0 5px 0;
    color: var(--secondary-blue);
    font-size: 18px;
    font-weight: bold;
}

.member-info p {
    margin: 5px 0;
    font-size: 13px;
    color: #666;
}

.member-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    padding-top: 15px;
    border-top: 1px solid var(--border-main);
}

.btn-icon {
    width: 36px;
    height: 36px;
    padding: 0;
    border: none;
    background: #edf2f7;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.btn-icon:hover {
    background: var(--secondary-blue);
    color: white;
    transform: scale(1.1);
}

.btn-icon.danger:hover {
    background: var(--danger-red);
}

.member-detail-photo {
    width: 120px;
    height: 120px;
    margin: 0 auto 15px;
    border-radius: 50%;
    overflow: hidden;
    background: #edf2f7;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid var(--secondary-blue);
}

.member-detail-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.member-detail-photo .member-avatar {
    font-size: 50px;
}

@media (max-width: 768px) {
    .members-grid {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 400px) {
    header { padding: 8px 10px; }
    .brand-logo { height: 32px; }
    .brand-text { font-size: 16px; }
    .logout-btn { padding: 4px 7px; font-size: 11px; }
    main.container { padding: 10px; padding-bottom: 30px; }
    .tab-content { padding: 14px 12px; }
}

/* socialni site */
.social-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #fff;
    border: 1px solid var(--border-main);
    border-radius: 14px;
    padding: 18px 20px;
    text-decoration: none;
    color: inherit;
    transition: all 0.25s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    flex: 1 1 260px;
    min-width: 0;
    position: relative;
    overflow: hidden;
}

.social-card::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0;
    background: #f8faff;
    transition: opacity 0.25s ease;
    z-index: 0;
}

.social-card:hover {
    border-color: var(--secondary-blue);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(43, 108, 176, 0.15);
}

.social-card:hover::before {
    opacity: 1;
}

.social-card > * {
    position: relative;
    z-index: 1;
}

.social-card-icon {
    width: 58px;
    height: 58px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

.social-card-icon i {
    font-size: 30px;
    color: #fff;
}

.social-card-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
    flex: 1;
    overflow: hidden;
}

.social-card-name {
    font-weight: 700;
    font-size: 17px;
    color: #1a202c;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.social-card-handle {
    font-size: 13px;
    color: var(--text-light);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.social-card-arrow {
    font-size: 18px;
    color: var(--border-dark);
    flex-shrink: 0;
    transition: color 0.25s ease, transform 0.25s ease;
}

.social-card:hover .social-card-arrow {
    color: var(--secondary-blue);
    transform: translateX(3px);
}

@media (max-width: 600px) {
    .social-card {
        flex: 1 1 100%;
        padding: 15px 16px;
    }

    .social-card-icon {
        width: 50px;
        height: 50px;
        border-radius: 12px;
    }

    .social-card-icon i { font-size: 26px; }
    .social-card-name { font-size: 15px; }
}

/* hero sekce */
.hero-fullscreen {
    position: relative;
    width: 100%;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    overflow: hidden;

    background-image: url('../img/hero-bg.webp');
    background-size: cover;
    background-position: center top;
    background-attachment: fixed;
    background-color: #0d2a4a;

    margin-top: 0; 
    padding-top: 105px;
    
    border-radius: 0 0 20px 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.22);
    margin-bottom: 40px;
}

.hero-overlay-layer {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            to top,
            rgba(10, 20, 8,  0.75) 0%,
            rgba(10, 20, 8,  0.28) 50%,
            rgba(10, 20, 8,  0.08) 100%
        ),
        linear-gradient(
            105deg,
            rgba(15, 40, 18, 0.45) 0%,
            transparent 55%
        );
    z-index: 1;
}

.hero-overlay-vignette {
    position: absolute;
    inset: 0;
    background: radial-gradient(
        ellipse at center,
        transparent 40%,
        rgba(8, 18, 6, 0.45) 100%
    );
    z-index: 1;
}

.hero-content-container {
    position: relative;
    z-index: 4;
    width: 100%;
    max-width: 820px;
    padding: max(60px, calc(38.2vh - 180px)) clamp(20px, 5vw, 48px) clamp(90px, 14vh, 160px);
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
    animation: heroFadeIn 0.7s ease-out both;
}

.hero-badge-highlight {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--accent-orange);
    background: rgba(246, 173, 85, 0.12);
    border: 1px solid rgba(246, 173, 85, 0.35);
    padding: 8px 20px;
    border-radius: 100px;
    margin-bottom: 24px;
}

.hero-badge-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    background: var(--accent-orange);
    border-radius: 50%;
    flex-shrink: 0;
}

.hero-title-large {
    font-size: clamp(2.5rem, 10vw, 8rem);
    font-weight: 800;
    margin: 0 0 20px 0;
    line-height: 1.08;
    letter-spacing: -0.02em;
    color: #fff;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.4);
}

.hero-title-line { display: block; }

.hero-title-accent {
    color: var(--accent-orange);
}

.hero-subtitle-large {
    font-size: clamp(1rem, 3vw, 1.8rem);
    line-height: 1.75;
    color: rgba(220, 235, 255, 0.88);
    max-width: 900px;
    margin: 0 auto 36px;
    font-weight: 400;
}

.hero-cta-buttons {
    display: flex;
    gap: 14px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.btn-hero {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 54px; 
    padding: 0 30px; 
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    border-radius: 10px;
    text-decoration: none;
    border: 1.5px solid transparent;
    box-sizing: border-box;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-hero-primary {
    background: var(--accent-orange);
    color: #111;
    box-shadow: 0 4px 16px rgba(246, 173, 85, 0.35);
}
.btn-hero-primary:hover {
    background: var(--accent-orange-hover);
    box-shadow: 0 6px 22px rgba(246, 173, 85, 0.45);
    transform: translateY(-2px);
}

.btn-hero-ghost {
    background: rgba(255, 255, 255, 0.10);
    color: #fff;
    border: 1.5px solid rgba(255, 255, 255, 0.45);
}
.btn-hero-ghost:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.80);
    transform: translateY(-2px);
}

.hero-scroll-btn {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    opacity: 0.85;
    transition: opacity 0.2s;
}
.hero-scroll-btn:hover { opacity: 1; }

.hero-scroll-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: rgba(246, 173, 85, 0.85);
}

.hero-scroll-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1.5px solid rgba(246, 173, 85, 0.50);
    background: rgba(246, 173, 85, 0.08);
    color: var(--accent-orange);
    font-size: 26px;
    transition: background 0.2s, border-color 0.2s;
}

.hero-scroll-btn:hover .hero-scroll-arrow {
    background: rgba(246, 173, 85, 0.18);
    border-color: var(--accent-orange);
}

@keyframes heroFadeIn {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1024px) {
    .hero-fullscreen { background-attachment: scroll; }
}

/* mobily pro hero a bannery */

@media screen and (max-width: 768px) {
    /* optimalni vyska pro tablety */
    .hero-fullscreen {
        min-height: 70vh; 
        padding-top: 105px; /* vyska menu */
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 30px;
    }

    .hero-content-container {
        padding: 20px;
        max-width: 100%;
    }

    .hero-title-large {
        font-size: 2.8rem;
        line-height: 1.1;
        margin-bottom: 15px;
    }

    .hero-subtitle-large {
        font-size: 1.1rem;
        margin-bottom: 25px;
    }

    /* tlacitka na mobilu pod sebou */
    .hero-cta-buttons {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .btn-hero {
        width: 100%;
        max-width: 260px;
        justify-content: center;
        padding: 12px 20px;
    }

    /* bannery 1 na radek */
    .banery-grid-large {
        flex-direction: column;
        align-items: center;
    }
    .banner-image-wrap,
    .image-zoom-wrapper {
        height: 350px;
    }
}

/* uplne male telefony */
@media screen and (max-width: 480px) {
    .hero-fullscreen {
        min-height: 80vh; /* lepsi vyska pro cteni */
        padding-top: 80px;
    }

    .hero-title-large {
        font-size: 2.2rem; /* zmenseni nadpisu */
    }

    .hero-subtitle-large {
        font-size: 1rem;
        line-height: 1.5;
    }

    .hero-badge-highlight {
        font-size: 9px;
        padding: 6px 12px;
        letter-spacing: 1.5px;
    }

    .hero-scroll-btn {
        bottom: 10px;
    }

    /* mensi okraje */
    main.container {
        padding: 10px;
    }
    
    .tab-content {
        padding: 15px 10px;
    }
}

@media (max-width: 768px) and (orientation: landscape) {
    .hero-fullscreen { min-height: 100vh; }
    .hero-content-container { padding: 50px 24px 65px; }
    .hero-scroll-btn { bottom: 10px; }
}

@media (prefers-reduced-motion: reduce) {
    .hero-content-container { animation: none; }
}

.ctu-icon-bg {
    background: #fff; 
    border: 1px solid var(--border-main);
    padding: 5px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ctu-logo-img {
    width: 85%; 
    height: 85%;
    object-fit: contain;
}

.social-card:hover .ctu-icon-bg {
    border-color: var(--accent-orange);
}

/* drag and drop zona */
.drop-zone {
    position: relative;
    border: 2px dashed var(--border-dark);
    border-radius: 8px;
    padding: 30px 20px;
    text-align: center;
    background-color: #f8fafc;
    transition: all 0.3s ease;
    cursor: pointer;
    overflow: hidden;
    margin-top: 5px;
}

.drop-zone:hover,
.drop-zone.dragover {
    border-color: var(--secondary-blue);
    background-color: #ebf8ff;
}

.drop-zone-content { pointer-events: none; }

.drop-zone-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

/* odkaz v textu akce/aktuality */
.content-link {
    color: var(--secondary-blue);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1.5px;
    transition: color 0.2s, text-decoration-color 0.2s;
    word-break: break-all;
}

.content-link:hover {
    color: var(--dark-blue);
    text-decoration-color: var(--accent-orange);
}

/* hint syntaxe odkazu v editaci */
.link-syntax-hint {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 5px;
    display: block;
    background: #f8fafc;
    border: 1px dashed var(--border-dark);
    border-radius: 5px;
    padding: 6px 10px;
    line-height: 1.7;
}

.link-syntax-hint code {
    background: #edf2f7;
    color: var(--primary-blue);
    padding: 1px 5px;
    border-radius: 3px;
    font-size: 11px;
    font-family: monospace;
}

/* bannery a plakaty */
.banners-in-tab {
    margin-bottom: 20px;
}

.banery-grid-large {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 20px;
}

.banner-card-large {
    flex: 0 1 450px;
    max-width: 600px;
}

.banner-card-large {
    flex: 0 1 450px;
    max-width: 600px;
    background: #fff;
    border: 1px solid var(--border-main);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    height: fit-content;
}

.banner-card-large:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: var(--secondary-blue);
}

/* horni lista jako ig */
.banner-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between; /* roztahnuti jmena a cudliku */
    padding: 12px 16px;
    gap: 12px;
    border-bottom: 1px solid var(--border-main);
    background: #fff;
}

.banner-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.banner-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid #dbdbdb;
    background: #fff;
}

.banner-avatar img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.banner-username {
    font-weight: 600;
    font-size: 17px;
    color: #262626;
}

/* upravovaci cudliky */
.banner-admin-actions-top {
    display: flex;
    gap: 8px;
}

.btn-icon-sm {
    width: 30px;
    height: 30px;
    padding: 0;
    border: none;
    background: #f0f2f5;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    color: var(--text-gray);
}

.btn-icon-sm:hover {
    background: var(--secondary-blue);
    color: white;
}
.banner-image-wrap,
.image-zoom-wrapper {
    width: 100%;
    height: 450px; 
    background: #f8f9fa;
    border-bottom: 1px solid var(--border-main);
    position: relative;
    cursor: zoom-in;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94); /* hezka animace */
}

.banner-image-wrap:hover .banner-image,
.image-zoom-wrapper:hover .banner-image {
    transform: scale(1.06); /* zoom */
}

/* schovana lupa */
.banner-zoom-overlay {
    display: none !important;
}

.banner-image-wrap:hover .banner-zoom-overlay {
    opacity: 1;
}

.banner-zoom-overlay i {
    color: white;
    font-size: 40px;
}

.banner-card-body {
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.instagram-caption {
    font-size: 16px;
    color: #262626;
    line-height: 1.5;
    margin: 0;
    word-break: break-word;
}

.banner-admin-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    justify-content: flex-end;
    border-top: 1px solid var(--border-main);
    padding-top: 15px;
}

.section-divider-line {
    border: 0;
    height: 2px;
    background: var(--border-main);
    margin: 40px 0;
}

@media (max-width: 768px) {
    .banery-grid-large {
        grid-template-columns: 1fr;
    }
    .banner-image-wrap,
    .image-zoom-wrapper {
        height: 350px;
    }
}

/* pomocne tridy pro html */
.content-p { margin-top: 10px; margin-bottom: 0; }
.content-ul { margin-top: 15px; margin-bottom: 0; }
.content-highlight-end {
    margin-top: 30px;
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-blue);
    text-align: center;
}

.post-card {
    border: 1px solid transparent; /* Zrušíme tvrdý rámeček */
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04); /* Přidáme velmi jemný stín */
    padding: 18px; /* Trošku víc místa uvnitř */
    border-radius: 12px; /* Mírně kulatější rohy (jako u modálů) */
    margin-bottom: 15px;
    background: #fff;
    position: relative;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.2s ease;
}

.post-card:hover {
    transform: translateY(-4px);
    /* Při najetí se stín zvětší a chytne jemný modrý nádech */
    box-shadow: 0 10px 25px rgba(43, 108, 176, 0.12); 
    border-color: rgba(43, 108, 176, 0.15); 
    background-color: #fff;
}

.post-actions-overlay {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    gap: 5px;
    z-index: 5;
}
.post-action-btn {
    padding: 5px 10px;
    font-size: 14px;
    min-width: auto;
}
.post-date {
    color: #666;
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
    font-size: 0.9em;
}
.post-date-added {
    color: #999;
    display: block;
    margin-bottom: 5px;
    font-size: 0.8em;
}
.post-title {
    margin: 5px 0 10px 0;
    color: var(--secondary-blue);
    font-size: 18px;
}
.post-excerpt {
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-gray);
}
.post-more-btn {
    display: inline-block;
    margin-top: 10px;
    font-size: 13px;
}

.document-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    background: #fff;
    border: 1px solid var(--border-main);
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}
.document-info {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    flex: 1;
    overflow: hidden;
}
.document-icon-wrapper {
    background: #edf2f7;
    padding: 10px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.document-icon { font-size: 24px; }
.document-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    overflow: hidden;
}
.document-title-text {
    font-weight: bold;
    color: var(--text-dark);
    font-size: 16px;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.document-subtitle {
    color: var(--text-light);
    font-size: 13px;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.document-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-shrink: 0;
    margin-left: 10px;
}
.document-action-btn {
    padding: 8px 16px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: auto;
}
.document-action-btn.danger {
    padding: 8px 12px;
}

/* dalsi html styly */
.hidden { display: none !important; }
.flex-1 { flex: 1; }
.spacer-36 { width: 36px; }

.section-divider {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid var(--border-main);
}

.section-subtitle {
    font-size: 24px;
    color: var(--primary-blue);
    margin: 0 0 8px 0;
    font-weight: 700;
}

.section-subtitle-desc {
    color: var(--text-light);
    font-size: 14px;
    margin: 0 0 28px 0;
}

.section-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.btn-static {
    position: static !important;
    margin: 0 !important;
}

.documents-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.document-icon--default { color: var(--secondary-blue); }
.document-icon--pdf     { color: var(--danger-red); }
.document-icon--excel   { color: #38a169; }

.empty-state-text {
    color: var(--text-light);
    font-style: italic;
    text-align: center;
    padding: 20px 0;
}

.members-empty {
    text-align: center;
    padding: 40px;
    color: #999;
    grid-column: 1 / -1;
}

.social-cards-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 16px;
}

.social-icon-instagram { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.social-icon-facebook { background: #1877f2; }
.social-icon-youtube  { background: #ff0000; }
.social-icon-rajce    { background: #e84c22; }

.social-icon-img {
    width: 32px;
    height: 32px;
    display: block;
    filter: brightness(0) invert(1);
}

.modal-wide   { max-width: 600px !important; }
.modal-medium { max-width: 520px !important; }
.modal-sm     { max-width: 450px; }
.modal-medium-sm { max-width: 500px; text-align: left; }

.form-row-flex {
    display: flex;
    gap: 10px;
}

.form-row-section {
    border-top: 2px solid #eee;
    padding-top: 15px;
    margin-top: 15px;
}

.label-section {
    font-weight: bold;
    font-size: 15px;
    display: block;
    margin-bottom: 5px;
}

.label-mt {
    display: block;
    margin-bottom: 5px;
    margin-top: 15px;
    font-weight: bold;
}

.form-hint {
    color: #666;
    display: block;
    margin-top: 5px;
    font-size: 13px;
}

.form-hint-inline {
    color: #666;
    font-size: 13px;
}

.recaptcha-row {
    display: flex;
    justify-content: center;
}

.existing-images-container {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 15px;
    min-height: 100px;
    align-items: flex-start;
}

.btn-delete-images {
    display: none;
    margin-bottom: 15px;
    width: 100%;
    flex: none !important;
}
.btn-delete-images.show { display: block; }

.no-images-hint {
    color: #999;
    font-size: 13px;
    padding: 10px;
    width: 100%;
    margin: 0;
}

.detail-thumb--hidden { display: none !important; }

.detail-link-container {
    display: none;
    margin-top: 20px;
    text-align: center;
}
.detail-link-container.visible { display: block; }

#detailImageContainer { display: none; }
#detailImageContainer.has-images { display: flex; }

.lightbox.show { display: flex; }

.lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 16px;
    font-weight: bold;
    background: rgba(0, 0, 0, 0.5);
    padding: 8px 16px;
    border-radius: 20px;
}

.member-detail-name     { margin-bottom: 5px; }
.member-detail-position { color: #666; margin-bottom: 20px; font-size: 15px; }
.member-detail-info     { text-align: left; }
.member-detail-description { margin-top: 15px; color: #333; line-height: 1.6; }
.member-detail-empty    { color: #999; }

.drop-zone-icon {
    font-size: 32px;
    color: var(--secondary-blue);
    margin-bottom: 8px;
    display: block;
}

.drop-zone-text--idle   { margin: 0; color: var(--text-gray); }
.drop-zone-text--active { margin: 0; font-weight: bold; color: var(--secondary-blue); }

.address-street {
    margin: 10px 0 0 0;
    font-weight: 700;
    color: var(--secondary-blue);
    font-size: 16px;
}

.address-note {
    font-size: 13px;
    color: #666;
    margin-top: 5px;
}

.hero-title-large { font-size: clamp(2rem, 5.5vw, 5.2rem); }
.hero-title-line { display: inline; }
.hero-subtitle-large { font-size: clamp(1rem, 2vw, 1.25rem); max-width: 800px; }

.content-p--highlight {
    font-weight: 700;
    color: var(--primary-blue);
}

.map-iframe { border: none; }

.footer-info {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.85);
    text-align: center;
    line-height: 1.6;
}

.footer-creators {
    margin-top: 10px;
    font-weight: 400;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
    flex-wrap: wrap;
    gap: 4px;
}

.footer-creator-link {
    text-decoration: none;
    font-weight: 400;
    margin-left: 10px;
    display: inline-flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.85);
}

.footer-creator-link:hover { color: var(--accent-orange); }

.footer-li-icon {
    margin-left: 6px;
    font-size: 15px;
    vertical-align: middle;
}

.footer-separator {
    width: 20px;
    text-align: center;
    opacity: 0.8;
    pointer-events: none;
    color: #fff;
}

.footer-icon-img {
    width: 24px;
    height: 24px;
    display: block;
    filter: brightness(0) invert(1);
}

.pagination {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 30px;
    flex-wrap: wrap;
}

.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 6px;
    background: #edf2f7;
    color: var(--text-gray);
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    transition: background 0.2s, color 0.2s;
}

.page-link:hover  { background: var(--secondary-blue); color: #fff; }
.page-link.active { background: var(--primary-blue); color: #fff; pointer-events: none; }

.file-input-mt { margin-top: 5px; }
.file-input-mb { margin-bottom: 10px; }

.banner-image-wrap {
    cursor: pointer;
}

.banner-card-large {
    cursor: pointer;
}

/* Styly pro vstupní bránu archivu */
.archive-login-body {
    font-family: system-ui, -apple-system, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #f4f4f9;
    margin: 0;
    color: #333;
}

.archive-login-box {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 450px;
    width: 90%;
}

.archive-warning-badge {
    display: inline-block;
    background: #ffc107;
    color: #856404;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.archive-title {
    color: #d9534f;
    margin: 0 0 0.5rem 0;
    font-size: 1.6rem;
}

.archive-text {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.5;
    font-size: 0.95rem;
}

.archive-input {
    width: 100%;
    padding: 12px;
    margin-bottom: 1rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-sizing: border-box;
    font-size: 1rem;
}

.archive-btn {
    background: #2c3e50;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    cursor: pointer;
    width: 100%;
    font-size: 1rem;
    font-weight: bold;
    transition: background 0.2s;
}

.archive-btn:hover {
    background: #1a252f;
}

.archive-error-msg {
    color: white;
    background: #d9534f;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.archive-official-link {
    margin-top: 1.5rem;
    font-size: 0.9rem;
    border-top: 1px solid #eee;
    padding-top: 1rem;
    color: #777;
}

.archive-official-link a {
    color: #0066cc;
    text-decoration: none;
    font-weight: bold;
}

.archive-official-link a:hover {
    text-decoration: underline;
}

/* =========================================
   RESPONZIVNÍ MAPA (AKCE)
   ========================================= */
.interactive-map-wrapper {
    position: relative;
    width: 100%;
    max-width: 1200px; /* Zvětšeno z 900px na 1200px */
    margin: 0 auto 15px auto; 
    height: 550px; /* Zvětšeno pro lepší poměr stran */
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid var(--border-main);
    background: #f8f9fa;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05); 
}

.interactive-map-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    border: 0;
}

/* Úprava pro mobily a tablety */
@media (max-width: 768px) {
    .interactive-map-wrapper {
        height: 300px; 
        max-width: 100%;
    }
}

/* =========================================
   LEGENDA MAPY
   ========================================= */
.map-legend {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; 
    gap: 15px 30px; 
    
    width: 100%;
    max-width: 1200px; /* Zvětšeno z 900px, aby to ladilo s mapou */
    margin: 0 auto 30px auto; 
    
    padding: 12px 20px;
    background: #fff; 
    border-radius: 8px;
    border: 1px solid var(--border-main);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    box-sizing: border-box; 
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px; /* Trochu mensi pismo */
    font-weight: 600;
    color: var(--text-dark);
}

.legend-icon {
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Barvy ikonek */
.icon-akce {
    color: #ff9900;
    }

.icon-tabor {
    color: #22a456;
    
    }
.icon-klubovna{
    color: #007bff;
    }

.icon-vypravy {
    color: #bf00ff;
    }

/* =========================================
   ROVNOVÁHA OVLÁDÁNÍ (Filtr a Tlačítko)
   ========================================= */
.akce-controls-row {
    display: flex;
    justify-content: space-between; /* Rozhodi filtr doleva a tlacitko doprava */
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap; /* Pokud bude obrazovka moc uzka, posklada je pod sebe */
    gap: 15px;
}

/* Dulezite prepsani puvodniho nastaveni marginu pro filtr uvnitr noveho radku */
.akce-controls-row .akce-year-filter {
    margin: 0; 
}
.akce-controls-row .btn-add-new {
    margin: 0;
}

/* Obal pro tlačítka napravo v sekci akcí */
.akce-actions-right {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

/* Zajištění, aby tlačítko kalendáře ladilo s výškou ostatních prvků */
.akce-actions-right .btn {
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0 !important;
    /* Přepisuje margin z .btn-add-new */
}

@media (max-width: 768px) {
    .akce-actions-right {
        width: 100%;
    }

    .akce-actions-right .btn {
        flex: 1;
    }
}

/* --- KALENDÁŘ MODAL --- */
.calendar-wrapper {
    width: 100%;
    background: #fff;
    border-radius: 8px;
    border: 1px solid var(--border-main);
    padding: 15px;
    box-sizing: border-box;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.calendar-legend {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 13px;
    font-weight: bold;
    color: var(--text-gray);
}

.legend-color {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 4px;
    margin-right: 6px;
    vertical-align: middle;
}

/* Zvolené barvy: proběhlé (šedá), plánované (oranžová) */
.legend-past { background-color: #a0aec0; opacity: 0.8; }
.legend-future { background-color: var(--accent-orange); }

.calendar-grid {
    width: 100%;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-weight: 700;
    color: var(--secondary-blue);
    margin-bottom: 8px;
    font-size: 14px;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.calendar-day {
    min-height: 40px;
    border: 1px solid var(--border-main);
    border-radius: 6px;
    padding: 4px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    background: #f8fafc;
    overflow: hidden;
}

.calendar-day.empty {
    background: transparent;
    border-color: transparent;
}

.calendar-day.today {
    border-color: var(--secondary-blue);
    background: #ebf8ff;
    box-shadow: inset 0 0 0 1px var(--secondary-blue);
}

.day-number {
    font-weight: bold;
    font-size: 13px;
    color: var(--text-dark);
    align-self: flex-end;
    margin-bottom: 2px;
}

.calendar-event {
    font-size: 10.5px;
    padding: 3px 4px;
    border-radius: 4px;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

.calendar-event.past {
    background-color: #a0aec0;
}

.calendar-event.future {
    background-color: var(--accent-orange);
    font-weight: bold;
}

@media (max-width: 600px) {
    .calendar-day { min-height: 60px; }
    .calendar-event { font-size: 9px; padding: 2px; }
    .day-number { font-size: 11px; }
}

.calendar-event {
    font-size: 10.5px;
    padding: 3px 4px;
    border-radius: 4px;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
    cursor: pointer; /* <--- Přidáno pro kurzor ručičky */
    transition: filter 0.2s; /* <--- Efekt při najetí */
}

.calendar-event:hover {
    filter: brightness(1.15); /* Štítek se po najetí myší trochu rozsvítí */
}