/* ═══════════════════════════════════════════════════════════
   RESET & BASE
   ═══════════════════════════════════════════════════════════ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: #0f0f1a;
    color: #e0e0e0;
    line-height: 1.5;
}

/* ═══════════════════════════════════════════════════════════
   LANDING PAGE
   ═══════════════════════════════════════════════════════════ */
.landing {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.landing-bg {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(102, 126, 234, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(118, 75, 162, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 50% 80%, rgba(64, 158, 255, 0.1) 0%, transparent 40%);
    pointer-events: none;
}

.landing-content {
    text-align: center;
    position: relative;
    z-index: 1;
    padding: 40px;
}

.logo {
    font-size: 80px;
    margin-bottom: 20px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.landing h1 {
    font-size: 48px;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
}

.tagline {
    font-size: 18px;
    color: #888;
    margin-bottom: 40px;
}

.create-form {
    margin-bottom: 50px;
}

.features {
    display: flex;
    gap: 40px;
    justify-content: center;
    flex-wrap: wrap;
}

.feature {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #666;
    font-size: 14px;
}

.feature-icon {
    font-size: 24px;
}

/* ═══════════════════════════════════════════════════════════
   MAP PAGE LAYOUT
   ═══════════════════════════════════════════════════════════ */
#app {
    display: flex;
    height: 100vh;
    width: 100vw;
}

/* ═══════════════════════════════════════════════════════════
   SIDEBAR
   ═══════════════════════════════════════════════════════════ */
.sidebar {
    width: 380px;
    min-width: 380px;
    background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);
    display: flex;
    flex-direction: column;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    z-index: 1000;
}

.sidebar-header {
    padding: 20px;
    background: linear-gradient(135deg, #0f3460 0%, #533483 100%);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.header-content {
    flex: 1;
    min-width: 0;
}

.map-title {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    outline: none;
    border-bottom: 2px solid transparent;
    transition: border-color 0.2s;
    padding-bottom: 2px;
    word-wrap: break-word;
}

.map-title:hover,
.map-title:focus {
    border-bottom-color: rgba(255, 255, 255, 0.3);
}

.map-title:empty::before {
    content: attr(data-placeholder);
    color: rgba(255, 255, 255, 0.4);
}

.map-meta {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 4px;
}

.sidebar-actions {
    display: flex;
    gap: 8px;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(0, 0, 0, 0.15);
}

.sidebar-actions .btn {
    flex: 1;
}

/* ═══════════════════════════════════════════════════════════
   FILTER BAR
   ═══════════════════════════════════════════════════════════ */
.filter-bar {
    padding: 12px 16px;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(0, 0, 0, 0.1);
}

.filter-btn {
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    color: #aaa;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
}

.filter-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ddd;
}

.filter-btn.active {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
    color: #fff;
}

.filter-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

/* ═══════════════════════════════════════════════════════════
   SPOTS LIST
   ═══════════════════════════════════════════════════════════ */
.spots-list {
    flex: 1;
    overflow-y: auto;
    padding: 8px 0;
}

.empty-category {
    padding: 12px 16px 12px 32px;
    font-size: 12px;
    color: #555;
    font-style: italic;
}

.spots-list::-webkit-scrollbar {
    width: 4px;
}

.spots-list::-webkit-scrollbar-track {
    background: transparent;
}

.spots-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.category-group {
    margin-bottom: 8px;
}

.category-group.hidden {
    display: none;
}

.category-header {
    padding: 10px 16px 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.category-name {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.category-count {
    font-size: 10px;
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 8px;
    border-radius: 10px;
    color: #888;
}

.category-actions {
    margin-left: auto;
    display: flex;
    gap: 4px;
    opacity: 0;
    transition: opacity 0.2s;
}

.category-header:hover .category-actions {
    opacity: 1;
}

/* Spot Card */
.spot-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    cursor: pointer;
    transition: background 0.15s;
    border-left: 3px solid transparent;
}

.spot-card:hover {
    background: rgba(255, 255, 255, 0.04);
}

.spot-card.active {
    background: rgba(255, 255, 255, 0.07);
    border-left-color: var(--cat-color, #888);
}

.spot-color {
    width: 4px;
    height: 32px;
    border-radius: 2px;
    flex-shrink: 0;
}

.spot-info {
    flex: 1;
    min-width: 0;
}

.spot-name {
    font-size: 14px;
    font-weight: 500;
    color: #e8e8e8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.spot-desc {
    font-size: 11px;
    color: #666;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.spot-actions {
    display: flex;
    gap: 4px;
    opacity: 0;
    transition: opacity 0.2s;
}

.spot-card:hover .spot-actions {
    opacity: 1;
}

.empty-state {
    padding: 60px 20px;
    text-align: center;
    color: #555;
}

.empty-state-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.empty-state-text {
    font-size: 14px;
}

/* ═══════════════════════════════════════════════════════════
   MAP
   ═══════════════════════════════════════════════════════════ */
.map-container {
    flex: 1;
    position: relative;
}

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

.map-pick-hint {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 12px 24px;
    background: rgba(103, 194, 58, 0.95);
    color: #fff;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    z-index: 1500;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    display: none;
}

.map-pick-hint.active {
    display: block;
}

.map-container.picking #map {
    cursor: crosshair !important;
}

/* Custom Markers */
.marker-wrapper {
    background: transparent !important;
    border: none !important;
}

.custom-marker {
    width: 32px;
    height: 32px;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.35);
    border: 2px solid rgba(255, 255, 255, 0.9);
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

.custom-marker:hover {
    transform: rotate(-45deg) scale(1.15);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

.custom-marker.active {
    transform: rotate(-45deg) scale(1.25);
    z-index: 1000 !important;
}

.marker-emoji {
    transform: rotate(45deg);
    width: 16px;
    height: 16px;
    object-fit: contain;
}

.marker-fallback {
    transform: rotate(45deg);
    color: #fff;
    font-size: 14px;
    font-weight: bold;
    display: none;
}

/* Leaflet Popup */
.leaflet-popup-content-wrapper {
    background: #1e1e32 !important;
    color: #e0e0e0 !important;
    border-radius: 14px !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    padding: 0 !important;
}

.leaflet-popup-tip {
    background: #1e1e32 !important;
}

.leaflet-popup-content {
    margin: 0 !important;
    min-width: 220px;
}

.popup-inner {
    padding: 16px 18px;
}

.popup-category {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    margin-bottom: 6px;
}

.popup-name {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 8px;
}

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

.popup-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    color: #8ab4f8;
    text-decoration: none;
    font-size: 12px;
    transition: background 0.2s;
}

.popup-link:hover {
    background: rgba(255, 255, 255, 0.14);
}

.leaflet-popup-close-button {
    color: #888 !important;
    font-size: 20px !important;
    padding: 8px 10px !important;
}

/* Leaflet Controls */
.leaflet-control-zoom a {
    background: #1a1a2e !important;
    color: #ccc !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

.leaflet-control-zoom a:hover {
    background: #252542 !important;
}

.leaflet-control-attribution {
    background: rgba(26, 26, 46, 0.8) !important;
    color: #555 !important;
}

.leaflet-control-attribution a {
    color: #777 !important;
}

/* ═══════════════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════════════ */
.btn {
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: #ccc;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.btn-outline {
    background: transparent;
    border: 1px dashed rgba(255, 255, 255, 0.2);
    color: #8ab4f8;
    margin: 12px 0;
    width: 100%;
}

.btn-outline:hover {
    background: rgba(138, 180, 248, 0.1);
    border-color: rgba(138, 180, 248, 0.3);
}

.btn-outline.active {
    background: rgba(103, 194, 58, 0.15);
    border-color: #67c23a;
    color: #67c23a;
}

.btn-large {
    padding: 16px 40px;
    font-size: 16px;
    border-radius: 14px;
}

.btn-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.btn-icon-sm {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.06);
    border: none;
    color: #888;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-icon-sm:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.btn-icon-sm.delete-spot:hover,
.btn-icon-sm.delete-category:hover {
    background: rgba(245, 108, 108, 0.2);
    color: #f56c6c;
}

/* ═══════════════════════════════════════════════════════════
   MODALS
   ═══════════════════════════════════════════════════════════ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s;
}

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

.modal {
    background: linear-gradient(180deg, #1e1e32 0%, #1a1a2e 100%);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6);
    width: 400px;
    max-width: 92vw;
    max-height: 90vh;
    overflow: hidden;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.25s;
}

.modal-overlay.open .modal {
    transform: scale(1) translateY(0);
}

.modal-large {
    width: 480px;
}

.modal-header {
    padding: 20px 24px;
    background: linear-gradient(135deg, #0f3460 0%, #533483 100%);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
}

.modal-close {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

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

.modal-body {
    padding: 24px;
    overflow-y: auto;
    max-height: calc(90vh - 160px);
}

.modal-footer {
    padding: 16px 24px 24px;
    display: flex;
    gap: 12px;
}

.modal-footer .btn {
    flex: 1;
}

/* ═══════════════════════════════════════════════════════════
   FORMS
   ═══════════════════════════════════════════════════════════ */
.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: flex;
    gap: 12px;
}

.form-row .form-group {
    flex: 1;
}

.form-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.form-input,
.form-select {
    width: 100%;
    padding: 12px 16px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    color: #e0e0e0;
    font-size: 14px;
    transition: all 0.2s;
    font-family: inherit;
}

.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: rgba(138, 180, 248, 0.5);
    background: rgba(255, 255, 255, 0.07);
}

.form-input::placeholder {
    color: #555;
}

textarea.form-input {
    resize: vertical;
    min-height: 80px;
}

.form-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23888' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
}

.form-select option {
    background: #1a1a2e;
    color: #e0e0e0;
}

/* Color Picker */
.color-picker {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.color-option {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    border: 3px solid transparent;
}

.color-option:hover {
    transform: scale(1.1);
}

.color-option.active {
    border-color: #fff;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.3);
}

/* ═══════════════════════════════════════════════════════════
   TOAST NOTIFICATIONS
   ═══════════════════════════════════════════════════════════ */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    padding: 14px 20px;
    border-radius: 12px;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    animation: slideIn 0.3s ease;
    max-width: 360px;
}

.toast.success {
    background: linear-gradient(135deg, #67c23a 0%, #529b2e 100%);
}

.toast.error {
    background: linear-gradient(135deg, #f56c6c 0%, #c45656 100%);
}

.toast.info {
    background: linear-gradient(135deg, #409eff 0%, #337ecc 100%);
}

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

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

.toast.hiding {
    animation: slideOut 0.3s ease forwards;
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE (basic)
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        left: -380px;
        top: 0;
        height: 100vh;
        transition: left 0.3s;
        z-index: 1500;
    }

    .sidebar.open {
        left: 0;
    }

    .map-container {
        width: 100vw;
    }
}

/* ═══════════════════════════════════════════════════════════
   MOBILE MENU
   ═══════════════════════════════════════════════════════════ */

/* Кнопка бургер */
.mobile-menu-btn {
    display: none;
    position: fixed;
    top: 16px;
    left: 16px;
    z-index: 2000;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
    align-items: center;
    justify-content: center;
}

.mobile-menu-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.5);
}

.mobile-menu-btn .close-icon {
    display: none;
}

.mobile-menu-btn.active .burger-icon {
    display: none;
}

.mobile-menu-btn.active .close-icon {
    display: block;
}

/* Overlay */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1400;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar-overlay.active {
    display: block;
    opacity: 1;
}

/* Mobile styles */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }

    .sidebar {
        position: fixed;
        left: -100%;
        top: 0;
        height: 100vh;
        width: 320px;
        max-width: 85vw;
        transition: left 0.3s ease;
        z-index: 1500;
        box-shadow: 4px 0 30px rgba(0, 0, 0, 0.5);
    }

    .sidebar.open {
        left: 0;
    }

    .map-container {
        width: 100vw;
        height: 100vh;
    }

    /* Отступ для кнопок зума от бургера */
    .leaflet-top.leaflet-left {
        top: 70px;
    }

    /* Попап на мобилке */
    .leaflet-popup-content-wrapper {
        max-width: 280px !important;
    }

    /* Модалки на мобилке */
    .modal {
        width: 95vw;
        max-height: 85vh;
    }

    .modal-body {
        max-height: calc(85vh - 140px);
    }

    /* Форма на мобилке */
    .form-row {
        flex-direction: column;
        gap: 0;
    }

    /* Sidebar header на мобилке */
    .sidebar-header {
        padding-top: 24px;
    }

    /* Toast на мобилке */
    .toast-container {
        left: 16px;
        right: 16px;
        bottom: 16px;
    }

    .toast {
        max-width: 100%;
    }
}

/* Маленькие экраны */
@media (max-width: 480px) {
    .sidebar {
        width: 100vw;
        max-width: 100vw;
    }

    .sidebar-actions {
        flex-direction: column;
    }

    .filter-bar {
        gap: 4px;
    }

    .filter-btn {
        padding: 5px 10px;
        font-size: 11px;
    }
}
/* ═══════════════════════════════════════════════════════════
   GEOLOCATION
   ═══════════════════════════════════════════════════════════ */

.geolocation-btn {
    position: absolute;
    bottom: 100px;
    right: 16px;
    z-index: 1100;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: 2px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.geolocation-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 28px rgba(0, 0, 0, 0.5);
    border-color: rgba(64, 158, 255, 0.5);
}

.geolocation-btn.active {
    background: linear-gradient(135deg, #409eff 0%, #337ecc 100%);
    border-color: #409eff;
}

.geolocation-btn.loading .geo-icon {
    display: none;
}

.geolocation-btn .geo-loading {
    display: none;
    animation: spin 1s linear infinite;
}

.geolocation-btn.loading .geo-loading {
    display: block;
}

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

/* Маркер текущей позиции */
.user-location-wrapper {
    background: transparent !important;
    border: none !important;
}

.user-location-marker {
    width: 40px;
    height: 40px;
    position: relative;
}

.user-location-dot {
    width: 16px;
    height: 16px;
    background: #409eff;
    border: 3px solid #fff;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(64, 158, 255, 0.6);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
}

.user-location-pulse {
    width: 40px;
    height: 40px;
    background: rgba(64, 158, 255, 0.3);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: pulse 2s ease-out infinite;
    z-index: 1;
}

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

/* Попап с расстоянием */
.distance-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: rgba(64, 158, 255, 0.15);
    border-radius: 12px;
    font-size: 11px;
    color: #409eff;
    margin-top: 8px;
}

/* Мобильная адаптация - ВАЖНО! */
@media (max-width: 768px) {
    .geolocation-btn {
        position: fixed;
        bottom: 24px;
        right: 16px;
        z-index: 1200;
        width: 52px;
        height: 52px;
        font-size: 22px;
    }
}

/* ═══════════════════════════════════════════════════════════
   VISITED SPOTS
   ═══════════════════════════════════════════════════════════ */

/* Маркер посещённого места */
.custom-marker.visited {
    opacity: 0.5;
    filter: grayscale(40%);
}

.custom-marker.visited:hover {
    opacity: 0.8;
}

/* Карточка посещённого места */
.spot-card.visited {
    opacity: 0.6;
}

.spot-card.visited:hover {
    opacity: 0.9;
}

.spot-card.visited .spot-name {
    text-decoration: line-through;
    text-decoration-color: rgba(255, 255, 255, 0.4);
}

/* Кнопка "Посещено" */
.btn-visited {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    border: none;
    color: #666;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-visited:hover {
    background: rgba(103, 194, 58, 0.2);
    color: #67c23a;
}

.btn-visited.active {
    background: rgba(103, 194, 58, 0.25);
    color: #67c23a;
}

/* Бейдж в попапе */
.visited-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: rgba(103, 194, 58, 0.15);
    border-radius: 12px;
    font-size: 11px;
    color: #67c23a;
    margin-top: 8px;
    margin-right: 6px;
}

/* Фильтр посещённых */
.filter-visited {
    margin-left: auto;
    padding: 6px 12px;
    border-radius: 20px;
    border: 1px solid rgba(103, 194, 58, 0.3);
    background: transparent;
    color: #67c23a;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-visited:hover {
    background: rgba(103, 194, 58, 0.1);
}

.filter-visited.active {
    background: rgba(103, 194, 58, 0.2);
    border-color: #67c23a;
}

/* Статистика */
.visit-stats {
    font-size: 12px;
    color: #67c23a;
    padding: 0 16px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}