/**
 * Étlap CSS - hover alapú tooltip megoldás
 */

/* Alapvető konténer stílusok */
.etlap-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Oszlopos elrendezés */
.etlap-columns {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.etlap-column {
    flex: 1;
    min-width: 300px;
}

.etlap-category-section {
    margin-bottom: 40px;
}

.etlap-category-title {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eceaea;
    font-style: normal;
    font-family: "span", Sans-serif;
    font-size: 40px;
    font-weight: 400;
    color: #013373;
}

.etlap-items {
    width: 100%;
}

/* Étlap elem stílusok */
.etlap-item {
    display: flex;
    justify-content: space-between;
    padding: 15px 0px;
    margin-bottom: 10px;
    border-bottom: 1px solid #eee;
    transition: all 0.2s ease;
}

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

/* Név és leírás közös konténere */
.etlap-item-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding-right: 15px;
}

/* Név és ikon konténer */
.etlap-item-name-container {
    display: flex;
    align-items: center;
}

.etlap-item-name {
    font-size: 18px;
    font-weight: 300;
    line-height: 29px;
    color: #2A2A2A;
    text-transform: uppercase;
    font-family: "span", Sans-serif;
    display: flex;
    align-items: center;
}

.etlap-allergen {
    position: relative;
    display: inline-block;
    margin-left: 4px;
    padding: 2px 6px;
    background: #eee;
    border-radius: 50%;
    font-size: 12px;
    cursor: help;
  }

  span.etlap-allergen-list {
    display: flex;
    gap:5px;
    margin-left: 10px;
}

.etlap-allergen {
    position: relative;
    background: #eee;
    border-radius: 50%;
    font-size: 10px;
    cursor: help;
    font-family: "proxima-nova", Sans-serif;
    font-weight: 600;
    width: 20px;
    height: 20px;
    display: flex
;
    justify-content: center;
    align-items: center;
}
  
  .etlap-allergen .tooltip {
    visibility: hidden;
    opacity: 0;
    width: max-content;
    font-family: "proxima-nova", Sans-serif;
    max-width: 200px;
    background-color: #333;
    color: #fff;
    text-align: center;
    text-transform: math-auto;
    border-radius: 6px;
    padding: 6px 8px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    transition: opacity 0.2s ease-in-out;
    white-space: nowrap;
    font-size: 13px;
  }
  
  .etlap-allergen:hover .tooltip {
    visibility: visible;
    opacity: 1;
  }

/* Kép ikon stílus - MÓDOSÍTVA a hover tooltip megoldáshoz */
.etlap-image-icon {
    display: inline-flex;
    align-items: center;
    margin-left: 8px;
    color: #013373;
    cursor: pointer;
    transition: transform 0.2s ease;
    position: relative; /* Ez fontos a tooltip pozicionálásához */
}

.etlap-image-icon:hover {
    transform: scale(1.2);
    color: #004cce;
}

.etlap-image-icon svg {
    width: 16px;
    height: 16px;
    display: none;
}

/* Tooltip közvetlenül az ikon után */
.etlap-tooltip {
    display: none;
    position: absolute;
    z-index: 10000;
    background: white;
    padding: 4px;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    width: 120px;
    top: -115px; /* Közvetlenül az ikon felett */
    left: -60px; /* Középre igazítva */
}

.etlap-tooltip img {
    width: 100%;
    height: auto;
    max-height: 100px;
    border-radius: 3px;
    display: block;
}

/* Az ikon hoverre megjelenik a tooltip */
.etlap-image-icon:hover .etlap-tooltip {
    display: block;
}

.etlap-item-description {
    font-size: 14px;
    color: #666;
    font-style: italic;
    margin-top: 4px;
    font-family: "proxima-nova", Sans-serif;
}

.etlap-item-price {
    color: #3B3634;
    font-family: "mundial", Sans-serif;
    font-size: 16px;
    font-weight: 200;
    white-space: nowrap;
    align-self: flex-start;
}

.etlap-empty {
    font-style: italic;
    color: #888;
}

/* Reszponzív beállítások */
@media (max-width: 768px) {
    .etlap-columns {
        flex-direction: column;
    }

    .etlap-item {
        flex-direction: row;
        align-items: flex-start;
    }

    .etlap-item-name {
        font-size: 14px;
    }
    
    .etlap-item-description {
        font-size: 13px;
    }
    
    .etlap-item-price {
        align-self: flex-start;
        font-size: 14px;
    }

    .etlap-category-title {
        margin-bottom: 20px;
        padding-bottom: 10px;
        font-size: 30px;
    }
    
    /* Tooltip kisebb méretű és más pozíciójú mobilon */
    .etlap-tooltip {
        width: 100px;
        top: -90px;
        left: -45px;
    }
    
    .etlap-tooltip img {
        max-height: 80px;
    }
}