/* ===========================================
   KÉPNÉZEGETŐ MODAL (Image Modal)
   Tisztított verzió - 2026-01-07
   
   TÖRÖLVE:
   - .custom-popup (duplikáció popup.css-sel)
   - .popup-content (duplikáció popup.css-sel)
   - .popup-close (duplikáció popup.css-sel)
   - .menu-item-image (duplikáció _menu-items.css-sel)
   - .food-thumbnail (duplikáció _menu-items.css-sel)
   - article.menu-item (rossz helyen volt)
   =========================================== */

/* Kép Modal */
.image-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: var(--z-modal-high); /* 4000 */
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(3px);
}

.image-modal.active {
    display: flex;
}

.image-modal .modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    margin: auto;
}

.image-modal .modal-image {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    display: block;
}

.image-modal .close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: var(--z-local); /* Lokális kiemelés */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    transition: background-color 0.2s, transform 0.2s;
}

.image-modal .close-modal:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: rotate(90deg);
}

/* Értékelő gomb - Google G ikon */
.floating-review {
    position: fixed;
    bottom: 85px;
    right: 20px;
    background: #fff;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    z-index: var(--z-floating); /* 800 */
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.floating-review img {
    width: 24px;
    height: 24px;
    display: block;
}

.floating-review:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

/* Mobil responsive */
@media (max-width: 768px) {
    .image-modal .close-modal {
        top: 10px;
        right: 10px;
        width: 35px;
        height: 35px;
        font-size: 22px;
    }
    
    .floating-review {
        bottom: 140px;
        right: 20px;
    }
}
