#videoReferenceModal .modal-window {
        height: auto !important;
        min-height: auto !important;
    }

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}
.modal-overlay.active {
    display: flex;
}
.modal-window {
    position: relative;
    width: 95%;
    max-width: 1090px;
    height: 90vh;
    max-height: 90vh;
    overflow-y: auto;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transform: translateY(-100vh);
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.modal-overlay.active .modal-window {
    transform: translateY(0);
}

.modal-window iframe {
    width: 100%;
    height: 100%;
    border: none;
    flex-grow: 1;
}

.modal-close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 30px;
    color: #333;
    background: #f8f9fa;
    border: 1px solid #ccc;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.modal-close-btn:hover {
    background: #dc3545;
    color: white;
    border-color: #dc3545;
}




        .cenik-wrapper {
            max-width: 1000px;
            margin: 20px auto;
            overflow-x: auto;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
            border-radius: 8px;
        }

        .cenik-tabulka {
            width: 100%;
            border-collapse: collapse;
            background-color: #ffffff;
            text-align: center;
            min-width: 700px;
        }

        .cenik-tabulka th, 
        .cenik-tabulka td {
            padding: 15px;
            border: 1px solid #ededed;
        }


        .cenik-tabulka th strong {
            text-color:#ffffff;
            font-size: .8em;
        }


        .cenik-tabulka thead th {
            background-color: #f8fafc;
            color: #585858;
            font-size: 1.1rem;
            font-weight: 600;
            text-transform: uppercase;
        }

        /* První sloupec (názvy parametrů) zarovnaný doleva */
        .cenik-tabulka tbody td:first-child {
            text-align: left;
            font-weight: 500;
            color: #494949;
            width: 20%;
        }



        /* Oddělovací nadpisy sekcí (Délka, Rozlišení, Styl) */
        .sekce-nadpis td {
            background-color: #f1f5f9;
            font-weight: bold;
            color: #475569;
            text-align: left !important;
            padding-top: 15px;
            padding-bottom: 15px;
        }

        /* Vzhled textu pro nedostupné a "v ceně" položky */
        .nedostupne {
            color: #cbd5e1;
            font-weight: normal;
        }

        .v-cene {
            color: #dc3545;
            font-weight: 600;
        }

        .priplatek {
            color: #475569;
        }

        /* Zvýraznění řádku po přejetí myší */
        .cenik-tabulka tbody tr:not(.sekce-nadpis):hover {
            background-color: #f8fafc;
            transition: background-color 0.2s ease;
        }




/* CSS Tooltip pro detaily balíčku */
.info-tooltip {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin-left: 6px;
    cursor: help;
    vertical-align: middle;
}
.info-tooltip .tooltip-icon {
    background: #e5e7eb;
    color: #4b5563;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: bold;
    font-family: monospace;
    transition: all 0.2s;
}
.info-tooltip:hover .tooltip-icon {
    background: #cc2e49;
    color: #fff;
}
.info-tooltip .tooltip-content {
    visibility: hidden;
    width: max-content;
    max-width: 320px;
    background-color: #1f2937;
    color: #fff;
    text-align: left;
    border-radius: 8px;
    padding: 12px;
    position: absolute;
    z-index: 10;
    bottom: 140%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
    font-size: 0.85rem;
    font-weight: 400;
    line-height: 1.6;
    box-shadow: 0 4px 6px rgba(0,0,0,0.15);
    pointer-events: none;
}
.info-tooltip .tooltip-content::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -6px;
    border-width: 6px;
    border-style: solid;
    border-color: #1f2937 transparent transparent transparent;
}
.info-tooltip:hover .tooltip-content {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}