/* css/PageCalc.css - добавьте в конец файла */

/* Подсказки */
.help-trigger {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    cursor: help;
}

.help-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background: #4a6cf7;
    color: white;
    border-radius: 50%;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.help-icon:hover {
    background: #3a5ce5;
    transform: scale(1.1);
}

/* Всплывающее окно */
.tooltip-popup {
    position: fixed;
    z-index: 10000;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    padding: 15px;
    max-width: 300px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
    border: 1px solid #e0e0e0;
}

.tooltip-popup.show {
    opacity: 1;
    visibility: visible;
}

.tooltip-popup img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 10px;
}

.tooltip-popup p {
    margin: 0 0 8px 0;
    font-size: 14px;
    line-height: 1.4;
    color: #333;
}

.tooltip-popup small {
    font-size: 12px;
    color: #666;
}

/* Стрелка подсказки */
.tooltip-popup::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 20px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid white;
    filter: drop-shadow(0 -2px 2px rgba(0,0,0,0.1));
}

.tooltip-popup.bottom::before {
    top: auto;
    bottom: -8px;
    border-bottom: none;
    border-top: 8px solid white;
}

/* Сравнение высот */
.height-compare {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-top: 8px;
    font-size: 13px;
}

.height-compare span {
    background: #f5f5f5;
    padding: 4px 8px;
    border-radius: 6px;
}