        :root {
            --primary: #1D976C;
            --primary-hover: #016626;
            --card: #ffffff;
            --text: #111827;
            --text-secondary: #6b7280;
            --border: #e5e7eb;
            --background: #f9fafb;
        }

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

        html, body {
            height: 100%;
            overflow-x: hidden;
            overflow-y: auto;
        }

        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
            background: var(--background);
            color: var(--text);
        }

        #header-container {
            display: none;
        }

        #navigation-container {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            z-index: 10000;
            pointer-events: none;
        }
        
        /* Элементы навигации должны быть кликабельными */
        #navigation-container * {
            pointer-events: auto;
        }
        
        /* Навигация всегда видима, но с правильным отображением для десктопа и мобильных */
        @media (min-width: 768px) {
            #navigation-container .desktop-nav {
                display: block !important;
            }
            #navigation-container .mobile-nav {
                display: none !important;
            }
        }
        
        @media (max-width: 767px) {
            #navigation-container .desktop-nav {
                display: none !important;
            }
            #navigation-container .mobile-nav {
                display: block !important;
            }
        }

        #map {
            width: 100%;
            height: 100vh;
            margin-top: 0;
            z-index: 1;
            position: absolute;
            top: 0;
            left: 0;
        }
        
        @media (max-width: 768px) {
            #map {
                height: 100vh;
                margin-top: 0;
            }
        }
        
        /* Backdrop меню не должен перекрывать карту */
        .menu-backdrop {
            pointer-events: none !important;
        }
        
        .menu-backdrop.show {
            pointer-events: auto !important;
        }

        /* Left Map Controls Container */
        .map-controls-left {
            position: absolute;
            left: 10px;
            bottom: 90px;
            z-index: 1001;
            display: flex;
            flex-direction: column;
            gap: 0;
            pointer-events: auto;
        }
        
        .map-btn-add {
            width: 44px;
            height: 44px;
            background: rgba(29, 151, 108, 0.8);
            border: none;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 24px;
            text-decoration: none;
            color: white;
            border-radius: 8px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
            margin-bottom: 10px;
        }
        
        .map-btn-add:hover {
            background: rgba(29, 151, 108, 1);
        }
        
        .map-controls-left .leaflet-control-zoom {
            background: transparent !important;
            border: none !important;
            border-radius: 8px !important;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
            margin: 0 !important;
            overflow: hidden;
        }
        
        .map-controls-left .leaflet-control-zoom a {
            background: rgba(29, 151, 108, 0.8) !important;
            color: white !important;
            border: none !important;
            border-radius: 0 !important;
            width: 44px !important;
            height: 44px !important;
            line-height: 44px !important;
            font-size: 20px !important;
        }
        
        .map-controls-left .leaflet-control-zoom a:first-child {
            border-bottom: 5px solid rgba(0, 0, 0, 0.1) !important;
        }
        
        .map-controls-left .leaflet-control-zoom a:hover {
            background: rgba(29, 151, 108, 1) !important;
        }
        
        /* Right Map Controls Container */
        .map-controls-right {
            position: absolute;
            right: 10px;
            bottom: 90px;
            z-index: 1001;
            display: flex;
            flex-direction: column;
            align-items: flex-end;
            gap: 10px;
            pointer-events: auto;
        }
        
        .map-controls-right .map-btn {
            width: 44px;
            height: 44px;
            background: rgba(29, 151, 108, 0.8);
            border: 2px solid var(--primary);
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 26px;
            color: white;
            border-radius: 8px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
        }
        
        .map-controls-right .map-btn:hover {
            background: rgba(29, 151, 108, 1);
        }
        
        .map-btn-type {
            width: auto;
            height: 36px;
            padding: 0 10px;
            font-size: 12px;
            font-weight: 500;
            background: rgba(255, 255, 255, 0.95);
            color: #333;
            border: 2px solid var(--primary);
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: background 0.2s;
            border-radius: 8px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
        }
        
        .map-btn-type:hover {
            background: rgba(255, 255, 255, 1);
        }
        
        .map-btn-location {
            width: 44px;
            height: 44px;
            background: rgba(29, 151, 108, 0.8) !important;
            border: none !important;
            border-radius: 8px !important;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white !important;
            font-size: 24px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
        }
        
        .map-btn-location:hover {
            background: rgba(29, 151, 108, 1) !important;
        }
        
        .pending-indicator-wrapper {
            width: 44px;
            height: 44px;
            display: flex;
            align-items: center;
            justify-content: center;
            pointer-events: none;
        }

        .pending-indicator {
            width: 24px;
            height: 24px;
            border: 3px solid rgba(29, 151, 108, 0.3);
            border-top-color: var(--primary);
            border-radius: 50%;
            animation: spin 1s linear infinite;
            display: none;
        }

        .pending-indicator.show {
            display: block;
        }

        .status-info {
            position: absolute;
            top: 70px;
            left: 50%;
            transform: translateX(-50%);
            z-index: 1000;
            background: rgba(255, 255, 255, 0.4);
            padding: 12px 20px;
            border-radius: 8px;
            backdrop-filter: blur(4px);
            font-size: 14px;
            color: var(--text);
            opacity: 1;
        }

        .status-info.zoom-warning {
            background: rgba(255, 107, 53, 0.8);
            color: white;
            font-size: 14px;
            font-weight: 600;
            padding: 10px 20px;
            border-radius: 8px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
        }

        .status-info.hidden {
            opacity: 0;
            pointer-events: none;
        }
        
        .loading-indicator {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            z-index: 1000;
            background: rgba(255, 255, 255, 0.95);
            padding: 20px 32px;
            border-radius: 12px;
            box-shadow: 0 4px 12px rgba(0,0,0,0.2);
            font-size: 16px;
            font-weight: 500;
            color: var(--text);
            display: none;
            align-items: center;
            gap: 12px;
        }
        
        .loading-indicator.show {
            display: flex;
        }
        
        .loading-spinner {
            width: 20px;
            height: 20px;
            border: 3px solid var(--border);
            border-top-color: var(--primary);
            border-radius: 50%;
            animation: spin 1s linear infinite;
        }
        
        @keyframes spin {
            to { transform: rotate(360deg); }
        }

        /* Custom marker styles */
        .custom-marker {
            background: transparent;
            border: none;
        }
        /* Категория 9 — Tent in the garden: тёмно-оранжевая обводка круга */
        .custom-tent-garden-marker div {
            border-color: #8B3A00 !important;
        }

        /* Hide default Leaflet positioning - we use custom containers */
        .leaflet-top.leaflet-left,
        .leaflet-top.leaflet-right {
            display: none !important;
        }
        
        .no-hosts-message {
            position: absolute;
            top: 150px;
            left: 50%;
            transform: translateX(-50%);
            z-index: 1000;
            background: rgba(255, 255, 255, 0.6);
            padding: 24px 32px;
            border-radius: 12px;
            backdrop-filter: blur(8px);
            box-shadow: 0 4px 12px rgba(0,0,0,0.2);
            font-size: 18px;
            font-weight: 500;
            color: var(--text);
            text-align: center;
        }
        
        /* Зеленые кластеры Leaflet */
        .marker-cluster-small {
            background-color: rgba(29, 151, 108, 0.3) !important;
        }
        .marker-cluster-small div {
            background-color: rgba(29, 151, 108, 0.8) !important;
            color: white !important;
        }

        .marker-cluster-medium {
            background-color: rgba(29, 151, 108, 0.3) !important;
        }
        .marker-cluster-medium div {
            background-color: rgba(29, 151, 108, 0.8) !important;
            color: white !important;
        }

        .marker-cluster-large {
            background-color: rgba(29, 151, 108, 0.3) !important;
        }
        .marker-cluster-large div {
            background-color: rgba(29, 151, 108, 0.8) !important;
            color: white !important;
        }
        
        /* Баннер для отображения метки */
        .spot-banner {
            position: fixed;
            bottom: -100%;
            left: 0;
            right: 0;
            background: white;
            border-top-left-radius: 16px;
            border-top-right-radius: 16px;
            box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
            z-index: 2000;
            max-height: calc(100vh - 80px);
            overflow-y: auto;
            padding-bottom: calc(90px + env(safe-area-inset-bottom));
        }
        
        .spot-banner.show {
            bottom: 0;
        }
        
        /* Ограничение ширины баннера на десктопе */
        @media (min-width: 768px) {
            .spot-banner {
                left: 50%;
                transform: translateX(-50%);
                max-width: 600px;
                border-radius: 16px;
                padding-bottom: env(safe-area-inset-bottom);
                z-index: 2000;
            }
            
            .spot-banner.show {
                bottom: 20px;
            }
        }
        
        .spot-banner-header {
            padding: 16px 20px;
            border-bottom: 1px solid var(--border);
            display: flex;
            align-items: center;
            justify-content: space-between;
            background: white;
        }
        
        .spot-banner-title {
            font-size: 18px;
            font-weight: 600;
            color: var(--text);
            flex: 1;
        }
        
        .spot-banner-close {
            background: none;
            border: none;
            font-size: 28px;
            color: var(--text-secondary);
            cursor: pointer;
            padding: 0;
            width: 32px;
            height: 32px;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .spot-banner-content {
            padding: 0;
        }
        
        .spot-banner-body {
            padding: 20px;
        }
        
        .spot-info-row {
            margin-bottom: 12px;
            display: flex;
            align-items: flex-start;
            gap: 8px;
        }
        
        .spot-info-label {
            font-weight: 600;
            color: var(--text-secondary);
            min-width: 80px;
        }
        
        .spot-info-value {
            color: var(--text);
            flex: 1;
        }
        
        .coordinates-row {
            display: flex;
            align-items: center;
            flex-wrap: wrap;
            gap: 8px;
            margin-bottom: 16px;
        }
        
        .coordinates-text {
            font-size: 14px;
            color: var(--text-secondary);
            font-family: monospace;
        }
        
        .coordinates-row .map-btn {
            font-size: 12px;
            padding: 6px 12px;
            border-radius: 6px;
            background-color: var(--primary);
            color: white;
            text-decoration: none;
            cursor: pointer;
            border: none;
            display: inline-block;
        }
        
        .coordinates-row .map-btn:hover {
            background-color: var(--primary-hover);
        }
        
        .copy-btn {
            font-size: 12px;
            padding: 6px 12px;
            border-radius: 6px;
            background-color: #6b7280;
            color: white;
            cursor: pointer;
            border: none;
        }
        
        .copy-btn:hover {
            background-color: #4b5563;
        }
        
        .copy-btn.copied {
            background-color: var(--primary);
        }
        
        /* Spot Actions */
        .spot-actions {
            display: flex;
            gap: 12px;
            margin: 20px 0;
            flex-wrap: wrap;
        }
        
        .spot-action-btn {
            flex: 1;
            min-width: 120px;
            padding: 12px 16px;
            border-radius: 8px;
            border: none;
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
        }
        
        .spot-action-btn.edit {
            background: var(--primary);
            color: white;
        }
        
        .spot-action-btn.edit:hover {
            background: var(--primary-hover);
        }
        
        .spot-action-btn.delete {
            background: #ef4444;
            color: white;
        }
        
        .spot-action-btn.delete:hover {
            background: #dc2626;
        }
        
        .spot-action-btn.review {
            background: #6b7280;
            color: white;
        }
        
        .spot-action-btn.review:hover {
            background: #4b5563;
        }
        
        /* Photo Slider */
        .photo-slider-wrapper {
            position: relative;
            display: flex;
            justify-content: center;
            align-items: center;
            max-width: 100%;
            margin: 0 0 20px 0;
            padding: 0;
            width: 100%;
        }

        .photo-slider {
            position: relative;
            display: flex;
            justify-content: center;
            align-items: center;
            max-width: 100%;
            margin: 0 auto;
            padding: 0;
            width: 100%;
        }

        .slider-photo {
            max-width: 100%;
            max-height: 300px;
            width: auto;
            height: auto;
            border-radius: 12px;
            display: none;
            cursor: pointer;
            border: none;
            object-fit: contain;
            margin: 0 auto;
        }

        .slider-photo.active {
            display: block;
        }

        .photo-nav {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            background: rgba(0,0,0,0.3);
            color: #fff;
            border: none;
            font-size: 2rem;
            padding: 4px 10px;
            cursor: pointer;
            border-radius: 6px;
            z-index: 10;
        }

        .photo-slider-wrapper .photo-nav.photo-prev {
            left: 6px;
        }

        .photo-slider-wrapper .photo-nav.photo-next {
            right: 6px;
        }
        
        .spot-text {
            margin: 16px 0;
            padding: 12px;
            background: var(--background);
            border-radius: 8px;
            color: var(--text);
            line-height: 1.6;
            white-space: pre-wrap;
            word-wrap: break-word;
            word-break: break-word;
        }
        
        .spot-date {
            font-size: 15px;
            color: #000;
            margin-bottom: 12px;
        }
        
        .translate-btn {
            background-color: white;
            color: #000 !important;
            border: 2px solid var(--border);
            font-size: 13px;
            padding: 6px 12px;
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.2s;
            display: inline-flex;
            align-items: center;
            gap: 6px;
            text-decoration: none;
            margin-bottom: 8px;
        }
        
        .translate-btn span {
            color: #000;
        }
        
        .translate-btn:hover {
            background-color: var(--background);
            border-color: var(--primary);
        }
        
        .copy-notification {
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            background: rgba(29, 151, 108, 0.95);
            color: white;
            padding: 16px 32px;
            border-radius: 12px;
            font-size: 16px;
            font-weight: 500;
            z-index: 10000;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
            opacity: 0;
            pointer-events: none;
        }
        
        .copy-notification.show {
            opacity: 1;
        }
        
        /* Filter Banner Backdrop */
        .filter-backdrop {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.5);
            z-index: 9998;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.3s ease;
        }
        
        .filter-backdrop.show {
            opacity: 1;
            pointer-events: auto;
        }
        
        /* Filter Banner */
        .filter-banner {
            position: fixed;
            bottom: -100%;
            left: 0;
            right: 0;
            background: white;
            border-radius: 20px 20px 0 0;
            box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
            z-index: 9999;
            max-height: 70vh;
            overflow-y: auto;
            padding-bottom: calc(20px + env(safe-area-inset-bottom));
        }
        
        .filter-banner.show {
            bottom: 150px;
        }
        
        @media (min-width: 768px) {
            .filter-banner {
                left: 50%;
                transform: translateX(-50%);
                max-width: 700px;
                border-radius: 16px;
            }
            
            .filter-banner.show {
                bottom: 150px;
            }
        }
        
        .filter-banner-header {
            padding: 20px;
            border-bottom: 1px solid var(--border);
            display: flex;
            align-items: center;
            justify-content: space-between;
        }
        
        .filter-banner-title {
            font-size: 18px;
            font-weight: 600;
        }
        
        .filter-banner-close {
            background: none;
            border: none;
            font-size: 28px;
            color: var(--text-secondary);
            cursor: pointer;
            padding: 0;
            width: 32px;
            height: 32px;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .filter-banner-content {
            padding: 20px;
        }
        
        .filter-categories {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin-bottom: 20px;
            justify-content: center;
        }
        
        .filter-category {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 6px;
            padding: 8px;
            border-radius: 10px;
            background: #e5e7eb;
            cursor: pointer;
            transition: all 0.2s;
            border: 2px solid transparent;
            width: 80px;
            height: 80px;
            flex-shrink: 0;
        }
        
        .filter-category.active {
            background: linear-gradient(135deg, #1D976C, #016626);
            border-color: #0d5c3a;
        }
        
        .filter-category-icon {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            background: white;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 20px;
            border: 2px solid #0d5c3a;
        }
        
        .filter-category-name {
            font-size: 10px;
            font-weight: 600;
            text-align: center;
            color: #374151;
            line-height: 1.1;
            word-wrap: break-word;
        }
        
        .filter-category.active .filter-category-name {
            color: white;
        }
        
        .filter-actions {
            display: flex;
            gap: 12px;
        }
        
        .filter-btn {
            flex: 1;
            padding: 14px;
            border-radius: 12px;
            border: none;
            font-size: 16px;
            font-weight: 600;
            cursor: pointer;
        }
        
        .filter-btn-primary {
            background: linear-gradient(135deg, #1D976C, #016626);
            color: white;
        }
        
        .filter-btn-primary:hover {
            opacity: 0.9;
        }
        
        .loading-text {
            text-align: center;
            padding: 20px;
            color: var(--text-secondary);
        }
        
        .comments-section {
            margin-top: 20px;
            padding-top: 20px;
            border-top: 1px solid var(--border);
        }
        
        .comments-title {
            font-size: 16px;
            font-weight: 600;
            margin-bottom: 12px;
        }
        
        .comment {
            padding: 12px;
            background: var(--background);
            border-radius: 8px;
            margin-bottom: 8px;
        }
        
        .comment-author {
            font-weight: 600;
            font-size: 14px;
            margin-bottom: 4px;
        }
        
        .comment-text {
            font-size: 14px;
            color: var(--text);
            line-height: 1.5;
        }
        
        .comment-date {
            font-size: 12px;
            color: var(--text-secondary);
            margin-top: 4px;
        }
        
        /* Photo slider styles */
        .photo-slider-wrapper {
            position: relative;
            width: 100%;
        }
        
        .photo-slider {
            position: relative;
            width: 100%;
            display: flex;
            justify-content: center;
            align-items: center;
        }
        
        .photo-slider img {
            width: 100%;
            height: auto;
            display: block;
            object-fit: contain;
        }
        
        .photo-slider img.hidden {
            display: none;
        }
        
        .photo-slider img.active {
            display: block;
        }
        
        .photo-nav {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            background: rgba(0, 0, 0, 0.5);
            color: white;
            border: none;
            font-size: 24px;
            padding: 8px 12px;
            cursor: pointer;
            border-radius: 6px;
            transition: background 0.3s, color 1.5s;
            z-index: 10;
            animation: colorCycle 6s infinite;
        }
        
        .photo-nav:hover {
            background: rgba(0, 0, 0, 0.8);
        }
        
        .photo-nav.photo-prev {
            left: 10px;
        }
        
        .photo-nav.photo-next {
            right: 10px;
        }
        
        .photo-nav.flash {
            animation: flashAnim 0.3s;
        }
        
        @keyframes colorCycle {
            0%   { color: #fff; }
            33%  { color: #FF6C00; }
            66%  { color: #000; }
            100% { color: #fff; }
        }
        
        @keyframes flashAnim {
            0% { opacity: 1; filter: brightness(100%); }
            50% { opacity: 0.5; filter: brightness(200%); }
            100% { opacity: 1; filter: brightness(100%); }
        }