.modal {
    display: none; 
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85); 
    justify-content: center;
    align-items: center;
}

.modal-obsah-wrapper {
    position: relative;
    background: #fff;
    width: 90%;
    max-width: 1000px; 
    border-radius: 12px;
    overflow: hidden; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.modal-layout {
    display: flex;
    flex-direction: row; 
    min-height: 450px;
}

.modal-vlevo {
    flex: 1.3; 
    background: var(--barva-pozadi-seda);
}

.modal-vlevo img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover; 
}

.modal-vpravo {
    flex: 1;
    padding: 35px;
    display: flex;
    flex-direction: column;
    justify-content: space-between; 
    background: #ffffff;
}

.modal-texty h2 {
    margin-top: 0;
    font-size: var(--nadpis-h2);
    color: var(--barva-nadpisu);
    border-bottom: 2px solid var(--barva-hlavni); 
    padding-bottom: 10px;
}

#modal-detaily {
    font-size: var(--text-stredni);
    color: var(--barva-textu);
    margin-top: 20px;
}

.btn-akce {
    display: block;
    width: 100%;
    padding: 15px;
    background-color: var(--barva-hlavni); 
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-family: var(--font-text);
    font-size: var(--text-stredni);
    font-weight: var(--tloustka-tucne);
    transition: background-color 0.3s;
}

.btn-akce:hover {
    background-color: var(--barva-hlavni-hover); 
}

.zavrit-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    color: var(--barva-hlavni); 
    background-color: rgba(255, 255, 255, 0.9); 
    width: 40px;
    height: 40px;
    border-radius: 50%; 
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    font-weight: var(--tloustka-tucne);
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15); 
    transition: background-color 0.3s, transform 0.2s;
}

.zavrit-modal:hover {
    background-color: #ffffff;
    transform: scale(1.05); 
}

.nahled-parcely {
    cursor: pointer;
    transition: opacity 0.3s, transform 0.3s;
}

.nahled-parcely:hover {
    opacity: 0.85;
    transform: scale(1.02); 
}

@media (max-width: 768px) {
    .modal-layout {
        flex-direction: column;
    }
    .modal-vlevo {
        height: 250px;
    }
    .modal-vpravo {
        padding: 20px;
    }
}

.btn-akce:focus,
.zavrit-modal:focus {
    outline: none;
    box-shadow: var(--stin-focus);
}