/* ==========================================================================
   Интерактивная карта Жетысуской области - Адаптивные стили v3.0
   Физическая текстура + Города/Села + Постоянный реестр маршрутов KML
   ========================================================================== */

:root {
    --bg-dark: #0d1117;
    --card-bg: rgba(18, 24, 38, 0.85);
    --card-border: rgba(255, 255, 255, 0.14);
    --card-active: rgba(0, 229, 255, 0.22);
    --card-active-border: #00e5ff;
    --text-primary: #f0f6fc;
    --text-secondary: #9aa5b5;
    --accent: #00e5ff;
    --accent-hover: #33ebff;
    --accent-gold: #ffd166;
    --shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.45);
    --radius-lg: 16px;
    --radius-md: 10px;
    --radius-sm: 6px;
    --safe-top: env(safe-area-inset-top, 0px);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: var(--bg-dark);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--text-primary);
    user-select: none;
}

/* Контейнер карты */
#map {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1;
    background: #0a0e14;
}

/* Верхняя панель (Бренд / Заголовок) */
.brand-header {
    position: absolute;
    top: calc(16px + var(--safe-top));
    left: 16px;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 18px;
    background: var(--card-bg);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    pointer-events: auto;
}

.brand-badge {
    font-size: 22px;
    line-height: 1;
}

.brand-text h1 {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #ffffff;
    text-transform: uppercase;
}

.brand-text p {
    font-size: 11px;
    color: var(--text-secondary);
}

/* Боковая плавающая панель управления */
.floating-controls {
    position: absolute;
    top: calc(16px + var(--safe-top));
    right: 16px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.control-btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    cursor: pointer;
    font-size: 18px;
    box-shadow: var(--shadow);
    transition: all 0.2s ease;
}

.control-btn:hover {
    background: rgba(30, 41, 59, 0.95);
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-1px);
}

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

/* ==========================================================================
   Боковая панель Google Earth Pro: Метки и Слои
   ========================================================================== */
.routes-sidebar {
    position: absolute;
    top: calc(16px + var(--safe-top));
    right: 76px;
    z-index: 1001;
    width: 385px;
    max-height: calc(100vh - 32px);
    background: var(--card-bg);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.08);
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow: hidden;
    transform: translateX(410px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

.routes-sidebar.active {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
}

/* Шапка панели */
.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}

.sidebar-title-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ge-brand-icon {
    font-size: 24px;
    line-height: 1;
}

.ge-title-text h3 {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #ffffff;
    text-transform: uppercase;
}

.ge-subtitle {
    font-size: 10px;
    color: var(--accent);
    display: block;
}

.sidebar-header-btns {
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-icon-action {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-icon-action:hover {
    background: rgba(0, 229, 255, 0.2);
    border-color: var(--accent);
    color: var(--accent);
}

.btn-close {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 22px;
    cursor: pointer;
    line-height: 1;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
}

.btn-close:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

/* Переключатель вкладок: Метки / Слои */
.ge-tabs-bar {
    display: flex;
    gap: 6px;
    background: rgba(0, 0, 0, 0.25);
    padding: 3px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.06);
    flex-shrink: 0;
}

.ge-tab-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 7px 10px;
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ge-tab-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
}

.ge-tab-btn.active {
    background: rgba(0, 229, 255, 0.18);
    color: var(--accent);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.ge-tab-badge {
    font-size: 10px;
    padding: 1px 6px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.ge-tab-btn.active .ge-tab-badge {
    background: var(--accent);
    color: #000000;
    font-weight: 700;
}

/* Контейнеры вкладок */
.ge-tab-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.ge-section-hint {
    font-size: 11px;
    color: var(--text-secondary);
    line-height: 1.4;
    padding: 6px 10px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-sm);
    border-left: 2px solid var(--accent);
    flex-shrink: 0;
}

.ge-section-hint strong {
    color: #ffffff;
}

/* Иерархическое дерево меток (Places Tree) */
.ge-places-tree {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    min-height: 120px;
    max-height: calc(100vh - 240px);
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding-right: 6px;
    padding-top: 2px;
    padding-bottom: 6px;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 229, 255, 0.45) rgba(255, 255, 255, 0.05);
}

.ge-places-tree::-webkit-scrollbar {
    width: 6px;
}

.ge-places-tree::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 6px;
}

.ge-places-tree::-webkit-scrollbar-thumb {
    background: rgba(0, 229, 255, 0.35);
    border-radius: 6px;
    border: 1px solid rgba(0, 229, 255, 0.15);
}

.ge-places-tree::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 229, 255, 0.65);
    box-shadow: 0 0 8px rgba(0, 229, 255, 0.5);
}

/* Узел места / папки */
.ge-tree-node {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all 0.2s ease;
}

.ge-tree-node:hover {
    border-color: rgba(0, 229, 255, 0.35);
    background: rgba(255, 255, 255, 0.06);
}

.ge-tree-node.is-focused {
    border-color: var(--accent);
    box-shadow: 0 0 12px rgba(0, 229, 255, 0.25);
}

/* Шапка папки места */
.ge-node-header {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 10px;
    background: rgba(0, 0, 0, 0.15);
}

/* Кнопка сворачивания (стрелочка) */
.ge-expander-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 10px;
    padding: 0;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.ge-expander-btn:hover {
    color: #ffffff;
}

.ge-expander-btn.collapsed .ge-expander-arrow {
    transform: rotate(-90deg);
}

.ge-expander-arrow {
    display: inline-block;
    transition: transform 0.2s ease;
}

/* Google Earth Checkbox */
.ge-checkbox-label {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    margin: 0;
    flex-shrink: 0;
}

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

.ge-checkbox-custom {
    width: 15px;
    height: 15px;
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    border-radius: 3px;
    background: rgba(0, 0, 0, 0.3);
    position: relative;
    transition: all 0.15s ease;
    display: inline-block;
}

.ge-checkbox-label input[type="checkbox"]:checked + .ge-checkbox-custom {
    background: var(--accent);
    border-color: var(--accent);
}

.ge-checkbox-label input[type="checkbox"]:checked + .ge-checkbox-custom::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 1px;
    width: 4px;
    height: 8px;
    border: solid #000000;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.ge-node-icon {
    font-size: 15px;
    flex-shrink: 0;
}

.ge-node-title-wrap {
    flex: 1;
    min-width: 0;
    cursor: pointer;
}

.ge-node-title {
    font-size: 12px;
    font-weight: 600;
    color: #ffffff;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ge-node-stats {
    font-size: 10px;
    color: var(--text-secondary);
    display: block;
    margin-top: 1px;
}

.ge-node-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.ge-action-btn {
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ge-action-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.15);
}

.ge-action-btn.btn-focus-route:hover {
    color: var(--accent);
    border-color: var(--accent);
    background: rgba(0, 229, 255, 0.2);
}

.ge-action-btn.btn-rename-route:hover {
    color: var(--accent-gold);
    border-color: var(--accent-gold);
    background: rgba(255, 209, 102, 0.2);
}

.ge-action-btn.btn-delete-route:hover {
    color: #f43f5e;
    border-color: #f43f5e;
    background: rgba(244, 63, 94, 0.2);
}

.ge-action-btn.btn-reverse-sub-road:hover {
    color: #4ade80;
    border-color: #4ade80;
    background: rgba(74, 222, 128, 0.2);
}

.ge-action-btn.btn-photo-route {
    position: relative;
}

.ge-action-btn.btn-photo-route:hover {
    color: #38bdf8;
    border-color: #38bdf8;
    background: rgba(56, 189, 248, 0.2);
}

.ge-photo-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #0284c7;
    color: #ffffff;
    font-size: 8px;
    font-weight: 700;
    padding: 1px 4px;
    border-radius: 6px;
    line-height: 1;
    border: 1px solid rgba(0, 0, 0, 0.5);
}

/* Полоса превью фото внутри дерева меток */
.ge-photos-strip {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    overflow-x: auto;
    background: rgba(0, 0, 0, 0.25);
    border-top: 1px dashed rgba(255, 255, 255, 0.08);
    scrollbar-width: none;
}

.ge-photos-strip::-webkit-scrollbar {
    display: none;
}

.ge-photo-thumb-mini {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.15);
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease;
    flex-shrink: 0;
}

.ge-photo-thumb-mini:hover {
    transform: scale(1.08);
    border-color: var(--accent);
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.5);
}

.ge-add-photo-mini-btn {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    border: 1px dashed rgba(56, 189, 248, 0.4);
    background: rgba(56, 189, 248, 0.1);
    color: #38bdf8;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.ge-add-photo-mini-btn:hover {
    background: rgba(56, 189, 248, 0.25);
    border-color: #38bdf8;
    transform: scale(1.05);
}

/* Вложенные подметки (Subitems) */
.ge-subitems-tree {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 6px 8px 8px 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
}

.ge-subitems-tree.collapsed {
    display: none;
}

.ge-subitem-node {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 8px;
    border-radius: var(--radius-sm);
    transition: background 0.15s ease;
}

.ge-subitem-node:hover {
    background: rgba(255, 255, 255, 0.06);
}

.ge-tree-branch {
    font-family: monospace;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.25);
    user-select: none;
    flex-shrink: 0;
}

.ge-subitem-color {
    width: 6px;
    height: 16px;
    border-radius: 2px;
    flex-shrink: 0;
}

.ge-subitem-icon {
    font-size: 13px;
    flex-shrink: 0;
}

.ge-subitem-icon-point {
    font-size: 12px;
    flex-shrink: 0;
}

.ge-subitem-content {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    cursor: pointer;
}

.ge-subitem-name {
    font-size: 11px;
    color: #f0f6fc;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ge-subitem-meta {
    font-size: 10px;
    color: var(--text-secondary);
    flex-shrink: 0;
}

.ge-subitem-node:hover .ge-subitem-name {
    color: var(--accent);
}

/* Задел под будущие символы / пиктограммы */
.subitem-placeholder {
    opacity: 0.65;
    border: 1px dashed rgba(255, 255, 255, 0.1);
    margin-top: 2px;
}

.subitem-placeholder .placeholder-text {
    font-style: italic;
    color: var(--text-secondary);
}

/* Заголовки групп подэлементов внутри места (Дороги / Пункты) */
.ge-subitem-group-header {
    padding: 5px 6px 2px 4px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--accent);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    margin-bottom: 3px;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Пользовательские интерактивные маркеры точек интереса (POI) на карте */
.ge-custom-poi-container {
    z-index: 1000 !important;
}

.ge-custom-poi-container:hover {
    z-index: 2500 !important;
}

.ge-map-poi-marker {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    background: rgba(15, 23, 42, 0.92);
    border: 2px solid var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.4), 0 2px 6px rgba(0, 0, 0, 0.6);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    z-index: 1000;
}

.ge-map-poi-marker:hover {
    transform: scale(1.2);
    box-shadow: 0 0 16px rgba(0, 229, 255, 0.8), 0 3px 8px rgba(0, 0, 0, 0.7);
    z-index: 2500 !important;
}

.ge-map-poi-marker .poi-icon {
    font-size: 13px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Векторные SVG иконки с поддержкой динамического цвета */
.poi-icon-svg {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    color: var(--poi-icon-color, var(--accent, #00e5ff));
    transition: color 0.2s ease, transform 0.2s ease;
}

.poi-icon-svg svg {
    width: 100%;
    height: 100%;
    display: block;
    fill: currentColor;
}

.poi-icon-svg.poi-icon-mask {
    background-color: var(--poi-icon-color, var(--accent, #00e5ff));
    -webkit-mask-image: var(--poi-icon-url);
    mask-image: var(--poi-icon-url);
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
}

.ge-map-poi-marker:hover .poi-icon-svg {
    color: #ffffff !important;
    filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.8));
}

.ge-map-poi-marker:hover .poi-icon-svg.poi-icon-mask {
    background-color: #ffffff !important;
}

.ge-subitem-icon-point .poi-icon-svg {
    width: 13px;
    height: 13px;
    margin-right: 4px;
    vertical-align: middle;
}

.poi-badge {
    background: rgba(167, 139, 250, 0.2) !important;
    border-color: rgba(167, 139, 250, 0.4) !important;
    color: #c4b5fd !important;
}

.subitem-poi:hover {
    background: rgba(255, 255, 255, 0.08);
}

/* Вкладка: Слои Google Earth Pro */
.ge-layers-tree {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
    min-height: 120px;
    max-height: calc(100vh - 240px);
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding-right: 6px;
    padding-top: 2px;
    padding-bottom: 6px;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 229, 255, 0.45) rgba(255, 255, 255, 0.05);
}

.ge-layers-tree::-webkit-scrollbar {
    width: 6px;
}

.ge-layers-tree::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 6px;
}

.ge-layers-tree::-webkit-scrollbar-thumb {
    background: rgba(0, 229, 255, 0.35);
    border-radius: 6px;
    border: 1px solid rgba(0, 229, 255, 0.15);
}

.ge-layers-tree::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 229, 255, 0.65);
    box-shadow: 0 0 8px rgba(0, 229, 255, 0.5);
}

.ge-layer-group {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.ge-layer-group-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    background: rgba(0, 0, 0, 0.25);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
}

.ge-layer-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    cursor: pointer;
    transition: background 0.15s ease;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.ge-layer-row:hover {
    background: rgba(255, 255, 255, 0.06);
}

.ge-layer-name {
    flex: 1;
    font-size: 12px;
    color: var(--text-primary);
}

.ge-layer-tag, .ge-layer-badge {
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(0, 229, 255, 0.15);
    color: var(--accent);
    font-weight: 600;
}

.ge-layer-badge {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
}

/* Кнопка импорта */
.sidebar-actions {
    margin-top: auto;
    flex-shrink: 0;
    padding-top: 4px;
}

.btn-primary-import {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 10px 14px;
    background: rgba(0, 229, 255, 0.15);
    border: 1px dashed var(--accent);
    border-radius: var(--radius-md);
    color: var(--accent);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary-import:hover {
    background: rgba(0, 229, 255, 0.25);
    box-shadow: 0 0 16px rgba(0, 229, 255, 0.3);
}

.no-routes-hint {
    font-size: 12px;
    color: var(--text-secondary);
    text-align: center;
    padding: 24px 0;
}

/* Попапы для точек старта и финиша маршрута */
.route-point-popup h4 {
    font-size: 13px;
    color: #ffffff;
    margin: 4px 0;
    font-weight: 700;
}

.point-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: 0.3px;
}

.point-badge.start-badge {
    background: rgba(74, 222, 128, 0.2);
    color: #4ade80;
    border: 1px solid rgba(74, 222, 128, 0.4);
}

.point-badge.finish-badge {
    background: rgba(244, 63, 94, 0.2);
    color: #f43f5e;
    border: 1px solid rgba(244, 63, 94, 0.4);
}

.point-hint {
    font-size: 10px;
    color: var(--accent);
    margin-top: 4px !important;
}

.route-point-popup p {
    font-size: 11px;
    color: var(--text-secondary);
    margin: 2px 0;
}

/* Нижняя панель слоев и оверлеев */
.layers-panel-container {
    position: absolute;
    bottom: calc(24px + var(--safe-bottom));
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    max-width: 95vw;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
}

.layers-panel {
    background: var(--card-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 12px 16px;
    box-shadow: var(--shadow);
    display: flex;
    gap: 16px;
    align-items: stretch;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.panel-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: gap 0.2s ease;
}

.panel-divider {
    width: 1px;
    background: rgba(255, 255, 255, 0.12);
    margin: 2px 0;
}

.layers-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    padding: 2px 4px;
    border-radius: 6px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.layers-header:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.layers-header-title {
    display: flex;
    align-items: center;
    gap: 6px;
}

.layers-header-icon {
    font-size: 13px;
    line-height: 1;
}

.layers-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-layers-collapse {
    background: rgba(0, 229, 255, 0.12);
    border: 1px solid rgba(0, 229, 255, 0.35);
    color: #00e5ff;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    line-height: 1;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.btn-layers-collapse:hover {
    background: #00e5ff;
    color: #04101e;
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.5);
}

.btn-layers-collapse .collapse-icon {
    font-size: 9px;
    transition: transform 0.25s ease;
}

/* Свернутое состояние нижней панели (временно свернуть, чтобы освободить обзор карты) */
.layers-panel-container.is-collapsed .layers-panel {
    padding: 6px 14px;
    border-radius: 20px;
    background: rgba(9, 13, 22, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-color: rgba(0, 229, 255, 0.45);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.75), 0 0 16px rgba(0, 229, 255, 0.25);
    gap: 0;
}

.layers-panel-container.is-collapsed .panel-section {
    gap: 0;
    width: 100%;
}

.layers-panel-container.is-collapsed .layers-header {
    width: 100%;
    gap: 14px;
}

.layers-panel-container.is-collapsed .toggles-grid {
    display: none !important;
}

.layers-panel-container.is-collapsed .btn-layers-collapse {
    background: linear-gradient(135deg, rgba(2, 132, 199, 0.35), rgba(0, 229, 255, 0.35));
    border-color: #00e5ff;
    color: #00e5ff;
    padding: 4px 10px;
    border-radius: 12px;
}

.layers-panel-container.is-collapsed .btn-layers-collapse:hover {
    background: #00e5ff;
    color: #04101e;
    box-shadow: 0 0 12px rgba(0, 229, 255, 0.6);
}

.badge-count, .badge-info {
    font-size: 10px;
    color: var(--accent);
    background: rgba(0, 229, 255, 0.12);
    padding: 2px 6px;
    border-radius: 4px;
}

.badge-info {
    color: #4ade80;
    background: rgba(74, 222, 128, 0.12);
}

/* Карточки базовых текстур */
.layers-list {
    display: flex;
    gap: 8px;
}

.layer-card {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    color: var(--text-primary);
    cursor: pointer;
    text-align: left;
    transition: all 0.2s ease;
    min-width: 155px;
}

.layer-card:hover {
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(255, 255, 255, 0.2);
}

.layer-card.active {
    background: var(--card-active);
    border-color: var(--card-active-border);
    box-shadow: 0 0 16px rgba(0, 229, 255, 0.25);
}

.layer-icon {
    font-size: 20px;
}

.layer-details {
    display: flex;
    flex-direction: column;
}

.layer-title {
    font-size: 12px;
    font-weight: 600;
}

.layer-desc {
    font-size: 9px;
    color: var(--text-secondary);
    margin-top: 1px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Сетка тумблеров */
.toggles-grid {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 100%;
}

.toggle-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
}

.toggle-item:hover {
    background: rgba(255, 255, 255, 0.08);
}

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

.toggle-switch {
    position: relative;
    width: 32px;
    height: 18px;
    background: #374151;
    border-radius: 10px;
    transition: background 0.25s ease;
    flex-shrink: 0;
}

.toggle-switch::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 14px;
    height: 14px;
    background: #ffffff;
    border-radius: 50%;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.toggle-item input:checked + .toggle-switch {
    background: var(--accent);
}

.toggle-item input:checked + .toggle-switch::after {
    transform: translateX(14px);
}

.toggle-label {
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

.import-kml-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: rgba(0, 229, 255, 0.12);
    border: 1px solid var(--accent);
    border-radius: var(--radius-md);
    color: var(--accent);
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.import-kml-btn:hover {
    background: rgba(0, 229, 255, 0.22);
    box-shadow: 0 0 12px rgba(0, 229, 255, 0.3);
    transform: translateY(-1px);
}

/* Стили меток */
.custom-settlement-icon {
    background: transparent;
    border: none;
}

.settlement-marker {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 2px 8px 2px 4px;
    background: rgba(13, 17, 23, 0.85);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(6px);
    transition: transform 0.15s ease;
}

.settlement-marker:hover {
    transform: scale(1.1);
    border-color: var(--accent);
    z-index: 1000 !important;
}

.marker-capital {
    border-color: var(--accent-gold);
    box-shadow: 0 0 12px rgba(255, 209, 102, 0.45);
}

.marker-capital .marker-dot {
    width: 10px;
    height: 10px;
    background: var(--accent-gold);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--accent-gold);
    border: 2px solid #ffffff;
}

.marker-capital .marker-label {
    font-size: 12px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.3px;
}

.marker-city .marker-dot {
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 6px var(--accent);
    border: 1.5px solid #ffffff;
}

.marker-city .marker-label {
    font-size: 11px;
    font-weight: 600;
    color: #f0f6fc;
}

.marker-town {
    padding: 1px 6px 1px 3px;
    background: rgba(15, 23, 42, 0.78);
    border-color: rgba(255, 255, 255, 0.12);
}

.marker-dot-small {
    width: 6px;
    height: 6px;
    background: #94a3b8;
    border-radius: 50%;
    border: 1px solid #ffffff;
}

.marker-label-small {
    font-size: 10px;
    color: #cbd5e1;
}

/* ==========================================================================
   Метки туристических локаций с логотипами (Серкесай, Бурхан-Булак и др.)
   Масштабирование: zoom < 8.0 - круглый значок с логотипом (screenlogo.png справа)
                   zoom >= 8.0 - овальная плашка с логотипом слева (screenlogo.png слева)
   ========================================================================== */
.custom-destination-icon {
    background: transparent !important;
    border: none !important;
    overflow: visible !important;
}

.destination-badge-marker {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 3px 12px 3px 7px;
    height: 28px;
    background: rgba(13, 17, 23, 0.90);
    border-radius: 9999px;
    border: 1.5px solid var(--accent-gold, #ffd166);
    box-shadow: 0 0 12px rgba(255, 209, 102, 0.45), 0 3px 8px rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    cursor: pointer;
    user-select: none;
    transform: translate(-50%, -50%);
    transition: transform 0.18s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.18s ease, border-color 0.18s ease;
    white-space: nowrap;
    z-index: 1000;
}

.destination-badge-marker:hover {
    transform: translate(-50%, -50%) scale(1.08);
    box-shadow: 0 0 18px rgba(255, 209, 102, 0.65), 0 4px 12px rgba(0, 0, 0, 0.8);
    border-color: #ffe082;
    z-index: 2500 !important;
}

.destination-badge-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.destination-badge-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    pointer-events: none;
}

.destination-badge-title {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.3px;
    line-height: 1;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

/* Компактный режим при zoom < 8.0: только круг с логотипом */
.zoom-badges-compact .destination-badge-marker {
    width: 32px;
    height: 32px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
    gap: 0;
}

.zoom-badges-compact .destination-badge-marker .destination-badge-logo {
    width: 20px;
    height: 20px;
}

.zoom-badges-compact .destination-badge-marker .destination-badge-title {
    display: none !important;
}

/* При zoom < 10.0 (10.0 > zoom > 0) скрываются все внутренние элементы меток:
   POI-маркеры, маркеры старта и финиша, линии троп/дорог.
   Остается исключительно плашка с названием и логотипом */
.route-subelements-hidden .ge-custom-poi-container,
.route-subelements-hidden .route-endpoint-marker,
.route-subelements-hidden .route-path-polyline {
    display: none !important;
}

/* Выноска (Leader line) от нативной гео-точки к смещенной плашке с логотипом */
.destination-leader-line {
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.95));
    pointer-events: none;
}

.destination-leader-anchor {
    filter: drop-shadow(0 0 5px rgba(255, 209, 102, 0.9));
    pointer-events: none;
}

/* Popups */
.leaflet-popup-content-wrapper {
    background: rgba(18, 24, 38, 0.94) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md) !important;
    color: var(--text-primary) !important;
    box-shadow: var(--shadow) !important;
    padding: 6px !important;
}

.leaflet-popup-tip {
    background: rgba(18, 24, 38, 0.94) !important;
    border: 1px solid var(--card-border);
}

.settlement-popup h3 {
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    margin: 4px 0 2px 0;
}

.settlement-popup h3 small {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: normal;
}

.popup-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--accent-gold);
    background: rgba(255, 209, 102, 0.15);
    padding: 2px 6px;
    border-radius: 4px;
    margin-bottom: 4px;
}

.popup-badge.badge-town {
    color: var(--accent);
    background: rgba(0, 229, 255, 0.12);
}

.popup-district {
    font-size: 11px;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.popup-desc {
    font-size: 12px;
    line-height: 1.4;
    color: #e2e8f0;
    margin-bottom: 8px;
}

.popup-tourism {
    font-size: 11px;
    line-height: 1.4;
    background: rgba(255, 255, 255, 0.05);
    padding: 6px 8px;
    border-radius: var(--radius-sm);
    border-left: 2px solid var(--accent);
}

.route-popup h4 {
    font-size: 14px;
    color: #ff9100;
    margin-bottom: 4px;
}

.route-popup p {
    font-size: 11px;
    line-height: 1.4;
    color: #cbd5e1;
    margin: 2px 0;
}

/* Бейджи и стили карточек дорог Жетысу */
.popup-badge.badge-road-motorway {
    color: #ff9f1c;
    background: rgba(255, 159, 28, 0.15);
    border: 1px solid rgba(255, 159, 28, 0.35);
}

.popup-badge.badge-road-regional {
    color: #00e5ff;
    background: rgba(0, 229, 255, 0.15);
    border: 1px solid rgba(0, 229, 255, 0.35);
}

.popup-badge.badge-road-gravel {
    color: #f59e0b;
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.35);
}

.road-popup {
    min-width: 220px;
}

.road-popup-grid {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 11px;
    background: rgba(255, 255, 255, 0.05);
    padding: 6px 8px;
    border-radius: var(--radius-sm);
    margin: 6px 0;
    color: #cbd5e1;
}

.road-popup-grid div {
    display: flex;
    justify-content: space-between;
    gap: 8px;
}

.road-popup-grid strong {
    color: var(--text-secondary);
}

/* Drag and Drop Overlay */
.drag-drop-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(13, 17, 23, 0.85);
    backdrop-filter: blur(12px);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

body.drag-over .drag-drop-overlay {
    display: flex;
}

.drag-drop-box {
    text-align: center;
    padding: 40px 60px;
    border: 2px dashed var(--accent);
    border-radius: var(--radius-lg);
    background: rgba(18, 24, 38, 0.9);
}

.drag-icon {
    font-size: 48px;
    display: block;
    margin-bottom: 12px;
}

.bottom-info-bar {
    position: absolute;
    bottom: calc(10px + var(--safe-bottom));
    right: 16px;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 11px;
    color: var(--text-secondary);
    background: rgba(13, 17, 23, 0.65);
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    backdrop-filter: blur(8px);
}

#map-attribution {
    font-size: 9px;
    opacity: 0.7;
    max-width: 250px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Мобильная адаптация */
@media (max-width: 768px) {
    .brand-header {
        top: calc(12px + var(--safe-top));
        left: 12px;
        padding: 8px 12px;
    }

    .brand-text h1 {
        font-size: 12px;
    }

    .floating-controls {
        top: calc(12px + var(--safe-top));
        right: 12px;
        gap: 6px;
    }

    .control-btn {
        width: 42px;
        height: 42px;
        font-size: 16px;
    }

    .routes-sidebar {
        top: 0;
        right: 0;
        width: 100vw;
        max-height: 100vh;
        height: 100vh;
        border-radius: 0;
        transform: translateY(100%);
    }

    .routes-sidebar.active {
        transform: translateY(0);
    }

    .layers-panel-container {
        bottom: calc(12px + var(--safe-bottom));
        width: calc(100% - 24px);
        left: 12px;
        transform: none;
        transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease, bottom 0.25s ease;
    }

    .layers-panel-container.is-collapsed {
        width: auto;
        left: 50%;
        transform: translateX(-50%);
        max-width: calc(100% - 24px);
        bottom: calc(10px + var(--safe-bottom));
    }

    .layers-panel {
        flex-direction: column;
        padding: 10px;
        max-height: 45vh;
        overflow-y: auto;
    }

    .layers-panel-container.is-collapsed .layers-panel {
        max-height: none;
        overflow: visible;
        padding: 6px 14px;
        border-radius: 20px;
    }

    .panel-divider {
        width: 100%;
        height: 1px;
        margin: 4px 0;
    }

    .layers-list {
        flex-direction: column;
        gap: 6px;
    }

    .layer-card {
        min-width: 100%;
    }

    .toggles-grid {
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
    }

    .toggle-item {
        justify-content: space-between;
    }

    .import-kml-btn {
        justify-content: center;
        padding: 10px;
    }

    .bottom-info-bar {
        display: none;
    }
}

/* ==========================================================================
   Модальное окно редактора фото места (WebP Auto-Compression)
   ========================================================================== */
.photo-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.78);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.2s ease;
}

.photo-modal-window {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.1);
    width: 100%;
    max-width: 680px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: scaleIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes scaleIn {
    from { transform: scale(0.92); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.photo-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.2);
}

.photo-modal-title-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.photo-modal-icon {
    font-size: 24px;
}

.photo-modal-header h3 {
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}

.photo-modal-subtitle {
    font-size: 11px;
    color: var(--accent);
}

.photo-modal-body {
    padding: 18px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
    flex: 1;
    min-height: 0;
}

/* Дропзона */
.photo-dropzone {
    border: 2px dashed rgba(56, 189, 248, 0.4);
    background: rgba(56, 189, 248, 0.05);
    border-radius: var(--radius-md);
    padding: 24px 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.photo-dropzone:hover, .photo-dropzone.dragover {
    border-color: #38bdf8;
    background: rgba(56, 189, 248, 0.12);
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.2);
}

.dropzone-icon {
    font-size: 32px;
    display: block;
    margin-bottom: 6px;
}

.dropzone-text {
    font-size: 13px;
    color: #e2e8f0;
    margin: 0 0 4px 0;
}

.dropzone-text strong {
    color: #38bdf8;
    text-decoration: underline;
}

.dropzone-hint {
    font-size: 10px;
    color: var(--accent-gold);
    display: block;
}

/* Прогресс-бар */
.photo-upload-progress {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.progress-bar-track {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--accent), #38bdf8);
    transition: width 0.2s ease;
}

.progress-text {
    font-size: 11px;
    color: var(--text-secondary);
    text-align: center;
}

/* Сетка фото в редакторе */
.photo-grid-header h4 {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
    margin: 0;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 12px;
}

.photo-card {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    transition: all 0.2s ease;
}

.photo-card:hover {
    border-color: rgba(56, 189, 248, 0.5);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.5);
}

.photo-card-img-wrap {
    width: 100%;
    height: 100px;
    overflow: hidden;
    cursor: pointer;
    background: #0f172a;
    position: relative;
}

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

.photo-card-img-wrap:hover .photo-card-img {
    transform: scale(1.08);
}

.photo-card-caption-input {
    width: 100%;
    padding: 6px 8px;
    background: transparent;
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    color: #e2e8f0;
    font-size: 10px;
    outline: none;
    box-sizing: border-box;
}

.photo-card-caption-input:focus {
    background: rgba(255, 255, 255, 0.05);
    border-top-color: var(--accent);
}

.photo-card-delete-btn {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 22px;
    height: 22px;
    background: rgba(0, 0, 0, 0.75);
    border: 1px solid rgba(244, 63, 94, 0.5);
    border-radius: 50%;
    color: #f43f5e;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0.8;
    transition: all 0.15s ease;
}

.photo-card-delete-btn:hover {
    opacity: 1;
    background: #f43f5e;
    color: #ffffff;
    transform: scale(1.1);
}

.photo-modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 12px 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.15);
}

.btn-primary-action {
    background: rgba(0, 229, 255, 0.2);
    border: 1px solid var(--accent);
    color: var(--accent);
    padding: 8px 20px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary-action:hover {
    background: var(--accent);
    color: #000000;
    box-shadow: 0 0 16px rgba(0, 229, 255, 0.4);
}

/* ==========================================================================
   Полноэкранный просмотрщик фото (Lightbox)
   ========================================================================== */
.photo-lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.94);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease;
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.lightbox-content img {
    max-width: 90vw;
    max-height: 80vh;
    object-fit: contain;
    border-radius: var(--radius-md);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.9);
}

.lightbox-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-top: 10px;
    color: #e2e8f0;
    font-size: 13px;
}

.lightbox-caption {
    font-weight: 500;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

.lightbox-counter {
    font-size: 11px;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 8px;
    border-radius: 10px;
}

.lightbox-btn-close {
    position: absolute;
    top: 20px;
    right: 24px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #ffffff;
    font-size: 32px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 3001;
}

.lightbox-btn-close:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.1);
}

.lightbox-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-size: 24px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 3001;
}

.lightbox-nav-btn:hover {
    background: rgba(0, 229, 255, 0.4);
    border-color: var(--accent);
}

.lightbox-nav-btn.prev {
    left: 24px;
}

.lightbox-nav-btn.next {
    right: 24px;
}

/* Фото-баннер внутри попапа карты */
.route-popup-banner {
    width: 100%;
    height: 120px;
    border-radius: 6px;
    object-fit: cover;
    margin-bottom: 8px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.route-popup-banner:hover {
    transform: scale(1.02);
}

.route-popup-photos-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 6px;
    margin-top: 6px;
    background: rgba(56, 189, 248, 0.15);
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: 4px;
    color: #38bdf8;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.route-popup-photos-btn:hover {
    background: rgba(56, 189, 248, 0.3);
    color: #ffffff;
}

.route-popup-photos-btn.secondary {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #cbd5e1;
    margin-top: 4px;
}

.route-popup-photos-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

.photo-target-coords-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    background: rgba(2, 132, 199, 0.15);
    border: 1px solid rgba(56, 189, 248, 0.45);
    border-radius: 6px;
    padding: 7px 12px;
    margin-bottom: 10px;
    font-size: 11.5px;
    color: #38bdf8;
    font-weight: 500;
}

.photo-target-coords-reset {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 4px;
    color: #fca5a5;
    cursor: pointer;
    font-size: 11px;
    padding: 2px 7px;
    transition: all 0.2s;
}

.photo-target-coords-reset:hover {
    background: rgba(239, 68, 68, 0.35);
    color: #ffffff;
}


/* ==========================================================================
   Значки и метки фотографий на карте (Leaflet Photo Pins)
   ========================================================================== */
.ge-custom-photo-pin-container {
    background: transparent !important;
    border: none !important;
    z-index: 500;
}

.ge-custom-photo-pin-container:hover {
    z-index: 2500 !important;
}

.ge-map-photo-marker {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    -webkit-user-drag: none;
    pointer-events: auto;
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.7));
    transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.ge-map-photo-marker:hover {
    transform: scale(1.18) translateY(-4px);
    z-index: 2500 !important;
}

.photo-marker-pin {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 2px solid #ffffff;
    background-color: #0f172a;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.6), 0 0 10px rgba(56, 189, 248, 0.5);
}

.photo-marker-img {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    min-width: 100% !important;
    min-height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
    border-radius: 50% !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    pointer-events: none !important;
    user-select: none !important;
    -webkit-user-drag: none !important;
}

.photo-marker-badge {
    position: absolute;
    bottom: -1px;
    right: -1px;
    background: rgba(15, 23, 42, 0.95);
    border-radius: 50%;
    font-size: 11px;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid #38bdf8;
    color: #ffffff;
    z-index: 5;
    pointer-events: none;
    user-select: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.6);
}

.photo-marker-arrow {
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 8px solid #ffffff;
    margin-top: -1px;
    pointer-events: none;
}

/* Направляющий треугольник объектива фотокамеры (статичный темный/синий треугольник без анимаций) */
.photo-heading-cone-wrap {
    position: absolute;
    top: 19px;
    left: 19px;
    width: 0;
    height: 0;
    pointer-events: none;
    z-index: 1;
    transform: rotate(var(--photo-heading, 0deg));
    transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.photo-heading-pointer {
    position: absolute;
    bottom: 18px;
    left: -5px;
    width: 10px;
    height: 9px;
    pointer-events: none;
    filter: drop-shadow(0 1.5px 2px rgba(0, 0, 0, 0.6));
}

/* Компактный компас и кнопки направления для попапа и карточки */
.photo-heading-ctrl-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    padding: 6px 10px;
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(56, 189, 248, 0.25);
    border-radius: 6px;
    margin-top: 6px;
    font-size: 11px;
}

.photo-heading-value-badge {
    color: #38bdf8;
    font-weight: 600;
    font-size: 11px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    white-space: nowrap;
}

.photo-heading-presets {
    display: inline-flex;
    gap: 3px;
    align-items: center;
}

.photo-heading-preset-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #cbd5e1;
    border-radius: 4px;
    padding: 2px 5px;
    font-size: 10px;
    font-weight: 600;
    cursor: pointer;
    line-height: 1.2;
    transition: all 0.15s ease;
}

.photo-heading-preset-btn:hover {
    background: #0284c7;
    color: #ffffff;
    border-color: #38bdf8;
}

.photo-heading-slider-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    margin-top: 4px;
}

.photo-heading-slider {
    flex: 1;
    height: 4px;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    outline: none;
}

.photo-heading-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #38bdf8;
    box-shadow: 0 0 6px #00e5ff;
    cursor: pointer;
}

.photo-heading-slider::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #38bdf8;
    box-shadow: 0 0 6px #00e5ff;
    cursor: pointer;
}

.ge-btn-popup-heading {
    background: rgba(14, 165, 233, 0.15);
    color: #0284c7;
    border: 1px solid rgba(14, 165, 233, 0.35);
    padding: 5px 9px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
}

.ge-btn-popup-heading:hover {
    background: #0284c7;
    color: #ffffff;
}

/* Скрытие фото- и видео-меток при масштабе более 300 м (zoom < 15) для предотвращения загромождения карты */
#map.photo-markers-hidden .ge-custom-photo-pin-container,
#map.photo-markers-hidden .ge-custom-video-pin-container,
#map.photo-markers-hidden .ge-custom-pano-pin-container,
#map.photo-markers-hidden .ge-photo-leaflet-divicon {
    display: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
    visibility: hidden !important;
}

/* Режим выбора и перемещения координат на карте */
#map.map-picking-active {
    cursor: crosshair !important;
}

#map.map-picking-active .leaflet-interactive {
    cursor: crosshair !important;
    pointer-events: none !important;
}

#map.map-picking-active .leaflet-control-container {
    pointer-events: auto !important;
}

/* Всплывающий баннер выбора координат на карте */
.map-pick-coords-banner {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(15, 23, 42, 0.96);
    color: #f8fafc;
    border: 1px solid #38bdf8;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), 0 0 16px rgba(56, 189, 248, 0.4);
    border-radius: 30px;
    padding: 10px 22px;
    font-size: 13px;
    font-weight: 500;
    z-index: 10005;
    display: flex;
    align-items: center;
    gap: 14px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    animation: slideDownBanner 0.25s ease-out;
}

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

.map-pick-coords-btn-cancel {
    background: #ef4444;
    color: white;
    border: none;
    padding: 4px 14px;
    border-radius: 14px;
    cursor: pointer;
    font-size: 12px;
    font-weight: bold;
    transition: background 0.15s ease;
}

.map-pick-coords-btn-cancel:hover {
    background: #dc2626;
}

/* Карточка координат в редакторе фото */
.photo-card-coords-bar {
    padding: 5px 8px;
    background: rgba(0, 0, 0, 0.25);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
    font-size: 10px;
}

.photo-coords-badge {
    color: #38bdf8;
    font-size: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-set-photo-coords {
    width: 100%;
    padding: 4px 6px;
    background: rgba(56, 189, 248, 0.15);
    border: 1px solid rgba(56, 189, 248, 0.35);
    border-radius: 4px;
    color: #38bdf8;
    font-size: 10px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition: all 0.15s ease;
}

.btn-set-photo-coords:hover {
    background: #0284c7;
    color: #ffffff;
    border-color: #0284c7;
}

.btn-change-photo-coords {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    color: #e2e8f0;
    font-size: 9px;
    padding: 2px 6px;
    cursor: pointer;
}

.btn-change-photo-coords:hover {
    background: rgba(56, 189, 248, 0.3);
    color: #ffffff;
}

.btn-remove-photo-coords {
    background: transparent;
    border: none;
    color: #f43f5e;
    font-size: 12px;
    cursor: pointer;
    padding: 0 3px;
    line-height: 1;
}

.btn-remove-photo-coords:hover {
    color: #ff0033;
}

/* Ручной ввод GPS-координат в модальном окне, на карточке фото и в баннере карты */
.photo-manual-gps-box {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: var(--radius-sm);
    padding: 8px 12px;
}

.photo-manual-gps-label {
    font-size: 11px;
    color: #94a3b8;
    font-weight: 500;
}

.photo-manual-gps-row {
    display: flex;
    gap: 6px;
    align-items: center;
}

.photo-manual-gps-input {
    flex: 1;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 4px;
    padding: 5px 10px;
    color: #f8fafc;
    font-size: 11.5px;
    outline: none;
    transition: border-color 0.2s ease;
}

.photo-manual-gps-input:focus {
    border-color: #38bdf8;
    box-shadow: 0 0 8px rgba(56, 189, 248, 0.25);
}

.photo-manual-gps-btn {
    background: #0284c7;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    padding: 5px 12px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease;
    white-space: nowrap;
}

.photo-manual-gps-btn:hover {
    background: #0369a1;
}

.map-pick-manual-row {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.map-pick-manual-input {
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(56, 189, 248, 0.5);
    border-radius: 14px;
    padding: 4px 12px;
    color: #ffffff;
    font-size: 12px;
    width: 195px;
    outline: none;
}

.map-pick-manual-input:focus {
    border-color: #00e5ff;
    box-shadow: 0 0 8px rgba(0, 229, 255, 0.4);
}

.map-pick-manual-btn {
    background: #10b981;
    color: #ffffff;
    border: none;
    padding: 4px 12px;
    border-radius: 14px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: background 0.15s ease;
}

.map-pick-manual-btn:hover {
    background: #059669;
}

.photo-card-manual-coords {
    display: flex;
    gap: 4px;
    padding: 5px 6px;
    background: rgba(15, 23, 42, 0.85);
    border-top: 1px solid rgba(56, 189, 248, 0.25);
    align-items: center;
}

.photo-card-manual-input {
    flex: 1;
    min-width: 0;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(56, 189, 248, 0.4);
    border-radius: 3px;
    padding: 3px 6px;
    color: #ffffff;
    font-size: 10px;
    outline: none;
}

.photo-card-manual-save-btn {
    background: #10b981;
    color: #ffffff;
    border: none;
    border-radius: 3px;
    padding: 3px 7px;
    font-size: 10px;
    font-weight: 600;
    cursor: pointer;
}

/* Попап маркера фото на карте */
.route-photo-map-popup {
    text-align: center;
    min-width: 200px;
}

.popup-photo-preview-wrap {
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    background: #090d16;
    min-height: 135px;
    max-height: 220px;
}

.popup-photo-full-preview {
    width: 100%;
    max-height: 200px;
    object-fit: cover;
    display: block;
    transition: transform 0.25s ease;
}

.popup-photo-preview-wrap:hover .popup-photo-full-preview {
    transform: scale(1.04);
}

.popup-photo-overlay-hint {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: #38bdf8;
    font-size: 10px;
    padding: 4px;
    font-weight: 500;
}

.popup-photo-title {
    margin: 8px 0 3px 0;
    font-size: 13px;
    color: #0f172a;
    font-weight: bold;
}

.popup-photo-meta, .popup-photo-coords {
    margin: 2px 0;
    font-size: 11px;
    color: #64748b;
}

.popup-photo-actions {
    display: flex;
    gap: 6px;
    margin-top: 8px;
    justify-content: center;
}

.ge-btn-popup-open {
    background: #0284c7;
    color: white;
    border: none;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
}

.ge-btn-popup-open:hover {
    background: #0369a1;
}

.ge-btn-popup-change-loc {
    background: #f1f5f9;
    color: #334155;
    border: 1px solid #cbd5e1;
    padding: 5px 9px;
    border-radius: 4px;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.ge-btn-popup-change-loc:hover {
    background: #e2e8f0;
}

.ge-btn-popup-replace {
    background: rgba(56, 189, 248, 0.15);
    color: #0284c7;
    border: 1px solid rgba(56, 189, 248, 0.4);
    padding: 5px 9px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
}

.ge-btn-popup-replace:hover {
    background: #0284c7;
    color: #ffffff;
}

.ge-btn-popup-unpin {
    background: #f8fafc;
    color: #475569;
    border: 1px solid #cbd5e1;
    padding: 5px 8px;
    border-radius: 4px;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.ge-btn-popup-unpin:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.ge-btn-popup-delete {
    background: rgba(244, 63, 94, 0.1);
    color: #e11d48;
    border: 1px solid rgba(244, 63, 94, 0.3);
    padding: 5px 8px;
    border-radius: 4px;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.ge-btn-popup-delete:hover {
    background: #e11d48;
    color: #ffffff;
}

/* Действия на карточке фото в модальном окне */
.photo-cover-badge {
    position: absolute;
    top: 6px;
    left: 6px;
    background: rgba(234, 179, 8, 0.95);
    color: #0f172a;
    font-size: 9px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
    z-index: 2;
}

.photo-card-actions-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
    padding: 5px 8px;
    background: rgba(0, 0, 0, 0.35);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.photo-card-action-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #cbd5e1;
    border-radius: 4px;
    padding: 2px 6px;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.15s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
}

.photo-card-action-btn:hover {
    background: rgba(56, 189, 248, 0.25);
    color: #38bdf8;
    border-color: #38bdf8;
}

.photo-card-action-btn.active {
    background: rgba(234, 179, 8, 0.25);
    color: #eab308;
    border-color: #eab308;
}

.photo-card-action-btn.danger:hover {
    background: rgba(244, 63, 94, 0.3);
    color: #f43f5e;
    border-color: #f43f5e;
}

/* Тулбар действий в Lightbox */
.lightbox-toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.lightbox-tool-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #f8fafc;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s ease;
}

.lightbox-tool-btn:hover {
    background: rgba(56, 189, 248, 0.3);
    border-color: #38bdf8;
    color: #ffffff;
    transform: translateY(-1px);
}

.lightbox-tool-btn.delete {
    border-color: rgba(244, 63, 94, 0.5);
    color: #fda4af;
}

.lightbox-tool-btn.delete:hover {
    background: #dc2626;
    border-color: #dc2626;
    color: #ffffff;
}

/* ==========================================================================
   Интерактивная панель и модальное окно точек интереса (POI)
   ========================================================================== */

/* Кнопка добавления точки в плавающей панели */
.control-btn-poi {
    font-size: 16px;
    transition: all 0.25s ease;
}

.control-btn-poi.active {
    background: #00e5ff !important;
    color: #0b0f19 !important;
    box-shadow: 0 0 16px #00e5ff, 0 0 30px rgba(0, 229, 255, 0.6) !important;
    border-color: #ffffff !important;
    transform: scale(1.1);
}

/* Плавающий баннер-подсказка режима расстановки */
.poi-placement-bar {
    position: fixed;
    top: 70px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1500;
    background: rgba(15, 23, 42, 0.94);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--accent, #00e5ff);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 229, 255, 0.35);
    border-radius: 30px;
    padding: 8px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #f8fafc;
    font-size: 13px;
    font-weight: 500;
    animation: poiPulseBanner 2s infinite alternate;
}

@keyframes poiPulseBanner {
    0% { box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6), 0 0 12px rgba(0, 229, 255, 0.3); }
    100% { box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6), 0 0 24px rgba(0, 229, 255, 0.6); }
}

.poi-placement-icon {
    font-size: 16px;
}

.btn-cancel-poi {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #cbd5e1;
    padding: 3px 10px;
    border-radius: 14px;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-cancel-poi:hover {
    background: #ef4444;
    border-color: #ef4444;
    color: #ffffff;
}

/* Модальное окно POI */
.poi-modal-window {
    max-width: 520px;
    width: 90vw;
}

.poi-modal-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 16px 20px;
}

.poi-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.poi-form-group label {
    font-size: 12px;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.poi-form-input {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 8px 12px;
    color: #f8fafc;
    font-size: 13px;
    font-family: inherit;
    outline: none;
    transition: all 0.2s ease;
}

.poi-form-input:focus {
    border-color: var(--accent, #00e5ff);
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.3);
}

.poi-textarea {
    resize: vertical;
    min-height: 50px;
}

.poi-coords-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.04);
    border: 1px dashed rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 12px;
}

.poi-coords-title {
    color: #94a3b8;
}

.poi-coords-val {
    color: var(--accent, #00e5ff);
    font-family: monospace;
    font-weight: 600;
}

/* Сетка выбора иконок */
.poi-icon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(68px, 1fr));
    gap: 8px;
}

.poi-icon-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px 4px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.poi-icon-card:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.poi-icon-card.active {
    background: rgba(0, 229, 255, 0.15);
    border-color: var(--accent, #00e5ff);
    box-shadow: 0 0 12px rgba(0, 229, 255, 0.4);
}

.poi-icon-card .card-icon-preview {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.poi-icon-card .card-icon-preview .poi-icon-svg {
    width: 18px;
    height: 18px;
}

.poi-icon-card .card-icon-name {
    font-size: 10px;
    color: #cbd5e1;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.poi-custom-icon-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 6px;
    font-size: 12px;
    color: #94a3b8;
}

.poi-input-sm {
    width: 60px;
    text-align: center;
    font-size: 16px;
    padding: 4px 6px;
}

/* Палитра цветов */
.poi-color-palette {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.color-swatch {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.color-swatch:hover {
    transform: scale(1.15);
}

.color-swatch.active {
    border-color: #ffffff;
    box-shadow: 0 0 12px currentColor, 0 0 0 2px #ffffff;
    transform: scale(1.15);
}

.color-picker-wrapper {
    position: relative;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.4);
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
}

.color-picker-wrapper input[type="color"] {
    position: absolute;
    top: -5px;
    left: -5px;
    width: 36px;
    height: 36px;
    border: none;
    cursor: pointer;
    background: none;
}

/* Футер модального окна */
.poi-modal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 6px;
}

.poi-footer-right {
    display: flex;
    gap: 8px;
    margin-left: auto;
}

/* ==========================================================================
   Стили модального окна инфографики профиля высот (Разрез тропы)
   ========================================================================== */

.elevation-modal-window {
    max-width: 1080px;
    width: 95%;
    max-height: 92vh;
}

.elevation-modal-body {
    padding: 14px 18px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Карточки ключевых метрик */
.elevation-chips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 8px;
}

.elevation-chip {
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 8px 12px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.elevation-chip-label {
    font-size: 11px;
    color: var(--text-secondary);
    font-weight: 500;
}

.elevation-chip-val {
    font-size: 13px;
    font-weight: 700;
    color: #38bdf8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Контейнер векторного SVG изображения */
.elevation-svg-container {
    background: #181a1f;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 10px;
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: auto;
}

.elevation-svg-container img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 6px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.elevation-loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 40px;
    color: var(--text-secondary);
    text-align: center;
}

.elevation-spinner {
    font-size: 32px;
    animation: pulse 1.5s infinite;
}

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

/* Футер модального окна */
.elevation-modal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.elevation-footer-left {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.btn-elevation-tool {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-elevation-tool:hover {
    background: rgba(56, 189, 248, 0.15);
    border-color: #38bdf8;
    color: #38bdf8;
}

/* Кнопка в боковой панели */
.btn-elevation-action-panel {
    width: 100%;
    margin-top: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 12px;
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 6px;
    color: #38bdf8;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-elevation-action-panel:hover {
    background: #1e293b;
    border-color: #38bdf8;
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.2);
}

.ge-action-btn.btn-elevation-sub-road {
    color: #38bdf8;
}

.ge-action-btn.btn-elevation-sub-road:hover {
    background: rgba(56, 189, 248, 0.2);
    border-color: #38bdf8;
}

/* ==========================================================================
   Модальное окно "Add photo and more materials" (Отдельная функция по ПКМ)
   ========================================================================== */
.materials-modal-window {
    max-width: 640px;
}

.materials-modal-body {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.materials-field-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.materials-field-label {
    font-size: 12px;
    font-weight: 600;
    color: #38bdf8;
}

.materials-select {
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(56, 189, 248, 0.35);
    border-radius: 6px;
    padding: 8px 12px;
    color: #f8fafc;
    font-size: 13px;
    outline: none;
    cursor: pointer;
}

.materials-select:focus {
    border-color: #10b981;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.25);
}

.materials-section-box {
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 12px 14px;
}

.materials-section-title {
    font-size: 13px;
    font-weight: 700;
    color: #10b981;
    margin-bottom: 4px;
}

.materials-section-desc {
    font-size: 11.5px;
    color: #94a3b8;
    margin: 0 0 10px 0;
    line-height: 1.4;
}

.materials-dropzone {
    border-color: rgba(16, 185, 129, 0.45);
    background: rgba(16, 185, 129, 0.06);
    padding: 18px 14px;
}

.materials-dropzone:hover,
.materials-dropzone.dragover {
    border-color: #10b981;
    background: rgba(16, 185, 129, 0.14);
}

.materials-manual-fallback {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.materials-manual-fallback label {
    font-size: 11px;
    color: #cbd5e1;
}

.materials-uploaded-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 10px;
    max-height: 160px;
    overflow-y: auto;
}

.materials-uploaded-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 6px;
    padding: 6px 10px;
}

.materials-uploaded-item img {
    width: 44px;
    height: 32px;
    object-fit: cover;
    border-radius: 4px;
}

.materials-uploaded-info {
    display: flex;
    flex-direction: column;
    font-size: 11.5px;
    color: #f8fafc;
}

.materials-uploaded-info span {
    font-size: 11px;
    color: #10b981;
}

.materials-actions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-top: 8px;
}

.materials-action-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 4px;
    padding: 10px 8px;
    background: rgba(30, 41, 59, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    color: #f8fafc;
    cursor: pointer;
    transition: all 0.18s ease;
}

.materials-action-card:hover {
    background: rgba(56, 189, 248, 0.15);
    border-color: #38bdf8;
    transform: translateY(-1px);
}

.materials-action-icon {
    font-size: 20px;
}

.materials-action-title {
    font-size: 12px;
    font-weight: 600;
}

.materials-action-sub {
    font-size: 10px;
    color: #94a3b8;
}

/* ==========================================================================
   Отдельный видео-маркер (YouTube) и модальные окна видеоплеера
   ========================================================================== */
.control-btn-video {
    border-color: rgba(244, 63, 94, 0.45) !important;
}

.control-btn-video:hover {
    border-color: #f43f5e !important;
    box-shadow: 0 0 12px rgba(244, 63, 94, 0.45) !important;
}

.ge-custom-video-pin-container {
    background: transparent !important;
    border: none !important;
    z-index: 650;
}

.ge-custom-video-pin-container:hover {
    z-index: 2600 !important;
}

.ge-map-video-marker {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    -webkit-user-drag: none;
    pointer-events: auto;
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.75));
    transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.ge-map-video-marker:hover {
    transform: scale(1.18) translateY(-4px);
    z-index: 2600 !important;
}

.video-marker-pin {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 2px solid #f43f5e;
    background-color: #0f172a;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.7), 0 0 12px rgba(244, 63, 94, 0.65);
}

.video-marker-play-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 13px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
    z-index: 3;
    pointer-events: none;
    user-select: none;
}

.video-marker-badge {
    position: absolute;
    bottom: -1px;
    right: -1px;
    background: #e11d48;
    border-radius: 50%;
    font-size: 10px;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid #ffffff;
    color: #ffffff;
    z-index: 5;
    pointer-events: none;
    user-select: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.6);
}

.video-marker-arrow {
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 8px solid #f43f5e;
    margin-top: -1px;
    pointer-events: none;
}

.video-modal-window {
    max-width: 560px;
}

.video-modal-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.video-form-row-two {
    display: flex;
    gap: 10px;
}

.video-modal-preview-box {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 10px;
    background: rgba(244, 63, 94, 0.1);
    border: 1px solid rgba(244, 63, 94, 0.35);
    border-radius: 8px;
}

.video-modal-preview-box img {
    width: 96px;
    height: 54px;
    object-fit: cover;
    border-radius: 5px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.video-modal-preview-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.video-modal-preview-badge {
    font-size: 12px;
    font-weight: 700;
    color: #fda4af;
}

.video-modal-preview-sub {
    font-size: 11px;
    color: #94a3b8;
}

.video-player-window {
    max-width: 860px;
    width: 92vw;
}

.video-player-body {
    padding: 14px 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.video-iframe-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 */
    background: #000000;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.video-iframe-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.video-player-desc {
    font-size: 12.5px;
    line-height: 1.45;
    color: #cbd5e1;
    margin: 2px 0 0 0;
}

/* ==========================================================================
   Интерактивные 360° Панорамные Метки и Просмотрщик (Three.js)
   ========================================================================== */
.ge-custom-pano-pin-container {
    background: transparent !important;
    border: none !important;
    overflow: visible !important;
}

.ge-custom-pano-pin-container:hover {
    z-index: 2800 !important;
}

.ge-map-pano-marker {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    -webkit-user-drag: none;
    pointer-events: auto;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.85));
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.ge-map-pano-marker:hover {
    transform: scale(1.22) translateY(-4px);
    z-index: 2800 !important;
}

.pano-marker-pin {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 2px solid #00e5ff;
    background-color: #090d16;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
    pointer-events: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.75), 0 0 16px rgba(0, 229, 255, 0.7);
    animation: pano-pin-pulse 2.8s infinite ease-in-out;
}

@keyframes pano-pin-pulse {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.75), 0 0 14px rgba(0, 229, 255, 0.6);
        border-color: #00e5ff;
    }
    50% {
        box-shadow: 0 4px 14px rgba(0, 0, 0, 0.85), 0 0 24px rgba(0, 229, 255, 0.95);
        border-color: #38bdf8;
    }
}

.pano-marker-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.pano-marker-badge {
    position: absolute;
    bottom: -2px;
    right: -2px;
    background: linear-gradient(135deg, #0284c7, #00e5ff);
    color: #04101e;
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
    padding: 3px 4px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.pano-marker-arrow {
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 7px solid #00e5ff;
    margin-top: -1px;
}

.route-pano-map-popup .popup-photo-preview-wrap {
    cursor: pointer;
    border: 1px solid rgba(0, 229, 255, 0.35);
}

.route-pano-map-popup .popup-photo-overlay-hint {
    background: linear-gradient(135deg, rgba(2, 132, 199, 0.92), rgba(0, 229, 255, 0.92));
    color: #04101e;
    font-weight: 700;
}

/* Окно 360° Просмотрщика */
.panorama-360-window {
    max-width: 1000px;
    width: 94vw;
    background: #090d16;
    border: 1px solid rgba(0, 229, 255, 0.28);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 35px rgba(0, 229, 255, 0.2);
}

.panorama-360-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.panorama-360-body {
    padding: 14px 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.panorama-360-viewport {
    position: relative;
    width: 100%;
    height: 520px;
    background: radial-gradient(circle at center, #1e293b 0%, #090d16 100%);
    border-radius: 12px;
    overflow: hidden;
    cursor: grab;
    user-select: none;
    touch-action: none;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.6);
}

.panorama-360-viewport:active {
    cursor: grabbing;
}

@media (max-width: 640px) {
    .panorama-360-viewport {
        height: 380px;
    }
}

.panorama-360-hud {
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    pointer-events: none;
    z-index: 10;
}

.panorama-hud-badge {
    background: rgba(9, 13, 22, 0.75);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(0, 229, 255, 0.4);
    color: #00e5ff;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    font-family: monospace;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.panorama-hud-hint {
    background: rgba(9, 13, 22, 0.65);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #e2e8f0;
    padding: 4px 12px;
    border-radius: 8px;
    font-size: 11.5px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

@media (max-width: 640px) {
    .panorama-hud-hint {
        display: none;
    }
}

.panorama-360-desc {
    font-size: 12.5px;
    line-height: 1.45;
    color: #cbd5e1;
    margin: 0;
}

.panorama-meta-pill {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #94a3b8;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 11px;
}

.header-pano-quick-btn {
    background: linear-gradient(135deg, rgba(2, 132, 199, 0.35), rgba(0, 229, 255, 0.35));
    border: 1px solid #00e5ff;
    color: #00e5ff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 6px;
    cursor: pointer;
    margin-top: 5px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.22s ease;
    box-shadow: 0 2px 8px rgba(0, 229, 255, 0.25);
}

.header-pano-quick-btn:hover {
    background: #00e5ff;
    color: #04101e;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(0, 229, 255, 0.6);
}

.control-btn-pano-quick {
    color: #00e5ff !important;
    border-color: rgba(0, 229, 255, 0.5) !important;
    background: rgba(15, 23, 42, 0.92) !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5), 0 0 12px rgba(0, 229, 255, 0.4) !important;
}

.control-btn-pano-quick:hover {
    background: #00e5ff !important;
    color: #04101e !important;
    transform: scale(1.1) !important;
    box-shadow: 0 4px 16px rgba(0, 229, 255, 0.7) !important;
}




