/* css/markers/fishing-markers.css */
/* Стили для рыболовных меток */

/* Контекстное меню */
.marker-context-menu {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    z-index: 10000;
}

.context-menu-header {
    padding: 12px 16px;
    border-bottom: 1px solid #e2e8f0;
    font-weight: 600;
    color: #1e293b;
    background: #f8fafc;
}

.context-menu-close {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    color: #64748b;
    transition: color 0.2s;
}

.context-menu-close:hover {
    color: #ef4444;
}

.context-menu-category-title {
    padding: 10px 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid #e2e8f0;
    transition: background 0.2s;
}

.context-menu-category-title:hover {
    background: #f1f5f9;
}

.context-menu-types {
    display: none;
    padding: 8px 0;
}

.context-menu-type-item {
    padding: 8px 16px 8px 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s;
}

.context-menu-type-item:hover {
    background: #f1f5f9;
}

/* Попап метки */
.marker-info-popup .maplibregl-popup-content {
    padding: 0 !important;
    border-radius: 12px !important;
    overflow: hidden;
    max-width: 280px;
}

.marker-popup {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.marker-popup-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-left: 4px solid #3b82f6;
}

.marker-popup-icon {
    font-size: 24px;
}

.marker-popup-title {
    font-weight: 600;
    color: #1e293b;
    font-size: 15px;
}

.marker-popup-content {
    padding: 12px 16px;
}

.marker-popup-category {
    margin-bottom: 8px;
}

.marker-category-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 500;
}

.marker-popup-description {
    font-size: 13px;
    color: #475569;
    line-height: 1.4;
    margin-bottom: 10px;
}

.marker-popup-waterbody {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #0369a1;
    background: #e0f2fe;
    padding: 6px 10px;
    border-radius: 6px;
    margin-bottom: 10px;
}

.distance-badge {
    margin-left: auto;
    background: #0284c7;
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
}

.marker-popup-meta {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #64748b;
    padding-top: 8px;
    border-top: 1px solid #e2e8f0;
}

.marker-author, .marker-date {
    display: flex;
    align-items: center;
    gap: 4px;
}

.marker-popup-actions {
    display: flex;
    gap: 12px;
    padding: 10px 16px;
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
}

.marker-action-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #475569;
    padding: 4px 8px;
    border-radius: 6px;
    transition: all 0.2s;
}

.marker-action-btn:hover {
    background: #e2e8f0;
}

.marker-action-btn.liked {
    color: #ef4444;
}

.marker-action-btn.liked .like-icon {
    color: #ef4444;
}

/* Модальное окно добавления метки */
.marker-add-modal {
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@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;
    }
}

/* Уведомления */
.marker-notification {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Адаптивность */
@media (max-width: 768px) {
    .marker-context-menu {
        max-width: 240px;
        font-size: 13px;
    }
    
    .context-menu-type-item {
        padding: 8px 12px 8px 32px;
    }
    
    .marker-popup {
        max-width: 260px;
    }
}

/* Блок меток в панели водоёма */
.waterbody-markers-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.waterbody-markers-section .section-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.waterbody-markers-section .section-header h4 {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: #1e293b;
}

.markers-count {
    background: #e2e8f0;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    color: #475569;
}

.waterbody-markers-list {
    max-height: 400px;
    overflow-y: auto;
}

/* Категория меток */
.markers-category {
    margin-bottom: 16px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
}

.markers-category-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: #f8fafc;
    border-left: 3px solid #3b82f6;
    border-bottom: 1px solid #e2e8f0;
}

.category-icon {
    font-size: 18px;
}

.category-name {
    font-weight: 600;
    color: #1e293b;
    flex: 1;
}

.category-count {
    background: #e2e8f0;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 11px;
    color: #475569;
}

/* Элемент метки */
.marker-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.2s;
}

.marker-item:hover {
    background: #f8fafc;
}

.marker-item-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.marker-item-content {
    flex: 1;
}

.marker-item-title {
    font-weight: 600;
    color: #1e293b;
    font-size: 14px;
    margin-bottom: 4px;
}

.marker-item-description {
    font-size: 12px;
    color: #64748b;
    margin-bottom: 6px;
    line-height: 1.4;
}

.marker-item-meta {
    display: flex;
    gap: 12px;
    font-size: 11px;
    color: #94a3b8;
}

.marker-view-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    padding: 6px;
    border-radius: 8px;
    transition: all 0.2s;
    flex-shrink: 0;
}

.marker-view-btn:hover {
    background: #e2e8f0;
    transform: scale(1.05);
}

/* Сообщение об отсутствии меток */
.no-markers-message {
    text-align: center;
    padding: 30px 20px;
    background: #f8fafc;
    border-radius: 12px;
}

.no-markers-icon {
    font-size: 48px;
    margin-bottom: 12px;
    opacity: 0.5;
}

.no-markers-text {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 8px;
}

.no-markers-hint {
    font-size: 12px;
    color: #94a3b8;
}

/* Подсказка добавления метки */
.add-marker-hint {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    padding: 10px 12px;
    background: #fef3c7;
    border-radius: 8px;
    font-size: 12px;
    color: #92400e;
}

.hint-icon {
    font-size: 16px;
}

.hint-text {
    flex: 1;
}

/* Индикатор загрузки */
.loading-markers {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 30px;
    color: #94a3b8;
}

.loading-spinner-small {
    width: 20px;
    height: 20px;
    border: 2px solid #e2e8f0;
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Простой попап для меток */
.marker-simple-popup .maplibregl-popup-content {
    padding: 12px !important;
    border-radius: 12px !important;
    max-width: 260px;
}

.marker-popup-simple {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.marker-popup-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e2e8f0;
}

.marker-icon {
    font-size: 24px;
}

.marker-title {
    font-weight: 600;
    color: #1e293b;
    font-size: 14px;
}

.marker-popup-content {
    font-size: 13px;
}

.marker-description {
    color: #475569;
    margin-bottom: 8px;
    line-height: 1.4;
}

.marker-waterbody {
    color: #0369a1;
    background: #e0f2fe;
    padding: 4px 8px;
    border-radius: 6px;
    margin-bottom: 8px;
    font-size: 12px;
}

.marker-meta {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #64748b;
    padding-top: 6px;
    border-top: 1px solid #e2e8f0;
}

/* Кастомные маркеры */
.custom-marker {
    cursor: pointer;
    transition: transform 0.2s ease;
}

.custom-marker-content {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #3b82f6;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    border: 2px solid white;
    transition: all 0.2s ease;
}

.custom-marker-content:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.marker-emoji {
    font-size: 18px;
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.2));
}

/* Попап метки */
.marker-simple-popup .maplibregl-popup-content {
    padding: 0 !important;
    border-radius: 12px !important;
    overflow: hidden;
}

.marker-popup-simple {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    min-width: 220px;
}

.marker-popup-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 1px solid #e2e8f0;
}

.marker-icon {
    font-size: 24px;
}

.marker-title {
    font-weight: 600;
    color: #1e293b;
    font-size: 14px;
}

.marker-popup-content {
    padding: 12px 16px;
}

.marker-category {
    margin-bottom: 8px;
}

.category-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 500;
}

.marker-description {
    font-size: 13px;
    color: #475569;
    line-height: 1.4;
    margin-bottom: 10px;
}

.marker-waterbody {
    font-size: 12px;
    color: #0369a1;
    background: #e0f2fe;
    padding: 6px 10px;
    border-radius: 6px;
    margin-bottom: 10px;
}

.marker-waterbody .distance {
    font-size: 10px;
    color: #0284c7;
    margin-left: 4px;
}

.marker-meta {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #64748b;
    padding-top: 8px;
    border-top: 1px solid #e2e8f0;
}

/* Кастомные маркеры - статичные */
.custom-marker {
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.custom-marker-content {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #3b82f6;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    border: 2px solid white;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    will-change: transform;
}

.marker-emoji {
    font-size: 18px;
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.2));
    line-height: 1;
}

/* Убираем transform при наведении на сам маркер, оставляем только на внутреннем элементе */
.custom-marker:hover .custom-marker-content {
    transform: scale(1.08);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

/* ===== ДОПОЛНИТЕЛЬНЫЕ СТИЛИ ДЛЯ БЛОКА МЕТОК В ПАНЕЛИ ВОДОЁМА ===== */

.waterbody-markers-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.waterbody-markers-section .section-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.waterbody-markers-section .section-header h4 {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: #1e293b;
}

.markers-count {
    background: #e2e8f0;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    color: #475569;
}

.waterbody-markers-list {
    max-height: 400px;
    overflow-y: auto;
}

/* Категория меток */
.markers-category {
    margin-bottom: 16px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
}

.markers-category-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: #f8fafc;
    border-left: 3px solid #3b82f6;
    border-bottom: 1px solid #e2e8f0;
}

.category-icon {
    font-size: 18px;
}

.category-name {
    font-weight: 600;
    color: #1e293b;
    flex: 1;
}

.category-count {
    background: #e2e8f0;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 11px;
    color: #475569;
}

/* Элемент метки */
.marker-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.2s;
}

.marker-item:hover {
    background: #f8fafc;
}

.marker-item-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.marker-item-content {
    flex: 1;
}

.marker-item-title {
    font-weight: 600;
    color: #1e293b;
    font-size: 14px;
    margin-bottom: 4px;
}

.marker-item-description {
    font-size: 12px;
    color: #64748b;
    margin-bottom: 6px;
    line-height: 1.4;
}

.marker-item-meta {
    display: flex;
    gap: 12px;
    font-size: 11px;
    color: #94a3b8;
}

.marker-view-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    padding: 6px;
    border-radius: 8px;
    transition: all 0.2s;
    flex-shrink: 0;
}

.marker-view-btn:hover {
    background: #e2e8f0;
    transform: scale(1.05);
}

/* Сообщение об отсутствии меток */
.no-markers-message {
    text-align: center;
    padding: 30px 20px;
    background: #f8fafc;
    border-radius: 12px;
}

.no-markers-icon {
    font-size: 48px;
    margin-bottom: 12px;
    opacity: 0.5;
}

.no-markers-text {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 8px;
}

.no-markers-hint {
    font-size: 12px;
    color: #94a3b8;
}

/* Подсказка добавления метки */
.add-marker-hint {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    padding: 10px 12px;
    background: #fef3c7;
    border-radius: 8px;
    font-size: 12px;
    color: #92400e;
}

.hint-icon {
    font-size: 16px;
}

.hint-text {
    flex: 1;
}

/* Индикатор загрузки */
.loading-markers {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 30px;
    color: #94a3b8;
}

.loading-spinner-small {
    width: 20px;
    height: 20px;
    border: 2px solid #e2e8f0;
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Адаптивность */
@media (max-width: 768px) {
    .marker-item {
        flex-wrap: wrap;
    }
    
    .marker-view-btn {
        margin-left: auto;
    }
    
    .marker-item-meta {
        flex-wrap: wrap;
    }
}

/* Жалобы на метки */
.reports-stats-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #f8fafc;
    border-radius: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}

.stats-filters {
    display: flex;
    gap: 8px;
}

.stats-filters .filter-btn {
    padding: 6px 14px;
    border: 1px solid #e2e8f0;
    background: white;
    border-radius: 20px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s;
}

.stats-filters .filter-btn.active {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

.report-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    margin-bottom: 16px;
    overflow: hidden;
    transition: box-shadow 0.2s;
}

.report-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.report-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.report-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.report-badge.pending {
    background: #fef3c7;
    color: #92400e;
}

.report-badge.reviewed {
    background: #d1fae5;
    color: #065f46;
}

.report-badge.dismissed {
    background: #fee2e2;
    color: #991b1b;
}

.report-date {
    font-size: 12px;
    color: #64748b;
}

.report-card-body {
    padding: 16px;
}

.report-marker-info {
    margin-bottom: 12px;
}

.marker-title {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}

.marker-id {
    font-size: 11px;
    color: #94a3b8;
    font-family: monospace;
}

.marker-author {
    font-size: 13px;
    color: #64748b;
}

.report-reason {
    background: #fef2f2;
    padding: 10px 12px;
    border-radius: 8px;
    margin-bottom: 12px;
    border-left: 3px solid #ef4444;
}

.reason-badge {
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 6px;
}

.reason-comment {
    font-size: 13px;
    color: #475569;
    margin-top: 6px;
}

.report-reporter {
    margin-bottom: 16px;
    font-size: 13px;
    color: #64748b;
}

.report-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    padding-top: 12px;
    border-top: 1px solid #e2e8f0;
}

@media (max-width: 768px) {
    .reports-stats-bar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .stats-filters {
        justify-content: center;
    }
    
    .report-actions {
        justify-content: center;
    }
}

/* ===== СТИЛИ ДЛЯ ПОПАПОВ МЕТОК ===== */

/* ===== ПРЕВЬЮ-ПОПАП (при наведении) ===== */
.marker-hover-popup .maplibregl-popup-content {
    padding: 12px 16px !important;
    border-radius: 12px !important;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15) !important;
    border: 1px solid #e2e8f0 !important;
}

.marker-preview-content {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    min-width: 0; /* ← ДОБАВЛЕНО: защита от распирания */
    width: 100%;
}

.marker-preview-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e2e8f0;
    min-width: 0; /* ← ДОБАВЛЕНО */
}

.marker-preview-icon {
    font-size: 28px;
    flex-shrink: 0; /* ← ДОБАВЛЕНО: иконка не сжимается */
    line-height: 1;
}

.marker-preview-title {
    font-weight: 700;
    font-size: 15px;
    color: #1e293b;
    line-height: 1.3;
    flex: 1; /* ← ДОБАВЛЕНО: заголовок занимает свободное место */
    min-width: 0; /* ← ДОБАВЛЕНО: разрешаем обрезку */
    overflow: hidden; /* ← ДОБАВЛЕНО: обрезаем длинные заголовки */
    text-overflow: ellipsis; /* ← ДОБАВЛЕНО: добавляем "..." при обрезке */
    display: -webkit-box;
    -webkit-line-clamp: 2; /* ← ДОБАВЛЕНО: максимум 2 строки */
    -webkit-box-orient: vertical;
    word-break: break-word;
}

.marker-preview-description {
    font-size: 13px;
    color: #475569;
    line-height: 1.4;
    margin-bottom: 10px;
    font-style: italic;
    word-break: break-word; /* ← ДОБАВЛЕНО: длинные слова не распирают попап */
    overflow-wrap: break-word;
}

/* ===== МЕТА-БЛОК (автор + лайк) ===== */
.marker-preview-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px; /* ← ДОБАВЛЕНО: минимальный отступ между автором и лайком */
    font-size: 12px;
    color: #64748b;
    margin-top: 8px; /* ← ИЗМЕНЕНО: было margin-bottom, теперь margin-top */
    padding-top: 8px;
    border-top: 1px solid #f1f5f9; /* ← ДОБАВЛЕНО: тонкая линия-разделитель */
    min-width: 0; /* ← ДОБАВЛЕНО: защита от распирания */
}

.marker-preview-author {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1; /* ← ДОБАВЛЕНО: автор занимает свободное место */
    min-width: 0; /* ← ДОБАВЛЕНО: разрешаем обрезку внутри */
    overflow: hidden; /* ← ДОБАВЛЕНО: обрезаем длинные имена */
    white-space: nowrap; /* ← ДОБАВЛЕНО: имя всегда в одну строку */
    text-overflow: ellipsis; /* ← ДОБАВЛЕНО: добавляем "..." при обрезке */
}

.marker-preview-likes {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #ef4444;
    flex-shrink: 0; /* ← ДОБАВЛЕНО: блок лайков не сжимается */
}

.marker-preview-waterbody {
    font-size: 12px;
    color: #0369a1;
    background: #e0f2fe;
    padding: 6px 10px;
    border-radius: 8px;
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ===== ДЕТАЛЬНЫЙ ПОПАП (при клике) ===== */

.marker-details-popup-container .maplibregl-popup-content {
    padding: 0 !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%) !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2) !important;
    width: 320px !important;
    max-width: 320px !important;
}

.marker-details-popup {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ШАПКА */
.marker-details-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.marker-details-icon {
    font-size: 36px;
    flex-shrink: 0;
    line-height: 1;
}

.marker-details-info {
    flex: 1;
    min-width: 0;
}

.marker-details-title {
    font-weight: 700;
    font-size: 16px;
    color: #1e293b;
    margin-bottom: 6px;
    line-height: 1.3;
    word-wrap: break-word;
}

.marker-details-category {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    background: #f1f5f9;
    color: #475569;
}

/* ОПИСАНИЕ - курсивом, как в превью */
.marker-details-description {
    padding: 14px 16px;
    font-size: 13px;
    line-height: 1.5;
    color: #475569;
    border-bottom: 1px solid #f1f5f9;
    background: white;
    font-style: italic;
}

/* АВТОР И ДАТА */
.marker-details-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.marker-details-author,
.marker-details-date {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #64748b;
}

.meta-icon {
    font-size: 12px;
}

.meta-text {
    color: #475569;
}

/* ВОДОЕМ - ПОД АВТОРОМ, ВЫРАВНИВАНИЕ ПО ПРАВОМУ КРАЮ */
.marker-details-waterbody {
    padding: 8px 16px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    text-align: right;
}

.waterbody-name {
    font-weight: 500;
    font-size: 12px;
    color: #0369a1;
}

.waterbody-distance {
    font-size: 11px;
    color: #0284c7;
    background: #e0f2fe;
    padding: 2px 8px;
    border-radius: 12px;
    margin-left: 8px;
    display: inline-block;
}

/* КНОПКИ ДЕЙСТВИЙ */
.marker-details-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    gap: 10px;
    background: white;
    border-radius: 0 0 16px 16px;
}

.marker-action-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 12px;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    color: #475569;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.marker-action-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    background: #f8fafc;
}

/* КНОПКА ЛАЙКА */
.marker-action-btn.like-btn {
    background: white;
    border-color: #e2e8f0;
}

.marker-action-btn.like-btn .action-icon {
    font-size: 14px;
}

.marker-action-btn.like-btn .action-count {
    font-weight: 600;
    min-width: 20px;
    text-align: center;
}

.marker-action-btn.like-btn.liked {
    background: #fef2f2;
    border-color: #fecaca;
    color: #dc2626;
}

.marker-action-btn.like-btn.liked .action-icon {
    color: #dc2626;
}

/* КНОПКА ПОДЕЛИТЬСЯ */
.marker-action-btn.share-btn .action-icon {
    font-size: 14px;
}

.marker-action-btn.share-btn .action-text {
    font-size: 13px;
    display: inline;
}

/* КНОПКА ЖАЛОБЫ */
.marker-action-btn.report-btn .action-icon {
    font-size: 14px;
}

.marker-action-btn.report-btn .action-text {
    font-size: 13px;
    display: inline;
}

.marker-action-btn.report-btn:hover {
    background: #fef2f2;
    border-color: #fecaca;
    color: #dc2626;
}

/* Адаптивность для мобильных */
@media (max-width: 480px) {
    .marker-details-popup-container .maplibregl-popup-content {
        width: 280px !important;
        max-width: 280px !important;
    }
    
    .marker-details-icon {
        font-size: 28px;
    }
    
    .marker-details-title {
        font-size: 14px;
    }
    
    .marker-details-description {
        font-size: 12px;
        padding: 12px 14px;
    }
    
    .marker-details-meta {
        padding: 8px 14px;
    }
    
    .marker-details-waterbody {
        padding: 6px 14px;
    }
    
    .waterbody-name {
        font-size: 11px;
    }
    
    .waterbody-distance {
        font-size: 10px;
    }
    
    .marker-details-actions {
        padding: 10px 14px;
        gap: 6px;
    }
    
    .marker-action-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
    
    .marker-action-btn .action-text {
        font-size: 11px;
    }
}

/* Стили для PNG иконок в попапах */
.marker-preview-icon-img,
.marker-details-icon-img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    display: block;
}

.marker-details-icon-img {
    width: 36px;
    height: 36px;
}

/* Стили для иконок в контекстном меню */
.context-menu-icon-img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    vertical-align: middle;
}

.context-menu-icon-emoji {
    font-size: 18px;
    line-height: 1;
}

.context-menu-icon-wrapper {
    width: 24px;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.context-menu-type-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px 8px 16px;
    cursor: pointer;
    transition: background 0.2s;
}

.context-menu-type-item:hover {
    background: #f1f5f9;
}

/* Анимация для мобильной подсказки */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* ===== УЛУЧШЕННЫЕ СТИЛИ ДЛЯ ФИЛЬТРОВ ===== */

/* Индикатор активных фильтров на кнопке */
#filterMarkersBtn {
    position: relative;
}

#filterMarkersBtn.has-filters {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
}

.filters-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ef4444;
    color: white;
    font-size: 10px;
    font-weight: bold;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
}

/* Активные фильтры в заголовке панели */
.active-filters-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 12px;
}

/* Пресеты */
.preset-btn {
    transition: all 0.2s ease;
}

.preset-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Анимированное уведомление о количестве найденных меток */
@keyframes fadeInOut {
    0% { opacity: 0; transform: translateX(-50%) translateY(10px); }
    15% { opacity: 1; transform: translateX(-50%) translateY(0); }
    85% { opacity: 1; transform: translateX(-50%) translateY(0); }
    100% { opacity: 0; transform: translateX(-50%) translateY(-10px); }
}

/* ===== ЛАЙКИ В ПРЕВЬЮ-ПОПАПЕ МЕТКИ ===== */
.marker-preview-like-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 20px;
    font-size: 12px;
    transition: all 0.2s ease;
    background: #f1f5f9;
    color: #475569;
    flex-shrink: 0; /* ← ДОБАВЛЕНО: кнопка лайка не сжимается и не наезжает на имя */
    white-space: nowrap; /* ← ДОБАВЛЕНО: содержимое в одну строку */
    min-width: 42px; /* ← ДОБАВЛЕНО: минимальная ширина для стабильности */
    justify-content: center; /* ← ДОБАВЛЕНО: центрируем иконку и цифру */
}

.marker-preview-like-btn:hover {
    background: #e2e8f0;
    transform: scale(1.02);
}

.marker-preview-like-btn.liked {
    background: #fee2e2;
    color: #ef4444;
}

.marker-preview-like-btn.liked .like-icon {
    color: #ef4444;
}

.marker-preview-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #e2e8f0;
    font-size: 11px;
    color: #64748b;
}

/* ===== АНИМАЦИЯ ДЛЯ ЛАЙКОВ ===== */
@keyframes likePulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.marker-preview-like-btn.liked .like-icon,
.marker-action-btn.liked .action-icon {
    animation: likePulse 0.3s ease;
}

/* ===== ПОПАП ПРОГНОЗА КЛЕВА ===== */

.bite-forecast-popup-container .maplibregl-popup-content {
    padding: 0 !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%) !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2) !important;
    width: 340px !important;
    max-width: 340px !important;
}

.bite-forecast-popup {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Заголовок */
.forecast-header {
    padding: 14px 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.forecast-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 6px;
}

.title-icon {
    font-size: 20px;
}

.forecast-coords {
    font-size: 11px;
    opacity: 0.8;
    font-family: monospace;
}

/* Текущая погода */
.forecast-weather-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.weather-temp {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.temp-big {
    font-size: 32px;
    font-weight: 700;
    color: #1e293b;
}

.temp-unit {
    font-size: 14px;
    color: #64748b;
}

.weather-icon {
    font-size: 28px;
    margin-left: 8px;
}

.weather-desc {
    font-size: 14px;
    font-weight: 500;
    color: #475569;
    text-transform: capitalize;
}

/* Детали погоды */
.forecast-details-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    padding: 12px 16px;
    background: white;
    border-bottom: 1px solid #e2e8f0;
}

.detail-item {
    text-align: center;
}

.detail-icon {
    font-size: 16px;
    display: block;
    margin-bottom: 4px;
}

.detail-value {
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
}

.detail-unit {
    font-size: 10px;
    color: #64748b;
}

.detail-label {
    font-size: 10px;
    color: #94a3b8;
    display: block;
}

/* Прогноз клева */
.forecast-bite-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.bite-index {
    flex: 2;
}

.index-label {
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
}

.index-value {
    font-size: 24px;
    font-weight: 800;
    line-height: 1;
}

.index-max {
    font-size: 12px;
    font-weight: 500;
    color: #94a3b8;
}

.index-text {
    font-size: 11px;
    font-weight: 600;
    display: block;
    margin-top: 2px;
}

.bite-percent {
    flex: 1;
    text-align: center;
}

.bite-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 6px;
    background-color: #e2e8f0;
}

.bite-score {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    background: white;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bite-score small {
    font-size: 10px;
    margin-left: 2px;
}

.bite-level-text {
    font-size: 12px;
    font-weight: 600;
}

/* Луна */
.forecast-moon-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: white;
    border-bottom: 1px solid #e2e8f0;
}

.moon-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.moon-icon {
    font-size: 32px;
}

.moon-details {
    display: flex;
    flex-direction: column;
}

.moon-name {
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
}

.moon-illum {
    font-size: 11px;
    color: #64748b;
}

.hourly-preview {
    display: flex;
    gap: 12px;
}

.hourly-item {
    text-align: center;
}

.hourly-time {
    font-size: 10px;
    font-weight: 600;
    color: #64748b;
    display: block;
}

.hourly-icon {
    font-size: 16px;
    display: block;
    margin: 4px 0;
}

.hourly-temp {
    font-size: 12px;
    font-weight: 600;
    color: #1e293b;
}

/* Почасовой график */
.hourly-chart {
    padding: 12px 16px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.chart-title {
    font-size: 12px;
    font-weight: 600;
    color: #1e293b;
}

.chart-legend {
    display: flex;
    gap: 8px;
    font-size: 9px;
    color: #64748b;
}

.legend-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 2px;
    margin-right: 3px;
}

.chart-bars {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 0px;
    overflow-x: auto;
}

.chart-bar-item {
    text-align: center;
    min-width: 35px;
}

.bar-label {
    font-size: 9px;
    color: #64748b;
    margin-bottom: 4px;
}

.bar {
    width: 20px;
    min-height: 4px;
    border-radius: 3px;
    margin: 0 auto;
    transition: height 0.3s ease;
}

.bar-value {
    font-size: 9px;
    font-weight: 600;
    color: #1e293b;
    margin-top: 4px;
}

.bar-icon {
    font-size: 10px;
    margin-top: 2px;
}

/* Совет Деда */
.forecast-advice {
    display: flex;
    gap: 12px;
    padding: 14px 16px;
    background: linear-gradient(135deg, #fefce8 0%, #fef3c7 100%);
    border-radius: 0 0 16px 16px;
}

.advice-avatar {
    font-size: 32px;
    flex-shrink: 0;
}

.advice-content {
    flex: 1;
}

.advice-content strong {
    font-size: 12px;
    color: #92400e;
    display: block;
    margin-bottom: 4px;
}

.advice-content p {
    font-size: 12px;
    color: #475569;
    margin: 0;
    line-height: 1.4;
}

/* Загрузка */
.bite-forecast-popup.loading .forecast-loading {
    text-align: center;
    padding: 30px 20px;
}

.bite-forecast-popup.loading .loading-spinner-small {
    width: 30px;
    height: 30px;
    border: 3px solid #e2e8f0;
    border-top-color: #667eea;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 10px;
}

/* Ошибка */
.bite-forecast-popup.error .forecast-error {
    text-align: center;
    padding: 24px 20px;
}

.error-icon {
    font-size: 40px;
    display: block;
    margin-bottom: 10px;
}

.forecast-error p {
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 6px;
}

.forecast-error small {
    font-size: 11px;
    color: #64748b;
    display: block;
    margin-bottom: 15px;
}

.retry-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 12px;
    cursor: pointer;
}

.retry-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

/* Адаптивность для мобильных */
@media (max-width: 480px) {
    .bite-forecast-popup-container .maplibregl-popup-content {
        width: 280px !important;
        max-width: 280px !important;
    }
    
    .forecast-details-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .forecast-bite-row {
        flex-direction: column;
        text-align: center;
    }
    
    .chart-bars {
        overflow-x: auto;
        padding-bottom: 8px;
    }
    
    .chart-bar-item {
        min-width: 40px;
    }
}

/* ===== ПРОМПТ ДЛЯ ДОБАВЛЕНИЯ ВОДОЕМА ===== */

.waterbody-type-modal-content {
    animation: modalFadeIn 0.2s ease;
}

.water-type-btn {
    transition: all 0.2s ease;
}

.water-type-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.05);
}

.auth-required-modal-content {
    animation: modalFadeIn 0.2s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ===== ПАНЕЛЬ ФИЛЬТРОВ МЕТОК ===== */

.markers-filters-panel {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Заголовок панели */
.filters-panel-header {
    background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
    color: white;
}

/* Блок быстрых фильтров */
.filters-presets {
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

/* Кнопки пресетов */
.preset-btn {
    padding: 6px 12px;
    border: none;
    border-radius: 20px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.preset-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.preset-btn.active {
    background: #8b5cf6;
    color: white;
}

.preset-btn:not(.active) {
    background: #e2e8f0;
    color: #475569;
}

/* Тело панели */
.filters-panel-body {
    padding: 16px;
    max-height: 60vh;
    overflow-y: auto;
}

/* Группа фильтров */
.filter-group {
    margin-bottom: 20px;
}

.filter-group > div:first-child {
    font-weight: 600;
    margin-bottom: 10px;
    color: #1e293b;
}

/* Категории фильтров */
.filter-category {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    background: white;
    margin-bottom: 8px;
}

.category-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.category-toggle {
    color: #64748b;
    font-size: 12px;
    transition: transform 0.2s;
}

.category-types-container {
    padding: 8px 12px;
    display: none;
    background: white;
    flex-direction: column;
    gap: 6px;
}

/* Чекбоксы типов */
.type-checkbox {
    width: 16px;
    height: 16px;
    margin-left: 4px;
    cursor: pointer;
}

/* Кнопки автора */
.author-filter-btn {
    flex: 1;
    padding: 8px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.author-filter-btn.active {
    background: #8b5cf6;
    color: white;
}

.author-filter-btn:not(.active) {
    background: white;
    color: #475569;
}

.author-filter-btn:not(.active):hover {
    background: #f1f5f9;
}

/* Кнопки даты */
.date-filter-btn {
    padding: 6px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.date-filter-btn.active {
    background: #8b5cf6;
    color: white;
}

.date-filter-btn:not(.active) {
    background: white;
    color: #475569;
}

.date-filter-btn:not(.active):hover {
    background: #f1f5f9;
}

/* Поля даты */
.custom-date-range input {
    flex: 1;
    padding: 8px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 13px;
}

/* Чекбоксы дополнительных фильтров */
.filter-group label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 6px 0;
}

.filter-group label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

/* Слайдер лайков */
#filter-min-likes {
    flex: 1;
    height: 4px;
    -webkit-appearance: none;
    background: #e2e8f0;
    border-radius: 2px;
    outline: none;
}

#filter-min-likes::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    background: #8b5cf6;
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

#min-likes-value {
    min-width: 40px;
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
}

/* Футер панели */
.filters-panel-footer {
    padding: 16px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    gap: 12px;
    background: #f8fafc;
}

.btn-reset-filters,
.btn-apply-filters {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-reset-filters {
    background: #f1f5f9;
    color: #475569;
}

.btn-reset-filters:hover {
    background: #e2e8f0;
}

.btn-apply-filters {
    background: #8b5cf6;
    color: white;
}

.btn-apply-filters:hover {
    background: #7c3aed;
    transform: translateY(-1px);
}

/* Кнопки "Выбрать все" и "Очистить все" */
.select-all-categories,
.clear-all-categories {
    background: none;
    border: none;
    font-size: 11px;
    cursor: pointer;
}

.select-all-categories {
    color: #8b5cf6;
}

.clear-all-categories {
    color: #ef4444;
}

/* Бейдж активных фильтров */
.active-filters-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 12px;
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .markers-filters-panel {
        width: 90%;
        right: 5%;
        left: 5%;
        top: 100px;
    }
    
    .filters-panel-body {
        max-height: 50vh;
    }
}

@media (max-width: 480px) {
    .filters-presets {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .filters-presets > div:last-child {
        flex-wrap: nowrap;
        min-width: max-content;
    }
    
    .custom-date-range {
        flex-direction: column;
    }
}

/* ===== БЛОК ИНФОРМАЦИИ О ВОДОЕМЕ В ПОПАПЕ ПРОГНОЗА ===== */

.forecast-waterbody-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
    border-bottom: 1px solid #7dd3fc;
}

.forecast-waterbody-header .waterbody-icon {
    font-size: 28px;
}

.forecast-waterbody-header .waterbody-details {
    flex: 1;
}

.forecast-waterbody-header .waterbody-name {
    display: block;
    font-weight: 700;
    font-size: 14px;
    color: #0369a1;
}

.forecast-waterbody-header .waterbody-distance {
    display: block;
    font-size: 11px;
    color: #0284c7;
    margin-top: 2px;
}

/* ===== СЕЛЕКТОР ВЫБОРА РЫБЫ ===== */

.forecast-fish-selector {
    padding: 12px 16px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.selector-label {
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 8px;
}

.fish-select-dropdown {
    width: 100%;
    padding: 10px 12px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    color: #1e293b;
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
}

.fish-select-dropdown:hover {
    border-color: #3b82f6;
}

.fish-select-dropdown:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* ===== КАРТОЧКА ПРОГНОЗА ДЛЯ РЫБЫ ===== */

.forecast-fish-block {
    padding: 16px;
    background: white;
}

.fish-forecast-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 16px;
    padding: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.fish-forecast-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e2e8f0;
}

.fish-icon {
    font-size: 32px;
}

.fish-name {
    font-size: 14px;
    font-weight: 500;
    color: #1e293b;
    flex: 1;
}

.fish-type-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

.fish-forecast-score {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e2e8f0;
}

.fish-score-ring {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.fish-score-value {
    font-size: 24px;
    font-weight: 800;
    background: white;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fish-score-value small {
    font-size: 10px;
    margin-left: 2px;
}

.fish-index {
    text-align: center;
    flex: 1;
}

.fish-index .index-value {
    font-size: 28px;
    font-weight: 800;
}

.fish-index .index-max {
    font-size: 14px;
    font-weight: 500;
    color: #94a3b8;
}

.fish-index .index-text {
    font-size: 12px;
    font-weight: 600;
    display: block;
    margin-top: 4px;
}

.fish-forecast-details {
    margin-bottom: 12px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 12px;
    color: #475569;
    border-bottom: 1px solid #f1f5f9;
}

.detail-row:last-child {
    border-bottom: none;
}

.fish-forecast-desc {
    font-size: 12px;
    color: #64748b;
    padding-top: 10px;
    border-top: 1px solid #e2e8f0;
    font-style: italic;
}

/* Адаптивность */
@media (max-width: 480px) {
    .fish-forecast-score {
        flex-direction: column;
        text-align: center;
    }
    
    .fish-score-ring {
        margin: 0 auto;
    }
    
    .detail-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
}

/* ===== ДОПОЛНИТЕЛЬНЫЕ СТИЛИ ДЛЯ ПРОГНОЗА РЫБЫ ===== */

.forecast-fish-info {
    margin: 0px 0;
    padding: 12px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.fish-info-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e2e8f0;
}

.fish-info-header .fish-icon {
    font-size: 28px;
}

.fish-info-header .fish-name {
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
    flex: 1;
}

.fish-info-header .fish-type {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

.fish-optimum {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.optimum-item {
    font-size: 12px;
    color: #475569;
    background: white;
    padding: 4px 10px;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
}

.optimum-item.fish-desc {
    width: 100%;
    margin-top: 4px;
    font-style: italic;
    color: #64748b;
    background: #f8fafc;
}

/* Стили для динамического контента */
.forecast-dynamic-content,
.weather-dynamic-content {
    transition: opacity 0.2s ease;
}

/* Загрузка */
.loading-spinner-small {
    width: 30px;
    height: 30px;
    border: 3px solid #e2e8f0;
    border-top-color: #667eea;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Ошибка */
.weather-error-state {
    text-align: center;
    padding: 30px 20px;
    background: #fef2f2;
    border-radius: 12px;
    margin: 16px;
}

.weather-error-state .retry-btn {
    margin-top: 12px;
    background: #3b82f6;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
}

/* ===== ВРЕМЕННЫЙ МАРКЕР-ПОДСВЕТКА (ПУЛЬСИРУЮЩИЙ) ===== */
/* Эти стили также добавляются динамически через JS, но продублированы здесь для надежности */

.temporary-marker-pulse {
    position: relative;
    width: 40px;
    height: 40px;
    cursor: pointer;
    pointer-events: none;
}

.temporary-marker-dot {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 14px;
    height: 14px;
    background: #ef4444;
    border-radius: 50%;
    border: 2px solid #ffffff;
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.6);
    z-index: 3;
    animation: pulse-dot 1.2s ease-in-out infinite;
}

.temporary-marker-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid rgba(239, 68, 68, 0.6);
    z-index: 2;
    animation: pulse-ring 1.2s ease-in-out infinite;
}

.temporary-marker-ring.ring-delay-1 {
    animation-delay: 0.4s;
}

.temporary-marker-ring.ring-delay-2 {
    animation-delay: 0.8s;
}

@keyframes pulse-dot {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        box-shadow: 0 0 20px rgba(239, 68, 68, 0.6);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
        box-shadow: 0 0 40px rgba(239, 68, 68, 0.8);
    }
}

@keyframes pulse-ring {
    0% {
        width: 14px;
        height: 14px;
        opacity: 1;
        border-width: 2px;
    }
    100% {
        width: 50px;
        height: 50px;
        opacity: 0;
        border-width: 1px;
    }
}

/* Анимация появления маркера */
.temporary-marker-pulse {
    animation: marker-appear 0.3s ease-out;
}

@keyframes marker-appear {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    60% {
        transform: scale(1.3);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Анимация исчезновения маркера */
.temporary-marker-pulse.removing {
    animation: marker-disappear 0.3s ease-in forwards;
}

@keyframes marker-disappear {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(0.3);
        opacity: 0;
    }
}

/* ===== МОДАЛЬНОЕ ОКНО ДЛЯ КАТЕГОРИИ ===== */

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.marker-category-modal .modal-content {
    animation: modalSlideIn 0.3s ease;
}

.marker-category-modal .form-group input[type="text"]:focus,
.marker-category-modal .form-group input[type="color"]:focus {
    outline: none;
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

.marker-category-modal .btn-success:hover {
    background: #059669 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.marker-category-modal .btn-secondary:hover {
    background: #f1f5f9 !important;
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .marker-category-modal .modal-content {
        width: 95%;
        margin: 10px;
    }
    
    .marker-category-modal .modal-header {
        padding: 16px;
    }
    
    .marker-category-modal .modal-body {
        padding: 16px;
    }
    
    .marker-category-modal .modal-footer {
        padding: 12px 16px;
        flex-direction: column;
    }
    
    .marker-category-modal .modal-footer button {
        width: 100%;
        justify-content: center;
    }
}

/* ===== КНОПКИ ДЕЙСТВИЙ ДЛЯ КАТЕГОРИЙ ===== */

.btn-edit-category:hover {
    background: #dbeafe !important;
    border-color: #3b82f6 !important;
}

.btn-delete-category:hover:not([disabled]) {
    background: #fee2e2 !important;
    border-color: #ef4444 !important;
}

.btn-delete-category[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Адаптивность для кнопок */
@media (max-width: 768px) {
    .category-header {
        flex-direction: column;
        align-items: stretch !important;
        gap: 8px !important;
    }
    
    .category-header > div:first-child {
        flex-wrap: wrap;
        gap: 4px;
    }
    
    .category-header .btn-text-desktop {
        display: none;
    }
    
    .category-header .btn-action {
        padding: 6px 8px;
        font-size: 14px;
    }
    
    .btn-edit-category,
    .btn-delete-category {
        flex: 1;
        justify-content: center;
    }
}

/* Добавить в конец файла */

/* Стили для кастомного слайдера */
#filter-min-likes::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    background: #8b5cf6;
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

#filter-min-likes::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: #8b5cf6;
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

/* Стили для инпута даты */
.custom-date-input:focus {
    outline: none;
    border-color: #8b5cf6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
}