/**
 * Style dla modala grafiku
 */

#grafik-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(2px);
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    background: #fff;
    border-radius: 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    padding: 30px;
    overflow-y: auto;
    z-index: 10000;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 32px;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}

.modal-close:hover {
    color: #333;
}

.modal-content h2 {
    margin: 0 0 20px 0;
    padding-right: 40px;
    color: #2c3e50;
    font-size: 24px;
}

.modal-meta {
    margin-bottom: 20px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 0;
}

.modal-meta-item {
    margin-bottom: 8px;
    font-size: 14px;
}

.modal-meta-item:last-child {
    margin-bottom: 0;
}

.modal-meta-item strong {
    color: #555;
    margin-right: 8px;
}

.modal-description {
    margin-bottom: 20px;
    padding: 15px;
    background: #f0f7ff;
    border-left: 4px solid #3498db;
    border-radius: 0;
}

.modal-description p {
    margin: 0;
    line-height: 1.6;
}

.modal-description-full {
    margin-bottom: 20px;
    padding: 15px;
    background: #fafafa;
    border-radius: 0;
}

.modal-description-full p {
    margin-bottom: 10px;
}

.modal-description-full p:last-child {
    margin-bottom: 0;
}

.modal-places {
    margin-bottom: 20px;
    padding: 15px;
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    border-radius: 0;
}

.places-info {
    font-size: 16px;
}

.places-label {
    font-weight: bold;
    color: #856404;
}

.places-value {
    color: #856404;
    font-size: 18px;
    font-weight: bold;
}

.modal-actions {
    display: flex;
    gap: 15px;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.btn-link {
    display: inline-block;
    padding: 12px 24px;
    background: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 0;
    transition: background 0.2s;
    flex: 1;
    text-align: center;
}

.btn-link:hover {
    background: #2980b9;
    color: white;
}

.btn-reserve {
    float: left;
    display: inline-block;
    text-align: center;
    text-transform: uppercase;
    line-height: 30px;
    color: #fff;
    padding: 7px 30px;
    background-color: #078521;
    -webkit-transition: all .3s linear;
    -moz-transition: all .3s linear;
    -ms-transition: all .3s linear;
    -o-transition: all .3s linear;
    transition: all .3s linear;
    font-size: 16px;
    border: none;
    cursor: pointer;
    flex: 1;
}

.btn-reserve:hover {
    color: #fff;
    background: #000;
}

.modal-loader {
    text-align: center;
    padding: 40px;
    font-size: 18px;
    color: #666;
}

/* Responsywność */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        padding: 20px;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }
    
    .modal-content h2 {
        font-size: 20px;
    }
    
    .modal-actions {
        flex-direction: column;
    }
    
    .btn-link,
    .btn-reserve {
        width: 100%;
    }
}








