/**
 * КОРВОН-PVZ-STYLE-2026
 * Назначение: Полноэкранный интерфейс (Header-Map-Footer)
 * Обновлено: 19.02.2026 (Added: Geo-button active & loading states)
 */

/* 1. БАЗОВЫЙ КОНТЕЙНЕР */
.pvz-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: #fff;
    display: flex;
    flex-direction: column;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* 2. СТАТИЧНАЯ ШАПКА */
.pvz-static-header {
    background: #ffffff;
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    z-index: 10;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.pvz-info-content {
    flex: 1;
}

.pvz-info-content h4 {
    margin: 0 0 5px 0;
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
}

.pvz-info-content p {
    margin: 0;
    font-size: 14px;
    color: #666;
    line-height: 1.4;
}

.pvz-worktime {
    display: block;
    margin-top: 8px;
    font-size: 13px;
    color: #0073aa;
    font-weight: 600;
}

.pvz-close-modal {
    font-size: 36px;
    line-height: 0.7;
    color: #bbb;
    cursor: pointer;
    padding-left: 15px;
    transition: color 0.2s;
}

/* 3. КАРТА */
.pvz-map-wrapper {
    flex: 1;
    position: relative;
    width: 100%;
    background: #f8f8f8;
}

#pvz-map {
    width: 100%;
    height: 100%;
}

/* 4. КНОПКА ГЕОЛОКАЦИИ (С АНИМАЦИЕЙ) */
.pvz-geo-float-btn {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 52px;
    height: 52px;
    background: #ffffff;
    border: none;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    cursor: pointer;
    outline: none;
    transition: all 0.2s ease;
}

/* Эффект при нажатии пальцем */
.pvz-geo-float-btn:active {
    transform: scale(0.9);
    background: #f0f7ff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* Состояние "Поиск местоположения" (добавляется через JS) */
.pvz-geo-float-btn.loading svg {
    animation: geo-rotate 1.5s linear infinite;
    opacity: 0.6;
}

@keyframes geo-rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.pvz-geo-float-btn svg {
    width: 26px;
    height: 26px;
    display: block;
    transition: all 0.2s ease;
}

/* 5. СТАТИЧНЫЙ ФУТЕР */
.pvz-static-footer {
    padding: 15px 20px 35px;
    background: #ffffff;
    border-top: 1px solid #f0f0f0;
    box-shadow: 0 -4px 15px rgba(0,0,0,0.05);
    z-index: 10;
}

.pvz-main-save-btn {
    width: 100%;
    height: 54px;
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pvz-main-save-btn:disabled {
    background: #e0e0e0;
    color: #999;
    cursor: not-allowed;
}

/* ПУЛЬСИРУЮЩАЯ МЕТКА ПОЛЬЗОВАТЕЛЯ */
.user-location-wrapper {
    position: relative;
}
.user-location-dot {
    width: 12px; height: 12px;
    background: #0073aa;
    border: 2px solid #fff;
    border-radius: 50%;
    z-index: 2;
    position: relative;
}
.user-location-pulse {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 35px; height: 35px;
    background: rgba(0, 115, 170, 0.3);
    border-radius: 50%;
    animation: pulse-ring 2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

@keyframes pulse-ring {
    0% { transform: translate(-50%, -50%) scale(0.3); opacity: 0.8; }
    80%, 100% { transform: translate(-50%, -50%) scale(2); opacity: 0; }
}
