/* Green Gradient Theme for GdzieJade - Based on Logo Colors */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    /* Elegant Gradient Color Palette - From Logo */
    --primary-green: #00C853; /* Глубокий зеленый (как в логотипе) */
    --deep-green: #00A043; /* Более темный зеленый */
    --accent-green: #1565C0; /* Космический синий (как в логотипе) */
    --light-green: #26E07F; /* Светлый зеленый */
    --soft-green: #0288D1; /* Мягкий синий */
    --pale-green: #81C784; /* Приглушенный зеленый */
    --cream-white: #f8f6f0;
    --pure-white: #ffffff;
    --text-dark: #1a3d1a;
    --text-medium: #2d5a27;
    --text-light: #4a7c59;
    --shadow-green: rgba(0, 200, 83, 0.15); /* Тень от глубокого зеленого */
    --shadow-soft: rgba(0, 200, 83, 0.08);
    --border-green: rgba(0, 200, 83, 0.2); /* Рамка от глубокого зеленого */
    --border-light: rgba(0, 200, 83, 0.1);
    
    /* Fluid Typography - автоматически адаптируется под размер экрана */
    --font-size-xs: clamp(0.75rem, 2vw, 0.875rem);
    --font-size-sm: clamp(0.875rem, 2.5vw, 1rem);
    --font-size-base: clamp(1rem, 3vw, 1.125rem);
    --font-size-lg: clamp(1.125rem, 3.5vw, 1.25rem);
    --font-size-xl: clamp(1.25rem, 4vw, 1.5rem);
    --font-size-2xl: clamp(1.5rem, 5vw, 2rem);
    --font-size-3xl: clamp(2rem, 6vw, 3rem);
    
    /* Responsive Spacing */
    --spacing-xs: clamp(0.25rem, 1vw, 0.5rem);
    --spacing-sm: clamp(0.5rem, 2vw, 1rem);
    --spacing-md: clamp(1rem, 3vw, 1.5rem);
    --spacing-lg: clamp(1.5rem, 4vw, 2rem);
    --spacing-xl: clamp(2rem, 5vw, 3rem);
    --spacing-2xl: clamp(3rem, 6vw, 4rem);
    
    /* Container Sizes */
    --container-sm: min(100%, 640px);
    --container-md: min(100%, 768px);
    --container-lg: min(100%, 1024px);
    --container-xl: min(100%, 1280px);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: transparent;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    overflow-y: auto;
    position: relative;
}

/* Navigation Bar - Green Theme */
.navbar {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--accent-green) 100%);
    backdrop-filter: blur(20px);
    border-bottom: 2px solid var(--border-green);
    box-shadow: 0 4px 20px var(--shadow-green);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0.6rem 1.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar:hover {
    background: linear-gradient(135deg, var(--accent-green) 0%, var(--primary-green) 100%);
    box-shadow: 0 6px 25px var(--shadow-green);
}

.nav-container {
    display: grid !important;
    grid-template-columns: auto auto 1fr auto !important;
    align-items: center;
    max-width: var(--container-xl);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    gap: var(--spacing-md);
    width: 100%;
    justify-content: flex-start !important;
}

.header-spacer {
    /* Заполнитель для выравнивания */
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    color: white;
    font-weight: 700;
    font-size: 1.3rem;
    transition: all 0.3s ease;
}

.nav-logo:hover {
    color: var(--pale-green);
    transform: translateY(-1px);
}

.nav-logo img {
    width: 55px; /* Еще больше - акцент на логотипе */
    height: 55px; /* Еще больше - акцент на логотипе */
    border-radius: 15px; /* Больше скругление */
    box-shadow: 0 4px 20px rgba(34, 139, 34, 0.4);
    transition: all 0.3s ease;
    object-fit: contain; /* Сохраняем пропорции */
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.1)); /* Дополнительная тень */
    margin: -8px 0; /* Отрицательные отступы, чтобы не увеличивать высоту шапки */
}

.nav-logo:hover img {
    transform: scale(1.1) rotate(3deg); /* Больше увеличение и поворот */
    box-shadow: 0 6px 25px rgba(34, 139, 34, 0.6); /* Более выразительная тень */
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.2)) brightness(1.1); /* Дополнительные эффекты */
}

/* Поисковая строка в шапке */
.header-search-container {
    display: flex !important;
    align-items: center;
    gap: var(--spacing-xs);
    max-width: 350px !important;
    width: auto !important;
    flex-shrink: 0;
}

.header-search-input {
    flex: 1;
    padding: 0.5rem 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    font-size: 0.85rem;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.header-search-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.header-search-input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.2);
}

.header-search-button,
.header-show-all-button {
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.header-search-button:hover,
.header-show-all-button:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Кнопки действий в правом верхнем углу */
.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

.header-action-btn {
    background: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.header-action-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-1px);
}

.header-action-btn:active {
    transform: translateY(0);
}


/* Стили для кнопки входа (аналогично Ulubione) */
.login-btn {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
    color: #FFD700;
    position: relative;
    overflow: hidden;
}

.login-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.login-btn:hover::before {
    left: 100%;
}

.login-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.6);
    color: #FFD700;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.login-btn i {
    margin-right: 0.5rem;
    color: #FFD700;
    font-size: 1rem;
}

.login-btn span {
    color: #FFD700;
}

/* Стили для кнопки входа (аналогично Ulubione) */
.login-btn {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
    color: #FFD700;
    position: relative;
    overflow: hidden;
}

.login-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.login-btn:hover::before {
    left: 100%;
}

.login-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.6);
    color: #FFD700;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.login-btn i {
    margin-right: 0.5rem;
    color: #FFD700;
    font-size: 1rem;
}

.login-btn span {
    color: #FFD700;
}



/* Categories Panel - Lighter Green Theme */
.categories-panel {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, rgba(168, 196, 176, 0.95) 0%, rgba(255, 255, 255, 0.98) 100%);
    backdrop-filter: blur(20px);
    border-bottom: 2px solid var(--border-light);
    box-shadow: 0 4px 20px var(--shadow-green);
    z-index: 100;
    padding: var(--spacing-sm) var(--spacing-md);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    /* Разрешаем выпадающим спискам выходить за пределы */
    overflow: visible !important;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.categories-panel::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-green), transparent);
}

/* Сезонная кнопка */
.seasonal-button-container {
    width: min(350px, 18vw); /* Уменьшили ширину для освобождения места */
    display: flex;
    justify-content: center;
    flex-shrink: 0;
}

.seasonal-button {
    width: 100%;
    height: 65px;
    padding: 0.5rem 1.2rem;
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--accent-green) 100%);
    color: white;
    border: none;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    box-shadow: 0 4px 15px var(--shadow-green);
    position: relative;
    overflow: hidden;
}

.seasonal-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.seasonal-button:hover::before {
    left: 100%;
}

.seasonal-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--shadow-green);
}

.seasonal-icon {
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.seasonal-button:hover .seasonal-icon {
    transform: scale(1.1);
}

.seasonal-text {
    font-weight: 600;
    text-align: center;
    font-size: 1.1rem;
}

/* Сезонные стили */
.seasonal-button.spring {
    background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%);
}

.seasonal-button.summer {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
}

.seasonal-button.autumn {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
}

.seasonal-button.winter {
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
}

/* Кнопка фильтров */
.filters-button-container {
    width: min(400px, 20vw); /* Адаптивная ширина */
    display: flex;
    justify-content: center;
    flex-shrink: 0;
    position: relative; /* Для позиционирования выпадающей панели */
}

.filters-button {
    width: 100%;
    height: 65px;
    padding: 0.5rem 1.2rem;
    background: linear-gradient(135deg, var(--deep-green) 0%, var(--accent-green) 100%);
    color: white;
    border: none;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    box-shadow: 0 4px 15px var(--shadow-green);
    position: relative;
    overflow: hidden;
}

.filters-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.filters-button:hover::before {
    left: 100%;
}

.filters-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--shadow-green);
}

.filters-button i {
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.filters-button:hover i {
    transform: scale(1.1);
}

.filters-button.active {
    background: linear-gradient(135deg, var(--accent-green) 0%, var(--deep-green) 100%);
    box-shadow: 0 8px 25px var(--shadow-green);
    transform: translateY(-2px);
}

.filters-button span {
    font-weight: 600;
    text-align: center;
    font-size: 1.1rem;
}

/* Панель фильтров */
.filters-panel {
    position: fixed;
    /* top будет устанавливаться динамически через JavaScript */
    bottom: 80px; /* Отступ от подвала */
    right: 2rem; /* Отступ справа */
    width: 400px; /* Такая же ширина как кнопка */
    height: auto; /* Автоматическая высота */
    /* max-height будет устанавливаться динамически через JavaScript */
    background: rgba(255, 255, 255, 0.95); /* Нормальный белый фон */
    backdrop-filter: blur(20px);
    border: 2px solid var(--border-light); /* Нормальная зеленая рамка */
    border-radius: 15px;
    box-shadow: 0 8px 25px var(--shadow-green);
    z-index: 10000; /* Такой же как у подкатегорий */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    overflow-y: auto;
}

.filters-panel.active {
    opacity: 1;
    visibility: visible;
}

.filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem; /* Уменьшили padding для компактности */
    border-bottom: 1px solid var(--border-light);
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--accent-green) 100%);
    color: white;
}

.filters-header h3 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
}

.close-filters {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-filters:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.filters-content {
    padding: 1.5rem; /* Уменьшили с 2rem до 1.5rem */
}



.categories-container {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    padding: 0 var(--spacing-sm);
    width: 100%;
    /* Разрешаем выпадающим спискам выходить за пределы */
    overflow: visible !important;
}

.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.4rem 0.6rem;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid var(--border-light);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    flex: 1 1 50px; /* Растет, сжимается, минимум 50px */
    backdrop-filter: blur(10px);
}

.category-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(45, 90, 39, 0.05) 0%, rgba(74, 124, 89, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 16px;
}

.category-item:hover::before {
    opacity: 1;
}

.category-item:hover {
    transform: scale(1.05) translateY(-3px);
    background: rgba(255, 255, 255, 0.95);
    border-color: var(--light-green);
    box-shadow: 
        0 8px 25px var(--shadow-green),
        0 0 0 3px rgba(74, 124, 89, 0.2);
    z-index: 15;
}

.category-item.active {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--accent-green) 100%);
    color: white;
    transform: scale(1.08) translateY(-2px);
    box-shadow: 
        0 10px 30px var(--shadow-green),
        0 0 0 4px rgba(168, 196, 176, 0.3);
    z-index: 20;
}

.category-icon {
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, var(--primary-green), var(--accent-green));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.3rem;
    color: white;
    font-size: 0.85rem;
    box-shadow: 0 3px 10px var(--shadow-green);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}



.category-item:hover .category-icon {
    transform: scale(1.1);
    box-shadow: 
        0 4px 15px var(--shadow-soft),
        0 0 20px rgba(74, 124, 89, 0.4);
    filter: brightness(1.1);
}

.category-item.active .category-icon {
    background: linear-gradient(135deg, var(--light-green), var(--soft-green));
    color: var(--text-dark);
    transform: scale(1.15);
    box-shadow: 
        0 6px 20px var(--shadow-soft),
        0 0 25px rgba(168, 196, 176, 0.5);
}

.category-item span {
    font-size: 0.7rem; /* Базовый размер */
    font-weight: 500;
    color: var(--text-dark);
    text-align: center;
    max-width: 60px;
    line-height: 1.1;
}

.category-item:hover span {
    color: var(--primary-green);
    font-weight: 600;
}

/* Адаптивность текста категорий для больших экранов */
@media (min-width: 1600px) {
    .category-item span {
        font-size: 0.8rem;
        max-width: 70px;
    }
}

@media (min-width: 1400px) {
    .category-item span {
        font-size: 0.75rem;
        max-width: 65px;
    }
}

@media (min-width: 1200px) {
    .category-item span {
        font-size: 0.7rem;
        max-width: 60px;
    }
}

.category-item.active span {
    color: white;
    font-weight: 600;
}

/* Индикатор для активной категории - показывает множественный выбор */
.category-item.active::after {
    content: '✓';
    position: absolute;
    top: -5px;
    right: -5px;
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    border: 2px solid var(--primary-green);
    opacity: 0.9;
    transition: all 0.3s ease;
    z-index: 10;
}

.category-item.active:hover::after {
    opacity: 1;
    transform: scale(1.1);
    background: white;
    box-shadow: 0 2px 8px rgba(34, 139, 34, 0.3);
}



/* Main Content - Green Theme Cards */
.main-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
    max-width: 30%; /* Ограничиваем ширину до 30% */
    margin: 140px 0 80px 0.5rem; /* Минимальный отступ */
    padding: var(--spacing-lg);
    position: relative;
    z-index: 5;
    width: auto; /* Убираем фиксированную ширину */
}

/* Адаптивность для больших экранов */
@media (min-width: 1400px) {
  .main-content {
    max-width: 25%; /* На очень больших экранах еще меньше */
  }
  
  .place-details {
    top: calc(60px + 100px); /* Шапка + меньшая панель на больших экранах */
    height: calc(100vh - 160px - 80px);
  }
}

/* Специальный медиа-запрос для планшетов когда панель в 2 строки */
@media (max-width: 1000px) and (min-width: 769px) {
  .place-details {
    width: 30%; /* На планшетах чуть больше */
    top: calc(60px + var(--spacing-sm) * 2 + 65px + 20px + 100px); /* Шапка + padding + высота кнопок + базовый отступ + дополнительный отступ для 2 строк */
    height: calc(100vh - 60px - var(--spacing-sm) * 2 - 65px - 20px - 100px - 80px);
  }
}

/* Адаптивность для средних экранов */
@media (max-width: 1200px) {
    .main-content {
        max-width: 35%; /* На средних экранах чуть больше */
    }
    
    .place-details {
        top: calc(60px + 140px); /* Шапка + большая панель когда в 2 строки */
        height: calc(100vh - 200px - 80px);
    }
}

/* Специальный медиа-запрос для случаев когда панель категорий в 2 строки на средних экранах */
@media (max-width: 1100px) and (min-width: 1001px) {
    .place-details {
        width: 28%; /* На средних экранах чуть больше */
        top: calc(60px + var(--spacing-sm) * 2 + 65px + 20px + 80px); /* Отступ когда панель в 2 строки на средних экранах */
        height: calc(100vh - 60px - var(--spacing-sm) * 2 - 65px - 20px - 80px - 80px);
    }
}

/* Адаптивность для планшетов */
@media (max-width: 768px) {
    .main-content {
        max-width: 45%; /* На планшетах еще больше */
        margin: 140px 0 80px 0.25rem; /* Очень маленький отступ на планшетах */
        padding: var(--spacing-md);
    }
}





.content-card {
    background: linear-gradient(135deg, rgba(248, 246, 240, 0.98) 0%, rgba(255, 255, 255, 0.95) 100%);
    backdrop-filter: blur(20px);
    border: 2px solid var(--border-light);
    border-radius: 25px;
    padding: 1.5rem;
    box-shadow: 
        0 10px 30px var(--shadow-green),
        0 0 0 1px rgba(168, 196, 176, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.content-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-green), var(--accent-green), var(--light-green));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.content-card:hover::before {
    opacity: 1;
}

.content-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 20px 40px var(--shadow-green),
        0 0 0 3px rgba(74, 124, 89, 0.2);
    border-color: var(--light-green);
}

.content-card h3 {
    color: var(--primary-green);
    margin-bottom: 1rem;
    font-size: 1.25rem;
    font-weight: 600;
    position: relative;
}

.content-card h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--light-green), var(--soft-green));
    transition: width 0.4s ease;
}

.content-card:hover h3::after {
    width: 100%;
}

.content-card p {
    color: var(--text-medium);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.content-card .card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-light);
}

.content-card .card-meta span {
    color: var(--accent-green);
    font-size: 0.9rem;
    font-weight: 500;
}





/* Map Zoom Controls - Green Theme */
.map-zoom-controls {
    position: fixed;
    bottom: 165px; /* Над кнопкой стилей карты */
    left: calc(25% + 2rem); /* Адаптивно относительно карточек (25% + отступ) */
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    transition: all 0.3s ease;
}

.zoom-btn {
    background: rgba(74, 124, 89, 0.8);
    color: white;
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    font-size: 0.9rem;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.zoom-btn:hover {
    background: rgba(74, 124, 89, 0.9);
    transform: scale(1.05);
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.2);
}

.zoom-btn:active {
    transform: scale(0.95);
}

/* Map Styles Button - Green Theme */
.map-styles-button {
    position: fixed;
    bottom: 90px; /* Подняли выше подвала */
    left: calc(25% + 1.5rem); /* Адаптивно относительно карточек (25% + отступ) */
    z-index: 1000;
    transition: all 0.3s ease;
}

.styles-toggle {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--accent-green) 100%);
    color: white;
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 
        0 8px 25px var(--shadow-green),
        0 0 0 3px rgba(74, 124, 89, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.styles-toggle::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: rotate(45deg) translate(-100%, -100%);
    transition: transform 0.6s ease;
}

.styles-toggle:hover::before {
    transform: rotate(45deg) translate(100%, 100%);
}

.styles-toggle:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 
        0 12px 30px var(--shadow-green),
        0 0 0 4px rgba(168, 196, 176, 0.3);
}

.styles-dropdown {
    position: absolute;
    bottom: 70px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, rgba(248, 246, 240, 0.98) 0%, rgba(255, 255, 255, 0.95) 100%);
    backdrop-filter: blur(20px);
    border: 2px solid var(--border-light);
    border-radius: 20px;
    padding: 1rem;
    min-width: 200px;
    box-shadow: 
        0 15px 40px var(--shadow-green),
        0 0 0 1px rgba(168, 196, 176, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(10px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.styles-dropdown::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid var(--cream-white);
}

.map-styles-button:hover .styles-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.style-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-medium);
}

.style-option:hover {
    background: rgba(45, 90, 39, 0.08);
    color: var(--primary-green);
    transform: translateX(5px);
}

.style-name {
    font-weight: 600;
    font-size: 0.9rem;
}

.style-desc {
    font-size: 0.8rem;
    opacity: 0.7;
}

/* Fullscreen Map Background - Clean */
.fullscreen-map-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: auto;
}

/* Простое отображение выпадающих списков */
.subcategories-dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border: 2px solid var(--primary-green);
    border-radius: 10px;
    padding: 0.6rem;
    min-width: 140px;
    box-shadow: 0 6px 20px var(--shadow-green);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 10000;
    margin-top: 0.4rem;
    /* Принудительно убираем все ограничения */
    overflow: visible !important;
    max-height: none !important;
    clip: auto !important;
    clip-path: none !important;
    /* Убираем все ограничения по размеру */
    width: auto !important;
    height: auto !important;
}



#fullscreen-map {
    width: 100%;
    height: 100%;
    filter: brightness(1) contrast(1) saturate(1);
    opacity: 1;
    pointer-events: auto;
}




/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        margin: 0 1rem 0 1rem;
        gap: 1rem;
    }
    
    .header-search-container {
        max-width: 280px;
        width: auto;
    }
    
    .categories-panel {
        padding: 1rem;
        flex-direction: column;
        gap: 1rem;
    }
    
    .seasonal-button-container {
        width: min(300px, 25vw); /* Уменьшили для средних экранов */
    }
    
    .seasonal-button {
        height: 60px;
        padding: 0.4rem 1rem;
        font-size: 0.8rem;
    }
    
    .categories-container {
        padding: 0.5rem 0.75rem;
        gap: 0.4rem;
        overflow: hidden !important;
    }
    

    
    .category-item {
        min-width: 70px;
        padding: 0.4rem 0.2rem;
    }
    
    .category-icon {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
    }
    
    .category-item span {
        font-size: 0.65rem; /* Фиксированный размер для средних экранов */
        max-width: 90px;
    }
    
    .main-content {
        padding: 1rem;
        margin: 200px 0 70px 1rem; /* Добавили отступ снизу для подвала */
        max-width: 400px;
    }
    
    .map-zoom-controls {
        left: calc(28% + 1.5rem); /* Адаптивно для средних экранов */
        bottom: 155px; /* Над кнопкой стилей карты */
    }
    
    .map-styles-button {
        left: calc(28% + 1rem); /* Адаптивно для средних экранов */
        bottom: 80px; /* Подняли выше подвала */
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 0.75rem 1rem;
    }
    
    .nav-container {
        margin: 0 0.5rem 0 0.5rem;
        gap: 0.8rem;
    }
    
    .nav-logo {
        font-size: 1.25rem;
    }
    
    .nav-logo img {
        width: 48px; /* Больше для акцента, но адаптивно */
        height: 48px;
        margin: -6px 0; /* Меньше отрицательный отступ для мобильных */
    }
    
    .header-search-container {
        max-width: 220px;
        width: auto;
    }
    
    .header-search-input {
        font-size: 0.8rem;
        padding: 0.4rem 0.6rem;
    }
    
    .header-search-button,
    .header-show-all-button {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }
    
    .categories-panel {
        padding: 0.8rem;
        gap: 0.8rem;
    }
    
    .seasonal-button-container {
        width: min(280px, 30vw); /* Уменьшили для планшетов */
    }
    
    .seasonal-button {
        height: 55px;
        padding: 0.4rem 0.8rem;
        font-size: 0.75rem;
        gap: 0.6rem;
    }
    
    .seasonal-icon {
        font-size: 1rem;
    }
    
    .categories-container {
        padding: 0.4rem 0.5rem;
        gap: 0.3rem;
        overflow: hidden !important;
    }
    

    
    .category-item {
        min-width: 65px;
        padding: 0.3rem 0.15rem;
    }
    
    .category-icon {
        width: 28px;
        height: 28px;
        font-size: 0.85rem;
    }
    
    .category-item span {
        font-size: 0.6rem; /* Фиксированный размер для планшетов */
        max-width: 80px;
    }
    
    .main-content {
        margin: 220px 0 60px 0.5rem; /* Добавили отступ снизу для подвала */
        max-width: 350px;
        padding: 0.75rem;
    }
    
    .map-zoom-controls {
        left: calc(30% + 1rem); /* Адаптивно для мобильных экранов */
        bottom: 145px; /* Над кнопкой стилей карты */
    }
    
    .map-styles-button {
        left: calc(30% + 0.5rem); /* Адаптивно для мобильных экранов */
        bottom: 70px; /* Подняли выше подвала */
    }
}

/* Smooth scrolling and animations */
html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    overflow-y: auto;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(248, 246, 240, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--accent-green) 100%);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--accent-green) 0%, var(--primary-green) 100%);
}

/* Focus states for accessibility */
*:focus {
    outline: 2px solid var(--light-green);
    outline-offset: 2px;
}

/* Loading animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Apply animations to elements */
.content-card {
    animation: fadeInUp 0.6s ease-out;
}

.category-item {
    animation: slideInRight 0.4s ease-out;
}

.category-item:nth-child(1) { animation-delay: 0.1s; }
.category-item:nth-child(2) { animation-delay: 0.2s; }
.category-item:nth-child(3) { animation-delay: 0.3s; }
.category-item:nth-child(4) { animation-delay: 0.4s; }
.category-item:nth-child(5) { animation-delay: 0.5s; }
.category-item:nth-child(6) { animation-delay: 0.6s; }
.category-item:nth-child(7) { animation-delay: 0.7s; }
.category-item:nth-child(8) { animation-delay: 0.8s; }

/* Стили для панели фильтров */
.filter-section {
  margin-bottom: 1.5rem;
  padding: 1.2rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(240, 255, 240, 0.9) 100%);
  border-radius: 15px;
  border: 2px solid var(--light-green);
  backdrop-filter: blur(15px);
  box-shadow: 0 8px 32px rgba(34, 139, 34, 0.1);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.filter-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--light-green), var(--medium-green), var(--deep-green));
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.filter-section:hover::before {
  transform: scaleX(1);
}

.filter-section:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(34, 139, 34, 0.15);
  border-color: var(--medium-green);
}

.filter-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--deep-green);
  margin-bottom: 1rem;
  padding-bottom: 0.8rem;
  border-bottom: 3px solid var(--light-green);
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.filter-title::before {
  content: '';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 1rem;
  margin-right: 0.5rem;
  color: var(--medium-green);
}

/* Иконки для разных категорий фильтров */
.filter-section:nth-child(1) .filter-title::before {
  content: '\f02c'; /* fa-tags - для категорий */
}

.filter-section:nth-child(2) .filter-title::before {
  content: '\f3c5'; /* fa-map-marker-alt - для локализации */
}

.filter-section:nth-child(3) .filter-title::before {
  content: '\f073'; /* fa-calendar-alt - для даты */
}

.filter-section:nth-child(4) .filter-title::before {
  content: '\f51e'; /* fa-coins - для цены */
}

.filter-section:nth-child(5) .filter-title::before {
  content: '\f017'; /* fa-clock - для времени работы */
}

.filter-section:nth-child(6) .filter-title::before {
  content: '\f06c'; /* fa-leaf - для сезона */
}

.filter-content {
  display: flex;
  flex-direction: column;
  gap: 0.6rem; /* Уменьшили с 1rem до 0.6rem */
}

.filter-item {
  margin-bottom: 0.4rem; /* Уменьшили с 0.8rem до 0.4rem */
  position: relative;
}

/* Стили для чекбоксов */
.filter-checkbox {
  display: flex;
  align-items: center;
  gap: 0.5rem; /* Уменьшили с 0.8rem до 0.5rem */
  cursor: pointer;
  font-size: 1rem;
  color: var(--text-dark);
  transition: all 0.3s ease;
  padding: 0.3rem 0.5rem; /* Уменьшили padding для компактности */
  border-radius: 8px;
  position: relative;
}

.filter-checkbox:hover {
  color: var(--deep-green);
  background: rgba(34, 139, 34, 0.05);
  transform: translateX(5px);
}

.filter-checkbox.sub {
  font-size: 0.9rem;
  color: var(--text-medium);
  margin-left: 0.8rem; /* Уменьшили с 1rem до 0.8rem */
  padding: 0.2rem 0.5rem; /* Уменьшили padding для компактности */
  border-radius: 6px;
  transition: all 0.3s ease;
}

.filter-checkbox.sub:hover {
  background: rgba(34, 139, 34, 0.08);
  color: var(--deep-green);
  transform: translateX(3px);
}

.filter-checkbox input[type="checkbox"] {
  display: none;
}

.checkmark {
  width: 20px;
  height: 20px;
  border: 2px solid var(--medium-green);
  border-radius: 6px;
  position: relative;
  transition: all 0.3s ease;
  flex-shrink: 0;
  background: white;
  box-shadow: 0 2px 8px rgba(34, 139, 34, 0.1);
}

.filter-checkbox:hover .checkmark {
  border-color: var(--deep-green);
  box-shadow: 0 4px 12px rgba(34, 139, 34, 0.2);
  transform: scale(1.1);
}

.filter-checkbox input[type="checkbox"]:checked + .checkmark {
  background: linear-gradient(135deg, var(--deep-green), var(--primary-green));
  border-color: var(--deep-green);
  transform: scale(1.1);
  box-shadow: 0 4px 16px rgba(34, 139, 34, 0.3);
}

.filter-checkbox input[type="checkbox"]:checked + .checkmark::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 14px;
  font-weight: bold;
  animation: checkmarkAppear 0.3s ease;
}

@keyframes checkmarkAppear {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.5);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

/* Подкатегории с анимацией */
.subcategories {
  margin-left: 2rem;
  margin-top: 0.8rem;
  padding-left: 1.2rem;
  border-left: 3px solid var(--light-green);
  max-height: 0;
  overflow: hidden;
  transition: all 0.4s ease;
  opacity: 0;
  transform: translateX(-10px);
}

.filter-checkbox:has(input:checked) + .subcategories,
.subcategories:has(.filter-checkbox:hover) {
  max-height: 500px;
  opacity: 1;
  transform: translateX(0);
}

/* Слайдер расстояния */
.distance-slider {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin: 1.2rem 0;
  padding: 1rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(240, 255, 240, 0.8));
  border-radius: 12px;
  border: 2px solid var(--light-green);
  box-shadow: 0 4px 16px rgba(34, 139, 34, 0.1);
}

.distance-slider span {
  font-size: 0.95rem;
  color: var(--deep-green);
  min-width: 35px;
  font-weight: 600;
  text-align: center;
}

.slider {
  flex: 1;
  height: 8px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--light-green), var(--medium-green));
  outline: none;
  -webkit-appearance: none;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--deep-green), var(--primary-green));
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(34, 139, 34, 0.3);
  transition: all 0.3s ease;
}

.slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  box-shadow: 0 6px 20px rgba(34, 139, 34, 0.4);
}

.slider::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--deep-green), var(--primary-green));
  cursor: pointer;
  border: none;
  box-shadow: 0 4px 12px rgba(34, 139, 34, 0.3);
}

/* Поле выбора даты */
.date-picker {
  padding: 0.8rem;
  border: 2px solid var(--light-green);
  border-radius: 10px;
  font-size: 0.95rem;
  color: var(--text-dark);
  background: white;
  outline: none;
  transition: all 0.3s ease;
  width: 100%;
  margin-top: 0.8rem;
  box-shadow: 0 2px 8px rgba(34, 139, 34, 0.1);
}

.date-picker:focus {
  border-color: var(--deep-green);
  box-shadow: 0 4px 16px rgba(34, 139, 34, 0.2);
  transform: translateY(-2px);
}

/* Кнопки действий */
.filter-actions {
  display: flex;
  gap: 1.2rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 3px solid var(--light-green);
}

.apply-filters,
.clear-filters {
  padding: 1rem 2rem;
  border: none;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  flex: 1;
  position: relative;
  overflow: hidden;
}

.apply-filters {
  background: linear-gradient(135deg, var(--deep-green), var(--primary-green));
  color: white;
  box-shadow: 0 4px 16px rgba(34, 139, 34, 0.3);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
}

.apply-filters .filter-count {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: bold;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  animation: filterCountPulse 2s infinite;
}

@keyframes filterCountPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

.apply-filters:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(34, 139, 34, 0.4);
}

.apply-filters:active {
  transform: translateY(-1px);
}

.clear-filters {
  background: linear-gradient(135deg, var(--light-green), var(--medium-green));
  color: var(--deep-green);
  box-shadow: 0 4px 16px rgba(34, 139, 34, 0.2);
}

.clear-filters:hover {
  background: linear-gradient(135deg, var(--medium-green), var(--deep-green));
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(34, 139, 34, 0.3);
}

/* Счетчик выбранных фильтров */
.filter-counter {
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--deep-green);
  color: white;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: bold;
  animation: counterPulse 0.3s ease;
}

@keyframes counterPulse {
  0% { transform: scale(0); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

/* Адаптивность */
@media (max-width: 768px) {
  .filter-section {
    padding: 1rem;
    margin-bottom: 1.2rem;
  }
  
  .filter-actions {
    flex-direction: column;
    gap: 1rem;
  }
  
  .distance-slider {
    flex-direction: column;
    gap: 0.8rem;
  }
  
  .subcategories {
    margin-left: 1.5rem;
  }
  
  .filter-checkbox {
    padding: 0.4rem;
  }
}

@media (max-width: 480px) {
  .filter-section {
    padding: 0.8rem;
    border-radius: 12px;
  }
  
  .filter-title {
    font-size: 1.1rem;
  }
  
  .filter-checkbox {
    font-size: 0.9rem;
    padding: 0.3rem;
  }
  
  .apply-filters,
  .clear-filters {
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
  }
}

/* Стили для поисковой строки - без фона (удалены дублирующиеся стили) */

/* ПРИНУДИТЕЛЬНОЕ ВЫРАВНИВАНИЕ ШАПКИ - ДОЛЖНО БЫТЬ В КОНЦЕ ФАЙЛА */
.navbar .nav-container {
    display: grid !important;
    grid-template-columns: auto auto 1fr auto !important;
    justify-content: flex-start !important;
    align-items: center !important;
}

.navbar .nav-logo {
    justify-self: start !important;
}

.navbar .header-search-container {
    justify-self: start !important;
    max-width: 350px !important;
    width: auto !important;
}

.navbar .header-spacer {
    justify-self: stretch !important;
}

.navbar .header-actions {
    justify-self: end !important;
    position: static !important;
    right: auto !important;
    top: auto !important;
    transform: none !important;
}

.header-search-input {
  flex: 1;
  border: none;
  outline: none;
  background: rgba(255, 255, 255, 0.1);
  padding: 0.5rem 1rem;
  font-size: 1rem;
  color: white;
  border-radius: 8px;
  transition: background 0.3s ease;
}

.header-search-input:focus {
  background: rgba(255, 255, 255, 0.15);
}

.header-search-input::placeholder {
  color: rgba(255, 255, 255, 0.8);
}

.header-search-button,
.header-show-all-button {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  width: 35px;
  height: 35px;
  padding: 0;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-search-button:hover,
.header-show-all-button:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.6);
  transform: scale(1.05);
}

/* Подсказки поиска */
.search-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 2px solid var(--light-green);
  border-top: none;
  border-radius: 0 0 15px 15px;
  box-shadow: 0 8px 25px rgba(34, 139, 34, 0.15);
  z-index: 1000;
  max-height: 300px;
  overflow-y: auto;
  backdrop-filter: blur(10px);
}

.search-suggestion {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.8rem 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  border-bottom: 1px solid var(--light-green);
  position: relative;
}

.search-suggestion:last-child {
  border-bottom: none;
}

.search-suggestion:hover {
  background: rgba(34, 139, 34, 0.08);
  transform: translateX(5px);
}

.search-suggestion i {
  color: var(--deep-green);
  font-size: 1.1rem;
  width: 20px;
  text-align: center;
}

.search-suggestion span {
  font-weight: 600;
  color: var(--text-dark);
  flex: 1;
}

.search-suggestion small {
  color: var(--text-medium);
  font-size: 0.8rem;
  background: var(--light-green);
  padding: 0.2rem 0.5rem;
  border-radius: 10px;
  font-weight: 500;
}

/* Анимации для результатов поиска */
@keyframes searchMarkerPulse {
  0% { 
    transform: scale(1); 
    box-shadow: 0 4px 15px rgba(34, 139, 34, 0.4); 
  }
  50% { 
    transform: scale(1.1); 
    box-shadow: 0 6px 20px rgba(34, 139, 34, 0.6); 
  }
  100% { 
    transform: scale(1); 
    box-shadow: 0 4px 15px rgba(34, 139, 34, 0.4); 
  }
}

@keyframes slideInSearchResults {
  0% { transform: translateX(100%); }
  100% { transform: translateX(0); }
}

/* Уведомления о результатах поиска */
.search-notification {
  position: fixed;
  top: 120px;
  right: 20px;
  background: linear-gradient(135deg, var(--deep-green), var(--primary-green));
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(34, 139, 34, 0.3);
  font-weight: 600;
  z-index: 10000;
  transform: translateX(100%);
  transition: transform 0.5s ease;
  animation: slideInSearchResults 0.5s ease forwards;
}

/* Адаптивность для поиска - только для подсказок */
@media (max-width: 768px) {
  .search-suggestions {
    position: fixed;
    top: 50%;
    left: 20px;
    right: 20px;
    max-height: 60vh;
    border-radius: 15px;
  }
}

/* Стили для детальной информации об объекте - только в зоне карточек */
.place-details {
  position: fixed; /* Изменили на fixed для позиционирования относительно экрана */
  top: calc(60px + var(--spacing-sm) * 2 + 65px + 20px); /* Шапка + padding панели + высота кнопок + дополнительный отступ */
  left: 0;
  width: 25%; /* 25% от ширины экрана */
  height: calc(100vh - 60px - var(--spacing-sm) * 2 - 65px - 20px - 80px); /* До подвала */
  background: white;
  z-index: 1000;
  overflow-y: auto;
  overflow-x: hidden;
  box-shadow: 2px 0 20px rgba(0, 0, 0, 0.1);
  display: none;
  visibility: hidden;
  opacity: 0;
  transition: all 0.3s ease; /* Плавная адаптация */
}

.place-details.active {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Блокируем скролл основной страницы когда открыта большая карточка */
body.place-details-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
}

/* Галерея фото */
.place-gallery {
  position: relative;
  width: 100%;
  height: 300px;
  overflow: hidden;
  border-radius: 0;
  margin-bottom: 0;
}

.gallery-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.gallery-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-slide.active {
  opacity: 1;
}

.gallery-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}

/* Кнопки навигации */
.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.6);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  z-index: 10;
}

.gallery-nav:hover {
  background: rgba(0, 0, 0, 0.8);
  transform: translateY(-50%) scale(1.1);
}

.gallery-prev {
  left: 15px;
}

.gallery-next {
  right: 15px;
}

/* Индикаторы */
.gallery-indicators {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.indicator:hover {
  background: rgba(255, 255, 255, 0.8);
  transform: scale(1.2);
}

.indicator.active {
  background: white;
  transform: scale(1.2);
}



.back-button {
  background: linear-gradient(135deg, var(--deep-green), var(--primary-green));
  color: white;
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
  font-weight: 600;
  margin: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 15px rgba(34, 139, 34, 0.3);
}

.back-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(34, 139, 34, 0.4);
}

.place-header {
  display: block;
  padding: 0 1rem 1.5rem;
}

.place-image {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.place-image img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.place-rating {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
  color: white;
  padding: 1rem;
  z-index: 10;
  border-radius: 0 0 15px 15px;
}

.stars {
  display: flex;
  gap: 0.2rem;
  margin-bottom: 0.5rem;
}

.stars i {
  color: #FFD700;
  font-size: 1.1rem;
}

.rating-text {
  font-size: 0.9rem;
  opacity: 0.9;
}

.place-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.place-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0;
}

.place-category {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--deep-green);
  font-weight: 600;
  font-size: 1.1rem;
}

.place-description {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--text-medium);
  margin: 0;
}

.place-meta {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--text-dark);
  font-size: 1rem;
}

.meta-item i {
  color: var(--deep-green);
  width: 20px;
  text-align: center;
}

.meta-item a {
  color: var(--accent-green);
  text-decoration: none;
  transition: color 0.3s ease;
}

.meta-item a:hover {
  color: var(--primary-green);
  text-decoration: underline;
}

.place-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.feature-tag {
  background: rgba(34, 139, 34, 0.1);
  color: var(--deep-green);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid rgba(34, 139, 34, 0.2);
}

.place-actions {
  display: flex;
  gap: 0.8rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.action-btn {
  padding: 0.8rem 1.5rem;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.action-btn.primary {
  background: linear-gradient(135deg, var(--deep-green), var(--primary-green));
  color: white;
  box-shadow: 0 4px 15px rgba(34, 139, 34, 0.3);
}

.action-btn.secondary {
  background: rgba(34, 139, 34, 0.1);
  color: var(--deep-green);
  border: 1px solid rgba(34, 139, 34, 0.3);
}

.action-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(34, 139, 34, 0.3);
}


.similar-places {
  padding: 0 1.5rem 1.5rem;
}

.similar-places h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.similar-places-list {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 1rem;
}

/* Стили для списка мест */
.places-list {
  display: grid;
  gap: 1.5rem;
  padding-top: 2rem;
}

/* Система оценок */
.place-rating-section {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.place-rating-section h4 {
    margin: 0 0 1rem 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
}

.rating-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.2rem;
}

.rating-score {
    font-size: 1.4rem;
    font-weight: bold;
    color: var(--primary-green);
    background: rgba(80, 140, 85, 0.15);
    padding: 0.4rem 0.8rem;
    border-radius: 25px;
    min-width: 50px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(80, 140, 85, 0.2);
    display: block !important;
    visibility: visible !important;
}

.rating-stars-interactive {
    display: flex;
    gap: 0.2rem;
    margin-bottom: 1rem;
    margin-top: 0.2rem;
}

.rating-stars-interactive i {
    font-size: 1.2rem;
    color: #ffd700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.rating-stars-interactive i:hover,
.rating-stars-interactive i.active {
    color: #ffd700;
    transform: scale(1.1);
}

.rating-stars-interactive i:hover ~ i {
    color: #ffd700;
}

/* Кнопка добавления фото */
.add-photo-section {
    margin: 1.5rem 0;
    text-align: center;
    width: 100%;
}

.add-photo-btn,
.photo-upload-btn {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    border: none;
    padding: 1.2rem 2rem;
    border-radius: 15px;
    font-size: 1.3rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
}

.add-photo-btn::before,
.photo-upload-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.add-photo-btn:hover::before,
.photo-upload-btn:hover::before {
    left: 100%;
}

.add-photo-btn:hover,
.photo-upload-btn:hover {
    background: linear-gradient(135deg, #218838, #1ea085);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 35px rgba(40, 167, 69, 0.4);
}

.add-photo-btn:active,
.photo-upload-btn:active {
    transform: translateY(-1px) scale(1.02);
}

.add-photo-btn i,
.photo-upload-btn i {
    font-size: 1.4rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Модальное окно для незарегистрированных пользователей */
.login-required-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 500px;
    width: 90%;
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    z-index: 10001;
    display: none;
    animation: slideInUp 0.3s ease-out;
}

.login-required-modal.show {
    display: block;
}

.login-required-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    display: none;
}

.login-required-overlay.show {
    display: block;
}

.login-required-modal .modal-header {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--accent-green) 100%);
    color: white;
    border-radius: 20px 20px 0 0;
    padding: 1.5rem;
    text-align: center;
}

.login-required-modal .modal-header h3 {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 600;
}

.login-required-modal .modal-body {
    padding: 2rem;
    text-align: center;
}

.login-required-modal .modal-body p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #495057;
    margin: 0;
}

.login-required-modal .modal-footer {
    padding: 1.5rem 2rem 2rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.login-required-modal .btn-secondary {
    background: #6c757d;
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 10px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.login-required-modal .btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

.login-required-modal .btn-primary {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--accent-green) 100%);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 10px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.login-required-modal .btn-primary:hover {
    background: linear-gradient(135deg, var(--accent-green) 0%, var(--primary-green) 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 200, 83, 0.3);
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translate(-50%, -30px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

/* Модальное окно для добавления отзыва */
.add-review-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 600px;
    width: 90%;
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    z-index: 10001;
    display: none;
    animation: slideInUp 0.3s ease-out;
}

.add-review-modal.show {
    display: block;
}

.add-review-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    display: none;
}

.add-review-overlay.show {
    display: block;
}

.add-review-modal .modal-header {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--accent-green) 100%);
    color: white;
    border-radius: 20px 20px 0 0;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.add-review-modal .modal-header h3 {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.add-review-modal .close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.add-review-modal .close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.add-review-modal .modal-body {
    padding: 2rem;
}

.add-review-modal .review-form {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.add-review-modal .form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.add-review-modal .form-group label {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 1rem;
}

.add-review-modal .rating-stars {
    display: flex;
    gap: 0.5rem;
    margin: 0.5rem 0;
}

.add-review-modal .rating-stars i {
    font-size: 1.5rem;
    color: #ddd;
    cursor: pointer;
    transition: all 0.2s ease;
}

.add-review-modal .rating-stars i:hover,
.add-review-modal .rating-stars i.active {
    color: #ffd700;
    transform: scale(1.1);
}

.add-review-modal .rating-stars i:hover ~ i {
    color: #ddd;
}

.add-review-modal textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
    min-height: 180px;
    transition: all 0.3s ease;
}

.add-review-modal textarea:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(0, 200, 83, 0.1);
}

.add-review-modal input[type="text"] {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.add-review-modal input[type="text"]:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(0, 200, 83, 0.1);
}

.add-review-modal input[type="text"][readonly] {
    background-color: #f8f9fa;
    color: #6c757d;
    cursor: not-allowed;
}

.add-review-modal input[type="text"][readonly]:focus {
    border-color: #e9ecef;
    box-shadow: none;
}

.add-review-modal .modal-footer {
    padding: 1.5rem 2rem 2rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.add-review-modal .btn-secondary {
    background: #6c757d;
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 10px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.add-review-modal .btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

.add-review-modal .btn-primary {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--accent-green) 100%);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 10px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.add-review-modal .btn-primary:hover {
    background: linear-gradient(135deg, var(--accent-green) 0%, var(--primary-green) 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 200, 83, 0.3);
}

/* Кнопка добавления отзыва */
.add-review-btn {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #333;
    border: none;
    padding: 0.8rem 1.2rem;
    border-radius: 12px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    position: relative;
    overflow: hidden;
    margin: 1rem 0;
    width: fit-content;
    min-width: 180px;
}

.add-review-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.add-review-btn:hover::before {
    left: 100%;
}

.add-review-btn:hover {
    background: linear-gradient(135deg, #ffed4e, #ffd700);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
}

.add-review-btn:active {
    transform: translateY(-1px) scale(1.02);
}

.add-review-btn i {
    font-size: 1rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Модальное окно для просмотра всех отзывов */
.reviews-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 800px;
    width: 90%;
    max-height: 80vh;
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    z-index: 10001;
    display: none;
    animation: slideInUp 0.3s ease-out;
}

.reviews-modal.show {
    display: block;
}

.reviews-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    display: none;
}

.reviews-overlay.show {
    display: block;
}

.reviews-modal .modal-header {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--accent-green) 100%);
    color: white;
    border-radius: 20px 20px 0 0;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.reviews-modal .modal-header h3 {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.reviews-modal .close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.reviews-modal .close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.reviews-modal .modal-body {
    padding: 1.5rem;
    max-height: 60vh;
    overflow-y: auto;
}

.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.reviews-list .review-card {
    flex: none;
    max-height: none;
    overflow: visible;
    cursor: default;
    position: relative;
}

.reviews-list .review-card::after {
    display: none;
}

.reviews-list .review-card:hover {
    transform: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Кнопки лайков/дизлайков */
.review-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    padding-top: 0.5rem;
    border-top: 1px solid #e9ecef;
}

.like-btn, .dislike-btn {
    background: rgba(34, 139, 34, 0.1);
    border: 1px solid rgba(34, 139, 34, 0.3);
    border-radius: 12px;
    padding: 0.6rem 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--deep-green);
    font-weight: 500;
}

.like-btn:disabled, .dislike-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: rgba(34, 139, 34, 0.05);
    border-color: rgba(34, 139, 34, 0.1);
}

.like-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, var(--deep-green), var(--primary-green));
    color: white;
    border-color: var(--deep-green);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(34, 139, 34, 0.3);
}

.dislike-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #dc2626, #ef4444);
    color: white;
    border-color: #dc2626;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3);
}

.like-btn:active:not(:disabled), .dislike-btn:active:not(:disabled) {
    transform: translateY(0);
}

.like-count, .dislike-count {
    font-weight: 600;
    color: inherit;
}

/* Карточки отзывов пользователя в профиле */
.user-review-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.user-review-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.user-review-card .review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.user-review-card .review-place {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-green);
    font-weight: 600;
    transition: all 0.3s ease;
    border-radius: 6px;
    padding: 0.3rem 0.5rem;
}

.user-review-card .review-place:hover {
    background: rgba(0, 200, 83, 0.1);
    transform: translateX(3px);
}

.user-review-card .review-date {
    color: #666;
    font-size: 0.9rem;
}

.user-review-card .review-stars {
    color: #FFD700;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.user-review-card .review-text {
    color: #333;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.user-review-card .review-stats {
    display: flex;
    gap: 1rem;
    padding-top: 0.5rem;
    border-top: 1px solid #e9ecef;
    font-size: 0.9rem;
    color: #666;
}

.user-review-card .review-stats .likes {
    background: rgba(34, 139, 34, 0.1);
    color: var(--deep-green);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    border: 1px solid rgba(34, 139, 34, 0.2);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.user-review-card .review-stats .likes i {
    color: var(--deep-green);
    font-size: 0.9rem;
}

.user-review-card .review-stats .dislikes {
    background: rgba(220, 38, 38, 0.1);
    color: #dc2626;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    border: 1px solid rgba(220, 38, 38, 0.2);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.user-review-card .review-stats .dislikes i {
    color: #dc2626;
    font-size: 0.9rem;
}

.user-review-card .review-stats .delete-review-btn {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(220, 53, 69, 0.2);
    margin-left: auto;
}

.user-review-card .review-stats .delete-review-btn:hover {
    background: linear-gradient(135deg, #c82333 0%, #a71e2a 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.3);
}

.user-review-card .review-stats .delete-review-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(220, 53, 69, 0.2);
}

.photo-history-item {
    position: relative;
}

.photo-history-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.photo-history-item .delete-photo-btn {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(220, 53, 69, 0.2);
}

.photo-history-item .delete-photo-btn:hover {
    background: linear-gradient(135deg, #c82333 0%, #a71e2a 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.3);
}

.photo-history-item .delete-photo-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(220, 53, 69, 0.2);
}

.rating-message {
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, var(--primary-green), var(--accent-green));
    color: white;
    border-radius: 8px;
    font-size: 0.9rem;
    text-align: center;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Блок отзывов */
.reviews-section {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.reviews-section h5 {
    margin: 0 0 1rem 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
}

.reviews-container {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-green) transparent;
}

.reviews-container::-webkit-scrollbar {
    height: 6px;
}

.reviews-container::-webkit-scrollbar-track {
    background: transparent;
}

.reviews-container::-webkit-scrollbar-thumb {
    background: var(--primary-green);
    border-radius: 3px;
}

.review-card {
    flex: 0 0 250px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    max-height: 120px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

.review-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.review-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 30px;
    background: linear-gradient(transparent, white);
    pointer-events: none;
}

.review-rating {
    color: #FFD700;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.review-text {
    font-size: 0.9rem;
    color: var(--text-dark);
    line-height: 1.4;
    margin-bottom: 0.5rem;
    font-style: italic;
}

.review-author {
    font-size: 0.8rem;
    color: var(--text-medium);
    font-weight: 500;
}

.review-card.add-review {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 2px dashed var(--primary-green);
    background: rgba(var(--primary-green-rgb), 0.05);
}

.review-card.add-review:hover {
    background: rgba(var(--primary-green-rgb), 0.1);
    border-color: var(--accent-green);
}

.add-review-icon {
    font-size: 2rem;
    color: var(--primary-green);
    margin-bottom: 0.5rem;
}

.add-review-text {
    font-size: 0.9rem;
    color: var(--primary-green);
    font-weight: 600;
    text-align: center;
}

.place-card {
  background: white;
  border-radius: 15px;
  overflow: visible; /* Изменили на visible чтобы не обрезать содержимое */
  box-shadow: 0 6px 20px rgba(34, 139, 34, 0.1);
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  position: relative;
  max-width: 100%;
  height: auto;
  min-height: 280px; /* Увеличили для лучших пропорций */
  max-height: 380px; /* Увеличили максимальную высоту */
}

.place-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(34, 139, 34, 0.2);
  border-color: var(--light-green);
}

.place-card-image {
  height: 160px; /* Увеличили высоту для пропорций 16:9 */
  overflow: hidden;
}

.place-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

/* Адаптивность фото для разных экранов */
@media (min-width: 1400px) {
  .place-card-image {
    height: 180px; /* Больше фото на больших экранах */
  }
}

@media (max-width: 1200px) {
  .place-card-image {
    height: 140px; /* Меньше фото на средних экранах */
  }
}

@media (max-width: 768px) {
  .place-card-image {
    height: 120px; /* Еще меньше на планшетах */
  }
}

.place-card:hover .place-card-image img {
  transform: scale(1.05);
}

.place-card-content {
  padding: 0.3rem 0.7rem 0.7rem 0.7rem; /* Уменьшили верхний отступ */
}

.place-card-content h4 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-dark);
  margin: 0 0 0.8rem 0; /* Большой отступ чтобы не перекрывались */
  overflow: visible; /* Убираем ограничения */
  text-overflow: unset; /* Убираем обрезание текста */
  white-space: normal; /* Разрешаем перенос строк */
  height: auto; /* Автоматическая высота */
}

.place-card-content p {
  color: var(--text-medium);
  line-height: 1.3;
  margin: 0 0 0.3rem 0; /* Нормальный отступ */
  font-size: 0.75rem;
  overflow: hidden; /* Возвращаем для обрезания */
  text-overflow: ellipsis; /* Возвращаем многоточие */
  display: -webkit-box; /* Возвращаем для ограничения строк */
  -webkit-line-clamp: 3; /* Ограничиваем 3 строками */
  -webkit-box-orient: vertical; /* Вертикальная ориентация */
  max-height: 2.6em; /* Примерная высота 3 строк */
}

.place-card-meta {
  display: flex;
  justify-content: space-between;
  color: var(--text-medium);
  font-size: 0.7rem;
  flex-wrap: wrap;
  gap: 0.2rem;
  margin-top: 0.5rem; /* Опускаем полосу мета-информации вниз */
}

.place-card-meta span {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 35%;
  min-width: 0;
  font-size: 0.72rem;
}

.place-card-meta i {
  color: var(--deep-green);
}

/* Рекламная метка на карточке */
.place-card-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: linear-gradient(135deg, #FF6B35, #F7931E);
  color: white;
  padding: 0.3rem 0.8rem;
  border-radius: 15px;
  font-size: 0.7rem;
  font-weight: 600;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
}

/* Сердечко избранного на карточке */
.place-card-favorite {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 35px;
  height: 35px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.place-card-favorite:hover {
  transform: scale(1.1);
  background: rgba(255, 255, 255, 1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.place-card-favorite i {
  font-size: 1rem;
  color: #FF6B6B;
  transition: all 0.3s ease;
}

.place-card-favorite:hover i {
  color: #FF4757;
}

/* Активное состояние сердечка (добавлено в избранное) */
.place-card-favorite.active {
  background: #FF6B6B;
  border-color: #FF6B6B;
}

.place-card-favorite.active i {
  color: white;
}

.place-card-favorite.active:hover {
  background: #FF4757;
  border-color: #FF4757;
  transform: scale(1.1);
}

/* Разные типы бейджей */
.place-card-badge[data-type="polecane"] {
  background: linear-gradient(135deg, #FFD700, #FFA500);
  color: #333;
  border: 1px solid #FFA500;
}

/* Стили для кастомных маркеров на карте */
.custom-marker {
  background: transparent !important;
  border: none !important;
}

.custom-marker svg {
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.4));
  transition: all 0.3s ease;
  border-radius: 50%;
}

.custom-marker:hover svg {
  transform: scale(1.15);
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5));
}

/* Анимация пульсации для рекламных маркеров */
.custom-marker[data-promo="true"] svg {
  animation: markerPulse 2s infinite;
}

@keyframes markerPulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.place-card-badge[data-type="nowe"] {
  background: linear-gradient(135deg, #4CAF50, #45a049);
}

.place-card-badge[data-type="hot"] {
  background: linear-gradient(135deg, #FF5722, #E91E63);
}

.place-card-badge[data-type="specjalne"] {
  background: linear-gradient(135deg, #9C27B0, #673AB7);
}

/* Стили для реальных изображений */
.place-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px 8px 0 0;
  transition: transform 0.3s ease;
}

/* Стили для всплывающих окон на карте */
.leaflet-popup-content-wrapper {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(168, 196, 176, 0.9));
  backdrop-filter: blur(15px);
  border: 2px solid var(--primary-green);
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(34, 139, 34, 0.2);
  padding: 0;
  overflow: hidden;
}

.leaflet-popup-content {
  margin: 0;
  padding: 0;
  min-width: 180px;
  max-width: 200px;
}

.leaflet-popup-tip {
  background: var(--primary-green);
  border: 2px solid var(--primary-green);
}

/* Кастомное содержимое всплывающего окна */
.map-popup-content {
  padding: 0;
}

.map-popup-header {
  margin-bottom: 0.8rem;
}

.map-popup-image {
  width: 100%;
  height: 67px;
  border-radius: 10px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--deep-green), var(--primary-green));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.8rem;
  font-weight: bold;
  margin: 0 0 0.3rem 0;
}

.map-popup-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.map-popup-info {
  padding: 0 0.15rem;
}

.map-popup-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-dark);
  margin: 0 0 0.2rem 0;
  line-height: 1.2;
}

.map-popup-description {
  font-size: 0.7rem;
  color: var(--text-medium);
  line-height: 1.3;
  margin: 0 0 0.3rem 0;
}

.map-popup-meta {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.3rem;
  padding: 0 0.15rem;
}

.map-popup-rating {
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

.map-popup-rating .star {
  color: #FFD700;
  font-size: 0.7rem;
}

.map-popup-price {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--primary-green);
  background: rgba(34, 139, 34, 0.1);
  padding: 0.15rem 0.4rem;
  border-radius: 6px;
}

.map-popup-actions {
  display: flex;
  align-items: stretch;
  padding: 0 0.15rem;
}

.map-popup-btn {
  width: 100%;
  padding: 0.4rem;
  border: none;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
}

.map-popup-btn.primary {
  background: linear-gradient(135deg, var(--primary-green), var(--deep-green));
  color: white;
  border: 1px solid rgba(34, 139, 34, 0.3);
}

.map-popup-btn.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(34, 139, 34, 0.3);
  background: linear-gradient(135deg, var(--deep-green), var(--primary-green));
}

/* Стиль для активного состояния (добавлено в избранное) */
.map-popup-btn.primary.active {
  background: linear-gradient(135deg, #FF6B35, #F7931E);
  border-color: rgba(255, 107, 53, 0.3);
}

.map-popup-btn.primary.active:hover {
  background: linear-gradient(135deg, #F7931E, #FF6B35);
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.map-popup-btn.secondary {
  background: rgba(255, 255, 255, 0.8);
  color: var(--text-dark);
  border: 1px solid rgba(34, 139, 34, 0.2);
}

.map-popup-btn.secondary:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: translateY(-1px);
}

.map-popup-favorite {
  padding: 0.5rem;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(34, 139, 34, 0.2);
  border-radius: 8px;
  color: #FF6B6B;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.map-popup-favorite:hover {
  background: rgba(255, 255, 255, 0.9);
  color: #FF4757;
  transform: scale(1.1);
}

.map-popup-favorite.active {
  background: #FF6B6B;
  color: white;
  border-color: #FF6B6B;
}

/* Адаптивность */
@media (max-width: 768px) {
  .header-actions {
    gap: 0.5rem;
  }
  
  .header-action-btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
  }
  
  
  .place-details {
    width: 35%; /* 35% от ширины экрана для средних экранов */
    top: 200px; /* Под панелью категорий для средних экранов */
    height: calc(100vh - 200px - 70px); /* От панели до подвала */
  }
  
  .place-header {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .place-image img {
    height: 250px;
  }
  
  .place-title {
    font-size: 1.5rem;
  }
  
  .place-actions {
    flex-direction: column;
  }
  
  .action-btn {
    width: 100%;
    justify-content: center;
  }
  
  .similar-places-list {
    flex-direction: column;
    overflow-x: visible;
  }
}

@media (max-width: 480px) {
  .header-actions {
    gap: 0.3rem;
  }
  
  .header-action-btn {
    padding: 0.3rem 0.6rem;
    font-size: 0.75rem;
  }
  
  
  .place-details {
    width: 40%; /* 40% от ширины экрана для планшетов */
    top: 220px; /* Под панелью категорий для планшетов */
    height: calc(100vh - 220px - 60px); /* От панели до подвала */
  }
  
  .place-header {
    padding: 0 1rem 1rem;
  }
  
  .place-image img {
    height: 200px;
  }
  
  .place-title {
    font-size: 1.3rem;
  }
  
  .place-features {
    flex-direction: column;
  }
  
  .feature-tag {
    justify-content: center;
  }
}

/* Стили для метки текущего местоположения */
.current-location-marker {
    background: transparent !important;
    border: none !important;
}

.current-location-pulse {
    position: relative;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.current-location-dot {
    width: 12px;
    height: 12px;
    background: linear-gradient(135deg, var(--primary-green), var(--deep-green));
    border: 3px solid white;
    border-radius: 50%;
    box-shadow: 0 0 0 3px var(--primary-green);
    z-index: 3;
    animation: locationPulse 2s infinite;
}

.current-location-ring {
    position: absolute;
    width: 24px;
    height: 24px;
    border: 2px solid var(--primary-green);
    border-radius: 50%;
    opacity: 0.6;
    animation: locationRing 2s infinite;
}

.current-location-ring-2 {
    position: absolute;
    width: 36px;
    height: 36px;
    border: 1px solid var(--primary-green);
    border-radius: 50%;
    opacity: 0.3;
    animation: locationRing2 2s infinite;
}

@keyframes locationPulse {
    0% { 
        transform: scale(1); 
        box-shadow: 0 0 0 3px var(--primary-green); 
    }
    50% { 
        transform: scale(1.1); 
        box-shadow: 0 0 0 5px rgba(45, 90, 39, 0.8); 
    }
    100% { 
        transform: scale(1); 
        box-shadow: 0 0 0 3px var(--primary-green); 
    }
}

@keyframes locationRing {
    0% { 
        transform: scale(0.8); 
        opacity: 0.6; 
    }
    50% { 
        transform: scale(1.2); 
        opacity: 0.3; 
    }
    100% { 
        transform: scale(0.8); 
        opacity: 0.6; 
    }
}

@keyframes locationRing2 {
    0% { 
        transform: scale(0.6); 
        opacity: 0.3; 
    }
    50% { 
        transform: scale(1.4); 
        opacity: 0.1; 
    }
    100% { 
        transform: scale(0.6); 
        opacity: 0.3; 
    }
}

/* Адаптивность для кнопки фильтров */
@media (max-width: 1200px) {
    .filters-button-container {
        width: min(350px, 25vw); /* Адаптивная ширина для средних экранов */
    }
    
    .filters-panel {
        width: 350px;
        right: 1rem;
        /* top и max-height будут устанавливаться динамически через JavaScript */
    }
}

@media (max-width: 768px) {
    .filters-button-container {
        width: min(300px, 30vw); /* Адаптивная ширина для планшетов */
    }
    
    .filters-panel {
        width: 300px;
        right: 0.5rem;
        /* top и max-height будут устанавливаться динамически через JavaScript */
    }
    
    .categories-panel {
        padding: 0.8rem 1rem;
        gap: 1.5rem;
    }
    
    .seasonal-button-container {
        width: min(250px, 35vw); /* Уменьшили для маленьких экранов */
    }
}

@media (max-width: 480px) {
    .filters-button-container {
        width: min(250px, 35vw); /* Адаптивная ширина для очень маленьких экранов */
    }
    
    .filters-panel {
        width: 280px;
        right: 0.5rem;
        /* top и max-height будут устанавливаться динамически через JavaScript */
    }
    
    .categories-panel {
        padding: 0.6rem 0.8rem;
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .seasonal-button-container {
        width: min(200px, 40vw); /* Уменьшили для очень маленьких экранов */
    }
    
    .seasonal-button {
        height: 55px;
        padding: 0.3rem 0.8rem;
        font-size: 0.75rem;
    }
}

/* Подвал сайта - аналогичный шапке */
.footer {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--accent-green) 100%);
    backdrop-filter: blur(20px);
    border-top: 2px solid var(--border-green);
    box-shadow: 0 -4px 20px var(--shadow-green);
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0.6rem 1.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 60px;
}

.footer:hover {
    background: linear-gradient(135deg, var(--accent-green) 0%, var(--primary-green) 100%);
    box-shadow: 0 -6px 25px var(--shadow-green);
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 2rem;
    min-height: 40px;
    padding: 0 1.5rem;
}

/* Левая часть подвала */
.footer-left {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.copyright {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    font-weight: 400;
}

.privacy-link {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.privacy-link:hover {
    color: white;
    text-decoration: underline;
}

/* Контактная информация в футере */
.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-top: 8px;
}

.contact-email {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.3s ease;
}

.contact-email:hover {
    color: rgba(255, 255, 255, 0.9);
}

.contact-email i {
    font-size: 0.75rem;
    opacity: 0.8;
}

/* Правая часть подвала */
.footer-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.footer-btn {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
}

.footer-btn:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
    text-decoration: none;
}

/* Мерцающий эффект для кнопки "Skontaktuj się z nami" */
.footer-btn.blinking {
    animation: blink 4s infinite;
}

@keyframes blink {
    0%, 70% {
        opacity: 1;
        color: rgba(255, 255, 255, 0.8);
        text-shadow: none;
    }
    35% {
        opacity: 0.8;
        color: #FFD700;
        text-shadow: 0 0 15px #FFD700, 0 0 25px rgba(255, 215, 0, 0.6);
    }
}

/* Социальные сети */
.social-links {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.social-link {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.social-link:hover {
    color: white;
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

/* Стили для маршрута */
.route-close-button-html {
  position: fixed !important;
  bottom: 100px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  background: linear-gradient(135deg, #f44336, #d32f2f) !important;
  color: white !important;
  border: none !important;
  border-radius: 8px !important;
  padding: 12px 24px !important;
  font-size: 1.1rem !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  white-space: nowrap !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 4px 15px rgba(244, 67, 54, 0.4) !important;
  z-index: 1000 !important;
  font-family: 'Inter', sans-serif !important;
}

.route-close-button-html:hover {
  background: linear-gradient(135deg, #d32f2f, #b71c1c) !important;
  transform: translateX(-50%) translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(244, 67, 54, 0.6) !important;
}

.btn-close-route:hover {
  background: linear-gradient(135deg, #d32f2f, #b71c1c);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(244, 67, 54, 0.3);
}

.btn-close-route i {
  font-size: 1rem;
}

/* Стили для маркеров маршрута */
.route-start-marker {
  background: transparent;
  border: none;
}

.route-end-marker {
  background: transparent;
  border: none;
}

.place-marker {
  background: transparent;
  border: none;
}

/* Стили для метки с расстоянием на маршруте */
.route-distance-label {
  background: transparent;
  border: none;
}

.distance-badge {
  background: linear-gradient(135deg, #4CAF50, #45a049);
  color: white;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 700;
  text-align: center;
  box-shadow: 0 2px 8px rgba(76, 175, 80, 0.4);
  border: 2px solid white;
  min-width: 50px;
}

/* Адаптивность для подвала */
@media (max-width: 768px) {
    .footer {
        padding: 0.5rem 1rem;
        min-height: 50px;
    }
    
    .footer-container {
        gap: 1rem;
        min-height: 30px;
        padding: 0 1rem;
    }
    
    .footer-left {
        gap: 1rem;
    }
    
    .footer-right {
        gap: 1rem;
    }
    
    .footer-btn {
        font-size: 0.8rem;
        padding: 0.2rem 0.4rem;
    }
    
    .social-link {
        width: 28px;
        height: 28px;
        font-size: 1rem;
    }
    
    .copyright,
    .privacy-link {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .footer {
        padding: 0.4rem 0.8rem;
        min-height: 45px;
    }
    
    .footer-container {
        gap: 0.8rem;
        min-height: 25px;
        padding: 0 0.8rem;
    }
    
    .footer-left {
        gap: 0.8rem;
    }
    
    .footer-right {
        gap: 0.8rem;
    }
    
    .footer-btn {
        font-size: 0.75rem;
        padding: 0.2rem 0.3rem;
    }
    
    .social-link {
        width: 26px;
        height: 26px;
        font-size: 0.9rem;
    }
    
    .copyright,
    .privacy-link {
        font-size: 0.75rem;
    }
}

/* Модальное окно "О нас" */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
    overflow: hidden;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.9) 100%);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 900px;
    width: 95%;
    max-height: 90vh;
    overflow: hidden;
    animation: slideIn 0.4s ease;
    border: 2px solid rgba(74, 124, 89, 0.2);
}

/* Специальные стили для модального окна "О нас" */
#aboutModal .modal-content {
    max-width: 1170px; /* 900px * 1.3 = 1170px */
    width: 95%;
}

.modal-header {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--accent-green) 100%);
    color: white;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--border-green);
}

.modal-header h2 {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.modal-body {
    padding: 2rem;
    max-height: 60vh;
    overflow-y: auto;
}

.about-content {
    color: #333;
}

/* Главное фото в модальном окне */
.about-hero-image {
    position: relative;
    margin-bottom: 2rem;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    aspect-ratio: 21/9;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Заполняет всю ширину, обрезая по высоте если нужно */
    transition: transform 0.3s ease;
}

.about-hero-image:hover .hero-image {
    transform: scale(1.05);
}

.hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 2rem 1.5rem 1.5rem;
    text-align: center;
}

.hero-overlay h3 {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.polska-text {
    color: #FF4444;
    text-shadow: 0 2px 4px rgba(255, 68, 68, 0.3);
    font-weight: 700;
}

/* Баннерный дизайн для модального окна "О нас" */
.about-hero-banner {
    position: relative;
    margin-bottom: 2rem;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    aspect-ratio: 5/2;
}

.hero-banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.about-hero-banner:hover .hero-banner-image {
    transform: scale(1.05);
}

.hero-banner-text {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 2rem 1.5rem 1.5rem;
    text-align: center;
}

.hero-banner-text h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: 1px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Стили для модального окна "Kontakt" */
.kontakt-content {
    padding: 0;
}

.kontakt-hero-image {
    position: relative;
    margin-bottom: 2rem;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    aspect-ratio: 5/2;
}

.kontakt-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(74, 124, 89, 0.05) 0%, rgba(74, 124, 89, 0.02) 100%);
    border-radius: 10px;
    border-left: 4px solid var(--primary-green);
}

.kontakt-section h3 {
    color: var(--primary-green);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.contact-info p {
    margin: 0.8rem 0;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: #555;
}

.contact-info i {
    color: var(--primary-green);
    width: 20px;
}

.kontakt-section ul li,
.about-section ul li {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin: 0.8rem 0;
    color: #555;
}

.kontakt-section ul li i,
.about-section ul li i {
    color: var(--primary-green);
    width: 20px;
    text-align: center;
}

.contact-form-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(74, 124, 89, 0.3);
}

/* Стили для быстрой формы контактов */
.quick-contact-form {
    margin: 1.5rem 0;
}

.quick-contact-form .form-group {
    margin-bottom: 1rem;
}

.quick-contact-form input,
.quick-contact-form textarea {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.quick-contact-form input:focus,
.quick-contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-green);
}

/* Стили для кнопки в быстрой форме */
.quick-contact-form .contact-form-btn {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--accent-green) 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    justify-content: center;
    margin-top: 1rem;
}

.quick-contact-form .contact-form-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(74, 124, 89, 0.3);
}

.form-note {
    text-align: center;
    margin: 1rem 0 0.5rem;
    font-size: 0.9rem;
    color: #666;
}

.contact-form-btn.secondary {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
    width: 100%;
    justify-content: center;
}

.contact-form-btn.secondary:hover {
    background: linear-gradient(135deg, #5a6268 0%, #495057 100%);
}

/* Стили для формы обратной связи */
.contact-form-content {
    padding: 0;
}

.contact-form-hero-image {
    position: relative;
    margin-bottom: 2rem;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    aspect-ratio: 5/2;
}

.contact-form {
    padding: 0;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-green);
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    cursor: pointer;
    font-size: 0.9rem;
    line-height: 1.4;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.submit-btn {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--accent-green) 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    justify-content: center;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(74, 124, 89, 0.3);
}

.about-section h3 {
    color: var(--primary-green);
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--accent-green);
    padding-bottom: 0.5rem;
}

.about-section p {
    line-height: 1.6;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.about-section ul {
    list-style: none;
    padding: 0;
}

.about-section li {
    padding: 0.5rem 0;
    font-size: 1rem;
    line-height: 1.5;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.about-section li i {
    color: var(--accent-green);
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.about-section li:hover i {
    color: var(--primary-green);
    transform: scale(1.1);
}

.contact-info {
    background: rgba(74, 124, 89, 0.1);
    padding: 1rem;
    border-radius: 10px;
    margin-top: 1rem;
}

/* Стили для модального окна Kontakt */
.kontakt-modal {
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
}

.kontakt-content {
    padding: 0;
}

.kontakt-hero-image {
    position: relative;
    margin-bottom: 2rem;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px var(--shadow-green);
}

.kontakt-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(74, 124, 89, 0.05);
    border-radius: 15px;
    border-left: 4px solid var(--accent-green);
    transition: all 0.3s ease;
}

.kontakt-section:hover {
    background: rgba(74, 124, 89, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px var(--shadow-soft);
}

.kontakt-section h3 {
    color: var(--primary-green);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.kontakt-section h3 i {
    color: var(--accent-green);
    font-size: 1.2rem;
    width: 25px;
    text-align: center;
}

.kontakt-section p {
    line-height: 1.6;
    margin-bottom: 1rem;
    font-size: 1rem;
    color: var(--text-medium);
}

.kontakt-section .contact-info {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid var(--border-light);
    margin-top: 1rem;
}

.kontakt-section .contact-info p {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
}

.kontakt-section .contact-info p i {
    color: var(--accent-green);
    width: 20px;
    text-align: center;
}

.social-links-kontakt {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.social-link-kontakt {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, var(--accent-green), var(--primary-green));
    color: white;
    text-decoration: none;
    border-radius: 25px;
    transition: all 0.3s ease;
    font-weight: 500;
    box-shadow: 0 3px 10px var(--shadow-green);
}

.social-link-kontakt:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px var(--shadow-green);
    background: linear-gradient(135deg, var(--primary-green), var(--deep-green));
}

.social-link-kontakt i {
    font-size: 1.2rem;
}

.social-link-kontakt span {
    font-size: 0.9rem;
}

/* Стили для формы обратной связи */
.contact-form-modal {
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
}

.contact-form-content {
    padding: 0;
}

.contact-form-hero-image {
    position: relative;
    margin-bottom: 2rem;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px var(--shadow-green);
}

.contact-form {
    padding: 0;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--primary-green);
    font-size: 0.95rem;
}

.rating-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--primary-green);
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-light);
    border-radius: 10px;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-green);
    box-shadow: 0 0 0 3px rgba(30, 77, 107, 0.1);
    background: white;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.checkbox-group {
    margin-bottom: 2rem;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.9rem;
    line-height: 1.4;
    color: var(--text-medium);
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin: 0;
    transform: scale(1.2);
}

.checkmark {
    color: var(--accent-green);
    font-weight: 600;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 2px solid var(--border-light);
}

.btn-primary,
.btn-secondary {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-green), var(--primary-green));
    color: white;
    box-shadow: 0 3px 10px var(--shadow-green);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px var(--shadow-green);
    background: linear-gradient(135deg, var(--primary-green), var(--deep-green));
}

.btn-secondary {
    background: rgba(74, 124, 89, 0.1);
    color: var(--text-medium);
    border: 2px solid var(--border-light);
}

.btn-secondary:hover {
    background: rgba(74, 124, 89, 0.2);
    transform: translateY(-1px);
}

.contact-info p {
    margin: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-info i {
    color: var(--primary-green);
    width: 20px;
}

/* Анимации для модального окна */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { 
        opacity: 0;
        transform: scale(0.8) translateY(-50px);
    }
    to { 
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Адаптивность для модального окна */
@media (max-width: 768px) {
    .modal-content {
        width: 98%;
        max-height: 90vh;
    }
    
    /* Модальное окно "О нас" на планшетах */
    #aboutModal .modal-content {
        width: 98%;
        max-height: 90vh;
    }
    
    .modal-header {
        padding: 1rem 1.5rem;
    }
    
    .modal-header h2 {
        font-size: 1.5rem;
    }
    
    .modal-body {
        padding: 1.5rem;
    }
    
    .about-section h3 {
        font-size: 1.2rem;
    }
    
    .about-hero-banner {
        aspect-ratio: 5/2;
    }
    
    .hero-banner-text h3 {
        font-size: 1.6rem;
    }
    
    .hero-overlay {
        padding: 1.5rem 1rem 1rem;
    }
    
    .kontakt-section {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .kontakt-section h3 {
        font-size: 1.1rem;
    }
    
    .social-links-kontakt {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .social-link-kontakt {
        justify-content: center;
        padding: 0.75rem;
    }
    
    .contact-form-modal {
        max-width: 95vw;
        margin: 1rem;
    }
    
    .form-actions {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .btn-primary,
    .btn-secondary {
        justify-content: center;
        width: 100%;
    }
    
    .hero-overlay h3 {
        font-size: 1.5rem;
        letter-spacing: 0.5px;
    }
}

@media (max-width: 480px) {
    .modal-content {
        width: 99%;
        max-height: 95vh;
    }
    
    /* Модальное окно "О нас" на мобильных */
    #aboutModal .modal-content {
        width: 99%;
        max-height: 95vh;
    }
    
    .modal-header {
        padding: 0.8rem 1rem;
    }
    
    .modal-header h2 {
        font-size: 1.3rem;
    }
    
    .modal-body {
        padding: 1rem;
    }
    
    .about-hero-banner {
        aspect-ratio: 5/2;
    }
    
    .hero-banner-text h3 {
        font-size: 1.4rem;
    }
    
    .hero-overlay {
        padding: 1rem 0.8rem 0.8rem;
    }
    
    .hero-overlay h3 {
        font-size: 1.3rem;
        letter-spacing: 0.3px;
    }
}

/* Выезжающая панель пользователя */
.user-panel {
    position: fixed;
    top: 0;
    right: -350px;
    width: 350px;
    height: 100vh;
    background: white;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
}

.user-panel.active {
    right: 0;
}

.user-panel-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.user-panel-overlay.active {
    opacity: 1;
    visibility: visible;
}

.user-panel-header {
    padding: 2rem 1.5rem 1.5rem;
    background: linear-gradient(135deg, #508c55, #2b4e3a, #03353e);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.user-info {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.user-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.user-details {
    flex: 1;
}

.user-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.user-email {
    font-size: 0.9rem;
    opacity: 0.8;
}

.close-panel-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: background 0.2s ease;
}

.close-panel-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.user-panel-content {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
}

.panel-btn {
    width: 100%;
    padding: 1rem 1.5rem;
    border: none;
    background: white;
    border-radius: 12px;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1rem;
    color: var(--text-dark);
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.panel-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(80, 140, 85, 0.1), transparent);
    transition: left 0.5s;
}

.panel-btn:hover::before {
    left: 100%;
}

.panel-btn:hover {
    background: var(--background-light);
    transform: translateX(5px) translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-green);
}

.panel-btn.primary {
    background: linear-gradient(135deg, #508c55, #2b4e3a);
    color: white;
    border: none;
    box-shadow: 0 6px 20px rgba(80, 140, 85, 0.3);
}

.panel-btn.primary:hover {
    background: linear-gradient(135deg, #5a9b60, #325a42);
    box-shadow: 0 10px 30px rgba(80, 140, 85, 0.4);
    transform: translateX(5px) translateY(-2px);
}

.panel-btn.secondary {
    background: white;
    border: 2px solid #508c55;
    color: #508c55;
    box-shadow: 0 4px 12px rgba(80, 140, 85, 0.15);
}

.panel-btn.secondary:hover {
    background: #508c55;
    color: white;
    box-shadow: 0 8px 25px rgba(80, 140, 85, 0.3);
    transform: translateX(5px) translateY(-2px);
}

.panel-btn.logout-btn {
    color: #e74c3c;
    border-color: #e74c3c;
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.15);
}

.panel-btn.logout-btn:hover {
    background: #e74c3c;
    color: white;
    box-shadow: 0 8px 25px rgba(231, 76, 60, 0.3);
    transform: translateX(5px) translateY(-2px);
}

.panel-divider {
    height: 1px;
    background: var(--border-color);
    margin: 1rem 0;
}

.panel-btn i {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

/* Модальное окно аутентификации */
.auth-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 90%;
    max-width: 450px;
    max-height: 90vh;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.auth-modal.active {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    visibility: visible;
}

.auth-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.auth-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.auth-modal-content {
    padding: 0;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.auth-modal-header {
    padding: 1.5rem 2rem 1rem;
    background: linear-gradient(135deg, #508c55, #2b4e3a, #03353e);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.auth-modal-header h2 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
}

.close-modal-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: background 0.2s ease;
}

.close-modal-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.auth-modal-body {
    padding: 1.5rem 2rem 2rem;
    overflow-y: auto;
    flex: 1;
}

.auth-form {
    display: block;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 1rem;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(80, 140, 85, 0.1);
}

.auth-btn {
    width: 100%;
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.auth-btn.primary {
    background: linear-gradient(135deg, #508c55, #2b4e3a);
    color: white;
}

.auth-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(80, 140, 85, 0.3);
}

.auth-btn.google {
    background: white;
    color: #4285f4;
    border: 2px solid #4285f4;
}

.auth-btn.google:hover {
    background: #4285f4;
    color: white;
}


.auth-divider {
    text-align: center;
    margin: 1.5rem 0;
    position: relative;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border-color);
}

.auth-divider span {
    background: white;
    padding: 0 1rem;
    color: var(--text-medium);
    font-size: 0.9rem;
}

.auth-switch {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--text-medium);
}

.auth-switch a {
    color: var(--primary-green);
    text-decoration: none;
    font-weight: 600;
}

.auth-switch a:hover {
    text-decoration: underline;
}

/* Адаптивность модального окна */
@media (max-height: 800px) {
    .auth-modal {
        max-height: 95vh;
        width: 85%;
        max-width: 400px;
    }
    
    .auth-modal-header {
        padding: 1rem 1.5rem 0.8rem;
    }
    
    .auth-modal-header h2 {
        font-size: 1.2rem;
    }
    
    .auth-modal-body {
        padding: 1rem 1.5rem 1.5rem;
    }
    
    .form-group {
        margin-bottom: 1rem;
    }
    
    .auth-btn {
        padding: 0.8rem 1rem;
        margin-bottom: 0.8rem;
    }
}

@media (max-height: 700px) {
    .auth-modal {
        max-height: 98vh;
        width: 80%;
        max-width: 350px;
    }
    
    .auth-modal-header {
        padding: 0.8rem 1.2rem 0.5rem;
    }
    
    .auth-modal-body {
        padding: 0.8rem 1.2rem 1.2rem;
    }
    
    .form-group {
        margin-bottom: 0.8rem;
    }
    
    .form-group input {
        padding: 0.8rem;
    }
    
    .auth-btn {
        padding: 0.7rem 1rem;
        margin-bottom: 0.6rem;
        font-size: 0.9rem;
    }
    
    .auth-divider {
        margin: 1rem 0;
    }
}

@media (max-width: 480px) {
    .auth-modal {
        width: 95%;
        max-width: 320px;
        border-radius: 15px;
    }
    
    .auth-modal-content {
        border-radius: 15px;
    }
}

/* Модальное окно избранных мест */
.user-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.user-modal.active {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    visibility: visible;
}

.user-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.user-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.user-modal-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

.user-modal-header {
    padding: 1.5rem 2rem 1rem;
    background: linear-gradient(135deg, #508c55, #2b4e3a, #03353e);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.user-modal-header h2 {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 600;
}

.user-modal-header h2 i {
    margin-right: 0.5rem;
    color: var(--primary-green);
}

.user-modal-close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: background 0.2s ease;
}

.user-modal-close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.user-modal-body {
    padding: 2rem;
    overflow-y: auto;
    flex: 1;
}

.loading-message {
    text-align: center;
    padding: 2rem;
    color: #666;
    font-size: 1.1rem;
}

.loading-message i {
    margin-right: 0.5rem;
    color: var(--primary-green);
}

.favorites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.favorite-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.favorite-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.favorite-card-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(45deg, #f0f0f0, #e0e0e0);
    background-size: cover;
    background-position: center;
    position: relative;
}

.favorite-card-content {
    padding: 1.2rem;
}

.favorite-card-content h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.2rem;
    color: #333;
    line-height: 1.3;
}

.favorite-card-content p {
    margin: 0 0 1rem 0;
    color: #666;
    font-size: 0.9rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.favorite-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #f0f0f0;
}

.favorite-card-location {
    color: #888;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
}

.favorite-card-location i {
    margin-right: 0.3rem;
    color: var(--primary-green);
}

.favorite-card-actions {
    display: flex;
    gap: 0.8rem;
    align-items: center;
    justify-content: flex-end;
}

.favorite-want-to-visit-btn,
.favorite-visited-btn {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border: 2px solid #dee2e6;
    font-size: 1.1rem;
    cursor: pointer;
    padding: 0.6rem;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    color: #6c757d;
}

.favorite-want-to-visit-btn::before,
.favorite-visited-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s;
}

.favorite-want-to-visit-btn:hover::before,
.favorite-visited-btn:hover::before {
    left: 100%;
}

.favorite-want-to-visit-btn {
    color: #6c757d;
    border-color: #dee2e6;
}

.favorite-want-to-visit-btn:hover {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    color: #FF6B35;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    border-color: #FF6B35;
}

.favorite-want-to-visit-btn.active {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    color: #FF6B35;
    border-color: #FF6B35;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.2);
    animation: pulse-orange 2s infinite;
}

.favorite-want-to-visit-btn.active:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.3);
    animation: none;
}

.favorite-want-to-visit-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: linear-gradient(135deg, #e9ecef, #dee2e6);
    color: #adb5bd;
    border-color: rgba(173, 181, 189, 0.3);
}

.favorite-want-to-visit-btn.disabled:hover {
    transform: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    background: linear-gradient(135deg, #e9ecef, #dee2e6);
    color: #adb5bd;
}

.favorite-visited-btn {
    color: #6c757d;
    border-color: #dee2e6;
}

.favorite-visited-btn:hover {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    color: #28A745;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    border-color: #28A745;
}

.favorite-visited-btn.active {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    color: #28A745;
    border-color: #28A745;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.2);
    animation: pulse-green 2s infinite;
}

.favorite-visited-btn.active:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.3);
    animation: none;
}

.favorite-remove-btn {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border: 2px solid #ff4757;
    color: #ff4757;
    font-size: 1.1rem;
    cursor: pointer;
    padding: 0.6rem;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    animation: pulse-red 2s infinite;
}

.favorite-remove-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s;
}

.favorite-remove-btn:hover::before {
    left: 100%;
}

.favorite-remove-btn:hover {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    color: #ff4757;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    animation: none;
}

/* Анимация пульсации для красного сердечка */
@keyframes pulse-red {
    0% {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }
    50% {
        box-shadow: 0 4px 15px rgba(255, 71, 87, 0.3);
    }
    100% {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }
}

.empty-favorites {
    text-align: center;
    padding: 3rem 2rem;
    color: #666;
}

.empty-favorites i {
    font-size: 3rem;
    color: #ddd;
    margin-bottom: 1rem;
}

.empty-favorites h3 {
    margin: 0 0 0.5rem 0;
    color: #333;
}

.empty-favorites p {
    margin: 0;
    color: #888;
}

@media (max-width: 768px) {
    .user-modal {
        width: 95%;
        max-width: none;
        border-radius: 15px;
    }
    
    .user-modal-header {
        padding: 1rem 1.5rem 0.8rem;
    }
    
    .user-modal-header h2 {
        font-size: 1.2rem;
    }
    
    .user-modal-body {
        padding: 1.5rem;
    }
    
    .favorites-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* ==================== УВЕДОМЛЕНИЯ ==================== */

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #3b82f6;
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 10000;
    max-width: 400px;
    animation: slideInRight 0.3s ease-out;
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.notification-content i {
    font-size: 1.2rem;
}

.notification-success {
    background: #10b981;
}

.notification-error {
    background: #ef4444;
}

.notification-warning {
    background: #f59e0b;
}

.notification-info {
    background: #3b82f6;
}

/* ==================== РЕГИСТРАЦИЯ КОМПАНИИ ==================== */

.business-registration-content {
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
}

.business-form {
    padding: 0;
}

.form-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 12px;
    border-left: 4px solid var(--primary-green);
}

.form-section h3 {
    margin: 0 0 1.5rem 0;
    color: var(--text-dark);
    font-size: 1.2rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-section h3::before {
    content: '';
    width: 4px;
    height: 20px;
    background: var(--primary-green);
    border-radius: 2px;
}

.business-hours {
    display: grid;
    gap: 1rem;
}

.day-hours {
    display: grid;
    grid-template-columns: 120px 1fr auto 1fr;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    background: white;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.day-hours label {
    font-weight: 500;
    color: var(--text-dark);
    margin: 0;
}

.day-hours input[type="time"] {
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.9rem;
}

.day-hours span {
    text-align: center;
    font-weight: 500;
    color: #666;
}

.business-form .form-group {
    margin-bottom: 1.5rem;
}

.business-form .form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.business-form .form-group input,
.business-form .form-group select,
.business-form .form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.business-form .form-group input:focus,
.business-form .form-group select:focus,
.business-form .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(0, 200, 83, 0.1);
}

.business-form .form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.business-form .form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    padding: 2rem 1.5rem 1rem;
    border-top: 1px solid #e9ecef;
    margin-top: 2rem;
}

.business-form .btn {
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.business-form .btn.primary {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--accent-green) 100%);
    color: white;
}

.business-form .btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 200, 83, 0.3);
}

.business-form .btn.secondary {
    background: #6c757d;
    color: white;
}

.business-form .btn.secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

/* Responsive для формы регистрации компании */
@media (max-width: 768px) {
    .business-registration-content {
        max-width: 95%;
        margin: 1rem;
    }
    
    .form-section {
        padding: 1rem;
    }
    
    .day-hours {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        text-align: center;
    }
    
    .day-hours label {
        font-weight: 600;
    }
    
    .business-form .form-actions {
        flex-direction: column;
    }
    
    .business-form .btn {
        width: 100%;
        justify-content: center;
    }
}

/* ==================== ПРОГРЕСС ЗАГРУЗКИ ==================== */

#uploadProgressContainer {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
    z-index: 10001;
    min-width: 300px;
    text-align: center;
    display: none;
}

#uploadProgressContainer h3 {
    margin: 0 0 15px 0;
    color: var(--text-dark);
    font-size: 1.1rem;
}

#uploadProgress {
    width: 100%;
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

#uploadProgress::before {
    content: '';
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--primary-green), var(--light-green));
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 4px;
}

#uploadProgressContainer .progress-text {
    color: var(--text-medium);
    font-size: 0.9rem;
}

/* ==================== МОДАЛЬНОЕ ОКНО ЗАГРУЗКИ ФОТО ==================== */

.photo-upload-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.photo-upload-modal.active {
    opacity: 1;
    visibility: visible;
}

.photo-upload-content {
    background: white;
    border-radius: 16px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.photo-upload-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-light);
}

.photo-upload-header h2 {
    margin: 0;
    color: var(--text-dark);
    font-size: 1.4rem;
    font-weight: 600;
}

.close-upload-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-light);
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.close-upload-btn:hover {
    background: var(--shadow-soft);
    color: var(--text-dark);
}

.upload-dropzone {
    border: 2px dashed var(--border-green);
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    background: var(--cream-white);
    transition: all 0.3s ease;
    cursor: pointer;
    margin-bottom: 20px;
}

.upload-dropzone:hover {
    border-color: var(--primary-green);
    background: rgba(0, 200, 83, 0.05);
}

.upload-dropzone.dragover {
    border-color: var(--primary-green);
    background: rgba(0, 200, 83, 0.1);
    transform: scale(1.02);
}

.upload-dropzone i {
    font-size: 3rem;
    color: var(--primary-green);
    margin-bottom: 15px;
}

.upload-dropzone h3 {
    margin: 0 0 10px 0;
    color: var(--text-dark);
    font-size: 1.2rem;
}

.upload-dropzone p {
    margin: 0;
    color: var(--text-medium);
    font-size: 0.9rem;
}

.upload-file-input {
    display: none;
}

.upload-preview {
    margin-top: 20px;
    text-align: center;
}

.upload-preview img {
    max-width: 100%;
    max-height: 200px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.upload-description {
    margin-top: 20px;
}

.upload-description label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-dark);
    font-weight: 500;
}

.upload-description textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border-light);
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.9rem;
    resize: vertical;
    min-height: 80px;
    transition: border-color 0.2s ease;
}

.upload-description textarea:focus {
    outline: none;
    border-color: var(--primary-green);
}

.upload-actions {
    display: flex;
    gap: 15px;
    margin-top: 25px;
    justify-content: flex-end;
}

.upload-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.upload-btn.primary {
    background: var(--primary-green);
    color: white;
}

.upload-btn.primary:hover {
    background: var(--deep-green);
    transform: translateY(-1px);
}

.upload-btn.secondary {
    background: #f3f4f6;
    color: var(--text-medium);
    border: 1px solid var(--border-light);
}

.upload-btn.secondary:hover {
    background: #e5e7eb;
}

.upload-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Адаптивность для модального окна загрузки */
@media (max-width: 768px) {
    .photo-upload-content {
        padding: 20px;
        width: 95%;
    }
    
    .photo-upload-header h2 {
        font-size: 1.2rem;
    }
    
    .upload-dropzone {
        padding: 30px 15px;
    }
    
    .upload-dropzone i {
        font-size: 2.5rem;
    }
    
    .upload-actions {
        flex-direction: column;
    }
    
    .upload-btn {
        width: 100%;
    }
}

/* ==================== УВЕДОМЛЕНИЯ ПОЛЬЗОВАТЕЛЯ ==================== */
.notification-badge {
    background: #ff4757;
    color: white;
    border-radius: 50%;
    padding: 0.2rem 0.4rem;
    font-size: 0.7rem;
    font-weight: bold;
    margin-left: 0.5rem;
    min-width: 1.2rem;
    text-align: center;
    line-height: 1;
}

.notifications-list {
    max-height: 400px;
    overflow-y: auto;
}

.notification-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid #eee;
    transition: background-color 0.2s ease;
}

.notification-item:hover {
    background-color: #f8f9fa;
}

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

.notification-item.unread {
    background-color: #f8f9fa;
    border-left: 4px solid #007bff;
}

.notification-item.read {
    opacity: 0.7;
}

.unread-indicator {
    color: #007bff;
    font-size: 0.8rem;
    margin-left: 0.5rem;
}

.notification-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.notification-thumbnail {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid #e9ecef;
}

.notification-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.notification-icon.success {
    background-color: #d4edda;
    color: #155724;
}

.notification-icon.error {
    background-color: #f8d7da;
    color: #721c24;
}

.notification-icon.info {
    background-color: #d1ecf1;
    color: #0c5460;
}

.notification-content {
    flex: 1;
}

.notification-title {
    font-weight: 600;
    margin: 0 0 0.3rem 0;
    color: #333;
}

.notification-title i {
    margin-right: 0.5rem;
    color: var(--primary-green);
}

.notification-message {
    margin: 0 0 0.5rem 0;
    color: #666;
    line-height: 1.4;
}

.notification-place {
    color: #007bff;
    font-size: 0.85rem;
    font-weight: 500;
    margin: 0.25rem 0;
}

.notification-place i {
    margin-right: 0.3rem;
    color: var(--primary-green);
}

.notification-time {
    font-size: 0.8rem;
    color: #999;
}

.notification-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.notification-btn {
    padding: 0.3rem 0.8rem;
    border: none;
    border-radius: 4px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.notification-btn.primary {
    background-color: #007bff;
    color: white;
}

.notification-btn.primary:hover {
    background-color: #0056b3;
}

.notification-btn.secondary {
    background-color: #6c757d;
    color: white;
}

.notification-btn.secondary:hover {
    background-color: #545b62;
}

.empty-notifications {
    text-align: center;
    padding: 3rem 1rem;
    color: #666;
}

.empty-notifications i {
    font-size: 3rem;
    color: #ddd;
    margin-bottom: 1rem;
}

.empty-notifications h3 {
    margin: 0 0 0.5rem 0;
    color: #999;
}

.empty-notifications p {
    margin: 0;
    font-size: 0.9rem;
}

/* Стили для кнопки загрузки фото */
.photo-upload-btn {
    background: var(--primary-green);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
}

.photo-upload-btn:hover {
    background: var(--deep-green);
    transform: translateY(-1px);
}

.photo-upload-btn:active {
    transform: translateY(0);
}

/* ==============================================
   СТИЛИ ДЛЯ МОДАЛЬНОГО ОКНА ПРОФИЛЯ
   ============================================== */

.profile-modal-content {
    max-width: 1000px;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
    margin: 0 auto;
    position: relative;
}

/* Переопределяем общие стили для профиля */
.user-modal#profileModal {
    width: auto;
    max-width: 800px;
    height: auto;
    max-height: 90vh;
}

.user-modal#profileModal .user-modal-content {
    width: 100%;
    height: auto;
    max-height: 90vh;
    overflow: hidden;
}

.profile-content {
    padding: 0;
}

/* Заголовок профиля */
.profile-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: linear-gradient(135deg, var(--primary-green), var(--accent-green));
    color: white;
    border-radius: 10px 10px 0 0;
    margin-bottom: 20px;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.3);
    object-fit: cover;
    cursor: pointer;
    transition: all 0.3s ease;
}

.profile-avatar:hover {
    transform: scale(1.05);
    border-color: rgba(255, 255, 255, 0.6);
}

.profile-info {
    flex: 1;
}

.profile-name {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 5px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.profile-email {
    font-size: 0.9rem;
    opacity: 0.9;
    margin: 0 0 5px 0;
}

.profile-join-date {
    font-size: 0.8rem;
    opacity: 0.8;
    margin: 0;
}

.profile-edit-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.profile-edit-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Статистика профиля */
.profile-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 30px;
    padding: 0 20px;
}

.stat-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.stat-icon {
    font-size: 2rem;
    color: var(--primary-green);
    margin-bottom: 10px;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 5px 0;
}

.stat-label {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
}

/* Вкладки профиля */
.profile-tabs {
    display: flex;
    border-bottom: 2px solid #e9ecef;
    margin: 0 20px 20px 20px;
}

.profile-tab {
    padding: 12px 20px;
    background: none;
    border: none;
    font-size: 1rem;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.profile-tab.active {
    color: var(--primary-green);
    border-bottom-color: var(--primary-green);
}

.profile-tab:hover {
    color: var(--primary-green);
}

/* Содержимое вкладок */
.profile-tab-content {
    padding: 0 20px 20px 20px;
    display: none;
}

.profile-tab-content.active {
    display: block;
}

/* История загрузок фото */
.photo-history-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.photo-history-item:hover {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.photo-history-thumbnail {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
    border: 2px solid #e9ecef;
}

.photo-history-info {
    flex: 1;
}

.photo-history-place {
    font-weight: 600;
    color: #333;
    margin: 0 0 5px 0;
}

.photo-history-description {
    font-size: 0.9rem;
    color: #666;
    margin: 0 0 5px 0;
}

.photo-history-date {
    font-size: 0.8rem;
    color: #999;
    margin: 0;
}

.photo-history-status {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

.photo-history-status.pending {
    background: #fff3cd;
    color: #856404;
}

.photo-history-status.approved {
    background: #d4edda;
    color: #155724;
}

.photo-history-status.rejected {
    background: #f8d7da;
    color: #721c24;
}

/* Форма редактирования профиля */
.profile-edit-form {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

.profile-edit-form h3 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 1.2rem;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #333;
}

.form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-green);
}

.form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.btn-save {
    background: var(--primary-green);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-save:hover {
    background: var(--deep-green);
}

.btn-cancel {
    background: #6c757d;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-cancel:hover {
    background: #545b62;
}

/* ==============================================
   СТИЛИ ДЛЯ РЕДАКТИРОВАНИЯ ПРОФИЛЯ
   ============================================== */

/* Заголовок формы редактирования */
.edit-form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e9ecef;
}

.edit-form-header h3 {
    margin: 0;
    color: #333;
    font-size: 1.3rem;
}

/* Секция загрузки аватара */
.avatar-upload-section {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 10px;
}

.current-avatar {
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid #e9ecef;
    transition: all 0.3s ease;
}

.current-avatar:hover {
    border-color: var(--primary-green);
    transform: scale(1.05);
}

.current-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.current-avatar:hover .avatar-overlay {
    opacity: 1;
}

.avatar-overlay i {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.avatar-overlay span {
    font-size: 0.8rem;
    font-weight: 500;
}

#editAvatar {
    display: none;
}

.avatar-info {
    flex: 1;
}

.avatar-info p {
    margin: 5px 0;
    color: #666;
    font-size: 0.9rem;
}

.avatar-help {
    font-size: 0.8rem !important;
    color: #999 !important;
}

/* Справка для форм */
.form-help {
    display: block;
    margin-top: 5px;
    font-size: 0.8rem;
    color: #666;
    font-style: italic;
}

/* Форма удаления аккаунта */
.account-deletion-form {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

.deletion-warning {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    text-align: center;
}

.deletion-warning i {
    font-size: 2rem;
    color: #f39c12;
    margin-bottom: 10px;
}

.deletion-warning h3 {
    margin: 10px 0 5px 0;
    color: #856404;
}

.deletion-warning p {
    margin: 0;
    color: #856404;
}

.deletion-checklist {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.deletion-checklist h4 {
    margin: 0 0 10px 0;
    color: #333;
}

.deletion-checklist ul {
    margin: 0;
    padding-left: 20px;
}

.deletion-checklist li {
    margin: 5px 0;
    color: #666;
}

.deletion-checklist li i {
    color: var(--primary-green);
    margin-right: 8px;
}

/* Кнопка удаления */
.btn-delete {
    background: #dc3545;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-delete:hover {
    background: #c82333;
    transform: translateY(-1px);
}

.btn-delete:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
}

/* Чекбокс */
.form-group label input[type="checkbox"] {
    margin-right: 8px;
    transform: scale(1.2);
}

/* Секция настроек */
.settings-section {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.setting-item:hover {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.setting-item.danger {
    border-color: #dc3545;
    background: #fff5f5;
}

.setting-item.danger:hover {
    box-shadow: 0 2px 10px rgba(220, 53, 69, 0.2);
}

.setting-info {
    flex: 1;
}

.setting-info h4 {
    margin: 0 0 5px 0;
    color: #333;
    font-size: 1.1rem;
}

.setting-info h4 i {
    margin-right: 8px;
    color: var(--primary-green);
}

.setting-item.danger .setting-info h4 i {
    color: #dc3545;
}

.setting-info p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
}

/* ==============================================
   СТИЛИ ДЛЯ НАСТРОЕК БЕЗПИЕЧНОСТИ
   ============================================== */

/* Заголовок формы безопасности */
.security-form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e9ecef;
}

.security-form-header h3 {
    margin: 0;
    color: #333;
    font-size: 1.4rem;
}

/* Секции безопасности */
.security-sections {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.security-section {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 25px;
    transition: all 0.3s ease;
}

.security-section:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.section-header {
    margin-bottom: 20px;
}

.section-header h4 {
    margin: 0 0 8px 0;
    color: #333;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-header h4 i {
    color: var(--primary-green);
}

.section-header p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
}

/* Список сессий */
.sessions-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.session-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.session-item.current {
    background: #e8f5e8;
    border-color: var(--primary-green);
}

.session-info {
    flex: 1;
}

.session-device {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 5px;
    font-weight: 500;
    color: #333;
}

.session-device i {
    color: var(--primary-green);
}

.session-details {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.session-details span {
    font-size: 0.8rem;
    color: #666;
}

.session-status {
    display: flex;
    align-items: center;
}

.status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.status-badge.active {
    background: #d4edda;
    color: #155724;
}

.status-badge.success {
    background: #d4edda;
    color: #155724;
}

.status-badge.warning {
    background: #fff3cd;
    color: #856404;
}

.status-badge.danger {
    background: #f8d7da;
    color: #721c24;
}

/* Действия с сессиями */
.session-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* Двухфакторная аутентификация */
.two-factor-status {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.status-info {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #666;
}

.status-info i {
    color: #6c757d;
}

/* История logowań */
.login-history {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.login-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.login-info {
    flex: 1;
}

.login-time {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 5px;
    font-weight: 500;
    color: #333;
}

.login-time i {
    color: var(--primary-green);
}

.login-details {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.login-details span {
    font-size: 0.8rem;
    color: #666;
}

.login-status {
    display: flex;
    align-items: center;
}

/* Адаптивность для настроек безопасности */
@media (max-width: 768px) {
    .security-form-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .session-item,
    .login-item {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .session-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .session-actions button {
        width: 100%;
    }
    
    .two-factor-status {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

/* ==============================================
   СТИЛИ ДЛЯ НАСТРОЕК ПРИЛОЖЕНИЯ
   ============================================== */

.settings-modal-content {
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.settings-content {
    padding: 0;
}

/* Секции настроек */
.settings-sections {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.settings-section {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
}

.settings-section:hover {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.settings-section-header {
    margin-bottom: 15px;
}

.settings-section-header h3 {
    margin: 0 0 5px 0;
    color: #333;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.settings-section-header h3 i {
    color: var(--primary-green);
}

.settings-section-header p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
}

/* Настройки переключателей */
.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
}

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

.setting-info {
    flex: 1;
}

.setting-info h4 {
    margin: 0 0 5px 0;
    color: #333;
    font-size: 1rem;
}

.setting-info p {
    margin: 0;
    color: #666;
    font-size: 0.8rem;
}

/* Переключатели */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 24px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background-color: var(--primary-green);
}

input:checked + .toggle-slider:before {
    transform: translateX(26px);
}

/* Селекты */
.setting-select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: white;
    font-size: 0.9rem;
    color: #333;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.setting-select:focus {
    outline: none;
    border-color: var(--primary-green);
}

/* Кнопки действий */
.settings-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.btn-reset {
    background: #6c757d;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-reset:hover {
    background: #545b62;
}

.btn-save-settings {
    background: var(--primary-green);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-save-settings:hover {
    background: var(--deep-green);
}

/* Адаптивность для настроек */
@media (max-width: 768px) {
    .settings-modal-content {
        width: 95%;
        max-height: 90vh;
    }
    
    .setting-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .settings-actions {
        flex-direction: column;
    }
    
    .settings-actions button {
        width: 100%;
    }
}

/* Адаптивность для форм редактирования */
@media (max-width: 768px) {
    .avatar-upload-section {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .current-avatar {
        width: 80px;
        height: 80px;
    }
    
    .edit-form-header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .form-actions button {
        width: 100%;
    }
}

/* Адаптивность */
@media (max-width: 768px) {
    .profile-modal-content {
        width: 95%;
        max-height: 95vh;
    }
    
    .user-modal#profileModal {
        width: 95%;
        max-width: none;
        max-height: 95vh;
    }
    
    .profile-header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .profile-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 0 10px;
    }
    
    .profile-tabs {
        margin: 0 10px 20px 10px;
        overflow-x: auto;
    }
    
    .profile-tab-content {
        padding: 0 10px 20px 10px;
    }
    
    .photo-history-item {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
}

/* Анимации для кнопок статусов */
@keyframes pulse-orange {
    0% {
        box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
    }
    50% {
        box-shadow: 0 4px 20px rgba(255, 107, 53, 0.6);
    }
    100% {
        box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
    }
}

@keyframes pulse-green {
    0% {
        box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
    }
    50% {
        box-shadow: 0 4px 20px rgba(40, 167, 69, 0.6);
    }
    100% {
        box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
    }
}

/* Модальное окно подтверждения удаления */
.confirmation-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

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

.confirmation-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.confirmation-content {
    position: relative;
    background: white;
    border-radius: 20px;
    padding: 2rem;
    max-width: 400px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideInUp 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.confirmation-icon {
    font-size: 3rem;
    color: #ff4757;
    margin-bottom: 1rem;
    animation: pulse 2s infinite;
}

.confirmation-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 1rem 0;
}

.confirmation-message {
    color: #666;
    font-size: 1rem;
    line-height: 1.5;
    margin: 0 0 2rem 0;
}

.confirmation-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.confirmation-btn {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 120px;
    justify-content: center;
}

.confirmation-cancel {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    color: #666;
    border: 2px solid rgba(108, 117, 125, 0.3);
}

.confirmation-cancel:hover {
    background: linear-gradient(135deg, #e9ecef, #dee2e6);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.3);
}

.confirmation-confirm {
    background: linear-gradient(135deg, #ff4757, #ff6b7a);
    color: white;
    border: 2px solid #ff4757;
}

.confirmation-confirm:hover {
    background: linear-gradient(135deg, #ff3742, #ff4757);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 71, 87, 0.4);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

/* Стили для вкладок избранного */
.favorites-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 80vh;
}

.favorites-tabs {
    display: flex;
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--accent-green) 100%);
    border-radius: 12px 12px 0 0;
    padding: 0;
    margin: 0;
    box-shadow: 0 2px 10px var(--shadow-green);
    overflow: hidden;
    position: sticky;
    top: 0;
    z-index: 10;
}

.favorites-tab {
    flex: 1;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    padding: 1rem 0.5rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
}

.favorites-tab:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.favorites-tab.active {
    color: white;
    background: rgba(255, 255, 255, 0.2);
    box-shadow: inset 0 -3px 0 var(--light-green);
}

.favorites-tab.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(38, 224, 127, 0.1), rgba(21, 101, 192, 0.1));
    z-index: -1;
}

.favorites-tab i {
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.favorites-tab.active i {
    transform: scale(1.1);
}

.favorites-tab-content {
    background: white;
    border-radius: 0;
    min-height: 400px;
    position: relative;
    max-height: 60vh;
    overflow-y: auto;
    overflow-x: hidden;
}

.favorites-tab-panel {
    display: none;
    padding: 1.5rem;
    animation: fadeIn 0.3s ease-in-out;
}

.favorites-tab-panel.active {
    display: block;
}

/* Кнопка "ZOBACZ SWOJĄ MAPĘ" */
.favorites-map-button {
    width: 100%;
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: white;
    border: none;
    padding: 1rem 1.5rem;
    border-radius: 0 0 12px 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
    margin-top: 0;
    position: sticky;
    bottom: 0;
    z-index: 10;
    animation: pulse-text 2s infinite;
}

.favorites-map-button:hover {
    background: linear-gradient(135deg, #f7931e 0%, #ff6b35 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

.favorites-map-button:active {
    transform: translateY(0);
}

.favorites-map-button i {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.favorites-map-button:hover i {
    transform: scale(1.1);
}

/* Пульсация текста кнопки карты */
@keyframes pulse-text {
    0% {
        text-shadow: 0 0 0 rgba(255, 255, 255, 0);
    }
    50% {
        text-shadow: 0 0 10px rgba(255, 255, 255, 0.8), 0 0 20px rgba(255, 255, 255, 0.4);
    }
    100% {
        text-shadow: 0 0 0 rgba(255, 255, 255, 0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Адаптивность для вкладок */
@media (max-width: 768px) {
    .favorites-tabs {
        flex-direction: column;
        border-radius: 12px 12px 0 0;
    }
    
    .favorites-tab {
        padding: 0.8rem 0.5rem;
        font-size: 0.85rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .favorites-tab:last-child {
        border-bottom: none;
    }
    
    .favorites-tab.active {
        box-shadow: inset 3px 0 0 #ff6b6b;
    }
}

/* Улучшенные стили для пустых состояний */
.empty-favorites {
    text-align: center;
    padding: 3rem 2rem;
    color: #666;
}

.empty-favorites i {
    font-size: 3rem;
    color: #ddd;
    margin-bottom: 1rem;
    display: block;
}

.empty-favorites h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #555;
}

.empty-favorites p {
    font-size: 0.9rem;
    line-height: 1.5;
    max-width: 300px;
    margin: 0 auto;
}

/* Стили для сообщений об ошибках */
.error-message {
    text-align: center;
    padding: 3rem 2rem;
    color: #e74c3c;
}

.error-message i {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.error-message h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.error-message p {
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Стили для личной карты */
.personal-map-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.personal-map-modal.active {
    display: flex;
    opacity: 1;
}

.personal-map-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
}

.personal-map-content {
    position: relative;
    width: 95%;
    height: 90%;
    max-width: 1400px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    margin: auto;
    overflow: hidden;
}

.personal-map-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--accent-green) 100%);
    color: white;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.personal-map-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.close-personal-map {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close-personal-map:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.personal-map-filters {
    display: flex;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.map-filter-btn {
    background: white;
    border: 2px solid #e9ecef;
    color: #6c757d;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    justify-content: space-between;
    min-width: 120px;
}

.map-filter-btn:hover {
    border-color: var(--primary-green);
    color: var(--primary-green);
    transform: translateY(-2px);
}

.map-filter-btn.active {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--accent-green) 100%);
    border-color: var(--primary-green);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 200, 83, 0.3);
}

.filter-count {
    background: rgba(255, 255, 255, 0.2);
    color: inherit;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    min-width: 20px;
    text-align: center;
}

.map-filter-btn.active .filter-count {
    background: rgba(255, 255, 255, 0.3);
}

.personal-map-container {
    flex: 1;
    display: flex;
    position: relative;
    min-height: 0;
}

.personal-map {
    flex: 1;
    background: #f8f9fa;
    position: relative;
    overflow: hidden;
    border-radius: 0;
}

.personal-map-sidebar {
    width: 350px;
    background: white;
    border-left: 1px solid #e9ecef;
    display: flex;
    flex-direction: column;
}

.place-info-panel {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
}

.place-info-empty {
    text-align: center;
    padding: 2rem 1rem;
    color: #6c757d;
}

.place-info-empty i {
    font-size: 3rem;
    color: #dee2e6;
    margin-bottom: 1rem;
    display: block;
}

.place-info-empty h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #495057;
}

.place-info-empty p {
    font-size: 0.9rem;
    line-height: 1.5;
}

.place-info-content {
    display: none;
}

.place-info-content.active {
    display: block;
}

.place-info-photos {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.place-info-photo {
    aspect-ratio: 1;
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    background-color: #f8f9fa;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.place-info-photo.main {
    grid-column: span 2;
    aspect-ratio: 16/9;
}

.place-info-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--primary-green);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.place-info-description {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.place-info-meta {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.place-info-meta-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1rem;
    color: #666;
    padding: 0.5rem 0;
}

.place-info-meta-item i {
    width: 20px;
    color: var(--primary-green);
    font-size: 1.1rem;
}

.place-info-button {
    width: 100%;
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--accent-green) 100%);
    color: white;
    border: none;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.place-info-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 200, 83, 0.3);
}

.personal-map {
    flex: 1;
    background: #f8f9fa;
    position: relative;
    overflow: hidden;
    border-radius: 0;
}

/* Стили для Leaflet карты */
.personal-map .leaflet-container {
    height: 100%;
    width: 100%;
    border-radius: 0;
}

/* Кастомные стили для маркеров */
.custom-marker {
    background: white;
    border: 3px solid #e74c3c;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.custom-marker:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.custom-marker.favorite {
    border-color: #e74c3c;
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
}

.custom-marker.want-to-visit {
    border-color: #f39c12;
    background: rgba(243, 156, 18, 0.1);
    color: #f39c12;
}

.custom-marker.visited {
    border-color: #2ecc71;
    background: rgba(46, 204, 113, 0.1);
    color: #2ecc71;
}

/* Стили для кластеров */
.marker-cluster {
    background-clip: padding-box;
    border-radius: 20px;
}

.marker-cluster div {
    width: 30px;
    height: 30px;
    margin-left: 5px;
    margin-top: 5px;
    text-align: center;
    border-radius: 15px;
    font: 12px "Helvetica Neue", Arial, Helvetica, sans-serif;
    font-weight: bold;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.marker-cluster-red {
    background-color: rgba(231, 76, 60, 0.6);
}

.marker-cluster-red div {
    background-color: rgba(231, 76, 60, 0.8);
}

.marker-cluster-orange {
    background-color: rgba(243, 156, 18, 0.6);
}

.marker-cluster-orange div {
    background-color: rgba(243, 156, 18, 0.8);
}

.marker-cluster-green {
    background-color: rgba(46, 204, 113, 0.6);
}

.marker-cluster-green div {
    background-color: rgba(46, 204, 113, 0.8);
}

/* Стили для popup карты */
.map-popup {
    min-width: 200px;
    padding: 0.5rem;
}

.map-popup h3 {
    margin: 0 0 0.5rem 0;
    color: var(--primary-green);
    font-size: 1.1rem;
}

.map-popup p {
    margin: 0.25rem 0;
    font-size: 0.9rem;
    color: #666;
}

.popup-btn {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--accent-green) 100%);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 500;
    margin-top: 0.5rem;
    transition: all 0.3s ease;
}

.popup-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 200, 83, 0.3);
}

/* Стили для Leaflet popup */
.leaflet-popup-content-wrapper {
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.leaflet-popup-tip {
    background: white;
}

.personal-map-legend {
    width: 200px;
    background: white;
    border-left: 1px solid #e9ecef;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #495057;
}

.legend-icon {
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
}

/* Стили для пинов карты */

/* Адаптивность для личной карты */
@media (max-width: 768px) {
    .personal-map-content {
        width: 100%;
        height: 100%;
        border-radius: 0;
    }
    
    .personal-map-header {
        padding: 1rem;
    }
    
    .personal-map-header h2 {
        font-size: 1.2rem;
    }
    
    .personal-map-filters {
        padding: 0.5rem;
        flex-wrap: wrap;
    }
    
    .map-filter-btn {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
    
    .personal-map-container {
        flex-direction: column;
    }
    
    .personal-map-sidebar {
        width: 100%;
        border-left: none;
        border-top: 1px solid #e9ecef;
    }
}

/* Стили для пинов карты */
.map-placeholder {
    padding: 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.map-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-green);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.map-pins-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    width: 100%;
    max-width: 1200px;
    margin-bottom: 2rem;
}

.map-pin {
    background: white;
    border-radius: 15px;
    padding: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 1rem;
    border: 2px solid transparent;
}

.map-pin:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-green);
}

.pin-emoji {
    font-size: 2rem;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 200, 83, 0.1);
    border-radius: 50%;
    flex-shrink: 0;
}

.pin-info {
    flex: 1;
}

.pin-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-green);
    margin-bottom: 0.25rem;
}

.pin-location {
    font-size: 0.9rem;
    color: #6c757d;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.map-note {
    background: rgba(0, 200, 83, 0.1);
    color: var(--primary-green);
    padding: 1rem 1.5rem;
    border-radius: 10px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid rgba(0, 200, 83, 0.2);
}

/* Адаптивность для пинов */
@media (max-width: 768px) {
    .map-pins-container {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .map-pin {
        padding: 0.75rem;
        gap: 0.75rem;
    }
    
    .pin-emoji {
        font-size: 1.5rem;
        width: 40px;
        height: 40px;
    }
    
    .pin-name {
        font-size: 1rem;
    }
    
    .pin-location {
        font-size: 0.8rem;
    }
    
    .map-title {
        font-size: 1.2rem;
        margin-bottom: 1.5rem;
    }
    
    .map-note {
        font-size: 0.8rem;
        padding: 0.75rem 1rem;
    }
}

/* ==================== ДЕТАЛЬНЫЙ ПРОСМОТР УВЕДОМЛЕНИЯ ==================== */

.notification-detail-content {
    max-width: 600px;
    background: white;
}

.notification-detail-content .modal-header {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--accent-green) 100%);
    color: white;
    padding: 1.5rem;
    border-radius: 15px 15px 0 0;
}

.notification-detail-content .modal-header h2 {
    margin: 0;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.notification-detail-content .modal-body {
    padding: 2rem;
    color: #1f2937;
}

.notification-item {
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.notification-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.notification-message-preview {
    color: #6b7280;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* ==================== ПАНЕЛЬ УПРАВЛЕНИЯ КОМПАНИЕЙ ==================== */

.business-management-content {
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
}

.business-management-body {
    padding: 0;
}

.business-status-banner {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 12px;
    text-align: center;
    font-weight: 600;
}

.business-status-banner.pending {
    background: linear-gradient(135deg, #ffc107, #ff9800);
    color: #000;
}

.business-status-banner.approved {
    background: linear-gradient(135deg, var(--primary-green), var(--accent-green));
    color: white;
}

.business-status-banner.inactive {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}

.business-status-banner.rejected {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
}

.business-status-banner i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    display: block;
}

.business-info-card {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.business-info-card h3 {
    margin: 0 0 1rem 0;
    color: var(--text-dark);
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.business-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.business-info-item {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid var(--primary-green);
}

.business-info-item label {
    display: block;
    font-size: 0.85rem;
    color: #6b7280;
    margin-bottom: 0.25rem;
    font-weight: 500;
}

.business-info-item .value {
    font-size: 1rem;
    color: var(--text-dark);
    font-weight: 600;
}

.business-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    padding: 1.5rem;
}

.business-action-btn {
    background: white;
    border: 2px solid #e9ecef;
    padding: 1.5rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-dark);
}

.business-action-btn i {
    font-size: 2rem;
    color: var(--primary-green);
}

.business-action-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 200, 83, 0.2);
    border-color: var(--primary-green);
}

.business-action-btn.support {
    border-color: #3b82f6;
}

.business-action-btn.support i {
    color: #3b82f6;
}

.business-action-btn.support:hover {
    border-color: #3b82f6;
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.2);
}

.business-action-btn.locked {
    opacity: 0.6;
    border-color: #d1d5db;
    position: relative;
}

.business-action-btn.locked:hover {
    transform: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: #f59e0b;
}

.business-action-btn.locked i {
    color: #9ca3af;
}

.business-action-btn .premium-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.business-action-btn.delete {
    border-color: #dc3545;
}

.business-action-btn.delete i {
    color: #dc3545;
}

.business-action-btn.delete:hover {
    border-color: #dc3545;
    box-shadow: 0 8px 20px rgba(220, 53, 69, 0.2);
    background: rgba(220, 53, 69, 0.05);
}

/* ==================== СТРАНИЦА ВЫБОРА ПЛАНА ПОДПИСКИ ==================== */

#subscriptionPlansModal {
    z-index: 3000 !important;
}

.subscription-plans-content {
    max-width: 1200px;
    max-height: 90vh;
    overflow-y: auto;
}

.subscription-plans-body {
    padding: 2rem;
}

.plans-intro {
    text-align: center;
    font-size: 1.1rem;
    color: #6b7280;
    margin-bottom: 2rem;
}

/* Переключатель месяц/год */
.pricing-toggle {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 3rem;
    background: linear-gradient(135deg, #e5e7eb, #f3f4f6);
    padding: 0.75rem;
    border-radius: 16px;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 2px solid #d1d5db;
}

.toggle-btn {
    padding: 1rem 2.5rem;
    border: none;
    background: transparent;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.05rem;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #6b7280;
}

.toggle-btn:hover {
    background: rgba(255, 255, 255, 0.5);
    color: var(--primary-green);
}

.toggle-btn.active {
    background: linear-gradient(135deg, var(--primary-green), #059669);
    color: white;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    transform: scale(1.05);
}

.discount-badge {
    background: #10b981;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    margin-left: 0.5rem;
}

/* Сетка планов */
.subscription-plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

/* Карточка плана */
.plan-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    border: 2px solid transparent;
}

.plan-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.plan-card.basic {
    border-color: #e5e7eb;
}

.plan-card.standard {
    border-color: #10b981;
}

.plan-card.premium {
    border-color: #f59e0b;
    background: linear-gradient(135deg, #fffbeb 0%, white 100%);
}

.plan-card.recommended {
    border-color: #10b981;
    border-width: 3px;
}

.recommended-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.85rem;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

/* Заголовок плана */
.plan-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.plan-header h3 {
    font-size: 1.8rem;
    margin: 0 0 0.5rem 0;
    color: var(--text-dark);
}

.plan-badge {
    display: inline-block;
    padding: 0.25rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.plan-card.basic .plan-badge {
    background: #e5e7eb;
    color: #6b7280;
}

.plan-card.standard .plan-badge {
    background: #d1fae5;
    color: #065f46;
}

.plan-card.premium .plan-badge {
    background: #fef3c7;
    color: #92400e;
}

/* Цена */
.plan-price {
    text-align: center;
    margin-bottom: 1rem;
}

.plan-price .price {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--text-dark);
}

.plan-price .currency {
    font-size: 1.5rem;
    color: #6b7280;
    margin-left: 0.25rem;
}

.plan-price .period {
    font-size: 1rem;
    color: #9ca3af;
}

.yearly-savings {
    text-align: center;
    color: #10b981;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* Список возможностей */
.plan-features {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
}

.plan-features li {
    padding: 0.75rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.plan-features li i {
    color: #10b981;
    font-size: 1.1rem;
}

.plan-features li.disabled {
    color: #9ca3af;
}

.plan-features li.disabled i {
    color: #d1d5db;
}

/* Кнопки выбора плана */
.plan-btn {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.basic-btn {
    background: #e5e7eb;
    color: #6b7280;
}

.basic-btn:hover {
    background: #d1d5db;
}

.standard-btn {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.standard-btn:hover {
    background: linear-gradient(135deg, #059669, #047857);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(16, 185, 129, 0.3);
}

.premium-btn {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}

.premium-btn:hover {
    background: linear-gradient(135deg, #d97706, #b45309);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(245, 158, 11, 0.3);
}

.trial-info {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.85rem;
    color: #10b981;
    font-weight: 600;
}

/* Футер с информацией */
.plans-footer {
    text-align: center;
    padding: 2rem;
    background: #f9fafb;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.plans-footer p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #6b7280;
    margin: 0;
}

.plans-footer i {
    color: var(--primary-green);
    font-size: 1.2rem;
}

/* Карточка подписки в панели управления */
.business-subscription-card {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border: 2px solid #10b981;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.business-subscription-card.standard {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-color: #10b981;
}

.business-subscription-card.premium {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border-color: #f59e0b;
}

.subscription-info {
    flex: 1;
}

.subscription-info h4 {
    margin: 0 0 0.5rem 0;
    color: var(--text-dark);
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.subscription-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.subscription-badge-basic {
    background: #e5e7eb;
    color: #6b7280;
}

.subscription-badge-standard {
    background: #10b981;
    color: white;
}

.subscription-badge-premium {
    background: #f59e0b;
    color: white;
}

.subscription-info p {
    margin: 0.25rem 0;
    color: #6b7280;
    font-size: 0.9rem;
}

.upgrade-btn {
    padding: 0.75rem 2rem;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.upgrade-btn:hover {
    background: linear-gradient(135deg, #059669, #047857);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.subscription-limits {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.limit-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #6b7280;
}

.limit-item i {
    color: #10b981;
    font-size: 1rem;
}

.limit-item strong {
    color: var(--text-dark);
}

.premium-crown {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
}

.premium-crown i {
    font-size: 2.5rem;
    color: #f59e0b;
    animation: pulse 2s infinite;
}

.premium-crown span {
    font-weight: 700;
    color: #92400e;
    font-size: 1.1rem;
}

/* Адаптивность */
@media (max-width: 768px) {
    .subscription-plans-grid {
        grid-template-columns: 1fr;
    }
    
    .pricing-toggle {
        flex-direction: column;
        width: 100%;
    }
    
    .plans-footer {
        flex-direction: column;
        gap: 1rem;
    }
    
    .business-subscription-card {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .subscription-limits {
        flex-direction: column;
        gap: 0.75rem;
    }
}

/* ==================== ПАНЕЛЬ УПРАВЛЕНИЯ ФИРМАМИ (АДМИН) ==================== */

.admin-btn.business-management {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
}

.admin-btn.business-management:hover {
    background: linear-gradient(135deg, #4f46e5, #4338ca);
}

.business-management-header {
    margin-bottom: 2rem;
}

.business-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.stat-card i {
    font-size: 2rem;
    color: #6366f1;
}

.stat-card.pending i {
    color: #f59e0b;
}

.stat-card.approved i {
    color: #10b981;
}

.stat-card.rejected i {
    color: #ef4444;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
}

.stat-label {
    font-size: 0.9rem;
    color: #6b7280;
}

.business-management-list {
    display: grid;
    gap: 1rem;
}

.business-management-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.business-management-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.business-quick-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 1rem 0;
    padding: 1rem;
    background: #f9fafb;
    border-radius: 8px;
}

.business-quick-info div {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #4b5563;
}

.business-quick-info i {
    color: #6366f1;
}

.business-management-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.action-btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.action-btn.view {
    background: #6366f1;
    color: white;
}

.action-btn.view:hover {
    background: #4f46e5;
}

.action-btn.edit {
    background: #f59e0b;
    color: white;
}

.action-btn.edit:hover {
    background: #d97706;
}

.action-btn.approve {
    background: #10b981;
    color: white;
}

.action-btn.approve:hover {
    background: #059669;
}

.action-btn.reject {
    background: #ef4444;
    color: white;
}

.action-btn.reject:hover {
    background: #dc2626;
}

.action-btn.deactivate {
    background: #f59e0b;
    color: white;
}

.action-btn.deactivate:hover {
    background: #d97706;
}

.action-btn.delete {
    background: #ef4444;
    color: white;
}

.action-btn.delete:hover {
    background: #dc2626;
}

/* ==================== ФОТОГРАФИИ В КАРТОЧКЕ БИЗНЕСА (АДМИН ПАНЕЛЬ) ==================== */

.business-card-photos {
    margin: 1.5rem 0;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 12px;
}

.business-card-photos h4 {
    margin: 0 0 1rem 0;
    color: var(--text-dark);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.business-photos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.business-photo-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 4/3;
    background: #e9ecef;
    cursor: pointer;
    transition: all 0.3s ease;
}

.business-photo-item:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.business-photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.business-photo-item:hover img {
    filter: brightness(1.1);
}

/* ==================== ЗАГРУЗКА ФОТОГРАФИЙ В ФОРМЕ РЕГИСТРАЦИИ ==================== */

.photo-upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
    border: 2px dashed #dee2e6;
    border-radius: 12px;
    background: #f8f9fa;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.photo-upload-label:hover {
    border-color: var(--primary-green);
    background: rgba(0, 200, 83, 0.05);
}

.photo-upload-label i {
    font-size: 3rem;
    color: var(--primary-green);
    margin-bottom: 1rem;
}

.photo-upload-label span {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.photo-upload-label small {
    font-size: 0.85rem;
    color: #6b7280;
}

.photo-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.photo-preview-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 1;
    background: #f8f9fa;
}

.photo-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-preview-item .remove-photo {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: rgba(220, 53, 69, 0.9);
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.photo-preview-item .remove-photo:hover {
    background: #dc3545;
    transform: scale(1.1);
}

.photo-limit-indicator {
    margin-top: 1rem;
    padding: 1rem;
    background: #f0fdf4;
    border: 2px solid #10b981;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.photo-limit-indicator .limit-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    color: var(--text-dark);
}

.photo-limit-indicator #photoCount {
    color: #10b981;
    font-size: 1.3rem;
}

.photo-limit-indicator #photoLimit {
    color: #6b7280;
    font-size: 1.3rem;
}

.photo-limit-indicator .limit-hint {
    padding: 0.35rem 0.85rem;
    background: #e5e7eb;
    color: #6b7280;
    border-radius: 12px;
    font-size: 0.85rem;
}

.upgrade-limit-btn {
    padding: 0.6rem 1.25rem;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.upgrade-limit-btn:hover {
    background: linear-gradient(135deg, #059669, #047857);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

@media (max-width: 768px) {
    .photo-limit-indicator {
        flex-direction: column;
    }
    
    .upgrade-limit-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ==================== МОДАЛЬНОЕ ОКНО УВЕДОМЛЕНИЯ О ЛИМИТЕ ==================== */

#limitReachedModal {
    z-index: 3500 !important;
}

.limit-reached-content {
    max-width: 550px;
    text-align: center;
}

.limit-reached-body {
    padding: 2rem;
}

.limit-icon {
    font-size: 4rem;
    color: #f59e0b;
    margin-bottom: 1.5rem;
}

.limit-reached-body h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.limit-reached-body p {
    color: #6b7280;
    font-size: 1rem;
    margin-bottom: 2rem;
}

.upgrade-options {
    display: grid;
    gap: 1rem;
    margin-bottom: 2rem;
}

.upgrade-option {
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.upgrade-option:hover {
    border-color: #10b981;
    background: #f0fdf4;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

.upgrade-option.premium:hover {
    border-color: #f59e0b;
    background: #fffbeb;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.2);
}

.option-badge {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.9rem;
}

.option-badge.standard {
    background: #10b981;
    color: white;
}

.option-badge.premium {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}

.option-features {
    flex: 1;
    text-align: left;
}

.option-features strong {
    display: block;
    color: var(--text-dark);
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.option-features span {
    color: #6b7280;
    font-size: 0.85rem;
}

.option-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-dark);
}

.limit-reached-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.limit-reached-actions .btn {
    flex: 1;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: none;
}

.limit-reached-actions .btn.secondary {
    background: #6c757d;
    color: white;
}

.limit-reached-actions .btn.secondary:hover {
    background: #5a6268;
}

.limit-reached-actions .btn.primary {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.limit-reached-actions .btn.primary:hover {
    background: linear-gradient(135deg, #059669, #047857);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

@media (max-width: 768px) {
    .limit-reached-actions {
        flex-direction: column;
    }
    
    .upgrade-option {
        flex-direction: column;
        text-align: center;
    }
}

/* ==================== МОДАЛЬНОЕ ОКНО ПОДТВЕРЖДЕНИЯ УДАЛЕНИЯ ==================== */

#deleteConfirmModal {
    z-index: 3000 !important;
}

.delete-confirm-content {
    max-width: 500px;
    text-align: center;
}

.delete-confirm-body {
    padding: 2rem;
}

.warning-icon {
    font-size: 4rem;
    color: #dc3545;
    margin-bottom: 1.5rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.delete-confirm-body h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.warning-message {
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: left;
}

.warning-message p {
    margin: 0 0 1rem 0;
    color: #856404;
}

.warning-message ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.warning-message li {
    color: #856404;
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.warning-message li i {
    color: #dc3545;
    font-size: 1.1rem;
}

.confirmation-input {
    margin-bottom: 1.5rem;
}

.confirmation-input label {
    display: block;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
    font-size: 1rem;
}

.confirmation-input input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    font-size: 1rem;
    text-align: center;
    font-weight: 600;
    transition: all 0.3s ease;
}

.confirmation-input input:focus {
    outline: none;
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.delete-confirm-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.delete-confirm-actions .btn {
    flex: 1;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.delete-confirm-actions .btn.secondary {
    background: #6c757d;
    color: white;
    border: none;
}

.delete-confirm-actions .btn.secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

.delete-confirm-actions .btn.danger {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
    border: none;
}

.delete-confirm-actions .btn.danger:hover:not(:disabled) {
    background: linear-gradient(135deg, #c82333, #bd2130);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4);
}

.delete-confirm-actions .btn.danger:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

@media (max-width: 768px) {
    .delete-confirm-content {
        max-width: 95%;
        margin: 1rem;
    }
    
    .delete-confirm-body {
        padding: 1.5rem;
    }
    
    .warning-icon {
        font-size: 3rem;
    }
    
    .delete-confirm-body h3 {
        font-size: 1.2rem;
    }
    
    .delete-confirm-actions {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .business-management-content {
        max-width: 95%;
        margin: 1rem;
    }
    
    .business-actions {
        grid-template-columns: 1fr;
    }
}

/* ==================== ВЫБОР ПЛАНА В ФОРМЕ РЕГИСТРАЦИИ ==================== */

.subscription-plan-selector {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.plan-option {
    position: relative;
    cursor: pointer;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    background: white;
}

.plan-option:hover {
    border-color: var(--primary-green);
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.plan-option input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.plan-option input[type="radio"]:checked + .plan-option-content {
    border-color: var(--primary-green);
}

.plan-option input[type="radio"]:checked ~ .plan-option-content::before {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--primary-green);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
}

.plan-option.recommended {
    border-color: #10b981;
    border-width: 3px;
}

.plan-option.premium {
    border-color: #f59e0b;
}

.recommended-mini-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.plan-option-content {
    position: relative;
}

.plan-option-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.plan-option-header h4 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--text-dark);
}

.plan-price {
    font-weight: 700;
    color: var(--primary-green);
    font-size: 0.9rem;
}

.plan-option-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.plan-option-features li {
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #6b7280;
    font-size: 0.85rem;
}

.plan-option-features li i {
    color: #10b981;
    font-size: 0.9rem;
}

/* ==================== МАРКЕРЫ ПОДПИСОК НА КАРТЕ ==================== */

/* Пульсация для Standard маркеров */
.marker-pulse {
    animation: marker-pulse-animation 2s ease-in-out infinite;
}

@keyframes marker-pulse-animation {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.15);
        opacity: 0.85;
    }
}

/* Premium маркеры (круг с градиентом и пульсацией) */
.premium-marker-pulse {
    position: relative;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.premium-marker-dot {
    width: 18px;
    height: 18px;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 70%, #FF8C00 100%);
    border: 2px solid #FFFFFF;
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.6);
    z-index: 3;
    animation: premiumPulse 2s infinite;
    position: relative;
}

.premium-marker-dot::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 4px;
    height: 4px;
    background: white;
    border-radius: 50%;
    opacity: 0.9;
}

.premium-marker-ring {
    position: absolute;
    width: 22px;
    height: 22px;
    border: 2px solid #FFD700;
    border-radius: 50%;
    opacity: 0.6;
    animation: premiumRing 2s infinite;
}

.premium-marker-ring-2 {
    position: absolute;
    width: 28px;
    height: 28px;
    border: 1px solid #FFD700;
    border-radius: 50%;
    opacity: 0.3;
    animation: premiumRing2 2s infinite;
}

@keyframes premiumPulse {
    0% { 
        transform: scale(1); 
        box-shadow: 0 0 8px rgba(255, 215, 0, 0.6); 
    }
    50% { 
        transform: scale(1.1); 
        box-shadow: 0 0 15px rgba(255, 215, 0, 1); 
    }
    100% { 
        transform: scale(1); 
        box-shadow: 0 0 8px rgba(255, 215, 0, 0.6); 
    }
}

@keyframes premiumRing {
    0% { 
        transform: scale(0.8); 
        opacity: 0.6; 
    }
    50% { 
        transform: scale(1.3); 
        opacity: 0.2; 
    }
    100% { 
        transform: scale(0.8); 
        opacity: 0.6; 
    }
}

@keyframes premiumRing2 {
    0% { 
        transform: scale(0.7); 
        opacity: 0.3; 
    }
    50% { 
        transform: scale(1.5); 
        opacity: 0.1; 
    }
    100% { 
        transform: scale(0.7); 
        opacity: 0.3; 
    }
}

/* Hover эффекты для маркеров */
.custom-marker:hover {
    transform: scale(1.2);
    transition: transform 0.2s ease;
    z-index: 1000 !important;
}

.marker-pulse:hover {
    animation: none;
    transform: scale(1.3) !important;
}

.premium-marker-pulse:hover .premium-marker-dot {
    transform: scale(1.3) !important;
    box-shadow: 0 0 20px rgba(255, 215, 0, 1) !important;
    transition: all 0.3s ease;
}

.premium-marker-pulse:hover .premium-marker-ring,
.premium-marker-pulse:hover .premium-marker-ring-2 {
    animation-play-state: paused;
    opacity: 0.8;
}

/* ==================== ОТОБРАЖЕНИЕ ЛОКАЛИЗАЦИИ ==================== */
.location-display {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    font-size: 0.95rem;
    color: var(--text-light);
}

.location-display i {
    color: var(--primary-green);
    font-size: 1.2rem;
}

.location-display span {
    flex: 1;
}

/* ==================== УПРАВЛЕНИЕ ЛОКАЛИЗАЦИЯМИ ==================== */

/* Индикатор лимита локализаций */
.locations-limit-indicator {
    background: linear-gradient(135deg, rgba(0, 200, 83, 0.1), rgba(21, 101, 192, 0.1));
    border: 1px solid rgba(0, 200, 83, 0.3);
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

.locations-limit-indicator h4 {
    margin: 0 0 0.75rem 0;
    font-size: 0.95rem;
    color: var(--text-light);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.locations-limit-indicator h4 i {
    color: var(--primary-green);
}

.limit-progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.limit-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-green), var(--deep-green));
    border-radius: 4px;
    transition: width 0.3s ease;
}

.limit-progress-fill.warning {
    background: linear-gradient(90deg, #f59e0b, #d97706);
}

.limit-progress-fill.danger {
    background: linear-gradient(90deg, #ef4444, #dc2626);
}

.limit-text {
    font-size: 0.875rem;
    color: var(--text-medium);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.limit-upgrade-hint {
    font-size: 0.8rem;
    color: var(--text-medium);
    margin-top: 0.5rem;
    font-style: italic;
}

/* Контейнер списка локализаций */
.locations-list-container {
    margin-bottom: 1.5rem;
}

.locations-list-container > h3 {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin: 0 0 1rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.locations-list-container > h3 i {
    color: var(--primary-green);
}

/* Список карточек локализаций */
.locations-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1rem;
}

/* Карточка локализации */
.location-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.25rem;
    transition: all 0.3s ease;
    position: relative;
}

.location-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.location-card-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.location-card-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary-green), var(--deep-green));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.location-card-info {
    flex: 1;
}

.location-card-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0 0 0.25rem 0;
}

.location-card-address {
    font-size: 0.9rem;
    color: var(--text-medium);
    margin: 0 0 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.location-card-address i {
    color: var(--text-light);
    font-size: 0.8rem;
}

.location-card-status {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.location-card-status.approved {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.location-card-status.pending {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.location-card-status.rejected {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.location-card-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.location-action-btn {
    flex: 1;
    min-width: 140px;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.location-action-btn.primary {
    background: linear-gradient(135deg, var(--primary-green), var(--deep-green));
    color: white;
}

.location-action-btn.primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 200, 83, 0.3);
}

.location-action-btn.secondary {
    background: #f3f4f6;
    color: var(--text-dark);
}

.location-action-btn.secondary:hover {
    background: #e5e7eb;
}

.location-action-btn.danger {
    background: #fee2e2;
    color: #dc2626;
}

.location-action-btn.danger:hover {
    background: #fecaca;
}

.location-action-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Кнопка добавления локализации */
.add-location-btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(0, 200, 83, 0.1), rgba(21, 101, 192, 0.1));
    border: 2px dashed rgba(0, 200, 83, 0.3);
    border-radius: 12px;
    color: var(--primary-green);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.add-location-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, rgba(0, 200, 83, 0.15), rgba(21, 101, 192, 0.15));
    border-color: var(--primary-green);
    transform: translateY(-2px);
}

.add-location-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: rgba(156, 163, 175, 0.1);
    border-color: rgba(156, 163, 175, 0.3);
    color: var(--text-light);
}

.add-location-btn i {
    font-size: 1.2rem;
}

/* Дополнительные действия */
.business-additional-actions {
    display: flex;
    gap: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
}

.business-additional-actions .business-action-btn {
    flex: 1;
}

/* Responsive */
@media (max-width: 768px) {
    .location-card-actions {
        flex-direction: column;
    }
    
    .location-action-btn {
        width: 100%;
        min-width: unset;
    }
    
    .business-additional-actions {
        flex-direction: column;
    }
}

/* ==================== ЧАТ С АДМИНИСТРАЦИЕЙ ==================== */

.support-chat-content {
    max-width: 600px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.chat-container {
    display: flex;
    flex-direction: column;
    height: 600px;
    max-height: calc(90vh - 100px);
}

.chat-status {
    padding: 0.75rem 1.5rem;
    background: rgba(16, 185, 129, 0.1);
    border-bottom: 1px solid rgba(16, 185, 129, 0.2);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-medium);
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    background: #f9fafb;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.chat-welcome {
    text-align: center;
    padding: 2rem;
    color: var(--text-medium);
}

.chat-welcome i {
    font-size: 3rem;
    color: var(--primary-green);
    margin-bottom: 1rem;
}

.chat-welcome h3 {
    margin: 0 0 0.5rem 0;
    color: var(--text-dark);
}

.chat-welcome p {
    margin: 0;
    font-size: 0.95rem;
}

.chat-message {
    max-width: 75%;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    position: relative;
    animation: messageSlideIn 0.3s ease;
}

@keyframes messageSlideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chat-message.user {
    align-self: flex-end;
    background: linear-gradient(135deg, var(--primary-green), var(--deep-green));
    color: white;
    border-bottom-right-radius: 4px;
}

.chat-message.admin {
    align-self: flex-start;
    background: white;
    color: var(--text-dark);
    border: 1px solid #e5e7eb;
    border-bottom-left-radius: 4px;
}

.chat-message-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
    font-size: 0.85rem;
    opacity: 0.9;
    font-weight: 600;
}

.chat-message-header i {
    font-size: 0.9rem;
}

.chat-message-text {
    margin: 0;
    line-height: 1.5;
    word-wrap: break-word;
}

.chat-message-time {
    font-size: 0.75rem;
    opacity: 0.7;
    margin-top: 0.25rem;
    text-align: right;
}

.chat-input-container {
    padding: 1rem 1.5rem;
    background: white;
    border-top: 1px solid #e5e7eb;
    display: flex;
    gap: 1rem;
    align-items: flex-end;
}

.chat-input-container textarea {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    resize: none;
    transition: all 0.3s ease;
}

.chat-input-container textarea:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(0, 200, 83, 0.1);
}

.chat-send-btn {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-green), var(--deep-green));
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.chat-send-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 200, 83, 0.3);
}

.chat-send-btn:active {
    transform: scale(0.95);
}

.chat-send-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Системное сообщение */
.chat-system-message {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-light);
    padding: 0.5rem;
    font-style: italic;
}

/* Бейдж на кнопке чатов */
.chat-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ef4444;
    color: white;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-weight: 600;
    min-width: 20px;
    text-align: center;
}

.admin-btn.support-chat {
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
    position: relative;
}

/* Индикатор печатания */
.typing-indicator {
    align-self: flex-start;
    padding: 1rem;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    border-bottom-left-radius: 4px;
    max-width: 75px;
}

.typing-indicator span {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--text-light);
    border-radius: 50%;
    margin: 0 2px;
    animation: typing 1.4s infinite;
}

.typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.5;
    }
    30% {
        transform: translateY(-10px);
        opacity: 1;
    }
}

/* ==================== АДМИНСКАЯ ПАНЕЛЬ ЧАТОВ ==================== */

.support-chats-container {
    display: flex;
    flex: 1;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    background: white;
}

.chats-list {
    width: 350px;
    flex-shrink: 0;
    border-right: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    background: #f9fafb;
}

.chats-list-header {
    padding: 1rem;
    border-bottom: 1px solid #e5e7eb;
    background: white;
}

.chats-list-header h3 {
    margin: 0 0 0.75rem 0;
    font-size: 1.1rem;
}

.chats-filter {
    display: flex;
    gap: 0.5rem;
}

.filter-btn {
    flex: 1;
    padding: 0.5rem;
    background: transparent;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
}

.filter-btn span {
    background: #e5e7eb;
    padding: 0.125rem 0.5rem;
    border-radius: 10px;
    font-weight: 600;
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--primary-green), var(--deep-green));
    color: white;
    border-color: var(--primary-green);
}

.filter-btn.active span {
    background: rgba(255, 255, 255, 0.3);
    color: white;
}

.chats-items {
    flex: 1;
    overflow-y: auto;
}

.chat-item {
    padding: 1rem;
    border-bottom: 1px solid #e5e7eb;
    cursor: pointer;
    transition: background 0.2s ease;
    background: white;
}

.chat-item:hover {
    background: #f9fafb;
}

.chat-item.active {
    background: linear-gradient(135deg, rgba(0, 200, 83, 0.1), rgba(21, 101, 192, 0.1));
    border-left: 3px solid var(--primary-green);
}

.chat-item.unread {
    background: rgba(59, 130, 246, 0.05);
    position: relative;
}

.chat-item.unread::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 40%;
    background: #3b82f6;
    border-radius: 0 4px 4px 0;
}

.chat-item-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 0.5rem;
}

.chat-item-business {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.chat-item-time {
    font-size: 0.75rem;
    color: var(--text-light);
}

.chat-item-preview {
    font-size: 0.85rem;
    color: var(--text-medium);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.chat-item-badge {
    display: inline-block;
    background: #ef4444;
    color: white;
    font-size: 0.7rem;
    padding: 0.125rem 0.5rem;
    border-radius: 10px;
    font-weight: 600;
    margin-top: 0.25rem;
}

/* Окно чата */
.chat-window {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: white;
}

.chat-window-empty {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    padding: 2rem;
}

.chat-window-empty i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.chat-window-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

.chat-window-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
}

.chat-user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.chat-user-info i {
    font-size: 2rem;
    color: var(--primary-green);
}

.chat-user-info h4 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--text-dark);
}

.chat-user-info span {
    font-size: 0.85rem;
    color: var(--text-light);
}

.close-chat-btn {
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: var(--text-light);
    cursor: pointer;
    transition: color 0.2s ease;
}

.close-chat-btn:hover {
    color: var(--text-dark);
}

.admin-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    background: #f9fafb;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.admin-chat-input {
    padding: 1rem 1.5rem;
    background: white;
    border-top: 1px solid #e5e7eb;
    display: flex;
    gap: 1rem;
    align-items: flex-end;
}

.admin-chat-input textarea {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    resize: none;
    transition: all 0.3s ease;
}

.admin-chat-input textarea:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(0, 200, 83, 0.1);
}

/* ==================== СТАТИСТИКА БИЗНЕСА ==================== */

.stats-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    flex-shrink: 0;
}

.stat-info {
    flex: 1;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-medium);
    font-weight: 500;
}

.stats-section {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.stats-section h3 {
    margin: 0 0 1.5rem 0;
    font-size: 1.1rem;
    color: var(--text-dark);
}

.stats-periods {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.period-stat {
    display: grid;
    grid-template-columns: 120px 1fr 60px;
    gap: 1rem;
    align-items: center;
}

.period-label {
    font-weight: 600;
    color: var(--text-dark);
}

.period-bar {
    height: 32px;
    background: #f3f4f6;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.period-fill {
    height: 100%;
    transition: width 0.6s ease;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 0.5rem;
    color: white;
    font-weight: 600;
    font-size: 0.85rem;
}

.period-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    text-align: right;
}

/* Дополнительные метрики для Premium */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f9fafb;
    border-radius: 8px;
}

.stat-item-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.stat-item-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
}

.stat-item-label {
    font-size: 0.8rem;
    color: var(--text-medium);
}

/* График по дням */
.daily-chart {
    display: flex;
    align-items: flex-end;
    gap: 0.5rem;
    height: 200px;
    padding: 1rem 0;
}

.daily-bar {
    flex: 1;
    background: linear-gradient(135deg, var(--primary-green), var(--deep-green));
    border-radius: 4px 4px 0 0;
    position: relative;
    min-height: 20px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.daily-bar:hover {
    opacity: 0.8;
    transform: translateY(-4px);
}

.daily-bar-label {
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.7rem;
    color: var(--text-medium);
    white-space: nowrap;
}

.daily-bar-value {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-dark);
}

/* ==================== ИСТОРИЯ ИЗМЕНЕНИЙ ==================== */

.history-timeline {
    padding: 1rem 0;
}

.history-entry {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    margin-bottom: 1rem;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    position: relative;
    transition: all 0.3s ease;
}

.history-entry:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.history-entry-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    border-radius: 50%;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.history-entry-content {
    flex: 1;
}

.history-entry-action {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
    font-size: 1rem;
}

.history-entry-date {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* ==================== АДМИН - ПРЕВЬЮ ФОТО ЛОКАЛИЗАЦИИ ==================== */

.admin-photos-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.admin-photo-preview {
    position: relative;
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid #e5e7eb;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.admin-photo-preview:hover {
    transform: scale(1.05);
    border-color: var(--primary-green);
}

.admin-photo-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.admin-photo-delete-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 32px;
    height: 32px;
    background: rgba(239, 68, 68, 0.9);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.admin-photo-preview:hover .admin-photo-delete-btn {
    opacity: 1;
}

.admin-photo-delete-btn:hover {
    background: #dc2626;
    transform: scale(1.1);
}

/* ==================== УБИРАЕМ БЕЛЫЙ ФОН У МАРКЕРОВ ==================== */
.leaflet-div-icon {
    background: transparent !important;
    border: none !important;
}

/* ==================== МОДАЛЬНОЕ ОКНО UPGRADE ==================== */
.upgrade-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.upgrade-modal.active {
    opacity: 1;
}

.upgrade-modal-content {
    background: #2c2c2c;
    border-radius: 16px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.upgrade-modal.active .upgrade-modal-content {
    transform: scale(1);
}

.upgrade-modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}

.upgrade-modal-header i.fa-crown {
    font-size: 24px;
    color: #ffd700;
}

.upgrade-modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    color: white;
    flex: 1;
}

.upgrade-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.upgrade-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.upgrade-modal-body {
    padding: 32px 24px;
    text-align: center;
}

.upgrade-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.upgrade-icon i {
    font-size: 36px;
    color: white;
}

.upgrade-message {
    font-size: 1.1rem;
    color: #e0e0e0;
    margin: 0 0 24px 0;
    line-height: 1.6;
}

.upgrade-plan-badge {
    background: rgba(102, 126, 234, 0.1);
    border: 2px solid #667eea;
    border-radius: 12px;
    padding: 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    color: #e0e0e0;
}

.upgrade-plan-badge i {
    color: #ffd700;
}

.upgrade-plan-badge strong {
    color: #667eea;
    font-weight: 700;
}

.upgrade-modal-footer {
    padding: 24px;
    background: #242424;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.upgrade-btn-cancel,
.upgrade-btn-confirm {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.upgrade-btn-cancel {
    background: #444;
    color: #e0e0e0;
}

.upgrade-btn-cancel:hover {
    background: #555;
}

.upgrade-btn-confirm {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.upgrade-btn-confirm:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.upgrade-btn-confirm i {
    color: #ffd700;
}
