#map {
    height: 100vh;
    width: 100%;
}
/* Общие стили для блока со временем намазов */
.prayer-times {
    position: absolute;
    top: 50%;
    left: 10%; /* Положение по умолчанию для десктопа */
    transform: translateY(-50%);
    background-color: white;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    font-family: Arial, sans-serif;
    font-size: 12px;
    z-index: 1000;
}

.sun-icon, .moon-icon, .kaaba-icon {
    font-size: 24px;
}
.sun-icon { color: orange; }
.moon-icon { color: blue; }
.kaaba-icon { color: black; }

.kaaba-direction-icon {
    color: #27ae60;
    font-size: 1.8em;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}
/* Кнопка добавления ярлыка */
.shortcut-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    background: #27ae60;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 25px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
}
.shortcut-btn:hover {
    background: #219a52;
}
.shortcut-btn i {
    font-size: 18px;
}

/* Базовые стили */
.telegram-container {
    position: absolute;
    bottom: -80px;
    left: 0;
    display: flex;
    align-items: center;
    gap: 15px;
}
.telegram-wrapper {
    position: absolute;
    left: 10%;
    top: calc(50% + 200px);
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 20px;
}

.telegram-button {
    width: 90px;
    height: 90px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.telegram-button img {
    width: 65%;
    height: auto;
}

/* Всплывающее сообщение */
.telegram-popup {
    position: absolute;
    left: 110%;
    top: 50%;
    transform: translateY(-50%);
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    width: 240px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.15);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none; /* Добавить это */
}

.telegram-popup::before {
    content: '';
    position: absolute;
    right: 100%;
    top: 50%;
    transform: translateY(-50%);
    border-width: 8px;
    border-style: solid;
    border-color: transparent #fff transparent transparent;
}
.telegram-popup p {
    margin: 0;
    color: #2c3e50;
    font-size: 14px;
    font-family: Arial, sans-serif;
    line-height: 1.4;
}
.close-popup {
    position: absolute;
    top: 5px;
    right: 10px;
    cursor: pointer;
    font-size: 18px;
    color: #666;
}
.popup-content p {
    margin: 0;
    font-size: 14px;
    line-height: 1.4;
    color: #333;
}
/* Убедитесь, что другие pop-up имеют уникальные классы */
.close-popup-telegram {
    position: absolute;
    top: 5px;
    right: 10px;
    cursor: pointer;
    font-size: 18px;
    color: #666;
    z-index: 10001; /* Выше других элементов */
}

/* Анимации */
@keyframes button-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}
.telegram-button:hover {
    animation: button-pulse 1s infinite;
    transform: rotate(15deg);
}
/* Анимация появления */
.show-popup {
    opacity: 1 !important;
    transform: translateY(-50%) !important;
    pointer-events: auto !important;
}


/* Стили для мобильных устройств */
@media (max-width: 768px) {
    .prayer-times {
        left: 30%; /* Положение для мобильных устройств */
        top: 20%; /* Можно изменить для мобильных устройств */
        width: 60%; /* Ширина на мобильных устройствах */
    }
    .show-popup {
        transform: translateX(-50%) translateY(0) !important;
    }
    
    .telegram-container {
        position: fixed;
        bottom: 20px;
        right: 20px;
        left: auto;
        flex-direction: column-reverse;
    }
    .telegram-wrapper {
        position: fixed;
        left: auto;
        right: 20px;
        bottom: 20px;
        top: auto;
        flex-direction: column-reverse;
    }

    .telegram-button {
        width: 80px;
        height: 80px;
    }

    .telegram-popup {
        left: auto;
        right: calc(100% + 15px); /* Перемещаем влево от кнопки */
        top: 50%;
        transform: translateY(-50%);
        width: 220px;
    }

    .telegram-popup::before {
        left: auto;
        right: -16px; /* Треугольник справа от pop-up */
        top: 50%;
        transform: translateY(-50%);
        border-color: transparent transparent transparent #fff; /* Указатель вправо */
    }
}