/* ========== ZÁKLADNÍ NASTAVENÍ ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Lora', Georgia, 'Times New Roman', serif;
    background-color: #faf8f5;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23d4af37' fill-opacity='0.03'%3E%3Cpath d='M30 30l15-15v30l-15-15zm0 0l-15-15v30l15-15z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    color: #2c2416;
    line-height: 1.7;
    padding: 0;
}

/* ========== HEADER S KARUSELEM ========== */
.header {
    position: relative;
    height: 500px;
    overflow: hidden;
}

.carousel {
    position: relative;
    height: 100%;
}

.carousel-images {
    position: relative;
    height: 100%;
}

.carousel-images img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    transform: scale(1.05);
}

.carousel-images img.active {
    opacity: 1;
    transform: scale(1);
    transition: opacity 1.5s ease-in-out, transform 8s ease-out;
}

.header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(44, 24, 16, 0.2) 0%, rgba(44, 24, 16, 0.7) 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.header-overlay::before {
    content: '✝';
    font-size: 3rem;
    color: #d4af37;
    margin-bottom: 15px;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.5);
    animation: glow 3s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% { text-shadow: 0 2px 15px rgba(212, 175, 55, 0.5); }
    50% { text-shadow: 0 2px 25px rgba(212, 175, 55, 0.9), 0 0 40px rgba(212, 175, 55, 0.4); }
}

.header-overlay h1 {
    font-family: 'Cinzel', 'Times New Roman', serif;
    color: #fff;
    font-size: 3.5rem;
    font-weight: 600;
    text-shadow: 2px 2px 15px rgba(0, 0, 0, 0.8);
    text-align: center;
    padding: 0 20px;
    letter-spacing: 4px;
    margin-bottom: 10px;
}

.header-subtitle {
    font-family: 'Cinzel', serif;
    color: #d4af37;
    font-size: 2rem;
    letter-spacing: 8px;
    text-transform: uppercase;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5);
}

/* Navigační šipky karuselu */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(114, 47, 55, 0.7);
    border: 2px solid #d4af37;
    color: #d4af37;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn:hover {
    background: rgba(212, 175, 55, 0.9);
    color: #fff;
    transform: translateY(-50%) scale(1.1);
}

.carousel-prev {
    left: 20px;
}

.carousel-next {
    right: 20px;
}

/* Navigační tečky */
.carousel-dots {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid #d4af37;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot:hover {
    background: rgba(212, 175, 55, 0.7);
}

.dot.active {
    background: #d4af37;
    transform: scale(1.3);
}

/* ========== BOHOSLUŽBY CTA SEKCE ========== */
.bohosluzby-cta {
    background: linear-gradient(135deg, #722f37 0%, #4a1c20 100%);
    padding: 0;
    position: relative;
    overflow: hidden;
}

.bohosluzby-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20 20l10-10v20l-10-10zm0 0l-10-10v20l10-10z' fill='%23d4af37' fill-opacity='0.05'/%3E%3C/svg%3E");
    opacity: 0.5;
}

.bohosluzby-cta-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    padding: 25px 40px;
    position: relative;
    z-index: 1;
    flex-wrap: wrap;
}

.bohosluzby-icon {
    font-size: 3rem;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.bohosluzby-text {
    text-align: left;
}

.bohosluzby-text h2 {
    font-family: 'Cinzel', serif;
    color: #fff;
    font-size: 1.8rem;
    margin: 0 0 5px 0;
    letter-spacing: 2px;
}

.bohosluzby-text p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    font-size: 1rem;
}

.bohosluzby-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #d4af37;
    color: #2c1012;
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-family: 'Cinzel', serif;
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.4);
}

.bohosluzby-btn:hover {
    background: #fff;
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(212, 175, 55, 0.6);
}

.bohosluzby-btn svg {
    transition: transform 0.3s ease;
}

.bohosluzby-btn:hover svg {
    transform: translateX(5px);
}

/* ========== QUICK LINKS CARD ========== */
.quick-links-card {
    background: linear-gradient(135deg, #722f37 0%, #4a1c20 100%);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 8px 30px rgba(114, 47, 55, 0.3);
}

.quick-links-card h3 {
    font-family: 'Cinzel', serif;
    color: #d4af37;
    font-size: 1.3rem;
    text-align: center;
    margin-bottom: 20px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.quick-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin-bottom: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.quick-link:last-child {
    margin-bottom: 0;
}

.quick-link:hover {
    background: rgba(212, 175, 55, 0.2);
    border-left-color: #d4af37;
    transform: translateX(5px);
}

.quick-link-icon {
    font-size: 1.5rem;
}

.quick-link-text {
    color: #f5f0e6;
    font-weight: 500;
    font-size: 1rem;
}

/* ========== NAVIGACE ========== */
.navbar {
    background: linear-gradient(135deg, #722f37 0%, #4a1c20 100%);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.3);
    border-bottom: 3px solid #d4af37;
}

.nav-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.nav-links a {
    font-family: 'Cinzel', serif;
    color: #f5f0e6;
    text-decoration: none;
    padding: 18px 28px;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 1px;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: #d4af37;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-links a:hover {
    background-color: rgba(212, 175, 55, 0.15);
    color: #d4af37;
}

.nav-links a:hover::after {
    width: 60%;
}

/* Hamburger menu - skryté na desktopu */
.hamburger-check {
    display: none;
}

.hamburger-label {
    display: none;
    color: #d4af37;
    font-size: 2rem;
    cursor: pointer;
    padding: 12px 20px;
    transition: color 0.3s;
}

.hamburger-label:hover {
    color: #f5d67a;
}

/* ========== PROUŽEK ========== */
.prouzek {
    height: 4px;
    background: linear-gradient(90deg, #722f37, #d4af37, #722f37);
    box-shadow: 0 2px 8px rgba(114, 47, 55, 0.3);
}

/* ========== HLAVNÍ OBSAH ========== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.col-lg-8 {
    flex: 0 0 66.666667%;
    max-width: 66.666667%;
    padding: 0 15px;
}

.col-lg-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
    padding: 0 15px;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

.mt-4 {
    margin-top: 1.5rem;
}

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

/* ========== WELL BOX ========== */
.well {
    background: linear-gradient(to bottom, #ffffff 0%, #fdfcfa 100%);
    border-radius: 8px;
    padding: 35px;
    box-shadow: 0 4px 20px rgba(114, 47, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.2);
    position: relative;
}

.well::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #722f37, #d4af37, #722f37);
    border-radius: 8px 8px 0 0;
}

.well h2 {
    font-family: 'Cinzel', serif;
    color: #722f37;
    margin-bottom: 25px;
    font-size: 1.7rem;
    font-weight: 600;
    letter-spacing: 1px;
}

.lead {
    font-size: 1.1rem;
    color: #4a3f35;
    margin-bottom: 18px;
    line-height: 1.8;
}

.fw-bold {
    font-weight: 600;
    color: #722f37;
}

/* ========== TLAČÍTKA ========== */
.btn {
    font-family: 'Cinzel', serif;
    display: inline-block;
    padding: 14px 35px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.btn-outline-primary {
    color: #722f37;
    border: 2px solid #722f37;
    background: transparent;
    position: relative;
    overflow: hidden;
}

.btn-outline-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #722f37, #8b3a42);
    transition: left 0.3s ease;
    z-index: -1;
}

.btn-outline-primary:hover {
    color: #fff;
    border-color: #722f37;
}

.btn-outline-primary:hover::before {
    left: 0;
}

/* ========== AKTUALITY ========== */
.aktuality h2 {
    color: #722f37;
}

.list-group {
    list-style: none;
    padding: 0;
}

.list-group-item {
    padding: 18px 25px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.list-group-item:last-child {
    border-bottom: none;
}

.list-group-item:hover {
    background-color: rgba(212, 175, 55, 0.05);
    border-left-color: #d4af37;
    padding-left: 30px;
}

.list-group-item strong {
    color: #722f37;
    font-weight: 600;
}

/* ========== SPRÁVCE WEBU ========== */
.webmaster-section {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.webmaster-card {
    background: linear-gradient(145deg, #fdfcfa 0%, #f5f0e8 100%);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 12px;
    padding: 2rem 3rem;
    text-align: center;
    max-width: 450px;
    box-shadow: 0 4px 20px rgba(114, 47, 55, 0.08);
    position: relative;
    overflow: hidden;
}

.webmaster-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #722f37, #d4af37, #722f37);
}

.webmaster-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.webmaster-card h5 {
    font-family: 'Cinzel', serif;
    color: #722f37;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.webmaster-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2c2416;
    margin-bottom: 0.75rem;
}

.webmaster-contact {
    margin-bottom: 1rem;
}

.webmaster-contact .contact-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.webmaster-contact .contact-icon {
    font-size: 1rem;
}

.webmaster-contact a {
    color: #722f37;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.webmaster-contact a:hover {
    color: #d4af37;
}

.webmaster-note {
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px dashed rgba(212, 175, 55, 0.3);
}

/* ========== PATIČKA ========== */
footer {
    background: linear-gradient(135deg, #4a1c20 0%, #2c1012 100%);
    color: #f5f0e6;
    text-align: center;
    padding: 35px 20px;
    margin-top: 50px;
    border-top: 4px solid #d4af37;
    position: relative;
}

footer::before {
    content: '☧';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.8rem;
    color: #d4af37;
    background: #4a1c20;
    padding: 5px 15px;
    border-radius: 50%;
}

footer p {
    margin: 8px 0;
    font-size: 0.95rem;
}

footer a {
    color: #d4af37;
    text-decoration: none;
    transition: color 0.3s;
}

footer a:hover {
    color: #f5d67a;
    text-decoration: underline;
}

/* ========== NAVIGACE MEZI TÝDNY (BOHOSLUŽBY) ========== */
.navigace-tyden {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
    padding: 0 20px;
}

.btn-tyden {
    font-family: 'Cinzel', serif;
    background: linear-gradient(135deg, #722f37 0%, #4a1c20 100%);
    color: #f5f0e6;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    letter-spacing: 1px;
    transition: all 0.3s;
    border: 2px solid #d4af37;
}

.btn-tyden:hover {
    background: linear-gradient(135deg, #8b3a42 0%, #722f37 100%);
    color: #d4af37;
}

.aktualni-tyden {
    font-family: 'Cinzel', serif;
    font-size: 1.3em;
    font-weight: 600;
    text-align: center;
    color: #722f37;
}

.btn-tisk {
    font-family: 'Cinzel', serif;
    background: linear-gradient(135deg, #27ae60 0%, #1e8449 100%) !important;
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin: 0 20px 20px 20px;
    font-weight: 600;
    letter-spacing: 1px;
    transition: all 0.3s;
}

.btn-tisk:hover {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%) !important;
}

.btn-add {
    font-family: 'Cinzel', serif;
    display: inline-block;
    background: linear-gradient(135deg, #722f37 0%, #4a1c20 100%);
    color: #f5f0e6;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    margin: 20px;
    transition: all 0.3s;
    border: 2px solid #d4af37;
}

.btn-add:hover {
    background: linear-gradient(135deg, #8b3a42 0%, #722f37 100%);
    color: #d4af37;
}
.btn-word {
  display: inline-block;
  margin-left: 10px;
}

/* ========== TABULKA BOHOSLUŽEB ========== */
table {
    width: calc(100% - 40px);
    margin: 0 20px;
    border-collapse: collapse;
    border: 2px solid black;
    background-color: white;
}

th {
    background-color: white;
    color: black;
    padding: 12px;
    font-weight: bold;
    border: 1px solid black;
}

td {
    border: 1px solid black;
    padding: 10px;
    background-color: white;
}

tr.prvni-v-dni td {
    border-top: 2px solid black;
}

.den-bunka, .liturgie-bunka {
    border: 2px solid black;
    font-weight: bold;
    vertical-align: middle;
    text-align: center;
}

.den-bunka {
    width: 15%;
}

.liturgie-bunka {
    width: 30%;
}

.cas-misto-bunka, .intence-bunka {
    text-align: center;
    border: 1px solid black;
}

.cas-misto-bunka {
    width: 20%;
}

.intence-bunka {
    width: 35%;
}

tr.pokracovani-dne .cas-misto-bunka,
tr.pokracovani-dne .intence-bunka {
    border-top: none;
}

table tr:first-child th { border-top: 2px solid black; }
table tr td:first-child { border-left: 2px solid black; }
table tr td:last-child { border-right: 2px solid black; }
table tr:last-child td { border-bottom: 2px solid black; }

/* ========== TISK ========== */
@page {
    margin: 10mm;
    size: auto;
}

@media print {
    .btn-add, nav, .navbar, .prouzek, footer, button, .navigace-tyden, .btn-tisk, .btn-edit {
        display: none !important;
    }

    table {
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        border: 2px solid #000 !important;
    }

    th, td {
        background: white !important;
        color: black !important;
    }

    body {
        background-color: #fff !important;
        background-image: none !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    tr {
        page-break-inside: avoid;
    }

    tr.pokracovani-dne .cas-misto-bunka,
    tr.pokracovani-dne .intence-bunka {
        border-top: none !important;
    }
}

/* ========== RESPONZIVNÍ DESIGN ========== */
@media screen and (max-width: 992px) {
    .col-lg-8, .col-lg-4 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .bohosluzby-cta-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .bohosluzby-text {
        text-align: center;
    }
}

@media screen and (max-width: 768px) {
    .header {
        height: 350px;
    }

    .header-overlay h1 {
        font-size: 2rem;
        letter-spacing: 2px;
    }

    .header-subtitle {
        font-size: 1rem;
        letter-spacing: 4px;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .carousel-prev {
        left: 10px;
    }

    .carousel-next {
        right: 10px;
    }

    .bohosluzby-icon {
        font-size: 2.5rem;
    }

    .bohosluzby-text h2 {
        font-size: 1.5rem;
    }

    .bohosluzby-btn {
        padding: 12px 25px;
        font-size: 1rem;
    }

    /* Hamburger menu */
    .hamburger-label {
        display: block;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        background: linear-gradient(135deg, #722f37 0%, #4a1c20 100%);
    }

    .nav-links a {
        text-align: center;
        border-top: 1px solid rgba(212, 175, 55, 0.2);
    }

    .nav-links a::after {
        display: none;
    }

    .hamburger-check:checked ~ .nav-links {
        display: flex;
    }

    .well {
        padding: 20px;
    }

    .container {
        padding: 20px 15px;
    }

    th, td {
        padding: 8px 5px;
        font-size: 14px;
    }

    .den-bunka, .liturgie-bunka, .cas-misto-bunka, .intence-bunka {
        width: auto;
    }

    .navigace-tyden {
        flex-direction: column;
        text-align: center;
    }

    .btn-tyden {
        width: 100%;
        text-align: center;
    }

    .quick-links-card {
        margin-top: 20px;
    }
}

@media screen and (max-width: 480px) {
    .header {
        height: 280px;
    }

    .header-overlay h1 {
        font-size: 1.5rem;
    }

    .header-subtitle {
        font-size: 0.8rem;
        letter-spacing: 3px;
    }

    .header-overlay::before {
        font-size: 2rem;
    }

    .carousel-btn {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    .carousel-dots {
        bottom: 15px;
    }

    .dot {
        width: 10px;
        height: 10px;
    }

    .bohosluzby-cta-content {
        padding: 20px;
    }

    .bohosluzby-icon {
        font-size: 2rem;
    }

    .bohosluzby-text h2 {
        font-size: 1.3rem;
    }

    .bohosluzby-text p {
        font-size: 0.9rem;
    }

    .bohosluzby-btn {
        padding: 12px 20px;
        font-size: 0.9rem;
    }

    .quick-link {
        padding: 12px 15px;
    }

    .quick-link-icon {
        font-size: 1.2rem;
    }

    .quick-link-text {
        font-size: 0.9rem;
    }

    .well h2 {
        font-size: 1.4rem;
    }

    .lead {
        font-size: 1rem;
    }

    table {
        font-size: 12px;
        width: calc(100% - 20px);
        margin: 0 10px;
    }

    th, td {
        padding: 6px 4px;
    }

    th:nth-child(2),
    .liturgie-bunka {
        width: 20%;
    }

    .btn-add {
        display: block;
        width: calc(100% - 20px);
        text-align: center;
        margin: 10px;
        padding: 12px;
    }
}

/* ========== FORMULÁŘ PRO PŘIDÁNÍ/EDITACI BOHOSLUŽBY ========== */
.form-container {
    max-width: 600px;
    margin: 30px auto;
    background: linear-gradient(to bottom, #ffffff 0%, #fdfcfa 100%);
    padding: 35px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(114, 47, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.2);
    position: relative;
}

.form-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #722f37, #d4af37, #722f37);
    border-radius: 8px 8px 0 0;
}

.form-container h1 {
    font-family: 'Cinzel', serif;
    text-align: center;
    margin-bottom: 25px;
    color: #722f37;
    font-weight: 600;
}

.error-message {
    background-color: #f8d7da;
    color: #721c24;
    padding: 12px;
    border-radius: 5px;
    margin-bottom: 20px;
    text-align: center;
    border: 1px solid #f5c6cb;
}

.form-bohosluzba .form-group {
    margin-bottom: 20px;
}

.form-bohosluzba label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    color: #722f37;
}

.form-bohosluzba input,
.form-bohosluzba textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid rgba(212, 175, 55, 0.3);
    border-radius: 5px;
    font-size: 16px;
    font-family: 'Lora', Georgia, serif;
    box-sizing: border-box;
    transition: border-color 0.3s;
}

/* Date input má vlastní UI; sjednocení vzhledu napříč prohlížeči */
.form-bohosluzba input[type="date"] {
    -webkit-appearance: none;
    appearance: none;
    background-color: #fff;
    color: inherit;
}

.form-bohosluzba input[type="date"]::-webkit-datetime-edit,
.form-bohosluzba input[type="date"]::-webkit-datetime-edit-fields-wrapper,
.form-bohosluzba input[type="date"]::-webkit-datetime-edit-text,
.form-bohosluzba input[type="date"]::-webkit-datetime-edit-month-field,
.form-bohosluzba input[type="date"]::-webkit-datetime-edit-day-field,
.form-bohosluzba input[type="date"]::-webkit-datetime-edit-year-field {
    font-family: inherit;
    color: inherit;
}

.form-bohosluzba input[type="date"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
    opacity: 0.75;
}

.form-bohosluzba input:focus,
.form-bohosluzba textarea:focus {
    outline: none;
    border-color: #722f37;
}

.form-group-checkbox {
    display: inline-flex;
    align-items: left;
    gap: 10px;
    cursor: pointer;
}
.form-group-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: #722f37;
}
.form-group-checkbox span {
    transition: all 0.15s ease-in-out;
    padding: 2px 4px;
    border-radius: 4px;
}
.form-group-checkbox input[type="checkbox"]:checked + span {
    font-weight: 700;
    color: #2c2416;
    background: rgba(212, 175, 55, 0.18);
}

.form-bohosluzba .form-group-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.form-bohosluzba textarea {
    resize: vertical;
    min-height: 80px;
}

.form-buttons {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.btn-cancel {
    flex: 1;
    padding: 12px 20px;
    background: linear-gradient(135deg, #6c757d 0%, #545b62 100%);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    text-align: center;
    font-size: 16px;
    font-weight: bold;
    font-family: 'Cinzel', serif;
    transition: all 0.3s;
}

.btn-cancel:hover {
    background: linear-gradient(135deg, #7d868e 0%, #6c757d 100%);
}

.btn-submit {
    flex: 2;
    padding: 12px 20px;
    background: linear-gradient(135deg, #27ae60 0%, #1e8449 100%);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    font-family: 'Cinzel', serif;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-submit:hover {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
}

@media screen and (max-width: 480px) {
    .form-container {
        margin: 10px;
        padding: 20px;
    }

    .form-buttons {
        flex-direction: column;
    }

    .btn-cancel, .btn-submit {
        flex: none;
        width: 100%;
    }
}

/* ========== TLAČÍTKO EDITACE ========== */
.btn-edit {
    display: inline-block;
    margin-left: 8px;
    text-decoration: none;
    font-size: 14px;
    opacity: 0.6;
    transition: opacity 0.3s;
}

.btn-edit:hover {
    opacity: 1;
}

/* ========== TLAČÍTKO SMAZÁNÍ ========== */
.form-delete {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(212, 175, 55, 0.3);
}

.btn-delete {
    width: 100%;
    padding: 12px 20px;
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    font-family: 'Cinzel', serif;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-delete:hover {
    background: linear-gradient(135deg, #e74c3c 0%, #dc3545 100%);
}

/* ========== FOTOGALERIE ========== */
.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    padding: 20px 0;
}

.img-thumbnail {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.img-thumbnail:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Modal pro zvětšení obrázku */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(5px);
}

.modal.show {
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    max-width: 85%;
    max-height: 85vh;
    border-radius: 8px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5);
    animation: zoomIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    object-fit: contain;
}

@keyframes zoomIn {
    from { 
        transform: scale(0.7); 
        opacity: 0; 
    }
    to { 
        transform: scale(1); 
        opacity: 1; 
    }
}

.close {
    position: absolute;
    top: 25px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: white;
    font-size: 28px;
    font-weight: normal;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
    line-height: 1;
}

.close:hover {
    background-color: #e74c3c;
    border-color: #e74c3c;
    transform: rotate(90deg);
}

.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: white;
    font-size: 24px;
    cursor: pointer;
    user-select: none;
    transition: all 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-50%) scale(1.1);
    color: #d4af37;
}

.nav-btn.prev {
    left: 30px;
}

.nav-btn.next {
    right: 30px;
}

.modal-counter {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 14px;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 8px 20px;
    border-radius: 20px;
    letter-spacing: 2px;
}

/* ========== KONTAKTY ========== */
.my-5 {
    margin-top: 3rem;
    margin-bottom: 3rem;
}

.mb-5 {
    margin-bottom: 3rem;
}

.col-md-6 {
    flex: 0 0 50%;
    max-width: 50%;
    padding: 0 15px;
}

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

.card {
    background-color: white;
    border-radius: 15px;
    overflow: hidden;
}

.contact-card {
    transition: transform 0.3s, box-shadow 0.3s;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
}

.card-body {
    padding: 30px;
}

.card-title {
    font-size: 1.4rem;
    margin-bottom: 15px;
    font-weight: bold;
}

.card-title.text-primary {
    color: #722f37;
}

.card-title.text-success {
    color: #27ae60;
}

.card-text {
    margin-bottom: 10px;
}

.shadow-lg {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.shadow-sm {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.border-0 {
    border: none;
}

/* Tlačítka pro výběr farnosti */
.btn-parish-group {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin: 30px 0;
}

.btn-parish {
    font-family: 'Cinzel', serif;
    padding: 12px 30px;
    background-color: #faf8f5;
    border: 2px solid #722f37;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    color: #722f37;
}

.btn-parish:hover {
    background-color: #722f37;
    border-color: #722f37;
    color: white;
}

.btn-parish.active {
    background: linear-gradient(135deg, #722f37 0%, #4a1c20 100%);
    border-color: #d4af37;
    color: #f5f0e6;
}

.parish-card {
    animation: fadeIn 0.4s ease;
}

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

.d-none {
    display: none !important;
}

/* ========== TABULKA KNĚŽÍ ========== */
.container h2 {
    font-family: 'Cinzel', serif;
    text-align: center;
    color: #722f37;
    margin-bottom: 25px;
    font-size: 1.8rem;
}

.prihledna-tabulka {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 40px;
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(114, 47, 55, 0.1);
}

.prihledna-tabulka thead {
    background: linear-gradient(135deg, #722f37 0%, #4a1c20 100%);
    color: #f5f0e6;
}

.prihledna-tabulka th {
    padding: 15px 20px;
    text-align: left;
    font-weight: 600;
    font-family: 'Cinzel', serif;
}

.prihledna-tabulka td {
    padding: 12px 20px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.prihledna-tabulka tbody tr:hover {
    background-color: rgba(212, 175, 55, 0.05);
}

.prihledna-tabulka tbody tr:last-child td {
    border-bottom: none;
}

/* ========== RESPONZIVNÍ - FOTOGALERIE & KONTAKTY ========== */
@media screen and (max-width: 768px) {
    .image-gallery {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 15px;
    }

    .img-thumbnail {
        height: 180px;
    }

    .col-md-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .nav-btn {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }

    .nav-btn.prev {
        left: 15px;
    }

    .nav-btn.next {
        right: 15px;
    }

    .close {
        width: 40px;
        height: 40px;
        font-size: 22px;
        top: 15px;
        right: 15px;
    }

    .modal-content {
        max-width: 95%;
        max-height: 75vh;
    }

    .modal-counter {
        bottom: 20px;
        font-size: 12px;
        padding: 6px 15px;
    }

    .btn-parish {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .prihledna-tabulka th,
    .prihledna-tabulka td {
        padding: 10px 12px;
        font-size: 0.9rem;
    }
}

@media screen and (max-width: 480px) {
    .image-gallery {
        grid-template-columns: 1fr;
    }

    .img-thumbnail {
        height: 200px;
    }

    .btn-parish-group {
        flex-direction: column;
        align-items: center;
    }

    .btn-parish {
        width: 80%;
    }

    .nav-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .nav-btn.prev {
        left: 10px;
    }

    .nav-btn.next {
        right: 10px;
    }
}

/* ========== LOGIN STRÁNKA ========== */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #722f37 0%, #4a1c20 100%);
    padding: 20px;
}

.login-box {
    background: white;
    border-radius: 12px;
    padding: 40px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-cross {
    font-size: 3rem;
    color: #d4af37;
    display: block;
    margin-bottom: 15px;
}

.login-header h1 {
    font-family: 'Cinzel', serif;
    color: #722f37;
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.login-header p {
    color: #666;
    font-size: 0.95rem;
}

.login-form .form-group {
    margin-bottom: 20px;
}

.login-form label {
    display: block;
    margin-bottom: 8px;
    color: #722f37;
    font-weight: 600;
}

.login-form input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    font-family: 'Lora', serif;
    transition: border-color 0.3s;
}

.login-form input:focus {
    outline: none;
    border-color: #722f37;
}

.login-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #722f37 0%, #4a1c20 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(114, 47, 55, 0.4);
}

.back-link {
    display: block;
    text-align: center;
    margin-top: 20px;
    color: #722f37;
    text-decoration: none;
    font-size: 0.9rem;
}

.back-link:hover {
    text-decoration: underline;
}

/* ========== ADMINISTRACE ========== */
.admin-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(212, 175, 55, 0.3);
}

.admin-header h1 {
    font-family: 'Cinzel', serif;
    color: #722f37;
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.admin-header p {
    color: #666;
}

.admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.admin-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(212, 175, 55, 0.2);
    transition: all 0.3s;
}

.admin-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(114, 47, 55, 0.15);
}

.admin-card-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.admin-card h3 {
    font-family: 'Cinzel', serif;
    color: #722f37;
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.admin-card p {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.admin-card-actions {
    display: flex;
    gap: 10px;
}

.admin-btn {
    flex: 1;
    padding: 10px 15px;
    border-radius: 6px;
    text-decoration: none;
    text-align: center;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s;
    background: #f5f5f5;
    color: #333;
    border: 1px solid #ddd;
}

.admin-btn:hover {
    background: #eee;
}

.admin-btn-primary {
    background: linear-gradient(135deg, #722f37 0%, #4a1c20 100%);
    color: white;
    border: none;
}

.admin-btn-primary:hover {
    background: linear-gradient(135deg, #8b3a42 0%, #722f37 100%);
}

.admin-card-info {
    background: linear-gradient(135deg, #faf8f5 0%, #f5f0e6 100%);
    border-color: #d4af37;
}

.nav-logout {
    background: rgba(212, 175, 55, 0.2) !important;
    border-radius: 20px;
    margin-left: 10px;
}

.nav-logout:hover {
    background: rgba(212, 175, 55, 0.4) !important;
}

/* ========== ALERT ZPRÁVY ========== */
.alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 500;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* ========== FORMULÁŘOVÉ PRVKY ========== */
.admin-form .form-group {
    margin-bottom: 20px;
}

.admin-form label {
    display: block;
    font-weight: 600;
    color: #722f37;
    margin-bottom: 8px;
    font-family: 'Cinzel', serif;
}

.admin-form input[type="text"],
.admin-form input[type="date"],
.admin-form input[type="email"],
.admin-form input[type="password"],
.admin-form select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Lora', serif;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.admin-form input[type="date"] {
    -webkit-appearance: none;
    appearance: none;
    background-color: #fff;
    color: inherit;
}

.admin-form input[type="date"]::-webkit-datetime-edit,
.admin-form input[type="date"]::-webkit-datetime-edit-fields-wrapper,
.admin-form input[type="date"]::-webkit-datetime-edit-text,
.admin-form input[type="date"]::-webkit-datetime-edit-month-field,
.admin-form input[type="date"]::-webkit-datetime-edit-day-field,
.admin-form input[type="date"]::-webkit-datetime-edit-year-field {
    font-family: inherit;
    color: inherit;
}

.admin-form input[type="date"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
    opacity: 0.75;
}

.admin-form input:focus,
.admin-form select:focus {
    outline: none;
    border-color: #d4af37;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}

.form-hint {
    display: block;
    margin-top: 5px;
    font-size: 0.85rem;
    color: #888;
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.btn-primary {
    padding: 12px 30px;
    background: linear-gradient(135deg, #722f37 0%, #4a1c20 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Cinzel', serif;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #8b3a42 0%, #722f37 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(114, 47, 55, 0.3);
}

.btn-secondary {
    padding: 12px 30px;
    background: #f5f5f5;
    color: #333;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Cinzel', serif;
    display: inline-block;
    text-align: center;
}

.btn-secondary:hover {
    background: #eee;
    border-color: #ccc;
}

.btn-danger {
    padding: 12px 30px;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Cinzel', serif;
    display: inline-block;
}

.btn-danger:hover {
    background: #c82333;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
}

.btn-back {
    color: #722f37;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s;
}

.btn-back:hover {
    color: #d4af37;
}

/* Admin container pro úpravu uživatele */
.admin-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* ========== FOTOGALERIE ========== */
.galerie-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.galerie-header h2 {
    font-family: 'Cinzel', serif;
    color: #722f37;
    font-size: 2rem;
    margin: 0;
}

.galerie-empty {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.galerie-empty p {
    color: #666;
    font-size: 1.1rem;
}

.galerie-empty a {
    color: #722f37;
    font-weight: 600;
}

.galerie-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.galerie-item {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.galerie-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(114, 47, 55, 0.15);
}

.galerie-img-wrapper {
    position: relative;
    height: 220px;
    overflow: hidden;
    cursor: pointer;
}

.galerie-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.galerie-item:hover .galerie-img-wrapper img {
    transform: scale(1.05);
}

.galerie-info {
    padding: 20px;
}

.galerie-info h3 {
    font-family: 'Cinzel', serif;
    color: #722f37;
    font-size: 1.1rem;
    margin: 0 0 8px 0;
}

.galerie-popis {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 12px;
    line-height: 1.5;
}

.galerie-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #888;
    flex-wrap: wrap;
    gap: 10px;
}

.galerie-autor,
.galerie-datum {
    display: flex;
    align-items: center;
    gap: 5px;
}

.galerie-actions {
    padding: 0 20px 20px;
    border-top: 1px solid #eee;
    padding-top: 15px;
}

.btn-smazat {
    color: #dc3545;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.btn-smazat:hover {
    color: #a71d2a;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 20px;
}

.lightbox img {
    max-width: 90%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 3rem;
    color: white;
    cursor: pointer;
    transition: color 0.3s;
}

.lightbox-close:hover {
    color: #d4af37;
}

#lightbox-caption {
    color: white;
    font-family: 'Cinzel', serif;
    font-size: 1.2rem;
    margin-top: 20px;
    text-align: center;
}

/* Upload forma */
.upload-area {
    position: relative;
    border: 2px dashed #d4af37;
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    background: #faf8f5;
    transition: all 0.3s;
    cursor: pointer;
}

.upload-area:hover,
.upload-area.dragover {
    border-color: #722f37;
    background: #fff;
}

.upload-area input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.upload-placeholder {
    pointer-events: none;
}

.upload-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 15px;
}

.upload-placeholder p {
    color: #722f37;
    font-weight: 600;
    margin-bottom: 5px;
}

.upload-placeholder small {
    color: #888;
}

.upload-preview {
    pointer-events: none;
}

.upload-preview img {
    max-width: 200px;
    max-height: 150px;
    border-radius: 8px;
    margin-bottom: 10px;
}

.upload-preview p {
    color: #666;
    font-size: 0.9rem;
}

.admin-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Lora', serif;
    resize: vertical;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.admin-form textarea:focus {
    outline: none;
    border-color: #d4af37;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}

/* Nav admin link */
.nav-admin {
    background: rgba(212, 175, 55, 0.2) !important;
    border-radius: 20px;
}

.nav-admin:hover {
    background: rgba(212, 175, 55, 0.4) !important;
}

/* ========== ALBA ========== */
.alba-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.album-card {
    display: block;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
    border: 1px solid rgba(212, 175, 55, 0.2);
    text-decoration: none;
    color: inherit;
    position: relative;
}

.album-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(114, 47, 55, 0.15);
}

.album-cover {
    position: relative;
    height: 200px;
    background: #f5f0e6;
    overflow: hidden;
}

.album-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.album-card:hover .album-cover img {
    transform: scale(1.05);
}

.album-no-cover {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: #d4af37;
}

.album-count {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
}

/* Externí album karta */
.album-card.album-external {
    border: 2px solid #d4af37;
}

.album-card.album-external .album-count {
    background: #d4af37;
    color: #2c2416;
}

.album-card.album-external::after {
    content: '↗';
    position: absolute;
    top: 10px;
    right: 10px;
    background: #d4af37;
    color: #2c2416;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
}

/* Externí odkaz v detailu alba */
.album-external-link {
    margin: 15px 0;
}

.album-external-link a {
    color: #d4af37;
    text-decoration: none;
    font-weight: 600;
    padding: 8px 16px;
    border: 2px solid #d4af37;
    border-radius: 5px;
    display: inline-block;
    transition: all 0.3s ease;
}

.album-external-link a:hover {
    background: #d4af37;
    color: #2c2416;
}

.album-info {
    padding: 20px;
}

.album-info h3 {
    font-family: 'Cinzel', serif;
    color: #722f37;
    font-size: 1.1rem;
    margin: 0 0 8px 0;
}

.album-datum,
.album-autor {
    color: #888;
    font-size: 0.9rem;
    margin: 0;
}

/* Album detail header */
.album-header {
    margin-bottom: 30px;
}

.album-title {
    margin: 20px 0;
}

.album-title h1 {
    font-family: 'Cinzel', serif;
    color: #722f37;
    font-size: 2rem;
    margin: 0 0 10px 0;
}

.album-date {
    color: #d4af37;
    font-size: 1.1rem;
    margin: 0 0 10px 0;
}

.album-desc {
    color: #666;
    margin: 0 0 10px 0;
    line-height: 1.6;
}

.album-meta {
    color: #888;
    font-size: 0.9rem;
}

.album-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-edit {
    padding: 10px 20px;
    background: #f5f5f5;
    color: #333;
    border: 2px solid #ddd;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-edit:hover {
    background: #eee;
    border-color: #ccc;
}

.btn-edit-small {
    color: #722f37;
    text-decoration: none;
    font-size: 0.9rem;
    margin-right: 15px;
    transition: color 0.3s;
}

.btn-edit-small:hover {
    color: #d4af37;
}

/* Lightbox vylepšení */
.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    font-size: 2rem;
    padding: 20px 15px;
    cursor: pointer;
    transition: background 0.3s;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

#lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 1rem;
    background: rgba(0, 0, 0, 0.5);
    padding: 5px 15px;
    border-radius: 20px;
}

/* Upload preview grid */
.upload-preview-grid {
    display: none;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
    margin-top: 20px;
}

.preview-item {
    text-align: center;
}

.preview-item img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}

.preview-item span {
    display: block;
    font-size: 0.75rem;
    color: #666;
    margin-top: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.album-name-info {
    margin-bottom: 20px;
    padding: 15px;
    background: #f5f0e6;
    border-radius: 8px;
    border-left: 4px solid #d4af37;
}

/* Edit foto layout */
.edit-foto-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: start;
}

.edit-foto-preview img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .edit-foto-layout {
        grid-template-columns: 1fr;
    }
}

/* ========== AKTUALITY ========== */
.aktuality-section {
    margin-bottom: 40px;
}

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

.aktuality-header h2 {
    font-family: 'Cinzel', serif;
    color: #722f37;
    font-size: 1.8rem;
    margin: 0;
}

.aktuality-empty {
    text-align: center;
    padding: 40px 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    color: #888;
}

.aktuality-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.aktualita-card {
    display: flex;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(212, 175, 55, 0.2);
    transition: all 0.3s;
    position: relative;
}

.aktualita-card:hover {
    transform: translateX(5px);
    box-shadow: 0 6px 25px rgba(114, 47, 55, 0.12);
}

.aktualita-dulezita {
    border-left: 4px solid #d4af37;
    background: linear-gradient(to right, #fffef5, white);
}

.aktualita-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #d4af37;
    color: #4a1c20;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.aktualita-datum {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 80px;
    padding: 20px;
    background: linear-gradient(135deg, #722f37 0%, #4a1c20 100%);
    color: white;
}

.datum-den {
    font-size: 2rem;
    font-weight: 700;
    font-family: 'Cinzel', serif;
    line-height: 1;
}

.datum-mesic {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 5px;
}

.datum-rok {
    font-size: 0.8rem;
    opacity: 0.8;
    margin-top: 3px;
}

.aktualita-obsah {
    flex: 1;
    padding: 20px;
}

.aktualita-obsah h3 {
    font-family: 'Cinzel', serif;
    color: #722f37;
    font-size: 1.2rem;
    margin: 0 0 10px 0;
}

.aktualita-obsah p {
    color: #555;
    margin: 0;
    line-height: 1.6;
}

.aktualita-text {
    color: #555;
    line-height: 1.6;
}

.aktualita-text p,
.aktualita-text ul,
.aktualita-text ol,
.aktualita-text blockquote,
.aktualita-text h2,
.aktualita-text h3,
.aktualita-text h4 {
    margin: 0 0 12px 0;
}

.aktualita-text ul,
.aktualita-text ol {
    padding-left: 22px;
}

.aktualita-text a {
    color: #722f37;
    text-decoration: underline;
}

/* Tlačítko externího odkazu u aktualit */
.btn-externi-odkaz {
    display: inline-block;
    margin-top: 12px;
    padding: 8px 16px;
    background: #d4af37;
    color: #2c2416;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.btn-externi-odkaz:hover {
    background: #722f37;
    color: white;
}

.aktualita-meta {
    margin-top: 10px;
    font-size: 0.85rem;
    color: #888;
}

.aktualita-actions {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.aktuality-footer {
    text-align: center;
    margin-top: 25px;
}

.btn-vice {
    color: #722f37;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s;
}

.btn-vice:hover {
    color: #d4af37;
}

/* Header menší pro podstránky */
.header-small {
    height: 200px;
    background: linear-gradient(135deg, #722f37 0%, #4a1c20 100%);
}

.header-small .header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.header-small h1 {
    font-size: 2.5rem;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* Checkbox styling */
.checkbox-group {
    margin-bottom: 15px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-weight: 500;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #722f37;
}

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

@media (max-width: 600px) {
    .galerie-grid,
    .alba-grid {
        grid-template-columns: 1fr;
    }
    
    .galerie-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .lightbox-prev,
    .lightbox-next {
        padding: 15px 10px;
        font-size: 1.5rem;
    }
    
    .aktualita-card {
        flex-direction: column;
    }
    
    .aktualita-datum {
        flex-direction: row;
        gap: 10px;
        min-width: auto;
        padding: 15px;
    }
    
    .datum-mesic {
        margin-top: 0;
    }
    
    .aktuality-header {
        flex-direction: column;
        align-items: flex-start;
    }
}
.cas-misto-zvyraznit { font-weight: 700; }
.cas-misto-zvyraznit .btn-edit { font-weight: normal; }

.nav-dropdown {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-dropdown summary {
  list-style: none;
  cursor: pointer;
  font-family: 'Cinzel', serif;
  color: #f5f0e6;
  padding: 18px 28px;
  transition: all 0.3s ease;
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 1px;
  user-select: none;
}

.nav-dropdown summary::-webkit-details-marker { display: none; }

.nav-dropdown summary:hover {
  background-color: rgba(212, 175, 55, 0.15);
  color: #d4af37;
}

.nav-dropdown[open] summary {
  color: #d4af37;
}

.nav-dropdown-content {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: linear-gradient(135deg, #722f37 0%, #4a1c20 100%);
  border: 2px solid rgba(212, 175, 55, 0.35);
  border-radius: 12px;
  box-shadow: 0 10px 35px rgba(0,0,0,0.35);
  padding: 10px;
  z-index: 2000;
}

.nav-dropdown-content a {
  display: block;
  padding: 12px 14px;
  border-radius: 10px;
  color: #f5f0e6;
  text-decoration: none;
  transition: all 0.25s ease;
  border-left: 3px solid transparent;
}

.nav-dropdown-content a:hover {
  background: rgba(212, 175, 55, 0.2);
  border-left-color: #d4af37;
  color: #d4af37;
}

@media screen and (max-width: 768px) {
  .nav-dropdown {
    width: 100%;
  }

  .nav-dropdown summary {
    width: 100%;
    text-align: center;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
  }

  .nav-dropdown-content {
    position: static;
    border-radius: 0;
    border-left: none;
    border-right: none;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    box-shadow: none;
    padding: 0;
  }

  .nav-dropdown-content a {
    text-align: center;
    border-left: none;
    border-top: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: 0;
    padding: 14px 10px;
  }
}

/* ========== FARNOSt: ZÁLOŽKY + OBSAH ========== */
.parish-page {
  max-width: 1000px;
  margin: 0 auto;
}

.parish-hero {
  text-align: center;
  margin: 35px auto 18px auto;
  padding: 0 15px;
}

.parish-hero h2 {
  font-family: 'Cinzel', serif;
  font-size: 2.2rem;
  color: #722f37;
  letter-spacing: 2px;
  margin-bottom: 8px;
}

.parish-subtitle {
  font-family: 'Lora', Georgia, serif;
  color: #4a3f35;
  font-size: 1.05rem;
  margin-bottom: 18px;
}

.parish-divider {
  height: 2px;
  width: 65%;
  margin: 0 auto 18px auto;
  background: linear-gradient(90deg, transparent, rgba(212,175,55,0.75), transparent);
}

/* TAB BAR */
.parish-tabs {
  display: inline-flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  border-bottom: 2px solid rgba(212,175,55,0.35);
  padding-bottom: 10px;
}

.parish-tab {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border: 1px solid rgba(114,47,55,0.25);
  border-bottom: none;
  border-radius: 10px 10px 0 0;
  background: linear-gradient(to bottom, #ffffff 0%, #fdfcfa 100%);
  color: #4a1c20;
  text-decoration: none;
  font-family: 'Cinzel', serif;
  font-weight: 600;
  letter-spacing: 0.6px;
  box-shadow: 0 6px 18px rgba(114, 47, 55, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.parish-tab .tab-icon {
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(212,175,55,0.18);
  border: 1px solid rgba(212,175,55,0.35);
  font-size: 16px;
}

.parish-tab:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(114, 47, 55, 0.14);
}

.parish-tab.active {
  background: linear-gradient(135deg, #722f37 0%, #4a1c20 100%);
  color: #f5f0e6;
  border-color: rgba(212,175,55,0.65);
  box-shadow: 0 10px 28px rgba(114, 47, 55, 0.22);
  position: relative;
}

.parish-tab.active .tab-icon {
  background: rgba(212,175,55,0.95);
  border-color: rgba(212,175,55,0.95);
  color: #2c1012;
}

/* CONTENT BOX */
.parish-content {
  background: linear-gradient(to bottom, #ffffff 0%, #fdfcfa 100%);
  border: 1px solid rgba(212,175,55,0.25);
  border-radius: 0 12px 12px 12px;
  box-shadow: 0 8px 30px rgba(114,47,55,0.10);
  padding: 26px 26px;
  margin: 0 auto 30px auto;
  position: relative;
}

.parish-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  border-radius: 0 12px 0 0;
  background: linear-gradient(90deg, #722f37, #d4af37, #722f37);
}

.parish-section h3 {
  font-family: 'Cinzel', serif;
  color: #722f37;
  font-size: 1.5rem;
  margin: 6px 0 14px 0;
  letter-spacing: 1px;
}

.parish-section p {
  color: #4a3f35;
  line-height: 1.8;
  font-size: 1.05rem;
}

/* responsivita */
@media (max-width: 768px) {
  .parish-hero h2 { font-size: 1.7rem; }
  .parish-divider { width: 90%; }
  .parish-content { padding: 18px; }
  .parish-tab { padding: 10px 12px; font-size: 0.95rem; }
  .parish-tab .tab-icon { width: 26px; height: 26px; }
}
/* ========== DROPDOWN NAVIGACE ========== */
.nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.nav-dropdown {
    position: relative;
    display: inline-block;
}

.nav-dropbtn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Cinzel', serif;
    color: #f5f0e6;
    text-decoration: none;
    padding: 18px 28px;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.nav-dropbtn .caret {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
    color: #d4af37;
}

.nav-dropbtn:hover {
    background-color: rgba(212, 175, 55, 0.15);
    color: #d4af37;
}

/* Menu, které se vysune */
.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    min-width: 200px;
    background: linear-gradient(135deg, #722f37 0%, #4a1c20 100%);
    border: 2px solid #d4af37;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 2000;
    padding: 8px 0;
}

/* Odkazy uvnitř dropdownu */
.nav-dropdown-menu a {
    display: block;
    color: #f5f0e6 !important;
    padding: 12px 20px !important;
    font-size: 0.9rem !important;
    text-align: center;
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
    transition: background 0.2s ease;
}

.nav-dropdown-menu a:last-child {
    border-bottom: none;
}

.nav-dropdown-menu a:hover {
    background-color: rgba(212, 175, 55, 0.2);
    color: #d4af37 !important;
}

@media screen and (min-width: 769px) {
    .nav-dropdown:hover .nav-dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) translateY(0);
    }
    
    .nav-dropdown:hover .nav-dropbtn .caret {
        transform: rotate(180deg);
    }
}

/* Mobilní verze navigace */
@media screen and (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        background: linear-gradient(135deg, #722f37 0%, #4a1c20 100%);
    }

    .hamburger-check:checked ~ .nav-links {
        display: flex;
    }

    .nav-dropdown {
        width: 100%;
    }

    .nav-dropbtn {
        width: 100%;
        justify-content: center;
        border-top: 1px solid rgba(212, 175, 55, 0.2);
    }

    .nav-dropdown-menu {
        position: static;
        transform: none;
        width: 100%;
        opacity: 1;
        visibility: visible;
        display: none; 
        border: none;
        background: rgba(0, 0, 0, 0.2);
        box-shadow: none;
        border-radius: 0;
    }

    #nav-farnosti-toggle:checked ~ .nav-dropdown-menu {
        display: block;
    }

    #nav-farnosti-toggle:checked ~ .nav-dropbtn .caret {
        transform: rotate(180deg);
    }
}

.nav-links a.active, .nav-dropbtn.active {
    color: #d4af37;
    background-color: rgba(212, 175, 55, 0.1);
}

.nav-links a.active::after {
    width: 60%;
}
/* ========== ROZCESTNÍK FARNOSTÍ (KARTY) ========== */
.farnosti-rozcestnik {
    padding: 40px 0;
    background-color: #fff;
}

.farnosti-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.farnost-karta {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 30px 20px;
    background: #faf8f5;
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 12px;
    text-decoration: none;
    color: #2c2416;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    position: relative;
}

.farnost-karta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #722f37, #d4af37, #722f37);
    border-radius: 12px 12px 0 0;
}

.farnost-karta:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(114, 47, 55, 0.15);
    border-color: #d4af37;
}

.karta-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.farnost-karta h3 {
    font-family: 'Cinzel', serif;
    color: #722f37;
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.farnost-karta p {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 20px;
    flex-grow: 1;
}

.karta-btn {
    display: inline-block;
    padding: 10px 20px;
    background: #722f37;
    color: #fff;
    border-radius: 50px;
    font-family: 'Cinzel', serif;
    font-size: 0.8rem;
    letter-spacing: 1px;
    transition: background 0.3s;
}

.farnost-karta:hover .karta-btn {
    background: #d4af37;
    color: #2c1012;
}

/* RESPONZIVITA - na mobilu pod sebou */
@media screen and (max-width: 992px) {
    .farnosti-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }
}
@media screen and (max-width: 768px) {
    .container.admin-edit-page {
        padding: 10px 5px;
        width: 100%;
    }

    .well {
        padding: 15px 10px;
        border-radius: 0; 
        border-left: none;
        border-right: none;
    }

    .admin-form h3 {
        font-size: 1.2rem;
        margin-bottom: 15px;
    }

    .tox-tinymce {
        border-radius: 8px !important;
        border: 2px solid rgba(212, 175, 55, 0.4) !important;
    }

    .btn-primary.full-width {
        padding: 18px;
        font-size: 1.1rem;
        position: sticky;
        bottom: 10px;
        z-index: 100;
        box-shadow: 0 -5px 15px rgba(0,0,0,0.2);
    }
}
@media screen and (max-width: 768px) {
    html {
        font-size: 110%; 
    }

    .container.admin-edit-page {
        width: 100% !important;
        padding: 10px !important;
        margin: 0 !important;
    }

    .well {
        padding: 15px 10px !important;
        border-radius: 5px !important;
        box-shadow: none !important;
    }

    .admin-form h3 {
        font-size: 1.4rem !important;
        border-bottom: 2px solid #d4af37;
        padding-bottom: 5px;
    }

    .admin-form label {
        font-size: 1.1rem !important;
        margin-top: 10px;
    }

    .admin-form input[type="text"], 
    .admin-form select {
        height: 50px !important; 
        font-size: 1.1rem !important;
    }

    .tox-tinymce {
        height: 550px !important;
        border: 2px solid #d4af37 !important;
    }

    .btn-primary.full-width {
        display: block;
        width: 100%;
        padding: 20px !important;
        font-size: 1.2rem !important;
        text-transform: uppercase;
        margin-top: 20px;
    }

    .prihledna-tabulka, 
    .prihledna-tabulka thead, 
    .prihledna-tabulka tbody, 
    .prihledna-tabulka th, 
    .prihledna-tabulka td, 
    .prihledna-tabulka tr { 
        display: block; 
    }

    .prihledna-tabulka thead { display: none; } 

    .prihledna-tabulka tr {
        margin-bottom: 15px;
        border: 1px solid #d4af37;
        background: #fff;
        padding: 10px;
    }

    .prihledna-tabulka td {
        text-align: left;
        padding: 8px 5px;
        border: none;
        border-bottom: 1px solid #eee;
    }

    .prihledna-tabulka td::before {
        content: attr(data-label); 
        font-weight: bold;
        color: #722f37;
        display: inline-block;
        width: 100px;
    }
}
/* ========== DESIGN TABULKY PRO VEŘEJNOST ========== */
.prihledna-tabulka {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 20px 0;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(114, 47, 55, 0.08);
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.prihledna-tabulka thead {
    background: linear-gradient(135deg, #722f37 0%, #4a1c20 100%);
    color: #f5f0e6;
}

.prihledna-tabulka th {
    padding: 16px 20px;
    text-align: left;
    font-family: 'Cinzel', serif;
    font-weight: 600;
    letter-spacing: 1px;
    border-bottom: 2px solid #d4af37;
}

.prihledna-tabulka td {
    padding: 14px 20px;
    border-bottom: 1px solid #f0efeb;
    color: #4a3f35;
    transition: background 0.3s ease;
}

.prihledna-tabulka tr:last-child td {
    border-bottom: none;
}

.prihledna-tabulka tbody tr:hover td {
    background-color: rgba(212, 175, 55, 0.05);
}

@media screen and (max-width: 768px) {
    .prihledna-tabulka {
        border: none;
        box-shadow: none;
        background: transparent;
    }

    .prihledna-tabulka thead {
        display: none; 
    }

    .prihledna-tabulka, .prihledna-tabulka tbody, .prihledna-tabulka tr, .prihledna-tabulka td {
        display: block;
        width: 100%;
    }

    .prihledna-tabulka tr {
        background: #fff;
        margin-bottom: 15px;
        border-radius: 12px;
        border: 1px solid rgba(212, 175, 55, 0.3);
        box-shadow: 0 4px 10px rgba(0,0,0,0.05);
        overflow: hidden;
    }

    .prihledna-tabulka td {
        text-align: right;
        padding: 12px 15px;
        position: relative;
        border-bottom: 1px solid #f0efeb;
    }

    .prihledna-tabulka td:last-child {
        border-bottom: none;
        background: #faf8f5; 
    }

    .prihledna-tabulka td::before {
        content: attr(data-label);
        position: absolute;
        left: 15px;
        width: 45%;
        text-align: left;
        font-weight: 700;
        font-family: 'Cinzel', serif;
        color: #722f37;
    }
    
    .prihledna-tabulka td strong {
        color: #722f37;
        font-size: 1.1rem;
    }
}
@media screen and (max-width: 768px) {
    .admin-card div[style*="display:grid"] {
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
        height: auto !important;
    }

    .admin-card div[style*="display:grid"] > div:first-child {
        width: 100% !important;
    }

    .admin-card div[style*="display:grid"] img {
        width: 100% !important;
        height: 180px !important; 
        object-fit: cover;
    }

    .admin-card div[style*="display:grid"] > div:last-child {
        width: 100% !important;
    }

    .admin-card div[style*="display:flex"] {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 15px !important;
    }

    .admin-card input[type="text"], 
    .admin-card input[type="number"] {
        width: 100% !important;
        height: 45px !important; 
    }

    .btn-danger {
        width: 100% !important;
        margin-top: 10px;
    }
}

.quick-links-card .navstevnost-box{
    margin-top:20px;
    padding:14px 16px;
    background:rgba(0,0,0,0.25);
    border-radius:10px;
    border:1px solid rgba(255,255,255,0.2);
}

.quick-links-card .navstevnost-box h4{
    color:#f5f0e6 !important;
    margin-bottom:8px;
    font-size:1rem;
}

.quick-links-card .navstevnost-box p{
    color:#ffffff !important;
    margin:4px 0;
    font-size:0.95rem;
}

.quick-links-card .navstevnost-box strong{
    color:#d4af37;
}

.table-responsive-knezi{
    width:100%;
    overflow-x:auto;
    -webkit-overflow-scrolling:touch;
}

@media screen and (max-width: 768px) {
    .table-responsive-knezi .prihledna-tabulka-knezi{
        display:table !important;
        width:100% !important;
        min-width:520px;
        background:#fff;
        border:1px solid rgba(212, 175, 55, 0.3);
        box-shadow:0 4px 15px rgba(114, 47, 55, 0.08);
    }

    .table-responsive-knezi .prihledna-tabulka-knezi thead{
        display:table-header-group !important;
    }

    .table-responsive-knezi .prihledna-tabulka-knezi tbody{
        display:table-row-group !important;
    }

    .table-responsive-knezi .prihledna-tabulka-knezi tr{
        display:table-row !important;
        margin:0 !important;
        border:none !important;
        box-shadow:none !important;
        background:transparent !important;
    }

    .table-responsive-knezi .prihledna-tabulka-knezi th,
    .table-responsive-knezi .prihledna-tabulka-knezi td{
        display:table-cell !important;
        width:auto !important;
        position:static !important;
        text-align:left !important;
        vertical-align:top;
        padding:10px 12px !important;
        font-size:0.92rem;
        border-bottom:1px solid #f0efeb !important;
    }

    .table-responsive-knezi .prihledna-tabulka-knezi th{
        white-space:nowrap;
    }

    .table-responsive-knezi .prihledna-tabulka-knezi td::before{
        content:none !important;
    }

    .table-responsive-knezi .prihledna-tabulka-knezi td:last-child{
        background:transparent !important;
    }

    .table-responsive-knezi .prihledna-tabulka-knezi tr:last-child td{
        border-bottom:none !important;
    }

    .table-responsive-knezi .prihledna-tabulka-knezi td strong{
        font-size:1rem;
        color:#722f37;
    }
}
